S/390: Deprecate g5 and g6 CPU levels
[official-gcc.git] / gcc / ChangeLog
blob48bc79d60de848da402fbab22d5142f585031276
1 2015-12-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3         * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
4         z900 -march -mtune even on g5 and g6 machines.
5         * config/s390/s390.c (s390_option_override_internal): New argument
6         to distingiush between options and target attributes.  Emit
7         deprecation warning for g5 and g6 arch/tune options.
8         (s390_option_override): Set new s390_option_override_internal
9         argument to true.
10         (s390_valid_target_attribute_tree): Set new
11         s390_option_override_internal argument to false.
12         * config/s390/s390.h: Default to z900 in the driver.
13         * doc/invoke.texi: Document the deprecation of g5 and g6.
15 2015-12-18  Andris Pavenis <andris.pavenis@iki.fi>
17         * config/i386/djgpp-stdint.h: update typedefs for integer types
19 2015-12-17  Jeff Law  <law@redhat.com>
21         * passes.def: Put the split-paths pass immediately before the
22         tracer pass.
24         * doc/invoke.texi (-O2 options): Remove -fsplit-paths.
25         (-O3 options): Add -fsplit-paths.
26         * gimple-ssa-split-paths.c: Include predict.h
27         (split_paths): Only split paths in a loop that should be
28         optimized for speed.
29         * opts.c (default_options_table): Move -fsplit-paths from -O2 to
30         -O3.
32 2015-12-17  Nathan Sidwell  <nathan@acm.org>
34         * ipa-icf.c (sem_item_optimizer::merge): Don't pick 'main' as the
35         source function.
37 2015-12-17  Sebastian Pop  <s.pop@samsung.com>
39         * Makefile.in: Replace ISL with isl.
40         * common.opt: Same.
41         * configure: Regenerate.
42         * configure.ac: Same.
43         * doc/install.texi: Same.
44         * doc/invoke.texi: Same.
45         * graphite-isl-ast-to-gimple.c: Same.
46         * graphite-scop-detection.c: Same.
47         * graphite-sese-to-poly.c: Same.
48         * graphite.c: Same.
49         * graphite.h: Same.
50         * params.def: Same.
51         * testsuite/gcc.dg/graphite/fuse-1.c: Same.
52         * testsuite/gcc.dg/graphite/fuse-2.c: Same.
53         * testsuite/gcc.dg/graphite/interchange-1.c: Same.
54         * testsuite/gcc.dg/graphite/pr35356-1.c: Same.
55         * toplev.c: Same.
57 2015-12-17  Sebastian Pop  <s.pop@samsung.com>
59         * graphite-dependences.c: Move all isl include files to...
60         * graphite-isl-ast-to-gimple.c: Same.
61         * graphite-optimize-isl.c: Same.
62         * graphite-poly.c: Same.
63         * graphite-scop-detection.c: Same.
64         * graphite.c: Same.
65         * graphite.h: ... here.
67 2015-12-17  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
69         * config/avr/avr.h (MOVE_MAX): Set value to 1.
70         (MOVE_MAX_PIECES): Define.
71         (MOVE_RATIO): Define.
72         * config/avr/avr.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P):
73         Provide target hook.
74         (avr_use_by_pieces_infrastructure_p): New function.
76 2015-12-17  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
78         * config.gcc: mark *-interix* as obsolete.
80 2015-12-17  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
82         * config.gcc: Mark openbsd 2.0 and 3.X as obsolete.
84 2015-12-17  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
86         * config.gcc: Mark knetbsd targets as obsolete.
88 2015-12-17  Nathan Sidwell  <nathan@acm.org>
90         * config/nvptx/nvptx.h (NVPTX_RETURN_REGNUM, FRAME_POINTER_REGNUM,
91         ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Renumber.
92         (REGISTER_NAMES): Update and rename.
93         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
94         (enum_reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Reformat.
96 2015-12-17  Richard Biener  <rguenther@suse.de>
98         PR tree-optimization/68946
99         * tree-vect-slp.c (vect_slp_analyze_node_operations): Push
100         SLP def type to stmt operands one stmt at a time.
102 2015-12-17  Pierre-Marie de Rodat  <derodat@adacore.com>
104         * langhooks.h (struct lang_hooks_for_types): New get_bias_field.
105         * langhooks-def.h (LANG_HOOKS_GET_TYPE_BIAS): New.
106         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Initialize the
107         get_bias_field.
108         * dwarf2out.c
109         (base_type_die): In non-strict DWARF mode, invoke the
110         get_type_bias language hook for INTEGER_TYPE nodes.  If it
111         returns a bias, emit an attribute for it.
112         (subrange_type_die): Change signature to handle bias.  If
113         non-strict DWARF mode, emit an attribute for it, if one passed.
114         (modified_type_die): For subrange types, invoke the
115         get_type_bias langage hook and pass the bias to
116         subrange_type_die.
118 2015-12-17  Pierre-Marie de Rodat  <derodat@adacore.com>
120         * dwarf2out.h (DWARF2OUT_ARRAY_DESCR_INFO_MAX_DIMEN): New macro.
121         (struct array_descr_info): Use it for the dimensions array's
122         size.
123         * dwarf2out.c (gen_type_die_with_usage): Check that the array
124         descr. language hook does not return an array with more
125         dimensions that it should.
127 2015-12-17  Pierre-Marie de Rodat  <derodat@adacore.com>
129         * langhooks.h (struct lang_hooks_for_types): Add a
130         get_fixed_point_type_info field.
131         * langhooks-def.h (LANG_HOOKS_GET_FIXED_POINT_TYPE_INFO): New
132         macro.
133         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Initialize the
134         get_fixed_point_type_info field.
135         * dwarf2out.h (enum fixed_point_scale_factor): New.
136         (struct fixed_point_type_info): New.
137         * dwarf2out.c (base_type_die): In DWARFv3 or non-strict DWARF
138         mode, get fixed-point type information using the debugging hook
139         and describe it in DWARF, if any.
141 2015-12-17  Pierre-Marie de Rodat  <derodat@adacore.com>
143         * langhooks.h (struct lang_hooks_for_types): Add a
144         get_debug_type field.
145         * langhooks-def.h (LANG_HOOKS_GET_DEBUG_TYPE): New macro.
146         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Initialize the
147         get_debug_type field.
148         * dwarf2out.h (struct array_descr_info): Add an array-wide
149         stride field.
150         * dwarf2out.c (modified_type_die): Invoke the get_debug_type
151         language hook, process its result instead, if any.
152         (gen_descr_array_type_die): Add array-wide stride processing.
154 2015-12-17  Pierre-Marie de Rodat  <derodat@adacore.com>
156         * debug.h (struct gcc_debug_hooks): Add a new size_function
157         hook.
158         * debug.c (do_nothing_debug_hooks): Set the size_function field
159         to no-op.
160         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
161         * sdbout.c (sdb_debug_hooks): Likewise.
162         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
163         * stor-layout.c (finalize_size_functions): Let the debug info
164         back-end know about the implementation of size functions.
165         * dwarf2out.h (dw_discr_list_ref): New typedef.
166         (enum dw_val_class): Add value classes for discriminant values
167         and discriminant lists.
168         (struct dw_discr_value): New structure.
169         (struct dw_val_node): Add discriminant values and discriminant
170         lists to the union.
171         (struct dw_loc_descr_node): Add frame_offset_rel and
172         dw_loc_frame_offset (only for checking) fields to handle DWARF
173         procedures generation.
174         (struct dw_discr_list_node): New structure.
175         * dwarf2out.c (dwarf2out_size_function): New.
176         (dwarf2_debug_hooks): Set the size_function field to
177         dwarf2out_size_function.
178         (dwarf2_lineno_debug_hooks): Set the size_function field to
179         no-op.
180         (new_loc_descr): Initialize the
181         dw_loc_frame_offset field.
182         (dwarf_proc_stack_usage_map): New.
183         (dw_val_equal_p): Handle discriminants.
184         (size_of_discr_value): New.
185         (size_of_discr_list): New.
186         (size_of_die): Handle discriminants.
187         (add_loc_descr_to_each): New.
188         (add_loc_list): New.
189         (print_discr_value): New.
190         (print_dw_val): Handle discriminants.
191         (value_format): Handle discriminants.
192         (output_discr_value): New.
193         (output_die): Handle discriminants.
194         (output_loc_operands): Handle DW_OP_call2 and DW_OP_call4.
195         (uint_loc_descriptor): New.
196         (uint_comparison_loc_list): New.
197         (loc_list_from_uint_comparison): New.
198         (add_discr_value): New.
199         (add_discr_list): New.
200         (AT_discr_list): New.
201         (loc_descr_to_next_no_op): New.
202         (free_loc_descr): New.
203         (loc_descr_without_nops): New.
204         (struct loc_descr_context): Add a dpi field.
205         (struct dwarf_procedure_info): New helper structure.
206         (new_dwarf_proc_die): New.
207         (is_handled_procedure_type): New.
208         (resolve_args_picking_1): New.
209         (resolve_args_picking): New.
210         (function_to_dwarf_procedure): New.
211         (copy_dwarf_procedure): New.
212         (copy_dwarf_procs_ref_in_attrs): New.
213         (copy_dwarf_procs_ref_in_dies): New.
214         (break_out_comdat_types): Copy DWARF procedures along with the
215         types that reference them.
216         (loc_list_from_tree): Rename into loc_list_from_tree_1.  Handle
217         CALL_EXPR in the cases suitable for DWARF procedures.  Handle
218         for PARM_DECL when generating a location description for a DWARF
219         procedure.  Handle big unsigned INTEGER_CST nodes.  Handle
220         NON_LVALUE_EXPR, EXACT_DIV_EXPR and all unsigned comparison
221         operators.  Add a wrapper for loc_list_from_tree that strips
222         DW_OP_nop operations from the result.
223         (type_byte_size): New.
224         (struct vlr_context): New helper structure.
225         (field_byte_offset): Change signature to return either a
226         constant offset or a location description for dynamic ones.
227         Handle dynamic byte offsets with constant bit offsets and handle
228         fields in variant parts.
229         (add_data_member_location): Change signature to handle dynamic
230         member offsets and fields in variant parts.  Update call to
231         field_byte_offset.  Handle location lists.  Emit a variable data
232         member location only when -fgnat-encodings=minimal.
233         (add_bound_info): Emit self-referential bounds only when
234         -fgnat-encodings=minimal.
235         (add_byte_size_attribute): Use type_byte_size in order to handle
236         dynamic type sizes.  Emit variable byte size only when
237         -fgnat-encodings=minimal and when the target DWARF version
238         allows them.
239         (add_bit_offset_attribute): Change signature to handle
240         variable-length records.  Update call to field_byte_offset.
241         (gen_descr_array_type_die): Update call to gen_field_die.
242         Update loc_descr_context literal.
243         (gen_type_die_for_member): Likewise.
244         (gen_subprogram_die): Update calls to get_decl_die.
245         (gen_field_die): Change signature to handle variable-length
246         records.  Update calls to add_bit_offset_attribute and
247         add_data_member_location_attribute.
248         (gen_inheritance_die): Update call to
249         add_data_member_location_attribute.
250         (gen_decl_die): Change signature to handle variable-length
251         records.  Update call to gen_field_die.
252         (gen_inheritance_die): Change signature to handle
253         variable-length records.  Update call to
254         add_data_member_location_attribute.
255         (is_variant_part): New.
256         (analyze_discr_in_predicate): New.
257         (get_discr_value): New.
258         (analyze_variants_discr): New.
259         (gen_variant_part): New.
260         (gen_member_die): Update calls to gen_decl_die.  Call instead
261         gen_variant_part for variant parts.
262         (gen_type_die_with_usage): Update calls to gen_decl_die.
263         (process_scope_var): Likewise.
264         (force_decl_die): Likewise.
265         (declare_in_namespace): Likewise.
266         (dwarf2out_decl): Likewise.
267         (prune_unused_types_walk_loc_descr): New.
268         (prune_unused_types_walk_attribs): Mark DIEs referenced by
269         location descriptions and loc. descr. lists.
270         (prune_unused_types_walk): Don't mark DWARF procedures by
271         default.  Mark variant parts since nothing is supposed to
272         reference them.
273         (dwarf2out_init): Allocate dwarf_proc_stack_usage_map.
274         (dwarf2out_c_finalize): Deallocate and reset
275         dwarf_proc_stack_usage_map.
277 2015-12-17  Pierre-Marie de Rodat  <derodat@adacore.com>
279         * common.opt (gnat_encodings): New variable
280         (dwarf_gnat_encodings): New enum type.
281         (fgnat_encodings): New option.
282         * flag-types.h (enum dwarf_gnat_encodings): New.
284 2015-12-17  Christian Bruel  <christian.bruel@st.com>
286         * tree.h (TYPE_MODE_RAW): New macro.
287         * tree-streamer-out.c (pack_ts_type_common_value_fields):
288         Replace TYPE_MODE by TYPE_MODE_RAW.
290 2015-12-17  Jakub Jelinek  <jakub@redhat.com>
292         PR tree-optimization/68835
293         * tree.c (get_int_cst_ext_nunits): Return
294         cst.get_precision () / HOST_BITS_PER_WIDE_INT + 1
295         for all unsigned wi::neg_p (cst) constants.
296         (build_new_int_cst): If cst.get_precision is not a multiple
297         of HOST_BITS_PER_WIDE_INT, zero extend -1 to the precision
298         % HOST_BITS_PER_WIDE_INT.
300 2015-12-17  Richard Biener  <rguenther@suse.de>
302         PR tree-optimization/68951
303         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
304         Ignore strided non-group accesses.
306 2015-12-17  Andrew Burgess  <andrew.burgess@embecosm.com>
308         * config/arc/arc.c (arc_loop_hazard): Don't convert the jump label
309         rtx to an rtx_insn until we confirm it's not a return rtx.
311 2015-12-17  Richard Biener  <rguenther@suse.de>
313         * gimple-ssa.h (struct gimple_df): Remove modified_noreturn_calls
314         field.
315         * tree-ssa.c (delete_tree_ssa): Do not zero it.
317 2015-12-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
319         PR target/67973
320         * configure.ac (gcc_cv_as_stabs_directive): New test.
321         * configure: Regenerate.
322         * config.in: Regenerate.
323         * config/darwin.h (DBX_DEBUGGING_INFO): Wrap in
324         HAVE_AS_STABS_DIRECTIVE.
325         (PREFERRED_DEBUGGING_TYPE): Likewise.
326         * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Only include
327         DBX_DEBUG if HAVE_AS_STABS_DIRECTIVE.
329         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
330         attributes): Document stabs.
332 2015-12-16  Martin Sebor  <msebor@redhat.com>
334         PR c/68868
335         * ginclude/stdatomic.h (atomic_init): Use atomic_store instead
336         of plain assignment.
338 2015-12-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
340         PR target/68805
341         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use ROTATE
342         instead of VEC_SELECT for TImode.
344         * config/rs6000/vsx.md (VSX_LE): Move TImode from VSX_LE to
345         VSX_LE_128, so that we use ROTATE to swap the 64-bit words instead
346         of using VEC_SELECT.
347         (VSX_LE_128): Likewise.
348         (define_peephole2): Add peephole to eliminate double xxpermdi when
349         copying TImode.
351 2015-12-16  John David Anglin  <danglin@gcc.gnu.org>
353         PR target/68779
354         * config/pa/pa.md (atomic_loaddi): Honor -mdisable-fpregs.
355         (atomic_loaddi_1): Likewise.
356         (atomic_storedi): Likewise.
357         (atomic_storedi_1): Likewise.
358         (atomic_loaddf): Likewise.
359         (atomic_loaddf_1): Likewise.
360         (atomic_storedf): Likewise.
361         (atomic_storedf_1): Likewise.
362         Move all atomic patterns to end of file.
364 2015-12-16  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
366         * graphite-isl-ast-to-gimple.c: Include isl/schedule_node.h.
367         (set_separate_option): New.
368         (translate_isl_ast_to_gimple::set_options_for_schedule_tree): New.
369         (translate_isl_ast_to_gimple::scop_to_isl_ast): Use scop->schedule.
370         * graphite-optimize-isl.c (optimize_isl): Set scop->schedule, do not
371         free the computed schedule tree.
372         * graphite-poly.c (new_scop): Initialize scop->schedule.
373         * graphite.h: Include isl/schedule.h.
374         (struct scop): Add field schedule.
376 2015-12-16  Nathan Sidwell  <nathan@acm.org>
378         * ipa-visibility.c (can_replace_by_local_alias): Make static,
379         check ASM_OUTPUT_DEF.
380         (can_replace_by_local_alias_in_vtable): Make static.
381         (function_and_variable_visibility): Reformat overlong comment.
383 2015-12-16  Jeff Law  <law@redhat.com>
385         * ree.c (add_removable_extension): Use reg_overlap_mentioned_p
386         rather than testing hard register #s.
388 2015-12-16  Nathan Sidwell  <nathan@acm.org>
390         * config/nvptx/nvptx.h (OUTGOING_STATIC_CHAIN_REGNUM): Remove.
391         (REGISTER_NAMES): Adjust.
392         * config/nvptx/nvptx.c (nvptx_pass_by_reference): Avoid long line.
393         (nvptx_static_hain): Delete.
394         (write_arg_mode): Don't emit initializer if argno < 0.
395         (write_arg_type): Fix whitespace.
396         (init_frame): Initialize reg to zero if frame is zero-sized.
397         (nvptx_declare_function_name):  Use write_arg_type to emit chain
398         decl.
399         (nvptx_output_call_insn): Adjust static chain emission.
400         (nvptx_goacc_reduction): Make static.
401         (TARGET_STATIC_CHAIN): Don't override.
403 2015-12-16  Aditya Kumar  <aditya.k7@samsung.com>
405         * graphite-dependences.c (scop_get_dependences): Use local pointers.
406         * graphite-isl-ast-to-gimple.c
407         (translate_isl_ast_to_gimple::scop_to_isl_ast): Use scop->dependence.
408         * graphite-optimize-isl.c (optimize_isl): Same.
409         * graphite-poly.c (new_scop): Remove initialization of removed
410         members.
411         (free_scop): Same.
412         * graphite.h (struct scop): Remove individial dependence pointers and
413         add a scop::dependence to contain all the dependence.
415 2015-12-16  Aditya Kumar  <aditya.k7@samsung.com>
417         * graphite-sese-to-poly.c (build_poly_sr): Use refs.
419 2015-12-16  Aditya Kumar  <aditya.k7@samsung.com>
420             Sebastian Pop  <s.pop@samsung.com>
422         * config.in: Regenerate.
423         * configure: Regenerate.
424         * configure.ac: Remove checks for functions that exist in isl 0.13
425         or later.
426         * graphite-isl-ast-to-gimple.c: Remove #ifdefs and code for isl 0.12.
427         * graphite-optimize-isl.c: Same.
428         * graphite-poly.c: Same.
429         * graphite-sese-to-poly.c: Same.
430         * graphite.h: Add comment for isl 0.14.
431         * toplev.c (print_version): Print isl version.
433 2015-12-10  Jan Hubicka  <hubicka@ucw.cz>
435         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use can_refer; do not
436         speculate to impossible targets.
437         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
439 2015-12-16  Aditya Kumar  <aditya.k7@samsung.com>
440             Sebastian Pop  <s.pop@samsung.com>
442         * graphite-dependences.c (scop_get_reads): Add more dumps.
443         (scop_get_must_writes): Same.
444         (scop_get_may_writes): Same.
445         * graphite-poly.c (new_poly_dr): Same.
446         * graphite-scop-detection.c (build_cross_bb_scalars_def): Same.
447         (gather_bbs::before_dom_children): Same.
449 2015-12-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
451         * config/aarch64/aarch64.c (aarch64_extend_bitfield_pattern_p):
452         New function.
453         (aarch64_rtx_costs, ZERO_EXTEND, SIGN_EXTEND cases): Use the above
454         to handle extend+shift rtxes.
456 2015-12-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
458         PR target/68696
459         * config/aarch64/aarch64-simd.md (*aarch64_simd_bsl<mode>_alt):
460         New pattern.
461         (aarch64_simd_bsl<mode>_internal): Update comment to reflect
462         the above.
464 2015-12-16  Richard Biener  <rguenther@suse.de>
466         PR tree-optimization/68870
467         * tree-cfgcleanup.c (cleanup_control_expr_graph): Add first_p
468         parameter, if set only perform trivial constant folding.
469         Queue other blocks with conditions for later processing.
470         (cleanup_control_flow_bb): Add first_p parameter and pass it through.
471         (cleanup_tree_cfg_1): Pass true for the first iteration
472         cleanup_control_expr_graph.
474 2015-12-16  Nathan Sidwell  <nathan@acm.org>
476         * config/nvptx/nvptx-protos.h (nvptx_hard_regno_mode_ok): Delete.
477         * config/nvptx/nvptx.h (struct machine_function):
478         Reimplement. Adjust all users.
479         * config/nvptx/nvptx.c (nvptx_declare_function_name): Move stack
480         and frame array generation earlier.
481         (nvptx_call_args): Reimplement.
482         (nvptx_expand_call): Adjust.
483         (nvptx_hard_reno_mode_ok): Delete.
484         (nvptx_reorg): Revert scan of hard regs.
486 2015-12-16  Tom de Vries  <tom@codesourcery.com>
488         * opts.c (default_options_optimization): Set fipa-pta on by
489         default for fopenacc.
490         * passes.def: Move kernels pass group to pass_ipa_oacc.
491         * tree-pass.h (make_pass_oacc_kernels2): Remove.
492         (make_pass_ipa_oacc, make_pass_ipa_oacc_kernels): Declare.
493         * tree-ssa-loop.c (pass_oacc_kernels2, make_pass_oacc_kernels2):
494         Remove.
495         (pass_ipa_oacc, pass_ipa_oacc_kernels): New pass.
496         (make_pass_ipa_oacc, make_pass_ipa_oacc_kernels): New function.
497         * tree-ssa-structalias.c (pass_ipa_pta::clone): New function.
499 2015-12-16  Richard Biener  <rguenther@suse.de>
501         PR tree-optimization/68861
502         * tree-vect-slp.c (vect_build_slp_tree): Properly handle
503         duplicate stmts when applying swapping to stmts.
505 2015-12-16  Kirill Yukhin  <kirill.yukhin@intel.com>
507         * config/i386/i386-c.c (ix86_target_macros_internal): Remove
508         duplicate check (__CLZERO__).
510 2015-12-16  Matthew Wahab  <matthew.wahab@arm.com>
512         * config/arm/arm_neon.h (vqrdmlahq_lane_s16): New.
513         (vqrdmlahq_lane_s32): New.
514         (vqrdmlah_lane_s16): New.
515         (vqrdmlah_lane_s32): New.
516         (vqrdmlshq_lane_s16): New.
517         (vqrdmlshq_lane_s32): New.
518         (vqrdmlsh_lane_s16): New.
519         (vqrdmlsh_lane_s32): New.
520         * config/arm/arm_neon_builtins.def: Add "vqrdmlah_lane" and
521         "vqrdmlsh_lane".
523 2015-12-16  Matthew Wahab  <matthew.wahab@arm.com>
525         * config/arm/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
526         (vqrdmlahq_s16, vqrdmlahq_s32): New.
527         (vqrdmlsh_s16, vqrdmlsh_s32): New.
528         (vqrdmlahq_s16, vqrdmlshq_s32): New.
529         * config/arm/arm_neon_builtins.def: Add "vqrdmlah" and "vqrdmlsh".
531 2015-12-16  Matthew Wahab  <matthew.wahab@arm.com>
533         * doc/sourcebuild.texi (ARM-specific attributes): Add
534         "arm_v8_1a_neon_ok" and "arm_v8_1a_neon_hw".
536 2015-12-16  Matthew Wahab  <matthew.wahab@arm.com>
538         * config/arm/arm-c.c (arm_cpu_builtins): Define
539         __ARM_FEATURE_QRDMX.  Clean up some trailing whitespace.
541 2015-12-16  Matthew Wahab  <matthew.wahab@arm.com>
543         * config/arm/iterators.md (VQRDMLH_AS): New.
544         (neon_rdma_as): New.
545         * config/arm/neon.md
546         (neon_vqrdml<VQRDMLH_AS:neon_rdma_as>h<mode>): New.
547         (neon_vqrdml<VQRDMLH_AS:neon_rdma_as>h_lane<mode>): New.
548         * config/arm/unspecs.md (UNSPEC_VQRDMLAH): New.
549         (UNSPEC_VQRDMLSH): New.
551 2015-12-16  Matthew Wahab  <matthew.wahab@arm.com>
553         * config/arm/t-aprofile: Make "armv8.1-a" and "armv8.1-a+crc"
554         matches for "armv8-a".
556 2015-12-16  Matthew Wahab  <matthew.wahab@arm.com>
558         * config/arm/arm-arches.def: Add "armv8.1-a" and "armv8.1-a+crc".
559         * config/arm/arm-protos.h (FL2_ARCH8_1): New.
560         (FL2_FOR_ARCH8_1A): New.
561         * config/arm/arm-tables.opt: Regenerate.
562         * config/arm/arm.c (arm_arch8_1): New.
563         (arm_option_override): Set arm_arch8_1.
564         * config/arm/arm.h (TARGET_NEON_RDMA): New.
565         (arm_arch8_1): Declare.
566         * doc/invoke.texi (ARM Options, -march): Add "armv8.1-a" and
567         "armv8.1-a+crc".
568         (ARM Options, -mfpu): Fix a typo.
570 2015-12-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
572         PR target/68648
573         * config/arm/arm.md (*andsi_iorsi3_notsi): Try to simplify
574         the complement of operands[3] during splitting.
576 2015-12-16  Richard Biener  <rguenther@suse.de>
578         PR tree-optimization/68892
579         * tree-vect-slp.c (vect_analyze_slp_cost_1): Properly compute
580         cost for permuted loads.
582 2015-12-16  Jakub Jelinek  <jakub@redhat.com>
584         PR rtl-optimization/65980
585         * jump.c (rtx_renumbered_equal_p) <case LABEL_REF>: Use
586         next_nonnote_nondebug_insn instead of next_real_insn and
587         skip over CODE_LABELs too.
589 2015-12-10  Jan Hubicka  <hubicka@ucw.cz>
591         * symtab.c (symtab_node::fixup_same_cpp_alias_visibility):
592         Do not copy DECL_VIRTUAL_P.
594 2015-12-15  Martin Sebor  <msebor@redhat.com>
596         PR c++/42121
597         * tree-chkp.c (chkp_find_bound_slots_1): Handle flexible array
598         members.
599         * tree.c (type_contains_placeholder_1): Avoid assuming type has
600         a non-null domain or an upper bound to handle flexible array
601         members.
602         * varasm.c (output_constructor_regular_field):  Same.
603         (output_constructor): Set min_index to integer_zero_node rather
604         than null when a type has no domain to avoid crashing later.
606 2015-12-15  Nathan Sidwell  <nathan@acm.org>
608         * config/nvptx/nvptx.c (write_one_arg): Rename to ...
609         (write_arg_mode): ... here.  Update callers.
610         (write_arg): Rename to ...
611         (write__arg_type): ... here.  Update callers.
612         (write_return_mode): New fn, broken out of ...
613         (write_return): ... here.  Rename to ...
614         (write_return_type): ... here.  Call it. Update callers.
615         (write_fn_proto_from_insn): Use write_arg_mode and
616         write_return_mode.
617         (init_frame): New fn.
618         (nvptx_declare_function_name): Call it for frame and varargs. Only
619         emit outgoing static chain, if it's live.
620         (nvptx_output_return): Use reg_names for return reg name.
621         (nvptx_output_call_insn): Likewise.
622         (nvptx_reorg): Mark unused hard regs too.
624 2015-12-15  Nathan Sidwell  <nathan@acm.org>
626         * config/nvptx/nvptx.md (nvptx_register_operand): Don't accept and
627         then reject subregs.
628         (nvptx_reg_or_mem_operand): Likewise.
629         (nvptx_nonmemory_operand): Likewise.
630         (call_insn_operand): A regular predicate, check SYMBOL_REF_FUNCTION_P.
631         (call_insn, call_value_insn): Address is not SImode.
632         * config/nvptx/nvptx.h (FIXED_REGISTERS): Make return reg fixed.
633         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove
634         RETURN_REG class.
635         (REGNO_REG_CLASS): Alwaus ALL_REGS.
636         (PROMOTE_MODE): QI and HI are the only smaller than SI int modes.
637         (HARD_FRAME_POINTER_REGNUM): Delete.
638         (REGISTER_NAMES): Move earlier.
639         (struct nvptx_args): Remove 'off'.
640         (INIT_CUMULATIVE_ARGS): Don't initialize 'off'.
641         (ELIMINABLE_REGS): Remove HARD_FRAME_POINTER_REGNUM.
642         * config/nvptx/nvptx.c (arg_promotion): Delete.
643         (nvptx_expand_call): Remove check for funtype being an fntype.
645 2015-12-15  Jason Merrill  <jason@redhat.com>
647         * hash-map.h, hash-table.h: Make copy constructors explicit.
649 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
651         * cgraphunit.c (output_in_order): Do not assemble "omp declare target
652         link" variables in ACCEL_COMPILER.
653         * gimplify.c (gimplify_adjust_omp_clauses): Do not remove mapping of
654         "omp declare target link" variables.
655         * omp-low.c (scan_sharing_clauses): Do not remove mapping of "omp
656         declare target link" variables.
657         (add_decls_addresses_to_decl_constructor): For "omp declare target
658         link" variables output address of the artificial pointer instead
659         of address of the variable.  Set most significant bit of the size
660         to mark them.
661         (pass_data_omp_target_link): New pass_data.
662         (pass_omp_target_link): New class.
663         (find_link_var_op): New static function.
664         (make_pass_omp_target_link): New function.
665         * passes.def: Add pass_omp_target_link.
666         * tree-pass.h (make_pass_omp_target_link): Declare.
667         * varpool.c (symbol_table::output_variables): Do not assemble "omp
668         declare target link" variables in ACCEL_COMPILER.
670 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
672         PR middle-end/21273
673         * gensupport.c (collect_insn_data): Look for number of alternatives
674         in MATCH_SCRATCH.
676 2015-12-15  Nathan Sidwell  <nathan@acm.org>
678         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Reformat.
679         (CANNOT_CHANGE_MODE_CLASS): Always return true.
680         (HARD_REGNO_MODE_OK): Reformat.
681         * config/nvptx/nvptx.md (define_expand mov<mode>): No
682         RETURN_REGNUM handling here.
683         * config/nvptx/nvptx.c (nvptx_function_value): Set ret_reg_mode
684         here.
685         (write_one_arg): No QI or HI mode args.
686         (write_fn_proto_from_insn): No argument promotion here.
687         (nvptx_output_return_insn): No return promotion here.
688         (nvptx_output_mov_insn): No RETURN_REGNUM handling needed.
689         (nvptx_output_call_insn): No return promotion here.
691 2015-12-15  Martin Jambor  <mjambor@suse.cz>
693         PR ipa/68851
694         * cgraph.c (collect_callers_of_node_1): Do not collect thunks.
695         * cgraph.h (cgraph_node): Change comment of collect_callers.
697 2015-12-15  Jakub Jelinek  <jakub@redhat.com>
699         PR tree-optimization/66688
700         * tree-cfgcleanup.c (cleanup_control_flow_bb): Handle
701         noreturn call followed only by debug stmts by removing
702         the debug stmts and handling it the same as if the noreturn
703         call is the last stmt.
705 2015-12-14  Steve Ellcey  <sellcey@imgtec.com>
707         * config/mips/mips.c (mips_promote_function_mode): New function.
708         (TARGET_PROMOTE_FUNCTION_MODE): Define as above function.
709         (TARGET_PROMOTE_PROTOTYPES): Remove.
711 2015-12-14  Jason Merrill  <jason@redhat.com>
713         PR c++/68309
714         * hash-table.h: Add copy constructor.
715         * hash-map.h: Add copy constructor.
717 2015-12-14  Tom de Vries  <tom@codesourcery.com>
719         PR other/68882
720         * gimple-pretty-print.c (dump_ssaname_info_to_file): New function.
721         * gimple-pretty-print.h (dump_ssaname_info_to_file): Declare.
722         * tree-cfg.c (dump_default_def): New function.
723         (dump_function_to_file): Dump default defs for arguments, static chain,
724         and decl-by-reference.
726 2015-12-14  Nathan Sidwell  <nathan@acm.org>
728         * config/nvptx/nvptx.h (PARM_BOUNDARY): Set to 32.
729         * config/nvptx/nvptx.c (PASS_IN_REG_P, RETURN_IN_REG_P): Delete.
730         (pass_in_memory, promote_arg, promote_return): New.
731         (nvptx_function_arg_boundary): Delete.
732         (nvptx_function_value): Use promote_return.
733         (nvptx_pass_by_reference): Use pass_in_memory.
734         (nvptx_return_in_memory): Use pass_in_memory.
735         (nvptx_promote_function_mode): Use promote_arg.
736         (write_arg): Adjust arg splitting logic.
737         (write_return): Check and clear ret_reg_mode, if needed.
738         (write_fn_proto, nvptx_declare_function_name): Adust write_return
739         calls.
740         (TARGET_RUNCTION_ARG_BOUNDARY,
741         TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Don't override.
743 2015-12-14  Jakub Jelinek  <jakub@redhat.com>
745         PR c/68833
746         * common.opt (Wmissing-noreturn): Add Warning option.
747         * opts-common.c (control_warning_option): If opt is
748         alias_target with alias_arg, set arg to it.
750 2015-12-14  Segher Boessenkool  <segher@kernel.crashing.org>
752         PR target/68865
753         PR target/68879
754         * config/rs6000/rs6000.md (cstore_si_as_di): Force all operands
755         into registers.
757 2015-12-14  Richard Biener  <rguenther@suse.de>
759         Revert accidentially applied
760         PR tree-optimization/68707
761         PR tree-optimization/67323
762         * tree-vect-slp.c (vect_analyze_slp_instance): Drop SLP instances
763         if they can be vectorized using load/store-lane instructions.
765 2015-12-14  Richard Biener  <rguenther@suse.de>
767         PR tree-optimization/68852
768         * tree-vectorizer.h (struct _slp_tree): Add def_type member.
769         (SLP_TREE_DEF_TYPE): New accessor.
770         * tree-vect-stmts.c (vect_is_simple_use): Remove BB vectorization
771         hack.
772         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
773         SLP_TREE_DEF_TYPE.
774         (vect_build_slp_tree): When a node is to be built up from scalars
775         do not push a NULL as child but instead set its def_type to
776         vect_external_def.
777         (vect_analyze_slp_cost_1): Check for child def-type instead
778         of NULL.
779         (vect_detect_hybrid_slp_stmts): Likewise.
780         (vect_bb_slp_scalar_cost): Likewise.
781         (vect_get_slp_defs): Likewise.
782         (vect_slp_analyze_node_operations): Likewise.  Before
783         processing node push the children def-types to the underlying
784         stmts vinfo and restore it afterwards.
785         (vect_schedule_slp_instance): Likewise.
786         (vect_slp_analyze_bb_1): Do not mark stmts not in SLP instances
787         as not vectorizable.
789 2015-12-14  Richard Biener  <rguenther@suse.de>
791         PR tree-optimization/68775
792         * tree-vect-slp.c (vect_build_slp_tree): Make sure to apply
793         a operand swapping even if replacing the op with scalars.
795 2015-12-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
797         * combine.c (change_zero_ext): Do not create a shift of zero length.
799 2015-12-14  Claudiu Zissulescu  <claziss@synopsys.com>
801         * config/arc/arc.c (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P):
802         Provide target hook.
803         (arc_no_speculation_in_delay_slots_p): New function.
805 2015-12-14  Claudiu Zissulescu  <claziss@synopsys.com>
806             Andrew Burgess  <andrew.burgess@embecosm.com>
808         * config/arc/arc.c (frame_move): Set frame related flag.
809         (arc_save_restore): Emit epilogue related DWARF2 information.
810         (arc_expand_epilogue): Likewise.
811         * config/arc/arc.opt (mno-epilogue-cfi): Remove.
812         (mepilogue-cfi): Likewise.
813         * doc/invoke.texi: Remove -m[no]-epilogue-cfi documentation.
815 2015-12-14  Martin Jambor  <mjambor@suse.cz>
817         PR ipa/66616
818         * ipa-cp.c (propagate_constants_accross_call): Move thuk check...
819         (call_passes_through_thunk_p): ...here.
820         (find_more_scalar_values_for_callers_subset): Perform thunk checks
821         like propagate_constants_accross_call does.
823 2015-12-14  Jakub Jelinek  <jakub@redhat.com>
825         PR rtl-optimization/68730
826         * cfgrtl.c (cfg_layout_finalize): Free dominators.
828 2015-12-13  Alexandre Oliva <aoliva@redhat.com>
830         PR debug/67355
831         * var-tracking.c (reverse_op): Don't add dummy zero to reverse
832         ops that simplify back to the original value.
833         * alias.c (refs_newer_value_p): Cut off recursion for
834         expressions containing the original value.
836 2015-12-13  Kazu Kirata  <kazu@gcc.gnu.org>
838         * config/m68k/m68k.md (load feeding clear byte): New peephole2.
840 2015-12-13  Tom de Vries  <tom@codesourcery.com>
842         * tree-ssa-structalias.c (find_func_clobbers): Handle sizes and kinds
843         parameters of GOACC_paralllel.
845 2015-12-10  Jan Hubicka  <hubicka@ucw.cz>
847         * cgraph.c (cgraph_node::get_untransformed_body): Pass compressed
848         flag to lto_get_section_data.
849         * varpool.c (varpool_node::get_constructor): Likewise.
850         * lto-section-in.c (lto_get_section_data): Add new flag decompress.
851         (lto_free_section_data): Likewise.
852         (lto_get_raw_section_data): New function.
853         (lto_free_raw_section_data): New function.
854         (copy_function_or_variable): Copy sections w/o decompressing.
855         (lto_output_decl_state_refs): Picke compressed bit.
856         * lto-streamer.h (lto_in_decl_state): New flag compressed.
857         (lto_out_decl_state): Likewise.
858         (lto_get_section_data, lto_free_section_data): Update prototypes
859         (lto_get_raw_section_data, lto_free_raw_section_data): Declare.
860         (lto_write_raw_data): Declare.
861         (lto_begin_section): Remove FIXME.
862         (lto_write_raw_data): New function.
863         (lto_write_stream): Remove FIXME.
864         (lto_new_out_decl_state): Set compressed flag.
866 2015-12-10  Jan Hubicka  <hubicka@ucw.cz>
868         * tree.c (free_lang_data_in_type, find_decls_types_r): Also free
869         unnecesary type decls.
870         * tree.h (is_redundant_typedef): Declare.
871         * dwarf2out.c (is_redundant_typedef): Export; booleanize
873 2015-12-12  Eric Botcazou  <ebotcazou@adacore.com>
875         * config/sparc/sparc.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
876         * config/sparc/sparc.c (sparc_emit_set_const64): Remove code
877         conditionalized on HOST_BITS_PER_WIDE_INT == 32.
878         (sparc_cannot_force_const_mem) <CONST_WIDE_INT>: New case.
879         <CONST_DOUBLE>: Remove VOIDmode test.
880         (epilogue_renumber) <CONST_WIDE_INT>: New case.
881         (sparc_print_operand): Remove support for CONST_DOUBLE with VOIDmode.
882         (sparc_assemble_integer): Likewise.
883         (set_extends): Likewise.
884         (sparc_rtx_costs) <CONST_INT>: Use SMALL_INT.
885         <CONST_WIDE_INT>: New case.
886         <CONST_DOUBLE>: Remove support for VOIDmode.
887         <MULT>: Remove support for CONST_DOUBLE with VOIDmode.
888         * config/sparc/predicates.md (const_zero_operand): Add const_wide_int.
889         (const_all_ones_operand): Likewise.
890         (uns_small_int_operand): Remove const_double and code conditionalized
891         on HOST_BITS_PER_WIDE_INT == 32.
892         (arith_double_operand): Likewise.
893         (arith_double_add_operand): Likewise.
894         (input_operand): Remove support for CONST_DOUBLE with DImode.
895         * config/sparc/sparc.md (DImode CONST_INT splitter): Remove code
896         conditionalized on HOST_BITS_PER_WIDE_INT == 32.
897         (DFmode CONST_DOUBLE splitter): Likewise.
898         (*adddi3_insn_sp32): Likewise.
899         (*subdi3_insn_sp32): Likewise.
900         (DImode logical splitter): Likewise.
901         (DImode CONST_DOUBLE splitter): Delete.
903 2015-12-12  Paolo Bonzini  <bonzini@gnu.org>
905         PR sanitizer/68418
906         * c-family/c-ubsan.c (ubsan_instrument_shift): Disable
907         sanitization of left shifts for wrapping signed types as well.
909 2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
911         PR middle-end/68215
912         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
913         Do not gimplify the result.
914         (do_unop): Adjust call to tree_vec_extract.
915         (do_binop): Likewise.
916         (do_compare): Likewise.
917         (do_plus_minus): Likewise.
918         (do_negate): Likewise.
919         (expand_vector_condition): Likewise.
920         (do_cond): Likewise.
922 2015-12-11  Nathan Sidwell  <nathan@acm.org>
924         * config/nvptx/nvptx.h (RETURN_ADDR_REGNO): Delete.
925         (OUTGOING_ARG_POINTER_REGNUM): Delete.
926         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
927         (REGISTER_NAMES): Name static chain regs.
928         * config/nvptx/nvptx.c (nvptx_function_arg): Add ARG_UNUSED, merge
929         ifs.
930         (nvptx_incoming_arg): Merge ifs.
931         (nvptx_function_arg_boundary): Reimplement to avoid mixing units.
932         (nvptx_function_value): Tail call nvptx_libcall_value.
933         (nvptx_pass_by_reference): Add ARG_UNUSED.
934         (nvptx_static_chain): Use conditional op.
935         (nvptx_handle_kernel_attribute): Use VOID_TYPE_P.
937 2015-12-11  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
938             Dominique d'Humieres  <dominiq@lps.ens.fr>
940         PR target/26427
941         PR target/33120
942         PR testsuite/35710
943         * config/darwin.c (darwin_use_anchors_for_symbol_p): Fix indention and
944         trailing whitespace.
946 2015-12-11  Jan Beulich  <jbeulich@suse.com>
948         * cfgexpand.c (expand_one_var): Exit early for static and
949         external variables when adjusting stack alignment related.
951 2015-12-11  Dominik Vogt  <vogt@linux.vnet.ibm.com>
953         * config/s390/s390.c (s390_rtx_costs)
954         (s390_cannot_force_const_mem, legitimate_pic_operand_p)
955         (s390_preferred_reload_class, s390_reload_symref_address)
956         (legitimate_reload_constant_p, print_operand): Wide int support.
957         * config/s390/predicates.md ("const0_operand", "constm1_operand")
958         ("consttable_operand"): Likewise.
959         ("larl_operand"): Add a comment.
960         * config/s390/s390.h (TARGET_SUPPORTS_WIDE_INT): Enable wide int
961         support.
963 2015-12-11  Nathan Sidwell  <nathan@acm.org>
965         * config/nvptx/nvptx.h (TARGET_SUPPORTS_WIDE_INT): Define.
966         * config/nvptx/nvptx.c (nvptxx_assemble_integer): Return false for
967         unrecognizable RTX.
969 2015-12-11  Tom de Vries  <tom@codesourcery.com>
971         * passes.def: Remove unpaired TERMINATE_PASS_LIST.
973 2015-12-11  Michael Matz  <matz@suse.de>
975         * hash-map.h (hash_map::hash_map): Gather statistics only
976         when GATHER_STATISTICS is true.
977         * hash-set.h (hash_set::hash_set): Ditto.
978         * hash-table.h (hash_table::hash_table): Ditto.
979         (hash_table::create_ggc): Ditto.
981 2015-12-11  Martin Jambor  <mjambor@suse.cz>
983         PR ipa/68064
984         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Add checking
985         assert that align is nonzero.
987 2015-12-11  Dominik Vogt  <vogt@linux.vnet.ibm.com>
989         * config/s390/s390.c (s390_expand_setmem): Use new expanders.
990         * config/s390/s390.md ("*setmem_long")
991         ("*setmem_long_and", "*setmem_long_31z"): Fix warnings.
992         ("*setmem_long_and_31z"): New define_insn.
993         ("setmem_long_<P:mode>"): New expanders.
994         * (<modesize>): New mode attribute
996 2015-12-11  Dominik Vogt  <vogt@linux.vnet.ibm.com>
998         * config/s390/s390.md ("movstr", "*movstr"): Fix warning.
999         ("movstr<P:mode>"): New indirect expanders used by "movstr".
1001 2015-12-11  Martin Liska  <mliska@suse.cz>
1002             Uros Bizjak  <ubizjak@gmail.com>
1004         PR target/67484
1005         * config/i386/i386.c (ix86_valid_target_attribute_tree):
1006         Use ggc_strdup to copy option_strings to opts->x_ix86_arch_string and
1007         opts->x_ix86_tune_string.
1009 2015-12-11  Richard Biener  <rguenther@suse.de>
1011         * lto-streamer.h (lto_simple_header_with_strings): Remove
1012         main_size field already in lto_simple_header.
1014 2015-12-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
1016         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
1017         mask vectype.
1019 2015-12-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
1021         * config/i386/i386.c (ix86_get_mask_mode): Use scalar
1022         modes for 32 and 16 byte boolean vectors when possible.
1024 2015-12-11  Segher Boessenkool  <segher@kernel.crashing.org>
1026         PR rtl-optimization/67778
1027         PR rtl-optimization/68634
1028         * shrink-wrap.c (try_shrink_wrapping): Add a comment about why we want
1029         to put the prologue earlier.  When determining if an earlier block is
1030         suitable, make sure it dominates every block reachable from it.
1032 2015-12-11  Segher Boessenkool  <segher@kernel.crashing.org>
1034         PR rtl-optimization/68814
1035         * rtlanal.c (set_noop_p): Use BITS_BIG_ENDIAN instead of
1036         BYTES_BIG_ENDIAN.
1038 2015-12-10  Nathan Sidwell  <nathan@acm.org>
1040         * config/nvptx/nvptx.c (nvptx_function_arg,
1041         nvptx_function_incoming_arg, nvptx_function_arg_advance,
1042         nvptx_strict_argument_naming, nvptx_function_arg_boundary,
1043         nvptx_libcall_value, nvptx_function_value,
1044         nvptx_function_value_regno_p, nvptx_pass_by_reference,
1045         nvptx_return_in_memory, nvptx_promote_function_mode,
1046         nvptx_static_chain): Move earlier.
1047         (write_one_arg): Break out as helper fn for ...
1048         (write_arg): ... this new function.  Adjust all callers.
1050 2015-12-10  Jan Hubicka  <hubicka@ucw.cz>
1052         * lto-streamer-out.c (wrap_refs): Only wrap public decls.
1054 2015-12-10  Jan Hubicka  <hubicka@ucw.cz>
1056         * ipa-cp.c (ipcp_cloning_candidate_p): Use node->optimize_for_size_p.
1057         (good_cloning_opportunity_p): Likewise.
1058         (gather_context_independent_values): Do not return true when
1059         polymorphic call context is known or when we have known aggregate
1060         value of unused parameter.
1061         (estimate_local_effects): Try to create clone for all context
1062         when either some params are substituted or devirtualization is possible
1063         or some params can be removed; use local flag instead of
1064         node->will_be_removed_from_program_if_no_direct_calls_p.
1065         (identify_dead_nodes): Likewise.
1067 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
1069         * doc/invoke.texi (-Wall): Add -Wmisleading-indentation to the
1070         list.
1071         (-Wmisleading-indentation): Update documentation to reflect
1072         being enabled by -Wall in C/C++.
1074 2015-12-10  Vladimir Makarov  <vmakarov@redhat.com>
1076         PR rtl-optimization/68691
1077         * lra-spills.c (lra_final_code_change): Check pseudo occurrence
1078         number in non-debug insns and remove debug insns if necessary.
1080 2015-12-10  Martin Sebor  <msebor@redhat.com>
1082         * invoke.texi (Warning Options): Update -Wall options.  Clarify
1083         when some -Wextra options are enabled.  Add -Wplacement-new example.
1085 2015-12-10  Uros Bizjak  <ubizjak@gmail.com>
1087         * graphite-scop-detection.c (gather_bbs::before_dom_children):
1088         Change return type to an edge.  Always return NULL.
1090 2015-12-10  Jeff Law  <law@redhat.com>
1092         PR tree-optimization/68619
1093         * tree-ssa-dom.c (dom_opt_dom_walker::before_dom_children): Propgate
1094         return value from optimize_stmt.
1095         (dom_opt_dom_walker): Add new argument to dom_walker constructor.
1096         (pass_dominator:execute): If a block has an unreachable edge,
1097         remove all jump threads through any successor of the affected block.
1098         (record_equivalences_from_phis): Ignore alternative if the edge
1099         does not have EDGE_EXECUTABLE set.
1100         (single_incoming_edge_ignoring_loop_edges): Similarly.
1101         (optimize_stmt): If a gimple_code has a compile-time constant
1102         condition, return the edge taken for that constant value.  Also
1103         change the condition to true/false as necessary.
1104         * domwalk.h (dom_walker::dom_walker): Add new argument
1105         skip_unreachable_blocks.  Don't provide empty constructor body.
1106         (dom_walker::before_dom_children): Change return type.
1107         (dom_walker::bb_reachable): Declare new private method.
1108         (dom_walker::propagate_unreachable_to_edges): Likewise.
1109         (dom_walker::m_unreachable_dom): Declare new private data member.
1110         (dom_walker::m_skip_unreachable_blocks): Likewise.
1111         * domwalk.c: Include dumpfile.h.
1112         (dom_walker::dom_walker): New constructor.  Initialize private data
1113         members.  If needed, set EDGE_EXECUTABLE for all edges in the CFG,
1114         extracted from tree-ssa-sccvn.c.
1115         (dom_walker::bb_reachable): New method extracted from tree-ssa-sccvn.c
1116         (dom_walker::propagate_unreachable_to_edges): Likewise.
1117         (dom_walker::walk): Only call before_dom_children on reachable
1118         blocks.  If before_dom_children returns an edge, then clear
1119         EDGE_EXECUTABLE for all other outgoing edges from the same block.
1120         For unreachable blocks, call propagate_unreachable_to_edges.
1121         Similarly, only call after_dom_children on reachable blocks.  For
1122         unreachable blocks, conditionally clear m_unreachable_dom.
1123         * tree-ssa-sccvn.c (sccvn_dom_walker::unreachable_dom): Remove
1124         private data member.
1125         (sccvn_dom_walker::after_dom_children): Use methods from dom_walker
1126         class.
1127         (run_scc_vn): Likewise.
1128         (sccvn_dom_walker::before_dom_children): Likewise.  Return the taken
1129         outgoing edge if a COND, SWITCH, or GOTO are optimized.
1130         * compare-elim.c (find_comparison_dom_walker::before_dom_children):
1131         Change return type to an edge.  Always return NULL.
1132         * fwprop.c (single_def_use_dom_walker::before_dom_children): Likewise.
1133         * gimple-ssa-strength-reduction.c
1134         (find_candidates_dom_walker::before_dom_children): Likewise.
1135         * ipa-prop.c (analysis_dom_walker::before_dom_children): Likewise.
1136         (ipcp_modif_dom_walker::before_dom_children): Likewise.
1137         * tree-into-ssa.c (rewrite_dom_walker::before_dom_children): Likewise.
1138         (rewrite_update_dom_walker::before_dom_children): Likewise.
1139         (mark_def_dom_children::before_dom_children): Likewise.
1140         * tree-ssa-dse.c (dse_dom_walker::before_dom_children): Likewise.
1141         * tree-ssa-loop-im.c
1142         (invariantness_dom_walker::before_dom_children): Likewise.
1143         (move_computations_dom_walker::before_dom_walker): Likewise.
1144         * tree-ssa-phiopt.c
1145         (nontrapping_dom_walker::before_dom_children): Likewise.
1146         * tree-ssa-pre.c
1147         (eliminate_dom_walker::before_dom_children): Likewise.
1148         * tree-ssa-propagate.c
1149         (substitute_and_fold_dom_walker::before_dom_children): Likewise.
1150         * tree-ssa-strlen.c
1151         (strlen_dom_walker::before_dom_children): Likewise.
1152         * tree-ssa-uncprop.c
1153         (uncprop_dom_walker::before_dom_children): Likewise.
1155 2015-12-10  Jakub Jelinek  <jakub@redhat.com>
1157         PR rtl-optimization/68376
1158         PR rtl-optimization/68670
1159         * ifcvt.c (noce_try_abs): For one_cmpl allow < 0, >= 0
1160         or > -1 conditions regardless of negate, and disallow
1161         all other conditions.
1163 2015-12-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
1165         * tree-chkp.c (chkp_call_returns_bounds_p): Return true
1166         for VA_ARG call.
1167         (chkp_fixup_inlined_call): New.
1168         * tree-chkp.h (chkp_fixup_inlined_call): New.
1169         * tree-stdarg.c: Include tree-chkp.h.
1170         (expand_ifn_va_arg_1): Fixup bndret calls for removed
1171         VA_ARG calls.
1173 2015-12-10  Martin Jambor  <mjambor@suse.cz>
1175         * tree-inline.c (duplicate_remap_omp_clause_seq): New function.
1176         (replace_locals_op): Duplicate gimple sequences in OMP clauses.
1178 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
1180         * graphite-optimize-isl.c (scop_get_domains): Fix indentation.
1182 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
1184         * ifcvt.c (noce_try_inverse_constants): Fix indentation.
1186 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
1188         * regrename.c (scan_rtx_address): Fix indentation.
1190 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
1192         * function.c (locate_and_pad_parm): Fix indentation.
1194 2015-12-10  Richard Biener  <rguenther@suse.de>
1196         * tree-ssa-structalias.c (struct variable_info): Add
1197         is_ipa_escape_point flag.
1198         (new_var_info): Initialize to false.
1199         (find_func_aliases): Generate escape constraints for stores
1200         properly in IPA mode.
1201         (ipa_pta_execute): Compute is_ipa_escape_point for globals.
1203 2015-12-10  Claudiu Zissulescu  <claziss@synopsys.com>
1205         * config/arc/atomic.md: Add new file.
1207 2015-12-10  Claudiu Zissulescu  <claziss@synopsys.com>
1209         * config/arc/arc-protos.h (arc_expand_atomic_op): Prototype.
1210         (arc_split_compare_and_swap): Likewise.
1211         (arc_expand_compare_and_swap): Likewise.
1212         * config/arc/arc.c (arc_init): Check usage atomic option.
1213         (arc_pre_atomic_barrier): New function.
1214         (arc_post_atomic_barrier): Likewise.
1215         (emit_unlikely_jump): Likewise.
1216         (arc_expand_compare_and_swap_qh): Likewise.
1217         (arc_expand_compare_and_swap): Likewise.
1218         (arc_split_compare_and_swap): Likewise.
1219         (arc_expand_atomic_op): Likewise.
1220         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): New C macro.
1221         (ASM_SPEC): Enable mlock option when matomic is used.
1222         * config/arc/arc.md (UNSPEC_ARC_MEMBAR): Define.
1223         (VUNSPEC_ARC_CAS): Likewise.
1224         (VUNSPEC_ARC_LL): Likewise.
1225         (VUNSPEC_ARC_SC): Likewise.
1226         (VUNSPEC_ARC_EX): Likewise.
1227         * config/arc/arc.opt (matomic): New option.
1228         * config/arc/constraints.md (ATO): New constraint.
1229         * config/arc/predicates.md (mem_noofs_operand): New predicate.
1230         * doc/invoke.texi: Document -matomic.
1231         * config/arc/atomic.md: New file.
1233 2015-12-10  Richard Biener  <rguenther@suse.de>
1235         PR tree-optimization/68817
1236         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Detect
1237         gaps early.
1239 2015-12-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
1241         * tree-vect-stmts.c (vectorizable_assignment): Support
1242         useless boolean conversion.
1244 2015-12-10  Alan Lawrence  <alan.lawrence@arm.com>
1246         * doc/install.texi: Add note against GNAT 4.8 on ARM targets.
1248 2015-12-10  Jakub Jelinek  <jakub@redhat.com>
1250         PR tree-optimization/68785
1251         * gimple-fold.c (fold_ctor_reference): Pass return value from
1252         native_encode_expr to native_interpret_expr.
1253         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Likewise.
1255 2015-12-10  Richard Biener  <rguenther@suse.de>
1257         PR ipa/68331
1258         * tree-ssa-structalias.c (set_uids_in_ptset): Add fndecl
1259         parameter and make vars_contains_nonlocal properly have
1260         function-scope semantics in IPA mode.
1261         (find_what_var_points_to): Add fndecl parameter.
1262         (find_what_p_points_to): Likewise.
1263         (pt_solution_includes_global): Remove IPA PTA early out.
1264         (compute_points_to_sets): Adjust.
1265         (ipa_pta_execute): Likewise.  Clear final_solutions after
1266         each function.
1268 2015-12-10  Tom de Vries  <tom@codesourcery.com>
1270         PR ada/65102
1271         * doc/include/fdl.texi: Add nodefaultgnufreedocumentationlicensenode
1272         ifdef to allow disabling default @node GNU Free Documentation License.
1274 2015-12-10  Richard Biener  <rguenther@suse.de>
1276         * tree-ssa-structalias.c (create_function_info_for): Add missing
1277         constraint from nonlocal for DECL_RESULT.
1279 2015-12-10  Richard Biener  <rguenther@suse.de>
1281         * tree-if-conv.c: Include params.h.
1282         (ifcvt_memrefs_wont_trap): Use PARAM_ALLOW_STORE_DATA_RACES
1283         instead of flag_tree_loop_if_convert_stores to guard cases
1284         we'd introduce store-data-races.
1286 2015-12-10  Richard Biener  <rguenther@suse.de>
1288         PR ipa/68721
1289         * ipa-split.c (split_function): Record return value properly
1290         when the split part doesn't set it.
1292 2015-12-10  Richard Biener  <rguenther@suse.de>
1294         PR tree-optimization/68806
1295         * tree-vect-loop.c (vect_analyze_loop_2): Properly detect
1296         reduction chains and ignore SLP reductions.
1298 2015-12-10  Richard Biener  <rguenther@suse.de>
1300         * tree-if-conv.c (if_convertible_loop_p_1): Do not compute
1301         dependences.
1302         (if_convertible_loop_p): Adjust.
1304 2015-12-10  Tom de Vries  <tom@codesourcery.com>
1306         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Remove
1307         invalid assert.
1309 2015-12-10  Martin Liska  <mliska@suse.cz>
1311         * tree-vect-data-refs.c: Free an overwritten dataref.
1313 2015-12-09  John David Anglin  <danglin@gcc.gnu.org>
1315         PR target/68729
1316         * config/pa/pa.c (pa_emit_move_sequence): Don't check that mode is
1317         consistent with modes of the input and output operands when doing
1318         reloads to and from floating point registers.  Do reload for all
1319         address forms.
1321 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
1323         PR ipa/61886
1324         PR middle-end/25140
1325         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use compare_base_decls
1326         (nonoverlapping_component_refs_of_decl_p): Update sanity check.
1327         (decl_refs_may_alias_p): Use compare_base_decls.
1328         * alias.c: Include cgraph.h
1329         (get_alias_set): Add cut-off for recursion.
1330         (rtx_equal_for_memref_p): Use rtx_equal_for_memref_p.
1331         (compare_base_decls): New function.
1332         (base_alias_check): Likewise.
1333         (memrefs_conflict_p): Likewise.
1334         (nonoverlapping_memrefs_p): Likewise.
1335         * alias.h (compare_base_decls): Declare.
1337 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
1339         PR ipa/61886
1340         * ipa-visibility.c (function_and_variable_visibility): Fix vtable
1341         rewritting guard.
1343 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
1345         PR ipa/61886
1346         PR middle-end/25140
1347         * ipa-reference.c (ipa_reference_get_not_read_global,
1348         ipa_reference_get_not_read_global): Fix WRT aliases.
1349         (is_improper): Break out from ...
1350         (is_proper_for_analysis): ... here; fix WRT aliases.
1351         (analyze_function, generate_summary,
1352         ipa_reference_write_optimization_summary,
1353         ipa_reference_read_optimization_summary): Use ipa_reference_var_uid.
1354         * ipa-refrence.h (ipa_reference_var_uid): New inline.
1355         * tree-ssa-alias.c: Revert my accidental previous commit.
1356         (ref_maybe_used_by_call_p_1,
1357         call_may_clobber_ref_p_1): Use ipa_reference_var_uid.
1359 2015-12-09  Andreas Tobler  <andreast@gcc.gnu.org>
1361         * config/rs6000/freebsd64.h: Remove the redefinition of WCHAR_TYPE.
1363 2015-12-09  Aditya Kumar  <aditya.k7@samsung.com>
1364             Sebastian Pop  <s.pop@samsung.com>
1366         * graphite-optimize-isl.c: Include isl/ast_build.h
1367         (optimize_isl): Set several isl_options_set_* options.
1369 2015-12-09  Aditya Kumar  <aditya.k7@samsung.com>
1370             Sebastian Pop  <s.pop@samsung.com>
1372         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Iterate in
1373         the same order as adding data reference access functions.
1375 2015-12-09  Aditya Kumar  <aditya.k7@samsung.com>
1376             Sebastian Pop  <s.pop@samsung.com>
1378         * graphite-optimize-isl.c (optimize_isl): Improve dump message.
1380 2015-12-09  Marek Polacek  <polacek@redhat.com>
1382         PR tree-optimization/66949
1383         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Don't call
1384         single_non_singleton_phi_for_edges to get the PHI from
1385         factor_out_conditional_conversion.  Use NULL_TREE instead of NULL.
1386         (factor_out_conditional_conversion): Adjust declaration.  Make it
1387         return the newly-created PHI.
1389 2015-12-09  James Greenhalgh  <james.greenhalgh@arm.com>
1391         * config/aarch64/aarch64-protos.h
1392         (aarch64_cannot_change_mode_class): Bring back.
1393         * config/aarch64/aarch64.c
1394         (aarch64_cannot_change_mode_class): Likewise.
1395         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Likewise.
1396         * config/aarch64/aarch64.md (aarch64_movdi_<mode>low): Use
1397         zero_extract rather than truncate.
1398         (aarch64_movdi_<mode>high): Likewise.
1400 2015-12-09  Jakub Jelinek  <jakub@redhat.com>
1402         PR tree-optimization/68786
1403         * tree-if-conv.c: Include builtins.h.
1404         (predicate_mem_writes): Put result of get_object_alignment (ref)
1405         into second argument's value.
1406         * tree-vect-stmts.c (vectorizable_mask_load_store): Put minimum
1407         pointer alignment into second argument's value.
1408         * tree-data-ref.c (get_references_in_stmt): Use value of second
1409         argument for build_aligned_type, and only the type to build
1410         a zero second argument for MEM_REF.
1411         * internal-fn.c (expand_mask_load_optab_fn,
1412         expand_mask_store_optab_fn): Likewise.
1414 2015-12-09  Richard Biener  <rguenther@suse.de>
1416         PR tree-optimization/68583
1417         * tree-if-conv.c (if_convertible_phi_p): Drop
1418         flag_tree_loop_if_convert_stores check in favor of the
1419         existing any_mask_load_store check.
1420         (insert_gimplified_predicates): Likewise.
1421         (combine_blocks): Likewise.
1422         (tree_if_conversion): Likewise.
1423         (ifcvt_memrefs_wont_trap): Properly check
1424         flag_tree_loop_if_convert_stores in all places that can end
1425         up introducing store-data-races.
1426         (if_convertible_gimple_assign_stmt_p): Remove restriction
1427         on flag_tree_loop_if_convert_stores for stores we can if-convert
1428         without introducing store-data-races.  Force versioning for
1429         all if-converted stores.
1431 2015-12-09  Tom de Vries  <tom@codesourcery.com>
1433         PR tree-optimization/68716
1434         * tree-ssa-structalias.c (find_func_clobbers): Fix handling of
1435         BUILT_IN_GOMP_PARALLEL and BUILT_IN_GOACC_PARALLEL.
1437 2015-12-09  Martin Liska  <mliska@suse.cz>
1439         * hash-traits.h (struct typed_delete_remove): New function.
1440         (typed_delete_remove ::remove): Likewise.
1441         * tree-ssa-loop-ivopts.c (struct iv_common_cand): Replace
1442         auto_vec with vec.
1443         (record_common_cand): Replace XNEW with operator new.
1445 2015-12-09  Martin Liska  <mliska@suse.cz>
1447         * tree-if-conv.c (ifcvt_local_dce): Replace vec with auto_vec.
1449 2015-12-09  Martin Liska  <mliska@suse.cz>
1451         PR ipa/68790
1452         * ipa-icf.c (sem_function::param_used_p): Return true
1453         if ipa_node_params_sum equals to NULL.
1455 2015-12-09  Richard Biener  <rguenther@suse.de>
1457         PR tree-optimization/68583
1458         * tree-if-conv.c (ifc_dr): Make flags bool, add w_unconditionally
1459         flag and rename predicates to w_predicate, rw_predicate and
1460         base_w_predicate.
1461         (DR_WRITTEN_AT_LEAST_ONCE): Rename to ...
1462         (DR_BASE_W_UNCONDITIONALLY): ... this.
1463         (DR_W_UNCONDITIONALLY): Add.
1464         (hash_memrefs_baserefs_and_store_DRs_read): Adjust.  Compute
1465         unconditionally written separately from read or written.
1466         (ifcvt_memrefs_wont_trap): Properly treat reads.
1467         (ifcvt_could_trap_p): Inline ...
1468         (if_convertible_gimple_assign_stmt_p): ... here.  Refactor
1469         to avoid code duplication.
1470         (if_convertible_loop_p_1): Adjust and properly initialize
1471         predicates.
1473 2015-12-09  Richard Biener  <rguenther@suse.de>
1475         * tree-vect-stmts.c (vectorizable_load): Set new vinfo only
1476         if it was not yet set.
1477         * tree-vectorizer.h (set_vinfo_for_stmt): Assert we don't
1478         overwrite an existing entry.
1480 2015-12-09  Chung-Lin Tang  <cltang@codesourcery.com>
1482         * c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.
1483         * c/c-parser.c (c_parser_oacc_wait): Add add_stmt() call.
1484         * cp/parser.c (cp_parser_oacc_wait): Add finish_expr_stmt() call.
1486 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
1488         PR ipa/61886
1489         * symtab.c (symtab_node::equal_address_to): New parameter
1490         MEMORY_ACCESSED.
1491         * cgraph.h (symtab_node::equal_address_to): Update prototype.
1493 2015-12-08  DJ Delorie  <dj@redhat.com>
1495         * config/rx/rx.opt (-mjsr): Add.
1496         * config/rx/predicates.md (rx_call_operand): Avoid overflowing
1497         calls when -mjsr.
1498         * config/rx/rx.c (rx_function_ok_for_sibcall): Likewise for
1499         overflowing jumps.
1500         * doc/invoke.texi (-mjsr): Document it.
1502 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
1504         PR ipa/61886
1505         * lto-streamer.h (lto_symtab_merge_decls, lto_symtab_merge_symbols,
1506         lto_symtab_prevailing_decl): MOve to lto-symtab.h.
1507         * lto-streamer-out.c (DFS::DFS_write_tree_body): Check that
1508         DECL_ABSTRACT_ORIGIN is not error_mark_node.
1510 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
1512         * tree-nested.c (convert_tramp_reference_stmt): Fix indentation.
1514 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
1516         * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Fix
1517         indentation.
1519 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
1521         PR ipa/61886
1522         * lto-cgraph.c (compute_ltrans_boundary): Add transparent alias targets
1523         into the boundary.
1525 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
1527         PR ipa/61886
1528         * varpool.c (varpool_node::get_availability): Recurse only on
1529         weakrefs with definition in the target.
1530         (symbol_table::remove_unreferenced_decls): Keep aliases in the boundary.
1532 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
1534         PR ipa/61886
1535         * ipa-visibility.c (can_replace_by_local_alias): Look through
1536         transparent aliases; refuse weakrefs.
1537         (update_visibility_by_resolution_info): Skip transparent aliases in the
1538         analysis part
1540 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
1542         PR ipa/61886
1543         * symtab.c (symtab_node::verify_base): Fix thinko in a conditional.
1544         (symtab_node::noninterposable_alias): Do not accept transparent
1545         aliases.
1547 2015-12-08  Nathan Sidwell  <nathan@acm.org>
1549         * config/nvptx/nvptx.c (decl_chunk_size, decl_chunk_mode,
1550         decl_offset, init_part, object_size, object_finished): Replace
1551         with ...
1552         (struct init_frag): ... this new struct variable.
1553         (begin_decl_field, output_decl_chunk): Replace with ...
1554         (output_init_frag): ... this new function.
1555         (nvptx_assemble_value): Reimplement.
1556         (nvptx_assemble_integer, nvptx_output_skip): Adjust.
1557         (nvptx_assemble_decl_begin, nvptx_assemble_decl_end): Adjust.
1558         (nvptx_output_aligned_decl): Call nvptx_assemble_decl_end.
1560 2015-12-08  Eric Botcazou  <ebotcazou@adacore.com>
1562         PR middle-end/68291
1563         PR middle-end/68292
1564         * cfgexpand.c (set_rtl): Always accept mode mismatch for SSA names
1565         with BLKmode promoted mode based on RESULT_DECLs.
1567 2015-12-08  Uros Bizjak  <ubizjak@gmail.com>
1569         PR target/68701
1570         * config/i386/i386.c (ix86_option_override_internal): Enable
1571         -maccumulate-outgoing-args when %ebp is fixed due to stack
1572         realignment requirements.
1574 2015-12-08  Tom de Vries  <tom@codesourcery.com>
1576         PR tree-optimization/68640
1577         * omp-low.c (install_var_field): Clear the restrict qualifier on the var
1578         type.
1580 2015-12-08  Kirill Yukhin  <kirill.yukhin@intel.com>
1582         * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode>_1"): Fix
1583         assembler to make source always 128bit.
1585 2015-12-08  Jakub Jelinek  <jakub@redhat.com>
1587         PR c/48088
1588         PR c/68657
1589         * common.opt (Wframe-larger-than=): Add Warning.
1590         * opts.h (control_warning_option): Add ARG argument.
1591         * opts-common.c (cmdline_handle_error): New function.
1592         (read_cmdline_option): Use it.
1593         (control_warning_option): Likewise.  Add ARG argument.
1594         If non-NULL, decode it if needed and pass through
1595         to handle_generated_option.  Handle CLVC_ENUM like
1596         CLVC_BOOLEAN.
1597         * opts.c (common_handle_option): Adjust control_warning_option
1598         caller.
1599         (enable_warning_as_error): Likewise.
1601 2015-12-08  Matthew Wahab  <matthew.wahab@arm.com>
1603         * config/aarch64/aarch64-options-extensions.def: Remove
1604         AARCH64_FL_RDMA from "fp" and "simd".  Remove "pan", "lor",
1605         "rdma".
1606         * config/aarch64/aarch64.h (AARCH64_FL_PAN): Remove.
1607         (AARCH64_FL_LOR): Remove.
1608         (AARCH64_FL_RDMA): Remove.
1609         (AARCH64_FL_V8_1): New.
1610         (AARCH64_FL_FOR_AARCH8_1): Replace AARCH64_FL_PAN, AARCH64_FL_LOR
1611         and AARCH64_FL_RDMA with AARCH64_FL_V8_1.
1612         (AARCH64_ISA_RDMA): Replace AARCH64_FL_RDMA with AARCH64_FL_V8_1.
1613         * doc/invoke.texi (AArch64 -march): Rewrite initial paragraph and
1614         section on -march=native.  Group descriptions of permitted
1615         architecture names together.  Expand description of
1616         -march=armv8.1-a.
1617         (AArch64 -mtune): Slightly rework section on -march=native.
1618         (AArch64 -mcpu): Slightly rework section on -march=native.
1619         (AArch64 Feature Modifiers): Remove "pan", "lor" and "rdma".
1620         State that -march=armv8.1-a enables "crc" and "lse".
1622 2015-12-08  Eric Botcazou  <ebotcazou@adacore.com>
1624         * doc/invoke.texi (SPARC options): Fix typo.
1626 2015-12-08  Eric Botcazou  <ebotcazou@adacore.com>
1628         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
1629         (output_probe_stack_range): Rotate the loop and simplify.
1631 2015-12-08  Uros Bizjak  <ubizjak@gmail.com>
1633         * config/i386/i386.c (ix86_emit_swsqrtsf): Cleanup
1634         infinity filterning code.
1636 2015-12-08  Ilya Enkovich  <enkovich.gnu@gmail.com>
1638         PR tree-optimization/68766
1639         * tree-vectorizer.c (vectorize_loops): Check for
1640         if-converted loops when debug counters are used.
1642 2015-12-07  DJ Delorie  <dj@redhat.com>
1644         * config/rl78/constraints.md (Wfr): Change to be a non-memory
1645         constraint.
1646         * config/rl78/rl78-protos.h (rl78_one_far_p): Declare.
1647         * config/rl78/rl78.c (rl78_one_far_p): Define.
1648         * config/rl78/rl78-virt (movqi_virt): Fix far memory
1649         alternatives.
1650         (movhi_virt): Likewise.
1651         (zero_extendqihi2_virt): Likewise.
1652         (extendqihi2_virt): Likewise.
1653         (add<mode>3_virt): Likewise.
1654         (sub<mode>3_virt): Likewise.
1655         (andqi3_virt): Likewise.
1656         (iorqi3_virt): Likewise.
1657         (xorqi3_virt): Likewise.
1658         * config/rl78/rl78-real.md (bf,br): Use long forms to avoid reloc
1659         overflow in large files.
1661 2015-12-07  Eric Botcazou  <ebotcazou@adacore.com>
1663         PR target/63668
1664         * doc/invoke.texi (SPARC options): Document -mstd-struct-return.
1665         * config/sparc/sparc.c (sparc_struct_value_rtx): Minor tweaks.
1666         * config/sparc/sparc.h (CALL_REALLY_USED_REGISTERS): Define.
1667         * config/sparc/sparc.opt (mstd-struct-return): Accept negative.
1669 2015-12-07  Steve Ellcey  <sellcey@imgtec.com>
1671         * reorg.c (optimize_skip): Do not put frame related instructions
1672         in annulled delay slots.
1673         (steal_delay_list_from_target): Ditto.
1674         (fill_slots_from_thread): Ditto.
1676 2015-12-07  Evandro Menezes  <e.menezes@samsung.com>
1678         * config/aarch64/aarch64-cores.def: Use the Exynos M1 sched model.
1679         * config/aarch64/aarch64.md: Include "exynos-m1.md".
1680         * config/arm/arm.md: Likewise.
1681         * config/arm/exynos-m1.md: New file.
1683 2015-12-07  Jan Hubicka  <hubicka@ucw.cz>
1685         * fold-const.c (operand_equal_p): Drop flag_strict_aliasing check.
1687 2015-12-07  Nathan Sidwell  <nathan@acm.org>
1689         * config//nvptx/nvptx.c (write_return): New.
1690         (write_fn_proto, nvptx_declare_function_name): Call it.
1692 2015-12-07  Jan Hubicka  <hubicka@ucw.cz>
1694         PR ipa/61886
1695         * symtab.c (ultimate_transparent_alias_target): New inline function.
1696         (symbol_table::assembler_names_equal_p): New method; break out from ...
1697         (symbol_table::decl_assembler_name_equal): ... here.
1698         (symbol_table::change_decl_assembler_name): Also update names and
1699         translation links of transparent aliases.
1700         (symtab_node::dump_base): Dump transparent_alias.
1701         (symtab_node::verify_base): Implement basic transparent alias
1702         verification.
1703         (symtab_node::make_decl_local): Support localization of weakrefs;
1704         recurse to transparent aliases; set TREE_STATIC.
1705         (symtab_node::ultimate_alias_target_1): Handle visibility of
1706         transparent aliases.
1707         (symtab_node::resolve_alias): New parmaeter transparent; handle
1708         transparent aliases; recurse to aliases of aliases to fix comdat
1709         groups.
1710         (symtab_node::get_partitioning_class): Handle transparent aliases.
1711         * ipa-visibility.c (cgraph_externally_visible_p,
1712         varpool_node::externally_visible_p): Visibility of transparent alias
1713         depends on its target.
1714         (function_and_variable_visibility): Do not tweak visibility of
1715         transparent laiases.
1716         (function_and_variable_visibility): Likewise.
1717         * ipa.c (symbol_table::remove_unreachable_nodes): Clear
1718         transparent_alias flag.
1719         * alias.c (cgraph_node::create_alias, cgraph_node::get_availability):
1720         Support transparent aliases.
1721         * cgraph.h (symtab_node): Update prototype of resolve_alias;
1722         add transparent_alias flag.
1723         (symbol_table: Add assembler_names_equal_p.
1724         (symtab_node::real_symbol_p): Skip transparent aliases.
1725         * cgraphunit.c (cgraph_node::reset): Reset transparent_alias flag.
1726         (handle_alias_pairs): Set transparent_alias for weakref.
1727         (cgraph_node::assemble_thunks_and_aliases): Do not asemble transparent
1728         aliases.
1729         * lto-cgraph.c (lto_output_node): When outputting same_comdat_group
1730         skip symbols not put into boundary; stream transparent_alias.
1731         (lto_output_varpool_node): Likewise.
1732         (input_overwrite_node, input_varpool_node): Stream transparent alias.
1733         * varpool.c (ctor_for_folding, varpool_node::get_availability,
1734         varpool_node::assemble_aliases,
1735         symbol_table::remove_unreferenced_decls): Handle transparent aliase.
1736         (varpool_node::create_alias): Set transparent_alias.
1738 2015-12-07  Eric Botcazou  <ebotcazou@adacore.com>
1740         PR middle-end/68291
1741         PR middle-end/68292
1742         * cfgexpand.c (set_rtl): Always accept PARALLELs with BLKmode for
1743         SSA names based on RESULT_DECLs.
1744         * function.c (expand_function_start): Do not create BLKmode REGs
1745         for GIMPLE registers when coalescing is enabled.
1747 2015-12-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1749         * final.c (shorten_branches): Fix check for basic asm.
1750         * ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for
1751         basic asm.
1753 2015-12-07  Nathan Sidwell  <nathan@acm.org>
1755         * config/nvptx/nvptx.c (nvptx_output_call_insn): Emit trap after no
1756         return call.
1758 2015-12-07  David Malcolm  <dmalcolm@redhat.com>
1760         * pretty-print.c (text_info::set_range): Rename to...
1761         (text_info::set_location): ...this, converting 2nd param
1762         from source_range to a location_t.
1763         * pretty-print.h (text_info::set_location): Convert
1764         from inline function to external definition.
1765         (text_info::set_range): Delete.
1767 2015-12-07  Nathan Sidwell  <nathan@acm.org>
1769         * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Look inside
1770         complex and vector types.  Cope with packed structs.
1772 2015-12-07  Kirill Yukhin  <kirill.yukhin@intel.com>
1774         PR target/68627
1775         * config/i386/sse.md: Make 'v' alternative work on 'avx512f' ISA only.
1776         Force destination to 512 bits register.
1778 2015-12-07  Kirill Yukhin  <kirill.yukhin@intel.com>
1780         PR target/68633
1781         * config/i386/sse.md (define_insn "kunpckhi"): Fix operands order.
1782         (define_insn "kunpcksi"): Ditto.
1783         (define_insn "kunpckdi"): Ditto.
1785 2015-12-06  Kaz Kojima  <kkojima@gcc.gnu.org>
1787         * config/sh/sh.md (rsqrtsf2): Adjust for canonical form with unspec.
1789 2015-12-06  Victoria Stepanyan  <victoria.stepanyan@amd.com>
1791         * common/config/i386/i386-common.c
1792         (OPTION_MASK_ISA_CLZERO_SET): New.
1793         (ix86_handle_option): Handle clzero.
1794         * config.gcc (i[34567]86-*-*): Add clzerointrin.h,
1795         (x86_64-*-*): Likewise.
1796         * config/i386/clzerointrin.h: New header.
1797         * config/i386/cpuid.h (bit_CLZERO):  Define.
1798         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1799         CLZERO support.
1800         * config/i386/i386.opt (clzero): New.
1801         * config/i386/i386-c.c: Define __CLZERO__ if needed.
1802         * config/i386/i386.c (ix86_target_string): Define -mclzero option.
1803         (PTA_CLZERO): New.
1804         (ix86_option_override_internal): Handle new option.
1805         (processor_alias_table): Added PTA_CLZERO.
1806         (ix86_valid_target_attribute_inner_p): Add OPT_mclzero.
1807         (ix86_builtins): Add IX86_BUILTIN_CLZERO, IX86_BUILTIN_CLZERO.
1808         (ix86_expand_builtin): Handle IX86_BUILTIN_CLZERO and
1809         IX86_BUILTIN_CLZERO  built-ins.
1810         * config/i386/i386.h (TARGET_CLZERO):  New.
1811         * config/i386/i386.md (unspecv): Add UNSPEC_CLZERO.
1812         (clzero):  New pattern.
1813         (clzero_<mode>): New pattern.
1814         * config/i386/x86intrin.h: Include clzerointrin.h.
1815         * doc/extend.texi: Document clzero builtins.
1816         * doc/invoke.texi: Document -mclzero option.
1818 2015-12-05  Jan Hubicka  <hubicka@ucw.cz>
1820         * ipa-icf.c (sem_function::merge): Check that local_original exists.
1822 2015-12-05  David Edelsohn  <dje.gcc@gmail.com>
1824         PR target/68609
1825         * config/rs6000/rs6000-protos.h (rs6000_emit_swsqrt): Rename and add
1826         bool arguement.
1827         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Rename. Add
1828         non-reciporcal path.
1829         * config/rs6000/rs6000.md (rsqrt<mode>2): Call new function name.
1830         (sqrt<mode>2): Replace define_insn with define_expand that may call
1831         rs6000_emit_swsqrt.
1833 2015-12-04  Aditya Kumar  <aditya.k7@samsung.com>
1834             Sebastian Pop  <s.pop@samsung.com>
1836         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1837         Improve debug.
1838         (get_rename_from_scev): Check that all the ops in an expression
1839         have their uses dominated by corresponding defs.
1841 2015-12-04  Aditya Kumar  <aditya.k7@samsung.com>
1842             Sebastian Pop  <s.pop@samsung.com>
1844         PR tree-optimization/68693
1845         * graphite-scop-detection.c (dot_all_sese): New
1846         (dot_all_scops_1): Renamed to dot_all_sese.
1847         (dot_all_scops): Removed.
1848         (dot_sese): New.
1849         (dot_cfg): New.
1850         (scop_detection::get_nearest_dom_with_single_entry): Check that
1851         preds are from different loop levels.
1852         (scop_detection::get_nearest_pdom_with_single_exit): Check that
1853         succs are from different loop levels.
1854         (scop_detection::print_sese): Inlined.
1855         (scop_detection::print_edge): New.
1856         (scop_detection::merge_sese): Added dumps.
1857         * graphite.h: Add declarations.
1859 2015-12-04  James Greenhalgh  <james.greenhalgh@arm.com>
1861         * config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
1862         constraints.
1864 2015-12-04  Vladimir Makarov  <vmakarov@redhat.com>
1866         PR rtl-optimization/68349
1867         * lra-eliminations.c (move_plus_up): New function.
1868         (lra_eliminate_regs_1): Use the function.
1870 2015-12-04  Nathan Sidwell  <nathan@acm.org>
1872         * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): New, replacing ...
1873         (init_output_initializer): ... this.
1874         (nvptx_output_aligned_decl, nvptx_asm_declare_constant_name,
1875         nvptx_declare_object_name, nvptx_assemble_undefined_decl): Use
1876         nvptx_assemble_decl_begin.
1878 2015-12-04  Dmitry Vyukov  <dvyukov@google.com>
1880         * sancov.c: New file.
1881         * Makefile.in (OBJS): Add sancov.o.
1882         * invoke.texi (-fsanitize-coverage=trace-pc): Describe.
1883         * passes.def (sancov_pass): Add.
1884         * tree-pass.h  (sancov_pass): Add.
1885         * common.opt (-fsanitize-coverage=trace-pc): Add.
1886         * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_PC): Add.
1887         * builtins.def (DEF_SANITIZER_BUILTIN): Enable for
1888         flag_sanitize_coverage.
1890 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
1892         PR middle-end/65958
1893         * config/arm/unspecs.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
1894         (unspecv): Add VUNSPEC_PROBE_STACK_RANGE.
1895         * config/arm/arm.md (probe_stack_range): Adjust.
1896         * config/aarch64/aarch64.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
1897         (unspecv): Add UNSPECV_PROBE_STACK_RANGE.
1898         (probe_stack_range_<PTR:mode>): Adjust.
1900 2015-12-04  David Malcolm  <dmalcolm@redhat.com>
1902         * convert.c (convert_to_real_1): When converting from a
1903         REAL_TYPE, preserve the location of EXPR in the result.
1904         * tree.c (get_pure_location): Make non-static.
1905         (set_source_range): Return the resulting location_t.
1906         (make_location): New function.
1907         * tree.h (get_pure_location): New decl.
1908         (get_finish): New inline function.
1909         (set_source_range): Convert return type from void to location_t.
1910         (make_location): New decl.
1912 2015-12-04  Jakub Jelinek  <jakub@redhat.com>
1914         PR c/68656
1915         * toplev.c (init_asm_output): Pass UNKNOWN_LOCATION instead of
1916         input_location to inform.
1917         (process_options): Use warning_at (UNKNOWN_LOCATION instead of
1918         warning ( and error_at (UNKNOWN_LOCATION instead of error (.
1919         Pass UNKNOWN_LOCATION instead of input_location to fatal_error.
1921 2015-12-04  Jan Hubicka  <hubicka@ucw.cz>
1923         * ipa-inline.c (can_inline_edge_p) Use merged_comdat.
1924         * cgraphclones.c (cgraph_node::create_clone): Use merged_comdat.
1925         * cgraph.c (cgraph_node::dump): Dump merged_comdat.
1926         * ipa-icf.c (sem_function::merge): Drop merged_comdat when merging
1927         comdat and non-comdat.
1928         * cgraph.h (cgraph_node): Rename merged to merged_comdat.
1929         * ipa-inline-analysis.c (simple_edge_hints): Check both merged_comdat
1930         and icf_merged.
1932 2015-12-04  Segher Boessenkool  <segher@kernel.crashing.org>
1934         * config/rs6000/rs6000.md (cstore<mode>4_unsigned): Use gpc_reg_operand
1935         instead of register_operand.  Remove empty constraints.  Use std::swap.
1936         (cstore_si_as_di, cstore<mode>4_signed_imm,
1937         cstore<mode>4_unsigned_imm, cstore<mode>4 for GPR): Use
1938         gpc_reg_operand instead of register_operand.
1939         (cstore<mode>4 for FP): Use gpc_reg_operand instead of
1940         register_operand.  Remove empty constraints.
1942 2015-12-04  Nick Clifton  <nickc@redhat.com>
1944         * config.gcc (extra_gcc_objs): Define for MSP430.
1945         * common/config/msp430/msp430-common.c (msp430_handle_option):
1946         Pass both -mmcu and -mcpu on to the back end if they are both defined.
1947         * config/msp430/msp430.c (hwmult_name): New function.
1948         (msp430_option_override): If an unrecognised MCU name is
1949         detected only warn if the user has not provided suitable
1950         -mhwmult and -mcpu options.  Use msp430_warn_mcu to control
1951         warning messages.  Generate warnings about conflicts between
1952         -mmcu and -mcpu and -mhwmult options.
1953         If neither -mcpu nor -mmcu have been specified but -mhwmult=
1954         f5series has the select the 430X isa.
1955         (msp430_no_hwmult): If -mmcu has not been specified and
1956         msp430_hwmult_type is AUTO then return true.
1957         * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Define.
1958         (LIB_SPEC): Add hardware multiply library selection.
1959         * config/msp430/t-msp430: Delete hardware multiply multilibs.
1960         Add rule to build driver-msp430.o
1961         * config/msp430/driver-msp430.c: New file.
1962         * config/msp430/msp430.opt (warn-mcu): New option.
1963         * doc/invoke.texi: Update description of -mhwmult=auto.
1964         Document -mwarn-mcu option.
1966 2015-12-04  Segher Boessenkool  <segher&kernel.crashing.org>
1968         * config/rs6000/rs6000.md (cstore<mode>4_signed): New expander.
1969         (cstore<mode>4): Call it.
1971 2015-12-04  Jakub Jelinek  <jakub@redhat.com>
1973         * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
1975         PR tree-optimization/68680
1976         * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
1977         BUILT_IN_ALLOCA{,_WITH_ALIGN}.  Don't check for __builtin_alloca
1978         by name.
1980         PR tree-optimization/68671
1981         * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
1982         blocks starting with the successor of first bb we've modified
1983         and ending with last_bb call reset_flow_sensitive_info_in_bb.
1985 2015-12-04  Jeff Law  <law@redhat.com>
1987         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
1988         indicating if a gimple conditional was optimized to true/false.
1989         (reassociate_bb): Bubble up return value from
1990         maybe_optimize_range_tests.
1991         (do_reassoc): Similarly, but for reassociate_bb.
1992         (execute_reassoc): Return TODO_cleanup_cfg as needed.
1994 2015-12-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1996         * config/aarch64/aarch64.c (aarch64_override_options_internal):
1997         Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
1998         * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
1999         does not affect the assembler directives.
2001 2015-12-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2003         * config/s390/s390.c (s390_asm_file_start): Implement hook function to
2004         emit .machine and .machinemode to the top of the assembler file.
2005         (TARGET_ASM_FILE_START): Provide target hook.
2006         (s390_asm_output_machine_for_arch): Protect with
2007         HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
2009 2015-12-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2011         * config/s390/s390.opt (s390_arch_string): Remove.
2012         (s390_tune_string): Likewise.
2013         (s390_cost_pointer): Add Variable.
2014         (s390_tune_flags): Add TargetVariable.
2015         (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
2016         (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
2017         (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
2018         (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
2019         (mwarn-framesize=): Save option.
2020         (mno-stack-guard, mno-stack-guard): New option.
2021         (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
2022         (mwarn-framesize=): Convert to UInteger (negative values are rejected
2023         now).
2024         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
2025         macros changeable through the GCC target pragma into a separate
2026         function.
2027         (s390_cpu_cpp_builtins): Likewise.
2028         (s390_pragma_target_parse): New function, implement GCC target pragma
2029         if enabled.
2030         (s390_register_target_pragmas): Register s390_pragma_target_parse if
2031         available.
2032         * common/config/s390/s390-common.c (s390_handle_option):
2033         Export.
2034         Move setting s390_arch_flags to s390.c.
2035         Remove s390_tune_flags.
2036         Allow 0 as argument to -mstack-size (switch to default value).
2037         Allow 0 as argument to -mstack-guard (switch off).
2038         Remove now unnecessary explicit parsing code for -mwarn-framesize.
2039         * config/s390/s390-protos.h (s390_handle_option): Export.
2040         (s390_valid_target_attribute_tree): Export.
2041         (s390_reset_previous_fndecl): Export.
2042         * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
2043         and end of HTM and VX builtins.
2044         (s390_asm_output_function_prefix): Declare hook.
2045         (s390_asm_declare_function_size): Likewise.
2046         * config/s390/s390-builtins.h (B_GROUP): Use macro.
2047         * config/s390/s390-opts.h: Add comment about processor_type usage.
2048         * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
2049         (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
2050         (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
2051         (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
2052         (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
2053         (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
2054         (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
2055         (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
2056         (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
2057         (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
2058         (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
2059         (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
2060         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
2061         * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
2062         undefined.
2063         (vec_all_nan): Rewrite as macro using statement expressions to avoid
2064         that the vector keyword needs to be defined when including the file.
2065         (vec_all_numeric): Likewise.
2066         (vec_any_nan): Likewise.
2067         (vec_any_numeric):  Likewise.
2068         * config/s390/s390.c (s390_previous_fndecl): New static variable.
2069         (s390_set_current_function): New function.
2070         (s390_cost): Wrapper macro to allow defining the cost table pointer in
2071         the options file.
2072         (processor_table): Table for march= and mtune= parsing.
2073         (s390_init_builtins): Enable all builtins and types unconditionally.
2074         (s390_expand_builtin): Generate an error message if builtin is not
2075         supported by current options.
2076         Correct an error message.
2077         (s390_function_specific_restore): New function to set s390_cost.
2078         (s390_asm_output_machine_for_arch): New function for emitting .machine
2079         and .machinmode directives to the assembler file.
2080         (s390_asm_output_function_prefix): Likewise.
2081         (s390_asm_declare_function_size):  Likewise.
2082         (s390_asm_output_function_label): Add mdebug output for feature testing.
2083         (s390_option_override): Move implementation into internal function.
2084         (s390_option_override_internal): Likewise.
2085         Implement option overriding based on current options.
2086         (s390_valid_target_attribute_inner_p): New function implementing target
2087         attribute logic.
2088         (s390_valid_target_attribute_tree): Likewise.
2089         (s390_valid_target_attribute_p): Likewise.
2090         (s390_reset_previous_fndecl): Likewise.
2091         (s390_set_current_function): Likewise.
2092         (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
2093         (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
2094         (TARGET_OPTION_RESTORE): Likewise.
2095         * doc/extend.texi: S390: Document target attribute and pragma.
2096         * config.in: Regenerated.
2097         * configure: Regenerated.
2098         * configure.ac: S390: Check for .machinemode and .machine in gas.
2099         S390: Check for architecture modifiers support in gas.
2101 2015-12-04  Kirill Yukhin  <kirill.yukhin@intel.com>
2103         * doc/extend.texi ("simd"): Describe new flags.
2105 2015-12-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
2107         * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
2108         operand checked for alignment.
2110 2015-12-04  Nathan Sidwell  <nathan@acm.org>
2112         * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
2113         emission too. Change 'no_arg_types' to 'prototyped'.
2114         (write_fn_proto):  Use write_one_arg for stdarg, static chain &
2115         main.
2116         (nvptx_declare_function_name): Use write_one_arg for prologue copies.
2118 2015-12-04  Richard Biener  <rguenther@suse.de>
2120         * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
2121         member and initialize it.
2122         (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
2123         if necessary.
2124         (sccvn_dom_walker::before_dom_children): If unreachable_dom
2125         is set BB is not reachable either.  Set unreachable_dom
2126         if not set and BB is unreachable.
2128 2015-12-04  Richard Biener  <rguenther@suse.de>
2130         * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
2131         query with GATHER_STATISTICS.
2133 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
2135         PR middle-end/65958
2136         * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
2137         fields, add keep_stack and reorder them.
2138         (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
2139         set it to false.  Do not insert a stack save/restore pair if it has
2140         been set to true by the gimplification of the statements.
2141         Restore it to the saved value on exit if it is still false.
2142         (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
2143         (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case.  Set
2144         either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
2145         * doc/extend.texi (Variable Length): Document new behavior.
2146         * doc/generic.texi (Blocks): Document new handling of VLAs.
2148 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
2149             Tristan Gingold  <gingold@adacore.com>
2151         PR middle-end/65958
2152         * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
2153         Declare.
2154         * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
2155         UNSPEC_PROBE_STACK_RANGE.
2156         (blockage): New instruction.
2157         (probe_stack_range_<PTR:mode>): Likewise.
2158         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
2159         function.
2160         (aarch64_output_probe_stack_range): Likewise.
2161         (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
2162         static builtin stack checking is enabled.
2163         * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
2164         Define to 1.
2166 2015-12-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2168         PR target/68214
2169         * config/arm/arm.md (*call_mem): Delete pattern.
2170         (*call_value_mem): Likewise.
2171         * config/arm/arm.c (output_call_mem): Delete.
2172         * config/arm/arm-protos.h (output_call_mem): Delete prototype.
2174 2015-12-04  Bin Cheng  <bin.cheng@arm.com>
2176         * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
2177         aarch64_sync_memory_operand.
2179 2015-12-04  Jakub Jelinek  <jakub@redhat.com>
2181         PR target/68655
2182         * config/i386/i386.c (canonicalize_vector_int_perm): New function.
2183         (expand_vec_perm_1): Use it and recurse if everything else
2184         failed.  Use nd.perm instead of perm2.
2185         (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
2186         instead of gen_lowpart for the target.
2187         (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
2188         and recurse if everything else failed.
2190 2015-12-04  Richard Biener  <rguenther@suse.de>
2192         PR middle-end/68636
2193         * builtins.c (get_pointer_alignment_1): Take care of byte to
2194         bit alignment computation overflow.
2196 2015-12-04  Richard Biener  <rguenther@suse.de>
2198         PR middle-end/67438
2199         * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
2200         a constant with single_use.
2202 2015-12-04  Bin Cheng  <bin.cheng@arm.com>
2203             Jiong Wang  <jiong.wang@arm.com>
2205         * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
2206         address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
2208 2015-12-03  Jan Hubicka  <hubicka@ucw.cz>
2210         * alias.c (alias_set_subset_of, alias_sets_must_conflict_p):
2211         Add short circuit for !flag_strict_aliasing
2212         (get_alias_set): Remove flag_strict_aliasing check.
2213         (new_alias_set): Likewise.
2215 2015-12-03  Evandro Menezes  <e.menezes@samsung.com>
2217         * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
2218         * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
2219         (exynosm1_regmove_cost): Likewise.
2220         (exynosm1_vector_cost): Likewise.
2221         (exynosm1_tunings): Likewise.
2222         * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
2223         * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
2225 2015-12-03  Alan Lawrence  <alan.lawrence@arm.com>
2226             Richard Biener  <richard.guenther@gmail.com>
2228         * cfgexpand.c (pass_expand::execute): Replace call to
2229         redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
2230         * tree-ssa.c (delete_tree_ssa): Likewise.
2231         * function.c (set_cfun): Call redirect_edge_var_map_empty.
2232         * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
2233         * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
2234         (redirect_edge_var_map_empty): New.
2235         * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
2236         (redirect_edge_var_map_empty): New.
2238 2015-12-03  Jeff Law  <law@redhat.com>
2240         PR tree-optimization/68599
2241         * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
2242         in call to loop_optimizer_init.
2243         * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
2244         optimization to drop the assumptions/infinite notations if
2245         the loop has a single exit.
2247 2015-12-03  Richard Sandiford  <richard.sandiford@arm.com>
2249         * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
2250         the pattern cannot FAIL.
2251         (vec_store_lanes@var{m}@var{n}): Likewise.
2252         (maskload@var{m}@var{n}): Likewise.
2253         (maskstore@var{m}@var{n}): Likewise.  Fix a cut-&-paste error
2254         in the name of the pattern.
2255         (rsqrt@var{m}2): Document that mode m must be a scalar or vector
2256         floating-point mode and that all operands have that mode.
2257         (fmin@var{m}3, fmax@var{m}3): Likewise.  Document that the
2258         pattern cannot FAIL.
2259         (sqrt@var{m}2): Document that mode m must be a scalar or vector
2260         floating-point mode, that all operands have that mode, and that
2261         the patterns cannot FAIL.  Remove previous documentation referring
2262         to @code{double} and @code{float}.
2263         (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
2264         (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
2265         (copysign@var{m}3): Likewise.
2266         (exp@var{m}2): Likewise.  Explicitly state the base.
2267         (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
2268         (btrunc@var{m}2, rint@var{m}2): Likewise.
2269         (round@var{m}2): Likewise.  Fix incorrect description of rounding
2270         effect.
2271         (ceil@var{m}2): As for round@var{m}2.
2272         (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
2273         the instruction must not raise an inexact condition.
2274         (scalb@var{m}3): Document previously-undocumented pattern
2275         (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
2276         (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
2277         (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
2278         (significand@var{m}2): Likewise.
2279         (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
2280         mode m and operand 0 is defined more freely.  Document that @var{m}
2281         can be a scalar or vector integer mode and that the pattern is not
2282         allowed to FAIL.
2283         (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
2284         (clrsb@var{m}2): Likewise, except that the description of the
2285         mode was missing in this case.
2287 2015-12-03  Richard Sandiford  <richard.sandiford@arm.com>
2289         * internal-fn.def (RSQRT): New function.
2290         * optabs.def (rsqrt_optab): New optab.
2291         * doc/md.texi (rsqrtM2): Document.
2292         * target.def (builtin_reciprocal): Replace gcall argument with
2293         a function decl.  Restrict hook to machine functions.
2294         * doc/tm.texi: Regenerate.
2295         * targhooks.h (default_builtin_reciprocal): Update prototype.
2296         * targhooks.c (default_builtin_reciprocal): Likewise.
2297         * tree-ssa-math-opts.c: Include internal-fn.h.
2298         (internal_fn_reciprocal): New function.
2299         (pass_cse_reciprocals::execute): Call it, and build a call to an
2300         internal function on success.  Only call targetm.builtin_reciprocal
2301         for machine functions.
2302         * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
2303         second argument.
2304         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
2305         Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
2306         (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
2307         machine functions.
2308         * config/aarch64/aarch64.c (use_rsqrt_p): New function.
2309         (aarch64_builtin_reciprocal): Replace gcall argument with a
2310         function decl.  Use use_rsqrt_p.  Remove optimize_size check.
2311         Only handle machine functions.  Update call to aarch64_builtin_rsqrt.
2312         (aarch64_optab_supported_p): New function.
2313         (TARGET_OPTAB_SUPPORTED_P): Define.
2314         * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
2315         (rsqrt<mode>2): ...this.
2316         * config/i386/i386.c (use_rsqrt_p): New function.
2317         (ix86_builtin_reciprocal): Replace gcall argument with a
2318         function decl.  Use use_rsqrt_p.  Remove optimize_insn_for_size_p
2319         check.  Only handle machine functions.
2320         (ix86_optab_supported_p): Handle rsqrt_optab.
2321         * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
2322         (rs6000_builtin_reciprocal): Replace gcall argument with a
2323         function decl.  Remove optimize_insn_for_size_p check.
2324         Only handle machine functions.
2325         (rs6000_optab_supported_p): New function.
2327 2015-12-03  Bernd Schmidt  <bschmidt@redhat.com>
2329         PR target/68471
2330         PR target/68472
2331         * config/i386/i386.c (ix86_mitigate_rop): Don't call
2332         compute_bb_for_insn again.  Call df_insn_rescan_all.
2333         * config/i386/i386.md (set_got_rex64): Override modrm_class.
2335         * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
2337 2015-12-03  Nathan Sidwell  <nathan@acm.org>
2339         * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
2340         * config/nvptx/nvptx.c (enum nvptx_data_area): New.
2341         (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
2342         (nvptx_option_override): Set data ares for worker vars.
2343         (nvptx_addr_space_from_sym): Delete.
2344         (nvptx_encode_section_info): New.
2345         (section_for_sym, section_for_decl): New.
2346         (nvptx_maybe_convert_symbolic_operand): Get data area from symbol flags.
2347         (nvptx_section_from_addr_space): Delete.
2348         (nvptx_section_for_decl): Delete.
2349         (nvptx_output_aligned, nvptx_declare_object_name,
2350         nvptx_assemble_undefined_decl): Use section_for_decl, remove
2351         unnecessary checks.
2352         (nvptx_print_operand): Add 'D', adjust 'A'.
2353         (nvptx_expand_worker_addr): Adjust unspec generation.
2354         (TARGET_ENCODE_SECTION_INFO): Override.
2355         * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
2356         ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
2357         * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
2358         UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
2359         UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
2360         UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
2361         (UNSPEC_TO_GENERIC): New.
2362         (nvptx_register_or_symbolic_operand): Delete.
2363         (cvt_code, cvt_name, cvt_str): Delete.
2364         (convaddr_<cvt_name><mode> [P]): Delete.
2365         (convaddr_<mode> [P]): New.
2367 2015-12-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2369         PR rtl-optimization/68624
2370         * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
2371         blocks if they exist and simplify the logic choosing the order to emit
2372         them in.
2374 2015-12-03  Richard Biener  <rguenther@suse.de>
2376         PR tree-optimization/66051
2377         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
2378         on load group size.  Do not pass in vectorization_factor.
2379         (vect_transform_slp_perm_load): Do not require any permute support.
2380         (vect_build_slp_tree): Do not pass in vectorization factor.
2381         (vect_analyze_slp_instance): Do not compute vectorization
2382         factor estimate.  Use vector size instead of vectorization factor
2383         estimate to split store groups for BB vectorization.
2385 2015-12-03  Ilya Enkovich  <enkovich.gnu@gmail.com>
2387         * cfgexpand.c (expand_gimple_stmt_1): Return statement with
2388         DECL as return value is allowed to have NULL bounds.
2390 2015-12-03  Tom de Vries  <tom@codesourcery.com>
2392         * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
2393         (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
2394         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
2396 2015-12-03  Richard Biener  <rguenther@suse.de>
2398         PR tree-optimization/67800
2399         PR tree-optimization/68333
2400         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
2401         restriction to reduction contexts but allow SLP reductions as well.
2402         (vect_recog_sad_pattern): Likewise.
2403         (vect_recog_widen_sum_pattern): Likewise.
2405 2015-12-03  Richard Biener  <rguenther@suse.de>
2407         PR tree-optimization/68639
2408         * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
2409         belonging to different loops.
2410         (vect_analyze_data_ref_accesses): Likewise.
2412 2015-12-02  Kirill Yukhin  <kirill.yukhin@intel.com>
2414         * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
2415         Remove "prefix_extra".
2416         (define_insn "vec_extract_hi_<mode>_mask"): New.
2417         (define_insn "vec_extract_hi_<mode>"): Remove masking.
2419 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
2421         * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
2422         (propagate_pure_const): Use it; fix comments and optimize loops.
2424 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
2426         * ipa-pure-const.c (ignore_edge): Rename to ...
2427         (ignore_edge_for_nothrow) ... this one; also ignore eges to
2428         interposable functions or ones that can not throw.
2429         (propagate_nothrow): Fix handling of availability.
2431 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
2433         PR ipa/68184
2434         * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
2436 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
2437             Sebastian Pop  <s.pop@samsung.com>
2439         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle
2440         isl_ast_op_zdiv_r.
2441         (gcc_expression_from_isl_expr_op): Same.
2443 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
2444             Sebastian Pop  <s.pop@samsung.com>
2446         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
2447         that insertion point is still in the region.
2449 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
2450             Sebastian Pop  <s.pop@samsung.com>
2452         PR tree-optimization/68550
2453         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
2454         (copy_bb_and_scalar_dependences): Do not code generate loop peeled
2455         statements.
2457 2015-12-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2459         * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
2460         * configure: Regenerate.
2461         * config.in: Regenerate.
2462         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
2463         function.
2464         (rs6000_output_function_prologue): Use it instead of checking
2465         cfun->machine->r2_setup_needed.  Use internal labels instead of
2466         GNU as local label extension.  Handle ELFv2 large code model.
2467         (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
2468         (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
2470 2015-12-02  Jakub Jelinek  <jakub@redhat.com>
2472         PR target/68647
2473         * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
2474         New functions.
2475         (expand_unop): Use them.
2477 2015-12-02  Marek Polacek  <polacek@redhat.com>
2479         PR c++/68653
2480         * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
2482 2015-12-02  Nathan Sidwell  <nathan@acm.org>
2484         * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New.  Absorb
2485         SHUFFLE defines.
2486         (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
2488 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
2489             Sebastian Pop  <s.pop@samsung.com>
2491         * graphite-dependences.c (scop_get_reads): Add extra dumps.
2492         (scop_get_must_writes): Same.
2493         (scop_get_may_writes): Same.
2494         (compute_deps): Same.
2495         * graphite-sese-to-poly.c (bounds_are_valid): New.
2496         (pdr_add_data_dimensions): Call bounds_are_valid.
2498 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
2499             Sebastian Pop  <s.pop@samsung.com>
2501         * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
2502         * graphite-poly.c (apply_poly_transforms): Same.
2503         * graphite.c (gate_graphite_transforms): Same.
2504         * toplev.c (process_options): Same.
2506 2015-12-02  Eric Botcazou  <ebotcazou@adacore.com>
2508         * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
2509         (mips_output_probe_stack_range): Rotate the loop and simplify.
2511 2015-12-02  David Sherwood  <david.sherwood@arm.com>
2513         * config/aarch64/aarch64.md: New pattern.
2514         * config/aarch64/aarch64-simd.md: Likewise.
2515         * config/aarch64/iterators.md: New unspecs, iterators.
2517 2015-12-02  Pierre-Marie de Rodat  <derodat@adacore.com>
2519         * dwarf2out.c (dwar2out_var_location): In addition to notes,
2520         process indirect calls whose target is compile-time known.
2521         Enhance pattern matching to get the SYMBOL_REF they embed.
2522         (gen_subprogram_die): Handle such calls.
2523         * final.c (final_scan_insn): For call instructions, invoke the
2524         var_location debug hook only after the call has been emitted.
2526 2015-12-02  Tom de Vries  <tom@codesourcery.com>
2528         * gimplify.c (enum gimplify_omp_var_data): Add enum value
2529         GOVD_MAP_FORCE.
2530         (oacc_default_clause): Fix default for scalars in oacc kernels.
2531         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
2533 2015-12-02  Tom de Vries  <tom@codesourcery.com>
2535         * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
2536         parameter base_pointers_restrict.
2537         (omp_target_base_pointers_restrict_p): New function.
2538         (scan_omp_target): Call scan_sharing_clauses with
2539         base_pointers_restrict arg.
2541 2015-12-02  Nathan Sidwell  <nathan@acm.org>
2543         * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
2544         (nvptx_underlying_object_mode): Delete.
2545         * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
2546         (output_reg): New.
2547         (nvptx_declare_function_name): Use output_reg.  Remove punning buffer.
2548         (nvptx_output_mov_insn): New.
2549         (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
2550         Use output_reg. Merge 't' and 'u' handling.
2551         * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
2552         (struct machine_function): Remvoe punning_buffer_size.
2553         (REGISTER_NAMES): Remove %punbuffer.
2554         * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
2555         UNSPEC_CPLX_HIGHPART): Delete.
2556         (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
2557         nvptx_output_mov_insn.
2558         (*mov<mode>_insn [SDFM): Reorder constraints to match integer moc.
2559         Use nvptx_output_mov_insn.
2560         (highpartscsf2,  set_highpartscsf2, lowpartscsf2, set_lowpartscsf2):
2561         Delete.
2562         (mov<mode> [SDCM]): Delete.
2564 2015-12-02  Richard Biener  <rguenther@suse.de>
2566         * tree.h (tree_invariant_p): Declare.
2567         * tree.c (tree_invariant_p): Export.
2568         * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
2569         create SAVE_EXPRs but reject patterns if we would need to.
2571 2015-12-02  Tom de Vries  <tom@codesourcery.com>
2573         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
2574         (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
2576 2015-12-02  Segher Boessenkool  <segher@kernel.crashing.org>
2578         * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
2579         (cstore<mode>4): Use it.
2581 2015-12-02  Richard Biener  <rguenther@suse.de>
2583         PR tree-optimization/68625
2584         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
2585         cleanup_control_flow_bb.
2586         (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
2587         on all BBs, then cleanup_tree_cfg_bb and finally iterate
2588         over the worklist doing both.
2590 2015-12-02  Richard Sandiford  <richard.sandiford@arm.com>
2592         PR tree-optimization/68432
2593         * coretypes.h (optimization_type): New enum.
2594         * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
2595         * doc/tm.texi: Regenerate.
2596         * target.def (optab_supported_p): New hook.
2597         * targhooks.h (default_optab_supported_p): Declare.
2598         * targhooks.c (default_optab_supported_p): New function.
2599         * predict.h (function_optimization_type): Declare.
2600         (bb_optimization_type): Likewise.
2601         * predict.c (function_optimization_type): New function.
2602         (bb_optimization_type): Likewise.
2603         * optabs-query.h (convert_optab_handler): Define an overload
2604         that takes an optimization type.
2605         (direct_optab_handler): Likewise.
2606         * optabs-query.c (convert_optab_handler): Likewise.
2607         (direct_optab_handler): Likewise.
2608         * internal-fn.h (direct_internal_fn_supported_p): Take an
2609         optimization_type argument.
2610         * internal-fn.c (direct_optab_supported_p): Likewise.
2611         (multi_vector_optab_supported_p): Likewise.
2612         (direct_internal_fn_supported_p): Likewise.
2613         * builtins.c (replacement_internal_fn): Update call to
2614         direct_internal_fn_supported_p.
2615         * gimple-match-head.c (build_call_internal): Likewise.
2616         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
2617         * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
2618         * tree.c (maybe_build_call_expr_loc): Likewise.
2619         * config/i386/i386.c (ix86_optab_supported_p): New function.
2620         (TARGET_OPTAB_SUPPORTED_P): Define.
2621         * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
2622         (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
2623         (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
2624         (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
2625         (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
2626         (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
2628 2015-12-02  Richard Sandiford  <richard.sandiford@arm.com>
2630         * Makefile.in (GENSUPPORT_H): New macro.
2631         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
2632         (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
2633         (build/gencodes.o, build/genconditions.o, build/genconfig.o)
2634         (build/genconstants.o, build/genextract.o, build/genflags.o)
2635         (build/gentarget-def.o): Use it.
2636         (build/genemit.o): Likewise.  Depend on internal-fn.def.
2637         * genopinit.c: Move block comment to optabs.def.
2638         (optab_tag, optab_def): Move to gensupport.h
2639         (pattern): Likewise, renaming to optab_pattern.
2640         (match_pattern): Move to gensupport.c
2641         (gen_insn): Use find_optab.
2642         (patterns, pattern_cmp): Replace pattern with optab_pattern.
2643         (main): Likewise.  Use num_optabs.
2644         * optabs.def: Add comment that was previously in genopinit.c.
2645         * gensupport.h (optab_tag): Moved from genopinit.c
2646         (optab_def): Likewise, expanding commentary.
2647         (optab_pattern): Likewise, after renaming from pattern.
2648         (optabs, num_optabs, find_optab): Declare.
2649         * gensupport.c (optabs): Moved from genopinit.c.
2650         (num_optabs): New variable.
2651         (match_pattern): Moved from genopinit.c.
2652         (find_optab): New function, extracted from genopinit.c:gen_insn.
2653         * genemit.c (nofail_optabs): New variable.
2654         (emit_c_code): New function.
2655         (gen_expand): Check whether the instruction is an optab that isn't
2656         allowed to fail.  Call emit_c_code.
2657         (gen_split): Call emit_c_code here too.
2658         (main): Initialize nofail_optabs.  Don't emit FAIL and DONE here.
2660 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2662         * config/s390/predicates.md (const_mask_operand): New predicate.
2663         * config/s390/s390-builtins.def: Set a smaller bitmask
2664         for a few builtins.
2665         * config/s390/vector.md: Change predicate from immediate_operand
2666         to either const_int_operand or const_mask_operand.  Add special
2667         insn conditions on patterns which have to exclude certain values.
2668         * config/s390/vx-builtins.md: Likewise.
2670 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2672         * config/s390/vector.md ("*vec_set<mode>"): Change shift count
2673         mode from DI to SI.
2675 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2677         * config/s390/s390-builtin-types.def: New builtin types added.
2678         * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
2679         * config/s390/s390.c (s390_expand_builtin): Always truncate
2680         constants to the mode in the pattern.
2681         * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
2682         respective builtin __builtin_s390_vec_splat_*.
2684 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2686         * config/s390/s390-builtin-types.def: Sort builtin types.
2688 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2690         * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
2691         condition for the RT flag.
2693 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2695         * config/s390/constraints.md ("jKK"): New constraint.
2696         * config/s390/s390.c (tm-constrs.h): Include for
2697         satisfies_constraint_*.
2698         (s390_legitimate_constant_p): Allow jKK constants.  Use
2699         satisfies_constraint_* also for the others.
2700         (legitimate_reload_vector_constant_p): Likewise.
2701         (print_operand): Allow h output modifier on vectors.
2702         * config/s390/vector.md ("mov<mode>"): Add vrepi.
2704 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2706         * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
2707         letter I->K.
2709 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2711         * config/s390/s390.md ("bswap<mode>2"): Add support for strv and strvg.
2712         ("bswaphi2"): New pattern.
2713         New splitter for HI reg-reg bswap.
2715 2015-11-27  Jiri Engelthaler  <engycz@gmail.com>
2717         PR driver/68029
2718         * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
2719         if it is the first parameter.
2721 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
2723         PR tree-optimization/68577
2724         * tree-vect-stmts.c (simple_integer_narrowing): New function.
2725         (vectorizable_call): Restrict internal function handling
2726         to NONE and NARROW cases, using simple_integer_narrowing
2727         to test for the latter.  Add cost of narrowing operation
2728         and insert it where necessary.
2730 2015-12-01  Andreas Tobler  <andreast@gcc.gnu.org>
2732         * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
2733         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
2734         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
2736 2015-12-01  Nathan Sidwell  <nathan@acm.org>
2738         * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
2739         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
2740         ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
2741         * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
2742         (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
2743         (init_output_initializer): Call write_var_marker.
2744         (nvptx_output_aligned_decl): New.
2745         (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
2747 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
2749         * c-common.c (parse_optimize_options): Do not silently ignore
2750         -fstrict-aliasing changes.
2752 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
2754         * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
2755         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
2756         stream TYPE_ALIAS_SET.
2757         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
2758         stream TYPE_ALIAS_SET.
2760 2015-12-01  Nathan Sidwell  <nathan@acm.org>
2762         * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
2763         consider mode.
2765 2015-12-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2767         * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
2768         indirection for large and small code models.
2769         (adjust_vperm): Likewise.
2771 2015-12-01  Julian Brown  <julian@codesourcery.com>
2772             Cesar Philippidis  <cesar@codesourcery.com>
2773             James Norris  <James_Norris@mentor.com>
2775         * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data support.
2776         * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
2777         (is_gimple_omp_oacc): Add support for above.
2778         * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
2779         (omp_notice_variable): Diagnose undefined implicit uses of
2780         use_device variables in offloaded regions.
2781         (gimplify_scan_omp_clauses): Add host_data, use_device
2782         support. Diagnose undefined mapping of use_device variables in
2783         OpenACC clauses.
2784         (gimplify_omp_workshare): Add host_data support.
2785         (gimplify_expr): Likewise.
2786         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
2787         * omp-low.c (lookup_decl_in_outer_ctx)
2788         (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
2789         host_data regions.
2790         (scan_sharing_clauses): Support use_device.
2791         (check_omp_nesting_restrictions): Support host_data.
2792         (expand_omp_target): Support host_data.
2793         (lower_omp_target): Skip over outer host_data regions when looking
2794         up decls. Support use_device.
2795         (make_gimple_omp_edges): Support host_data.
2796         * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device clause.
2798 2015-12-01  Marek Polacek  <polacek@redhat.com>
2800         PR middle-end/68582
2801         * cgraphunit.c (check_global_declaration): Only depend
2802         on TREE_THIS_VOLATILE for VAR_DECLs.
2804 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
2806         PR tree-optimization/68474
2807         * tree-call-cdce.c (use_internal_fn): Protect call to
2808         gen_shrink_wrap_conditions.
2810 2015-12-01  Christian Bruel  <christian.bruel@st.com>
2812         PR target/68617
2813         * config/arm/arm.opt (unaligned_access): Save.
2814         * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
2815         * config/arm/arm.c (arm_option_override): Move unaligned_access setting.
2816         (arm_option_override_internal): ... here.
2817         * config/arm/arm.h (TARGET_32BIT_P): New macro.
2819 2015-12-01  Richard Biener  <rguenther@suse.de>
2821         PR tree-optimization/68379
2822         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2823         always base loads on the first used DR of a group.
2824         * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
2825         Compute alignment of the first scalar element unconditionally.
2827 2015-12-01  Richard Biener  <rguenther@suse.de>
2829         PR middle-end/68590
2830         * genmatch.c (struct capture_info): Add match_use_count.
2831         (capture_info::walk_match): Increment match_use_count.
2832         (dt_simplify::gen_1): For GENERIC, only wrap multi-use
2833         replacements in a save_expr if they occur more often than
2834         in the original expression.
2836 2015-12-01  Richard Biener  <rguenther@suse.de>
2838         PR ipa/68470
2839         * ipa-split.c (split_function): Handle main part not returning.
2841 2015-12-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
2843         PR middle-end/68595
2844         * tree-vect-stmts.c (vect_init_vector): Cast boolean
2845         scalars to a proper value before building a vector.
2847 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
2849         * genattrtab.c (check_attr_test): Take an attr_desc instead of
2850         an is_const flag.  Put the file_location argument first.
2851         Update recursive calls.  Improve error messages.
2852         (check_attr_value): Take a file location and use it instead
2853         of attr->loc.  Improve error messages.  Update calls to
2854         check_attr_test.
2855         (check_defs): Update call to check_attr_value.
2856         (make_canonical): Likewise.
2857         (gen_attr): Likewise.
2858         (main): Likewise.
2859         (gen_insn_reserv): Update call to check_attr_test.
2861 2015-12-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2863         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
2865 2015-12-01  Richard Biener  <rguenther@suse.de>
2867         PR middle-end/68590
2868         * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
2870 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
2872         * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
2873         odr_type_p): Move to ...
2874         * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
2875         odr_type_p): here; miscro-optimize.
2877 2015-12-01  Bin Cheng  <bin.cheng@arm.com>
2879         PR tree-optimization/68529
2880         * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
2881         Compute no-overflow information for control iv.
2882         (number_of_iterations_lt, number_of_iterations_le): Add new param.
2883         (number_of_iterations_cond): Pass new argument to above functions.
2885 2015-11-30  Jan Hubicka  <hubicka@ucw.cz>
2887         * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
2888         inlining -fno-strict-aliasing into -fstrict-aliasing body.
2890 2015-11-30  Aditya Kumar  <aditya.k7@samsung.com>
2891             Sebastian Pop  <s.pop@samsung.com>
2893         PR tree-optimization/68565
2894         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
2895         codegen_error.  Fail when rhs of division operations is integer_zerop.
2896         (ternary_op_to_tree): Early return on codegen_error.
2897         (unary_op_to_tree): Same.
2898         (nary_op_to_tree): Same.
2899         (gcc_expression_from_isl_expr_op): Same.
2900         (gcc_expression_from_isl_expression): Same.
2901         (graphite_create_new_loop): On codegen_error continue generating
2902         wrong code.
2903         (graphite_create_new_loop_guard): Same.
2904         (build_iv_mapping): Same.
2905         (graphite_create_new_guard): Same.
2907 2015-11-30  Aditya Kumar  <aditya.k7@samsung.com>
2908             Sebastian Pop  <s.pop@samsung.com>
2910         * graphite-isl-ast-to-gimple.c: Fix dump messages.
2911         * graphite-scop-detection.c: Same.
2912         * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
2914 2015-11-30  Cesar Philippidis  <cesar@codesourcery.com>
2916         * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
2917         OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
2918         (convert_local_omp_clauses): Likewise.
2920 2015-11-30  Tom de Vries  <tom@codesourcery.com>
2922         PR tree-optimization/46032
2923         * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
2924         factored out of ...
2925         (find_func_aliases_for_call): ... here.
2926         (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
2927         BUILT_IN_GOMP_PARALLEL.
2928         (ipa_pta_execute): Same.  Handle node->parallelized_function as a local
2929         function.
2931 2015-11-30  Jakub Jelinek  <jakub@redhat.com>
2933         PR tree-optimization/68501
2934         * target.def (builtin_reciprocal): Replace the 3 arguments with
2935         a gcall * one, adjust description.
2936         * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
2937         with a gcall * one.
2938         * targhooks.c (default_builtin_reciprocal): Likewise.
2939         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
2940         targetm.builtin_reciprocal even on internal functions, adjust
2941         the arguments and allow replacing an internal function with normal
2942         built-in.
2943         * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
2944         with a gcall * one.  Handle internal fns too.
2945         * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
2946         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
2947         * doc/tm.texi (builtin_reciprocal): Document.
2949 2015-11-30  Richard Biener  <rguenther@suse.de>
2951         PR tree-optimization/68592
2952         * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
2953         on the pattern def sequence.
2955 2015-11-30  Nathan Sidwell  <nathan@acm.org>
2957         * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
2958         (write_one_arg): Reorder parms, add 'sep' param.
2959         (nvptx_write_function_decl): Rename to ...
2960         (write_fn_proto): ... here.  Do name replacement. Emit linaer
2961         comment marker. Deal with both decls and defns. Simplify argument
2962         formatting.
2963         (write_function_decl_and_comment): Delete.
2964         (write_func_decl_from_insn): Rename to ...
2965         (write_fn_proto_from_insn): ... here.  Don't do name replacement.
2966         (nvptx_record_fndecl): Call write_fn_proto.
2967         (nvptx_record_libfunc): Call write_fn_proto_from_insn.
2968         (nvptx_declare_function_name): Adjust for write_fn_proto changes.
2969         (nvotx_output_call_insn): Call write_fn_prot_from_insn.
2971 2015-11-30  Kirill Yukhin  <kirill.yukhin@intel.com>
2973         * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
2974         (define_insn "*k<logic><mode>"): Use new iterator.
2976 2015-11-30  Eric Botcazou  <ebotcazou@adacore.com>
2978         PR target/28115
2979         * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
2980         (sparc_adjust_cost): Add missing space.
2982 2015-11-30  Richard Biener  <rguenther@suse.de>
2984         PR c/68162
2985         * dwarf2out.c (gen_type_die_with_usage): Keep variant types of arrays.
2987 2015-11-30  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
2989         * tree-if-conv.c (struct ifc_dr): Add new tree base_predicate field.
2990         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
2991         base ref, DR pairs and store base_predicate for write type DRs.
2992         (ifcvt_memrefs_wont_trap): Guard checks with
2993         -ftree-loop-if-convert-stores flag.
2995 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
2997         * cgraph.c (cgraph_node::make_local): No name is unique during
2998         incremental linking.
2999         * cgraph.h (can_be_discarded_p): Update comment; also common and
3000         WEAK in named sections can be discarded; when doing incremental
3001         link do not rely on resolution being the final one.
3002         * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
3003         When symbol can be discarded, do not rely on resolution info.
3004         * symtab.c (symtab_node::nonzero_address): Take into account that
3005         symbol can be discarded.
3006         * ipa-visibility.c (update_visibility_by_resolution_info): Handle
3007         definition correctly.
3008         (function_and_variable_visibility): Do not set unique_name when
3009         incrementally linking.
3011 2015-11-29  Nathan Sidwell  <nathan@acm.org>
3013         * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
3014         const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
3015         (ctrap<mode>): Use const0_operand.
3017 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
3019         * ipa-devirt.c (add_type_duplicate): Remove redundant
3020         ODR violation dump.
3022 2015-11-29  David Edelsohn  <dje.gcc@gmail.com>
3024         PR target/28115
3025         * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
3026         recog_memoized test for insn and check recog_memoized for dep_insn.
3028 2015-11-28  Nathan Sidwell  <nathan@acm.org>
3030         * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
3031         (FRAME_POINTER_CFA_OFFSET): Define.
3032         (struct nvptx_args): Use 'tree' type.
3033         (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
3035 2015-11-28  Tom de Vries  <tom@codesourcery.com>
3037         * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
3039 2015-11-27  Jonathan Wakely  <jwakely@redhat.com>
3041         * doc/invoke.texi (Option Summary): Use negative form of
3042         -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
3043         sort alphabetically and re-justify.
3045 2015-11-27  Vladimir Makarov  <vmakarov@redhat.com>
3047         PR rtl-optimization/68536
3048         * lra.c (lra_emit_add): Add code for null base.
3049         * lra-constraints.c (curr_insn_transform): Skip operators for
3050         subreg reloads.
3052 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3054         Revert
3055         2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3057         * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
3058         multiple_sets.
3059         (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
3060         are not modified by the final modified insns in the basic blocks.
3062 2015-11-27  Nathan Sidwell  <nathan@acm.org>
3064         * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
3065         Don't declare.
3066         * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
3067         (nvptx_maybe_convert_symbolic_operand): Simplify.
3068         (nvptx_addr_space_from_address): Delete.
3069         (nvptx_print_operand): Adjust 'A' case.
3071 2015-11-27  Richard Biener  <rguenther@suse.de>
3073         PR tree-optimization/68559
3074         * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
3075         peeling for gap checks ...
3076         * tree-vect-stmts.c (vectorizable_load): ... here and relax for SLP.
3077         * tree-vect-loop.c (vect_analyze_loop_2): Re-set
3078         LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
3080 2015-11-27  Nathan Sidwell  <nathan@acm.org>
3082         * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't declare.
3083         * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
3084         (nvptx_record_fndecl): Don't return value, remove force
3085         argument. Require fndecl.
3086         (nvptx_record_libfunc): New.
3087         (nvptx_record_needed_decl): Deteermine how to record decl here.
3088         (nvptx_maybe_record_fnsym): New.
3089         (nvptx_expand_call): Don't record libfuncs here,
3090         (nvptx_maybe_convert_symbolic_operand): Use
3091         nvptx_maye_record_fnsym.
3092         (nvptx_assemble_integer): Reimplement with single switch.
3093         (nvptx_output_call_insn): Register libfuncs here.
3094         (nvptx_file_end): Adjust  nvptx_record_fndecl call.
3095         * config/nvptx/nvptx.md (expand_movdi): Don't call
3096         nvptx_record_needed_decl.
3098 2015-11-27  Richard Biener  <rguenther@suse.de>
3100         PR tree-optimization/68553
3101         * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
3102         generation for 1:1 permutations.
3103         (vect_transform_slp_perm_load): Detect 1:1 permutations.
3105 2015-11-27  Bernd Schmidt  <bschmidt@redhat.com>
3107         * gimple.h (nonbarrier_call_p): Declare.
3108         * gimple.c (nonbarrier_call_p): New function.
3109         * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
3110         Also increment call phase for ASMs with vdef and potential barrier
3111         calls.
3113 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3115         * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
3116         multiple_sets.
3117         (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
3118         are not modified by the final modified insns in the basic blocks.
3120 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3122         PR rtl-optimization/68506
3123         * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
3124         first if emit_a exists or then_bb modifies 'b'.  Reindent if-else
3125         blocks.
3127 2015-11-27  Martin Liska  <mliska@suse.cz>
3129         PR c++/68312
3130         * vec.h (release_vec_vec): New function.
3132 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
3134         PR tree-optimization/68552
3135         * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
3136         (expand_vec_perm): ... here.  Do it regardless of vec_perm_const_optab
3137         or whether v0 == v1.
3139 2015-11-27  Martin Liska  <mliska@suse.cz>
3141         * tree-ssa-uninit.c: Fix whitespaces in the source file.
3142         The change is just automatical.
3144 2015-11-27  Martin Liska  <mliska@suse.cz>
3146         * tree-chkp.c (chkp_make_static_bounds): Release buffer
3147         used for string.
3149 2015-11-27  Martin Liska  <mliska@suse.cz>
3151         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3152         Do not release memory for comp_alias_ddrs.
3153         * tree-vect-loop.c (destroy_loop_vec_info): Release
3154         the memory for all loop_vec_info.
3156 2015-11-27  Martin Liska  <mliska@suse.cz>
3158         * ipa-devirt.c (ipa_devirt): Use auto_vec instead
3159         of a local-scope vec.
3160         (struct final_warning_record): Use auto_vec instead of vec.
3162 2015-11-27  Richard Biener  <rguenther@suse.de>
3164         PR tree-optimization/68553
3165         * tree-vect-slp.c (vect_get_mask_element): Remove.
3166         (vect_transform_slp_perm_load): Implement in a simpler way.
3168 2015-11-26  Alexandre Oliva <aoliva@redhat.com>
3170         PR rtl-optimization/67753
3171         PR rtl-optimization/64164
3172         * function.c (assign_parm_setup_block): Right-shift
3173         upward-padded big-endian args when bypassing the stack slot.
3175 2015-11-26  Maciej W. Rozycki  <macro@imgtec.com>
3177         * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
3178         `-mcompact-branches='.
3179         (MIPS Options): Likewise.
3181 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
3183         * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
3185 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
3187         * doc/install.texi (Prerequisites): Increase ISL requirement to
3188         0.14 or 0.15.
3190 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
3192         * config/aarch64/arm_neon.h
3193         (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
3194         (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
3195         (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
3196         (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
3197         (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
3198         (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
3199         (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
3200         (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
3201         (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
3202         (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
3203         (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
3204         (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
3206 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
3208         * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
3209         (vqrdmlahq_s16, vqrdmlahq_s32): New.
3210         (vqrdmlsh_s16, vqrdmlsh_s32): New.
3211         (vqrdmlshq_s16, vqrdmlshq_s32): New.
3213 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
3215         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
3216         ARM_FEATURE_QRDMX.
3218 2015-11-26  Pierre-Marie de Rodat  <derodat@adacore.com>
3220         PR debug/53927
3221         * tree-nested.c (finalize_nesting_tree_1): Append a field to
3222         hold the frame base address.
3223         * dwarf2out.c (gen_subprogram_die): Generate for
3224         DW_AT_static_link a location description that computes the value
3225         of this field.
3227 2015-11-26  Tom de Vries  <tom@codesourcery.com>
3229         revert:
3230         2015-11-25  Tom de Vries  <tom@codesourcery.com>
3232         * cfgloop.c (find_single_latch): New function, factored out of ...
3233         (flow_loops_find): ... here.
3234         (verify_loop_structure): Improve verification of loop->latch.
3235         * cfgloop.h (find_single_latch): Declare.
3236         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
3238 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
3240         * config/aarch64/aarch64-simd-builtins.def:
3241         Add missing changes from r230962.
3243 2015-11-26  Nathan Sidwell  <nathan@acm.org>
3245         * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
3246         arg with name.  Don't deal with split regs.  Tweak formatting.
3247         (nvptx_expand_call): Adjust write_func_decl_from_insn call.
3248         (nvptx_output_call_insn): Don't deal with split regs here.
3250 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
3252         * config/aarch64/aarch64-simd-builtins.def
3253         (sqrdmlah, sqrdmlsh): New.
3254         (sqrdmlah_lane, sqrdmlsh_lane): New.
3255         (sqrdmlah_laneq, sqrdmlsh_laneq): New.
3257 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
3259         * config/aarch64/aarch64-simd.md
3260         (aarch64_sqmovun<mode>): Fix some white-space.
3261         (aarch64_<sur>qmovun<mode>): Likewise.
3262         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
3263         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
3264         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
3265         * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
3266         (UNSPEC_SQRDMLSH): New.
3267         (SQRDMLH_AS): New.
3268         (rdma_as): New.
3270 2015-11-26  Richard Biener  <rguenther@suse.de>
3272         PR tree-optimization/66721
3273         * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
3274         iteration cost earlier.  Re-do analysis without SLP when
3275         vectorization using SLP fails and without has a chance to succeed.
3277 2015-11-26  Richard Biener  <rguenther@suse.de>
3279         * genmatch.c (dt_simplify::gen_1): For generic wrap all
3280         multi-result-use captures in a SAVE_EXPR.
3282 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
3284         * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
3285         (TARGET_SIMD_RDMA): New.
3287 2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3289         * combine.c (subst): Do not return clobber of zero in widening mult
3290         case.  Just return x unchanged if it is a no-op substitution.
3292 2015-11-26  Vladimir Makarov  <vmakarov@redhat.com>
3294         PR target/68416
3295         * config/i386/i386.h (enum reg_class): Add
3296         bounds registers to ALL_REGS.
3298 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
3300         PR tree-optimization/68128
3301         * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
3302         * gimplify.c: Include gimple-walk.h.
3303         (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
3304         (omp_notice_variable): Set flags to n->value if n already
3305         exists in target region, but we need to jump to do_outer.
3306         (omp_shared_to_firstprivate_optimizable_decl_p,
3307         omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
3308         functions.
3309         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
3310         on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
3311         not modified in the body.  Call omp_mark_stores for outer
3312         contexts on OMP_CLAUSE_SHARED clauses if they could be written
3313         in the body or on OMP_CLAUSE_LASTPRIVATE.
3314         (gimplify_adjust_omp_clauses): Add body argument, call
3315         omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
3316         Set OMP_CLAUSE_SHARED_READONLY
3317         on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
3318         not modified in the body.  Call omp_mark_stores for outer
3319         contexts on OMP_CLAUSE_SHARED clauses if they could be written
3320         in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
3321         without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
3322         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
3323         gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
3324         gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
3325         * tree-nested.c (convert_nonlocal_omp_clauses,
3326         convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
3327         non-local vars or local vars referenced from nested routines.
3328         * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
3329         attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE.  Even for
3330         TREE_READONLY, don't call use_pointer_for_field with non-NULL
3331         second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
3333 2015-11-26  Paolo Bonzini <bonzini@gnu.org>
3335         * doc/implement-c.texi (Integers Implementation): Make GCC's promises
3336         about signed left shift stronger and clarify the cases when they're
3337         broken.
3339 2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3340             Bernd Schmidt  <bschmidt@redhat.com>
3342         PR rtl-optimization/67226
3343         * calls.c (store_one_arg): Take into account
3344         crtl->args.pretend_args_size when checking for overlap between
3345         arg->value and argblock + arg->locate.offset during sibcall
3346         optimization.
3348 2015-11-26  Wilco Dijkstra  <wdijkstr@arm.com>
3350         * config/aarch64/aarch64.md (cbranch<mode>4): Use
3351         aarch64_fp_compare_operand.
3352         (store_pairsf): Use aarch64_reg_or_fp_zero.
3353         (store_pairdf): Likewise.
3354         (cstore<mode>4): Use aarch64_fp_compare_operand.
3355         (cmov<mode>6): Likewise.
3356         * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
3358 2015-11-25  Aditya Kumar  <aditya.k7@samsung.com>
3359             Sebastian Pop  <s.pop@samsung.com>
3361         PR tree-optimization/68453
3362         * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
3363         not redirect edges already pointing to their destination.
3364         (translate_isl_ast_node_for): Split edges after loops to create
3365         basic blocks for close phi nodes.  Save merge points at the end of
3366         a loop guard.
3367         (translate_isl_ast_node_if): Save merge points at the end of the
3368         if region.
3369         (add_close_phis_to_outer_loops): New.
3370         (add_close_phis_to_merge_points): New.
3371         (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
3372         (copy_bb_and_scalar_dependences): Do not split basic blocks on
3373         loop close phi locations.
3375 2015-11-25  Jan Hubicka  <jh@suse.cz>
3377         * ipa-visibility.c (cgraph_externally_visible_p,
3378         varpool_node::externally_visible_p): When doing incremental linking,
3379         hidden symbols may be still used later.
3380         (update_visibility_by_resolution_info): Do not drop weak during
3381         incremental link.
3382         (function_and_variable_visibility): Fix formating.
3383         * flag-types.h (lto_linker_output): Declare.
3384         * common.opt 9flag_incremental_link): New flag.
3386 2015-11-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
3388         * config/rs6000/constraints.md (wb constraint): New constraint for
3389         ISA 3.0 d-form scalar addressing.
3391         * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
3392         for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
3393         Altivec registers.  Add wb constraint for Altivec registers with
3394         D-form addressing.  If we have ISA 3.0 d-form support, undo
3395         secondary reload support for using FPR registers if we want to do
3396         D-form addressing.
3397         (rs6000_debug_reg_global): Likewise.
3398         (rs6000_setup_reg_addr_masks): Likewise.
3399         (rs6000_init_hard_regno_mode_ok): Likewise.
3400         (rs6000_secondary_reload): Likewise.
3401         (rs6000_preferred_reload_class): Likewise.
3402         (rs6000_secondary_reload_class): Likewise.
3404         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
3405         constraint.
3407         * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
3408         for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
3409         (f32_lm2): Likewise.
3410         (f32_li2): Likewise.
3411         (f32_sr2): Likewise.
3412         (f32_sm2): Likewise.
3413         (f32_si2): Likewise.
3414         (f64_p9): Likewise.
3415         (extendsfdf2_fpr): Likewise.
3416         (mov<mode>_hardfloat): Likewise.
3417         (mov<mode>_hardfloat32): Likewise.
3418         (mov<mode>_hardfloat64): Likewise.
3420         * doc/md.texi (RS/6000 constraints): Document wb constraint.
3421         Fixup we constraint documentation.
3423 2015-11-25  Tom de Vries  <tom@codesourcery.com>
3425         * omp-low.c (pass_expand_omp_ssa::clone): New function.
3426         * passes.def: Add pass_oacc_kernels pass group.
3427         * tree-ssa-loop-ch.c (pass_ch::clone): New function.
3429 2015-11-25  Tom de Vries  <tom@codesourcery.com>
3431         * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
3432         Declare.
3433         * tree-ssa-loop.c (gate_oacc_kernels): New static function.
3434         (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
3435         (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
3436         (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
3438 2015-11-25  Jan Hubicka  <hubicka@ucw.cz>
3440         * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
3441         TV_IPA_LTO_OUTPUT): New.
3442         * lto-compress.c: Include timevar.h
3443         (lto_end_compression, lto_end_uncompression): Add timers.
3444         * langhooks.c: Include timevar.h.
3445         (lhd_append_data): Add timer.
3447 2015-11-25  Jan Hubicka  <hubicka@ucw.cz>
3449         * varasm.c (default_elf_asm_output_limited_string,
3450         default_elf_asm_output_ascii): Replace fprintf by putc.
3452 2015-11-25  Vladimir Makarov  <vmakarov@redhat.com>
3454         PR rtl-optimization/67954
3455         * lra-constraints.c (curr_insn_transform): Add check on scratch
3456         pseudo when change class to NO_REGS.  Add an assert.
3458 2015-11-25  Nathan Sidwell  <nathan@acm.org>
3460         * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
3461         constraint is 'n'.
3462         * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg number.
3463         (nvptx_write_function_decl): Number args from 0.
3464         (nvptx_declare_function_name): Likewise.
3465         (nvptx_function_incoming_arg): Likewise.
3466         (nvptx_output_call_insn): Correct formatting.
3468 2015-11-25  David Sherwood  <david.sherwood@arm.com>
3470         * optabs.def: Add new optabs fmax_optab/fmin_optab.
3471         * internal-fn.def: Add new fmax/fmin internal functions.
3472         * doc/md.texi: Add fmin and fmax patterns.
3474 2015-11-25  Jason Merrill  <jason@redhat.com>
3476         PR c++/68385
3477         * tree.c (integer_zerop, integer_onep, integer_each_onep)
3478         (integer_all_onesp, integer_minus_onep, integer_pow2p)
3479         (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
3480         (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
3482 2015-11-25  Richard Biener  <rguenther@suse.de>
3484         PR middle-end/68528
3485         * fold-const.c (fold_binary_loc): Do not call negate_expr_p
3486         on stripped operands.
3488 2015-11-25  Nathan Sidwell  <nathan@acm.org>
3490         * config/nvptx/nvptx.c (walk_args_for_params): Delete.
3491         (nvptx_declare_function_name): Move assignments next to register
3492         declarations, and process params here.
3494 2015-11-25  David Edelsohn  <dje.gcc@gmail.com>
3496         * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
3497         both the symbol and the "dot" symbol for function descriptors. Fix
3498         inversion for rename of symbols with dollar sign.
3500 2015-11-25  Tom de Vries  <tom@codesourcery.com>
3502         * cfgloop.c (find_single_latch): New function, factored out of ...
3503         (flow_loops_find): ... here.
3504         (verify_loop_structure): Improve verification of loop->latch.
3505         * cfgloop.h (find_single_latch): Declare.
3506         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
3508 2015-11-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3510         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
3511         (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
3512         (STARTFILE_SPEC): Use %(startfile_vtv).
3513         (ENDFILE_SPEC): Use %(endfile_vtv).
3514         (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
3515         ENDFILE_VTV_SPEC.
3517         * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
3519 2015-11-25  Bernd Schmidt  <bschmidt@redhat.com>
3521         * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
3522         noce_can_store_speculate): Delete.
3523         (noce_process_if_block): Don't try to handle single MEM stores.
3524         * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
3525         * alias.c (memory_must_be_modified_in_insn_p): Delete.
3527 2015-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3529         PR rtl-optimization/68435
3530         * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
3531         for conflicts between a, b and the set destinations.
3533 2015-11-25  Richard Biener  <rguenther@suse.de>
3535         PR tree-optimization/68517
3536         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
3537         Properly handle zero-sized types.
3539 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
3541         * ipa-inline-analysis.c: Include gimplify.h
3542         (set_cond_stmt_execution_predicate,
3543         set_switch_stmt_execution_predicate): Be sure to not leak locations
3544         to function body.
3546 2015-11-25  Jakub Jelinek  <jakub@redhat.com>
3548         PR target/67089
3549         * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
3550         match_uaddsub_overflow): New functions.
3551         (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
3553 2015-11-25  Richard Biener  <rguenther@suse.de>
3555         PR tree-optimization/68492
3556         * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
3557         op from scalars after operand swapping.
3559 2015-11-25  Richard Biener  <rguenther@suse.de>
3561         PR tree-optimization/68502
3562         * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
3563         check that the step is a multiple of the type size.
3565 2015-11-24  Michael Collison  <michael.collison@linaro.org>
3567         * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
3568         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
3569         * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
3571 2015-11-24  Steve Ellcey  <sellcey@imgtec.com>
3573         * frame-header-opt.c (gate): Check for optimize > 0.
3574         (has_inlined_assembly): New function.
3575         (needs_frame_header_p): Remove is_leaf_function check,
3576         add argument type check.
3577         (callees_functions_use_frame_header): Add is_leaf_function
3578         and has_inlined_assembly calls..
3579         (set_callers_may_not_allocate_frame): New function.
3580         (frame_header_opt): Add is_leaf_function call, add
3581         set_callers_may_not_allocate_frame call.
3582         * config/mips/mips.c (mips_compute_frame_info): Add check
3583         to see if callee saved regs can be put in frame header.
3584         (mips_expand_prologue): Add check to see if step1 is zero,
3585         fix cfa restores when using frame header to store regs.
3586         (mips_can_use_return_insn): Check to see if registers are
3587         stored in frame header.
3588         * config/mips/mips.h (machine_function): Add
3589         callers_may_not_allocate_frame and
3590         use_frame_header_for_callee_saved_regs fields.
3592 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
3594         PR rtl-optimization/68520
3595         * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
3596         its bit was already set in BB_WITH.
3598 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
3600         * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
3601         double check that type is main variant.
3602         * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
3603         variant.
3604         (verify_type_variant): Verify that variants have no
3605         TYPE_ALIAS_SET_KNOWN_P set
3606         * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
3607         streaming so constant fields come first; stream TYPE_ALIAS_SET==0
3608         only for main variants; stream TYPE_ALIAS_SET as a bit.
3609         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
3610         accordingly.
3612 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
3614         * tree.c (make_vector_type): Properly compute canonical type of the
3615         main variant.
3616         (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
3617         a main variant.
3619 2015-11-24  Nathan Sidwell  <nathan@acm.org>
3621         * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
3622         VOIDmode, don't alter incoming mode.
3623         (nvptx_split_reg_p): Delete.
3624         (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
3625         write_func_decl_from_insn, nvptx_output_call_insn): Adjust
3626         maybe_split_mode calls.
3627         (nvptx_print_operand): Use maybe_split_mode.
3629 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
3631         * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
3632         only for types where LTO sets them.
3633         * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
3634         (make_vector_type): Likewise.
3635         (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
3636         * tree.h (canonical_type_used_p): New inline.
3637         * alias.c (get_alias_set): Handle structural equality for all
3638         types that pass canonical_type_used_p.
3639         (record_component_aliases): Look through all types with
3640         record_component_aliases for possible pointers; sanity check that
3641         the alias sets match.
3643 2015-11-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3645         * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
3647 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
3649         * tree.c (free_node): New function.
3650         (type_hash_canon): Use it.
3651         * tree.h (free_node): Declare.
3653 2015-11-24  David Edelsohn  <dje.gcc@gmail.com>
3654             Michael Meissner  <meissner@linux.vnet.ibm.com>
3656         * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
3657         (Fv2): New mode attribute to be used when ISA 2.07 instructions
3658         are used on SF values, and ISA 2.06 instructions on DF values.
3659         (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
3660         (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
3661         (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
3662         (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
3663         (sqrt<mode>2): Use <Fv2> instead of <Fv>.
3664         (fre<Fs>): Use <Fv2> instead of <Fv>.
3665         (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
3666         (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
3667         (xsrdpi<mode>): Add support for the lround function.
3668         (lround<mode>di2): Likewise.
3669         (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
3670         (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
3671         (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
3672         (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
3674 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
3675             Sebastian Pop  <s.pop@samsung.com>
3677         PR tree-optimization/67984
3678         * graphite-isl-ast-to-gimple.c (is_constant): New.
3679         (get_rename): Call is_constant.
3680         (get_new_name): Same.
3682 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
3683             Sebastian Pop  <s.pop@samsung.com>
3685         * graphite-dependences.c: Only include graphite.h.
3686         * graphite-isl-ast-to-gimple.c: Same.
3687         * graphite-optimize-isl.c: Same.
3688         * graphite-poly.c: Same.
3689         * graphite-scop-detection.c: Same.
3690         * graphite-sese-to-poly.c: Same.
3691         * graphite.c: Same.
3692         * graphite-isl-ast-to-gimple.h: Move to graphite.h.
3693         * graphite-poly.h: Same.
3694         * graphite-scop-detection.h: Same.
3695         * graphite.h: New.
3697 2015-11-24  Pierre-Marie de Rodat  <derodat@adacore.com>
3699         * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
3700         DW_TAG_namespace for IMPORTED_DECL declarations.  Call
3701         dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
3702         function already takes care of checking what it can emit.
3704 2015-11-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3706         * doc/invoke.texi (-fpic): Add the AArch64 limit.
3707         (-fPIC): Add AArch64.
3709 2015-11-24  Tom de Vries  <tom@codesourcery.com>
3711         * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
3712         (pass_lim::execute): Allow to run outside pass_tree_loop.
3714 2015-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
3716         * config/aarch64/aarch64.md (add<mode>3):
3717         Block early expansion into 2 add instructions.
3718         (add<mode>3_pluslong): New pattern to combine complex
3719         immediates into 2 additions.
3721 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
3723         PR target/66217
3724         PR target/67677
3725         PR target/68332
3726         * config/rs6000/predicates.md (and_operand): Check that the operand
3727         is a const_int before calling rs6000_is_valid_and_mask.
3729 2015-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3731         * config/aarch64/aarch64.md (*condjump): Rename to...
3732         (condjump): ... This.
3733         (*compare_condjump<mode>): New define_insn_and_split.
3734         (*compare_cstore<mode>_insn): Likewise.
3735         (*cstore<mode>_insn): Rename to...
3736         (cstore<mode>_insn): ... This.
3737         * config/aarch64/iterators.md (CMP): Handle ne code.
3738         * config/aarch64/predicates.md (aarch64_imm24): New predicate.
3740 2015-11-24  Mikhail Maltsev  <maltsevm@gmail.com>
3742         PR target/68497
3743         * config/i386/i386.c (output_387_binary_op): Fix assertion for
3744         -fno-checking case.
3746 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3748         * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
3749         (val_ssa_equiv_hash_traits::remove): Likewise.
3750         (pass_uncprop::execute): Adjust.
3752 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3754         * hash-map-traits.h (simple_hashmap_traits ::remove): call
3755         destructors on values that are being removed.
3756         * mem-stats.h (hash_map): Pass type of values to
3757         simple_hashmap_traits.
3758         * tree-sra.c (sra_deinitialize): Remove work around for hash
3759         maps not destructing values.
3760         * genmatch.c (sinfo_hashmap_traits): Adjust.
3761         * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
3763 2015-11-24  Richard Biener  <rguenther@suse.de>
3764             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3766         PR middle-end/68375
3767         * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
3768         bogus assertion.
3770 2015-11-24  Jakub Jelinek  <jakub@redhat.com>
3772         PR target/68483
3773         * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
3774         is valid vec_shr pattern, don't lower it even if can_vec_perm_p
3775         returns false.
3776         * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
3777         whenever first is nelt or above.  Don't mask expected with
3778         2 * nelt - 1.
3780 2015-11-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
3782         PR c/68337
3783         * gimple-fold.c: Include ipa-chkp.h.
3784         (gimple_fold_builtin_memory_op): Don't fold call if we
3785         are going to instrument it and it may copy pointers.
3787 2015-11-24  Bernd Schmidt <bschmidt@redhat.com>
3788             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3790         PR rtl-optimization/68194
3791         PR rtl-optimization/68328
3792         PR rtl-optimization/68185
3793         * ree.c (combine_reaching_defs): Reject copy_needed case if
3794         copies_list is not empty.
3796 2015-11-24  Richard Biener  <rguenther@suse.de>
3798         PR middle-end/68221
3799         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
3800         use mem_ref_offset.
3802 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
3804         PR rtl-optimization/68381
3805         * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
3806         is poisoned.
3808 2015-11-23  Nick Clifton  <nickc@redhat.com>
3809             Jeff Law  <law@redhat.com>
3811         * ree.c (add_removable_extension): Avoid mis-optimizing cases where
3812         the source/dest of the target extension require a different number of
3813         hard registers.
3814         (combine_set_extension): Remove #if 0 code.
3816 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
3817             Sebastian Pop  <s.pop@samsung.com>
3819         PR tree-optimization/68314
3820         * graphite-optimize-isl.c (optimize_isl): Do not call
3821         isl_union_map_is_equal.
3822         * graphite-poly.c (new_scop): Remove original_schedule.
3823         (free_scop): Same.
3824         * graphite-poly.h (struct scop): Same.
3825         * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons):
3826         Remove.
3827         (build_pbb_scattering_polyhedrons): Add back.
3828         (build_scop_minimal_scattering): Remove.
3829         (build_scop_scattering): Add back.
3830         (build_scop_original_schedule): Remove.
3831         (build_poly_scop): Revert to only call build_scop_scattering.
3833 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
3834             Sebastian Pop  <s.pop@samsung.com>
3836         PR tree-optimization/68493
3837         * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
3838         missing early return when codegen_error is set.
3840 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
3841             Sebastian Pop  <s.pop@samsung.com>
3843         PR tree-optimization/68279
3844         * graphite-poly.c (new_scop): Remove poly_scop_p.
3845         * graphite-poly.h (struct scop): Same.
3846         (build_poly_scop): Declare.
3847         * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
3848         (cleanup_loop_iter_dom): New.
3849         (build_loop_iteration_domains): Early return when scev analysis fails.
3850         (create_pw_aff_from_tree): Same.
3851         (add_condition_to_pbb): Same.
3852         (add_conditions_to_domain): Same.
3853         (add_conditions_to_constraints): Same.
3854         (build_scop_iteration_domain): Same.
3855         (build_poly_scop): Same.  Do not initialize poly_scop_p.
3856         * graphite-sese-to-poly.h: Remove.
3857         * graphite.c: Do not include graphite-sese-to-poly.h.
3858         (graphite_transform_loops): Stop before code generation when
3859         build_poly_scop fails.
3860         * sese.c (scalar_evolution_in_region): Add fixme note about scev
3861         analysis.
3863 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
3864             Sebastian Pop  <s.pop@samsung.com>
3866         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
3867         Remove call to update_ssa.
3868         * sese.c (sese_insert_phis_for_liveouts): Same.
3870 2015-11-23  Marek Polacek  <polacek@redhat.com>
3872         PR tree-optimization/68455
3873         * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
3874         extract_range_from_multiplicative_op_1 on symbolic ranges.
3876 2015-11-23  Richard Henderson  <rth@redhat.com>
3878         * optabs.def (uaddv4_optab, usubv4_optab): New.
3879         * internal-fn.c (expand_addsub_overflow): Use them.
3880         * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
3882         * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
3883         to reversed operands.
3884         * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
3885         (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
3886         (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
3887         (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
3888         (*add<SWI>3_cconly_overflow_2): New.
3889         (*add<SWI>3_cc_overflow_2): New.
3890         (*addsi3_zext_cc_overflow_2): New.
3892 2015-11-23  Richard Biener  <rguenther@suse.de>
3894         PR tree-optimization/68465
3895         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
3896         Also record equalities from multiple predecessor blocks if
3897         only one non-backedge exists.
3899 2015-11-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3901         PR target/68363
3902         * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
3903         that are not INSN_P.
3905 2015-11-23  Bilyan Borisov  <bilyan.borisov@arm.com>
3907         * config/aarch64/aarch64-builtins.c
3908         (aarch64_gimple_fold_builtin): Fold FMULX.
3910 2015-11-23  David Edelsohn  <dje.gcc@gmail.com>
3912         * system.h: Don't poison calloc and strdup if USES_ISL is defined.
3913         * graphite-dependences.c: Define USES_ISL.  Include ISL header files
3914         after GCC header files and before graphite header files.
3915         * graphite-dependences.c: Same.
3916         * graphite-isl-ast-to-gimple.c: Same.
3917         * graphite-optimize-isl.c: Same.
3918         * graphite-poly.c: Same.
3919         * graphite-scop-detection.c: Same.
3920         * graphite-sese-to-poly.c: Same.
3921         * graphite.c: Same.
3923 2015-11-23  Richard Biener  <rguenth@gcc.gnu.org>
3924             Jiong Wang  <jiong.wang@arm.com>
3926         PR tree-optimization/68317
3927         PR tree-optimization/68326
3928         * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
3929         final min and max are not infinity.
3931 2015-11-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
3932             Richard Biener  <rguenther@suse.de>
3934         PR tree-optimization/68327
3935         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
3936         compute vectype for non-relevant mask producers.
3937         * tree-vect-stmts.c (vectorizable_comparison): Check stmt
3938         relevance earlier.
3940 2015-11-23  Tom de Vries  <tom@codesourcery.com>
3942         PR tree-optimization/68460
3943         * tree-parloops.c (gather_scalar_reductions): Also call
3944         free_stmt_vec_info_vec if simple_loop_info == NULL.
3946 2015-11-23  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
3948         * opts.c (finish_options): Allow -fsanitize-recover=address for
3949         userspace sanitization.
3950         * asan.c (asan_expand_check_ifn): Redefine recover_p.
3951         * doc/invoke.texi (fsanitize-recover): Update documentation.
3953 2015-11-23  Tom de Vries  <tom@codesourcery.com>
3955         * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
3957 2015-11-23  Richard Biener  <rguenther@suse.de>
3959         PR tree-optimization/68445
3960         * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
3961         two different strides.
3963 2015-11-23  Robin Dapp  <rdapp@linux.vnet.ibm.com>
3965         * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
3966         * config/s390/s390.c (s390_check_symref_alignment): Use new
3967         symref flags, early abort on wrong alignment
3968         (s390_secondary_reload): Use new symref flags.
3969         (s390_encode_section_info): Likewise.
3970         * config/s390/predicates.md: Likewise.
3972 2015-11-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
3974         PR target/68390
3975         * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
3976         for indirect function call.
3978 2015-11-22  Bilyan Borisov  <bilyan.borisov@arm.com>
3980         * config/aarch64/aarch64-simd.md
3981         (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
3982         (*aarch64_mulx_elt<mode>, VDQF): Likewise.
3983         (*aarch64_mulx_elt_to_64v2df): Likewise.
3984         (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
3985         * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
3986         (vmulx_lane_f64): Likewise.
3987         (vmulxq_lane_f32): Refactored & moved.
3988         (vmulxq_lane_f64): Likewise.
3989         (vmulx_laneq_f32): New.
3990         (vmulx_laneq_f64): Likewise.
3991         (vmulxq_laneq_f32): Likewise.
3992         (vmulxq_laneq_f64): Likewise.
3993         (vmulxs_lane_f32): Likewise.
3994         (vmulxs_laneq_f32): Likewise.
3995         (vmulxd_lane_f64): Likewise.
3996         (vmulxd_laneq_f64): Likewise.
3998 2015-11-21  Jan Hubicka  <hubicka@ucw.cz>
4000         * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
4001         In LTO we do not compute TYPE_CANONICAL of pointers.
4002         (gimple_canonical_types_compatible_p): Improve coments; sanity check
4003         that pointers do not have canonical type that would make us believe
4004         they are different.
4005         * alias.c (get_alias_set): Do structural type equality on pointers;
4006         enable pointer path for LTO; also glob pointer to vector with pointer
4007         to vector element; glob pointers and references for LTO; do more strict
4008         sanity checking about build_pointer_type returning the canonical type
4009         which is also the main variant.
4010         (record_component_aliases): When component type is pointer and we
4011         do LTO; record void_type_node alias set.
4013 2015-11-21  Nathan Sidwell  <nathan@acm.org>
4015         * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
4017         * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
4018         leading blank line.
4019         (write_func_decl_from_insn): Likewise.
4020         (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
4021         (nvptx_file_end): Likewise.
4022         (nvptx_function_end): Undent output.
4023         (nvptx_expand_call): Fix formatting.
4024         (nvptx_output_call_insn): Indent output.
4025         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
4026         ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
4028 2015-11-21  Jakub Jelinek  <jakub@redhat.com>
4030         PR debug/66432
4031         * tree-inline.c (copy_debug_stmt): If
4032         gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
4033         in decl_debug_args, don't call remap_gimple_op_r on it.
4035 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
4037         * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
4038         do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
4039         Check that all record types are complete.
4040         * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
4041         compare alias sets for types w/o alias sets.
4043 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
4045         * config/sparc/sparc.md (umulxhi_vis): Move around.
4046         (*umulxhi_sp64): Likewise.
4047         (umulxhi_v8plus): Likewise.
4048         (xmulx_vis): Likewise.
4049         (*xmulx_sp64): Likewise.
4050         (xmulx_v8plus): Likewise.
4051         (xmulxhi_vis): Likewise.
4052         (*xmulxhi_sp64): Likewise.
4053         (xmulxhi_v8plus): Likewise.
4055 2015-11-20  David Malcolm  <dmalcolm@redhat.com>
4057         PR 62314
4058         * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
4059         (class layout): Update comment
4060         (layout::print_any_fixits): New method.
4061         (layout::move_to_column): New method.
4062         (diagnostic_show_locus): Add call to layout.print_any_fixits.
4064 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
4066         PR middle-end/68221
4067         * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
4068         has non-zero bias, subtract it in integer type instead of
4069         pointer plus of negated bias.
4071         PR middle-end/68339
4072         * omp-low.c (expand_simd_clones): Call node->get_body () before
4073         allocating stuff in GC.
4075 2015-11-20  Jim Wilson  <jim.wilson@linaro.org>
4077         * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
4079 2015-11-20  Evandro Menezes  <e.menezes@samsung.com>
4081         * config/aarch64/aarch64.md (predicated): Copy attribute from
4082         "arm.md".
4083         * config/arm/arm.md (predicated): Added description.
4085 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4087         * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
4088         for unaligned_access.
4089         * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
4090         from matching condition.
4091         (unaligned_loadhis): Likewise.
4092         (unaligned_loadhiu): Likewise.
4093         (unaligned_storesi): Likewise.
4094         (unaligned_storehi): Likewise.
4096 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4098         PR target/68149
4099         * config/arm/arm.md (unaligned_loaddi): Delete.
4100         (unaligned_storedi): Likewise.
4101         * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
4102         unaligned DImode memory ops.  Instead perform two back-to-back
4103         unaligned SImode ops.
4105 2015-11-20  Nathan Sidwell  <nathan@codesourcery.com>
4106             James Norris  <jnorris@codesourcery.com>
4108         * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
4109         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
4111 2015-11-20  Alan Hayward <alan.hayward@arm.com>
4113         PR tree-optimization/68413
4114         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
4115         evolution base
4116         (vectorizable_reduction): Use cached base
4118 2015-11-20  Tom de Vries  <tom@codesourcery.com>
4120         * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
4121         dump-file string.
4122         (try_create_reduction_list): Same.  Fix typo in dump-file string.
4124 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
4126         * doc/md.texi (Standard Names): Move entry for addptr3 around,
4127         add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
4128         glitch in entries for cbranch4 and jump.
4130 2015-11-20  Tom de Vries  <tom@codesourcery.com>
4132         PR tree-optimization/68373
4133         * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
4134         of ...
4135         (scev_const_prop): ... here.
4136         * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
4137         * tree-parloops.c (try_create_reduction_list): Call
4138         final_value_replacement_loop.
4140 2015-11-20  Bin Cheng  <bin.cheng@arm.com>
4142         PR tree-optimization/52272
4143         * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
4144         (struct iv_common_cand_hasher): New struct.
4145         (iv_common_cand_hasher::hash): New function.
4146         (iv_common_cand_hasher::equal): New function.
4147         (struct ivopts_data): New fields, iv_common_cand_tab and
4148         iv_common_cands.
4149         (tree_ssa_iv_optimize_init): Initialize above fields.
4150         (record_common_cand, common_cand_cmp): New functions.
4151         (add_iv_candidate_derived_from_uses): New function.
4152         (add_iv_candidate_for_use): Record iv_common_cands derived from
4153         iv use in hash table, instead of adding candidates directly.
4154         (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
4155         (record_important_candidates): Add important candidates to iv uses'
4156         related_cands.  Always keep related_cands for future use.
4157         (try_add_cand_for): Use iv uses' related_cands.
4158         (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
4159         in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
4161 2015-11-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4163         * config/s390/s390.md ("bswaphi2"): New pattern.
4165 2015-11-20  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4167         * config/s390/s390.md (GPR1_REGNUM): New constant.
4168         ("*trunc<BFP:mode><DFP_ALL:mode>2")
4169         ("*trunc<DFP_ALL:mode><BFP:mode>2")
4170         ("trunc<BFP:mode><DFP_ALL:mode>2")
4171         ("trunc<DFP_ALL:mode><BFP:mode>2")
4172         ("*extend<BFP:mode><DFP_ALL:mode>2")
4173         ("*extend<DFP_ALL:mode><BFP:mode>2")
4174         ("extend<BFP:mode><DFP_ALL:mode>2")
4175         ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
4177 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
4178             Sebastian Pop  <s.pop@samsung.com>
4180         PR tree-optimization/68428
4181         * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
4182         over basic blocks outside the scop.
4184 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
4185             Sebastian Pop  <s.pop@samsung.com>
4187         PR tree-optimization/68341
4188         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
4189         gcc_unreachable and safely fail codegen.
4190         (copy_loop_close_phi_args): Do not insert merge phis in a basic
4191         block with loop phi nodes.
4192         (edge_for_new_close_phis): New.
4193         (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
4195 2015-11-19  Nathan Sidwell  <nathan@acm.org>
4197         * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
4198         * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
4199         (nvptx_declare_objec_name): Likewise.
4201 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
4203         * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
4204         (get_false_edge_from_guard_bb): Move...
4205         * sese.c (get_false_edge_from_guard_bb)
4206         (get_true_edge_from_guard_bb): ... here.
4208 2015-11-19  David Edelsohn  <dje.gcc@gmail.com>
4210         Revert
4211         2015-11-18  Alan Modra  <amodra@gmail.com>
4213         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
4214         type-limits warning.
4217 2015-11-19  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
4219         * tree.h (desired_pro_or_demotion_p): New function.
4220         * tree-vrp.c (simplify_cond_using_ranges): Call it.
4222 2015-11-19  Michael Matz  <matz@suse.de>
4224         PR rtl-optimization/68392
4225         * fwprop.c (update_uses): Use flag_checking instead of
4226         gcc_checking_assert.
4228 2015-11-19  David Malcolm  <dmalcolm@redhat.com>
4230         * doc/gty.texi (Support for inheritance): Fix missing
4231         parentheses in example.
4233 2015-11-19  Marek Polacek  <polacek@redhat.com>
4235         PR tree-optimization/68431
4236         * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
4238 2015-11-19  Nathan Sidwell  <nathan@acm.org>
4240         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
4241         atomic_exchange<mode>): Input values can be immediates.
4243 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
4245         PR lto/61313
4246         * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
4247         by the user.
4248         * configure: Regenerate.
4250 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
4252         PR target/68408
4253         * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
4254         (DTORS_SECTION_ASM_OP): Likewise.
4256 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
4258         PR rtl-optimization/68376
4259         * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
4260         encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
4262 2015-11-19  Richard Biener  <rguenther@suse.de>
4264         PR middle-end/68117
4265         * tree-ssa.c (delete_tree_ssa): Revert removal of call to
4266         redirect_edge_var_map_destroy.
4268 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
4270         PR target/67770
4271         * config/i386/i386.md (simple_return): Disable if
4272         ix86_static_chain_on_stack is true.
4274 2015-11-19  Richard Sandiford  <richard.sandiford@arm.com>
4276         PR bootstrap/68393
4277         * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
4278         destinations.
4280 2015-11-18  Jeff Law  <law@redhat.com>
4282         PR tree-optimization/68198
4283         * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
4284         between threading a multi-way branch and a thread path that contains
4285         a multi-way branch.  Disallow the case where a path contains a
4286         multi-way branch and does not thread a multi-way branch.
4287         (thread_through_all_blocks): Update comment.
4289 2015-11-18  Joseph Myers  <joseph@codesourcery.com>
4291         PR c/65083
4292         * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
4293         (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
4294         (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
4295         functions before defining as macros.
4297 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
4299         * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
4300         (nvptx_record_offload_symbol): Remove code compensating for lack
4301         of default dimension handling.
4302         (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
4304 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
4306         * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
4307         type to bool for early exit.
4308         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
4309         in case of error.
4310         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
4311         (add_phi_arg_for_new_expr): Enable codegen for if-block where one
4312         predecessor dominates the other.
4313         (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
4314         element is not found it returns -1.
4315         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
4316         out early when codegen fails.
4317         (graphite_regenerate_ast_isl): Remove codegen region when pending
4318         phis could not be generated.
4320 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
4322         * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
4323         semicolon.
4324         (class translate_isl_ast_to_gimple): Indentation.
4325         (translate_pending_phi_nodes): Comment.
4326         (add_parameters_to_ivs_params): Moved from sese.c inside class
4327         translate_isl_ast_to_gimple.
4328         (get_max_schedule_dimensions): Same.
4329         (generate_isl_context): Same.
4330         (extend_schedule): Same.
4331         (generate_isl_schedule): Same.
4332         (set_options): Same.
4333         (scop_to_isl_ast): Same.
4334         (is_valid_rename): Same.
4335         (get_rename): Same.
4336         (get_rename_from_scev): Same.
4337         (get_def_bb_for_const): Same.
4338         (get_new_name): Same.
4339         (collect_all_ssa_names): Same.
4340         (copy_loop_phi_args): Same.
4341         (copy_loop_phi_nodes): Same.
4342         (copy_loop_close_phi_args): Same.
4343         (copy_loop_close_phi_nodes): Same.
4344         (copy_cond_phi_args): Same.
4345         (copy_cond_phi_nodes): Same.
4346         (graphite_copy_stmts_from_block): Same.
4347         (copy_bb_and_scalar_dependences): Same.
4348         (add_phi_arg_for_new_expr): Same.
4349         (rename_uses): Same.
4350         (set_rename): Same.
4351         (set_rename_for_each_def): Same.
4352         (gsi_insert_earliest): Same.
4353         (rename_all_uses): Same.
4354         (codegen_error_p): Same.
4355         (print_isl_ast_node): Same.
4356         (translate_isl_ast_for_loop): Call function codegen_error_p.
4357         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
4358         (translate_isl_ast_node_user): Make nb_loops const and release
4359         iv_map before exit.
4360         (get_true_edge_from_guard_bb): Move all free-functions early.
4361         (get_false_edge_from_guard_bb): Same.
4362         (bb_contains_loop_close_phi_nodes): Same.
4363         (bb_contains_loop_phi_nodes): Same.
4364         (is_loop_closed_ssa_use):  Same.
4365         (number_of_phi_nodes): Same.
4366         (phi_uses_name): Same.
4367         (later_of_the_two): Same.
4368         (substitute_ssa_name):
4369         (get_edges): Same.
4370         (get_loc): Same.
4371         (get_loop_init_value): Same.
4372         (find_init_value): Same.
4373         (find_init_value_close_phi): Same.
4374         (ast_build_before_for): Same.
4375         (graphite_regenerate_ast_isl): Formatting changes.
4376         * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
4377         * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
4378         (set_rename): Same.
4379         (gsi_insert_earliest): Same.
4380         (collect_all_ssa_names): Same.
4381         (rename_all_uses): Same.
4382         (rename_uses): Same.
4383         (get_def_bb_for_const): Same.
4384         (copy_loop_phi_nodes): Same.
4385         (copy_loop_close_phi_args): Same.
4386         (copy_loop_close_phi_nodes): Same.
4387         (copy_cond_phi_args): Same.
4388         (copy_cond_phi_nodes): Same.
4389         (set_rename_for_each_def): Same.
4390         (graphite_copy_stmts_from_block): Same.
4391         (copy_bb_and_scalar_dependences): Same.
4392         (if_region_set_false_region): Same.
4393         (scev_analyzable_p): Same.
4394         * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
4396 2015-11-18  Andreas Tobler  <andreast@gcc.gnu.org>
4398         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
4399         commit from r125920 for FreeBSD.
4401 2015-11-18  Jason Merrill  <jason@redhat.com>
4403         * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
4404         to be vecs of vecs.
4405         (add_finalizer): Split out from ggc_internal_alloc.
4406         (ggc_handle_finalizers): Run finalizers for the current depth.
4407         (init_ggc, ggc_pch_read): Reserve space for finalizers.
4409 2015-11-18  Sandra Loosemore  <sandra@codesourcery.com>
4411         PR target/68410
4412         * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
4413         from || expression.
4415 2015-11-18  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
4417         * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
4418         atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
4419         and atmega328pb.
4420         * doc/avr-mmcu.texi: Regenerate.
4422 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
4424         * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
4425         (pseudo_node_t, struct bracket, bracket_vec_t): New types.
4426         (struct bb_sese): New struct.
4427         (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
4428         (BB_GET_SESE, BB_SET_SESE): Define.
4429         (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
4430         (nvptx_find_sese): New.
4431         (nvptx_neuter_pars): Find SESE regions when optimizing.
4433 2015-11-18  Alan Modra  <amodra@gmail.com>
4435         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
4436         type-limits warning.
4438 2015-11-18  Richard Sandiford  <richard.sandiford@arm.com>
4440         PR bootstrap/68406
4441         * hash-set.h (hash_set::traverse): Expand Key typedef.
4443 2015-11-18  Martin Liska  <mliska@suse.cz>
4445         * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
4446         options struct.
4448 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
4450         * config/nvptx/nvptx.c (global_lock_var): New.
4451         (nvptx_global_lock_addr): New.
4452         (nvptx_lockless_update): Recomment and adjust for clarity.
4453         (nvptx_lockfull_update): New.
4454         (nvptx_reduction_update): New.
4455         (nvptx_goacc_reduction_fini): Call it.
4457 2015-11-18  Bernd Schmidt  <bschmidt@redhat.com>
4459         * regrename.h (struct du_head): Add target_data_1 and target_data_2
4460         fields.
4461         * regrename.c (create_new_chain): Clear entire struct after allocating.
4463         * config/i386/i386.opt (mmitigate-rop): New option.
4464         * doc/invoke.texi (mmitigate-rop): Document.
4465         * config/i386/i386.c: Include "regrename.h".
4466         (ix86_rop_should_change_byte_p, reg_encoded_number,
4467         ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
4468         static functions.
4469         (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
4470         * config/i386/i386.md (attr "modrm_class"): New.
4471         (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
4472         x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
4473         (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
4475 2015-11-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
4477         PR target/68405
4478         * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
4480 2015-11-18  Jakub Jelinek  <jakub@redhat.com>
4482         PR tree-optimization/68157
4483         * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
4484         pow_stmt or mul_stmt from stmt's uid.
4485         (reassociate_bb): Set uid of mul_stmt from stmt's uid.
4487 2015-11-18  Martin Liska  <mliska@suse.cz>
4489         * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
4491 2015-11-18  Martin Liska  <mliska@suse.cz>
4493         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4494         Fix GNU coding style.
4495         (find_def_preds): Use auto_vec.
4496         (destroy_predicate_vecs): Change signature of the function.
4497         (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
4498         new signature.
4499         (simplify_preds_4): Use destroy_predicate_vecs instread of
4500         just releasing preds vector.
4501         (normalize_preds): Likewise.
4502         (is_use_properly_guarded): Use new signature of
4503         destroy_predicate_vecs.
4504         (find_uninit_use): Likewise.
4506 2015-11-18  Richard Biener  <rguenther@suse.de>
4508         PR tree-optimization/67790
4509         * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
4510         IL rewrite for MINUS_EXPR reductions, rename back to ...
4511         (vect_is_simple_reduction): ... this, removing the wrapper.
4512         (vect_force_simple_reduction): Adjust.
4513         (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
4514         reductions and make use if reduc_index in all places.  For
4515         the final reduction of MINUS_EXPR use PLUS_EXPR.
4517 2015-11-18  Alan Modra  <amodra@gmail.com>
4519         * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
4520         to ld.
4521         * configure: Regenerate.
4523 2015-11-17  Tom de Vries  <tom@codesourcery.com>
4525         * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
4527 2015-11-17  Tom de Vries  <tom@codesourcery.com>
4529         * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
4530         uses of ssa_name with constant.
4532 2015-11-17  Tom de Vries  <tom@codesourcery.com>
4534         * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
4535         something changed.
4537 2015-11-17  Tom de Vries  <tom@codesourcery.com>
4539         * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
4540         * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
4541         (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
4543 2015-11-17  Bernd Schmidt  <bschmidt@redhat.com>
4545         * regrename.c (regrename_find_superclass): New function, code moved
4546         from ...
4547         (rename_chains): ... here.  Call it.
4548         * regrename.h (regrename_find_superclass): Declare.
4550         * regrename.c (record_out_operands): Terminate earlyclobbered
4551         operands here.
4553         PR target/66785
4554         * regrename.c (record_operand_use): Keep track of failed operands
4555         and stop appending if we see any.
4556         * regrename.h (struct operand_rr_info): Add a failed field and shrink
4557         n_chains to short.
4559 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
4561         PR 48568
4562         * doc/extend.texi (Common Function Attributes) [visibility]:
4563         Add cross-references to matching variable and type attributes.
4564         (Common Variable Attributes) [visibility]: Add missing entry.
4566 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4568         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
4569         entries that map directly to optabs.
4571 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4573         * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
4574         entries that map directly to optabs.
4576 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4578         * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
4579         * internal-fn.c (direct_internal_fn_array): Update accordingly.
4580         * tree-vectorizer.h (vectorizable_function): Delete.
4581         * tree-vect-stmts.c: Include internal-fn.h.
4582         (vectorizable_internal_function): New function.
4583         (vectorizable_function): Inline into...
4584         (vectorizable_call): ...here.  Explicitly reject calls that read
4585         from or write to memory.  Try using an internal function before
4586         falling back on the old vectorizable_function behavior.
4588 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4590         * target.def (builtin_vectorized_function): Take a combined_fn (in
4591         the form of an unsigned int) rather than a function decl.
4592         (builtin_md_vectorized_function): New.
4593         * targhooks.h (default_builtin_vectorized_function): Replace the
4594         fndecl argument with an unsigned int.
4595         (default_builtin_md_vectorized_function): Declare.
4596         * targhooks.c (default_builtin_vectorized_function): Replace the
4597         fndecl argument with an unsigned int.
4598         (default_builtin_md_vectorized_function): New function.
4599         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
4600         New hook.
4601         * doc/tm.texi: Regenerate.
4602         * tree-vect-stmts.c (vectorizable_function): Update call to
4603         builtin_vectorized_function, also passing internal functions.
4604         Call builtin_md_vectorized_function for target-specific builtins.
4605         * config/aarch64/aarch64-protos.h
4606         (aarch64_builtin_vectorized_function): Replace fndecl argument
4607         with an unsigned int.
4608         * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
4609         (aarch64_builtin_vectorized_function): Update after above changes.
4610         Use CASE_CFN_*.
4611         * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
4612         fndecl argument with an unsigned int.
4613         * config/arm/arm-builtins.c: Include case-cfn-macros.h
4614         (arm_builtin_vectorized_function): Update after above changes.
4615         Use CASE_CFN_*.
4616         * config/i386/i386.c: Include case-cfn-macros.h
4617         (ix86_veclib_handler): Take a combined_fn rather than a
4618         built_in_function.
4619         (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise.  Use
4620         mathfn_built_in rather than calling builtin_decl_implicit directly.
4621         (ix86_builtin_vectorized_function) Update after above changes.
4622         Use CASE_CFN_*.
4623         * config/rs6000/rs6000.c: Include case-cfn-macros.h
4624         (rs6000_builtin_vectorized_libmass): Replace fndecl argument
4625         with a combined_fn.  Use CASE_CFN_*.  Use mathfn_built_in rather
4626         than calling builtin_decl_implicit directly.
4627         (rs6000_builtin_vectorized_function): Update after above changes.
4628         Use CASE_CFN_*.  Move BUILT_IN_MD to...
4629         (rs6000_builtin_md_vectorized_function): ...this new function.
4630         (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
4632 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4634         * tree-vect-patterns.c: Include internal-fn.h.
4635         (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
4637 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4639         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
4640         (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
4642 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4644         * builtins.c (expand_errno_check, expand_builtin_mathfn)
4645         (expand_builtin_mathfn_2): Delete.
4646         (expand_builtin): Remove handling of functions with
4647         internal function equivalents.
4648         * internal-fn.def (SET_EDOM): New internal function.
4649         * internal-fn.h (set_edom_supported_p): Declare.
4650         * internal-fn.c (expand_SET_EDOM): New function.
4651         (set_edom_supported_p): Likewise.
4652         * tree-call-cdce.c: Include builtins.h and internal-fn.h.
4653         Rewrite comment at head of file.
4654         (is_call_dce_candidate): Rename to...
4655         (can_test_argument_range): ...this.  Don't check gimple_call_lhs
4656         or gimple_call_builtin_p here.
4657         (edom_only_function): New function.
4658         (shrink_wrap_one_built_in_call_with_conds): New function, split out
4659         from...
4660         (shrink_wrap_one_built_in_call): ...here.
4661         (can_use_internal_fn, use_internal_fn): New functions.
4662         (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
4663         for calls that have an lhs.
4664         (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
4665         (pass_call_cdce::execute): Skip blocks that are optimized for size.
4666         Check gimple_call_builtin_p here.  Use can_use_internal_fn for
4667         calls with an lhs.
4668         * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
4669         at -O and above.
4671 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4673         * builtins.h (called_as_built_in): Declare.
4674         * builtins.c (called_as_built_in): Make external.
4675         * internal-fn.h (expand_internal_call): Define a variant that
4676         specifies the internal function explicitly.
4677         * internal-fn.c (expand_load_lanes_optab_fn)
4678         (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
4679         (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
4680         (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
4681         (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
4682         (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
4683         (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
4684         (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
4685         (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
4686         (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
4687         (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
4688         (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
4689         (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
4690         (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
4691         argument.
4692         (internal_fn_expanders): Update prototype.
4693         (expand_internal_call): Define a variant that specifies the
4694         internal function explicitly. Use it to implement the previous
4695         interface.
4696         * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
4697         functions as calls to internal functions.
4699 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4701         * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
4702         (generated_files): Likewise.
4703         (s-cfn-operators, cfn-operators.pd): New rules.
4704         (s-match): Depend on cfn-operators.pd.
4705         * gencfn-macros.c: Expand comment to describe -o behavior.
4706         (print_define_operator_list): New function.
4707         (main): Accept -o.  Call print_define_operator_list.
4708         * genmatch.c (main): Add the current directory to the include path.
4709         * match.pd (DEFINE_MATH_FN): Delete.  Include cfn-operators.pd
4710         instead.
4712 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4714         * doc/match-and-simplify.texi: Document the "null" identifier.
4715         * genmatch.c (id_base::NULL_ID): New kind.
4716         (null_id): New variable.
4717         (get_operator): Add a parameter that says whether null identifiers
4718         are allowed.
4719         (contains_id): New function.
4720         (lower_for): Skip substitutions that would have a null_id in
4721         either the match or the result.
4722         (parser::parse_for): Allow the null identifier to be used.
4723         (parser::parse_operator_list): Likewise.
4724         (main): Initialize null_id.
4726 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4728         * match.pd: Use HYPOT and COS rather than hypot and cos.
4729         Use CASE_CFN_* macros.  Guard log/exp folds with
4730         SCALAR_FLOAT_TYPE_P.
4731         * genmatch.c (internal_fn): New enum.
4732         (fn_id::fn): Change to an unsigned int.
4733         (fn_id::fn_id): Accept internal_fn too.
4734         (add_builtin): Rename to...
4735         (add_function): ...this and turn into a template.
4736         (get_operator): Only try one variation if the original name fails.
4737         Only add _EXPR if the original name was all lower case.
4738         Try converting internal and built-in function names to their
4739         CFN equivalents.
4740         (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
4741         (dt_simplify::gen_1): Likewise.
4742         (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
4743         and get_call_combined_fn for generic.
4744         (dt_simplify::gen): Use combined_fn as the type of fn_ids.
4745         (decision_tree::gen): Likewise.
4746         (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
4747         Use add_function rather than add_builtin.  Register internal
4748         functions too.
4749         * generic-match-head.c: Include case-cfn-macros.h.
4750         * gimple-fold.c (replace_stmt_with_simplification): Use
4751         gimple_call_combined_fn to test whether we can keep an
4752         existing call.
4753         * gimple-match.h (code_helper): Replace built_in_function
4754         with combined_fn.
4755         * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
4756         and case-fn-macros.h.
4757         (gimple_resimplify1): Use fold_const_call.
4758         (gimple_resimplify2, gimple_resimplify3): Likewise.
4759         (build_call_internal, build_call): New functions.
4760         (maybe_push_res_to_seq): Use them.
4761         (gimple_simplify): Use fold_const_call.  Set *rcode to a combined_fn
4762         rather than a built-in function.
4763         * tree.h (build_call_expr_internal_loc): Declare.
4764         (maybe_build_call_expr_loc): Likewise.
4765         * tree.c (build_call_expr_internal_loc_array): New function.
4766         (maybe_build_call_expr_loc): Likewise.
4768 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4770         * builtins.h (mathfn_built_in): Add a variant that takes
4771         a combined_fn.
4772         * builtins.c: Include case-cfn-macros.h.
4773         (CASE_MATHFN): Use CASE_CFN_*.
4774         (CASE_MATHFN_REENT): Use CFN_ codes.
4775         (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
4776         argument with a combined_fn.
4777         (mathfn_built_in): Add a variant that takes a combined_fn.
4778         (expand_builtin_int_roundingfn_2): Update callers accordingly.
4779         (fold_builtin_sincos, fold_builtin_classify): Likewise.
4781 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4783         * tree-vect-patterns.c: Include case-cfn-macros.h.
4784         (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
4786 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4788         * tree-ssa-math-opts.c: Include case-cfn-macros.h.
4789         (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
4790         (pass_cse_sincos::execute): Likewise.
4792 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4794         * tree-ssa-reassoc.c: Include case-cfn-macros.h.
4795         (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
4796         (decrement_power, acceptable_pow_call): Likewise.
4797         (attempt_builtin_copysign): Likewise.
4799 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4801         * tree-vrp.c: Include case-cfn-macros.h.
4802         (extract_range_basic): Switch on combined_fn rather than handling
4803         built-in functions and internal functions separately.
4805 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4807         * fold-const.h (negate_mathfn_p): Take a combined_fn rather
4808         than a built_in_function.
4809         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
4810         a function decl.
4811         (integer_valued_real_call_p): Likewise.
4812         * fold-const.c: Include case-cfn-macros.h
4813         (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
4814         (negate_expr_p): Update accordingly.
4815         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
4816         a function decl.
4817         (integer_valued_real_call_p): Likewise.
4818         (tree_invalid_nonnegative_warnv_p): Update accordingly.
4819         (integer_valued_real_p): Likewise.
4820         * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
4821         to tree_call_nonnegative_warnv_p.
4822         (gimple_call_integer_valued_real_p): Likewise
4823         integer_valued_real_call_p.
4824         * gimple-ssa-backprop.c: Include case-cfn-macros.h.
4825         (backprop::process_builtin_call_use): Extend to combined_fn.
4826         (strip_sign_op_1): Likewise.
4827         (backprop::process_use): Don't check for built-in calls here.
4828         (backprop::execute): Likewise.
4829         (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
4831 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4833         * fold-const-call.h (fold_const_call): Replace built_in_function
4834         arguments with combined_fn arguments.
4835         * fold-const-call.c: Include case-cfn-macros.h.
4836         (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
4837         (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
4838         (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
4839         built_in_function arguments with combined_fn arguments.
4840         * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
4841         (fold_builtin_3): Update calls to fold_const_call.
4843 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4845         * Makefile.in (HASH_TABLE_H): Add GGC_H.
4846         (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
4847         (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
4848         (build/gencfn-macros$(build_exeext): New rules.
4849         (genprogerr): Add cfn-macros.
4850         * hash-set.h (hash_set): Use the traits value_type as the key.
4851         * gencfn-macros.c: New file.
4853 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4855         * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
4856         (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
4857         * builtins.c (associated_internal_fn): Handle them.
4859 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4861         * builtins.h (associated_internal_fn): Declare.
4862         (replacement_internal_fn): Likewise.
4863         * builtins.c: Include internal-fn.h
4864         (associated_internal_fn, replacement_internal_fn): New functions.
4865         * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
4866         (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
4867         (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
4868         (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
4869         (LDEXP): New functions.
4870         * internal-fn.c: Include recog.h.
4871         (unary_direct, binary_direct): New macros.
4872         (expand_direct_optab_fn): New function.
4873         (expand_unary_optab_fn): New macro.
4874         (expand_binary_optab_fn): Likewise.
4875         (direct_unary_optab_supported_p): Likewise.
4876         (direct_binary_optab_supported_p): Likewise.
4878 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4880         * coretypes.h (tree_pair): New type.
4881         * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro.  Use it
4882         for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
4883         * internal-fn.h (direct_internal_fn_info): New structure.
4884         (direct_internal_fn_array): Declare.
4885         (direct_internal_fn_p, direct_internal_fn): New functions.
4886         (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
4887         * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
4888         (mask_store_direct, store_lanes_direct): New macros.
4889         (direct_internal_fn_array) New array.
4890         (get_multi_vector_move): Return the optab handler without asserting
4891         that it is available.
4892         (expand_LOAD_LANES): Rename to...
4893         (expand_load_lanes_optab_fn): ...this and add an optab argument.
4894         (expand_STORE_LANES): Rename to...
4895         (expand_store_lanes_optab_fn): ...this and add an optab argument.
4896         (expand_MASK_LOAD): Rename to...
4897         (expand_mask_load_optab_fn): ...this and add an optab argument.
4898         (expand_MASK_STORE): Rename to...
4899         (expand_mask_store_optab_fn): ...this and add an optab argument.
4900         (direct_internal_fn_types, direct_optab_supported_p)
4901         (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
4902         (direct_internal_fn_supported_p): New functions.
4903         (direct_mask_load_optab_supported_p): New macro.
4904         (direct_load_lanes_optab_supported_p): Likewise.
4905         (direct_mask_store_optab_supported_p): Likewise.
4906         (direct_store_lanes_optab_supported_p): Likewise.
4908 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4910         * tree-core.h (internal_fn): Move immediately after the definition
4911         of built_in_function.
4912         (combined_fn): New enum.
4913         * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
4914         (internal_fn_p, as_internal_fn): New functions.
4915         (get_call_combined_fn, combined_fn_name): Declare.
4916         * tree.c (get_call_combined_fn): New function.
4917         (combined_fn_name): Likewise.
4918         * gimple.h (gimple_call_combined_fn): Declare.
4919         * gimple.c (gimple_call_combined_fn): New function.
4921 2015-11-17  Martin Sebor  <msebor@redhat.com>
4923         PR c++/68308
4924         * cp/init.c (build_new_1): Check for expression constness
4925         the right way.
4927 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
4929         PR target/53587
4930         * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
4931         option list.
4932         (x86 Options): Add -mms-bitfields and -mno-ms-bitfields.  Move
4933         discussion of the Microsoft structure layout details here from
4934         its former home in extend.texi.
4935         * doc/extend.texi (x86 Variable Attributes): Replace detailed
4936         discussion with pointer to its new location.  Add cross-reference
4937         to corresponding type attributes.
4938         (x86 Type Attributes): Add cross-references to command-line options
4939         and variable attributes.
4941 2015-11-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
4943         PR middle-end/68134
4944         * targhooks.c (default_get_mask_mode): Filter out
4945         scalar modes returned by mode_for_vector.
4947 2015-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4949         PR target/68143
4950         * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
4951         offset from dstbase and use it appropriately in
4952         adjust_automodify_address.
4953         (arm_block_set_aligned_vect): Likewise.
4955 2015-11-17  Eric Botcazou  <ebotcazou@adacore.com>
4957         * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
4958         (MULTILIB_DIRNAMES): Adjust accordingly.
4960 2015-11-17  James Greenhalgh  <james.greenhalgh@arm.com>
4962         * config/aarch64/aarch64-cores.def (cortex-a35): New.
4963         * config/aarch64/aarch64.c (cortexa35_tunings): New.
4964         * config/aarch64/aarch64-tune.md: Regenerate.
4965         * doc/invoke.texi (-mcpu): Add Cortex-A35
4967 2015-11-17  Uros Bizjak  <ubizjak@gmail.com>
4969         PR target/68263
4970         * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
4971         to 32 for IAMCU.
4972         * config/i386/sse.md (*mov<mode>_internal): Always enable
4973         AVX and SSE unaligned moves for IAMCU.
4975 2015-11-17  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
4977         * tree-if-conv.c: Include varasm.h
4978         (ref_DR_map): Define.
4979         (baseref_DR_map): Like wise
4980         (struct ifc_dr): Add new tree predicate field.
4981         (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
4982         (memrefs_read_or_written_unconditionally): Remove.
4983         (write_memrefs_written_at_least_once): Remove.
4984         (ifcvt_memrefs_wont_trap): Use hash maps to query
4985         unconditional read/written information.
4986         (if_convertible_loop_p_1):  Initialize hash maps and predicates
4987         before hashing data references and delete hashmaps at the end.
4989 2015-11-16  Thomas Preud'homme <thomas.preudhomme@arm.com>
4991         PR 56036
4992         * doc/invoke.texi (Optimize Options): Move @end table to the right
4993         place.
4995 2015-11-16  Sandra Loosemore  <sandra@codesourcery.com>
4997         PR 65129
4998         * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
4999         return value.
5001 2015-11-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
5003         * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
5004         128-bit types, just types that fit in a single vector.
5005         * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
5007 2015-11-16  David Wohlferd  <dw@LimeGreenSocks.com>
5009         * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
5010         in the user documentation.
5011         (define_peephole2, define_split): Similarly.
5013 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
5015         * lto-streamer-out.c (write_global_references): Adjust integer type.
5016         (lto_output_decl_state_refs): Likewise.
5018 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
5020         * config/arm/arm-cores.def (cortex-a35): New.
5021         * config/arm/arm.c (arm_cortex_a35_tune): New.
5022         * config/arm/arm-tables.opt: Regenerate.
5023         * config/arm/arm-tune.md: Regenerate.
5024         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
5025         * config/arm/t-aprofile: Likewise.
5026         * doc/invoke.texi (-mcpu): Likewise.
5028 2015-11-16  Jim Wilson  <jim.wilson@linaro.org>
5030         * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
5031         and qdf24xx and xgene1 to match -march=armv8-a.
5033 2015-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
5035         PR rtl-optimization/68330
5036         * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
5037         of LSHIFTRT by a non-zero constant integer.
5039 2015-11-16  Richard Biener  <rguenther@suse.de>
5041         PR tree-optimization/68306
5042         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
5043         bogus copying from verify_data_ref_alignment and use continue
5044         instead of return.
5046 2015-11-16  Oleg Endo  <olegendo@gcc.gnu.org>
5047             Kaz Kojima  <kkojima@gcc.gnu.org>
5049         PR target/68277
5050         * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
5051         operands[2].
5052         (*addsi3): Add another insn_and_split variant for reload.
5054 2015-11-16  Richard Biener  <rguenther@suse.de>
5056         PR middle-end/68117
5057         * cfgexpand.c (pass_expand::execute): Destroy the edge
5058         redirection var map before setting RTL CFG hooks.
5060 2015-11-16  Alan Lawrence  <alan.lawrence@arm.com>
5062         * config/i386/sse.md (reduc_splus_v8df): Rename to...
5063         (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
5065         (reduc_splus_v4df): Rename to...
5066         (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
5068         (reduc_splus_v2df): Rename to...
5069         (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
5071         (reduc_splus_v16sf): Rename to...
5072         (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
5074         (reduc_splus_v8sf): Rename to...
5075         (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
5077         (reduc_splus_v4sf): Rename to...
5078         (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
5080         (reduc_<code>_<mode>, all 3 variants): Rename each to...
5081         (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
5083         (reduc_umin_v8hf): Rename to...
5084         (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
5086 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
5088         * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
5089         without additional conditions.
5090         * doc/extend.texi (@item simd): New.
5092 2015-11-16  Tom de Vries  <tom@codesourcery.com>
5094         * passes.c (first_pass_instance): Remove variable.
5095         (execute_todo): Remove setting of first_pass_instance.
5096         * tree-pass.h (first_pass_instance): Remove declaration.
5098 2015-11-16  Tom de Vries  <tom@codesourcery.com>
5100         * passes.def: Add arg to pass_ccp pass instantiation.
5101         * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p.  Use nonzero_p
5102         instead of first_pass_instance.
5103         (do_ssa_ccp): Add and handle param nonzero_p.
5104         (pass_ccp::pass_ccp): Initialize nonzero_p.
5105         (pass_ccp::set_pass_param): New member function.  Set nonzero_p.
5106         (pass_ccp::execute): Call do_ssa_ccp with extra arg.
5107         (pass_ccp::nonzero_p): New private member.
5109 2015-11-16  Tom de Vries  <tom@codesourcery.com>
5111         * passes.def: Add arg to pass_object_sizes pass instantiation.
5112         * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
5113         insert_min_max_p.
5114         (pass_object_sizes::set_pass_param): New member function.  Set
5115         insert_min_max_p.
5116         (pass_object_sizes::insert_min_max_p): New private member.
5117         (pass_object_sizes::execute): Use insert_min_max_p instead of
5118         first_pass_instance.
5120 2015-11-16  Tom de Vries  <tom@codesourcery.com>
5122         * passes.def: Add arg to pass_dominator pass instantiation.
5123         * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
5124         of comment.
5125         * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
5126         may_peel_loop_headers_p.
5127         (pass_dominator::set_pass_param): New member function.  Set
5128         may_peel_loop_headers_p.
5129         (pass_dominator::may_peel_loop_headers_p): New private member.
5130         (pass_dominator::execute): Use may_peel_loop_headers_p instead of
5131         first_pass_instance.
5133 2015-11-16  Tom de Vries  <tom@codesourcery.com>
5135         * passes.def: Add arg to pass_reassoc pass instantiation.
5136         * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
5137         (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
5138         of first_pass_instance.
5139         (execute_reassoc): Add and handle insert_powi_p parameter.
5140         (pass_reassoc::insert_powi_p): New private member.
5141         (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
5142         (pass_reassoc::set_pass_param): New member function.  Set insert_powi_p.
5143         (pass_reassoc::execute): Call execute_reassoc with extra arg.
5145 2015-11-16  Tom de Vries  <tom@codesourcery.com>
5147         * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
5148         * gen-pass-instances.awk (handle_line): Same.
5149         * pass_manager.h (class pass_manager): Define and undefine
5150         NEXT_PASS_WITH_ARG.
5151         * passes.c (opt_pass::set_pass_param): New function.
5152         (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
5153         * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
5154         * tree-pass.h (gimple_opt::set_pass_param): Declare.
5155         * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
5156         warn_array_bounds_p parameter.
5157         (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
5158         (pass_vrp::set_pass_param): New function.
5159         (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
5160         (pass_vrp::warn_array_bounds_p): New private member.
5162 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
5164         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
5165         (output_probe_stack_range): Rotate the loop and simplify.
5167 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
5169         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
5170         (output_probe_stack_range): Rotate the loop and simplify.
5172 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
5174         * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
5175         an lea instruction when possible.
5176         (output_adjust_stack_and_probe): Rotate the loop and simplify.
5177         (ix86_emit_probe_stack_range): Adjust.
5178         (output_probe_stack_range): Rotate the loop and simplify.
5180 2015-11-16  Christian Bruel  <christian.bruel@st.com>
5182         * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
5183         Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
5184         with appropriate pragma GCC target.
5186 2015-11-16  Christian Bruel  <christian.bruel@st.com>
5188         PR target/65837
5189         * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
5190         __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
5192 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
5194         * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
5195         (cortexa57_tunings): Use it.
5197 2015-11-16  Christian Bruel  <christian.bruel@st.com>
5199         PR target/65837
5200         * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
5201         __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
5202         (arm_pragma_target_parse): Change check for arm_cpu_builtins.
5203         undefine __ARM_FP.
5204         * config/arm/arm.c (arm_can_inline_p): Check FPUs.
5205         (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
5206         * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
5207         * doc/extend.texi (-mfpu=): Describe attribute.
5209 2015-11-16  Christian Bruel  <christian.bruel@st.com>
5211         PR target/65837
5212         * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
5213         * config/arm/arm.c (arm_valid_target_attribute_tree): Call
5214         arm_init_neon_builtins.
5215         * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
5216         (arm_init_neon_builtins_internal)
5217         (arm_init_crypto_builtins_internal):
5218         Test and set neon_set_p, neon_crypto_set_p.
5219         (neon_set_p, neon_crypto_set_p): New static booleans.
5221 2015-11-16  Christian Bruel  <christian.bruel@st.com>
5223         PR target/65837
5224         * config/arm/arm.c (arm_fpu_desc): Remove.
5225         (all_fpus): Make global.
5226         (arm_option_override): Use FPU TARGET accessors.
5227         (arm_declare_function_name): Likewise.
5228         * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
5229         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
5230         (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
5231         (TARGET_NEON): Likewise.
5232         (all_fpus): Declare extern.
5233         (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
5234         (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
5236 2015-11-15  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5238         PR middle-end/68366
5239         * sdbout.c: Include emit-rtl.h and function.h.
5241 2015-11-15  Gerald Pfeifer  <gerald@pfeifer.com>
5243         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
5244         Remove support for FreeBSD 5 and earlier.
5246 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5248         * configure: Regenerate.
5249         * configure.ac: Always define ENABLE_OFFLOADING.
5250         * cgraph.c (cgraph_node::create): Adjust.
5251         * gcc.c (process_command): Likewise.
5252         * omp-low.c (create_omp_child_function): Likewise.
5253         (expand_omp_target): Likewise.
5254         * varpool.c (varpool_node::get_create): Likewise.
5256 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5258         * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
5259         * df-scan.c (df_get_exit_block_use_set): Adjust.
5260         * except.c (expand_eh_return): Likewise.
5262 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5264         * config/i386/i386.h (TARGET_PECOFF): Remove define.
5265         * defaults.h (TARGET_PECOFF): New default definition.
5266         * varasm.c (handle_vtv_comdat_section): Adjust.
5268 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5270         * defaults.h: New definition of SDB_DEBUGGING_INFO.
5271         * doc/tm.texi: Regenerate.
5272         * doc/tm.texi.in: Adjust.
5273         * final.c (rest_of_clean_state): Remove check if
5274         SDB_DEBUGGING_INFO is defined.
5275         * function.c (number_blocks): Likewise.
5276         * output.h: Likewise.
5277         * sdbout.c: Likewise.
5278         * toplev.c (process_options): Likewise.
5280 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5282         * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
5283         (enum sdb_masks): Likewise.
5284         * sdbout.c (plain_type_1): Likewise.
5285         * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
5287 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
5289         * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
5290         internal calls - 0 if ordered simd and 1 for ordered threads simd.
5291         * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
5292         argument is 1, replace it with GOMP_ordered_* call instead of removing
5293         it.
5295 2015-11-13  Rich Felker <dalias@libc.org>
5297         * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
5298         address loading hack for FDPIC targets.
5300 2015-11-13  Ajit Agarwal  <ajitkum@xilinx.com>
5301             Jeff Law  <law@redhat.com>
5303         * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
5304         * common.opt (-fsplit-paths): New flag controlling path splitting.
5305         * doc/invoke.texi (fsplit-paths): Document.
5306         * opts.c (default_options_table): Add -fsplit-paths to -O2.
5307         * passes.def: Add split_paths pass.
5308         * timevar.def (TV_SPLIT_PATHS): New timevar.
5309         * tracer.c: Include "tracer.h"
5310         (ignore_bb_p): No longer static.
5311         (transform_duplicate): New function, broken out of tail_duplicate.
5312         (tail_duplicate): Use transform_duplicate.
5313         * tracer.h (ignore_bb_p): Declare
5314         (transform_duplicate): Likewise.
5315         * tree-pass.h (make_pass_split_paths): Declare.
5316         * gimple-ssa-split-paths.c: New file.
5318 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
5319             Marek Polacek  <polacek@redhat.com>
5320             Jason Merrill  <jason@redhat.com>
5322         * convert.c (maybe_fold_build1_loc): New.
5323         (maybe_fold_build2_loc): New.
5324         (convert_to_pointer_1): Split out from convert_to_pointer.
5325         (convert_to_pointer_nofold): New.
5326         (convert_to_real_1): Split out from convert_to_real.
5327         (convert_to_real_nofold): New.
5328         (convert_to_integer_1): Split out from convert_to_integer.
5329         (convert_to_integer_nofold): New.
5330         (convert_to_complex_1): Split out from convert_to_complex.
5331         (convert_to_complex_nofold): New.
5332         * convert.h: Declare new functions.
5333         * tree-complex.c (create_one_component_var): Break up line to
5334         avoid sequence point issues.
5336 2015-11-13  Jason Merrill  <jason@redhat.com>
5338         * fold-const.c (fold_convert_const): Fold changing cv-quals on
5339         VECTOR_CST.
5341         * hash-map.h (hash_map::empty): New.
5343 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
5345         * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
5346         (oacc_loop_fixed_partitions): Correct return type to bool.
5347         (oacc_loop_auto_partitions): New.
5348         (oacc_loop_partition): Take mask argument, call
5349         oacc_loop_auto_partitions.
5350         (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
5352 2015-11-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
5354         * config/rs6000/constraints.md (we constraint): New constraint for
5355         64-bit power9 vector support.
5356         (wL constraint): New constraint for the element in a vector that
5357         can be addressed by the MFVSRLD instruction.
5359         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
5360         declaration.
5361         (convert_int_to_float128): Likewise.
5362         (rs6000_generate_compare): Add support for ISA 3.0 (power9)
5363         hardware support for IEEE 128-bit floating point.
5364         (rs6000_expand_float128_convert): Likewise.
5365         (convert_float128_to_int): Likewise.
5366         (convert_int_to_float128): Likewise.
5368         * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
5369         ISA 3.0 hardware IEEE 128-bit floating point.
5370         (UNSPEC_IEEE128_MOVE): Likewise.
5371         (UNSPEC_IEEE128_CONVERT): Likewise.
5372         (FMA_F): Add support for IEEE 128-bit floating point hardware support.
5373         (Ff): Add support for DImode.
5374         (Fv): Likewise.
5375         (any_fix code iterator): New and updated iterators for IEEE
5376         128-bit floating point hardware support.
5377         (any_float code iterator): Likewise.
5378         (s code attribute): Likewise.
5379         (su code attribute): Likewise.
5380         (az code attribute): Likewise.
5381         (uns code attribute): Likewise.
5382         (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
5383         floating point hardware support.
5384         (abs<mode>2, FLOAT128 iterator): Likewise.
5385         (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
5386         floating point hardware.
5387         (sub<mode>3, IEEE128 iterator): Likewise.
5388         (mul<mode>3, IEEE128 iterator): Likewise.
5389         (div<mode>3, IEEE128 iterator): Likewise.
5390         (copysign<mode>3, IEEE128 iterator): Likewise.
5391         (sqrt<mode>2, IEEE128 iterator): Likewise.
5392         (neg<mode>2, IEEE128 iterator): Likewise.
5393         (abs<mode>2, IEEE128 iterator): Likewise.
5394         (nabs<mode>2, IEEE128 iterator): Likewise.
5395         (fma<mode>4_hw, IEEE128 iterator): Likewise.
5396         (fms<mode>4_hw, IEEE128 iterator): Likewise.
5397         (nfma<mode>4_hw, IEEE128 iterator): Likewise.
5398         (nfms<mode>4_hw, IEEE128 iterator): Likewise.
5399         (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
5400         (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
5401         (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
5402         (fix_fixuns code attribute): Likewise.
5403         (float_floatuns code attribute): Likewise.
5404         (fix<uns>_<mode>si2_hw): Likewise.
5405         (fix<uns>_<mode>di2_hw): Likewise.
5406         (float<uns>_<mode>si2_hw): Likewise.
5407         (float<uns>_<mode>di2_hw): Likewise.
5408         (xscvqp<su>wz_<mode>): Likewise.
5409         (xscvqp<su>dz_<mode>): Likewise.
5410         (xscv<su>dqp_<mode): Likewise.
5411         (ieee128_mfvsrd): Likewise.
5412         (ieee128_mfvsrwz): Likewise.
5413         (ieee128_mtvsrw): Likewise.
5414         (ieee128_mtvsrd): Likewise.
5415         (trunc<mode>df2_odd): Likewise.
5416         (cmp<mode>_h): Likewise.
5417         (128-bit GPR splitters): Don't split a 128-bit move that is a
5418         direct move between GPR and vector registers using ISA 3.0 direct
5419         move instructions.
5420         (maddld4): Add support for the ISA 3.0 integer multiply-add
5421         instruction.
5423         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
5424         debugging.
5425         (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
5426         constraint.  Disable the VSX<->GPR direct move helpers if we have
5427         the MFVSRLD and MTVSRDD instructions.
5428         (rs6000_secondary_reload_simple_move): Add support for doing
5429         vector direct moves directly without additional scratch registers
5430         if we have ISA 3.0 instructions.
5431         (rs6000_secondary_reload_direct_move): Update comments.
5432         (rs6000_output_move_128bit): Add support for ISA 3.0 vector
5433         instructions.
5435         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
5436         direct move instructions.
5437         (vsx_movti_64bit): Likewise.
5438         (vsx_extract_<mode>): Likewise.
5440         * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
5441         macros for ISA 3.0 direct move instructions.
5442         (TARGET_DIRECT_MOVE_128): Likewise.
5443         (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
5444         instruction.
5446         * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
5447         constraints.  Update wa documentation to say not to use %x<n> on
5448         instructions that only take Altivec registers.
5450 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
5452         * Makefile.in (OBJS): Add gcc-rich-location.o.
5453         * diagnostic.c (diagnostic_append_note): Pass line_table to
5454         rich_location ctor.
5455         (emit_diagnostic): Likewise.
5456         (inform): Likewise.
5457         (inform_n): Likewise.
5458         (warning): Likewise.
5459         (warning_at): Likewise.
5460         (warning_n): Likewise.
5461         (pedwarn): Likewise.
5462         (permerror): Likewise.
5463         (error): Likewise.
5464         (error_n): Likewise.
5465         (error_at): Likewise.
5466         (sorry): Likewise.
5467         (fatal_error): Likewise.
5468         (internal_error): Likewise.
5469         (internal_error_no_backtrace): Likewise.
5470         (source_range::debug): Likewise.
5471         * gcc-rich-location.c: New file.
5472         * gcc-rich-location.h: New file.
5473         * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
5474         (warning_at): Likewise.
5475         * gimple.h (gimple_set_block): Use set_block function.
5476         * input.c (dump_line_table_statistics): Dump stats on how many
5477         ranges were optimized vs how many needed ad-hoc table.
5478         (write_digit_row): Add "map" param; use its range_bits
5479         to calculate the per-character offset.
5480         (dump_location_info): Print the range and column bits for each
5481         ordinary map.  Use the range bits to calculate the per-character
5482         offset.  Pass the map as a new param to the various calls to
5483         write_digit_row.  Eliminate uses of
5484         ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
5485         * print-tree.c (print_node): Print any source range information.
5486         * rtl-error.c (diagnostic_for_asm): Likewise.
5487         * toplev.c (general_init): Initialize line_table's
5488         default_range_bits.
5489         * tree-cfg.c (move_block_to_fn): Likewise.
5490         (move_block_to_fn): Likewise.
5491         * tree-inline.c (copy_phis_for_bb): Likewise.
5492         * tree.c (tree_set_block): Likewise.
5493         (get_pure_location): New function.
5494         (set_source_range): New functions.
5495         (set_block): New function.
5496         (set_source_range): New functions.
5497         * tree.h (CAN_HAVE_RANGE_P): New.
5498         (EXPR_LOCATION_RANGE): New.
5499         (EXPR_HAS_RANGE): New.
5500         (get_expr_source_range): New inline function.
5501         (DECL_LOCATION_RANGE): New.
5502         (set_source_range): New decls.
5503         (get_decl_source_range): New inline function.
5505 2015-11-13  Alan Lawrence  <alan.lawrence@arm.com>
5507         PR tree-optimization/67682
5508         * tree-vect-slp.c (vect_split_slp_store_group): New.
5509         (vect_analyze_slp_instance): During basic block SLP, recurse on
5510         subgroups if vect_build_slp_tree fails after 1st vector.
5512 2015-11-13  Christian Bruel  <christian.bruel@st.com>
5514         PR target/65837
5515         * config/arm/arm.c (arm_option_override): Move NEON check...
5516         (arm_option_check_internal): here
5517         (arm_file_start): Move .fpu print...
5518         (arm_declare_function_name): here
5519         (arm_option_print): Dump current fpu name.
5520         * config/arm/arm.opt (arm_fpu_index): Mark Save.
5522 2015-11-13  Segher Boessenkool  <segher@kernel.crashing.org>
5523             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5525         * combine.c (subst): Don't substitute or simplify when
5526         handling register-wise widening multiply.
5527         (force_to_mode): Likewise.
5529 2015-11-13  Richard Sandiford  <richard.sandiford@arm.com>
5531         PR tree-optimization/68264
5532         * tree-call-cdce.c (gen_one_condition): Update commentary.
5533         (gen_conditions_for_pow_int_base): Invert the sense of the tests
5534         passed to gen_one_condition.
5535         (gen_conditions_for_domain): Likewise.  Use unordered comparisons.
5536         (shrink_wrap_one_built_in_call): Invert the sense of the tests,
5537         using EDGE_FALSE_VALUE for edges to the call block and
5538         EDGE_TRUE_VALUE for the others.
5540 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
5542         * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
5543         complex types.
5545 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
5547         * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
5549 2015-11-13  Tom de Vries  <tom@codesourcery.com>
5551         * gen-pass-instances.awk (handle_line): Rename prefix_len var to
5552         len_of_prefix.
5554 2015-11-13  Tom de Vries  <tom@codesourcery.com>
5556         * gen-pass-instances.awk (handle_line): Add args_str variable.
5558 2015-11-13  Martin Liska  <mliska@suse.cz>
5560         * graphite-poly.c (free_scop): Release scop->drs vector.
5561         * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
5562         Release dom vector.
5563         (try_generate_gimple_bb): Use vNULL as a default initialization
5564         for vectors.
5566 2015-11-13  Martin Liska  <mliska@suse.cz>
5568         PR ipa/68311
5569         * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
5570         Replace array initialization (using a variable post-increment)
5571         that possible triggers multiple unsequenced modifications
5572         with a pair of pushes to a vector.
5574 2015-11-13  Richard Biener  <rguenther@suse.de>
5576         PR tree-optimization/68306
5577         * tree-vect-data-refs.c (verify_data_ref_alignment): Move
5578         loop related checks ...
5579         (vect_verify_datarefs_alignment): ... here.
5580         (vect_slp_analyze_and_verify_node_alignment): Compute and
5581         verify alignment of the single DR that it matters.
5582         * tree-vect-stmts.c (vectorizable_store): Add an assert.
5583         (vectorizable_load): Add a comment.
5584         * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
5585         for determining load cost.
5587 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
5589         * tree-vect-loop.c (vect_determine_vectorization_factor): Check
5590         mix of boolean and integer vectors in a single statement.
5591         * tree-vect-slp.c (vect_mask_constant_operand_p): New.
5592         (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
5593         determine constant type.
5594         * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
5595         for loop invariants.
5597 2015-11-13  Alan Hayward <alan.hayward@arm.com>
5599         PR tree-optimization/66558
5600         * tree-vect-loop.c (is_integer_induction):Add.
5601         (vectorizable_reduction): Add integer induction checks.
5603 2015-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
5605         Revert [ARM] Remove neon-testgen.ml and generated tests.
5607         2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
5609         [ARM] Remove neon-testgen.ml and generated tests.
5611         * config/arm/neon-testgen.ml: Remove.
5613 2015-11-13  Richard Biener  <rguenther@suse.de>
5615         * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
5616         Signal fatal failure if early checks fail.
5617         (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
5618         do not bother testing further vector sizes.
5620 2015-11-13  Uros Bizjak  <ubizjak@gmail.com>
5622         * config/i386/predicates.md (misaligned_operand): Return true if
5623         operand is aligned to less than its natural alignmnet.
5625 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
5627         * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
5628         (vec_cmpu@var{m}@var{n}): New item.
5629         (vcond@var{m}@var{n}): Specify comparison is signed.
5630         (vcondu@var{m}@var{n}): New item.
5631         (vcond_mask_@var{m}@var{n}): New item.
5632         (maskload@var{m}@var{n}): New item.
5633         (maskstore@var{m}@var{n}): New item.
5635 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
5637         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
5638         types of stored value and storage are compatible.
5640 2015-11-13  Andris Pavenis  <andris.pavenis@iki.fi>
5642         * gcc.c (POST_LINK_SPEC): Define if not already defined.
5643         (LINK_COMMAND_SPEC): Use post_link.
5644         (post_link_spec): New, initialize to POST_LINK_SPEC.
5645         (post_link): Initialize new static spec.
5646         * doc/tm.texi.in (POST_LINK_SPEC): Document.
5647         * doc/tm.texi: Regenerated.
5649 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
5651         PR driver/67613
5652         * Makefile.in (GCC_OBJS): Add spellcheck.o.
5653         (OBJS): Add spellcheck-tree.o.
5654         * gcc.c: Include "spellcheck.h".
5655         (suggest_option): New function.
5656         (driver::handle_unrecognized_options): Call suggest_option to
5657         provide a hint about misspelled options.
5658         * spellcheck.c: Update file comment.
5659         (levenshtein_distance): Convert 4-param implementation from static
5660         to extern scope.  Remove note about unit tests from leading
5661         comment for const char * implementation.  Move tree
5662         implementation to...
5663         * spellcheck-tree.c: New file.
5664         * spellcheck.h (levenshtein_distance):  Add 4-param decl.
5666 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
5668         * Makefile.in (OBJS): Add spellcheck.o.
5669         * spellcheck.c: New file.
5670         * spellcheck.h: New file.
5672 2015-11-13  James Bowman  <james.bowman@ftdichip.com>
5674         * config/ft32/ft32.md (*sne): New insn pattern.
5676 2015-11-12  Brad Lucier  <lucier@math.purdue.edu>
5678         * cprop.c (is_too_expensive): Remove.
5679         (gcse.h): Include.
5680         (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
5681         is_too_expensive.
5682         * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
5683         * gcse.c (is_too_expensive): Rename to ...
5684         (gcse_or_cprop_is_too_expensive): ... this.
5685         Expand warning to add required size of max-gcse-memory.
5686         (one_pre_gcse_pass): Use it.
5687         (one_code_hoisting_pass): Use it.
5688         * params.def (max-gcse-memory): Increase from 50MB to 128MB.
5690 2015-11-12  James Norris  <jnorris@codesourcery.com>
5691             Joseph Myers  <joseph@codesourcery.com>
5693         * gimple-pretty-print.c (dump_gimple_omp_target): Handle
5694         GF_OMP_TARGET_KIND_OACC_DECLARE.
5695         * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
5696         (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
5697         * gimplify.c (oacc_declare_returns): New.
5698         (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
5699         (device_resident_p): New function.
5700         (oacc_default_clause): Handle device_resident clause.
5701         (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
5702         (gimplify_expr): Handle OACC_DECLARE.
5703         * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
5704         * omp-low.c (expand_omp_target): Handle
5705         GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
5706         (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
5707         (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
5708         GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
5709         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
5710         * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
5711         GOMP_MAP_DEVICE_RESIDENT.
5713 2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
5715         [ARM] Remove neon-testgen.ml and generated tests.
5717         * config/arm/neon-testgen.ml: Remove.
5719 2015-11-12  Jim Wilson  <jim.wilson@linaro.org>
5721         * config/aarch64/aarch64-cores.def (qdf24xx): New.
5722         * config/aarch64/aarch64-tune.md: Regenerated.
5723         * config/arm/arm-cores.def (qdf24xx): New.
5724         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
5725         * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
5726         * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
5727         (ARM Options/-mtune): Likewise.
5729 2015-11-12  Martin Liska  <mliska@suse.cz>
5731         * config/i386/i386.c (ix86_valid_target_attribute_p):
5732         Finalize options at the of the function.
5733         * gcc.c (driver_get_configure_time_options): Call newly
5734         introduced init_opts_obstack.
5735         * lto-wrapper.c (main): Likewise.
5736         * opts.c (init_opts_obstack): New function.
5737         (init_options_struct): Call newly introduced init_opts_obstack.
5738         * opts.h (init_options_struct): Declare.
5740 2015-11-12  Martin Liska  <mliska@suse.cz>
5742         PR ipa/68035
5743         * ipa-icf.c (void sem_item::set_hash): New function.
5744         (sem_function::get_hash): Use renamed m_hash member variable.
5745         (sem_item::update_hash_by_addr_refs): Utilize get_hash.
5746         (sem_item::update_hash_by_local_refs): Likewise.
5747         (sem_variable::get_hash): Use renamed m_hash member variable.
5748         (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
5749         (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
5750         (sem_item_optimizer::build_graph): As the hash value of an item
5751         is lazy initialized, force the calculation.
5752         * ipa-icf.h (set_hash): Declare new function and rename hash member
5753         variable to m_hash.
5755 2015-11-12  Richard Biener  <rguenther@suse.de>
5757         * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
5758         Rename to vect_slp_analyze_instance_dependence.
5759         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
5760         Remove WAR special-case.
5761         (vect_slp_analyze_node_dependences): Instead add more specific
5762         code here, not relying on other instances being vectorized.
5763         (vect_slp_analyze_instance_dependence): Adjust accordingly.
5764         * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
5765         vertical space in dump files.
5766         (vect_print_slp_tree): Likewise.
5767         (vect_analyze_slp_instance): Dump a header for the final SLP tree.
5768         (vect_slp_analyze_bb_1): Delay computing relevant stmts and
5769         not vectorized stmts until after dependence analysis removed
5770         instances.  Merge alignment and dependence checks.
5771         * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
5772         flag on all stmts.
5774 2015-11-12  Evandro Menezes  <e.menezes@samsung.com>
5776         * config/aarch64/aarch64-protos.h (tune_params): Add new members
5777         "max_case_values" and "cache_line_size".
5778         * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
5779         function.
5780         (aarch64_override_options_internal): Tune heuristics based on new
5781         members in "tune_params".
5782         (TARGET_CASE_VALUES_THRESHOLD): Define macro.
5784 2015-11-12  Richard Biener  <rguenther@suse.de>
5786         PR tree-optimization/68306
5787         * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
5788         relevant and vectorizable checks here.
5789         (vect_verify_datarefs_alignment): Add relevant check here.
5791 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
5793         * gimplify.c (oacc_default_clause): New.
5794         (omp_notice_variable): Call it.
5796 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
5798         PR tree-optimization/68305
5799         * tree-vect-slp.c (vect_get_constant_vectors): Support
5800         COND_EXPR with SSA_NAME as a condition.
5802 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
5804         * config/visium/visium-protos.h (notice_update_cc): Delete.
5805         (print_operand): Likewise.
5806         (print_operand_address): Likewise.
5808 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
5810         * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
5811         FUNCTION_VALUE_REGNO_P): Remove.
5812         * config/alpha/alpha-protos.h (function_value): Remove.
5813         * config/alpha/alpha.c (function_value): Rename to...
5814         (alpha_function_value_1): ... this.  Make static.
5815         (alpha_function_value, alpha_libcall_value,
5816         alpha_function_value_regno_p): New functions.
5817         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5818         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5820 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
5822         * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5823         * config/alpha/alpha.c (alpha_memory_latency): Make static.
5824         (alpha_register_move_cost, alpha_memory_move_cost): New functions.
5825         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5827 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
5829         PR target/67265
5830         * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
5831         assertion on the CFA register.
5833 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
5835         * expr.c (do_store_flag): Expand vector comparison as
5836         VEC_COND_EXPR if vector comparison is not supported by target.
5838 2015-11-12  Renlin Li  <renlin.li@arm.com>
5840         * config/arm/arm.md (addsi3_compare_op2): Make the order of
5841         assembly pattern consistent with constraint order.
5843 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5845         * gen-pass-instances.awk (handle_line): Simplify match regexp.
5847 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5849         * gen-pass-instances.awk (handle_line): Simplify init of
5850         postfix_starts_at.
5852 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5854         * gen-pass-instances.awk (handle_line): Rename var where to
5855         call_starts_at.
5857 2015-11-12  Claudiu Zissulescu  <claziss@synopsys.com>
5859         * config/arc/arc.c (gen_compare_reg): Swap operands also when we
5860         do not expand to rtl.
5862 2015-11-12  Richard Biener  <rguenther@suse.de>
5864         PR tree-optimization/58497
5865         * tree-vect-generic.c: Include gimplify.h.
5866         (tree_vec_extract): Lookup constant/constructor DEFs.
5867         (do_cond): Unshare cond.
5869 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
5871         * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
5872         combined insn if the alignment of vector mode memory operand
5873         is less than ssememalign.
5875 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5877         * gen-pass-instances.awk (handle_line): Print parentheses and
5878         pass_name explicitly.
5880 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5882         * gen-pass-instances.awk (handle_line): Add pass_num, prefix
5883         and postfix vars.
5885 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5887         * gen-pass-instances.awk (handle_line): Add comments.
5889 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5891         * gen-pass-instances.awk (handle_line): Rename len_of_end to
5892         len_of_close.
5894 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5896         * gen-pass-instances.awk (handle_line): Add len_of_call variable.
5898 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5900         * gen-pass-instances.awk (handle_line): Restructure using early-out.
5902 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5904         * gen-pass-instances.awk (handle_line): Unify semicolon use.
5906 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5908         * gen-pass-instances.awk (handle_line): Remove unused var line_length.
5910 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5912         * gen-pass-instances.awk: Add emacs indent setting.
5914 2015-11-12  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5916         * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
5917         to match.pd.
5918         Move Convert A/(B/C) to (A/B)*C to match.pd.
5919         Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
5920         Move Optimize (X & (-A)) / A where A is a power of 2, to
5921         X >> log2(A) to match.pd.
5923         * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
5924         (rdiv @0 (rdiv:s @1 @2)): New simplifier.
5925         (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
5926         New simplifier.
5927         (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
5929 2015-11-12  Charles Baylis  <charles.baylis@linaro.org>
5931         * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
5932         variable.
5933         (neon_vst2_lane<mode>): Likewise.
5934         (neon_vld3_lane<mode>): Likewise.
5935         (neon_vst3_lane<mode>): Likewise.
5936         (neon_vld4_lane<mode>): Likewise.
5937         (neon_vst4_lane<mode>): Likewise.
5939 2015-11-11  Aditya Kumar  <aditya.k7@samsung.com>
5940             Sebastian Pop  <s.pop@samsung.com>
5942         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
5943         New member codegen_error
5944         (translate_isl_ast_for_loop): Remove call to single_succ_edge and
5945         early return.
5946         (translate_isl_ast_node_user): Early return in case of error.
5947         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
5948         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
5949         (add_parameters_to_ivs_params): Remove macro.
5950         (graphite_regenerate_ast_isl): Add if_region pointer to region.
5951         * graphite-poly.c (new_poly_dr): Remove macro.
5952         (print_pdr): Same.
5953         (new_gimple_poly_bb): Same.
5954         (free_gimple_poly_bb): Same.
5955         (print_scop_params): Same.
5956         * graphite-poly.h (struct poly_dr): Same.
5957         (struct poly_bb): Add new_bb.
5958         (gbb_from_bb): Remove dead code.
5959         (pbb_from_bb): Same.
5960         * graphite-scop-detection.c (parameter_index_in_region_1): Same.
5961         (parameter_index_in_region): Same.
5962         (find_scop_parameters): Same.
5963         (build_cross_bb_scalars_def): New.
5964         (build_cross_bb_scalars_use): New.
5965         (graphite_find_cross_bb_scalar_vars): New
5966         (try_generate_gimple_bb): Reads and Writes.
5967         (build_alias_set): Move.
5968         (gather_bbs::before_dom_children): Gather bbs visited.
5969         (build_scops): call build_alias_set.
5970         * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
5971         (remove_simple_copy_phi): Delete.
5972         (remove_invariant_phi): Delete.
5973         (simple_copy_phi_p): Delete.
5974         (reduction_phi_p): Delete.
5975         (isl_id_for_dr): Remove unused param.
5976         (parameter_index_in_region_1): Remove macro usage.
5977         (set_scop_parameter_dim): Same.
5978         (add_param_constraints): Same.
5979         (add_conditions_to_constraints): Same
5980         (build_scop_iteration_domain): Same.
5981         (pdr_add_alias_set): Comment.
5982         (add_scalar_version_numbers): New.
5983         (build_poly_dr): ISL id.
5984         (build_scop_drs): Move.
5985         (build_poly_sr_1): Same.
5986         (insert_stmts): Remove.
5987         (build_poly_sr): New.
5988         (new_pbb_from_pbb): Delete.
5989         (insert_out_of_ssa_copy_on_edge): Delete.
5990         (create_zero_dim_array): Delete.
5991         (scalar_close_phi_node_p): Delete.
5992         (propagate_expr_outside_region): Delete.
5993         (rewrite_close_phi_out_of_ssa): Delete.
5994         (rewrite_phi_out_of_ssa): Delete.
5995         (rewrite_degenerate_phi): Delete.
5996         (rewrite_reductions_out_of_ssa): Delete.
5997         (rewrite_cross_bb_scalar_dependence): Delete.
5998         (handle_scalar_deps_crossing_scop_limits):
5999         (rewrite_cross_bb_scalar_deps): Delete.
6000         (build_poly_scop): Remove calls to out-of-ssa functions.
6001         * graphite.c (graphite_transform_loops): Early return in case of
6002         codegen error.
6003         * sese.c (debug_rename_map_1): Delete.
6004         (debug_rename_map): Delete.
6005         (sese_record_loop): Remove macro.
6006         (build_sese_loop_nests): Same.
6007         (new_sese_info): Same.
6008         (free_sese_info): Same.
6009         (sese_insert_phis_for_liveouts):
6010         (is_loop_closed_ssa_use): New.
6011         (number_of_phi_nodes): New.
6012         (bb_contains_loop_close_phi_nodes): New.
6013         (bb_contains_loop_phi_nodes): New.
6014         (phi_uses_name): New.
6015         (is_valid_rename):
6016         (get_rename): Add old_bb and loop_phi for more precise matching of
6017         exprs.
6018         (set_rename): Pass region.
6019         (later_of_the_two): New.
6020         (gsi_insert_earliest): New.
6021         (collect_all_ssa_names): New.
6022         (substitute_ssa_name): New.
6023         (rename_all_uses): New.
6024         (get_rename_from_scev): New.
6025         (rename_uses): Pass old_bb for more precise matching of exprs.
6026         (get_def_bb_for_const): New.
6027         (get_new_name): New.
6028         (get_loc): New.
6029         (get_edges): New.
6030         (copy_loop_phi_args): New.
6031         (copy_loop_phi_nodes): New.
6032         (get_loop_init_value): New.
6033         (find_init_value): New.
6034         (find_init_value_close_phi): New.
6035         (copy_loop_close_phi_args): New.
6036         (copy_loop_close_phi_nodes): New.
6037         (add_phi_arg_for_new_expr): New.
6038         (copy_cond_phi_args): New.
6039         (copy_cond_phi_nodes): New.
6040         (copy_phi_nodes): New.
6041         (should_copy_to_new_region): New.
6042         (set_rename_for_each_def): New.
6043         (graphite_copy_stmts_from_block): Early return in case of error.
6044         (copy_bb_and_scalar_dependences): Same.
6045         * sese.h (vec_find): New.
6046         (SESE_PARAMS): Delete.
6047         (SESE_LOOPS): Delete.
6048         (SESE_LOOP_NEST): Delete.
6049         (sese_contains_loop): Remove macro usage.
6050         (sese_nb_params): Same.
6051         (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
6053 2015-11-11  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
6055         * graphite-sese-to-poly.c (build_scop_original_schedule): Call
6056         isl_union_map_add_map on every pbb->schedule.
6058 2015-11-11  Tom de Vries  <tom@codesourcery.com>
6060         * tree-parloops.c (create_parallel_loop): Return void.
6062 2015-11-11  Tom de Vries  <tom@codesourcery.com>
6064         * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
6065         block only when needed.
6067 2015-11-11  Uros Bizjak  <ubizjak@gmail.com>
6069         * config/alpha/alpha-protos.h (print_operand): Remove.
6070         (print_operand_address): Remove.
6071         * config/alpha/alpha.h (PRINT_OPERAND): Remove.
6072         (PRINT_OPERAND_ADDRESS): Remove.
6073         (PRINT_OPERAND_PUNCT_VALID_P): Remove.
6074         * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
6075         (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
6076         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
6077         (print_operand_address): Rename to...
6078         (alpha_print_operand_address): ...this and make static.
6079         (print_operand): Rename to...
6080         (alpha_print_operand): ...this and make static.
6081         (alpha_print_operand_punct_valid_p): New static function.
6083 2015-11-11  Richard Biener  <rguenther@suse.de>
6085         * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
6086         Declare.
6087         (vect_analyze_data_refs_alignment): Make loop vect specific.
6088         (vect_verify_datarefs_alignment): Likewise.
6089         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
6090         Add missing continue.
6091         (vect_compute_data_ref_alignment): Export.
6092         (vect_compute_data_refs_alignment): Merge into...
6093         (vect_analyze_data_refs_alignment): ... this.
6094         (verify_data_ref_alignment): Split out from ...
6095         (vect_verify_datarefs_alignment): ... here.
6096         (vect_slp_analyze_and_verify_node_alignment): New function.
6097         (vect_slp_analyze_and_verify_instance_alignment): Likewise.
6098         * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
6099         misplaced checks on alignment.
6100         (vect_slp_analyze_bb_1): Add fatal output parameter.  Do
6101         alignment analysis after SLP discovery and do it per instance.
6102         (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
6103         bother to re-try using different vector sizes.
6105 2015-11-11  Nathan Sidwell  <nathan@codesourcery.com>
6106             Cesar Philippidis  <cesar@codesourcery.com>
6108         * gimplify.c (enum omp_region_type): Add ORT_ACC,
6109         ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS.  Adjust ORT_NONE.
6110         (gimple_add_tmp_var): Add ORT_ACC checks.
6111         (gimplify_var_or_parm_decl): Likewise.
6112         (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
6113         (omp_add_variable): Look in outer contexts for openacc and allow
6114         reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
6115         (omp_notice_variable, omp_is_private, omp_check_private): Add
6116         ORT_ACC checks.
6117         (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
6118         Permit private openacc reductions.
6119         (gimplify_oacc_cache): Specify ORT_ACC.
6120         (gimplify_omp_workshare): Adjust OpenACC region types.
6121         (gimplify_omp_target_update): Likewise.
6122         * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
6123         (lower-rec_input_clauses): Don't handle openacc firstprivate
6124         references here.
6125         (lower_omp_target): Emit initializers for openacc firstprivate vars.
6127 2015-11-11  Eric Botcazou  <ebotcazou@adacore.com>
6129         PR target/67265
6130         * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
6131         frame pointer for stack checking if non-call exceptions aren't used.
6132         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
6134 2015-11-11  Segher Boessenkool  <segher@kernel.crashing.org>
6136         * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
6137         [LA]SHIFTRT.
6139 2015-11-11  Martin Liska  <mliska@suse.cz>
6140             Richard Biener  <rguenther@suse.de>
6142         PR rtl-optimization/68287
6143         * lra-lives.c (lra_create_live_ranges_1): Reserve the right
6144         number of elements.
6146 2015-11-11  Simon Dardis  <simon.dardis@imgtec.com>
6148         * config/mips/mips.c (mips_breakable_sequence_p): New function.
6149         (mips_break_sequence): New function.
6150         (mips_reorg_process_insns): Use them. Use compact branches in selected
6151         situations.
6153 2015-11-11  Alan Lawrence  <alan.lawrence@arm.com>
6155         * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
6157 2015-11-11  Jiong Wang  <jiong.wang@arm.com>
6158             Jim Wilson  <wilson@gcc.gnu.org>
6160         PR target/67305
6161         * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
6162         be true and eliminable registers mentioned.
6164 2015-11-11  Claudiu Zissulescu  <claziss@synopsys.com>
6166         * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
6167         options.
6168         * config/arc/arc-opts.h: Add ARCv2 CPUs.
6169         * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
6170         * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
6171         situation, and store instructions with large offsets.
6172         (arc_secondary_reload_conv): New function.
6173         (arc_init): Add ARCv2 options.
6174         (arc_conditional_register_usage): Select the proper register usage
6175         for ARCv2 processors.
6176         (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
6177         architecture.
6178         (arc_compute_function_type): Likewise.
6179         (arc_print_operand): Handle new ARCv2 punctuation characters.
6180         (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
6181         (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
6182         function.
6183         (arc_reorg, arc_hazard): Use it.
6184         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
6185         (ASM_SPEC): Add ARCv2 options.
6186         (TARGET_NORM): ARC HS has norm instructions by default.
6187         (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
6188         (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
6189         (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
6190         (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
6191         Likewise.
6192         (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
6193         (TARGET_LP_WR_INTERLOCK): Likewise.
6194         * config/arc/arc.md
6195         (commutative_binary_mult_comparison_result_used, movsicc_insn)
6196         (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
6197         (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
6198         (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
6199         Use it for ARCv2.
6200         (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
6201         (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
6202         (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
6203         (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
6204         (extzvsi): New pattern.
6205         * config/arc/arc.opt: New ARCv2 options.
6206         * config/arc/arcEM.md: New file.
6207         * config/arc/arcHS.md: Likewise.
6208         * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
6209         values.
6210         (Cm2): A signed 9-bit integer constant constraint.
6211         (C62): An unsigned 6-bit integer constant constraint.
6212         (C16): A signed 16-bit integer constant constraint.
6213         * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
6214         (short_const_int_operand): New predicate.
6215         * config/arc/t-arc-newlib: Add ARCv2 multilib options.
6216         * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
6217         -mcode-density and -mdiv-rem.
6219 2015-11-11  Julia Koval  <julia.koval@intel.com>
6221         * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
6223 2015-11-11  Julia Koval  <julia.koval@intel.com>
6225         * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
6227 2015-11-11  Martin Liska  <mliska@suse.cz>
6229         * gimple-ssa-strength-reduction.c (create_phi_basis):
6230         Use auto_vec.
6231         * passes.c (release_dump_file_name): New function.
6232         (pass_init_dump_file): Used from this function.
6233         (pass_fini_dump_file): Likewise.
6234         * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
6235         * var-tracking.c (vt_initialize): Use pool_allocator.
6237 2015-11-11  Richard Biener  <rguenth@gcc.gnu.org>
6238             Jiong Wang      <jiong.wang@arm.com>
6240         PR tree-optimization/68234
6241         * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
6242         node which estimiated to be VR_VARYING initially.
6244 2015-11-11  Robert Suchanek  <robert.suchanek@imgtec.com>
6246         * regname.c (scan_rtx_reg): Check the matching number of consecutive
6247         registers when tying chains.
6248         (build_def_use): Move terminated_this_insn earlier in the function.
6250 2015-11-10  Mike Frysinger  <vapier@gentoo.org>
6252         * configure.ac: Use = with test and not ==.
6253         * configure: Regenerated.
6255 2015-11-11  David Edelsohn  <dje.gcc@gmail.com>
6257         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
6258         machine asserts.  Update defines for 64 bit.
6260 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
6262         PR target/63870
6263         * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
6264         lane number.
6265         (neon_vst1_lane<mode>): Likewise.
6266         (neon_vld2_lane<mode>): Likewise.
6267         (neon_vst2_lane<mode>): Likewise.
6268         (neon_vld3_lane<mode>): Likewise.
6269         (neon_vst3_lane<mode>): Likewise.
6270         (neon_vld4_lane<mode>): Likewise.
6271         (neon_vst4_lane<mode>): Likewise.
6273 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
6275         PR target/63870
6276         * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
6277         qualifier_struct_load_store_lane_index.
6278         (arm_storestruct_lane_qualifiers) Likewise.
6279         * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
6280         big-endian.
6281         (neon_vst1_lane<mode>) Likewise.
6282         (neon_vld2_lane<mode>) Likewise.
6283         (neon_vst2_lane<mode>) Likewise.
6284         (neon_vld3_lane<mode>) Likewise.
6285         (neon_vst3_lane<mode>) Likewise.
6286         (neon_vld4_lane<mode>) Likewise.
6287         (neon_vst4_lane<mode>) Likewise.
6289 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
6291         PR target/63870
6292         * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
6293         qualifier_struct_load_store_lane_index.
6294         (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6295         (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
6296         argument qualifiers.
6297         (arm_expand_neon_builtin): Handle new NEON argument qualifier.
6298         * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
6300 2015-11-10  Nathan Sidwell  <nathan@codesourcery.com>
6302         * config/nvptx/nvptx.opt (moptimize): New flag.
6303         * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
6304         default.
6305         (nvptx_optimize_inner): New.
6306         (nvptx_process_pars): Call it when optimizing.
6307         * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
6309 2015-11-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6311         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
6312         Remove redundant code.
6314 2015-11-10  Jeff Law  <law@redhat.com>
6316         * config/ft32/ft32.c (ft32_print_operand): Supply mode to
6317         call to output_address.
6318         * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
6319         Add unnamed machine_mode argument.
6321 2015-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
6323         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
6324         default to 64-bit.
6326 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
6328         * config/i386/i386.md (*movabs<mode>_1): Add explicit
6329         size directives for -masm=intel.
6330         (*movabs<mode>_2): Ditto.
6332 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
6334         * config/i386/i386.c (ix86_print_operand): Remove dead code that
6335         tried to avoid (%rip) for call operands.
6337 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
6339         * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
6340         argument.  Do not use RIP relative addressing when no_rip is set.
6341         (ix86_print_operand): Update call to ix86_print_operand_address_as.
6342         (ix86_print_operand_address): Ditto.
6343         * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
6344         absolute movabs operand 0.  Add square braces for -masm=intel.
6345         (*movabs<mode>_2): Ditto for operand 1.
6347 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6349         * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
6350         combine_vcvtf2i pattern.
6352 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6354         * config/arm/arm.c (neon_valid_immediate): Remove integer
6355         CONST_DOUBLE handling.  It should never occur.
6357 2015-11-10  Matthew Wahab  <matthew.wahab@arm.com>
6359         * config/aarch64/atomics.md (unspecv): Move to iterators.md.
6360         (ATOMIC_LDOP): Likewise.
6361         (atomic_ldop): Likewise.
6362         * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
6363         (ATOMIC_LDOP): Likewise.
6364         (atomic_ldop): Likewise.
6366 2015-11-10  Martin Liska  <mliska@suse.cz>
6368         * alloc-pool.h (allocate_raw): New function.
6369         (operator new (size_t, object_allocator<T> &a)): Use the
6370         function instead of object_allocator::allocate).
6372 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
6374         * config/i386/sse.md (HALFMASKMODE): New attribute.
6375         (DOUBLEMASKMODE): New attribute.
6376         (vec_pack_trunc_qi): New.
6377         (vec_pack_trunc_<mode>): New.
6378         (vec_unpacks_lo_hi): New.
6379         (vec_unpacks_lo_si): New.
6380         (vec_unpacks_lo_di): New.
6381         (vec_unpacks_hi_hi): New.
6382         (vec_unpacks_hi_<mode>): New.
6384 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
6386         * optabs.c (expand_binop_directly): Allow scalar mode for
6387         vec_pack_trunc_optab.
6388         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
6389         boolean vector producers from pattern sequence when computing VF.
6390         * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
6391         vect_recog_mask_conversion_pattern.
6392         (search_type_for_mask): Choose the smallest
6393         type if different size types are mixed.
6394         (build_mask_conversion): New.
6395         (vect_recog_mask_conversion_pattern): New.
6396         (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
6397         * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
6398         load with pattern.
6399         (vectorizable_conversion): Support boolean vectors.
6400         (free_stmt_vec_info): Allow patterns for statements with no lhs.
6401         * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
6403 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
6405         * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
6406         * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
6407         Cast mask to FP mode if required.
6408         * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
6409         (vcond_mask_<mode><avx512fmaskmodelower>): New.
6410         (vcond_mask_<mode><sseintvecmodelower>): New.
6411         (vcond_mask_<mode><sseintvecmodelower>): New.
6412         (vcond_mask_v2div2di): New.
6413         (vcond_mask_<mode><sseintvecmodelower>): New.
6414         (vcond_mask_<mode><sseintvecmodelower>): New.
6416 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
6418         * optabs-query.h (get_vcond_mask_icode): New.
6419         * optabs-tree.c (expand_vec_cond_expr_p): Use
6420         get_vcond_mask_icode for VEC_COND_EXPR with mask.
6421         * optabs.c (expand_vec_cond_mask_expr): New.
6422         (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
6423         * optabs.def (vcond_mask_optab): New.
6424         * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
6425         generate redundant comparison for COND_EXPR.
6426         * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
6427         as a condition.
6428         (vectorizable_condition): Likewise.
6429         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
6430         cond_exp with no embedded comparison.
6431         (vect_build_slp_tree_1): Likewise.
6433 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
6435         * config/i386/sse.md (maskload<mode>): Rename to ...
6436         (maskload<mode><sseintvecmodelower>): ... this.
6437         (maskstore<mode>): Rename to ...
6438         (maskstore<mode><sseintvecmodelower>): ... this.
6439         (maskload<mode><avx512fmaskmodelower>): New.
6440         (maskstore<mode><avx512fmaskmodelower>): New.
6442 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
6444         * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
6445         (expand_MASK_STORE): Adjust to maskstore optab changes.
6446         * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
6447          Adjust to maskload, maskstore optab changes.
6448         * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
6449         * optabs.def (maskload_optab): Transform into convert optab.
6450         (maskstore_optab): Likewise.
6451         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
6452         can_vec_mask_load_store_p signature change.
6453         (predicate_mem_writes): Use boolean mask.
6454         * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
6455         can_vec_mask_load_store_p signature change.  Allow invariant masks.
6456         (vectorizable_operation): Ignore type precision for boolean vectors.
6458 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
6460         * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
6461         (const_vector_mask_from_tree): New.
6462         (const_vector_from_tree): Use const_vector_mask_from_tree
6463         for boolean vectors.
6464         * optabs-query.h (get_vec_cmp_icode): New.
6465         * optabs-tree.c (expand_vec_cmp_expr_p): New.
6466         * optabs-tree.h (expand_vec_cmp_expr_p): New.
6467         * optabs.c (vector_compare_rtx): Add OPNO arg.
6468         (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
6469         (expand_vec_cmp_expr): New.
6470         * optabs.def (vec_cmp_optab): New.
6471         (vec_cmpu_optab): New.
6472         * optabs.h (expand_vec_cmp_expr): New.
6473         * tree-vect-generic.c (expand_vector_comparison): Add vector
6474         comparison optabs check.
6475         * tree-vect-loop.c (vect_determine_vectorization_factor):  Ignore mask
6476         operations for VF.  Add mask type computation.
6477         * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
6478         (vectorizable_comparison): New.
6479         (vect_analyze_stmt): Add vectorizable_comparison.
6480         (vect_transform_stmt): Likewise.
6481         (vect_init_vector): Support boolean vector invariants.
6482         (vect_get_vec_def_for_operand): Add VECTYPE arg.
6483         (vectorizable_condition): Directly provide vectype for invariants
6484         used in comparison.
6485         * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
6486         (enum vect_var_kind): Add vect_mask_var.
6487         (enum stmt_vec_info_type): Add comparison_vec_info_type.
6488         (vectorizable_comparison): New.
6489         (vect_get_vec_def_for_operand): Add VECTYPE arg.
6490         * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
6491         (vect_create_destination_var): Likewise.
6492         * tree-vect-patterns.c (check_bool_pattern): Check fails
6493         if we can vectorize comparison directly.
6494         (search_type_for_mask): New.
6495         (vect_recog_bool_pattern): Support cases when bool pattern check fails.
6496         * tree-vect-slp.c (vect_build_slp_tree_1): Allow
6497         comparison statements.
6498         (vect_get_constant_vectors): Support boolean vector constants.
6499         * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
6500         (ix86_expand_int_vec_cmp): New.
6501         (ix86_expand_fp_vec_cmp): New.
6502         * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
6503         op_true and op_false.
6504         (ix86_int_cmp_code_to_pcmp_immediate): New.
6505         (ix86_fp_cmp_code_to_pcmp_immediate): New.
6506         (ix86_cmp_code_to_pcmp_immediate): New.
6507         (ix86_expand_mask_vec_cmp): New.
6508         (ix86_expand_fp_vec_cmp): New.
6509         (ix86_expand_int_sse_cmp): New.
6510         (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
6511         (ix86_expand_int_vec_cmp): New.
6512         (ix86_get_mask_mode): New.
6513         (TARGET_VECTORIZE_GET_MASK_MODE): New.
6514         * config/i386/sse.md (avx512fmaskmodelower): New.
6515         (vec_cmp<mode><avx512fmaskmodelower>): New.
6516         (vec_cmp<mode><sseintvecmodelower>): New.
6517         (vec_cmpv2div2di): New.
6518         (vec_cmpu<mode><avx512fmaskmodelower>): New.
6519         (vec_cmpu<mode><sseintvecmodelower>): New.
6520         (vec_cmpuv2div2di): New.
6522 2015-11-10  Richard Biener  <rguenther@suse.de>
6524         PR tree-optimization/68240
6525         * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
6526         properly.
6527         (visit_phi): For PHIs with just a single executable edge
6528         take its value directly.
6529         (expressions_equal_p): Handle VN_TOP properly.
6531 2015-11-10  Richard Biener  <rguenther@suse.de>
6533         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
6534         Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
6535         conservatively.
6537 2015-11-10  Richard Biener  <rguenther@suse.de>
6539         PR tree-optimization/56118
6540         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
6541         cost favor vectorized version.
6543 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6545         * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
6546         * config/aarch64/iterators.md (NEG_NOT): New code iterator.
6547         (neg_not_op): New code attribute.
6549 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6551         * ifcvt.c (noce_try_inverse_constants): New function.
6552         (noce_process_if_block): Call it.
6553         * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
6554         * optabs.def (negcc_optab, notcc_optab): Declare.
6555         * optabs.c (emit_conditional_neg_or_complement): New function.
6556         * doc/tm.texi (Standard Names): Document negcc, notcc names.
6558 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6560         PR rtl-optimization/68236
6561         * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
6562         if insn_queue doesn't exist.
6563         (haifa_sched_finish): Reset insn_queue to NULL.
6565 2015-11-10  Robert Suchanek  <robert.suchanek@imgtec.com>
6567         * regrename.c (create_new_chain): Initialize renamed and tied_chain.
6568         (build_def_use): Initialize terminated_this_insn.
6569         (find_best_rename_reg): Pick and check register from the tied chain.
6570         (regrename_do_replace): Mark head as renamed.
6571         (struct du_head *terminated_this_insn). New static variable.
6572         (scan_rtx_reg): Tie chains in move insns.  Set terminated_this_insn.
6573         * regrename.h (struct du_head): Add tied_chain, renamed members.
6575 2015-11-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6577         PR bootstrap/68256
6578         * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
6579         Return false.
6581 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
6583         PR target/57845
6584         * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
6585         not promote the mode for aggregate types.
6587 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
6589         * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
6590         * omp-low.c (build_oacc_routine_dims): New.
6592 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
6594         * config/rs6000/constraints.md (wF constraint): New constraints
6595         for power9/toc fusion.
6596         (wG constraint): Likewise.
6598         * config/rs6000/predicates.md (u6bit_cint_operand): New
6599         predicate, recognize 0..63.
6600         (upper16_cint_operand): New predicate for power9 and toc fusion.
6601         (fpr_reg_operand): Likewise.
6602         (toc_fusion_or_p9_reg_operand): Likewise.
6603         (toc_fusion_mem_raw): Likewise.
6604         (toc_fusion_mem_wrapped): Likewise.
6605         (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
6606         address range.
6607         (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
6608         instead.
6609         (fusion_addis_mem_combo_load): Add support for power9 fusion of
6610         floating point loads, floating point stores, and gpr stores.
6611         (fusion_addis_mem_combo_store): Likewise.
6612         (fusion_offsettable_mem_operand): Likewise.
6614         * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
6615         (emit_fusion_load_store): Likewise.
6616         (fusion_p9_p): Likewise.
6617         (expand_fusion_p9_load): Likewise.
6618         (expand_fusion_p9_store): Likewise.
6619         (emit_fusion_p9_load): Likewise.
6620         (emit_fusion_p9_store): Likewise.
6621         (fusion_wrap_memory_address): Likewise.
6623         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
6624         elements for power9 fusion.
6625         (rs6000_debug_print_mode): Rework debug information to print more
6626         information about fusion.
6627         (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
6628         (rs6000_legitimate_address_p): Recognize toc fusion as a valid
6629         offsettable memory address.
6630         (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
6631         (emit_fusion_gpr_load): Move most of the code from
6632         emit_fusion_gpr_load into emit_fusion-addis that handles both
6633         power8 and power9 fusion.
6634         (emit_fusion_addis): Likewise.
6635         (emit_fusion_load_store): Likewise.
6636         (fusion_wrap_memory_address): Add support for TOC fusion.
6637         (fusion_split_address): Likewise.
6638         (fusion_p9_p): Add support for power9 fusion.
6639         (expand_fusion_p9_load): Likewise.
6640         (expand_fusion_p9_store): Likewise.
6641         (emit_fusion_p9_load): Likewise.
6642         (emit_fusion_p9_store): Likewise.
6644         * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
6645         new instructions in ISA 3.0.
6646         (TARGET_CTZ): Likewise.
6647         (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
6648         (TARGET_TOC_FUSION_FP): Likewise.
6650         * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
6651         fusion unspecs.
6652         (UNSPEC_FUSION_ADDIS): Likewise.
6653         (QHSI mode iterator): New iterator for power9 fusion.
6654         (GPR_FUSION): Likewise.
6655         (FPR_FUSION): Likewise.
6656         (mod<mode>3): Add support for ISA 3.0 modulus instructions.
6657         (umod<mode>3): Likewise.
6658         (divmod peephole): Likewise.
6659         (udivmod peephole): Likewise.
6660         (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
6661         instructions.
6662         (ctz<mode>2_h): Likewise.
6663         (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
6664         (ashdi3_extswsli_dot): Likewise.
6665         (ashdi3_extswsli_dot2): Likewise.
6666         (power9 fusion splitter): New power9/toc fusion support.
6667         (toc_fusionload_<mode>): Likewise.
6668         (toc_fusionload_di): Likewise.
6669         (fusion_gpr_load_<mode>): Update predicate function.
6670         (power9 fusion peephole2s): New power9/toc fusion support.
6671         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
6672         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
6673         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
6674         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
6675         (fusion_p9_<mode>_constant): Likewise.
6677 2015-11-09  Steve Ellcey  <sellcey@imgtec.com>
6679         * optabs.c (prepare_libcall_arg): New function.
6680         (expand_fixed_convert): Add call to prepare_libcall_arg.
6682 2015-11-09  Nikolai Bozhenov  <n.bozhenov@samsung.com>
6684         * sched-int.h (dump_rgn_dependencies_dot): Declare
6685         * sched-rgn.c (dump_rgn_dependencies_dot): New function
6686         * print-rtl.h (print_insn): Add prototype
6688         * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
6689         * common.opt (-fsched-verbose): Set default value to 1.
6690         * invoke.texi (-fsched-verbose): Update the option's description.
6692 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
6694         * config/visium/visium.h (PRINT_OPERAND): Delete.
6695         (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
6696         (PRINT_OPERAND_ADDRESS): Likewise.
6697         * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
6698         to...
6699         (visium_print_operand_punct_valid_p): ...this.  New function.
6700         (TARGET_PRINT_OPERAND): Define to...
6701         (print_operand): Rename to...
6702         (visium_print_operand): ...this.
6703         (TARGET_PRINT_OPERAND_ADDRESS): Define to...
6704         (visium_output_address): Rename to...
6705         (visium_print_operand_address): ...this.
6706         (print_operand_address): Delete.
6708 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
6710         PR middle-end/68259
6711         * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
6712         Check that the type of the first operand is an aggregate type.
6714 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
6716         * omp-low.c: Fix some OpenACC comment typos.
6717         (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
6718         * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
6719         BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
6721 2015-11-09  Uros Bizjak  <ubizjak@gmail.com>
6723         * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
6725 2015-11-09  Jeff Law  <law@redhat.com>
6727         * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
6728         being in gimple/ssa form.  Remove redundant check for SSA_NAME.
6729         Fix comment typo.
6731 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
6732             Peter Bergner  <bergner@vnet.ibm.com>
6734         * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
6735         ISA 3.0 (power9).
6736         (-mpower9-vector): Likewise.
6737         (-mpower9-dform): Likewise.
6738         (-mpower9-minmax): Likewise.
6739         (-mtoc-fusion): Likewise.
6740         (-mmodulo): Likewise.
6741         (-mfloat128-hardware): Likewise.
6743         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
6744         mask for ISA 3.0 (power9).
6745         (POWERPC_MASKS): Add new ISA 3.0 switches.
6746         (power9 cpu): Add power9 cpu.
6748         * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
6749         (ASM_CPU_SPEC): Likewise.
6750         (EXTRA_SPECS): Likewise.
6752         * config/rs6000/rs6000-opts.h (enum processor_type): Add
6753         PROCESSOR_POWER9.
6755         * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
6756         (rs6000_debug_reg_global): Add support for power9 fusion.
6757         (rs6000_setup_reg_addr_masks): Cache mode size.
6758         (rs6000_option_override_internal): Until real power9 tuning is
6759         added, use -mtune=power8 for -mcpu=power9.
6760         (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
6761         pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
6762         of Altivec registers.
6763         (rs6000_option_override_internal): Add support for ISA 3.0 switches.
6764         (rs6000_loop_align): Add support for power9 cpu.
6765         (rs6000_file_start): Likewise.
6766         (rs6000_adjust_cost): Likewise.
6767         (rs6000_issue_rate): Likewise.
6768         (insn_must_be_first_in_group): Likewise.
6769         (insn_must_be_last_in_group): Likewise.
6770         (force_new_group): Likewise.
6771         (rs6000_register_move_cost): Likewise.
6772         (rs6000_opt_masks): Likewise.
6774         * config/rs6000/rs6000.md (cpu attribute): Add power9.
6775         * config/rs6000/rs6000-tables.opt: Regenerate.
6777         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
6778         _ARCH_PWR9 if power9 support is available.
6780         * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
6781         * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
6783         * configure.ac: Determine if the assembler supports the ISA 3.0
6784         instructions.
6785         * config.in (HAVE_AS_POWER9): Likewise.
6786         * configure: Regenerate.
6788         * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
6789         switches.
6791 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6793         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
6794         Remove integer CONST_DOUBLE handling.  It should never occur.
6796 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6798         PR target/68129
6799         * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
6800         * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
6801         Delete VOIDmode case.  Assert that mode is not VOIDmode.
6802         * config/aarch64/predicates.md (const0_operand): Remove const_double
6803         match.
6805 2015-11-09  Martin Liska  <mliska@suse.cz>
6807         * ipa-inline-analysis.c (estimate_function_body_sizes): Call
6808         body_info release function.
6809         * ipa-prop.c (ipa_release_body_info): New function.
6810         (ipa_analyze_node): Call the function.
6811         (ipa_node_params::~ipa_node_params): Release known_csts.
6812         * ipa-prop.h (ipa_release_body_info): Declare.
6814 2015-11-09  Martin Liska  <mliska@suse.cz>
6816         * gcc.c (record_temp_file): Release name string.
6817         * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
6818         * lra-lives.c (free_live_range_list): Utilize
6819         lra_live_range_pool for allocation and deallocation.
6820         (create_live_range): Likewise.
6821         (copy_live_range): Likewise.
6822         (lra_merge_live_ranges): Likewise.
6823         (remove_some_program_points_and_update_live_ranges): Likewise.
6824         (lra_create_live_ranges_1): Release point_freq_vec that can
6825         be not freed from previous iteration of the function.
6826         * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
6827         * tree-sra.c (sra_deinitialize): Release all vectors in
6828         base_access_vec.
6829         * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
6830         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
6831         Release edge_info for a removed edge.
6832         (thread_through_all_blocks): Free region vector.
6833         * tree-ssa.h (free_dom_edge_info): Declare function extern.
6835 2015-11-09  Ilya Enkovich  <enkovich.gnu@gmail.com>
6837         * optabs.c (expand_vec_cond_expr): Always get sign from type.
6838         * tree.c (wide_int_to_tree): Support negative values for boolean.
6839         (build_nonstandard_boolean_type): Use signed type for booleans.
6841 2015-11-09  Richard Biener  <rguenther@suse.de>
6843         PR tree-optimization/68248
6844         * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
6846 2015-11-09  Richard Biener  <rguenther@suse.de>
6848         PR tree-optimization/56118
6849         * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
6850         * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
6851         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
6852         function.
6853         (vect_slp_analyze_data_ref_dependences): Instead of computing
6854         all dependences of the region DRs just analyze the code motions
6855         SLP vectorization will perform.  Remove SLP instances that
6856         cannot have their store/load motions applied.
6857         (vect_analyze_data_refs): Allow DRs without a vectype
6858         in BB vectorization.
6860 2015-11-09  Julian Brown  <julian@codesourcery.com>
6862         * final.c (output_asm_insn): Pass VOIDmode to output_address.
6863         (output_address): Add MODE argument. Pass to print_operand_address
6864         hook.
6865         * targhooks.c (default_print_operand_address): Add MODE argument.
6866         * targhooks.h (default_print_operand_address): Update prototype.
6867         * output.h (output_address): Update prototype.
6868         * target.def (print_operand_address): Add MODE argument.
6869         * config/vax/vax.c (print_operand_address): Pass VOIDmode to
6870         output_address.
6871         (print_operand): Pass access mode to output_address.
6872         * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
6873         argument.
6874         (mcore_print_operand): Update calls to mcore_print_operand_address.
6875         * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
6876         output_address.
6877         * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
6878         output_address.
6879         * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
6880         global.
6881         (tilegx_print_operand): Don't set above global. Update calls to
6882         output_address.
6883         (tilegx_print_operand_address): Add MODE argument. Use instead of
6884         output_memory_reference_mode global.
6885         * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
6886         (frv_print_operand): Pass mode to frv_print_operand_address calls.
6887         * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
6888         output_address.
6889         * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
6890         (cris_print_operand): Pass mode to output_address calls.
6891         * config/spu/spu.c (print_operand): Pass mode to output_address calls.
6892         * config/aarch64/aarch64.h (aarch64_print_operand)
6893         (aarch64_print_operand_address): Remove prototypes.
6894         * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
6895         global.
6896         (aarch64_print_operand): Make static. Update calls to output_address.
6897         (aarch64_print_operand_address): Add MODE argument. Use instead of
6898         aarch64_memory_reference_mode global.
6899         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
6900         hooks.
6901         * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6902         Delete macro definitions.
6903         * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
6904         * config/xtensa/xtensa.c (print_operand): Pass mode in
6905         output_address calls.
6906         * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
6907         argument.
6908         (h83000_print_operand): Update calls to h8300_print_operand_address
6909         and output_address.
6910         * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
6911         * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
6912         global.
6913         (tilepro_print_operand): Pass mode to output_address.
6914         (tilepro_print_operand_address): Add MODE argument. Use instead of
6915         output_memory_reference_mode.
6916         * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
6917         (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
6918         to output_address calls.
6919         (nvptx_print_operand_address): Add MODE argument.
6920         * config/alpha/alpha.c (print_operand): Pass mode argument in
6921         output_address calls.
6922         * config/m68k/m68k.c (print_operand): Pass mode argument in
6923         output_address call.
6924         * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
6925         (avr_print_operand): Update calls to avr_print_operand_address.
6926         * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
6927         argument. Update calls to output_address.
6928         (sparc_print_operand): Pass mode to output_address.
6929         * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
6930         argument.
6931         (iq2000_print_operand): Pass mode in output_address calls.
6932         * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
6933         MODE argument.
6934         (xstormy16_print_operand): Pass mode to
6935         xstormy16_print_operand_address calls.
6936         * config/mips/mips.c (mips_print_operand): Update calls to
6937         output_address.
6938         (mips_print_operand_address): Add MODE argument.
6939         * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
6940         to output_address.
6941         (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
6942         * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
6943         output_address.
6944         * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
6945         (rx_print_operand): Update calls to output_address,
6946         rx_print_operand_address.
6947         * config/nds32/nds32.c (nds32_print_operand): Update calls to
6948         output_address.
6949         (nds32_print_operand_address): Add MODE argument.
6950         * config/rs6000/rs6000.c (print_operand): Pass mem mode to
6951         output_address calls.
6952         * config/c6x/c6x.c (print_address_offset): Pass mem mode to
6953         output_address call.
6954         (c6x_print_address_operand): Update calls to output_address.
6955         (c6x_print_operand_address): Pass mode to above.
6956         * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
6957         (v850_print_operand): Pass mode to v850_print_operand_address,
6958         output_address.
6959         * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
6960         (mmix_print_operand): Pass mode in output_address calls.
6961         * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
6962         (sh_print_operand): Pass mem mode to output_address,
6963         sh_print_operand_address.
6964         * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
6965         (cr16_print_operand): Pass mode to output_address,
6966         cr16_print_operand_address.
6967         * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
6968         output_address.
6969         * config/microblaze/microblaze.c (print_operand): Pass mode to
6970         output_address.
6971         * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
6972         output_address.
6973         (nios2_print_operand_address): Add MODE argument. Update call to
6974         nios2_print_operand_address.
6975         * config/s390/s390.c (print_operand): Pass mode to output_address.
6976         * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
6977         * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
6978         output_address.
6979         * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
6980         Use instead of output_memory_reference_mode.
6981         (output_memory_reference_mode): Delete global.
6982         (arm_print_operand): Pass mem mode to output_address.
6983         * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
6984         (m32r_print_operand): Pass mode to output_address.
6985         * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
6986         argument.
6987         (msp430_print_operand): Pass mode to msp430_print_operand_addr.
6988         * config/i386/i386.c (ix86_print_operand): Pass mode to
6989         output_address calls.
6990         (ix86_print_operand_address): Add MODE argument.
6992 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
6994         PR middle-end/68251
6995         * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
6996         * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
6997         * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
6998         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
7000 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7002         PR rtl-optimization/67749
7003         * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
7004         case before emitting the two blocks.  Instead modify the register
7005         in the corresponding final insn of the basic block.
7007 2015-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7009         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
7010         assembler syntax.
7011         Support Solaris ld.
7012         Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
7014         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
7015         HAVE_INITFINI_ARRAY_SUPPORT.
7016         * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
7018         * configure.ac (gcc_cv_as_sparc_nobits): Remove.
7019         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
7020         Don't check HAVE_AS_SPARC_NOBITS.
7021         Heed SECTION_NOTYPE.
7023         * configure: Regenerate.
7024         * config.in: Regenerate.
7026 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
7028         PR middle-end/68253
7029         * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
7031 2015-11-09  Richard Henderson  <rth@redhat.com>
7033         * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
7034         __SEG_GS, __SEG_TLS.
7035         (ix86_register_pragmas): Register address spaces __seg_fs,
7036         __seg_gs, __seg_tls.
7037         * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
7038         (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
7039         (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
7040         * config/i386/i386.c (ix86_decompose_address): Likewise.
7041         (ix86_legitimate_address_p): Likewise.
7042         (memory_address_length): Likewise.  Check mem address space too.
7043         (ix86_print_operand): Use ix86_print_operand_address_as.
7044         (ix86_print_operand_address_as): Rename from
7045         ix86_print_operand_address, add new addr_space_t parameter.
7046         Validate that either the parameter or the ix86_address segment
7047         is default address space.  Handle ADDR_SPACE_SEG_TLS.
7048         (ix86_print_operand_address): New.
7049         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
7050         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
7051         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
7052         (ix86_addr_space_zero_address_valid): New.
7053         (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
7054         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
7055         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
7056         * config/i386/predicates.md (address_no_seg_operand): Likewise.
7057         (vsib_address_operand): Likewise.
7058         (address_mpx_no_base_operand): Likewise.
7059         (address_mpx_no_index_operand): Likewise.
7060         * doc/extend.texi (x86 Named Address Spaces): New section.
7062         * config/i386/i386.c (ix86_check_no_addr_space): New.
7063         (decide_alg): Add have_as parameter.
7064         (alg_usable_p): Likewise; disable rep algorithms if set.
7065         (ix86_expand_set_or_movmem): Notice if either MEM has a
7066         non-default address space.
7067         (ix86_expand_strlen): Likewise.
7068         * config/i386/i386.md (strmov, strset): Likewise.
7069         (*strmovdi_rex_1): Use ix86_check_no_addr_space.
7070         (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
7071         *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
7072         *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
7073         *cmpstrnqi_1, *strlenqi_1): Likewise.
7075         * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
7076         (*movabs<mode>_2): Likewise.
7078         * dwarf2out.c (modified_type_die): Pass the address space number
7079         through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
7080         * target.def (TARGET_ADDR_SPACE_DEBUG): New.
7081         * targhooks.c (default_addr_space_debug): New.
7082         * targhooks.h (default_addr_space_debug): Declare.
7083         * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
7084         * doc/tm.texi: Rebuild.
7086         * gimple.c (check_loadstore): Return false when 0 is a valid address.
7087         * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
7088         null when 0 is valid in the source address space.
7089         * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
7090         * targhooks.c (default_addr_space_zero_address_valid): New.
7091         * targhooks.h (default_addr_space_zero_address_valid): Declare.
7092         * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
7093         * doc/tm.texi: Rebuild.
7095         * cselib.c (add_mem_for_addr): Compare address spaces when
7096         matching memories.
7097         (cselib_lookup_mem): Likewise.
7098         * fold-const.c (operand_equal_p): Check address spaces of
7099         pointer types before checking integer constants.
7101         PR tree-opt/66768
7102         * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
7103         the correct type for the base.
7105 2015-11-09  Jeff Law  <law@redhat.com>
7107         * tree-into-ssa.c (names_to_release): No longer static.
7108         * tree-into-ssa.h (names_to_release): Declare.
7109         * tree-ssanames.c (verify_ssaname_freelists): New debug function.
7110         (release_free_names_and_compact_live_names): New function extracted
7111         from pass_release_ssa_names::execute.
7112         (pass_release_ssa_names::execute): Use it.
7114 2015-11-09  Alan Modra  <amodra@gmail.com>
7116         * gensupport.c (add_mnemonic_string): Make len param a size_t.
7117         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
7118         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
7119         return value.
7121 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
7123         PR rtl-optimization/68182
7124         * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
7125         branch with only one successor just like unconditional branches.
7127 2015-11-08  Jeff Law  <law@redhat.com>
7129         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
7130         non-FSM path has no edges marked with EDGE_DFS_BACK.
7131         (ssa_redirect_edges): No longer call mark_loop_for_removal.
7132         (thread_single_edge, def_split_header_continue_p): Remove.
7133         (bb_ends_with_multiway_branch): Likewise.
7134         (thread_through_loop_header): Remove cases of threading from
7135         latch through the header.  Simplify knowing we won't thread
7136         the latch.
7137         (thread_through_all_blocks): Simplify knowing that only the FSM
7138         threader needs to handle backedges.
7140 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
7142         * doc/extend.texi (type attributes): Document scalar_storage_order.
7143         (Structure-Packing Pragmas): Rename into...
7144         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
7145         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
7146         (Warnings): Document -Wno-scalar-storage-order.
7147         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
7148         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
7149         extract_bit_field and store_bit_field.
7150         (initialize_argument_information): Adjust call to store_expr.
7151         (load_register_parameters): Adjust call to extract_bit_field.
7152         * expmed.c (check_reverse_storage_order_support): New function.
7153         (check_reverse_float_storage_order_support): Likewise.
7154         (flip_storage_order): Likewise.
7155         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
7156         of the value if it is true.  Pass REVERSE to recursive call after
7157         adjusting the target offset.
7158         Do not use extraction or movstrict instruction if REVERSE is true.
7159         Pass REVERSE to store_fixed_bit_field.
7160         (store_bit_field): Add REVERSE parameter and pass to it to above.
7161         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
7162         store_split_bit_field and store_fixed_bit_field_1.
7163         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
7164         order of the value if it is true and adjust the target offset.
7165         (store_split_bit_field): Add REVERSE parameter and pass it to
7166         store_fixed_bit_field.  Adjust the target offset if it is true.
7167         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
7168         of the value if it is true.  Pass REVERSE to recursive call after
7169         adjusting the target offset.
7170         Do not use extraction or subreg instruction if REVERSE is true.
7171         Pass REVERSE to extract_fixed_bit_field.
7172         (extract_bit_field): Add REVERSE parameter and pass to it to above.
7173         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
7174         extract_split_bit_field and extract_fixed_bit_field_1.
7175         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
7176         order of the value if it is true and adjust the target offset.
7177         (extract_split_bit_field): Add REVERSE parameter and pass it to
7178         extract_fixed_bit_field.  Adjust the target offset if it is true.
7179         * expmed.h (flip_storage_order): Declare.
7180         (store_bit_field): Adjust prototype.
7181         (extract_bit_field): Likewise.
7182         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
7183         (emit_group_store): Adjust call to store_bit_field.
7184         (copy_blkmode_from_reg): Likewise.
7185         (copy_blkmode_to_reg): Likewise.
7186         (write_complex_part): Likewise.
7187         (read_complex_part): Likewise.
7188         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
7189         that it isn't true if the target is a register.
7190         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
7191         and flip the storage order of the value.
7192         <BIT_IOR_EXPR>: Flip the storage order of the value.
7193         (get_bit_range): Adjust call to get_inner_reference.
7194         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
7195         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
7196         with reverse storage order.
7197         (store_expr_with_bounds): Add REVERSE parameter and pass it to
7198         recursive calls and call to store_bit_field.  Force the value into a
7199         register if it is true and then flip the storage order of the value.
7200         (store_expr): Add REVERSE parameter and pass it to above.
7201         (categorize_ctor_elements_1): Adjust call to
7202         initializer_constant_valid_p.
7203         (store_constructor_field): Add REVERSE parameter and pass it to
7204         recursive calls and call to store_field.
7205         (store_constructor): Add REVERSE parameter and pass it to calls to
7206         store_constructor_field and store_expr.  Set it to true for an
7207         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
7208         (store_field): Add REVERSE parameter and pass it to recursive calls
7209         and calls to store_expr and store_bit_field.  Temporarily flip the
7210         storage order of the value with record type and integral mode and
7211         adjust the shift if it is true.
7212         (get_inner_reference): Add PREVERSEP parameter and set it to true
7213         upon encoutering a reference with reverse storage order.
7214         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
7215         (expand_constructor): Adjust call to store_constructor.
7216         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
7217         of the union type to store_expr in the MEM case and assert that it
7218         isn't set in the REG case.  Adjust call to store_field.
7219         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
7220         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
7221         get_inner_reference and extract_bit_field. Temporarily flip the
7222         storage order of the value with record type and integral mode and
7223         adjust the shift if it is true.  Flip the storage order of the value
7224         at the end if it is true.
7225         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
7226         get_inner_reference.  Do not fetch an inner reference if it is true.
7227         * expr.h (store_expr_with_bounds): Ajust prototype.
7228         (store_expr): Likewise.
7229         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
7230         REF_REVERSE_STORAGE_ORDER on the reference according to it.
7231         (optimize_bit_field_compare): Deal with reverse storage order.
7232         Adjust calls to get_inner_reference and make_bit_field_ref.
7233         (decode_field_reference): Add PREVERSEP parameter and adjust call to
7234         get_inner_reference.
7235         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
7236         to decode_field_reference and make_bit_field_ref.
7237         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
7238         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
7239         (fold_comparison): Adjust call to get_inner_reference.
7240         (split_address_to_core_and_offset): Adjust call to
7241         get_inner_reference.
7242         * gimple-expr.c (useless_type_conversion_p): Return false for array
7243         types with different TYPE_REVERSE_STORAGE_ORDER flag.
7244         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
7245         REF_REVERSE_STORAGE_ORDER flag.
7246         * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
7247         * output.h (assemble_real): Adjust prototype.
7248         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
7249         * stor-layout.c (finish_record_layout): Propagate the
7250         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
7251         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
7252         (TYPE_SATURATING): Adjust.
7253         (REF_REVERSE_STORAGE_ORDER): Document.
7254         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
7255         set it to true upon encoutering a reference with reverse storage order.
7256         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
7257         * tree-inline.c (remap_gimple_op_r): Propagate the
7258         REF_REVERSE_STORAGE_ORDER flag.
7259         (copy_tree_body_r): Likewise.
7260         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
7261         store_expr.
7262         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
7263         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
7264         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
7265         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
7266         REF_REVERSE_STORAGE_ORDER flag.
7267         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
7268         (gimple_canonical_types_compatible_p): Likewise.
7269         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
7270         (TYPE_SATURATING): Adjust.
7271         (REF_REVERSE_STORAGE_ORDER): New flag.
7272         (reverse_storage_order_for_component_p): New inline predicate.
7273         (storage_order_barrier_p): Likewise.
7274         (get_inner_reference): Adjust prototype.
7275         * varasm.c: Include expmed.h.
7276         (assemble_variable_contents): Adjust call to output_constant.
7277         (assemble_real): Add REVERSE parameter.  Flip the storage
7278         order of the value if REVERSE is true.
7279         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
7280         (assemble_constant_contents): Adjust call to output_constant.
7281         (output_constant_pool_2): Adjust call to assemble_real.
7282         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
7283         TYPE_REVERSE_STORAGE_ORDER.
7284         (initializer_constant_valid_p): Add REVERSE parameter.
7285         (output_constant): Add REVERSE parameter.
7286         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
7287         <REAL_TYPE>: Adjust call to assemble_real.
7288         <COMPLEX_TYPE>: Pass it to recursive calls.
7289         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
7290         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
7291         (struct oc_local_state): Add REVERSE field.
7292         (output_constructor_array_range): Adjust calls to output_constant.
7293         (output_constructor_regular_field): Likewise.
7294         (output_constructor_bitfield): Adjust call to output_constructor.
7295         Flip the storage order of the value if REVERSE is true.
7296         (output_constructor): Add REVERSE parameter.  Set it to true for an
7297         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
7298         output_constructor_bitfield.
7299         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
7300         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
7301         * builtins.c (get_object_alignment_2): Likewise.
7302         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
7303         and get_ref_base_and_extent.
7304         * dbxout.c (dbxout_expand_expr): Likewise.
7305         * dwarf2out.c (add_var_loc_to_decl): Likewise.
7306         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
7307         (loc_list_from_tree): Likewise.
7308         (fortran_common): Likewise.
7309         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
7310         get_ref_base_and_extent.
7311         (get_base_constructor): Likewise.
7312         (fold_const_aggregate_ref_1): Likewise.
7313         * gimple-laddress.c (pass_laddress::execute): Adjust call to
7314         get_inner_reference.
7315         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
7316         get_inner_reference and bail out on reverse storage order.
7317         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
7318         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
7319         build_ref_for_offset.
7320         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
7321         get_ref_base_and_extent.
7322         (ipa_polymorphic_call_context): Likewise.
7323         (extr_type_from_vtbl_ptr_store): Likewise.
7324         (check_stmt_for_type_change): Likewise.
7325         (get_dynamic_type): Likewise.
7326         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
7327         get_ref_base_and_extent.
7328         (compute_complex_assign_jump_func): Likewise.
7329         (get_ancestor_addr_info): Likewise.
7330         (compute_known_type_jump_func): Likewise.
7331         (determine_known_aggregate_parts): Likewise.
7332         (ipa_get_adjustment_candidate): Likewise.
7333         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
7334         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
7335         (build_ref_for_offset): Adjust prototype.
7336         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
7337         get_inner_reference.
7338         * tree-affine.c (tree_to_aff_combination): Adjust call to
7339         get_inner_reference.
7340         (get_inner_reference_aff): Likewise.
7341         * tree-data-ref.c (split_constant_offset_1): Likewise.
7342         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
7343         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
7344         get_inner_reference.
7345         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
7346         (dump_access): Print new fields.
7347         (create_access): Adjust call to get_ref_base_and_extent and set the
7348         REVERSE flag according to the result.
7349         (completely_scalarize_record): Set the REVERSE flag.
7350         (scalarize_elem): Add REVERSE parameter.
7351         (build_access_from_expr_1): Preserve storage order barriers.
7352         (build_accesses_from_assign): Likewise.
7353         (build_ref_for_offset): Add REVERSE parameter and set the
7354         REF_REVERSE_STORAGE_ORDER flag accordingly.
7355         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
7356         the REF_REVERSE_STORAGE_ORDER flag if there are components.
7357         (analyze_access_subtree): Likewise.
7358         (create_artificial_child_access): Set the REVERSE flag.
7359         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
7360         (turn_representatives_into_adjustments): Propagate REVERSE flag.
7361         (ipa_sra_check_caller): Adjust call to get_inner_reference.
7362         * tree-ssa-alias.c (ao_ref_base): Adjust call to
7363         get_ref_base_and_extent.
7364         (aliasing_component_refs_p): Likewise.
7365         (stmt_kills_ref_p_1): Likewise.
7366         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
7367         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
7368         Return true if reverse storage order.
7369         <BIT_FIELD_REF>: Likewise.
7370         <COMPONENT_REF>: Likewise.
7371         <ARRAY_REF>: Likewise.
7372         <ARRAY_RANGE_REF>: Likewise.
7373         (split_address_cost): Likewise.  Bail out if reverse storage order.
7374         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
7375         get_inner_reference.  Bail out if reverse storage order.
7376         (bswap_replace): Adjust call to get_inner_reference.
7377         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
7378         the REF_REVERSE_STORAGE_ORDER flag.
7379         <BIT_FIELD_REF>: Likewise.
7380         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
7381         barriers.
7382         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
7383         to the REF_REVERSE_STORAGE_ORDER flag.
7384         <BIT_FIELD_REF>: Likewise.
7385         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
7386         (contains_storage_order_barrier_p): New predicate.
7387         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
7388         Punt on storage order barriers if necessary.
7389         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
7390         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
7391         call to get_ref_base_and_extent.
7392         (do_structure_copy): Likewise.
7393         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
7394         get_inner_reference.
7395         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage order.
7396         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
7397         * ubsan.c (instrument_bool_enum_load): Likewise.
7398         (instrument_object_size): Likewise.
7399         * var-tracking.c (track_expr_p): Adjust call to
7400         get_ref_base_and_extent.
7401         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
7402         get_inner_reference.
7403         * config/s390/s390.c (s390_expand_atomic): Adjust call to
7404         store_bit_field.
7405         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
7406         extract_bit_field.
7407         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
7409 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
7411         * config/sparc/sparc.opt (mfix-at697f): Add final period.
7413 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
7415         PR rtl-optimization/67864
7416         * common/config/i386/i386-common.c (ix86_option_optimization_table)
7417         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
7418         at -Os and up.
7420 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
7422         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
7423         internal functions.
7425 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
7427         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
7428         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
7430 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
7432         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
7433         * internal-fn.c: Don't undef it here.
7434         * tree-core.h: Likewise.
7436 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
7438         * builtins.c (fold_builtin_nan): Delete.
7439         (fold_builtin_memcmp): Remove case where both arguments are constant.
7440         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
7441         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
7442         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
7443         * fold-const-call.c: Include fold-const.h.
7444         (host_size_t_cst_p): New function.
7445         (build_cmp_result, fold_const_builtin_nan): Likewise.
7446         (fold_const_call_1): New function, split out from...
7447         (fold_const_call): ...here (for all three interfaces).  Handle
7448         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
7450 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
7452         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
7453         (fold_builtin_1): Don't call them.
7454         * fold-const-call.c: Include tm.h.
7455         (fold_const_call_ss): New variant for integer-to-integer folds.
7456         (fold_const_call): Call it.
7458 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
7460         * builtins.c (fold_builtin_classify): Move constant cases to...
7461         * fold-const-call.c (fold_const_call_ss): ...here.
7463 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
7465         * builtins.h (c_getstr): Move to...
7466         * fold-const.h (c_getstr): ...here.
7467         * builtins.c (c_getstr): Move to...
7468         * fold-const.c (c_getstr): ...here.
7470 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
7472         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
7473         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
7475 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
7477         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
7478         the dominance info; free it if we can't.
7479         (pass_call_cdce::execute): Don't free the dominance info here.
7481 2015-11-06  Jeff Law <law@redhat.com>
7483         * tree-ssa-threadedge.c (dummy_simplify): Remove.
7484         (thread_around_empty_blocks): Remove backedge_seen_p argument.
7485         If we thread to a backedge, then return false.  Update recursive
7486         call to eliminate backedge_seen_p argument.
7487         (thread_through_normal_block): Remove backedge_seen_p argument.
7488         Remove backedge_seen_p argument from calls to
7489         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
7490         If we thread to a backedge, then return 0.
7491         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
7492         pass it to thread_through_normal_block or thread_through_empty_blocks.
7493         For joiner handling, if we see a backedge, do not try normal
7494         threading.
7496 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
7498         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
7499         * graphite-poly.c (new_scop): Initialize original_schedule.
7500         (free_scop): Free original_schedule.
7501         * graphite-poly.h (struct scop): Add field original_schedule.
7502         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
7503         (build_poly_scop): Call build_scop_original_schedule.
7505 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
7507         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
7508         (build_pbb_minimal_scattering_polyhedrons): New.
7509         (build_scop_scattering): Remove.
7510         (build_scop_minimal_scattering): New.
7511         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
7512         (build_poly_scop): Call build_scop_minimal_scattering.
7514 2015-11-06  Jeff Law <law@redhat.com>
7516         * cfg-flags.def (IGNORE): New edge flag.
7517         * tree-vrp.c (identify_jump_threads): Mark and clear edges
7518         scheduled for removal with EDGE_IGNORE around call into
7519         jump threader.  Do no thread across edges with EDGE_IGNORE,
7520         but do allow threading across those with EDGE_DFS_BACK.
7522 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
7524         * doc/md.texi (multi-alternative constraints): Don't document
7525         alternatives inherently tied to reload for the user documentation.
7527 2015-11-06  Michael Collison  <michael.collison@linaro.org>
7528             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7530         Revert:
7531         2015-08-01  Michael Collison  <michael.collison@linaro.org
7532                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7534         * config/arm/arm.md (*arm_smin_cmp): New pattern.
7535         (*arm_umin_cmp): Likewise.
7537 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
7539         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
7540         * omp-low.c (check_omp_nesting_restrictions): Update for the
7541         various new OpenMP 4.5 nesting restrictions, clarified
7542         nesting glossary, closely nested region relationship clarified
7543         to mean explicit or implicit parallel regions (target/teams),
7544         use %</%> or %qs where appropriate.
7546 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
7547             Sebastian Pop  <s.pop@samsung.com>
7549         * graphite-scop-detection.c (loop_is_valid_scop): Call
7550         optimize_loop_nest_for_speed_p.
7552 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
7553             Sebastian Pop  <s.pop@samsung.com>
7555         * graphite-optimize-isl.c (optimize_isl): Call
7556         isl_options_set_schedule_maximize_band_depth.
7558 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
7559             Sebastian Pop  <s.pop@samsung.com>
7561         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
7562         and exit edges should not be a part of irreducible loop.
7563         (scop_detection::can_represent_loop_1): Loops should not be
7564         irreducible.
7565         (scop_detection::harmful_stmt_in_region): All the basic block
7566         should belong to reducible loops.
7568 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
7570         * config/aarch64/aarch64-simd-builtins.def: Update builtins
7571         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
7572         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
7573         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
7574         (aarch64_tbx4v8qi): Rename to...
7575         aarch64_tbx4<mode>): ... this.
7576         (aarch64_qtbl3<mode>): New pattern.
7577         (aarch64_qtbx3<mode>): New pattern.
7578         (aarch64_qtbl4<mode>): New pattern.
7579         (aarch64_qtbx4<mode>): New pattern.
7580         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
7581         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
7582         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
7583         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
7584         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
7585         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
7586         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
7587         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
7588         functions.
7590 2015-11-06  Mike Stump  <mikestump@comcast.net>
7592         PR debug/66728
7593         * dwarf2out.c (get_full_len): Return a value based upon the actual
7594         precision needed for the value.
7595         (add_const_value_attribute): Use a maximal wide-int for
7596         CONST_WIDE_INTs, not VOIDmode.
7597         (output_die): Don't ever output NULL with printf.
7599         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
7600         BLKmode nor VOIDmode values.
7602 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
7604         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
7605         and "range2".
7606         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
7607         * diagnostic-core.h (warning_at_rich_loc): New declaration.
7608         (error_at_rich_loc): New declaration.
7609         (permerror_at_rich_loc): New declaration.
7610         (inform_at_rich_loc): New declaration.
7611         * diagnostic-show-locus.c (adjust_line): Delete.
7612         (struct point_state): New struct.
7613         (class colorizer): New class.
7614         (class layout_point): New class.
7615         (class layout_range): New class.
7616         (struct line_bounds): New.
7617         (class layout): New class.
7618         (colorizer::colorizer): New ctor.
7619         (colorizer::~colorizer): New dtor.
7620         (layout::layout): New ctor.
7621         (layout::print_source_line): New method.
7622         (layout::print_annotation_line): New method.
7623         (layout::get_state_at_point): New method.
7624         (layout::get_x_bound_for_row): New method.
7625         (diagnostic_show_locus): Reimplement in terms of class layout.
7626         (diagnostic_print_caret_line): Delete.
7627         * diagnostic.c (diagnostic_initialize): Replace
7628         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
7629         (diagnostic_set_info_translated): Convert param from location_t
7630         to rich_location *.  Eliminate calls to set_location on the
7631         message in favor of storing the rich_location ptr there.
7632         (diagnostic_set_info): Convert param from location_t to
7633         rich_location *.
7634         (diagnostic_build_prefix): Break out array into...
7635         (diagnostic_kind_color): New variable.
7636         (diagnostic_get_color_for_kind): New function.
7637         (diagnostic_report_diagnostic): Colorize the option_text
7638         using the color for the severity.
7639         (diagnostic_append_note): Update for change in signature of
7640         diagnostic_set_info.
7641         (diagnostic_append_note_at_rich_loc): New function.
7642         (emit_diagnostic): Update for change in signature of
7643         diagnostic_set_info.
7644         (inform): Likewise.
7645         (inform_at_rich_loc): New function.
7646         (inform_n): Update for change in signature of diagnostic_set_info.
7647         (warning): Likewise.
7648         (warning_at): Likewise.
7649         (warning_at_rich_loc): New function.
7650         (warning_n): Update for change in signature of diagnostic_set_info.
7651         (pedwarn): Likewise.
7652         (permerror): Likewise.
7653         (permerror_at_rich_loc): New function.
7654         (error): Update for change in signature of diagnostic_set_info.
7655         (error_n): Likewise.
7656         (error_at): Likewise.
7657         (error_at_rich_loc): New function.
7658         (sorry): Update for change in signature of diagnostic_set_info.
7659         (fatal_error): Likewise.
7660         (internal_error): Likewise.
7661         (internal_error_no_backtrace): Likewise.
7662         (source_range::debug): New function.
7663         * diagnostic.h (struct diagnostic_info): Eliminate field
7664         "override_column".  Add field "richloc".
7665         (struct diagnostic_context): Add field "colorize_source_p".
7666         (diagnostic_override_column): Delete.
7667         (diagnostic_set_info): Convert param from location_t to
7668         rich_location *.
7669         (diagnostic_set_info_translated): Likewise.
7670         (diagnostic_append_note_at_rich_loc): New function.
7671         (diagnostic_num_locations): New function.
7672         (diagnostic_expand_location): Get the location from the
7673         rich_location.
7674         (diagnostic_print_caret_line): Delete.
7675         (diagnostic_get_color_for_kind): New declaration.
7676         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
7677         (error_cb): Update for change in signature of "error" callback.
7678         (fatal_at): Likewise.
7679         (warning_at): Likewise.
7680         * input.c (linemap_client_expand_location_to_spelling_point): New.
7681         * pretty-print.c (text_info::set_range): New method.
7682         (text_info::get_location): New method.
7683         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
7684         (struct text_info): Eliminate "locations" array in favor of
7685         "m_richloc", a rich_location *.
7686         (textinfo::set_location): Add a "caret_p" param, and reimplement
7687         in terms of a call to set_range.
7688         (textinfo::get_location): Eliminate inline implementation in favor of
7689         an out-of-line reimplementation.
7690         (textinfo::set_range): New method.
7691         * rtl-error.c (diagnostic_for_asm): Update for change in signature
7692         of diagnostic_set_info.
7693         * tree-diagnostic.c (default_tree_printer): Update for new
7694         "caret_p" param for textinfo::set_location.
7695         * tree-pretty-print.c (percent_K_format): Likewise.
7697 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7699         Properly apply.
7700         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7701         * config/aarch64/aarch64.c
7702         (aarch64_can_use_per_function_literal_pools_p): New.
7703         (aarch64_use_blocks_for_constant_p): Adjust declaration
7704         and use aarch64_can_use_function_literal_pools_p.
7705         (aarch64_select_rtx_section): Update.
7707 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7709         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
7710         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
7711         (arm_output_multireg_pop): Likewise.
7712         (output_move_double):  Likewise.
7713         (output_move_quad):  Likewise.
7714         (output_return_instruction): Likewise.
7715         (arm_print_operand): Remove support for %( and %. print modifiers.
7716         (arm_output_shift): Make unified asm.
7717         (arm_declare_function_name): Likewise.
7718         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
7719         (ASM_APP_OFF): Adjust.
7720         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
7721         (ASM_OUTPUT_REG_POP): Likewise.
7722         * config/arm/arm.md: Adjust uses of %., %(, %)
7723         * config/arm/sync.md: Likewise.
7724         * config/arm/thumb2.md: Likewise.
7725         * config/arm/ldmstm.md: Regenerate.
7726         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
7727         * doc/invoke.texi (masm-unified-syntax): Update documentation.
7729 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
7731         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
7733 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
7735         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
7736         add OEP_MATCH_SIDE_EFFECTS.
7737         * fold-const.c (operand_equal_p): Update documentation; handle
7738         OEP_MATCH_SIDE_EFFECTS.
7739         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
7740         OEP_MATCH_SIDE_EFFECTS.
7742 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
7743             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
7745         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
7746         * config/aarch64/aarch64-protos.h: Declare.
7747         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
7748         frsqrts.
7749         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
7750         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
7751         code when applicable.
7752         * config/aarch64/aarch64.md: Added enum entries.
7753         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
7755 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
7757         PR ipa/68057
7758         PR ipa/68220
7759         * ipa-polymorphic-call.c
7760         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
7761         issue when offset is out of range.
7762         (contains_type_p): Fix out of range check, clear dynamic flag.
7764 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
7766         * config.gcc (e6500): Fix cpu_is_64bit typo.
7768 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
7770         * tree-sra.c (completely_scalarize): Properly handle negative array
7771         indices using offset_int.
7773 2015-11-06  Richard Biener  <rguenther@suse.de>
7775         * alloc-pool.h (object_allocator::allocate): Default-initialize
7776         object.
7778 2015-11-06  Richard Biener  <rguenther@suse.de>
7780         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
7781         * lra.c (init_reg_info): Truncate copy_vec instead of
7782         re-allocating a new one and leaking the old.
7783         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
7784         bb_infos vec.
7785         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
7786         * postreload-gcse.c (free_mem): Free modify_mem_list and
7787         canon_modify_mem_list.
7789 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
7791         PR tree-optimization/68145
7792         * tree-vect-stmts.c (vectorizable_operation): Fix
7793         determination for booleans.
7795 2015-11-06  Tom de Vries  <tom@codesourcery.com>
7797         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
7798         cond_jump, instead of split after last nondebug insn before cond_jump.
7799         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
7800         returning.
7802 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7804         PR target/68088
7805         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
7806         subregs from accumulator and make sure it's a register.
7808 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
7810         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
7811         low part to scalar.
7812         (reduc_uplus_<mode>): Remove.
7813         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
7814         loongson_extract_lo_<mode>.
7815         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
7816         reduc_smax_<mode>, reduc_smax_<mode>, use vec
7817         loongson_extract_lo_<mode>.
7818         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
7820 2015-11-06  Richard Biener  <rguenther@suse.de>
7822         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
7823         members.
7824         (vect_stmt_in_region_p): Declare.
7825         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
7826         (destroy_bb_vec_info): Likewise.
7827         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
7828         (vect_get_and_check_slp_defs): Likewise.
7829         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
7830         (vect_slp_bb): Likewise.
7831         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
7832         in terms of vect_stmt_in_region_p.
7833         (vect_pattern_recog): Iterate over the BB region.
7834         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
7835         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
7836         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
7837         * config/i386/i386.c: Include gimple-iterator.h.
7838         * config/aarch64/aarch64.c: Likewise.
7840 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
7842         PR rtl-optimization/67753
7843         PR rtl-optimization/64164
7844         * function.c (assign_parm_setup_block): Avoid allocating a
7845         stack slot if we don't have an ABI-reserved one.  Emit the
7846         copy to target_reg in the conversion seq if the copy from
7847         entry_parm is in it too.  Don't use the conversion seq to copy
7848         a PARALLEL to a REG or a CONCAT.
7850 2015-11-06  Richard Biener  <rguenther@suse.de>
7852         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
7853         equal_keys.
7855 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
7856             Thomas Schwinge  <thomas@codesourcery.com>
7857             James Norris  <jnorris@codesourcery.com>
7860         * gimplify.c (gimplify_scan_omp_clauses): Add support for
7861         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
7862         (gimplify_adjust_omp_clauses): Likewise.
7863         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
7864         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
7865         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
7866         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
7867         (omp_clause_code_name): Likewise.
7868         (walk_tree_1): Handle OMP_CLAUSE_TILE.
7869         * tree.h (OMP_TILE_LIST): New macro.
7871 2015-11-05  Martin Sebor  <msebor@redhat.com>
7873         PR c++/67942
7874         * doc/invoke.texi (-Wplacement-new): Document new option.
7876 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
7878         PR tree-optimization/65963
7879         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
7880         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
7882 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
7884         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
7885         (noce_convert_multiple_sets): Likewise.
7886         (noce_process_if_block): Call them.
7888 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
7890         * gimple-fold.c: Include omp-low.h.
7891         (fold_internal_goacc_dim): New.
7892         (gimple_fold_call): Call it.
7894 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
7895             Ilya Verbin  <ilya.verbin@intel.com>
7897         * builtin-types.def
7898         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
7899         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
7900         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
7901         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
7902         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
7903         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
7904         (struct cgraph_simd_clone_arg): Adjust comment.
7905         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
7906         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
7907         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
7908         to GOMP_target_data_ext.
7909         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
7910         to GOMP_target_update_ext.
7911         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
7912         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
7913         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
7914         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
7915         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
7916         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
7917         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
7918         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
7919         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
7920         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
7921         * tree-core.h (enum omp_clause_schedule_kind): Add
7922         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
7923         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
7924         OMP_CLAUSE_SCHEDULE_LAST value.
7925         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
7926         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
7927         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
7928         OMP_FOR_CHECK.  Remove comment.
7929         * tree-pretty-print.c (dump_omp_clause): Handle
7930         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
7931         Simplify.  Print schedule clause modifiers.
7932         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
7933         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
7934         cases.
7935         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
7936         (omp_default_clause): Tweak for
7937         private/firstprivate/is_device_ptr variables on target
7938         construct and use_device_ptr on target data.
7939         (omp_check_private): Likewise.
7940         (omp_notice_variable): For references check whether what it refers
7941         to has mappable type, rather than the reference itself.
7942         (omp_is_private): Diagnose linear iteration variables on non-simd
7943         constructs.
7944         (omp_no_lastprivate): Return true only for Fortran.
7945         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
7946         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
7947         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
7948         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
7949         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
7950         lastprivate and linear when combined with distribute.  Gimplify
7951         variable low-bound for array reduction.  Look through
7952         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
7953         reductions.
7954         (gimplify_adjust_omp_clauses_1): For implicit references to
7955         variables with reference type and when not ref to scalar or
7956         ref to pointer, map what they refer to using tofrom and
7957         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
7958         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
7959         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
7960         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
7961         Diagnose the same var on both firstprivate and lastprivate on
7962         distribute construct.
7963         (gimplify_omp_for): Fix up handling of predetermined
7964         lastprivate or linear iter vars when combined with distribute.
7965         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
7966         functions.
7967         (gimplify_omp_workshare): Call optimize_target_teams.
7968         * omp-low.c (struct omp_region): Add sched_modifiers field.
7969         (struct omp_for_data): Likewise.
7970         (omp_any_child_fn_dumped): New variable.
7971         (extract_omp_for_data): Fill in sched_modifiers, and mask out
7972         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
7973         from sched_kind.
7974         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
7975         bits of OMP_CLAUSE_SCHED_KIND.
7976         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
7977         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
7978         for array section reductions.
7979         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
7980         for distribute parallel for, if there are lastprivate clauses on the
7981         for.
7982         (lower_rec_input_clauses): Handle non-zero low-bound on array
7983         section reductions.
7984         (lower_reduction_clauses): Likewise.
7985         (lower_send_clauses): Look through POINTER_PLUS_EXPR
7986         for array section reductions.
7987         (expand_parallel_call): Use nonmonotonic entrypoints for
7988         nonmonotonic: dynamic/guided.
7989         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
7990         child_fn if current_function_decl has assembler name set, but child_fn
7991         does not.  Dump the header and IL of the child function when not in SSA
7992         form.
7993         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
7994         arguments to BUILT_IN_GOMP_TARGET.
7995         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
7996         Initialize the extra _looptemp_ clause to fd->loop.n2.
7997         (expand_omp_for): Use nonmonotonic entrypoints for
7998         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
7999         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
8000         again if we have dumped any child functions.
8001         (lower_omp_for_lastprivate): Determine the right count variable
8002         for distribute simd, or distribute parallel for{, simd}.
8003         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
8004         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
8005         support.
8006         (simd_clone_clauses_extract): Handle variable step
8007         for references and arguments passed by reference.
8008         (simd_clone_mangle): Mangle ref/uval/val variable steps.
8009         (simd_clone_adjust_argument_types): Handle
8010         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
8011         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
8012         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
8013         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
8014         (simd_clone_linear_addend): New function.
8015         (simd_clone_adjust): Handle variable step like similarly
8016         to constant step, use simd_clone_linear_addend to determine
8017         the actual step at runtime.
8019 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
8021         * target.def (goacc.dim_limit): New hook.
8022         * targhooks.h (default_goacc_dim_limit): Declare.
8023         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
8024         * doc/tm.texi: Rebuilt.
8025         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
8026         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
8027         (default_goacc_dim_limit): New.
8028         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
8029         (nvptx_goacc_dim_limit) New.
8030         (TARGET_GOACC_DIM_LIMIT): Override.
8031         * tree-vrp.c: Include omp-low.h, target.h.
8032         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
8033         IFN_GOACC_DIM_POS.
8035 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
8037         * tree-vect-generic.c (do_compare): Use -1 for true
8038         result instead of 1.
8040 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8042         * config/aarch64/aarch64.c
8043         (aarch64_can_use_per_function_literal_pools_p): New.
8044         (aarch64_use_blocks_for_constant_p): Adjust declaration
8045         and use aarch64_can_use_function_literal_pools_p.
8046         (aarch64_select_rtx_section): Update.
8048 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
8050         * targhooks.c (default_get_mask_mode): Use BLKmode in
8051         case target doesn't support required vector mode.
8052         * stor-layout.c (layout_type); Check for BLKmode.
8054 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
8055             Sebastian Pop  <s.pop@samsung.com>
8057         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
8058         Remove use of parameter_rename_map.
8059         (copy_def): Remove.
8060         (copy_internal_parameters): Remove.
8061         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
8062         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
8063         (free_sese_info): Do not free parameter_rename_map.
8064         (set_rename): Do not use parameter_rename_map.
8065         (rename_uses): Update call to set_rename.
8066         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
8067         * sese.h (parameter_rename_map_t): Remove.
8068         (struct sese_info_t): Remove field parameter_rename_map.
8070 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
8071             Sebastian Pop  <s.pop@samsung.com>
8073         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
8074         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
8075         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
8076         anonymous namespace.
8077         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
8078         (isl_id_for_pbb): Use a buffer of size 10.
8079         (isl_id_for_ssa_name): Same.
8080         * sese.c (set_rename): Add more dumps.
8082 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
8084         * omp-low.c (struct omp_context): Remove reduction_map field.
8085         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
8086         (new_omp_context, delete_omp_context, scan_omp_target): Remove
8087         reduction_map handling.
8088         (lower_omp_target): Remove obsolete openacc reduction handling.
8090 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
8092         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
8094 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
8095             Cesar Philippidis  <cesar@codesourcery.com>
8097         * config/nvptx/nvptx.c: Include gimple headers.
8098         (worker_red_size, worker_red_align, worker_red_name,
8099         worker_red_sym): New.
8100         (nvptx_option_override): Initialize worker reduction buffer.
8101         (nvptx_file_end): Write out worker reduction buffer var.
8102         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
8103         nvptx_expand_cmp_swap): New builtin expanders.
8104         (enum nvptx_builtins): New.
8105         (nvptx_builtin_decls): New.
8106         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
8107         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
8108         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
8109         nvptx_lockless_update): New helpers.
8110         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
8111         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
8112         (nvptx_goacc_reduction): New.
8113         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
8114         TARGET_BUILTIN_DECL): Override.
8115         (TARGET_GOACC_REDUCTION): Override.
8117 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
8118             Cesar Philippidis  <cesar@codesourcery.com>
8120         * internal-fn.def (GOACC_REDUCTION): New.
8121         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
8122         * internal-fn.c (expand_GOACC_REDUCTION): New.
8123         * target.def (goacc.reduction): New OpenACC hook.
8124         * targhooks.h (default_goacc_reduction): Declare.
8125         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
8126         * doc/tm.texi: Rebuilt.
8127         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
8128         scan_sharing_clauses): Remove oacc reduction handling here.
8129         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
8130         (oacc_lower_reduction_var_helper): Delete.
8131         (lower_oacc_reductions): New.
8132         (lower_reduction_clauses): Don't handle OpenACC reductions here.
8133         (lower_oacc_head_tail): Call lower_oacc_reductions.
8134         (oacc_gimple_assign, oacc_init_reduction_array,
8135         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
8136         oacc_process_reduction_data): Delete.
8137         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
8138         dummy OpenACC gang reduction for reductions at outer level.
8139         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
8140         (default_goacc_reduction): New.
8141         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
8143 2015-11-04  Martin Liska  <mliska@suse.cz>
8145         * cgraphunit.c (cgraph_node::expand_thunk): Call
8146         allocate_struct_function before init_function_start.
8147         (cgraph_node::expand): Use push_cfun and pop_cfun.
8148         * config/i386/i386.c (ix86_code_end): Call
8149         allocate_struct_function before init_function_start.
8150         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
8151         * function.c (init_function_start): Move preamble to all
8152         callers.
8153         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
8154         (execute_one_pass): Handle newly added TODO_discard_function.
8155         (execute_pass_list_1): Terminate if cfun equals to NULL.
8156         (execute_pass_list): Do not push and pop cfun, expect that
8157         cfun is set.
8158         * tree-pass.h (TODO_discard_function): Define.
8160 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
8162         * cfganal.c (inverted_post_order_compute): Remove conditional
8163         compilation, use flag_checking.
8164         * config.in: Regenerate.
8165         * configure: Regenerate.
8166         * configure.ac: Remove ENABLE_CHECKING.
8167         * genconditions.c: Do not #undef ENABLE_CHECKING.
8168         * sese.h (bb_in_region): Comment out broken check.
8169         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
8170         conditional compilation, use flag_checking.
8172 2015-11-04  Tom de Vries  <tom@codesourcery.com>
8174         PR tree-optimization/67742
8175         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
8176         field.
8177         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
8178         (create_variable_info_for_1): Add and handle handle_param parameter.
8179         Add restrict handling.
8180         (create_variable_info_for): Call create_variable_info_for_1 with extra
8181         arg.
8182         (make_param_constraints): Drop restrict_name parameter.  Ignore
8183         vi->only_restrict_pointers.
8184         (intra_create_variable_infos): Call create_variable_info_for_1 with
8185         extra arg.  Remove restrict handling.  Call make_param_constraints with
8186         one fewer arg.
8188 2015-11-04  Tom de Vries  <tom@codesourcery.com>
8190         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
8191         variable.
8193 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8195         * config/arm/coff.h: Remove.
8197 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
8199         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
8200         check for aggregate types and beef up comment for mode check.
8202 2015-11-03  Richard Biener  <rguenther@suse.de>
8204         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
8205         data references here.
8206         * tree-vect-loop.c: Include cgraph.h.
8207         (vect_analyze_loop_2): Collect data references here.
8208         * tree-vect-slp.c (find_bb_location): Inline ...
8209         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
8210         Factor in vect_slp_transform_bb.
8211         (vect_slp_transform_bb): Removed.
8212         (vect_slp_analyze_bb_1): Collect data references here.
8213         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
8214         vect_slp_bb.
8215         * tree-vectorizer.h (vect_slp_bb): Declare.
8216         (vect_slp_analyze_bb): Remove.
8217         (vect_slp_transform_bb): Remove.
8218         (find_bb_location): Remove.
8219         (vect_analyze_data_refs): Remove stmt count reference parameter.
8221 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
8223         * multiple_target.c (create_dispatcher_calls): Add target check
8224         on ifunc.
8225         (create_target_clone): Change assembler name for versioned declarations.
8227 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
8228             Chung-Lin Tang  <cltang@codesourcery.com>
8230         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
8231         * omp-low.c (check_omp_nesting_restrictions): Allow
8232         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
8233         contexts.
8235 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
8237         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
8238         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
8239         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
8240         builtin.
8241         (vmulxq_f32): Likewise.
8242         (vmulx_f64): New.
8243         (vmulxq_f64): Rewrite to call fmulx builtin.
8244         (vmulxs_f32): Likewise.
8245         (vmulxd_f64): Likewise.
8246         (vmulx_lane_f32): Remove.
8247         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
8249 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
8251         * config/aarch64/aarch64.md (*movhf_aarch64): Use
8252         aarch64_reg_or_fp_zero for second operand.
8254 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
8256         * gimple-expr.c: Include hash-set.h and rtl.h.
8257         (mark_addressable_queue): New var.
8258         (mark_addressable): Factor actual marking into...
8259         (mark_addressable_1): ... this.  Queue it up during expand.
8260         (mark_addressable_2): New.
8261         (flush_mark_addressable_queue): New.
8262         * gimple-expr.h (flush_mark_addressable_queue): Declare.
8263         * cfgexpand.c: Include gimple-expr.h.
8264         (pass_expand::execute): Flush mark_addressable queue.
8266 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
8268         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
8269         bb_no_side_effects_p tests...
8270         (tree_ssa_ifcombine_bb): ... here.
8272         PR tree-optimization/68083
8273         * tree-ssa-ifcombine.c: Include tree-ssa.h.
8274         (bb_no_side_effects_p): Test for undefined uses too.
8275         * tree-ssa.c (gimple_uses_undefined_value_p): New.
8276         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
8278 2015-11-02  Jeff Law <law@redhat.com>
8280         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
8281         cases where the loop latch edge is in the middle of an FSM path.
8283 2015-11-03  Tom de Vries  <tom@codesourcery.com>
8285         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
8286         (make_param_constraints): ... this.  Add and handle restrict_name
8287         parameter.  Handle is_full_var case.
8288         (intra_create_variable_infos): Use make_param_constraints.
8290 2015-11-03  Tom de Vries  <tom@codesourcery.com>
8292         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
8293         make_copy_constraint call with make_constraint_from call.
8295 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
8297         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
8298         PIE executables.
8300 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
8302         * builtins.h (fold_fma): Move to fold-const-call.h.
8303         * builtins.c: Include fold-const-call.h.
8304         (mathfn_built_in_2): New function, split out from...
8305         (mathfn_built_in_1): ...here.
8306         (do_real_to_int_conversion, fold_const_builtin_pow)
8307         (fold_const_builtin_logb, fold_const_builtin_significand)
8308         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
8309         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
8310         (fold_builtin_sincos): Use fold_const_call to handle constants.
8311         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
8312         checks for ERROR_MARK.  Use fold_const_call to handle constant
8313         folds for math functions.
8314         (fold_fma): Move to fold-const-call.c.
8315         * fold-const.c: Include fold-const-call.h.
8316         * Makefile.in (OBJS): Add fold-const-call.o.
8317         (PLUGIN_HEADERS): Add fold-const-call.h.
8318         * realmpfr.h (real_from_mpfr): Allow the format to be specified
8319         directly.
8320         * realmpfr.c (real_from_mpfr): Likewise.
8321         * fold-const-call.h, fold-const-call.c: New files.
8323 2015-11-02  Julian Brown  <julian@codesourcery.com>
8325         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
8326         brackets and semicolon.
8328 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
8330         Revert:
8331         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
8333         PR tree-optimization/65963
8334         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
8335         LSHIFT_EXPRs as equivalent MULT_EXPRs.
8337 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
8339         PR middle-end/68166
8340         * fold-const.c: Include "md5.h".
8342 2015-11-01  Jeff Law <law@redhat.com>
8344         * vmsdbgout.c: Revert unused header file reduction patch.
8346         * config/mcore/mcore.c: Include regs.h.
8348 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
8350         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
8352 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
8354         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
8355         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
8356         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
8358 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
8360         * ggc-common.c: Restore needed header for checking=release.
8362 2015-10-31  Tom de Vries  <tom@codesourcery.com>
8364         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
8366 2015-10-31  Tom de Vries  <tom@codesourcery.com>
8368         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
8369         existing varinfo for arguments.
8371 2015-10-31  Tom de Vries  <tom@codesourcery.com>
8373         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
8374         create_function_info_for.  Dump constraints generated during
8375         create_function_info_for. Move intra_create_variable_infos call and
8376         function-return-values-escape bit to ...
8377         (create_function_info_for): ... here, and merge
8378         intra_create_variable_infos call with argument loop.  Add and handle
8379         nonlocal_p parameter.
8381 2015-10-31  Tom de Vries  <tom@codesourcery.com>
8383         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
8384         updating is alap, and seperated from preceding code.  Make sure
8385         insert_vi_for_tree is seperated from surrounding code.
8387 2015-10-31  Tom de Vries  <tom@codesourcery.com>
8389         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
8391 2015-10-30  Jeff Law <law@redhat.com>
8392             Nathan Sidwell  <nathan@acm.org>
8394         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
8395         args.
8396         (MOVE_MAX): Set to 8.
8398 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
8400         * cgraph.c: Include context.h for offloading.
8401         * varpool.c: Include context.h and omp-low.h.
8403 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
8405         * rtl.h (contains_symbol_ref_p): Declare.
8406         (SYMBOL_REF_P): Define.
8407         * rtlanal.c (contains_symbol_ref_p: New function.
8408         * lra-constraints.c (contains_symbol_ref_p): Remove.
8409         * var-tracking.c (contains_symbol_ref): Remove.
8410         (track_expr_p): Use contains_symbol_ref_p instead of
8411         contains_symbol_ref.
8413 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
8415         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
8416         * fold-const.c (get_array_ctor_element_at_index): New.
8417         (fold): Remove binary-search through CONSTRUCTOR, call previous.
8419         * fold-const.h (get_array_ctor_element_at_index): New.
8421 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
8423         * Makefile.in (OBJS): Add multiple_target.o.
8424         * attrib.c (make_attribute): Moved from config/i386/i386.c
8425         * config/i386/i386.c (make_attribute): Deleted.
8426         * multiple_target.c (create_dispatcher_calls): New.
8427         (get_attr_len): Ditto.
8428         (get_attr_str): Ditto.
8429         (separate_attrs): Ditto.
8430         (is_valid_asm_symbol): Ditto.
8431         (create_new_asm_name): Ditto.
8432         (create_target_clone): Ditto.
8433         (expand_target_clones): Ditto.
8434         (ipa_target_clone): Ditto.
8435         (ipa_dispatcher_calls): Ditto.
8436         * passes.def (pass_target_clone): Two new ipa passes.
8437         * tree-pass.h (make_pass_target_clone): Ditto.
8438         * doc/extend.texi (target_clones): New attribute description.
8440 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
8442         PR rtl-optimization/68106
8443         * lra-remat.c (input_regno_present_p): Process hard regs
8444         explicitly present in machine description insns.
8445         (call_used_input_regno_present_p): Ditto.
8446         (calculate_gen_cands): Ditto.
8447         (do_remat): Ditto.
8449 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
8451         * config/arm/neon-testgen.ml: Fix comment typo.
8453 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8455         * rtlanal.c (reg_set_p): Expand function comment.
8457 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
8459         * alias.c: Remove unused headers.
8460         * asan.c: Likewise.
8461         * attribs.c: Likewise.
8462         * auto-inc-dec.c: Likewise.
8463         * auto-profile.c: Likewise.
8464         * bb-reorder.c: Likewise.
8465         * bitmap.c: Likewise.
8466         * bt-load.c: Likewise.
8467         * builtins.c: Likewise.
8468         * caller-save.c: Likewise.
8469         * calls.c: Likewise.
8470         * ccmp.c: Likewise.
8471         * cfg.c: Likewise.
8472         * cfganal.c: Likewise.
8473         * cfgbuild.c: Likewise.
8474         * cfgcleanup.c: Likewise.
8475         * cfgexpand.c: Likewise.
8476         * cfghooks.c: Likewise.
8477         * cfgloop.c: Likewise.
8478         * cfgloopanal.c: Likewise.
8479         * cfgloopmanip.c: Likewise.
8480         * cfgrtl.c: Likewise.
8481         * cgraph.c: Likewise.
8482         * cgraphbuild.c: Likewise.
8483         * cgraphclones.c: Likewise.
8484         * cgraphunit.c: Likewise.
8485         * cilk-common.c: Likewise.
8486         * combine-stack-adj.c: Likewise.
8487         * combine.c: Likewise.
8488         * compare-elim.c: Likewise.
8489         * convert.c: Likewise.
8490         * coverage.c: Likewise.
8491         * cppbuiltin.c: Likewise.
8492         * cprop.c: Likewise.
8493         * cse.c: Likewise.
8494         * cselib.c: Likewise.
8495         * data-streamer-in.c: Likewise.
8496         * data-streamer-out.c: Likewise.
8497         * data-streamer.c: Likewise.
8498         * dbxout.c: Likewise.
8499         * dce.c: Likewise.
8500         * ddg.c: Likewise.
8501         * debug.c: Likewise.
8502         * df-core.c: Likewise.
8503         * df-problems.c: Likewise.
8504         * df-scan.c: Likewise.
8505         * dfp.c: Likewise.
8506         * dojump.c: Likewise.
8507         * dominance.c: Likewise.
8508         * domwalk.c: Likewise.
8509         * double-int.c: Likewise.
8510         * dse.c: Likewise.
8511         * dumpfile.c: Likewise.
8512         * dwarf2asm.c: Likewise.
8513         * dwarf2cfi.c: Likewise.
8514         * dwarf2out.c: Likewise.
8515         * emit-rtl.c: Likewise.
8516         * except.c: Likewise.
8517         * explow.c: Likewise.
8518         * expmed.c: Likewise.
8519         * expr.c: Likewise.
8520         * final.c: Likewise.
8521         * fixed-value.c: Likewise.
8522         * fold-const.c: Likewise.
8523         * function.c: Likewise.
8524         * fwprop.c: Likewise.
8525         * gcse.c: Likewise.
8526         * generic-match-head.c: Likewise.
8527         * ggc-common.c: Likewise.
8528         * gimple-builder.c: Likewise.
8529         * gimple-expr.c: Likewise.
8530         * gimple-fold.c: Likewise.
8531         * gimple-iterator.c: Likewise.
8532         * gimple-low.c: Likewise.
8533         * gimple-match-head.c: Likewise.
8534         * gimple-pretty-print.c: Likewise.
8535         * gimple-ssa-isolate-paths.c: Likewise.
8536         * gimple-ssa-strength-reduction.c: Likewise.
8537         * gimple-streamer-in.c: Likewise.
8538         * gimple-streamer-out.c: Likewise.
8539         * gimple-walk.c: Likewise.
8540         * gimple.c: Likewise.
8541         * gimplify-me.c: Likewise.
8542         * gimplify.c: Likewise.
8543         * godump.c: Likewise.
8544         * graph.c: Likewise.
8545         * graphds.c: Likewise.
8546         * haifa-sched.c: Likewise.
8547         * hw-doloop.c: Likewise.
8548         * ifcvt.c: Likewise.
8549         * init-regs.c: Likewise.
8550         * internal-fn.c: Likewise.
8551         * ipa-chkp.c: Likewise.
8552         * ipa-comdats.c: Likewise.
8553         * ipa-cp.c: Likewise.
8554         * ipa-devirt.c: Likewise.
8555         * ipa-icf-gimple.c: Likewise.
8556         * ipa-icf.c: Likewise.
8557         * ipa-inline-analysis.c: Likewise.
8558         * ipa-inline-transform.c: Likewise.
8559         * ipa-inline.c: Likewise.
8560         * ipa-polymorphic-call.c: Likewise.
8561         * ipa-profile.c: Likewise.
8562         * ipa-prop.c: Likewise.
8563         * ipa-pure-const.c: Likewise.
8564         * ipa-ref.c: Likewise.
8565         * ipa-reference.c: Likewise.
8566         * ipa-split.c: Likewise.
8567         * ipa-utils.c: Likewise.
8568         * ipa-visibility.c: Likewise.
8569         * ipa.c: Likewise.
8570         * ira-build.c: Likewise.
8571         * ira-color.c: Likewise.
8572         * ira-conflicts.c: Likewise.
8573         * ira-costs.c: Likewise.
8574         * ira-emit.c: Likewise.
8575         * ira-lives.c: Likewise.
8576         * ira.c: Likewise.
8577         * jump.c: Likewise.
8578         * langhooks.c: Likewise.
8579         * lcm.c: Likewise.
8580         * lists.c: Likewise.
8581         * loop-doloop.c: Likewise.
8582         * loop-init.c: Likewise.
8583         * loop-invariant.c: Likewise.
8584         * loop-iv.c: Likewise.
8585         * loop-unroll.c: Likewise.
8586         * lower-subreg.c: Likewise.
8587         * lra-assigns.c: Likewise.
8588         * lra-coalesce.c: Likewise.
8589         * lra-constraints.c: Likewise.
8590         * lra-eliminations.c: Likewise.
8591         * lra-lives.c: Likewise.
8592         * lra-remat.c: Likewise.
8593         * lra-spills.c: Likewise.
8594         * lra.c: Likewise.
8595         * lto-cgraph.c: Likewise.
8596         * lto-compress.c: Likewise.
8597         * lto-opts.c: Likewise.
8598         * lto-section-in.c: Likewise.
8599         * lto-section-out.c: Likewise.
8600         * lto-streamer-in.c: Likewise.
8601         * lto-streamer-out.c: Likewise.
8602         * lto-streamer.c: Likewise.
8603         * mcf.c: Likewise.
8604         * mode-switching.c: Likewise.
8605         * modulo-sched.c: Likewise.
8606         * optabs.c: Likewise.
8607         * opts-global.c: Likewise.
8608         * passes.c: Likewise.
8609         * plugin.c: Likewise.
8610         * postreload-gcse.c: Likewise.
8611         * postreload.c: Likewise.
8612         * predict.c: Likewise.
8613         * print-tree.c: Likewise.
8614         * profile.c: Likewise.
8615         * real.c: Likewise.
8616         * realmpfr.c: Likewise.
8617         * recog.c: Likewise.
8618         * ree.c: Likewise.
8619         * reg-stack.c: Likewise.
8620         * regcprop.c: Likewise.
8621         * reginfo.c: Likewise.
8622         * regrename.c: Likewise.
8623         * regstat.c: Likewise.
8624         * reload.c: Likewise.
8625         * reload1.c: Likewise.
8626         * reorg.c: Likewise.
8627         * resource.c: Likewise.
8628         * rtl-chkp.c: Likewise.
8629         * rtl-error.c: Likewise.
8630         * rtlanal.c: Likewise.
8631         * rtlhooks.c: Likewise.
8632         * sanopt.c: Likewise.
8633         * sched-deps.c: Likewise.
8634         * sched-ebb.c: Likewise.
8635         * sched-rgn.c: Likewise.
8636         * sdbout.c: Likewise.
8637         * sel-sched-dump.c: Likewise.
8638         * sel-sched-ir.c: Likewise.
8639         * sel-sched.c: Likewise.
8640         * sese.c: Likewise.
8641         * shrink-wrap.c: Likewise.
8642         * simplify-rtx.c: Likewise.
8643         * stack-ptr-mod.c: Likewise.
8644         * statistics.c: Likewise.
8645         * stmt.c: Likewise.
8646         * stor-layout.c: Likewise.
8647         * store-motion.c: Likewise.
8648         * stringpool.c: Likewise.
8649         * symtab.c: Likewise.
8650         * target-globals.c: Likewise.
8651         * targhooks.c: Likewise.
8652         * toplev.c: Likewise.
8653         * tracer.c: Likewise.
8654         * trans-mem.c: Likewise.
8655         * tree-affine.c: Likewise.
8656         * tree-call-cdce.c: Likewise.
8657         * tree-cfg.c: Likewise.
8658         * tree-cfgcleanup.c: Likewise.
8659         * tree-chkp-opt.c: Likewise.
8660         * tree-chkp.c: Likewise.
8661         * tree-chrec.c: Likewise.
8662         * tree-complex.c: Likewise.
8663         * tree-data-ref.c: Likewise.
8664         * tree-dfa.c: Likewise.
8665         * tree-diagnostic.c: Likewise.
8666         * tree-dump.c: Likewise.
8667         * tree-eh.c: Likewise.
8668         * tree-emutls.c: Likewise.
8669         * tree-if-conv.c: Likewise.
8670         * tree-inline.c: Likewise.
8671         * tree-into-ssa.c: Likewise.
8672         * tree-iterator.c: Likewise.
8673         * tree-loop-distribution.c: Likewise.
8674         * tree-nested.c: Likewise.
8675         * tree-nrv.c: Likewise.
8676         * tree-object-size.c: Likewise.
8677         * tree-outof-ssa.c: Likewise.
8678         * tree-parloops.c: Likewise.
8679         * tree-phinodes.c: Likewise.
8680         * tree-predcom.c: Likewise.
8681         * tree-pretty-print.c: Likewise.
8682         * tree-profile.c: Likewise.
8683         * tree-scalar-evolution.c: Likewise.
8684         * tree-sra.c: Likewise.
8685         * tree-ssa-address.c: Likewise.
8686         * tree-ssa-alias.c: Likewise.
8687         * tree-ssa-ccp.c: Likewise.
8688         * tree-ssa-coalesce.c: Likewise.
8689         * tree-ssa-copy.c: Likewise.
8690         * tree-ssa-dce.c: Likewise.
8691         * tree-ssa-dse.c: Likewise.
8692         * tree-ssa-forwprop.c: Likewise.
8693         * tree-ssa-ifcombine.c: Likewise.
8694         * tree-ssa-live.c: Likewise.
8695         * tree-ssa-loop-ch.c: Likewise.
8696         * tree-ssa-loop-im.c: Likewise.
8697         * tree-ssa-loop-ivcanon.c: Likewise.
8698         * tree-ssa-loop-ivopts.c: Likewise.
8699         * tree-ssa-loop-manip.c: Likewise.
8700         * tree-ssa-loop-niter.c: Likewise.
8701         * tree-ssa-loop-prefetch.c: Likewise.
8702         * tree-ssa-loop-unswitch.c: Likewise.
8703         * tree-ssa-loop.c: Likewise.
8704         * tree-ssa-math-opts.c: Likewise.
8705         * tree-ssa-operands.c: Likewise.
8706         * tree-ssa-phiopt.c: Likewise.
8707         * tree-ssa-phiprop.c: Likewise.
8708         * tree-ssa-pre.c: Likewise.
8709         * tree-ssa-propagate.c: Likewise.
8710         * tree-ssa-reassoc.c: Likewise.
8711         * tree-ssa-scopedtables.c: Likewise.
8712         * tree-ssa-sink.c: Likewise.
8713         * tree-ssa-strlen.c: Likewise.
8714         * tree-ssa-structalias.c: Likewise.
8715         * tree-ssa-tail-merge.c: Likewise.
8716         * tree-ssa-ter.c: Likewise.
8717         * tree-ssa-threadupdate.c: Likewise.
8718         * tree-ssa-uncprop.c: Likewise.
8719         * tree-ssa-uninit.c: Likewise.
8720         * tree-ssa.c: Likewise.
8721         * tree-ssanames.c: Likewise.
8722         * tree-stdarg.c: Likewise.
8723         * tree-streamer-in.c: Likewise.
8724         * tree-streamer-out.c: Likewise.
8725         * tree-streamer.c: Likewise.
8726         * tree-switch-conversion.c: Likewise.
8727         * tree-tailcall.c: Likewise.
8728         * tree-vect-data-refs.c: Likewise.
8729         * tree-vect-generic.c: Likewise.
8730         * tree-vect-loop-manip.c: Likewise.
8731         * tree-vect-loop.c: Likewise.
8732         * tree-vect-patterns.c: Likewise.
8733         * tree-vect-slp.c: Likewise.
8734         * tree-vect-stmts.c: Likewise.
8735         * tree-vectorizer.c: Likewise.
8736         * tree-vrp.c: Likewise.
8737         * tree.c: Likewise.
8738         * tsan.c: Likewise.
8739         * ubsan.c: Likewise.
8740         * value-prof.c: Likewise.
8741         * var-tracking.c: Likewise.
8742         * varasm.c: Likewise.
8743         * varpool.c: Likewise.
8744         * vmsdbgout.c: Likewise.
8745         * vtable-verify.c: Likewise.
8746         * web.c: Likewise.
8747         * wide-int-print.cc: Likewise.
8748         * wide-int.cc: Likewise.
8749         * xcoffout.c: Likewise.
8751 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
8753         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
8754         between pass numbering and execution order.
8756 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8758         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
8759         check for dependencies.
8761 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
8763         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
8764         CDI_DOMINATORS.
8766 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
8768         * real.h (format_helper): New.
8769         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
8770         (real_from_target, real_nan, real_2expN, real_value_truncate)
8771         (significand_size, real_from_string2, exact_real_inverse)
8772         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
8773         (real_round, real_isinteger, real_from_integer): Replace
8774         machine_mode arguments with format_helper arguments.
8775         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
8776         (real_from_integer, real_nan, real_2expN, real_convert)
8777         (real_value_truncate, exact_real_truncate, real_to_target)
8778         (real_from_target, significand_size, real_powi, real_trunc)
8779         (real_floor, real_ceil, real_round, real_isinteger): Replace
8780         machine_mode arguments with format_helper arguments.
8781         (real_to_target_fmt, real_from_target_fmt): Delete.
8782         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
8783         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
8784         argument with real_format.
8785         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
8787 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
8789         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
8790         (fixed_to_decimal, fixed_convert_from_real)
8791         (real_convert_from_fixed): Fix mode arguments to real_2expN.
8793 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
8795         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
8796         SCALAR_FLOAT_MODE_P.
8798 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
8800         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
8801         (completely_scalarize): Comment zero-length arrays.
8802         (get_access_replacement): Correct comment re. precondition.
8804 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
8806         * config/i386/i386.c (get_builtin_code_for_version): Set priority
8807         for PROCESSOR_ZNVER1.
8808         (enum processor_model): Add M_AMDFAM17H_znver1.
8809         (struct arch_names_table): Likewise.
8810         * doc/extend.texi: ADD znver1.
8812 2015-10-30  Richard Biener  <rguenther@suse.de>
8814         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
8815         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
8816         zeros to be folded to VECTOR_CSTs.
8817         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
8818         * fold-const.c (fold): Use build_vector_from_ctor.
8820 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
8822         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
8823         "mov %0.h[0], %1.h[0] to "neon_move".
8824         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
8825         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
8826         "mov_imm".
8827         (*cmovsi_insn_uxtw): Likewise.
8829 2015-10-30  Tom de Vries  <tom@codesourcery.com>
8831         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
8832         unsigned, and initialize, and use initial value instead of hardcoded
8833         constant.  Add generic constraints dumping section.  Don't dump global
8834         initializers constraints dumping section if empty.  Don't update
8835         variable from if unused.
8837 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
8839         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
8840         flag_checking and/or CHECKING_P to eliminate conditional compilation
8841         on ENABLE_CHECKING.
8842         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
8843         * config/bfin/bfin.c (hwloop_optimize): Likewise.
8844         * config/i386/i386.c (ix86_print_operand_address): Likewise.
8845         (output_387_binary_op): Likewise.
8846         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
8847         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
8848         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
8849         Likewise.
8850         * config/rs6000/rs6000.h: Likewise.
8851         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
8853 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
8855         * config/sh/sh.opt (mfdpic): Add missing period.
8857 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
8859         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8860         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
8861         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8862         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
8863         mcore_base_register_rtx_p, mcore_legitimate_index_p,
8864         mcore_legitimate_address_p): New functions.
8865         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
8867 2015-10-29  Jeff Law  <law@redhat.com>
8869         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
8870         method.
8871         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
8872         * tree-ssa-threadedge.c
8873         (record_temporary_equivalences_from_stmts_at_dest): Remove
8874         backedge_seen argument and associated code which invalidated
8875         equivalences based on the value of that argument.
8876         (thread_through_normal_block): Corresponding changes.
8878 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
8880         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
8881         function earlier in the file.
8882         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
8883         df_regs_ever_live_p.
8885 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
8887         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
8888         by ignoring it.
8890 2015-10-29  Richard Henderson  <rth@redhat.com>
8892         PR target/68124
8893         PR rtl-opt/67609
8894         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
8895         sse check to the exact conditions of PR 67609.
8897 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
8899         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
8900         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
8901         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
8902         of the traditional names that TFmode uses for handling IEEE
8903         extended double. If -mfloat128, add KFmode functions for all of
8904         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
8905         make TFmode use the same emulation functions as KFmode.
8906         (init_float128_ibm): Likewise.
8907         (init_float128_ieee): Likewise.
8908         (rs6000_generate_compare): For IEEE 128-bit floating point
8909         comparisons, call the unordered comparison function instead of the
8910         ordered comparison function.
8911         (rs6000_expand_float128_convert): Deal with operands that are
8912         memory operands. Restructure the code to use a switch statement on
8913         the mode. Add support for TFmode defaulting to either IBM extended
8914         double or IEEE 128-bit floating point. If the underlying types are
8915         the same, use a move instead of a conversion function.
8916         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
8917         use for IEEE 128-bit floating point constants with -mfloat128.
8918         (rs6000_c_mode_for_suffix): Likewise.
8919         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
8920         128-bit floating point with IBM extended double floating point.
8921         (rs6000_invalid_binary_op): Likewise.
8922         (rs6000_gen_le_vsx_permute): On little endian systems generate a
8923         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
8924         types that can go in vector registers.
8925         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
8926         point types that can go in vector registers on little endian
8927         PowerPC systems.
8928         (mark_swaps_for_removal): Likewise.
8929         (rs6000_analyze_swaps): Likewise.
8930         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
8932         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
8933         rework IEEE 128-bit floating point insns to deal with TFmode being
8934         either IBM extended double or IEEE 128-bit floating point.
8935         (IFKF): Likewise.
8936         (IBM128): Update iterator to add condition that the mode is IBM
8937         extended double.
8938         (IEEE128): New iterator for IEEE 128-bit floating point.
8939         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
8940         (FLOAT128): Likewise.
8941         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
8942         iterator.
8943         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
8944         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
8945         instead of hard coding TFmode or KFmode.
8946         (negtf2_internal): Likewise.
8947         (neg<mode>2_internal): Likewise.
8948         (abs<mode>2): Likewise.
8949         (abstf2_internal): Likewise.
8950         (abs<mode>2_internal): Likewise.
8951         (ieee_128bit_neg<mode>2): Likewise.
8952         (ieee_128bit_neg<mode>2_internal): Likewise.
8953         (ieee_128bit_abs<mode>2): Likewise.
8954         (ieee_128bit_abs<mode>2_internal): Likewise.
8955         (ieee_128bit_nabs<mode>2): Likewise.
8956         (ieee_128bit_nabs<mode>2_internal): Likewise.
8957         (extendiftf2): Add explicit conversions between 128-bit floating
8958         point types. Drop the old conversions that had become unwieldy.
8959         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
8960         (extendifkf2): Likewise.
8961         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
8962         (extendtfkf2): Likewise.
8963         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
8964         (trunciftf2): Likewise.
8965         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
8966         (truncifkf2): Likewise.
8967         (float<SDI:mode><IFKF:mode>2): Likewise.
8968         (trunckftf2): Likewise.
8969         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
8970         (trunctfif2): Likewise.
8971         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
8972         (extenddftf2): Rework 128-bit floating point conversions to
8973         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
8974         KFmode expanders into one function.
8975         (extenddf<mode>2): Likewise.
8976         (extenddftf2_fprs): Likewise.
8977         (extenddf<mode>2_fprs): Likewise.
8978         (extenddftf2_vsx): Likewise.
8979         (extenddf<mode>2_vsx): Likewise.
8980         (extendsftf2): Likewise.
8981         (extendsf<mode>2): Likewise.
8982         (trunctfdf2): Likewise.
8983         (trunc<mode>df2): Likewise.
8984         (trunctfdf2_internal1): Likewise.
8985         (trunc<mode>df2_internal1): Likewise.
8986         (trunctfdf2_internal2): Likewise.
8987         (trunc<mode>df2_internal2): Likewise.
8988         (trunctfsf2): Likewise.
8989         (trunc<mode>sf2): Likewise.
8990         (trunctfsf2_fprs): Likewise.
8991         (trunc<mode>sf2_fprs): Likewise.
8992         (floatsit2f): Likewise.
8993         (floatsi<mode>2): Likewise.
8994         (fix_trunc_helper): Likewise.
8995         (fix_trunc_helper<mode>): Likewise.
8996         (fix_trunctfsi2): Likewise.
8997         (fix_trunc<mode>si2): Likewise.
8998         (fix_trunctfsi2_fprs): Likewise.
8999         (fix_trunc<mode>si2_fprs): Likewise.
9000         (fix_trunctfsi2_internal): Likewise.
9001         (fix_trunc<mode>si2_internal): Likewise.
9002         (fix_trunctfdi2): Likewise.
9003         (fix_trunc<mode>di2): Likewise.
9004         (fixuns_trunctf<mode>2): Likewise.
9005         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
9006         (floatditf2): Likewise.
9007         (floatdi<mode>2): Likewise.
9008         (floatuns<mode>tf2): Likewise.
9009         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
9010         (cmptf_internal1): Use a mode iterator to add support for both
9011         types (IFmode, TFmode) that support IBM extended double.
9012         (cmp<mode>_internal1): Likewise.
9013         (cmptf_internal2): Likewise.
9014         (cmp<mode>_internal2): Likewise.
9016         * doc/extend.texi (Floating Types): Document __ibm128 and
9017         __float128 on PowerPC.
9019         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9020         -mfloat128 and -mno-float128.
9022 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
9024         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
9025         floating point modes that can go in vector registers.
9026         (MODES_TIEABLE_P): Move tests for vector modes before tests for
9027         scalar floating point, so that IEEE 128-bit floating point that
9028         can go in vector registers bind with vectors and not FP.
9029         (struct rs6000_args): Add libcall field.
9031         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
9032         and -mfloat128-software switches.  Replace them with a binary
9033         -mfloat128 switch.
9034         (-mfloat128): Likewise.
9036         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
9037         128-bit floating point types in GPRs, even if the appropriate
9038         option enabling the type was not used.
9039         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
9040         debugging.
9041         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
9042         pre-decrement on IEEE 128-bit floating point values.
9043         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
9044         is IEEE 128-bit floating point.
9045         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
9046         128-bit floating point types that can go in vector registers.
9047         (rs6000_option_override_internal): Change -mfloat128-none and
9048         -mfloat128-software to -mfloat128, and move code to be near other
9049         VSX option handling.
9050         (rs6000_option_override_internal): Disable -mfloat128 if we don't
9051         have the Altivec ABI.
9052         (rs6000_init_builtins): Don't make TFmode use either IFmode or
9053         KFmode floating point nodes. Instead, have three separate nodes.
9054         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
9055         eventually moving the long double default to IEEE 128-bit floating
9056         point.
9057         (rs6000_opt_masks): Add -mfloat128.
9058         (struct rs6000_opt_var): Fix typo in comment.
9059         (init_cumulative_args): Initialize libcall field in
9060         CUMULATIVE_ARGS.
9061         (rs6000_function_arg): Treat library functions as if they had
9062         prototypes to prevent IEEE 128-bit support functions from passing
9063         arguments in both GPRs and vector registers.
9064         (rs6000_arg_partial_bytes): Likewise.
9066         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
9067         an option that can be turned on via -mcpu=<xxx>.
9069         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
9070         longer used.
9072         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
9073         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
9074         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
9075         double is IBM extended double.
9077         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
9078         SUBREGs.
9080 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
9082         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
9083         * genconditions.c: Define CHECKING_P in the generated code.
9084         * genextract.c: Use flag_checking in insn_extract.
9085         * gengtype.c (main): Remove conditional compilation.
9086         * gengtype.h: Likewise.
9088 2015-10-29  Jeff Law  <law@redhat.com>
9090         PR tree-optimization/67892
9091         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
9092         in comment.
9093         (thread_through_normal_block): If we have seen a backedge, then
9094         do nothing.  No longer call find_jump_threads_backwards here.
9095         (thread_across_edge): Use find_jump_threads_backwards to find
9096         jump threads if the old style threader was not successful.
9097         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
9098         gsi_last_nondebug_bb.  Return NULL if the block does not end
9099         with a control statement.
9100         (find_jump_threads_backwards): Setup code moved here from
9101         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
9102         single edge argument instead of name & block.
9103         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
9104         prototype.
9106 2015-10-29  Tom de Vries  <tom@codesourcery.com>
9108         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
9109         types.
9111 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
9113         * omp-low.c (lower_omp_target): Remove unreachable code & merge
9114         ifs.
9116 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
9118         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
9120 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
9122         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
9123         guard_bb0 and use guard_bb throughout.
9125 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
9127         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
9128         unnecessary label.
9130 2015-10-29  Richard Biener  <rguenther@suse.de>
9132         PR middle-end/68142
9133         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
9134         overflow.
9136 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
9138         * alias.c: Reorder #include statements and remove duplicates.
9139         * asan.c: Likewise.
9140         * attribs.c: Likewise.
9141         * auto-inc-dec.c: Likewise.
9142         * auto-profile.c: Likewise.
9143         * bb-reorder.c: Likewise.
9144         * bt-load.c: Likewise.
9145         * builtins.c: Likewise.
9146         * caller-save.c: Likewise.
9147         * calls.c: Likewise.
9148         * ccmp.c: Likewise.
9149         * cfg.c: Likewise.
9150         * cfganal.c: Likewise.
9151         * cfgbuild.c: Likewise.
9152         * cfgcleanup.c: Likewise.
9153         * cfgexpand.c: Likewise.
9154         * cfghooks.c: Likewise.
9155         * cfgloop.c: Likewise.
9156         * cfgloopanal.c: Likewise.
9157         * cfgloopmanip.c: Likewise.
9158         * cfgrtl.c: Likewise.
9159         * cgraph.c: Likewise.
9160         * cgraphbuild.c: Likewise.
9161         * cgraphclones.c: Likewise.
9162         * cgraphunit.c: Likewise.
9163         * cilk-common.c: Likewise.
9164         * combine-stack-adj.c: Likewise.
9165         * combine.c: Likewise.
9166         * compare-elim.c: Likewise.
9167         * convert.c: Likewise.
9168         * coverage.c: Likewise.
9169         * cppbuiltin.c: Likewise.
9170         * cprop.c: Likewise.
9171         * cse.c: Likewise.
9172         * cselib.c: Likewise.
9173         * data-streamer-in.c: Likewise.
9174         * data-streamer-out.c: Likewise.
9175         * data-streamer.c: Likewise.
9176         * dbxout.c: Likewise.
9177         * dce.c: Likewise.
9178         * ddg.c: Likewise.
9179         * debug.c: Likewise.
9180         * df-core.c: Likewise.
9181         * df-problems.c: Likewise.
9182         * df-scan.c: Likewise.
9183         * dfp.c: Likewise.
9184         * dojump.c: Likewise.
9185         * dominance.c: Likewise.
9186         * double-int.c: Likewise.
9187         * dse.c: Likewise.
9188         * dumpfile.c: Likewise.
9189         * dwarf2asm.c: Likewise.
9190         * dwarf2cfi.c: Likewise.
9191         * dwarf2out.c: Likewise.
9192         * emit-rtl.c: Likewise.
9193         * except.c: Likewise.
9194         * explow.c: Likewise.
9195         * expmed.c: Likewise.
9196         * expr.c: Likewise.
9197         * final.c: Likewise.
9198         * fixed-value.c: Likewise.
9199         * fold-const.c: Likewise.
9200         * function.c: Likewise.
9201         * fwprop.c: Likewise.
9202         * gcse.c: Likewise.
9203         * generic-match-head.c: Likewise.
9204         * ggc-common.c: Likewise.
9205         * gimple-builder.c: Likewise.
9206         * gimple-expr.c: Likewise.
9207         * gimple-fold.c: Likewise.
9208         * gimple-iterator.c: Likewise.
9209         * gimple-low.c: Likewise.
9210         * gimple-match-head.c: Likewise.
9211         * gimple-pretty-print.c: Likewise.
9212         * gimple-ssa-isolate-paths.c: Likewise.
9213         * gimple-ssa-strength-reduction.c: Likewise.
9214         * gimple-streamer-in.c: Likewise.
9215         * gimple-streamer-out.c: Likewise.
9216         * gimple-walk.c: Likewise.
9217         * gimple.c: Likewise.
9218         * gimplify-me.c: Likewise.
9219         * gimplify.c: Likewise.
9220         * godump.c: Likewise.
9221         * graph.c: Likewise.
9222         * graphite-poly.c: Likewise.
9223         * haifa-sched.c: Likewise.
9224         * hw-doloop.c: Likewise.
9225         * ifcvt.c: Likewise.
9226         * incpath.c: Likewise.
9227         * init-regs.c: Likewise.
9228         * internal-fn.c: Likewise.
9229         * ipa-chkp.c: Likewise.
9230         * ipa-comdats.c: Likewise.
9231         * ipa-cp.c: Likewise.
9232         * ipa-devirt.c: Likewise.
9233         * ipa-icf-gimple.c: Likewise.
9234         * ipa-icf.c: Likewise.
9235         * ipa-inline-analysis.c: Likewise.
9236         * ipa-inline-transform.c: Likewise.
9237         * ipa-inline.c: Likewise.
9238         * ipa-polymorphic-call.c: Likewise.
9239         * ipa-profile.c: Likewise.
9240         * ipa-prop.c: Likewise.
9241         * ipa-pure-const.c: Likewise.
9242         * ipa-ref.c: Likewise.
9243         * ipa-reference.c: Likewise.
9244         * ipa-split.c: Likewise.
9245         * ipa-utils.c: Likewise.
9246         * ipa-visibility.c: Likewise.
9247         * ipa.c: Likewise.
9248         * ira-build.c: Likewise.
9249         * ira-color.c: Likewise.
9250         * ira-conflicts.c: Likewise.
9251         * ira-costs.c: Likewise.
9252         * ira-emit.c: Likewise.
9253         * ira-lives.c: Likewise.
9254         * ira.c: Likewise.
9255         * jump.c: Likewise.
9256         * langhooks.c: Likewise.
9257         * lcm.c: Likewise.
9258         * lists.c: Likewise.
9259         * loop-doloop.c: Likewise.
9260         * loop-init.c: Likewise.
9261         * loop-invariant.c: Likewise.
9262         * loop-iv.c: Likewise.
9263         * loop-unroll.c: Likewise.
9264         * lower-subreg.c: Likewise.
9265         * lra-assigns.c: Likewise.
9266         * lra-coalesce.c: Likewise.
9267         * lra-constraints.c: Likewise.
9268         * lra-eliminations.c: Likewise.
9269         * lra-lives.c: Likewise.
9270         * lra-remat.c: Likewise.
9271         * lra-spills.c: Likewise.
9272         * lra.c: Likewise.
9273         * lto-cgraph.c: Likewise.
9274         * lto-compress.c: Likewise.
9275         * lto-opts.c: Likewise.
9276         * lto-section-in.c: Likewise.
9277         * lto-section-out.c: Likewise.
9278         * lto-streamer-in.c: Likewise.
9279         * lto-streamer-out.c: Likewise.
9280         * lto-streamer.c: Likewise.
9281         * mode-switching.c: Likewise.
9282         * modulo-sched.c: Likewise.
9283         * omp-low.c: Likewise.
9284         * optabs.c: Likewise.
9285         * opts-global.c: Likewise.
9286         * passes.c: Likewise.
9287         * plugin.c: Likewise.
9288         * postreload-gcse.c: Likewise.
9289         * postreload.c: Likewise.
9290         * predict.c: Likewise.
9291         * print-tree.c: Likewise.
9292         * profile.c: Likewise.
9293         * real.c: Likewise.
9294         * realmpfr.c: Likewise.
9295         * recog.c: Likewise.
9296         * ree.c: Likewise.
9297         * reg-stack.c: Likewise.
9298         * regcprop.c: Likewise.
9299         * reginfo.c: Likewise.
9300         * regrename.c: Likewise.
9301         * regstat.c: Likewise.
9302         * reload.c: Likewise.
9303         * reload1.c: Likewise.
9304         * reorg.c: Likewise.
9305         * resource.c: Likewise.
9306         * rtl-chkp.c: Likewise.
9307         * rtl-error.c: Likewise.
9308         * rtlanal.c: Likewise.
9309         * rtlhooks.c: Likewise.
9310         * sanopt.c: Likewise.
9311         * sched-deps.c: Likewise.
9312         * sched-ebb.c: Likewise.
9313         * sched-rgn.c: Likewise.
9314         * sese.c: Likewise.
9315         * shrink-wrap.c: Likewise.
9316         * simplify-rtx.c: Likewise.
9317         * stack-ptr-mod.c: Likewise.
9318         * statistics.c: Likewise.
9319         * stmt.c: Likewise.
9320         * stor-layout.c: Likewise.
9321         * store-motion.c: Likewise.
9322         * stringpool.c: Likewise.
9323         * symtab.c: Likewise.
9324         * target-globals.c: Likewise.
9325         * targhooks.c: Likewise.
9326         * toplev.c: Likewise.
9327         * tracer.c: Likewise.
9328         * trans-mem.c: Likewise.
9329         * tree-affine.c: Likewise.
9330         * tree-call-cdce.c: Likewise.
9331         * tree-cfg.c: Likewise.
9332         * tree-cfgcleanup.c: Likewise.
9333         * tree-chkp-opt.c: Likewise.
9334         * tree-chkp.c: Likewise.
9335         * tree-chrec.c: Likewise.
9336         * tree-complex.c: Likewise.
9337         * tree-data-ref.c: Likewise.
9338         * tree-dfa.c: Likewise.
9339         * tree-diagnostic.c: Likewise.
9340         * tree-dump.c: Likewise.
9341         * tree-eh.c: Likewise.
9342         * tree-emutls.c: Likewise.
9343         * tree-if-conv.c: Likewise.
9344         * tree-inline.c: Likewise.
9345         * tree-into-ssa.c: Likewise.
9346         * tree-iterator.c: Likewise.
9347         * tree-loop-distribution.c: Likewise.
9348         * tree-nested.c: Likewise.
9349         * tree-nrv.c: Likewise.
9350         * tree-object-size.c: Likewise.
9351         * tree-outof-ssa.c: Likewise.
9352         * tree-parloops.c: Likewise.
9353         * tree-phinodes.c: Likewise.
9354         * tree-predcom.c: Likewise.
9355         * tree-pretty-print.c: Likewise.
9356         * tree-profile.c: Likewise.
9357         * tree-scalar-evolution.c: Likewise.
9358         * tree-sra.c: Likewise.
9359         * tree-ssa-address.c: Likewise.
9360         * tree-ssa-alias.c: Likewise.
9361         * tree-ssa-ccp.c: Likewise.
9362         * tree-ssa-coalesce.c: Likewise.
9363         * tree-ssa-copy.c: Likewise.
9364         * tree-ssa-dce.c: Likewise.
9365         * tree-ssa-dom.c: Likewise.
9366         * tree-ssa-dse.c: Likewise.
9367         * tree-ssa-forwprop.c: Likewise.
9368         * tree-ssa-ifcombine.c: Likewise.
9369         * tree-ssa-live.c: Likewise.
9370         * tree-ssa-loop-ch.c: Likewise.
9371         * tree-ssa-loop-im.c: Likewise.
9372         * tree-ssa-loop-ivcanon.c: Likewise.
9373         * tree-ssa-loop-ivopts.c: Likewise.
9374         * tree-ssa-loop-manip.c: Likewise.
9375         * tree-ssa-loop-niter.c: Likewise.
9376         * tree-ssa-loop-prefetch.c: Likewise.
9377         * tree-ssa-loop-unswitch.c: Likewise.
9378         * tree-ssa-loop.c: Likewise.
9379         * tree-ssa-math-opts.c: Likewise.
9380         * tree-ssa-operands.c: Likewise.
9381         * tree-ssa-phiopt.c: Likewise.
9382         * tree-ssa-phiprop.c: Likewise.
9383         * tree-ssa-pre.c: Likewise.
9384         * tree-ssa-propagate.c: Likewise.
9385         * tree-ssa-reassoc.c: Likewise.
9386         * tree-ssa-sccvn.c: Likewise.
9387         * tree-ssa-scopedtables.c: Likewise.
9388         * tree-ssa-sink.c: Likewise.
9389         * tree-ssa-strlen.c: Likewise.
9390         * tree-ssa-structalias.c: Likewise.
9391         * tree-ssa-tail-merge.c: Likewise.
9392         * tree-ssa-ter.c: Likewise.
9393         * tree-ssa-threadedge.c: Likewise.
9394         * tree-ssa-threadupdate.c: Likewise.
9395         * tree-ssa-uncprop.c: Likewise.
9396         * tree-ssa-uninit.c: Likewise.
9397         * tree-ssa.c: Likewise.
9398         * tree-ssanames.c: Likewise.
9399         * tree-stdarg.c: Likewise.
9400         * tree-streamer-in.c: Likewise.
9401         * tree-streamer-out.c: Likewise.
9402         * tree-streamer.c: Likewise.
9403         * tree-switch-conversion.c: Likewise.
9404         * tree-tailcall.c: Likewise.
9405         * tree-vect-data-refs.c: Likewise.
9406         * tree-vect-generic.c: Likewise.
9407         * tree-vect-loop-manip.c: Likewise.
9408         * tree-vect-loop.c: Likewise.
9409         * tree-vect-patterns.c: Likewise.
9410         * tree-vect-slp.c: Likewise.
9411         * tree-vect-stmts.c: Likewise.
9412         * tree-vectorizer.c: Likewise.
9413         * tree-vrp.c: Likewise.
9414         * tree.c: Likewise.
9415         * tsan.c: Likewise.
9416         * ubsan.c: Likewise.
9417         * value-prof.c: Likewise.
9418         * var-tracking.c: Likewise.
9419         * varasm.c: Likewise.
9420         * varpool.c: Likewise.
9421         * vtable-verify.c: Likewise.
9422         * web.c: Likewise.
9423         * wide-int-print.cc: Likewise.
9424         * wide-int.cc: Likewise.
9425         * xcoffout.c: Likewise.
9427 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
9429         * Makefile.in (NO_PIE_CFLAGS): New.
9430         (NO_PIE_FLAG): Likewise.
9431         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
9432         (NO_PIE_FLAG_FOR_BUILD): Likewise.
9433         (BUILD_NO_PIE_CFLAGS): Likewise.
9434         (BUILD_NO_PIE_FLAG): Likewise.
9435         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
9436         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
9437         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
9438         $(BUILD_NO_PIE_CFLAGS).
9439         (BUILD_CXXFLAGS): Likewise.
9440         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
9441         $(BUILD_NO_PIE_FLAG).
9442         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
9443         (BUILD_NO_PIE_FLAG): Likewise.
9444         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
9445         (NO_PIE_FLAG_FOR_BUILD): Likewise.
9446         * configure: Regenerated.
9448 2015-10-29  Richard Biener  <rguenther@suse.de>
9450         PR middle-end/56956
9451         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
9452         unsigned conditonal negation to ABS_EXPR.
9454 2015-10-29  Richard Biener  <rguenther@suse.de>
9456         * gimple-match-head.c (gimple_simplify): Remove premature checking
9457         of builtin_decl_implicit of function calls we simplify.
9459 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
9461         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
9462         (get_computation_cost_at): Ditto.
9463         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
9464         and inv_expr_id.
9466 2015-10-28  Tom de Vries  <tom@codesourcery.com>
9468         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
9469         superfluous code.
9471 2015-10-28  Jason Merrill  <jason@redhat.com>
9473         * Makefile.in (TAGS): Include libcpp and libiberty.
9475 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
9477         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
9478         (extract_omp_for_data): Remove OpenACC special handling of
9479         chunking.
9481         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
9482         (struct parallel): Update comment.
9483         (nvptx_reorg): Likewise.
9484         (nvptx_neuter): Cleanup whitespace.
9486 2015-10-28  Richard Henderson  <rth@redhat.com>
9488         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
9490 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9492         PR target/67839
9493         * config/avr/predicates.md (low_io_address_operand): Don't
9494         consider MODE when computing upper bound.
9495         (io_address_operand): Likewise.
9497 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
9499         * fold-const.c (operand_equal_p): Do not verify that types are
9500         compatible for MEM_REFs.
9502 2015-10-28  Richard Biener  <rguenther@suse.de>
9504         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
9505         in simplifying VEC_COND_EXPR conditions.
9507 2015-10-28  Tom de Vries  <tom@codesourcery.com>
9509         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
9510         into vi_next of a full_var.
9512 2015-10-28  Tom de Vries  <tom@codesourcery.com>
9514         * tree-ssa-structalias.c (new_var_info, make_heapvar)
9515         (make_constraint_from_restrict, make_constraint_from_global_restrict)
9516         (create_function_info_for, create_variable_info_for_1)
9517         (create_variable_info_for): Add and handle add_id parameter.
9518         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
9519         (init_base_vars): Add extra argument to calls to new_var_info.
9520         (get_vi_for_tree): Add extra argument to call to
9521         create_variable_info_for.
9522         (process_constraint, do_deref, process_all_all_constraints): Add extra
9523         argument to calls to new_scalar_tmp_constraint_exp.
9524         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
9525         argument to calls to make_heapvar.
9526         (make_restrict_var_constraints): Add extra argument to call to
9527         make_constraint_from_global_restrict.
9528         (intra_create_variable_infos): Add extra argument to call to
9529         create_variable_info_for_1.
9530         (ipa_pta_execute): Add extra argument to call to
9531         create_function_info_for.
9533 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9535         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
9536         (sibcall_value): Likewise.
9538 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
9540         * config/nvptx/nvptx.h (struct machine_function): Add
9541         axis_predicate.
9542         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
9543         nvptx_expand_oacc_join): Declare.
9544         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
9545         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
9546         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
9547         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
9548         UNSPECV_JOINING, UNSPECV_JOIN): New.
9549         (BITS, BITD): New mode iterators.
9550         (br_true_uni, br_false_uni): New.
9551         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
9552         (oacc_dim_size, oacc_dim_pos): New.
9553         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
9554         (oacc_fork, oacc_join): New.
9555         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
9556         (worker_load<mode>, worker_store<mode>): New.
9557         (nvptx_barsync): New.
9558         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
9559         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
9560         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
9561         worker_bcast_sym): New.
9562         (nvptx_option_override): Initialize worker broadcast buffer.
9563         (nvptx_emit_forking, nvptx_emit_joining): New.
9564         (nvptx_init_axis_predicate): New.
9565         (nvptx_declare_function_name): Init axis predicates.
9566         (nvptx_expand_call): Add fork/join markers around routine call.
9567         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
9568         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
9569         (nvptx_gen_vcast): New.
9570         (struct wcast_data_t): New.
9571         (enum propagate_mask): New.
9572         (nvptx_gen_wcast): New.
9573         (nvptx_print_operand): Add 'S' case.
9574         (struct parallel): New.
9575         (parallel::parallel, parallel::~parallel): New.
9576         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
9577         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
9578         nvptx_find_par, nvptx_discover_pars): New.
9579         (nvptx_propagate): New.
9580         (vprop_gen, nvptx_vpropagate): New.
9581         (wprop_gen, nvptx_wpropagate): New.
9582         (nvptx_wsync): New.
9583         (nvptx_single, nvptx_skip_par): New.
9584         (nvptx_process_pars, nvptx_neuter_pars): New.
9585         (ntptx_reorg): Split blocks, generate parallel structure, apply
9586         neutering.
9587         (nvptx_cannot_copy_insn_p): New.
9588         (nvptx_file_end): Emit worker broadcast decl.
9589         (nvptx_goacc_fork_join): New.
9590         (TARGET_CANNOT_COPY_INSN_P): Override.
9591         (TARGET_GOACC_FORK_JOIN): Override.
9593 2015-10-28  Richard Biener  <rguenther@suse.de>
9595         * fold-const.c (negate_expr_p): Adjust the division case to
9596         properly avoid introducing undefined overflow.
9597         (fold_negate_expr): Likewise.
9599 2015-10-28  Richard Biener  <rguenther@suse.de>
9601         PR tree-optimization/65962
9602         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9603         Avoid creating loop carried dependences also for outer loops
9604         of the loop a use to replace is in.
9606 2015-10-28  Richard Biener  <rguenther@suse.de>
9608         * common.opt (fchecking): New flag controlling flag_checking.
9609         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
9610         * timevar.c (timer::print): Adjust output.
9611         * doc/invoke.texi (fchecking): Document.
9613 2015-10-28  Richard Biener  <rguenther@suse.de>
9615         PR middle-end/68067
9616         * fold-const.c (negate_expr_p): We cannot negate plus or minus
9617         if overflow is not wrapping.  Likewise multiplication unless
9618         one operand is constant and not power of two.
9619         (fold_negate_expr): Adjust accordingly.
9621 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9623         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
9624         fields.
9625         (is_oacc_parallel, is_oacc_kernels): New.
9626         (enclosing_target_ctx): May return NULL.
9627         (ctx_in_oacc_kernels_region): New.
9628         (check_oacc_kernel_gwv): New.
9629         (oacc_loop_or_target_p): Delete.
9630         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
9631         operands.  Strip reductions fro kernels.
9632         (scan_omp_target): Don't calculate gwv mask.
9633         (lower_oacc_head_mark, lower_oacc_loop_marker,
9634         lower_oacc_head_tail): New.
9635         (struct oacc_collapse): New.
9636         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
9637         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
9638         Remove OpenACC handling.
9639         (expand_oacc_for): New.
9640         (expand_omp_for): Call expand_oacc_for.
9641         (lower_omp_for): Call lower_oacc_head_tail.
9643 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
9645         * attribs.c (check_attribute_tables): New function, broken out from...
9646         (init_attributes): Use it.
9647         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
9648         gcc_checking_assert and checking_* functions to eliminate
9649         ENABLE_CHECKING conditionals.
9650         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
9651         (pass_expand::execute): Likewise.
9652         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
9653         * cgraphunit.c (mark_functions_to_output): Likewise.
9654         (cgraph_node::expand_thunk): Likewise.
9655         (symbol_table::compile): Likewise.
9656         * ddg.c (add_cross_iteration_register_deps): Likewise.
9657         (create_ddg_all_sccs): Likewise.
9658         * df-core.c (df_finish_pass, df_analyze): Likewise.
9659         * diagnostic-core.h: Likewise.
9660         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
9661         * dominance.c (calculate_dominance_info): Likewise.
9662         * dwarf2out.c (add_AT_die_ref): Likewise.
9663         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
9664         (loc_list_from_tree, gen_lexical_block_die): Likewise.
9665         gen_type_die_with_usage, gen_type_die): Likewise.
9666         (dwarf2out_decl): Likewise.
9667         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
9668         * except.c (duplicate_eh_regions): Likewise.
9669         * fwprop.c (register_active_defs, update_df_init): Likewise.
9670         (fwprop_init, fwprop_done): Likewise.
9671         (update_uses): Likewise.
9672         * ggc-page.c (ggc_grow): Likewise.
9673         * gimplify.c (gimplify_body): Likewise.
9674         (gimplify_hasher::equal): Likewise.
9675         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
9676         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
9677         Likewise.
9678         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
9679         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
9680         * hash-table.h (::find_empty_slot_for_expand): Likewise.
9681         * ifcvt.c (if_convert): Likewise.
9682         * ipa-cp.c (ipcp_propagate_stage): Likewise.
9683         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
9684         (odr_type_p, odr_types_equivalent_p): Likewise.
9685         (add_type_duplicate, get_odr_type): Likewise.
9686         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
9687         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
9688         (sem_item_optimizer::verify_classes): Likewise.
9689         (sem_item_optimizer::traverse_congruence_split): Likewise.
9690         (sem_item_optimizer::checking_verify_classes): New.
9691         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
9692         method.
9693         * cfgrtl.c (commit_edge_insertions): Likewise.
9694         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
9695         (rtl_flow_call_edges_add): Likewise.
9696         * cgraph.c (symbol_table::create_edge): Likewise.
9697         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
9698         * cgraph.h (symtab_node): Likewise.
9699         (symtab_node::checking_verify_symtab_nodes): Define.
9700         (cgraph_node::checking_verify_cgraph_nodes): Define.
9701         * cfghooks.h (checking_verify_flow_info): Define.
9702         * cfgloop.h (checking_verify_loop_structure): Define.
9703         * dominance.h (checking_verify_dominators): Define.
9704         * et-forest.c: Fix comment.
9705         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
9706         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
9707         ENABLE_CHECKING conditionals.
9708         * ipa-inline-transform.c (save_inline_function_body): Likewise.
9709         * ipa-inline.c (inline_small_functions): Likewise.
9710         (early_inliner): Likewise.
9711         * ipa-inline.h (estimate_edge_growth): Likewise.
9712         * ipa-visibility.c (function_and_variable_visibility): Likewise.
9713         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
9714         (ipa_single_use): Likewise.
9715         * ira-int.h: Likewise.
9716         * ira.c (ira): Likewise.
9717         * loop-doloop.c (doloop_optimize_loops): Likewise.
9718         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
9719         * loop-invariant.c (move_loop_invariants): Likewise.
9720         * lra-assigns.c (lra_assign): Likewise.
9721         * lra-constraints.c (lra_constraints): Likewise.
9722         * lra-eliminations.c (lra_eliminate): Likewise.
9723         * lra-int.h (struct lra_reg): Likewise.
9724         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
9725         (lra_create_live_ranges_1): Likewise.
9726         * lra-remat.c (create_remat_bb_data): Likewise.
9727         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
9728         (lra): Likewise.
9729         (check_rtl): Always define. Remove incorrect guard around
9730         extract_constrain_insn call.
9731         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
9732         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
9733         ENABLE_CHECKING conditionals.
9734         * lto-streamer-out.c (DFS::DFS): Likewise.
9735         (lto_output): Likewise.
9736         * lto-streamer.c (lto_streamer_init): Likewise.
9737         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
9738         expand_omp_target, execute_expand_omp): Likewise.
9739         (lower_omp_target): Likewise.
9740         * passes.c (execute_function_todo): Likewise.
9741         (execute_todo, execute_one_pass): Likewise.
9742         (verify_curr_properties): Always define.
9743         * predict.c (tree_estimate_probability: Use flag_checking,
9744         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
9745         ENABLE_CHECKING conditionals.
9746         (propagate_freq): Likewise.
9747         * pretty-print.c (pp_format): Likewise.
9748         * real.c (real_to_decimal_for_mode): Likewise.
9749         * recog.c (split_all_insns): Likewise.
9750         * regcprop.c (kill_value_one_regno): Likewise.
9751         (copy_value): Likewise.
9752         (validate_value_data): Define unconditionally.
9753         * reload.c: Fix comment.
9754         * timevar.c: Include options.h
9755         * tree-ssa.h (checking_verify_ssa): Define.
9756         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
9757         * sched-deps.c (CHECK): Remove unused macro.
9758         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
9759         gcc_checking_assert and checking_* functions to eliminate
9760         ENABLE_CHECKING conditionals.
9761         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
9762         * sel-sched.c (struct moveop_static_params): Likewise.
9763         (find_best_reg_for_expr, move_cond_jump): Likewise.
9764         (move_op_orig_expr_not_found): Likewise.
9765         (code_motion_process_successors, move_op): Likewise.
9766         * ssa-iterators.h (first_readonly_imm_use): Likewise.
9767         (next_readonly_imm_use): Likewise.
9768         * store-motion.c (compute_store_table): Likewise.
9769         * symbol-summary.h (function_summary::function_summary): Likewise.
9770         * target.h (cumulative_args_t): Likewise.
9771         (get_cumulative_args, pack_cumulative_args): Likewise.
9772         * timevar.c: (timer::print): Likewise.
9773         * trans-mem.c (ipa_tm_execute): Likewise.
9774         * tree-cfg.c (move_stmt_op): Likewise.
9775         (move_sese_region_to_fn): Likewise.
9776         (gimple_flow_call_edges_add): Likewise.
9777         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
9778         Likewise.
9779         * tree-eh.c (remove_unreachable_handlers): Likewise.
9780         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
9781         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
9782         * tree-into-ssa.c (update_ssa): Likewise.
9783         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
9784         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
9785         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
9786         * tree-predcom.c (suitable_component_p): Likewise.
9787         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
9788         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
9789         * tree-ssa-live.c (verify_live_on_entry): Likewise.
9790         * tree-ssa-live.h (register_ssa_partition): Likewise.
9791         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
9792         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
9793         (tree_transform_and_unroll_loop): Likewise.
9794         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9795         * tree-ssa-operands.c (get_expr_operands): Likewise.
9796         * tree-ssa-propagate.c (replace_exp_1): Likewise.
9797         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
9798         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
9799         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
9800         * tree-ssanames.c (release_ssa_name_fn): Likewise.
9801         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
9802         * tree-vect-loop-manip.c
9803         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
9804         (slpeel_checking_verify_cfg_after_peeling): Likewise.
9805         (vect_do_peeling_for_loop_bound): Likewise.
9806         (vect_do_peeling_for_alignment): Likewise.
9807         * tree-vrp.c (supports_overflow_infinity): Likewise.
9808         (set_value_range): Likewise.
9809         * tree.c (free_lang_data_in_cgraph): Likewise.
9810         * value-prof.c (gimple_remove_histogram_value): Likewise.
9811         (free_hist): Likewise.
9812         * var-tracking.c (canonicalize_values_star): Likewise.
9813         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
9815 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9817         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
9818         IFN_GOACC_LOOP): New.
9819         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
9820         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
9821         IFN_UNIQUE_OACC_TAIL_MARK.
9822         (enum ifn_goacc_loop_kind): New.
9823         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
9824         IFN_UNIQUE_OACC_JOIN cases.
9825         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
9826         (expand_GOACC_LOOP): New.
9827         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
9828         * omp-low.c: Include gimple-pretty-print.h.
9829         (struct oacc_loop): New.
9830         (enum oacc_loop_flags): New.
9831         (oacc_thread_numbers): New.
9832         (oacc_xform_loop): New.
9833         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
9834         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
9835         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
9836         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
9837         oacc_loop_discovery): New.
9838         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
9839         oacc_loop_process): New.
9840         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
9841         (execute_oacc_device_lower): Discover & process loops.  Process
9842         internal fns.
9843         * target.def (goacc.fork_join): Change sense of hook, clarify
9844         documentation.
9845         * doc/tm.texi: Regenerated.
9847 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9849         * target-insns.def (oacc_fork, oacc_join): Define.
9850         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
9851         (goacc.fork_join): New GOACC hook.
9852         * targhooks.h (default_goacc_fork_join): Declare.
9853         * omp-low.c (default_goacc_forkjoin): New.
9854         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
9855         * doc/tm.texi: Regenerate.
9857 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9859         * omp-low.c (oacc_init_rediction_array): New.
9860         (oacc_initialize_reduction_data): Initialize array.
9862 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9864         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
9866 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9868         * internal-fn.c (expand_UNIQUE): New.
9869         * internal-fn.h (enum ifn_unique_kind): New.
9870         * internal-fn.def (IFN_UNIQUE): New.
9871         * target-insns.def (unique): Define.
9872         * gimple.h (gimple_call_internal_unique_p): New.
9873         * gimple.c (gimple_call_same_target_p): Check internal fn
9874         uniqueness.
9875         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
9876         * tree-ssa-threadedge.c
9877         (record_temporary_equivalences_from_stmts): Likewise.
9878         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
9880 2015-10-27  Richard Henderson  <rth@redhat.com>
9882         PR rtl-opt/67609
9883         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
9884         narrowing subregs on SSE and MMX registers.
9885         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
9886         appear to be sub-words of multi-register pseudos must be rejected.
9887         * doc/tm.texi: Regenerate.
9889 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9891         PR target/68102
9892         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
9893         operands[0] is a reg before taking its REGNO in split condition.
9894         (*movdi_aarch64): Likewise.
9896 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9898         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
9899         Handle floating point inner modes properly.
9901 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
9903         * tree-vect-looop.c
9904         (vectorizable_live_operation): Change iterator.
9906 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
9907             Aditya Kumar  <aditya.k7@samsung.com>
9909         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
9910           function to schedule based on isl_schedule_node.
9911         (get_schedule_map_st): New schedule optimizer based on
9912         isl_schedule_node.
9913         (scop_get_domains): New. Return the isl_union_set containing the
9914         domains of all the pbbs.
9915         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
9917 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
9919         PR target/67215
9920         * calls.c (prepare_call_address): Don't handle -fno-plt here.
9921         * config/i386/i386.c (ix86_expand_call): Generate indirect call
9922         via GOT for -fno-plt.  Support indirect call via GOT for x32.
9923         * config/i386/predicates.md (sibcall_memory_operand): Allow
9924         GOT memory operand.
9926 2015-10-27  Richard Biener  <rguenther@suse.de>
9928         PR tree-optimization/68104
9929         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
9930         strided access check ...
9931         (vect_compute_data_refs_alignment): ... here.
9933 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
9934             Joseph Myers  <joseph@codesourcery.com>
9935             Mark Shinwell  <shinwell@codesourcery.com>
9936             Andrew Stubbs  <ams@codesourcery.com>
9937             Rich Felker <dalias@libc.org>
9939         * config.gcc: Handle --enable-fdpic.
9940         * config/sh/constraints.md (Ccl): New constraint.
9941         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
9942         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
9943         __SH_FDPIC__.
9944         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
9945         library functions.
9946         * config/sh/sh-protos.h (function_symbol_result): New struct.
9947         (function_symbol): Return function_symbol_result.
9948         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
9949         declarations.
9950         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
9951         target hook.
9952         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
9953         (sh_option_override): Force -fPIC if FDPIC is in effect.
9954         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
9955         UNSPEC_GOTOFFFUNCDESC cases.
9956         (prepare_move_operands): Use FDPIC initial GOT register for
9957         TLS-related GOT access; inhibit cross-section address offset constants
9958         for FDPIC.
9959         (sh_assemble_integer): New function.
9960         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
9961         PC-relative call sites.
9962         (expand_ashiftrt): Adapt invocation of function_symbol.
9963         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
9964         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
9965         UNSPEC_GOTOFFFUNCDESC.
9966         (legitimize_pic_address): Resolve function symbols to function
9967         descriptors for FDPIC.  Do not use GOT-relative addressing for local
9968         data that may be read-only on FDPIC.
9969         (sh_emit_storesi, sh_emit_storehi): New functions.
9970         (sh_trampoline_init): Generate FDPIC trampolines.
9971         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
9972         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
9973         (sh_output_mi_thunk): Generate FDPIC call.
9974         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
9975         FDPIC, generate call site labels to use PC-relative addressing rather
9976         than GOT-relative addressing.
9977         (sh_conditional_register_usage): Make PIC register fixed and call used
9978         when FDPIC is in effect.
9979         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
9980         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
9981         sh_get_fdpic_reg_initial_val): New functions.
9982         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
9983         Handle -mfdpic.
9984         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
9985         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
9986         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
9987         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
9988         FDPIC_SELF_SPECS.
9989         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
9990         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
9991         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
9992         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
9993         constants.
9994         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
9995         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
9996         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
9997         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
9998         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
9999         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
10000         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
10001         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
10002         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
10003         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
10004         block_move_real, block_lump_real, block_move_real_i4,
10005         block_lump_real_i4): Add support for FDPIC calls.
10006         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
10007         call_value_pop): Adjust for new function_symbol signature.
10008         * config/sh/sh.opt (-mfdpic): New option.
10009         * doc/install.texi (Options specification): Document --enable-fdpic.
10010         * doc/invoke.texi (SH Options): Document -mfdpic.
10013 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
10015         PR tree-optimization/65963
10016         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
10017         LSHIFT_EXPRs as equivalent MULT_EXPRs.
10019 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10021         PR target/67929
10022         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
10023         * config/arm/constraints.md (Dp): Update callsite.
10024         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
10026 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10028         * builtins.c (fold_builtin_load_exponent): Rename to...
10029         (fold_const_builtin_load_exponent): ...this and only handle
10030         constant arguments.
10031         (fold_builtin_2): Update accordingly.
10032         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
10034 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10036         * builtins.c (fold_builtin_logb): Rename to...
10037         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
10038         (fold_builtin_significand): Rename to...
10039         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
10040         (fold_builtin_1): Update accordingly.
10042 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10044         * builtins.c (fold_builtin_fmin_fmax): Delete.
10045         (fold_builtin_2): Handle constant fmin and fmax arguments here.
10046         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
10048 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
10050         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
10051         for register extension into sign and zero register extension.
10052         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
10053         for sign and zero register extension.
10054         (cortexa57_addrcost_table): Likewise.
10055         (xgene1_addrcost_table): Likewise.
10057 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10059         * fold-const.c (fold_minmax): Delete.
10060         (fold_binary_loc): Don't call it.
10061         * match.pd: Add rules previously handled by fold_minmax.
10063 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10065         * builtins.c (fold_builtin_fma): Remove constant handling.
10066         (fold_builtin_3): Handle constant fma arguments here.
10068 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10070         * builtins.c (fold_builtin_fabs): Remove constant handling.
10071         (fold_builtin_abs): Likewise.
10073 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10075         * builtins.c (fold_builtin_copysign): Delete.
10076         (fold_builtin_2): Handle constant copysign arguments here.
10077         * match.pd: Add rules previously handled by fold_builtin_copysign.
10079 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10081         * builtins.c (fold_builtin_signbit): Delete.
10082         (fold_builtin_2): Handle constant signbit arguments here.
10083         * match.pd: Add rules previously handled by fold_builtin_signbit.
10085 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10087         * match.pd: Handle sqrt(x) cmp 0 specially.
10089 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
10091         * tree-vect-generic.c (expand_vector_operations_1): Check
10092         optab type before using it.
10094 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10096         * config/aarch64/aarch64-protos.h
10097         (struct tune_params): Add autoprefetcher_model field.
10098         * config/aarch64/aarch64.c: Include params.h
10099         (generic_tunings): Specify autoprefetcher_model value.
10100         (cortexa53_tunings): Likewise.
10101         (cortexa57_tunings): Likewise.
10102         (cortexa72_tunings): Likewise.
10103         (thunderx_tunings): Likewise.
10104         (xgene1_tunings): Likewise.
10105         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
10106         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
10107         (aarch64_override_options_internal): Set
10108         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
10110 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10112         * builtins.c (fold_builtin_exponent): Delete.
10113         (fold_builtin_2): Handle constant expN arguments here.
10114         * match.pd: Fold expN(logN(x)) -> x.
10116 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10118         * builtins.c (fold_builtin_powi): Delete.
10119         (fold_builtin_2): Handle constant powi arguments here.
10120         * match.pd: Add rules previously handled by fold_builtin_powi.
10122 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10124         * builtins.c (fold_builtin_pow): Delete in favor of...
10125         (fold_const_builtin_pow): ...this new function.  Only handle constant
10126         arguments.
10127         (fold_builtin_2): Update accordingly.
10128         * match.pd: Add rules previously handled by fold_builtin_pow.
10130 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10132         * builtins.c (fold_builtin_hypot): Delete.
10133         (fold_builtin_2): Handle constant hypot arguments here.
10134         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
10135         hypot(x, x) to fabs(x)*sqrt(2).
10137 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10139         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
10140         instead of make_ssa_name if not yet in SSA form.
10142 2015-10-27  Richard Biener  <rguenther@suse.de>
10144         * cfg.c (free_edge): Add function argument and use it instead of cfun.
10145         (clear_edges): Likewise.
10146         * cfg.h (clear_edges): Adjust prototype.
10147         * cfgexpand.c (pass_expand::execute): Adjust.
10148         * cfgloop.c (release_recorded_exits): Add function argument and use
10149         it instead of cfun.
10150         * cfgloop.h (release_recorded_exits): Adjust prototype.
10151         (loops_state_satisfies_p): Add overload with function argument.
10152         (loops_state_set): Likewise.
10153         (loops_state_clear): Likewise.
10154         (struct loop_iterator): Add function argument to constructor
10155         and iterator and use it instead of cfun.
10156         (FOR_EACH_LOOP_FN): New macro.
10157         (loop_optimizer_finalize): Add overload with function argument.
10158         * loop-init.c (loop_optimizer_init): Adjust.
10159         (fix_loop_structure): Likewise.
10160         (loop_optimizer_finaliz): Add function argument and use it
10161         instead of cfun.
10162         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
10163         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
10164         * cgraph.c (release_function_body): Do not push/pop cfun.
10165         * final.c (rest_of_clean_state): Adjust.
10166         * graphite.c (graphite_finalize): Likewise.
10167         * tree-ssa-copy.c (fini_copy_prop): Likewise.
10168         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
10169         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
10170         (tree_unroll_loops_completely): Likewise.
10171         (pass_complete_unrolli::execute): Likewise.
10172         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
10173         Add function argument and use it instead of cfun.
10174         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
10175         Adjust prototype.
10176         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
10177         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
10178         instead of cfun.
10179         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
10180         * tree-ssanames.c (fini_ssanames): Add function argument and use it
10181         instead of cfun.
10182         * tree-ssanames.c (fini_ssanames): Adjust prototype.
10183         * tree-vrp.c (execute_vrp): Adjust.
10184         * value-prof.c (free_histograms): Add function argument and use it
10185         instead of cfun.
10186         * value-prof.h (free_histograms): Adjust prototype.
10188 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
10190         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
10191         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
10192         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
10194 2015-10-27  Tom de Vries  <tom@codesourcery.com>
10196         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
10197         field_type.
10199 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
10201         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
10202         (inv_can_prop_to_addr_use): New function.
10203         (record_use): Call can_prop_to_addr_uses, set the new field.
10204         (get_inv_cost): Count cost if inv can't be propagated into its
10205         address uses.
10207 2015-10-26  Doug Evans  <dje@google.com>
10209         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
10211 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
10213         * match.pd (fold_widened_comparison): Apply simplifications to all
10214         integral types.
10216 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
10218         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
10219         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
10220         * doc/tm.texi: Regenerated.
10221         * reorg.c (dbr_schedule): Use new hook.
10222         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
10224 2015-10-26  Jeff Law  <law@redhat.com>
10226         PR tree-optimization/68013
10227         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10228         Make sure the first block in the path is in VISITED_BBs.
10230 2015-10-26  Richard Biener  <rguenther@suse.de>
10231         Dominik Vogt  <vogt@linux.vnet.ibm.com>
10233         PR middle-end/67443
10234         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
10235         Properly prune ref->ref for accesses outside of ref.
10237 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
10239         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
10240         new statements to be inserted if inplace.  Allow calls to have
10241         nonempty sequences.
10243 2015-10-26  Richard Biener  <rguenther@suse.de>
10245         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
10246         (do_valueize): New function.
10247         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
10248         replace_uses_by.
10249         * tree-ssa-threadedge.c: Remove builtins.h include, include
10250         gimple-fold.h
10251         (fold_assignment_stmt): Remove.
10252         (threadedge_valueize): New function.
10253         (record_temporary_equivalences_from_stmts): Use
10254         gimple_fold_stmt_to_constant_1, note additional cleanup
10255         opportunities.
10257 2015-10-26  Richard Biener  <rguenther@suse.de>
10259         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
10260         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
10262 2015-10-26  Alan Hayward <alan.hayward@arm.com>
10264         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
10265         VEC_COND_EXPR types.
10267 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10269         * auto-inc-dec.c (insert_move_insn_before): Delete.
10270         (attempt_change): Remember to cost the simple move in the
10271         FORM_PRE_ADD and FORM_POST_ADD cases.
10273 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
10275         PR target/68091
10276         * config/sh/sh.c (sh_vector_mode_supported_p): Use
10277         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
10279 2015-10-26  Tom de Vries  <tom@codesourcery.com>
10281         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
10282         factored out of ...
10283         (intra_create_variable_infos): ... here.
10285 2015-10-26  Tom de Vries  <tom@codesourcery.com>
10287         * tree-ssa-structalias.c (intra_create_variable_infos): Add
10288         restrict_pointer_p and recursive_restrict_p variables.
10290 2015-10-26  Tom de Vries  <tom@codesourcery.com>
10292         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
10293         get_vi_for_tree call.
10295 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10297         PR middle-end/67989
10298         * optabs.c (expand_atomic_compare_and_swap): Handle case when
10299         ptarget_oval or ptarget_bool are const0_rtx.
10301 2015-10-26  Christian Bruel  <christian.bruel@st.com>
10303         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
10304         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
10305         * cp/method.c (implicitly_declare_fn): Likewise.
10306         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
10307         * java/class.c (add_method_1): Likewise.
10309 2015-10-26  Richard Biener  <rguenther@suse.de>
10311         * alloc-pool.h (base_pool_allocator): Use placement new.
10312         (base_pool_allocator::remove): Likewise.  Compute size outside of
10313         flag_checking.
10315 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
10317         * builtins.c (do_real_to_int_conversion): New function.
10318         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
10319         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
10320         arguments here.
10321         * match.pd: Add rules previously handled by fold_fixed_mathfn
10322         and fold_builtin_int_roundingfn.
10324 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
10326         * match.pd: Use macros to define built-in operator lists.
10328 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
10329             Richard Biener  <rguenther@suse.de>
10331         * genmatch.c (dt_simplify::gen): Skip captures that are
10332         part of the result.
10333         (parser::parse_expr): Allow captures in results too.
10334         * builtins.c (fold_builtin_cexp): Delete.
10335         (fold_builtin_1): Handle constant cexp arguments here.
10336         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
10338 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
10340         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
10341         conditional compilation.
10342         (base_pool_allocator::remove): Use flag_checking.
10344 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
10346         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
10348         PR middle-end/68079
10349         * dojump.c (do_compare_and_jump): Canonicalize both function and
10350         method types.
10352 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
10354         PR target/68084
10355         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
10356         for =@ccae.
10358 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
10360         PR ipa/pr67600
10361         * ipa-polymorphic-call.c
10362         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
10363         instance offset with offset of outer type.
10365 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
10367         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
10369 2015-10-23  Caroline Tice  <cmtice@google.com>
10371         (from Richard Biener
10372         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
10373         call to iterative_hash_host_wide_int.
10375 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
10377         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
10378         Define as yes.
10380 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
10382         * tree-vect-generic.c (expand_vector_operations_1): Check
10383         optab exists before use it.
10385 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
10387         * tree-vect-generic.c (expand_vector_condition): Avoid
10388         uninitialized variable warning.
10390 2015-10-23  Jeff Law  <law@redhat.com>
10392         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
10393         here.  Instead...
10394         (execute_todo): Call it here.
10395         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
10396         statistics
10397         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
10399 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
10400             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10402         * config.gcc (enable_secureplt): Add *-linux*-musl*.
10404 2015-10-23  Jeff Law  <law@redhat.com>
10406         PR tree-optimization/67830
10407         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
10408         Explicitly verify the mask has no bits outside the type of
10409         the innermost operands.
10411 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
10412             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10414         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
10415         (MUSL_DYNAMIC_LINKER64): Define.
10416         (GNU_USER_DYNAMIC_LINKER32): Update.
10417         (GNU_USER_DYNAMIC_LINKER64): Update.
10418         (CHOOSE_DYNAMIC_LINKER): Update.
10420         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
10421         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
10422         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
10423         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
10424         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
10425         (CHOOSE_DYNAMIC_LINKER): Update.
10426         (INCLUDE_DEFAULTS): Redefine.
10428         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
10430 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
10432         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
10433         comparing addresses.
10435 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
10437         * fold-const.c (operand_equal_p): Handle matching of vector
10438         constructors.
10440 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
10442         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
10444 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
10445             Andrew Pinski  <apinski@cavium.com>
10447         PR rtl-optimization/67736
10448         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
10449         of gen_lowpart.
10451 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
10453         PR middle-end/68066
10454         * tree.c (build_truth_vector_type): Support BLK mode
10455         returned for boolean vector.
10457 2015-10-23  Alan Hayward <alan.hayward@arm.com>
10459         PR tree-optimization/65947
10460         * tree-vect-loop.c
10461         (vect_is_simple_reduction_1): Find condition reductions.
10462         (vect_model_reduction_cost): Add condition reduction costs.
10463         (get_initial_def_for_reduction): Add condition reduction initial var.
10464         (vect_create_epilog_for_reduction): Add condition reduction epilog.
10465         (vectorizable_reduction): Condition reduction support.
10466         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
10467         * doc/sourcebuild.texi (Vector-specific attributes): Document
10468         vect_max_reduc
10470 2015-10-23  Richard Biener  <rguenther@suse.de>
10472         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
10473         and builtins.def.
10475 2015-10-23  Richard Biener  <rguenther@suse.de>
10476             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10478         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
10479         into (A ^ B) - B to match.pd
10480         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
10482         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
10483         New simplifier.
10484         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
10485         New simplifier.
10486         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
10487         New simplifier.
10488         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
10489         New simplifier.
10490         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
10491         INTEGER_CST@1)): New simplifier.
10493 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
10495         * builtins.c (integer_valued_real_p): Move to fold-const.c.
10496         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
10497         (fold_builtin_ceil, fold_builtin_round): Delete.
10498         (fold_builtin_1): Handle constant trunc, floor, ceil and round
10499         arguments here.
10500         * convert.c (convert_to_real): Remove narrowing of rounding
10501         functions.
10502         * fold-const.h (integer_valued_real_unary_p)
10503         (integer_valued_real_binary_p, integer_valued_real_call_p)
10504         (integer_valued_real_single_p, integer_valued_real_p): Declare.
10505         * fold-const.c (tree_single_nonnegative_warnv_p): Move
10506         name_registered_for_update_p check to SSA_NAME case statement.
10507         Don't call tree_simple_nonnegative_warnv_p for SSA names.
10508         (integer_valued_real_unary_p, integer_valued_real_binary_p)
10509         (integer_valued_real_call_p, integer_valued_real_single_p)
10510         (integer_valued_real_invalid_p): New functions.
10511         (integer_valued_real_p): Move from fold-const.c and rework
10512         to call the functions above.  Handle SSA names.
10513         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
10514         * gimple-fold.c (gimple_assign_integer_valued_real_p)
10515         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
10516         (gimple_stmt_integer_valued_real_p): New functions.
10517         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
10518         Fold f(x)->x for the same f if x is known to be integer-valued.
10519         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
10520         the result.  Canonicalize floor(x) as trunc(x) if x is
10521         nonnegative.
10523 2015-10-23  Tom de Vries  <tom@codesourcery.com>
10525         * tree-ssa-structalias.c (intra_create_variable_infos): Use
10526         make_constraint_from.
10528 2015-10-23  Tom de Vries  <tom@codesourcery.com>
10530         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
10531         setting of is_full_var in case of a single field.
10533 2015-10-22  Martin Sebor  <msebor@redhat.com>
10535         PR driver/68043
10536         * config/i386/i386.opt: Add missing periods to the ends of sentences.
10537         * config/msp430/msp430.opt: Same.
10539 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
10541         * doc/extend.exp (Global Register Variables): Rewrite.
10543 2015-10-22  Jeff Law  <law@redhat.com>
10545         * genattrtab.c (main): If we do not have any annul-true or annul-false
10546         slots, then write out a dummy eligible_for_annul_true or
10547         eligible_for_annul_false as needed.
10549 2015-10-22  Nick Clifton  <nickc@redhat.com>
10551         * config/msp430/msp430.opt: Add -msilicon-errata and
10552         -msilicon-errata-warn.
10553         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
10554         assembler.
10555         * doc/invoke.texi: Document new options.
10557 2015-10-22  Richard Biener  <rguenther@suse.de>
10559         PR tree-optimization/58497
10560         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
10561         (expand_vector_operations_1): Use it.  Lower operations on
10562         all uniform vectors to scalar operations if the HW supports it.
10564 2015-10-22  Richard Biener  <rguenther@suse.de>
10566         PR tree-optimization/19049
10567         PR tree-optimization/65962
10568         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
10569         to strided accesses if single-element interleaving doesn't work.
10571 2015-10-22  Richard Biener  <rguenther@suse.de>
10573         PR middle-end/68046
10574         PR middle-end/61893
10575         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
10576         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
10577         (expand_unop): Likewise.
10579 2015-10-22  Richard Biener  <rguenther@suse.de>
10581         * fold-const.c (fold_addr_of_array_ref_difference): Properly
10582         convert operands before folding a MINUS_EXPR.
10583         (fold_binary_loc): Move simplification of MINUS_EXPR on
10584         converted POINTER_PLUS_EXPRs ...
10585         * match.pd: ... here.
10587 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
10589         * builtins.c (fold_builtin_tan): Delete.
10590         (fold_builtin_1): Handle constant tan arguments here.
10591         * match.pd: Simplify (tan (atan x)) to x.
10593 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
10595         * builtins.c (fold_builtin_cproj): Delete.
10596         (fold_builtin_1): Handle constant arguments here.
10597         (build_complex_cproj): Move and rename to...
10598         * tree.c: (build_complex_inf): ...this.
10599         * tree.h (build_complex_inf): Declare.
10600         * match.pd: Fold cproj(x)->x if x has no infinity.
10601         Use build_complex_inf for existing cproj rules.
10603 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10605         PR target/68015
10606         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
10607         already have a comparison result.
10609 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10611         PR target/63304
10612         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
10613         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
10614         (aarch64_classify_address): Likewise.
10615         (aarch64_secondary_reload): Likewise.
10616         (aarch64_override_options_after_change_1): Adjust.
10617         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
10618         Use aarch64_nopcrelative_literal_loads.
10619         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
10620         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
10621         Declare.
10623 2015-10-21  Martin Sebor  <msebor@redhat.com>
10625         PR driver/68043
10626         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
10627         (print_filtered_help): Reference aliased option's name and encourage
10628         readers to use it in preference to the alias if the former is not
10629         documented.  Mention when using an option is diagnosed.
10630         * gcc.c (display_help): End each sentence with a period.
10632         * common.opt: End each sentence that describes an option with
10633         a period.
10634         * config/aarch64/aarch64.opt: Same.
10635         * config/alpha/alpha.opt: Same.
10636         * config/arc/arc.opt: Same.
10637         * config/arm/arm.opt: Same.
10638         * config/avr/avr.opt: Same.
10639         * config/bfin/bfin.opt: Same.
10640         * config/c6x/c6x.opt: Same.
10641         * config/cr16/cr16.opt: Same.
10642         * config/cris/cris.opt: Same.
10643         * config/cris/linux.opt: Same.
10644         * config/darwin.opt: Same.
10645         * config/epiphany/epiphany.opt: Same.
10646         * config/fr30/fr30.opt: Same.
10647         * config/frv/frv.opt: Same.
10648         * config/ft32/ft32.opt: Same.
10649         * config/g.opt: Same.
10650         * config/h8300/h8300.opt: Same.
10651         * config/i386/cygming.opt: Same.
10652         * config/i386/djgpp.opt: Same.
10653         * config/i386/i386.opt: Same.
10654         * config/i386/interix.opt: Same.
10655         * config/i386/mingw-w64.opt: Same.
10656         * config/i386/mingw.opt: Same.
10657         * config/ia64/ia64.opt: Same.
10658         * config/ia64/ilp32.opt: Same.
10659         * config/iq2000/iq2000.opt: Same.
10660         * config/linux.opt: Same.
10661         * config/lm32/lm32.opt: Same.
10662         * config/lynx.opt: Same.
10663         * config/m32c/m32c.opt: Same.
10664         * config/m32r/m32r.opt: Same.
10665         * config/m68k/ieee.opt: Same.
10666         * config/m68k/m68k.opt: Same.
10667         * config/mcore/mcore.opt: Same.
10668         * config/mep/mep.opt: Same.
10669         * config/microblaze/microblaze.opt: Same.
10670         * config/mips/mips.opt: Same.
10671         * config/mmix/mmix.opt: Same.
10672         * config/mn10300/mn10300.opt: Same.
10673         * config/moxie/moxie.opt: Same.
10674         * config/msp430/msp430.opt: Same.
10675         * config/nios2/elf.opt: Same.
10676         * config/nios2/nios2.opt: Same.
10677         * config/nvptx/nvptx.opt: Same.
10678         * config/pa/pa-hpux.opt: Same.
10679         * config/pa/pa-hpux1010.opt: Same.
10680         * config/pa/pa-hpux1111.opt: Same.
10681         * config/pa/pa-hpux1131.opt: Same.
10682         * config/pa/pa.opt: Same.
10683         * config/pa/pa64-hpux.opt: Same.
10684         * config/pdp11/pdp11.opt: Same.
10685         * config/rl78/rl78.opt: Same.
10686         * config/rs6000/476.opt: Same.
10687         * config/rs6000/aix64.opt: Same.
10688         * config/rs6000/darwin.opt: Same.
10689         * config/rs6000/linux64.opt: Same.
10690         * config/rs6000/rs6000.opt: Same.
10691         * config/rs6000/sysv4.opt: Same.
10692         * config/s390/s390.opt: Same.
10693         * config/s390/tpf.opt: Same.
10694         * config/sh/sh.opt: Same.
10695         * config/sol2.opt: Same.
10696         * config/sparc/long-double-switch.opt: Same.
10697         * config/sparc/sparc.opt: Same.
10698         * config/spu/spu.opt: Same.
10699         * config/stormy16/stormy16.opt: Same.
10700         * config/tilegx/tilegx.opt: Same.
10701         * config/tilepro/tilepro.opt: Same.
10702         * config/v850/v850.opt: Same.
10703         * config/vax/vax.opt: Same.
10704         * config/visium/visium.opt: Same.
10705         * config/vms/vms.opt: Same.
10706         * config/vxworks.opt: Same.
10707         * config/xtensa/xtensa.opt: Same.
10709 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
10710             Sebastian Pop  <s.pop@samsung.com>
10712         * graphite-scop-detection.c (parameter_index_in_region): Update call to
10713         invariant_in_sese_p_rec.
10714         * graphite-sese-to-poly.c (extract_affine): Same.
10715         * sese.c (invariant_in_sese_p_rec): Pass in an extra
10716         parameter has_vdefs.
10717         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
10718         variable depends on virtual definitions in the current region.
10719         * sese.h (invariant_in_sese_p_rec): Update declaration.
10721 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
10722             Sebastian Pop  <s.pop@samsung.com>
10724         * graphite-scop-detection.c (build_scops): Do not handle scops
10725         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
10726         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
10728 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
10730         * config.in: Regenerate.
10731         * configure: Regenerate.
10732         * configure.ac (CHECKING_P): Define.
10733         * system.h: Use CHECKING_P.
10735 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10737         PR ipa/67056
10738         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
10739         is negative we don't know the type.
10740         (check_stmt_for_type_change): Skip constructors of non-polymorphic
10741         types as those won't help devirutalization.
10743 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10745         * fold-const.c (operand_equal_p): Add code matching empty constructors.
10747 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
10749         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
10750         comments.
10751         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
10752         Add comments on sign of the result.
10753         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
10754         Recurse on operand #1 instead of operand #0.
10755         <CEIL_MOD_EXPR>: Do not recurse.
10756         <ROUND_MOD_EXPR>: Likewise.
10758 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10760         * cfgrtl.c (pass_free_cfg::execute): Adjust.
10761         * final.c (dbr_sequence_length): Always define.
10762         (shorten_branches): Adjust.
10763         * genattr-common.c (main): Always define DELAY_SLOTS.
10764         * genattr.c (main): Unconditionally declare functions and define
10765         macros related to delay slots.
10766         * genattrtab.c (write_eligible_delay): Adjust.
10767         (main): Always write out delay slot functions.
10768         * opts.c (default_options_table): Adjust.
10769         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
10770         (redirect_with_delay_list_safe_p): Likewise.
10771         (fill_simple_delay_slots): Likewise.
10772         (fill_slots_from_thread): Likewise.
10773         (make_return_insns): Likewise.
10774         (dbr_schedule): Likewise.
10775         (rest_of_handle_delay_slots): Likewise.
10776         (pass_delay_slots::gate): Likewise.
10777         * toplev.c (process_options): Likewise.
10779 2015-10-21  Richard Henderson  <rth@redhat.com>
10781         * targhooks.c (default_addr_space_pointer_mode): Remove check
10782         for generic address space.
10783         (default_addr_space_address_mode): Likewise.
10784         (default_addr_space_valid_pointer_mode): Likewise.
10785         (default_addr_space_legitimate_address_p): Likewise.
10786         (default_addr_space_legitimize_address): Likewise.
10787         * target.def (addr_space.pointer_mode): Update documentation
10788         of default behavior.
10789         (addr_space.address_mode): Likewise.
10790         * tm.texi: Update.
10792         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
10793         address spaces.
10795 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
10797         * builtins.c (fold_builtin_cabs): Delete.
10798         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
10799         * match.pd: Add rules previously handled by fold_builtin_cabs.
10801 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
10803         * fold-const.h (fold_strip_sign_ops): Delete.
10804         * fold-const.c (fold_strip_sign_ops): Likewise.
10805         (fold_unary_loc, fold_binary_loc): Remove calls to it.
10806         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
10807         (fold_builtin_ccos): Delete.
10808         (fold_builtin_pow): Don't call fold_strip_sign_ops.
10809         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
10810         Remove fndecl argument.
10811         (fold_builtin_1): Update calls accordingly.  Handle constant
10812         cos, cosh, ccos and ccosh here.
10814 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
10816         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
10817         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
10818         * common.opt (fssa-backprop): New option.
10819         * fold-const.h (negate_mathfn_p): Declare.
10820         * fold-const.c (negate_mathfn_p): Make public.
10821         * timevar.def (TV_TREE_BACKPROP): New.
10822         * tree-pass.h (make_pass_backprop): Declare.
10823         * passes.def (pass_backprop): Add.
10824         * gimple-ssa-backprop.c: New file.
10826 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
10827             Sebastian Pop  <s.pop@samsung.com>
10829         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
10830         Do not call create_empty_if_region_on_edge when cond_expr is true.
10831         (translate_isl_ast_node_for): Check whether a guard has been generated.
10833 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
10835         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
10836         (operator=): Removed.
10837         (dr_info): Make alias_set number the last argument with default
10838         value of invalid_alias_set.
10839         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
10840         of dr_info.
10841         (rewrite_reductions_out_of_ssa): Iterate only through the
10842         basic blocks which are inside region.
10843         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
10844         * sese.h (struct sese_l): Removed assignment operator.
10845         (split_region_for_bb): Removed dead code.
10847 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
10849         * graphite-poly.h (struct dr_info): Removed conversion constructor.
10850         (struct scop): Renamed scop::region to scop::scop_info
10851         (scop_set_region): Same.
10852         (SCOP_REGION): Removed
10853         (SCOP_CONTEXT): Removed.
10854         (POLY_SCOP_P): Removed.
10855         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
10856         Rename scop->region to scop->scop_info.
10857         (add_parameters_to_ivs_params): Same.
10858         (graphite_regenerate_ast_isl): Same.
10859         * graphite-poly.c (new_scop): Same.
10860         (free_scop): Same.
10861         (print_scop_params): Same.
10862         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
10863         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
10864         (dot_all_scops_1): Rename scop->region to scop->scop_info.
10865         (scop_detection::nb_pbbs_in_loops): Same.
10866         (find_scop_parameters): Same.
10867         (try_generate_gimple_bb): Same.
10868         (gather_bbs::before_dom_children): Same.
10869         (gather_bbs::after_dom_children): Same.
10870         (build_scops): Same.
10871         * graphite-sese-to-poly.c (build_scop_scattering): Same.
10872         (extract_affine_chrec): Same.
10873         (extract_affine): Same.
10874         (set_scop_parameter_dim): Same.
10875         (build_loop_iteration_domains): Same.
10876         (create_pw_aff_from_tree): Same.
10877         (add_param_constraints): Same.
10878         (build_scop_iteration_domain): Same.
10879         (build_scop_drs): Same.
10880         (analyze_drs_in_stmts): Same.
10881         (insert_out_of_ssa_copy_on_edge): Same.
10882         (rewrite_close_phi_out_of_ssa):Same.
10883         (rewrite_reductions_out_of_ssa):Same.
10884         (handle_scalar_deps_crossing_scop_limits):Same.
10885         (rewrite_cross_bb_scalar_deps):Same.
10886         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
10887         (build_poly_scop):Same.
10888         (build_alias_set): Use pointer to dr_info.
10889         * graphite.c (print_graphite_scop_statistics):
10890         (graphite_transform_loops):
10891         * sese.h (struct sese_l): Remove conversion constructor.
10893 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10895         PR middle-end/67966
10896         * tree.c (verify_type): Verify that TYPE_MODE match
10897         between TYPE_CANONICAL and type.
10898         * expr.c (store_expr_with_bounds): Revert my previous change.
10899         * expmed.c (store_bit_field_1): Revert prevoius change.
10900         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
10901         to match for all types.
10903 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
10905         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
10906         nesting.
10908 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
10910         * doc/tm.texi: Regenerated.
10911         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
10912         * stor-layout.c (layout_type): Use mode to get vector mask size.
10913         * target.def (get_mask_mode): New.
10914         * targhooks.c (default_get_mask_mode): New.
10915         * targhooks.h (default_get_mask_mode): New.
10916         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
10917         for boolean vector.
10918         * tree.c (MAX_BOOL_CACHED_PREC): New.
10919         (nonstandard_boolean_type_cache): New.
10920         (build_nonstandard_boolean_type): New.
10921         (make_vector_type): Vector mask has no canonical type.
10922         (build_truth_vector_type): New.
10923         (build_same_sized_truth_vector_type): New.
10924         (truth_type_for): Support vector masks.
10925         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
10926         (build_truth_vector_type): New.
10927         (build_same_sized_truth_vector_type): New.
10928         (build_nonstandard_boolean_type): New.
10929         * tree-cfg.c (verify_gimple_comparison) Require boolean
10930         vector type for vector comparison.
10931         (verify_gimple_assign_ternary): Likewise.
10932         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
10933         condition operand.
10934         * tree-vect-stmts.c (vectorizable_condition): Use boolean
10935         vector type for vector comparison.
10936         * tree-vect-generic.c (elem_op_func): Add new operand to hold
10937         vector type.
10938         (do_unop): Adjust to modified function type.
10939         (do_binop): Likewise.
10940         (do_plus_minus): Likewise.
10941         (do_negate); Likewise.
10942         (expand_vector_piecewise): Likewise.
10943         (do_cond): Likewise.
10944         (do_compare): Use comparison instead of condition.
10945         (expand_vector_divmod): Use boolean vector type for comparison.
10946         (expand_vector_operations_1): Skip scalar mask operations.
10948 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
10950         * omp-low.c (simd_clone_create): Set in_other_partition
10951         for created clones.
10953 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
10955         * doc/extend.exp (Local Register Variables): Rewrite.
10957 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
10959         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
10960         and x*x in cases where the operands are sign ops.  Extend these
10961         rules to handle copysign as a sign op (including for cos, cosh
10962         and pow, which already treated negate and abs as sign ops).
10964 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
10966         PR target/68018
10967         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
10968         for 64-bit MS_ABI targets also when default incoming stack boundary
10969         is overriden.
10971 2015-10-21  Richard Biener  <rguenther@suse.de>
10973         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
10974         cond stmts, enhanced and split out from ...
10975         (vn_phi_eq): ... here.
10977 2015-10-21  Richard Biener  <rguenther@suse.de>
10979         PR middle-end/68031
10980         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
10981         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
10982         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
10983         make sure they are not registered for update.
10985 2015-10-21  Richard Biener  <rguenther@suse.de>
10987         PR tree-optimization/68026
10988         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
10989         unsigned VARYING values.
10991 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
10993         * asan.c (asan_emit_stack_protection): Don't pass local stack to
10994         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
10995         NULL and use local stack than.
10996         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
10997         in addition to __asan_init.
10998         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
10999         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
11000         * asan.h (asan_intercepted_p): Handle new string builtins.
11001         * ubsan.c (ubsan_use_new_style_p): New function.
11002         (ubsan_instrument_float_cast): If location is unknown, assign
11003         input_location to loc. Propagate loc to ubsan_create_data if
11004         ubsan_use_new_style_p returned true.
11006 2015-10-21  Jeff Law  <law@redhat.com>
11008         * Makefile.in (OBJS): Remove sched-vis.c
11009         * sched-vis.c: Removed.  Code moved into...
11010         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
11011         * rtl.h: Remove prototypes for functions now living in print-rtl.c
11012         * print-rtl.h Add prototypes for new functions in print-rtl.c.
11013         * auto-inc-dec.c: Include print-rtl.h
11014         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
11015         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
11017         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
11018         ATTRIBUTE_UNUSED.
11020 2015-10-21  Richard Biener  <rguenther@suse.de>
11021             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11023         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
11024         to match.pd.
11025 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
11026 about signed left shift stronger and clarify the cases when they're
11027 broken.
11028         Move (a * (1 << b)) is (a << b) to match.pd.
11029         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
11030         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
11031         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
11033         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
11034         New simplifier.
11035         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
11036         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
11037         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
11038         : New simplifier.
11039         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
11040         New simplifier.
11041         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
11043 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
11044             Szabolcs Nagy  <szabolcs.nagy@arm.com>
11045             Alan Modra  <amodra@gmail.com>
11047         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
11048         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
11049         (LINK_SPEC): Add %(link_secure_plt).
11050         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
11051         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
11053 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
11054             Szabolcs Nagy  <szabolcs.nagy@arm.com>
11056         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
11057         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
11059 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11061         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
11062         New function.
11063         (fusion_load_store): Use it.
11064         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
11065         ldp and stp in VD modes.
11066         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
11067         (store_pair<mode>, VD): Likewise.
11069 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
11071         PR rtl-optimization/67609
11072         * lra-splill.c (lra_final_code_change): Don't remove all
11073         sub-registers.
11075 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11077         * simplify-rtx.c (simplify_binary_operation): If either operand was
11078         a constant pool reference use them if all other simplifications failed.
11080 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11082         * config/aarch64/aarch64.md
11083         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
11084         * config/aarch64/aarch64-simd.md
11085         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
11086         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
11087         (aarch64_fpconst_pow_of_2): New function.
11088         (aarch64_vec_fpconst_pow_of_2): Likewise.
11089         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
11090         prototype.
11091         (aarch64_vec_fpconst_pow_of_2): Likewise.
11092         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
11093         (aarch64_fp_vec_pow2): Likewise.
11095 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
11097         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
11098         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
11099         * config/alpha/alpha.c (alpha_function_arg_advance): Update
11100         ALPHA_ARG_SIZE usage.
11101         (alpha_arg_partial_bytes): Ditto.
11103 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
11105         PR target/66810
11106         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
11107         error_mark_node decls.
11109 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
11111         PR target/67963
11112         PR target/67985
11113         * common/config/i386/i386-common.c (ix86_handle_option): Remove
11114         OPT_miamcu handling.
11115         * config/i386/i386.c (PTA_NO_80387): New macro.
11116         (processor_alias_table): Add PTA_NO_80387 to lakemont.
11117         (ix86_option_override_internal): Update MASK_80387 from
11118         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
11119         SSE math only if 80387 is supported.  Don't change
11120         MASK_FLOAT_RETURNS.
11121         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
11122         80387 is supported.
11123         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
11124         if TARGET_80387 is true and TARGET_IAMCU is false.
11125         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
11126         is true and TARGET_IAMCU_P is false.
11128 2015-10-20  Richard Biener  <rguenther@suse.de>
11130         PR tree-optimization/68017
11131         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
11133 2015-10-20  Martin Liska  <mliska@suse.cz>
11135         * cgraphclones.c (cgraph_node::create_virtual_clone):
11136         Verify cgraph_node.local.versionable instead of calling
11137         tree_versionable_function_p.
11138         * ipa-cp.c (determine_versionability): Save the information
11139         to ipa_node_params summary.
11140         (ipcp_versionable_function_p): Use it.
11141         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
11142         (ipcp_generate_summary): Do not compute cgraph_node
11143         versionability.
11144         * ipa-inline-analysis.c (inline_generate_summary): Compute
11145         versionability for all cgraph nodes.
11146         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
11147         ipa_node_params::versionability.
11148         * ipa-prop.h (struct ipa_node_params): Declare it.
11150 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11152         PR other/67868
11153         * varasm.c (assemble_variable): Move special vtv handling to..
11154         (handle_vtv_comdat_sections): .. here. New function.
11155         (output_object_block): Handle vtv sections.
11157 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11159         PR target/66912
11160         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
11162 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
11164         * doc/extend.texi: Update documentation WRT inline functions.
11166 2015-10-20  Alan Modra  <amodra@gmail.com>
11168         PR go/66870
11169         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
11170         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
11171         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
11173 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
11175         PR rtl-optimization/66790
11176         * df.h (DF_MIR): New macro.
11177         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
11178         (DF_MIR_INFO_BB): New macro.
11179         (DF_MIR_IN, DF_MIR_OUT): New macros.
11180         (struct df_mir_bb_info): New.
11181         (df_mir): New macro.
11182         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
11183         declarations.
11184         (df_mir_get_bb_info): New.
11185         * df-problems.c (struct df_mir_problem_data): New.
11186         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
11187         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
11188         df_mir_confluence_0, df_mir_confluence_n,
11189         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
11190         df_mir_bottom_dump, df_mir_verify_solution_start,
11191         df_mir_verify_solution_end): New.
11192         (problem_MIR): New.
11193         (df_mir_add_problem, df_mir_simulate_one_insn): New.
11194         * timevar.def (TV_DF_MIR): New.
11195         * ree.c: Include bitmap.h
11196         (add_removable_extension): Add an INIT_REGS parameter.  Use it
11197         to skip zero-extensions that may get an uninitialized register.
11198         (find_removable_extensions): Compute must-initialized registers
11199         using the MIR dataflow problem. Update the call to
11200         add_removable_extension.
11201         (find_and_remove_re): Call df_mir_add_problem.
11203 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
11205         * common/config/mn10300/mn10300-common.c
11206         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
11207         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
11209 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
11211         * doc/extend.texi (Explicit Register Variables): Simplify and
11212         avoid unnecessary and confusion abbreviations.  Update cross
11213         references.
11214         doc/implement-c.tex: Update cross reference.
11216 2015-10-19  Jeff Law  <law@redhat.com>
11218         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
11219         that create irreducible loops unless the path elimiantes a multiway
11220         branch.
11222 2015-10-19  Richard Biener  <rguenther@suse.de>
11224         PR tree-optimization/67975
11225         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
11226         * tree-cfg.c (extract_true_false_controlled_edges): Split out
11227         core worker from ...
11228         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
11229         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
11230         instead of block number for PHIs with two or one args.
11231         (vn_phi_eq): Compare edge predicates of PHIs that are in different
11232         blocks.
11234 2015-10-19  Richard Biener  <rguenther@suse.de>
11236         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
11237         (gimple_stmt_nonnegative_warnv_p): Use it.
11238         * match.pd (CPROJ): New operator list.
11239         (cproj (complex ...)): Move simplifications from ...
11240         * builtins.c (fold_builtin_cproj): ... here.
11242 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
11244         * config/i386/i386.c (ix86_expand_vector_move): Use
11245         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
11246         alignment.
11248 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
11250         * doc/invoke.texi: Replace @optindex with @opindex.
11252 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
11254         PR target/67995
11255         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
11256         arch= is set,  clear all bits in x_ix86_isa_flags, except for
11257         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
11259 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
11261         PR middle-end/68002
11262         * common.opt (fkeep-static-functions): New option.
11263         * doc/invoke.texi: Document it.
11264         * cgraphunit.c (cgraph_node::finalize_function): Use it.
11266 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11268         * sched-int.h (struct autopref_multipass_data_): Remove offset
11269         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
11270         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
11271         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
11272         (autopref_rank_data): New function.
11273         (autopref_rank_for_schedule): Use it.
11274         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
11276 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
11278         PR other/65800
11279         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
11281 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
11283         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
11284         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
11285         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
11286         (STANDARD_STARTFILE_PREFIX_1): New.
11287         (STANDARD_STARTFILE_PREFIX_2): New.
11289 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
11291         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
11292         (darwin_driver_init): Note a version-min when provided on the c/l.
11293         * config/darwin.h (%darwin_minversion): Remove.
11294         * config/i386/darwin.h: Likewise.
11295         * config/rs6000/darwin.h: Likewise.
11296         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
11297         rather than an arbitrary constant.
11299 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
11301         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
11302         PPC, detect conflicts between -arch and multilib settings.  Detect
11303         and warn about conflicts between multiple -arch definitions.
11305 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
11307         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
11309 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11311         * lra-constraints.c (add_next_usage_insn): Change argument type
11312         from rtx to rtx_insn *.
11314 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
11316         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
11317         for Lakemont.
11319 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
11321         * config/tilepro/gen-mul-tables.cc: Adjust include files.
11322         * config/tilegx/mul-tables.c: Regenerate.
11323         * config/tilepro/mul-tables.c: Regenerate.
11325         * config/tilegx/tilegx-c.c: Adjust include files.
11326         * config/tilegx/tilegx.c: Likewise.
11327         * config/tilepro/tilepro-c.c: Likewise.
11328         * config/tilepro/tilepro.c: Likewise.
11329         * config/aarch64/aarch64-builtins.c: Likewise.
11330         * config/aarch64/aarch64.c: Likewise.
11331         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
11332         * config/alpha/alpha.c: Likewise.
11333         * config/arc/arc.c: Likewise.
11334         * config/arm/aarch-common.c: Likewise.
11335         * config/arm/arm-builtins.c: Likewise.
11336         * config/arm/arm-c.c: Likewise.
11337         * config/arm/arm.c: Likewise.
11338         * config/avr/avr-c.c: Likewise.
11339         * config/avr/avr-devices.c: Likewise.
11340         * config/avr/avr-log.c: Likewise.
11341         * config/avr/avr.c: Likewise.
11342         * config/bfin/bfin.c: Likewise.
11343         * config/c6x/c6x.c: Likewise.
11344         * config/cr16/cr16.c: Likewise.
11345         * config/cris/cris.c: Likewise.
11346         * config/darwin-c.c: Likewise.
11347         * config/darwin-driver.c: Likewise.
11348         * config/darwin.c: Likewise.
11349         * config/default-c.c: Likewise.
11350         * config/epiphany/epiphany.c: Likewise.
11351         * config/epiphany/mode-switch-use.c: Likewise.
11352         * config/epiphany/resolve-sw-modes.c: Likewise.
11353         * config/fr30/fr30.c: Likewise.
11354         * config/frv/frv.c: Likewise.
11355         * config/ft32/ft32.c: Likewise.
11356         * config/glibc-c.c: Likewise.
11357         * config/h8300/h8300.c: Likewise.
11358         * config/i386/host-cygwin.c: Likewise.
11359         * config/i386/host-mingw32.c: Likewise.
11360         * config/i386/i386-c.c: Likewise.
11361         * config/i386/i386.c: Likewise.
11362         * config/i386/msformat-c.c: Likewise.
11363         * config/i386/winnt-cxx.c: Likewise.
11364         * config/i386/winnt-stubs.c: Likewise.
11365         * config/i386/winnt.c: Likewise.
11366         * config/ia64/ia64-c.c: Likewise.
11367         * config/ia64/ia64.c: Likewise.
11368         * config/iq2000/iq2000.c: Likewise.
11369         * config/lm32/lm32.c: Likewise.
11370         * config/m32c/m32c-pragma.c: Likewise.
11371         * config/m32c/m32c.c: Likewise.
11372         * config/m32r/m32r.c: Likewise.
11373         * config/mcore/mcore.c: Likewise.
11374         * config/mep/mep-pragma.c: Likewise.
11375         * config/mep/mep.c: Likewise.
11376         * config/microblaze/microblaze-c.c: Likewise.
11377         * config/microblaze/microblaze.c: Likewise.
11378         * config/mips/mips-tables.opt
11379         * config/mips/mips.c: Likewise.
11380         * config/mmix/mmix.c: Likewise.
11381         * config/mn10300/mn10300.c: Likewise.
11382         * config/moxie/moxie.c: Likewise.
11383         * config/msp430/msp430-c.c: Likewise.
11384         * config/msp430/msp430.c: Likewise.
11385         * config/nds32/nds32-cost.c: Likewise.
11386         * config/nds32/nds32-fp-as-gp.c: Likewise.
11387         * config/nds32/nds32-intrinsic.c: Likewise.
11388         * config/nds32/nds32-isr.c: Likewise.
11389         * config/nds32/nds32-md-auxiliary.c: Likewise.
11390         * config/nds32/nds32-memory-manipulation.c: Likewise.
11391         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11392         * config/nds32/nds32-predicates.c: Likewise.
11393         * config/nds32/nds32.c: Likewise.
11394         * config/nios2/nios2.c: Likewise.
11395         * config/nvptx/mkoffload.c: Likewise.
11396         * config/nvptx/nvptx.c: Likewise.
11397         * config/pa/pa.c: Likewise.
11398         * config/pdp11/pdp11.c: Likewise.
11399         * config/rl78/rl78-c.c: Likewise.
11400         * config/rl78/rl78.c: Likewise.
11401         * config/rs6000/host-darwin.c: Likewise.
11402         * config/rs6000/rs6000-c.c: Likewise.
11403         * config/rs6000/rs6000-linux.c: Likewise.
11404         * config/rs6000/rs6000.c: Likewise.
11405         * config/rx/rx.c: Likewise.
11406         * config/s390/s390-c.c: Likewise.
11407         * config/s390/s390.c: Likewise.
11408         * config/sh/sh-c.c: Likewise.
11409         * config/sh/sh-mem.cc: Likewise.
11410         * config/sh/sh.c: Likewise.
11411         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
11412         * config/sh/sh_treg_combine.cc: Likewise.
11413         * config/sol2-c.c: Likewise.
11414         * config/sol2-cxx.c: Likewise.
11415         * config/sol2-stubs.c: Likewise.
11416         * config/sol2.c: Likewise.
11417         * config/sparc/sparc-c.c: Likewise.
11418         * config/sparc/sparc.c: Likewise.
11419         * config/spu/spu-c.c: Likewise.
11420         * config/spu/spu.c: Likewise.
11421         * config/stormy16/stormy16.c: Likewise.
11422         * config/v850/v850-c.c: Likewise.
11423         * config/v850/v850.c: Likewise.
11424         * config/vax/vax.c: Likewise.
11425         * config/visium/visium.c: Likewise.
11426         * config/vms/vms-c.c: Likewise.
11427         * config/vms/vms.c: Likewise.
11428         * config/vxworks.c: Likewise.
11429         * config/winnt-c.c: Likewise.
11430         * config/xtensa/xtensa.c: Likewise.
11432 2015-10-16  Christian Bruel  <christian.bruel@st.com>
11434         PR target/67745
11435         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
11436         (FUNCTION_BOUNDARY_P): New macro:
11437         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
11438         New hook.
11439         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
11440         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
11441         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
11442         * function.c (allocate_struct_function): Call
11443         relayout_function hook.
11444         * passes.c (rest_of_decl_compilation): Likewise.
11446 2015-10-16  Christian Bruel  <christian.bruel@st.com>
11448         PR target/67745
11449         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
11450         * config/arm/arm.c (arm_option_override_internal): Call
11451         arm_override_options_after_change_1.
11452         (arm_override_options_after_change): New function.
11453         (arm_override_options_after_change_1): Likewise.
11454         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
11456 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
11458         Revert:
11459         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
11460         empty constructors.
11462 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
11464         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
11465         argument is an ADDR_EXPR.
11467 2015-10-16  Richard Biener  <rguenther@suse.de>
11469         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
11470         and get rid of force_gimple_operand_gsi.
11471         (gimple_fold_builtin_memory_chk): Likewise.
11472         (gimple_fold_builtin_stxcpy_chk): Likewise.
11473         (rewrite_to_defined_overflow): Likewise.
11474         (gimple_convert_to_ptrofftype): New function.
11475         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
11477 2015-10-16  Richard Biener  <rguenther@suse.de>
11479         * tree-nested.h (build_addr): Adjust prototype.
11480         * tree-nested.c (build_addr): Remove context argument and use
11481         mark_addressable.
11482         (get_static_chain): Adjust calls to build_addr.
11483         (convert_nl_goto_reference): Likewise.
11484         (convert_tramp_reference_op): Likewise.
11485         (finalize_nesting_tree_1): Likewise.
11486         * value-prof.c (gimple_ic): Likewise.
11487         * gimple-low.c (lower_builtin_setjmp): Likewise.
11488         * tree-parloops.c (take_address_of): Likewise.
11489         (create_call_for_reduction_1): Likewise.
11490         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
11491         (gimple_gen_ic_func_profiler): Likewise.
11493 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
11495         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
11496         empty constructors.
11498 2015-10-16  Michael Collison  <michael.collison@linaro.org>
11499             Andrew Pinski <andrew.pinski@caviumnetworks.com>
11501         * match.pd ((x < y) && (x < z) -> x < min (y,z),
11502         (x > y) and (x > z) -> x > max (y,z))
11504 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
11505             Szabolcs Nagy  <szabolcs.nagy@arm.com>
11507         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
11508         (DYNAMIC_LINKER): Renamed to ...
11509         (GLIBC_DYNAMIC_LINKER): This.
11510         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
11512 2015-10-15  Marek Polacek  <polacek@redhat.com>
11514         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
11515         gimple_call_builtin instead of is_gimple_call.
11517 2015-10-15  Richard Biener  <rguenther@suse.de>
11519         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
11521 2015-10-15  Richard Biener  <rguenther@suse.de>
11523         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
11524         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
11525         * tree-vect-loop.c (get_initial_def_for_induction): Drop
11526         use of force_gimple_operand in favor of gimple_build.
11527         Use vect_get_new_ssa_name.
11528         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
11529         (vectorizable_mask_load_store): Likewise.
11530         (vectorizable_call): Likewise.
11531         (vectorizable_store): Likewise.
11532         (vectorizable_load): Likewise.
11533         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
11535 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
11537         PR tree-optimization/67945
11538         * tree-pass.h (PROP_gimple_opt_math): New property flag.
11539         * generic-match-head.c (canonicalize_math_p): New function.
11540         * gimple-match-head.c: Include tree-pass.h.
11541         (canonicalize_math_p): New function.
11542         * match.pd: Group math built-in rules into simplifications
11543         and canonicalizations.  Guard the latter with canonicalize_math_p.
11544         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
11545         PROP_gimple_opt_math property.
11547 2015-10-15  Marek Polacek  <polacek@redhat.com>
11549         PR tree-optimization/67953
11550         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
11552 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
11554         * config.gcc: Recognize "." in architecture base name for AArch64.
11556 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
11558         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
11559         ROUND_UP macro.
11560         * config/mips/mips.c (mips_setup_incoming_varargs): Use
11561         ROUND_DOWN to calculate off.
11562         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
11563         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
11564         rounded_size.
11566 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
11568         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
11570 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
11571             Torvald Riegel  <triegel@redhat.com>
11573         PR target/67281
11574         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
11575         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
11576         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
11577         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
11578         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
11579         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
11580         trechkpt, treclaim, tsr, ttest): New define_expands.
11581         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
11582         __TM_FENCE__ for htm.
11583         * doc/extend.texi: Update documentation for htm builtins.
11585 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
11587         PR target/67967
11588         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
11589         REG_CFA_EXPRESSION to aligned SSE stores.
11591 2015-10-14  Jeff Law  <law@redhat.com>
11593         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
11594         num_threaded_edges for successful FSM threads too.
11596 2015-10-14  Richard Biener  <rguenther@suse.de>
11598         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
11599         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
11600         (vect_get_vec_def_for_operand): Remove unused parameter.
11601         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
11602         (vect_create_epilog_for_reduction): Likewise.
11603         (vectorizable_reduction): Likewise.
11604         (vectorizable_live_operation): Likewise.
11605         * tree-vect-patterns.c (type_conversion_p): Likewise.
11606         (vect_recog_vector_vector_shift_pattern): Likewise.
11607         (check_bool_pattern): Likewise.
11608         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
11609         (vect_analyze_slp_cost_1): Likewise.
11610         * tree-vect-stmts.c (process_use): Likewise.
11611         (vect_get_vec_def_for_operand): Do not handle reductions.
11612         (vect_get_vec_defs): Adjust.
11613         (vectorizable_mask_load_store): Likewise.
11614         (vectorizable_call): Likewise.
11615         (vectorizable_simd_clone_call): Likewise.
11616         (vect_get_loop_based_defs): Likewise.
11617         (vectorizable_conversion): Likewise.
11618         (vectorizable_assignment): Likewise.
11619         (vectorizable_shift): Likewise.
11620         (vectorizable_operation): Likewise.
11621         (vectorizable_store): Likewise.
11622         (vectorizable_load): Likewise.
11623         (vect_is_simple_cond): Likewise.
11624         (vectorizable_condition): Likewise.
11625         (vect_is_simple_use): Remove unused parameters.
11626         (vect_is_simple_use_1): Adjust and rename.
11628 2015-10-14  Richard Biener  <rguenther@suse.de>
11630         PR tree-optimization/67915
11631         * match.pd: Handle comparisons of addresses of STRING_CSTs.
11632         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
11633         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
11634         stmt folding in favor of GIMPLE one.
11636 2015-10-14  Marek Polacek  <polacek@redhat.com>
11638         PR tree-optimization/67815
11639         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
11640         (reassociate_bb): Call it.
11642 2015-10-14  Richard Biener  <rguenther@suse.de>
11644         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
11645         Reset info at start.
11646         (vect_analyze_group_access_1): Add debug print.
11647         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
11648         (vect_compute_single_scalar_iteration_cost): ... to this.
11649         (vect_analyze_loop_2): Adjust.
11650         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
11651         * tree-vectorizer.h: ... here.
11652         (add_stmt_info_to_vec): Remove.
11653         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
11655 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11657         * targhooks.c (default_target_option_pragma_parse): Do not warn if
11658         called on behalf of "#pragma GCC pop_options".
11660 2015-10-14  Tom de Vries  <tom@codesourcery.com>
11662         * cfganal.c (verify_no_unreachable_blocks): New function.
11663         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
11664         verify_no_unreachable_blocks.
11665         cfganal.h (verify_no_unreachable_blocks): Declare.
11667 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
11669         * common.opt: Add flag_checking.
11670         * system.h (CHECKING_P): Define.
11672 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
11673             Aldy Hernandez  <aldyh@redhat.com>
11674             Ilya Verbin  <ilya.verbin@intel.com>
11676         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
11677         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
11678         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
11679         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
11680         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
11681         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
11682         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
11683         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
11684         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
11685         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
11686         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
11687         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
11688         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
11689         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
11690         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
11691         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
11692         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
11693         (struct cgraph_simd_clone_arg): Adjust comment.
11694         * coretypes.h (struct gomp_ordered): New forward decl.
11695         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
11696         set critical clauses to it.
11697         (gimple_build_omp_ordered): Return gomp_ordered * instead of
11698         gimple *.  Add CLAUSES argument, set ordered clauses to it.
11699         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
11700         GIMPLE_OMP_ORDERED.
11701         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
11702         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
11703         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
11704         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
11705         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
11706         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
11707         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
11708         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
11709         renumber
11710         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
11711         (gomp_critical): Add clauses field.
11712         (gomp_ordered): New struct.
11713         (is_a_helper <gomp_ordered *>::test): New inline.
11714         (gimple_build_omp_critical): Add CLAUSES argument.
11715         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
11716         instead of gimple *.
11717         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
11718         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
11719         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
11720         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
11721         inline functions.
11722         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
11723         (dump_gimple_omp_target): Handle enter data and exit data.
11724         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
11725         (dump_gimple_omp_critical): Print clauses.
11726         (dump_gimple_omp_ordered): New function.
11727         (dump_gimple_omp_task): Handle taskloop.
11728         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
11729         GIMPLE_OMP_ORDERED.
11730         * gimple-walk.c (walk_gimple_op): Walk clauses on
11731         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
11732         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
11733         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
11734         (struct gimplify_omp_ctx): Add loop_iter_var,
11735         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
11736         and target_firstprivatize_array_bases fields.
11737         (delete_omp_context): Release loop_iter_var.
11738         (gimplify_bind_expr): Handle ORT_NONE.
11739         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
11740         ORT_COMBINED_TARGET.
11741         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
11742         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
11743         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
11744         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
11745         ctx->target_map_scalars_firstprivate.
11746         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
11747         data sharing clauses.  For data sharing clause with VLA decl
11748         on omp target/target data don't add firstprivate for the pointer.
11749         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
11750         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
11751         the addition of ORT_COMBINED_TARGET.
11752         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
11753         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
11754         pointers as zero length array sections and
11755         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
11756         data sharing.
11757         (omp_check_private): Handle omp_member_access_dummy_var vars.
11758         (find_decl_expr): New function.
11759         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
11760         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
11761         Handle OMP_CLAUSE_GANG separately.  Handle
11762         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
11763         clauses.  Diagnose linear clause on combined
11764         distribute {, parallel for} simd construct, unless it is the loop
11765         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
11766         Handle map clauses with COMPONENT_REF.  Initialize
11767         ctx->target_map_scalars_firstprivate,
11768         ctx->target_firstprivatize_array_bases and
11769         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
11770         linear clause even to target region if combined.  Remove
11771         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
11772         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
11773         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
11774         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
11775         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
11776         For linear clause on worksharing loop combined with parallel add
11777         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
11778         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
11779         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
11780         taskloop if needed.
11781         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
11782         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
11783         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
11784         GOMP_MAP_POINTER.
11785         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
11786         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
11787         in target body.  Handle removal of struct mapping if struct is not
11788         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
11789         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
11790         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
11791         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
11792         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
11793         clause appear together.  Handle
11794         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
11795         clause if it has map-type-modifier always.  Handle
11796         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
11797         clauses.
11798         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
11799         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
11800         callers.
11801         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
11802         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
11803         iterators in doacross loops.
11804         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
11805         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
11806         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
11807         for the addition of ORT_COMBINED_TARGET.
11808         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
11809         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
11810         and OMP_TARGET_EXIT_DATA.
11811         (gimplify_omp_ordered): New function.
11812         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
11813         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
11814         Gimplify clauses on OMP_CRITICAL.
11815         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
11816         expand_GOMP_SIMD_ORDERED_END): New functions.
11817         * internal-fn.def (GOMP_SIMD_ORDERED_START,
11818         GOMP_SIMD_ORDERED_END): New internal functions.
11819         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
11820         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
11821         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
11822         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
11823         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
11824         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
11825         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
11826         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
11827         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
11828         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
11829         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
11830         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
11831         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
11832         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
11833         adjust type.
11834         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
11835         GOMP_target_data_41, adjust type.
11836         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
11837         GOMP_target_update_41, adjust type.
11838         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
11839         field.
11840         (struct omp_for_data): Add ordered and simd_schedule fields.
11841         (omp_member_access_dummy_var, unshare_and_remap_1,
11842         unshare_and_remap, is_taskloop_ctx): New functions.
11843         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
11844         (extract_omp_for_data): Handle taskloops and doacross loops
11845         and simd schedule modifier.
11846         (omp_adjust_chunk_size): New function.
11847         (get_ws_args_for): Use it.
11848         (lookup_sfield): Change first argument to splay_tree_key,
11849         add overload with first argument tree.
11850         (maybe_lookup_field): Likewise.
11851         (use_pointer_for_field): Handle omp_member_access_dummy_var.
11852         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
11853         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
11854         (build_outer_var_ref): Add LASTPRIVATE argument, handle
11855         taskloops and omp_member_access_dummy_var vars.
11856         (build_sender_ref): Change first argument to splay_tree_key,
11857         add overload with first argument tree.
11858         (install_var_field): For mask & 8 use &DECL_UID as key instead
11859         of the tree itself.
11860         (fixup_child_record_type): Const qualify *.omp_data_i.
11861         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
11862         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
11863         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
11864         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
11865         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
11866         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
11867         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
11868         kinds.
11869         (add_taskreg_looptemp_clauses): New function.
11870         (scan_omp_parallel): Use it.
11871         (scan_omp_task): Likewise.
11872         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
11873         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
11874         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
11875         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
11876         sandwiched taskloop constructs.  Type check
11877         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
11878         region.  Diagnose depend(source) or depend(sink:...) on
11879         target constructs or task/taskloop.
11880         (handle_simd_reference): Use get_name.
11881         (lower_rec_input_clauses): Likewise.  Ignore all
11882         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
11883         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
11884         before passing it to omp_clause_{default,copy}_ctor.  Handle
11885         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
11886         lastprivate_firstprivate flag for linear that needs copyin and
11887         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
11888         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
11889         on taskloop lookup decl in outer context.  Pass true to
11890         build_outer_var_ref lastprivate argument.  Handle
11891         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
11892         outside of outer taskloop for.
11893         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
11894         OMP_CLAUSE_DECL.
11895         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
11896         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
11897         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
11898         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
11899         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
11900         abstract origin.  Handle omp_member_access_dummy_var vars.
11901         (expand_parallel_call): Use expand_omp_build_assign.
11902         (expand_task_call): Handle taskloop construct expansion.  Add
11903         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
11904         integers.  Add priority argument to GOMP_task* calls.  Or in
11905         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
11906         GOMP_task call.
11907         (expand_omp_build_assign): Add prototype.  Add AFTER
11908         argument, if true emit statements after *GSI_P and continue linking.
11909         (expand_omp_taskreg): Adjust expand_task_call caller.
11910         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
11911         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
11912         zero_iter2_bb and first_zero_iter2 arguments, handle computation
11913         of counts even for ordered loops.
11914         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
11915         (expand_omp_ordered_source, expand_omp_ordered_sink,
11916         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
11917         functions.
11918         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
11919         clauses on worksharing loop.  Handle DOACROSS loop expansion.
11920         (expand_omp_for_static_nochunk): Handle linear clauses on
11921         worksharing loop.  Adjust expand_omp_for_init_counts
11922         callers.
11923         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
11924         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
11925         expand_omp_for_init_counts callers.
11926         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
11927         functions.
11928         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
11929         Handle doacross loops.
11930         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
11931         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
11932         GOMP_target_{41,update_41,enter_exit_data} libcalls.
11933         (expand_omp): Don't expand ordered depend constructs here, record
11934         ord_stmt instead for later expand_omp_for_generic.
11935         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
11936         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
11937         clause as stand-alone directive.
11938         (lower_omp_ordered_clauses): New function.
11939         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
11940         don't lower anything.
11941         (lower_omp_for_lastprivate): Use last _looptemp_ clause
11942         on taskloop for comparison.
11943         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
11944         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
11945         expansion for linear adjustments.
11946         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
11947         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
11948         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
11949         to tree * pointing to the stmt's clauses.
11950         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
11951         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
11952         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
11953         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
11954         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
11955         clauses.  Always use short kind and 8-bit align shift.
11956         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
11957         (struct lower_omp_regimplify_operands_data): New type.
11958         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
11959         New functions.
11960         (lower_omp_1): Use lower_omp_regimplify_operands instead of
11961         gimple_regimplify_operands.
11962         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
11963         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
11964         clause as stand-alone directive.
11965         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
11966         (simd_clone_mangle): Mangle the various linear kinds
11967         per the new ABI.
11968         (simd_clone_adjust_argument_types): Handle
11969         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
11970         (simd_clone_init_simd_arrays): Don't do anything for uval.
11971         (simd_clone_adjust): Handle
11972         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
11973         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
11974         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
11975         * omp-low.h (omp_member_access_dummy_var): New prototype.
11976         * passes.def (pass_simduid_cleanup): Schedule another copy of the
11977         pass after all optimizations.
11978         * tree.c (omp_clause_code_name): Add entries for
11979         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
11980         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
11981         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
11982         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
11983         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
11984         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
11985         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
11986         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
11987         clauses.
11988         * tree-core.h (enum omp_clause_linear_kind): New.
11989         (struct tree_omp_clause): Change type of map_kind
11990         from unsigned char to unsigned int.  Add subcode.if_modifier
11991         and subcode.linear_kind fields.
11992         (enum omp_clause_code): Add
11993         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
11994         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
11995         (OMP_CLAUSE_REDUCTION): Document
11996         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
11997         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
11998         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
11999         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
12000         operand.
12001         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
12002         operand.
12003         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
12004         codes.
12005         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
12006         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
12007         char.
12008         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
12009         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
12010         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
12011         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
12012         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
12013         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
12014         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
12015         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
12016         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
12017         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
12018         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
12019         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
12020         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
12021         * tree-inline.c (remap_gimple_stmt): Handle clauses on
12022         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
12023         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
12024         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
12025         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
12026         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
12027         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
12028         (convert_local_omp_clauses): Likewise.
12029         * tree-pretty-print.c (dump_omp_clause): Handle
12030         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
12031         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
12032         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
12033         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
12034         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
12035         GOMP_MAP_FORCE_DEALLOC.  Handle
12036         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
12037         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
12038         and clauses on OMP_ORDERED and OMP_CRITICAL.
12039         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
12040         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
12041         (vectorize_loops): Adjust comments.
12042         (pass_simduid_cleanup::execute): Likewise.
12043         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
12044         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
12045         * wide-int.h (wi::gcd): New.
12047 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
12049         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
12050         (ix86_function_arg_advance): Ditto.
12051         (ix86_function_arg): Ditto.
12052         (ix86_gimplify_va_arg): Ditto.
12053         (ix86_class_max_nregs): Ditto.
12054         (inline_memory_move_cost): Ditto.
12055         (ix86_set_reg_reg_cost): Ditto.
12056         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
12058 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
12060         PR middle-end/67912
12061         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
12063 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
12065         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
12066         ROUND_UP macro and UNITS_PER_WORD * 2.
12067         * config/sparc/sparc.c (sparc_compute_frame_size):
12068         Use ROUND_UP and ROUND_DOWN macros where applicable.
12069         (function_arg_record_value, function_arg_record_value_1)
12070         (function_arg_record_value_1): Ditto.
12071         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
12072         alignment to double-word.
12073         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
12074         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
12075         rounded_size.
12077 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
12079         * rtl.h (print_insn): Fix prototype.
12081 2015-10-13  Tom de Vries  <tom@codesourcery.com>
12083         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
12084         -1.  Add assert that returned entry matches phi argument.
12085         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
12086         free_stmt_vec_info_vec ...
12087         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
12088         with -1.
12090 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
12092         PR tree-optimization/67909, 67947
12093         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
12094         really skip the inner loop.
12096 2015-10-13  Jeff Law  <law@redhat.com>
12098         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12099         Allow single block jump threading paths.
12101 2015-10-13  Tom de Vries  <tom@codesourcery.com>
12103         PR tree-optimization/67476
12104         * doc/invoke.texi (@item parloops-schedule): New item.
12105         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
12106         * tree-parloops.c: Include params-enum.h.
12107         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
12109 2015-10-13  Tom de Vries  <tom@codesourcery.com>
12111         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
12112         * params-enum.h: New file.
12113         * opts.c (handle_param): Handle case that param arg is a string.
12114         * params-list.h: Handle DEFPARAMENUM5 in params.def.
12115         * params.c (find_param): New function, factored out of ...
12116         (set_param_value): ... here.
12117         (param_string_value_p): New function.
12118         * params.h (struct param_info): Add value_names field.
12119         (find_param, param_string_value_p): Declare.
12121 2015-10-13  Tom de Vries  <tom@codesourcery.com>
12123         PR tree-optimization/67476
12124         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
12126 2015-10-13  Richard Biener  <rguenther@suse.de>
12128         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
12129         the data dependence vector.
12130         (vect_peeling_hash_insert): Get the peeling hash table as argument.
12131         (vect_peeling_hash_get_lowest_cost): Likewise.
12132         (vect_enhance_data_refs_alignment): Adjust.
12133         (struct _vect_peel_info, struct _vect_peel_extended_info,
12134         struct peel_info_hasher): Move from ...
12135         * tree-vectorizer.h: ... here.
12136         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
12137         (LOOP_VINFO_PEELING_HTAB): Likewise.
12138         (struct _loop_vec_info): Remove min_profitable_iters and
12139         peeling_htab members.
12140         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
12141         here.
12142         (destroy_loop_vec_info): Adjust.
12143         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
12144         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
12145         to estimate alias versioning cost.
12146         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
12148 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
12150         * real.h (real_isinteger): Declare.
12151         * real.c (real_isinteger): New function.
12152         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
12153         if y is an even integer.
12155 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
12157         revert:
12158         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
12159         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
12160         counts when these are more informative.
12162 2015-10-12  Jeff Law  <law@redhat.com>
12164         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
12165         (fsm_find_control_stmt_paths): Change name of first argument to
12166         more accurately relfect what it really is.  Handle simplification
12167         of GIMPLE_COND after finding a thread path for NAME.
12168         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
12169         nontrivial conditions to be handled by FSM threader.
12170         (thread_through_normal_block): Extract the name to looup via
12171         FSM threader from COND_EXPR.
12173         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
12174         restriction that traced SSA_NAME is a user variable.
12176 2015-10-12  Tom de Vries  <tom@codesourcery.com>
12178         PR tree-optimization/67476
12179         * omp-low.c (expand_omp_for_generic): Add missing phis.
12181 2015-10-12  Tom de Vries  <tom@codesourcery.com>
12183         PR tree-optimization/67476
12184         * omp-low.c (expand_omp_for_generic): Handle simple latch.
12186 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
12188         * config/aarch64/aarch64-simd-builtins.def: Update builtins
12189         tables: add tbl3 and tbx4.
12190         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
12191         (aarch64_tbx4v8qi): New.
12192         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
12193         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
12194         Rewrite using builtin functions.
12195         * config/aarch64/iterators.md (UNSPEC_TBX): New.
12197 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
12199         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
12200         ROUND_UP macro.
12201         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
12202         Use ROUND_UP and ROUND_DOWN macros where applicable.
12203         (rs6000_darwin64_record_arg_flush): Ditto.
12204         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
12205         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
12206         rounded_size.
12208 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
12210         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
12211         (AARCH64_ROUND_DOWN): Ditto.
12212         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
12214 2015-10-12  Richard Biener  <rguenther@suse.de>
12216         PR ipa/67783
12217         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
12218         code that analyzes IVs on each stmt but in a cheaper way avoiding
12219         quadratic behavior.
12221 2015-10-12  Nick Clifton  <nickc@redhat.com>
12223         * config/msp430/msp430.c (msp430_mcu_names): Rename to
12224         msp430_mcu_data, add fields for ISA and hardware multiply
12225         support.  Import latest data from the devices.csv file.
12226         (msp430_override_option): Use the data from the new array.
12227         (msp430_use_f5_series_hwmult): Likewise.
12228         (use_32bit_hwmult): Likewise.
12229         (msp430_no_hwmult): Likewise.
12230         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
12231         MCU names.
12232         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
12233         not recognised then no hardware multiply support is assumed and
12234         that only the MSP430 ISA is allowed.
12236 2015-10-12  Richard Biener  <rguenther@suse.de>
12238         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
12239         related code ...
12240         (vect_analyze_loop_2): ... here.
12242 2015-10-11  Jason Merrill  <jason@redhat.com>
12244         PR c++/67557
12245         * expr.c (store_field): Call store_constructor directly when
12246         storing a CONSTRUCTOR into a target smaller than its type.
12247         Guard against unsafe bitwise copy.
12249 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
12251         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
12252         counts when these are more informative.
12254 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
12256         * tree-profile.c (tree_profiling): Do not clear
12257         pure/const when not instrumenting.
12258         (pass tree_profile): Add dump of symtab.
12260 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
12262         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
12263         addresses.
12264         (fold_addr_of_array_ref_difference): Likewise.
12266 2015-10-11  Jeff Law  <law@redhat.com>
12268         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
12269         tree-ssa-threadbackward.c.
12270         (fsm_find_control_statement_thread_paths): Likewise.
12271         (thread_through_normal_block): Break out FSM bits and move them
12272         into a new function in tree-ssa-threadbackward.c.  Call new function
12273         instead.
12274         Minimize header file usage.
12275         * tree-ssa-threadbackward.h: New file.
12276         * tree-ssa-threadbackward.c: Likewise.
12277         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
12279 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
12281         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
12283 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
12285         PR rtl-optimization/67864
12286         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
12287         fallthrough edges for conditional jumps.  Don't sort candidate
12288         edges if not optimizing for speed.
12290 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12292         * defaults.h (REVERSE_CONDITION): New default definition.
12293         * jump.c (reversed_comparison_code_parts): Adjust.
12295 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12297         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
12298         check HARD_FRAME_POINTER_IS_ARG_POINTER.
12300 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12302         * defaults.h (FRAME_ADDR_RTX): New default definition.
12303         * builtins.c (expand_builtin_return_addr): Adjust.
12305 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12307         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
12308         * builtins.c (expand_builtin_return_addr): Adjust.
12310 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12312         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
12313         * builtins.c (expand_builtin_return_addr): Adjust.
12314         * doc/tm.texi: Likewise.
12315         * doc/tm.texi.in: Likewise.
12316         * except.c (expand_builtin_unwind_init): Likewise.
12318 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12320         * builtins.c (expand_builtin_return_addr): Adjust.
12321         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
12323 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
12325         * tree.c (type_with_interoperable_signedness): New.
12326         (gimple_canonical_types_compatible_p): Use it.
12327         * tree.h (type_with_interoperable_signedness): Declare
12329 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
12331         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
12332         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
12333         when OEP_ADDRESS_OF is se.
12335 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
12336             Sebastian Pop  <s.pop@samsung.com>
12338         * graphite-dependences.c (scop_get_dependences): Add dump of the
12339         data dependence graph.
12340         * graphite-poly.c (print_isl_union_map): New.
12341         (debug_isl_union_map): New.
12342         * graphite-poly.h (print_isl_union_map): Declare.
12343         (debug_isl_union_map): Declare.
12345 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
12346             Sebastian Pop  <s.pop@samsung.com>
12348         * graphite-poly.c (print_iteration_domain): Remove verbosity.
12349         Remove OpenScop formatting.
12350         (print_iteration_domains): Same.
12351         (debug_iteration_domain): Same.
12352         (debug_iteration_domains): Same.
12353         (print_pdr): Same.
12354         (debug_pdr): Same.
12355         (dump_gbb_cases): Same.
12356         (dump_gbb_conditions): Same.
12357         (print_pdrs): Same.
12358         (debug_pdrs): Same.
12359         (print_pbb_body): Same.
12360         (print_pbb): Same.
12361         (print_scop_params): Same.
12362         (print_scop_context): Same.
12363         (print_scop): Same.
12364         (debug_pbb_domain): Same.
12365         (debug_pbb): Same.
12366         (debug_scop_context): Same.
12367         (debug_scop): Same.
12368         (debug_scop_params): Same.
12369         * graphite-poly.h: Same.
12370         * graphite.c (graphite_transform_loops): Same.
12372 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12374         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
12375         call that isn't needed.
12377 2015-10-09  Jeff Law  <law@redhat.com>
12379         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
12380         rather than moving each name to the freelist individually.
12382 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
12384         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
12385         * frame-header-opt.c: New file.
12386         * config/mips/mips-proto.h (mips_register_frame_header_opt):
12387         Add prototype.
12388         * config/mips/mips.c (mips_compute_frame_info): Check
12389         optimize_call_stack flag.
12390         (mips_option_override): Register new frame_header_opt pass.
12391         (mips_frame_info, mips_int_mask, mips_shadow_set,
12392         machine_function): Move these types to...
12393         * config/mips/mips.h: here.
12394         (machine_function): Add does_not_use_frame_header and
12395         optimize_call_stack fields.
12396         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
12397         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
12398         Document new flags.
12399         * config/mips/mips.opt (mframe-header-opt): Add new option.
12401 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
12403         * config/i386/i386.c
12404         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
12405         ROUND_DOWN where applicable.
12407 2015-10-09  Jeff Law  <law@redhat.com>
12409         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
12410         correct statement.
12412 2015-10-09  Renlin Li  <renlin.li@arm.com>
12414         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
12415         operands[0] and operands[2].
12416         (neon_vtrn<mode>_insn): Likewise.
12417         (neon_vzip<mode>_insn): Likewise.
12419 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12421         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
12422         ((X & C2) << C1): Expand to...
12423         (X {&,^,|} C2 << C1): ...This.
12424         ((X & C2) >> C1): Expand to...
12425         (X {&,^,|} C2 >> C1): ...This.
12427 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
12429         PR target/67895
12430         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
12431         Adjust embedded rounding/SAE specifier position.
12432         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
12433         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
12434         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
12435         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
12436         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
12437         Likewise.
12438         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
12440 2015-10-09  Martin Jambor  <mjambor@suse.cz>
12442         tree-optimization/67794
12443         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
12444         between types of state,ents but accept original definitions as a
12445         parameter.
12446         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
12447         iterate over definitions.
12449 2015-10-09  James Norris  <jnorris@codesourcery.com>
12451         * config/rs6000/rs6000.c (rs6000_offload_options): New.
12452         (TARGET_OFFLOAD_OPTIONS): New.
12454 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
12456         PR middle-end/67891
12457         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
12459         PR middle-end/67766
12460         * function.c (expand_function_end): Move return value
12461         promotion past the handling of PARALLELs and CONCATs.
12463         PR rtl-optimization/67828
12464         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
12465         (tree_may_unswitch_on): Don't unswitch on expressions
12466         involving undefined values.
12468 2015-10-09  Richard Biener  <rguenther@suse.de>
12470         * genmatch.c (print_operand): Fix formatting.
12471         (dt_node::append_simplify): Warn for multiple simplifiers
12472         that match the same pattern.
12473         * match.pd (log (exp @0)): Remove duplicates.
12475 2015-10-09  Richard Biener  <rguenth@suse.de>
12477         PR target/67366
12478         * gimple-fold.c (optabs-query.h): Include
12479         (gimple_fold_builtin_memory_op): Allow unaligned stores
12480         when movmisalign_optabs are available.
12482 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12484         PR target/67366
12485         * config/arm/arm.md (movmisalign<mode>): New.
12486         * config/arm/iterators.md (HSI): New.
12488 2015-10-09  Richard Biener  <rguenther@suse.de>
12490         PR tree-optimization/67891
12491         * gimple-match.h (gimple_simplified_result_is_gimple_val):
12492         New helper.
12493         (gimple_resimplify1): Declare.
12494         (gimple_resimplify2): Likewise.
12495         (gimple_resimplify3): Likewise.
12496         * gimple-match-head.c (gimple_resimplify1): Export.
12497         (gimple_resimplify2): Likewise.
12498         (gimple_resimplify3): Likewise.
12499         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
12500         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
12501         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
12502         to avoid creating stmts without VN info.
12504 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
12506         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
12507         of availability.
12509 2015-10-08  Jeff Law  <law@redhat.com>
12511         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
12512         and release_ssa_name in two places.
12513         (gimple_stringop_fixed_value): Similarly.
12515         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
12516         release_defs.
12518         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
12519         unlink_stmt_vdef and release_ssa_name_fn.
12521         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
12522         release_defs.
12524 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
12526         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
12527         SSE register save area to 16 bytes only if the incoming stack
12528         boundary is no less than 16 bytes.
12530 2015-10-08  Jeff Law  <law@redhat.com>
12532         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
12533         release_ssa_name.  Fix typo in comment.
12535 2015-10-08  Nathan Sidwell  <nathan@acm.org>
12537         * config/nvptx/nvptx.h (struct machine_function): Add comment.
12538         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
12539         may return pointer as well as in memory.
12540         (nvptx_output_return): Likewise.
12542 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
12544         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
12545         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
12546         * match.pd: Add rules previously handled by fold_builtin_sqrt
12547         and fold_builtin_cbrt.
12549 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
12551         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
12552         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
12553         * fold-const.h (tree_unary_nonnegative_warnv_p)
12554         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
12555         (tree_expr_nonnegative_warnv_p): Add depth parameters.
12556         * fold-const.c: Include gimple-fold.h and params.h.
12557         (tree_ssa_name_nonnegative_warnv_p): New function.
12558         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
12559         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
12560         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
12561         Add a depth parameter and increment it for recursive calls to
12562         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
12563         to handle SSA names.
12564         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
12565         (gimple_stmt_nonnegative_warnv_p): Declare.
12566         * tree-vrp.c (remove_range_assertions): Remove assert that condition
12567         cannot be proven false.
12568         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
12569         (gimple_stmt_nonnegative_warnv_p): Move to...
12570         * gimple-fold.c: ...here.  Add depth parameters and pass them
12571         down to the tree routines.  Accept statements that aren't
12572         assignments or calls but just return false for them.
12573         (gimple_val_nonnegative_real_p): Delete.
12574         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
12575         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
12576         Check HONOR_NANs first.
12578 2015-10-08  Martin Jambor  <mjambor@suse.cz>
12580         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
12581         unnecessary MIN.
12583 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
12585         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
12586         in the tail of outer-loop.
12588 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
12590         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
12591         return UI_NONE.
12593 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
12595         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
12596         "cfghooks.h", add prototypes for introduced new functions.
12597         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
12598         checks on ability of loop unswitching to tree_unswitch_single_loop;
12599         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
12600         on innermost loop check.
12601         (tree_unswitch_single_loop): Add all required checks on ability of
12602         loop unswitching under zero recursive level guard.
12603         (tree_unswitch_outer_loop): New function.
12604         (find_loop_guard): Likewise.
12605         (empty_bb_without_guard_p): Likewise.
12606         (used_outside_loop_p): Likewise.
12607         (get_vop_from_header): Likewise.
12608         (hoist_guard): Likewise.
12609         (check_exit_phi): Likewise.
12611 2015-10-08  Marek Polacek  <polacek@redhat.com>
12613         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
12614         ops element.
12616 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12618         PR c/65345
12619         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
12620         create_tmp_var_raw instead of create_tmp_var.
12622 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
12624         * expr.c (store_expr_with_bounds): Handle aggregate moves from
12625         BLKmode.
12626         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
12627         to define gimple type system; compare aggregates only by size.
12629 2015-10-07  Jeff Law  <law@redhat.com>
12631         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
12632         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
12633         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
12634         unnecessarily.
12636 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
12637             Sebastian Pop  <s.pop@samsung.com>
12639         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
12640         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
12641         (generate_isl_schedule): Same.
12642         * graphite-optimize-isl.c (scop_get_domains): Same.
12643         (apply_schedule_map_to_scop): Same.
12644         * graphite-poly.c (print_iteration_domains): Same.
12645         (remove_gbbs_in_scop): Same.
12646         (new_scop): Same.
12647         (free_scop): Same.
12648         (print_scop): Same.
12649         * graphite-poly.h (struct scop): Rename bbs to pbbs.
12650         (SCOP_BBS): Remove.
12651         * graphite-scop-detection.c (compare_bb_depths): Remove.
12652         (graphite_sort_dominated_info): Remove.
12653         (try_generate_gimple_bb): Move out of scop_detection.
12654         (all_non_dominated_preds_marked_p): Remove.
12655         (build_scop_bbs_1): Remove.
12656         (build_scop_bbs): Remove.
12657         (nb_pbbs_in_loops): Do not use SCOP_BBS.
12658         (find_scop_parameters): Same.
12659         (sese_dom_walker): Rename gather_bbs.
12660         (before_dom_children): Call try_generate_gimple_bb and collect gbb
12661         and pbb.
12662         (build_scops): Call gather_bbs.
12663         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
12664         (add_conditions_to_constraints): Same.
12665         (build_scop_iteration_domain): Same.
12666         (build_scop_drs): Same.
12667         (new_pbb_from_pbb): Same.
12668         * sese.c (new_sese_info): Create bbs.
12669         * sese.h (struct sese_info_t): Add bbs.
12671 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
12673         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
12674         encoding in 64-bit mode.
12676 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
12678         PR target/66697
12679         * config/i386/i386.c (ix86_option_override_internal): Always use
12680         8-byte minimum stack boundary in 64-bit mode.
12681         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
12682         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
12683         Add a REG_CFA_EXPRESSION note if needed.
12684         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
12685         (ix86_handle_force_align_arg_pointer_attribute): New.
12686         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
12687         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
12688         with ix86_handle_force_align_arg_pointer_attribute.
12689         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
12691 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
12692             Sebastian Pop  <s.pop@samsung.com>
12694         * graphite-scop-detection.c (parameter_index_in_region): Remove
12695         use of SESE_ADD_PARAMS.
12696         (find_scop_parameters): Same.
12697         * sese.c (new_sese_info): Same.
12698         * sese.h (struct sese_info_t): Remove add_params.
12699         (SESE_ADD_PARAMS): Remove.
12701 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
12702             Sebastian Pop  <s.pop@samsung.com>
12704         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
12705         an sese_info_p.
12706         (copy_def): Same.
12707         (copy_internal_parameters): Same.
12708         (translate_isl_ast_to_gimple): Use an sese_l.
12709         (build_iv_mapping): Same.
12710         * graphite-poly.c (new_sese): Rename new_sese_info.
12711         (free_sese): Rename free_sese_info.
12712         * graphite-poly.h (struct scop): Use an sese_info_p.
12713         (scop_set_region): Same.
12714         * graphite-scop-detection.c (struct sese_l): Moved...
12715         (get_entry_bb): Moved...
12716         (get_exit_bb): Moved...
12717         (parameter_index_in_region_1): Use an sese_info_p.
12718         (parameter_index_in_region): Same.
12719         (scan_tree_for_params): Same.
12720         (find_params_in_bb): Same.
12721         (sese_dom_walker): Use an sese_l.
12722         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
12723         (reduction_phi_p): Same.
12724         (parameter_index_in_region_1): Use an sese_info_p.
12725         (propagate_expr_outside_region): Use an sese_l.
12726         * graphite.c: Replace uses of SCOP_REGION.
12727         * sese.c (sese_record_loop): Use an sese_info_p.
12728         (build_sese_loop_nests): Same.
12729         (sese_build_liveouts_use): Same.
12730         (sese_build_liveouts_bb): Same.
12731         (sese_build_liveouts_bb): Same.
12732         (sese_bad_liveouts_use): Same.
12733         (sese_reset_debug_liveouts_bb): Same.
12734         (sese_build_liveouts): Same.
12735         (new_sese): Renamed new_sese_info.
12736         (free_sese): Renamed free_sese_info.
12737         (set_rename): Use an sese_info_p.
12738         (graphite_copy_stmts_from_block): Same.
12739         (copy_bb_and_scalar_dependences): Same.
12740         (outermost_loop_in_sese_1): Use an sese_l.
12741         (outermost_loop_in_sese): Same.
12742         (if_region_set_false_region): Use an sese_info_p.
12743         (move_sese_in_condition): Same.
12744         (scalar_evolution_in_region): Use an sese_l.
12745         * sese.h (struct sese_l): ... here.
12746         (SESE_ENTRY): Remove.
12747         (SESE_ENTRY_BB): Remove.
12748         (SESE_EXIT): Remove.
12749         (SESE_EXIT_BB): Remove.
12750         (sese_contains_loop): Use an sese_info_p.
12751         (sese_nb_params): Same.
12752         (bb_in_sese_p): Use an sese_l.
12753         (stmt_in_sese_p): Same.
12754         (defined_in_sese_p): Same.
12755         (loop_in_sese_p): Same.
12756         (sese_loop_depth): Same.
12757         (struct ifsese_s): Use an sese_info_p.
12758         (gbb_loop_at_index): Use an sese_l.
12759         (nb_common_loops): Same.
12760         (scev_analyzable_p): Same.
12762 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
12764         * config/i386/i386.c (ix86_conditional_register_usage): Use
12765         CALL_USED_REGISTERS_MASK.
12766         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
12768 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
12770         PR bootstrap/67385
12771         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
12772         * configure: Regenerated.
12774 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
12776         PR target/67850
12777         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
12778         (ix86_set_current_function): This.
12779         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
12781 2015-10-07  Richard Biener  <rguenther@suse.de>
12783         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
12784         (vinfo_for_stmt): Adjust.
12785         (set_vinfo_for_stmt): Likewise.
12786         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
12787         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
12788         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
12789         of inner loop.
12790         (vect_analyze_loop_1): Remove.
12791         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
12792         inner loop when vectorizing an outer loop by splitting out from ...
12793         (vect_analyze_loop_form): ... here.
12795 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12797         PR c/65345
12798         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
12799         Use create_tmp_var_raw instead of create_tmp_var.
12801 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
12803         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
12804         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
12805         * real.c (CACHED_FRACTION): New helper macro.
12806         (dconst_third_ptr): Use it.
12807         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
12808         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
12809         dconst_sixth.
12810         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
12812 2015-10-06  Jeff Law  <law@redhat.com>
12814         PR tree-optimization/67816
12815         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
12816         from remove_jump_threads_starting_at.  Accept an edge rather than
12817         a basic block.
12818         * tree-ssa-threadupdate.c (removed_edges): New hash table.
12819         (remove_jump_threads_including): Note edges that get removed from
12820         the CFG for later pruning of jump threading paths including them.
12821         (thread_through_all_blocks): Remove paths which include edges that
12822         have been removed.
12823         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
12824         on each outgoing edges when optimizing away a control statement.
12826 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12828         * reorg.c (emit_delay_sequence): Store list of delay slot insns
12829         in a vector instead of rtx_insn_list.
12830         (add_to_delay_list): Likewise.
12831         (delete_from_delay_slot): Likewise.
12832         (optimize_skip): Likewise.
12833         (redirect_with_delay_list_safe_p): Likewise.
12834         (check_annul_list_true_false): Likewise.
12835         (steal_delay_list_from_target): Likewise.
12836         (steal_delay_list_from_fallthrough): Likewise.
12837         (redundant_insn): Likewise.
12838         (fill_simple_delay_slots): Likewise.
12839         (fill_slots_from_thread): Likewise.
12840         (fill_eager_delay_slots): Likewise.
12841         (relax_delay_slots): Likewise.
12843 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
12845         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
12846         For -mgpopt=local, also exclude unintialized common symbols.
12847         * doc/invoke.texi (Nios II Options): Document the change.
12849 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
12851         * config/aarch64/iterators.md (vwcore): Add missing cases for
12852          V4HF/V8HF modes.
12854 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
12855             Sebastian Pop  <s.pop@samsung.com>
12857         * graphite-poly.c (new_scop): Initialize drs.
12858         * graphite-poly.h (struct dr_info): New.
12859         (struct scop): Add drs.
12860         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
12861         (pdr_add_memory_accesses): Same.
12862         (build_poly_dr): Same.
12863         (build_alias_set): Same.
12864         (build_scop_drs): Same.
12865         (build_pbb_drs): Remove.
12866         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
12867         * tree-data-ref.h (data_reference): Remove alias_set.
12869 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
12870             Sebastian Pop  <s.pop@samsung.com>
12872         * graphite-poly.c (free_data_refs_aux): Remove.
12873         (free_gimple_poly_bb): Do not call free_data_refs_aux.
12874         * graphite-poly.h (struct base_alias_pair): Remove.
12875         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
12876         base_alias_pair and dr->aux.
12877         (build_alias_set): Same.
12878         * tree-data-ref.c (create_data_ref): Initialize alias_set.
12879         * tree-data-ref.h (data_reference): Add alias_set.
12881 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
12882             Sebastian Pop  <s.pop@samsung.com>
12884         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
12885         Do not set PDR_BASE_OBJECT_SET.
12886         * graphite-poly.h (poly_dr): Same.
12887         (PDR_BASE_OBJECT_SET): Remove.
12888         (new_poly_dr): Update decl.
12889         * graphite-sese-to-poly.c (build_poly_dr): Update call to
12890         new_poly_dr.
12891         (write_alias_graph_to_ascii_dimacs): Remove.
12892         (write_alias_graph_to_ascii_dot): Remove.
12893         (write_alias_graph_to_ascii_ecc): Remove.
12894         (dr_same_base_object_p): Remove.
12895         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
12896         code.
12897         (build_base_obj_set_for_drs): Remove.
12898         (dump_alias_graphs): Remove.
12899         (build_scop_drs): Remove dead code.
12901 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
12902             Peter Bergner  <bergner@vnet.ibm.com>
12904         PR target/67808
12905         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
12906         allow registers, but provide insns for the combiner to create for
12907         loads from memory. Separate VSX code from non-VSX code. For
12908         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
12909         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
12910         so that registers come before memory operations. Drop support from
12911         converting DFmode to TFmode, if the DFmode value is in a GPR
12912         register.
12913         (extenddftf2_fprs): Likewise.
12914         (extenddftf2_internal): Likewise.
12915         (extenddftf2_vsx): Likewise.
12916         (extendsftf2): In the expander, only allow registers, but provide
12917         insns for the combiner to create for stores and loads.
12919 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12921         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
12922         from the decl parameter.
12924 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
12926         PR 67861
12927         * gimple-fold.c (gimple_fold_builtin): Add break after
12928         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
12930 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
12932         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
12933         to scop->isl_context.
12935 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
12937         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
12938         (output_probe_stack_range): Rotate the loop and simplify.
12939         (thumb1_expand_prologue): Tweak sorry message.
12940         * config/arm/arm.md (probe_stack): Use bare string.
12942 2015-10-06  Nick Clifton  <nickc@redhat.com>
12944         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
12946 2015-10-06  Nick Clifton  <nickc@redhat.com>
12948         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
12949         (ATTR_PERSIST): New constant.
12950         (msp430_data_attr): New function - verifies an attribute that only
12951         applies to variables.
12952         (msp430_attributes): Add noinit and persistent attributes.
12953         (noinit_section): New variable.
12954         (presis_section): New variable.
12955         (TARGET_ASM_INIT_SECTIONS): Define.
12956         (msp430_init_sections): New function - initialises the noinit and
12957         persist section variables.
12958         (msp430_select_section): Add support for noinit and persist
12959         attributes.
12960         (msp430_section_type_flags): Likewise.
12961         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
12962         and persistent attributes.
12964 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
12965             Sebastian Pop  <s.pop@samsung.com>
12967         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
12968         (no_violations): Remove.
12969         (subtract_commutative_associative_deps): Remove.
12970         (compute_deps): Do not call subtract_commutative_associative_deps.
12971         (transform_is_safe): Remove.
12972         (graphite_legal_transform): Remove.
12973         * graphite-poly.h (graphite_legal_transform): Remove.
12975 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
12977         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
12978         which are in this region are passed so gcc_assert and remove redundant
12979         computation.
12980         * sese.c (sese_build_liveouts): Pass only those bbs which are not
12981         in region.
12982         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
12983         gcc_assert on that and remove unnecessary computation.
12984         (sese_build_liveouts_use): Same.
12986 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
12988         * graphite-dependences.c (scop_get_reads): Renamed scop->context
12989         to scop->param_context.
12990         (scop_get_must_writes): Same.
12991         (scop_get_may_writes): Same.
12992         (scop_get_original_schedule): Same.
12993         (scop_get_transformed_schedule): Same.
12994         (subtract_commutative_associative_deps): Same.
12995         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
12996         (generate_isl_context): Same.
12997         (generate_isl_schedule): Same.
12998         (scop_to_isl_ast): Same.
12999         (graphite_regenerate_ast_isl): Same.
13000         * graphite-optimize-isl.c (scop_get_domains): Same.
13001         (optimize_isl): Renamed scop->context to scop->param_context.
13002         * graphite-poly.c (new_poly_bb): Change the type of argument to
13003         gimple_poly_bb_p.
13004         (new_scop): Renamed scop->context to scop->param_context.
13005         (free_scop): Same.
13006         (print_scop_context): Same.
13007         * graphite-poly.h (new_poly_dr): Change the type of argument from
13008         void* to data_reference_p.
13009         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
13010         (new_poly_bb): Change the type of argument from void* to
13011         gimple_poly_bb_p.
13012         (pbb_set_black_box): Same.
13013         (struct scop): Rename context to param_context, ctx to isl_context.
13014         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
13015         Move declarations closer to assignment.
13016         (find_params_in_bb): Same.
13017         (find_scop_parameters): Same.
13018         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
13019         Global to be used for statement IDs.
13020         (isl_id_for_pbb): Use ssa_name_version_typesize.
13021         (simple_copy_phi_p): Move declarations closer to assignment.
13022         (build_pbb_scattering_polyhedrons): Same.
13023         (build_scop_scattering): Same.
13024         (isl_id_for_ssa_name): Same.
13025         (extract_affine_name): Same.
13026         (extract_affine_int): Same.
13027         (extract_affine): Same.
13028         (set_scop_parameter_dim): Use renamed member.
13029         (build_loop_iteration_domains): Same.
13030         (add_param_constraints): Same.
13031         (build_scop_iteration_domain): Same.
13032         (pdr_add_data_dimensions): Same.
13033         (build_poly_dr): Same.
13034         (build_scop_drs): Move declarations closer to assignment.
13035         (analyze_drs_in_stmts): Same.
13036         (insert_out_of_ssa_copy): Same.
13037         (insert_out_of_ssa_copy_on_edge): Same.
13038         (propagate_expr_outside_region): Same.
13039         (rewrite_phi_out_of_ssa): Same.
13040         (rewrite_degenerate_phi): Same.
13041         (rewrite_reductions_out_of_ssa): Same.
13042         (rewrite_cross_bb_scalar_dependence): Same.
13043         (handle_scalar_deps_crossing_scop_limits): Same.
13044         (rewrite_cross_bb_scalar_deps): Same.
13045         * graphite.c (graphite_transform_loops): Use renamed member.
13047 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
13049         PR c/65345
13050         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
13051         create_tmp_var_raw instead of create_tmp_var.
13053 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13055         PR c/65345
13056         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
13057         Use create_tmp_var_raw instead of create_tmp_var.
13059 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
13061         PR target/67849
13062         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
13063         split for upper-bank registers when target does not support
13064         AVX512VL.
13065         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
13066         split when target does not support AVX512VL.
13068 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
13070         PR c/65345
13071         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
13072         Adjust to use create_tmp_var_raw instead of create_tmp_var.
13074 2015-10-06  Nick Clifton  <nickc@redhat.com>
13076         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
13077         multiplication.
13079 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
13081         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
13082         (case ${target}): Add znver1.
13083         * config/i386/cpuid.h(bit_CLZERO):  Define.
13084         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
13085         -march=native recognize znver1 processors.
13086         * config/i386/i386-c.c (ix86_target_macros_internal): Add
13087         znver1, clzero def_and_undef.
13088         * config/i386/i386.c (struct processor_costs znver1_cost): New.
13089         (m_znver1): New definition.
13090         (m_AMD_MULTIPLE): Includes m_znver1.
13091         (processor_target_table): Add znver1 entry.
13092         (ix86_target_string) : Add clzero entry.
13093         (static const char *const cpu_names): Add znver1 entry.
13094         (ix86_option_override_internal): Add znver1 instruction sets.
13095         (PTA_CLZERO) :  New definition.
13096         (ix86_option_override_internal): Handle new clzerooption.
13097         (ix86_issue_rate): Add znver1.
13098         (ix86_adjust_cost): Add znver1.
13099         (ia32_multipass_dfa_lookahead): Add znver1.
13100         (has_dispatch): Add znver1.
13101         * config/i386/i386.h (TARGET_znver1): New definition.
13102         (TARGET_CLZERO): Define.
13103         (TARGET_CLZERO_P): Define.
13104         (struct ix86_size_cost): Add TARGET_ZNVER1.
13105         (enum processor_type): Add PROCESSOR_znver1.
13106         * config/i386/i386.md (define_attr "cpu"): Add znver1.
13107         (set_attr znver1_decode): New definitions for znver1.
13108         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
13109         (mclzero): New.
13110         * config/i386/mmx.md (set_attr znver1_decode): New definitions
13111         for znver1.
13112         * config/i386/sse.md (set_attr znver1_decode): Likewise.
13113         * config/i386/x86-tune.def:  Add znver1 tunings.
13114         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
13115         * doc/invoke.texi: Add details about znver1
13117 2015-10-06  Richard Biener  <rguenther@suse.de>
13119         PR tree-optimization/67859
13120         * tree-ssa-pre.c (create_expression_by_pieces): Properly
13121         discard not inserted stmts.
13123 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
13125         * doc/extend.texi (Template Instantiation): Reorder options and
13126         de-emphasize -frepo.
13127         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
13128         example instead of -frepo.
13130 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
13132         PR c/65345
13133         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
13134         use create_tmp_var_raw rather than create_tmp_var.
13136 2015-10-06  Richard Biener  <rguenther@suse.de>
13138         * tree-vectorizer.h (vec_info): New base class for...
13139         (_loop_vec_info): ... this and ...
13140         (_bb_vec_info): ... this.
13141         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
13142         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
13143         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
13144         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
13145         vect_destroy_datarefs): Adjust interface to take a vec_info *
13146         rather than both a loop_vec_info and a bb_vec_info argument.
13147         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
13148         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
13149         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
13150         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
13151         accordingly.
13152         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
13153         (destroy_loop_vec_info, vect_analyze_loop_2,
13154         vect_is_simple_reduction_1, get_initial_def_for_induction,
13155         vect_create_epilog_for_reduction, vectorizable_reduction,
13156         vectorizable_live_operation, vect_transform_loop): Adjust.
13157         * tree-vect-patterns.c (type_conversion_p,
13158         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
13159         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
13160         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
13161         check_bool_pattern, vect_recog_bool_pattern,
13162         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
13163         * tree-vect-slp.c (vect_get_and_check_slp_defs,
13164         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
13165         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
13166         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
13167         (new_bb_vec_info): Initialize base classs.
13168         * tree-vect-stmts.c (record_stmt_cost, process_use,
13169         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
13170         vectorizable_mask_load_store, vectorizable_call,
13171         vectorizable_simd_clone_call, vectorizable_conversion,
13172         vectorizable_assignment, vectorizable_shift,
13173         vectorizable_operation, vectorizable_store,
13174         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
13175         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
13176         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
13178 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
13180         PR c/65345
13181         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
13182         create_tmp_var_raw rather than create_tmp_var.
13184 2015-10-05  Marek Polacek  <polacek@redhat.com>
13186         * tree-ssa-loop-im.c
13187         (move_computations_dom_walker::before_dom_children): Don't set
13188         SSA_NAME_ANTI_RANGE_P.
13189         * tree-ssa-phiopt.c (value_replacement): Likewise.
13191 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
13192             Sebastian Pop  <s.pop@samsung.com>
13194         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
13196 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
13197             Sebastian Pop  <s.pop@samsung.com>
13199         * graphite-poly.c (new_gimple_poly_bb): ... here.
13200         (free_data_refs_aux): ... here.
13201         (free_gimple_poly_bb): ... here.
13202         (remove_gbbs_in_scop): ... here.
13203         (new_scop): Call new_sese.
13204         (free_scop): Call remove_gbbs_in_scop and free_sese.
13205         * graphite-poly.h (base_alias_pair): ... here.
13206         (new_gimple_poly_bb): Declare.
13207         (free_gimple_poly_bb): Declare.
13208         * graphite-scop-detection.c (parameter_index_in_region_1):
13209         (parameter_index_in_region): ... here.
13210         (scan_tree_for_params): ... here.
13211         (find_params_in_bb): ... here.
13212         (find_scop_parameters): ... here.
13213         (build_scops): Call find_scop_parameters.
13214         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
13215         (free_scops): Move...
13216         (single_pred_cond_non_loop_exit): Move...
13217         (sese_dom_walker::before_dom_children): Move...
13218         (sese_dom_walker::after_dom_children): Move...
13219         (build_poly_scop): Move...
13220         * graphite-sese-to-poly.h (base_alias_pair): Move...
13221         * graphite.c (free_scops): ... here.
13223 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
13224             Sebastian Pop  <s.pop@samsung.com>
13226         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
13227         (trivially_empty_bb_p): Move...
13228         (same_close_phi_node): Move...
13229         (new_gimple_poly_bb): Move...
13230         (compare_bb_depths): Move...
13231         (graphite_sort_dominated_info): Move...
13232         (remove_duplicate_close_phi): Move...
13233         (make_close_phi_nodes_unique): Move...
13234         (canonicalize_loop_closed_ssa): Move...
13235         (canonicalize_loop_closed_ssa_form): Move...
13236         (loop_ivs_can_be_represented): Move...
13237         (single_pred_cond_non_loop_exit): Move...
13238         (graphite_can_represent_init): Move...
13239         (graphite_can_represent_scev): Move...
13240         (stmt_has_simple_data_refs_p): Move...
13241         (stmt_has_side_effects):  Move...
13242         (graphite_can_represent_stmt): Move...
13243         (scop_detection): ... here.
13244         (sese_dom_walker): ... and here.
13245         (build_scops): Call all moved functions.
13246         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
13247         (all_non_dominated_preds_marked_p): Move...
13248         (build_scop_bbs_1): Move...
13249         (build_scop_bbs): Move...
13250         (set_scop_parameter_dim): Move...
13251         (nb_pbbs_in_loops): Move...
13252         (build_poly_scop): Do not call all the moved functions.
13254 2015-10-05  Martin Jambor  <mjambor@suse.cz>
13255             Jan Hubicka  <hubicka@ucw.cz>
13257         * ipa-cp.c (ipcp_alignment_lattice): New type.
13258         (ipcp_param_lattices): Use the above to represent alignment.
13259         (ipcp_alignment_lattice::print): New function.
13260         (print_all_lattices): Use it to print alignment information.
13261         (ipcp_alignment_lattice::top_p): New function.
13262         (ipcp_alignment_lattice::bottom_p): Likewise.
13263         (ipcp_alignment_lattice::set_to_bottom): Likewise.
13264         (ipcp_alignment_lattice::meet_with_1): Likewise.
13265         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
13266         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
13267         (initialize_node_lattices): Likewise.
13268         (propagate_alignment_accross_jump_function): Work with the new class
13269         for alignment lattices.
13270         (propagate_constants_accross_call): Pass only the alignment lattice to
13271         propagate_alignment_accross_jump_function.
13272         (ipcp_store_alignment_results): Work with the new class for alignment
13273         lattices.
13275 2015-10-05  Marek Polacek  <polacek@redhat.com>
13277         PR tree-optimization/67821
13278         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
13280 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
13282         PR other/65021
13283         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
13284         function to...
13285         (mkoffload_cleanup): ... this.  Adjust all users.
13286         (maybe_unlink): Look at save_temps and verbose flags instead of
13287         debug flag.
13288         (main): Parse "-save-temps" flag.
13289         (generate_target_descr_file, generate_target_offloadend_file)
13290         (generate_host_descr_file, prepare_target_image): Pass it on.
13291         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
13292         (mkoffload_cleanup): New function.
13293         (maybe_unlink): Look at save_temps and verbose flags instead of
13294         debug flag.
13295         (main): Instead of calling utils_cleanup, register atexit handler
13296         for mkoffload_cleanup.
13297         (main): Parse "-save-temps" flag.
13298         (compile_native, main): Pass it on.
13299         * lto-wrapper.c (compile_offload_image): Likewise.
13301 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13303         * gimple.h (gimple_op_ptr): Require a non const gimple *.
13304         (gimple_assign_lhs_ptr): Likewise.
13305         (gimple_assign_rhs1_ptr): Likewise.
13306         (gimple_assign_rhs2_ptr): Likewise.
13307         (gimple_assign_rhs3_ptr): Likewise.
13308         (gimple_call_lhs_ptr): Likewise.
13309         (gimple_call_fn_ptr): Likewise.
13310         (gimple_call_chain_ptr): Likewise.
13311                 (gimple_call_arg_ptr): Likewise.
13312                 (gimple_cond_lhs_ptr): Likewise.
13313         (gimple_cond_rhs_ptr): Likewise.
13314         (gimple_switch_index_ptr): Likewise.
13315         (gimple_return_retval_ptr): Likewise.
13317 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13319         * gimple.h (gimple_asm_input_op_ptr): Remove.
13320         (gimple_asm_output_op_ptr): Likewise.
13322 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13324         * gimple.h (gimple_location_ptr): Remove.
13325         * tree-vrp.c (check_all_array_refs): Adjust.
13327 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13329         * tree-ssa-operands.c (build_uses): store tree * instead of
13330         tree.
13331         (finalize_ssa_uses): Adjust.
13332         (append_use): Likewise.
13333         (verify_ssa_operands): Likewise.
13335 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
13337         * real.h (build_real_truncate): Declare.
13338         * tree.c (build_real_truncate): New function.
13339         (strip_float_extensions): Use it.
13340         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
13341         (fold_builtin_hypot, fold_builtin_pow): Likewise.
13342         * match.pd: Likewise.
13344 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
13345            Jiong Wang  <jiong.wang@arm.com>
13347         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
13349 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
13351         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
13352         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
13353         (aarch64_print_operand, aarch64_float_const_representable_p)
13354         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
13355         instead of REAL_VALUE_FROM_CONST_DOUBLE.
13356         * config/arc/arc.c (arc_print_operand): Likewise.
13357         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
13358         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
13359         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
13360         Likewise.
13361         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
13362         (consttable_16): Likewise.
13363         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
13364         * config/avr/avr.c (avr_print_operand): Likewise.
13365         * config/bfin/bfin.md: Likewise (in a define_split).
13366         * config/c6x/c6x.md: Likewise (in a define_split).
13367         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
13368         (cr16_print_operand): Likewise.
13369         * config/cris/cris.c (cris_print_operand): Likewise.
13370         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
13371         * config/fr30/fr30.c (fr30_print_operand): Likewise.
13372         (fr30_const_double_is_zero): Likewise.
13373         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
13374         * config/frv/frv.md: Likewise (in a define_split).
13375         * config/frv/predicates.md (int_2word_operand): Likewise.
13376         * config/h8300/h8300.c (h8300_print_operand): Likewise.
13377         * config/i386/i386.c (standard_80387_constant_p): Likewise.
13378         (ix86_print_operand, ix86_split_to_parts): Likewise.
13379         * config/i386/i386.md: Likewise (in a define_split).
13380         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
13381         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
13382         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
13383         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
13384         (print_operand): Likewise.
13385         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
13386         * config/mep/mep.md: Likewise (in define_split).
13387         * config/microblaze/microblaze.c (microblaze_const_double_ok)
13388         (print_operand): Likewise.
13389         * config/mips/mips.md (consttable_float): Likewise.
13390         * config/mmix/mmix.c (mmix_intval): Likewise.
13391         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
13392         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
13393         * config/pa/pa.c (pa_singlemove_string): Likewise.
13394         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
13395         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
13396         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
13397         (output_toc): Likewise.
13398         * config/rs6000/rs6000.md: Likewise (in define_splits).
13399         * config/rx/rx.c (rx_print_operand): Likewise.
13400         * config/s390/s390.c (s390_output_pool_entry): Likewise.
13401         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
13402         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
13403         (and also in define_splits).
13404         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
13405         (fp_high_losum_p): Likewise.
13406         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
13407         (*movsf_high): Likewise.
13408         * config/spu/spu.c (const_double_to_hwint): Likewise.
13409         * config/v850/v850.c (const_double_split): Likewise.
13410         * config/vax/vax.c (vax_float_literal): Likewise.
13411         * config/visium/visium.c (visium_expand_copysign): Likewise.
13412         * config/visium/visium.md: Likewise (in define_split).
13413         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
13414         * config/xtensa/xtensa.c (print_operand): Likewise.
13415         (xtensa_output_literal): Likewise.
13416         * cprop.c (implicit_set_cond_p): Likewise.
13417         * dwarf2out.c (insert_float): Likewise.
13418         * expmed.c (expand_mult, make_tree): Likewise.
13419         * expr.c (compress_float_constant): Likewise.
13420         * rtlanal.c (split_double): Likewise.
13421         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
13422         (simplify_const_unary_operation, simplify_binary_operation_1)
13423         (simplify_const_binary_operation): Likewise.
13424         (simplify_const_relational_operation): Likewise.
13425         * varasm.c (output_constant_pool_2): Likewise.
13427 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
13429         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
13430         instead of CONST_DOUBLE_FROM_REAL_VALUE.
13431         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
13432         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
13433         instead of CONST_DOUBLE_FROM_REAL_VALUE.
13434         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
13435         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
13436         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
13437         (ix86_emit_swsqrtsf): Likewise.
13438         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
13439         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
13440         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
13441         * config/pa/pa.c (pa_expand_builtin): Likewise.
13442         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
13443         (rs6000_scale_v2df): Likewise.
13444         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
13445         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
13446         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
13447         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
13448         (vec_ctul): Likewise.
13449         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
13450         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
13451         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
13452         * cse.c (fold_rtx): Likewise.
13453         * emit-rtl.c (immed_double_const): Likewise (in comments).
13454         (init_emit_once): Likewise.
13455         * expr.c (compress_float_constant, expand_expr_real_1)
13456         (const_vector_from_tree): Likewise.
13457         * optabs.c (expand_float, expand_fix): Likewise.
13458         * reg-stack.c (reg_to_stack): Likewise.
13459         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
13460         (simplify_const_unary_operation, simplify_binary_operation_1)
13461         (simplify_const_binary_operation, simplify_relational_operation)
13462         (simplify_immed_subreg): Likewise.
13464 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
13466         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
13467         * doc/tm.texi: Regenerate.
13468         * real.h (REAL_ARITHMETIC): Delete.
13469         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
13470         (ix86_expand_round_sse4): Use real_arithmetic instead of
13471         REAL_ARITHMETIC.
13472         * config/i386/sse.md (round<mode>2): Likewise.
13473         * rtl.h (rtx_to_tree_code): Likewise (in comment).
13474         * explow.c (rtx_to_tree_code): Likewise (in comment).
13475         * match.pd: Likewise.
13476         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13477         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
13478         (expand_pow_as_sqrts): Likewise.
13479         * tree-pretty-print.c (dump_generic_node): Remove code that
13480         was conditional on REAL_ARITHMETIC being undefined.
13482 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
13484         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
13485         * doc/tm.texi: Regenerate.
13486         * real.h (real_less): Declare.
13487         (REAL_VALUES_LESS): Delete.
13488         * real.c (real_less): New function.
13489         (real_compare): Use it.
13490         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
13491         of REAL_VALUES_LESS.
13492         * config/microblaze/microblaze.c (microblaze_const_double_ok):
13493         Likewise.
13494         * fold-const.c (fold_convert_const_int_from_real): Likewise.
13495         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
13496         (simplify_const_relational_operation): Likewise.
13497         * tree-call-cdce.c (check_pow): Likewise.
13498         (gen_conditions_for_pow_cst_base): Likewise.
13500 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
13502         * real.h (REAL_VALUES_IDENTICAL): Delete.
13503         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
13504         instead of REAL_VALUES_IDENTICAL.
13505         * fold-const.c (operand_equal_p): Likewise.
13506         * ipa-icf.c (sem_variable::equals): Likewise.
13507         * tree-complex.c (some_nonzerop): Likewise.
13508         (expand_complex_multiplication): Likewise.
13509         * tree.c (simple_cst_equal): Likewise.
13510         * varasm.c (compare_constant): Likewise.
13512 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
13514         * real.h (real_equal): Declare.
13515         (REAL_VALUES_EQUAL): Delete.
13516         * real.c (real_equal): New function.
13517         (real_compare): Use it.
13518         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
13519         * doc/tm.texi: Regenerate.
13520         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
13521         real_equal instead of REAL_VALUES_EQUAL.
13522         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
13523         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
13524         (fp_const_from_val): Likewise.
13525         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
13526         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
13527         (floating_exact_log2): Likewise.
13528         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
13529         * config/vax/vax.c (vax_float_literal): Likewise.
13530         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
13531         * cprop.c (implicit_set_cond_p): Likewise.
13532         * expmed.c (expand_mult): Likewise.
13533         * fold-const.c (const_binop): Likewise.
13534         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13535         (simplify_const_binary_operation): Likewise.
13536         (simplify_const_relational_operation): Likewise.
13537         * tree-call-cdce.c (check_pow): Likewise.
13538         (gen_conditions_for_pow_cst_base): Likewise.
13539         * tree-inline.c (estimate_num_insns): Likewise.
13540         * tree-ssa-dom.c (record_equality): Likewise.
13541         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
13542         (gimple_expand_builtin_pow): Likewise.
13543         (pass_optimize_widening_mul::execute): Likewise.
13544         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
13545         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
13546         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
13548 2015-10-05  Richard Biener  <rguenther@suse.de>
13550         PR ipa/67783
13551         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
13552         consider loop header PHI defs as IVs.
13554 2015-10-05  Richard Biener  <rguenther@suse.de>
13556         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
13557         call handling ...
13558         (create_expression_by_pieces): ... here and build GIMPLE
13559         calls directly.  Use gimple_build API and avoid force_gimple_operand.
13560         (insert_into_preds_of_block): Simplify.
13561         (do_regular_insertion): Add comment.
13563 2015-10-04  Jason Merrill  <jason@redhat.com>
13565         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
13567 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
13569         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
13570         check for general register.
13571         (ix86_emit_save_regs): Ditto.
13572         (ix86_emit_save_regs_using_mov): Ditto.
13573         (ix86_emit_restore_regs_using_pop): Ditto.
13574         (ix86_emit_restore_regs_using_mov): Ditto.
13576 2015-10-03  Marek Polacek  <polacek@redhat.com>
13578         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
13579         (insn-dfatab.o): Likewise.
13581 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
13583         * config.gcc (xtensa*-*-uclinux*): New configuration.
13584         * config/xtensa/uclinux.h: New file.
13585         * config/xtensa/uclinux.opt: New file.
13587 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
13589         * doc/cpp.texi (Standard Predefined Macros): Document value of
13590         __cplusplus for C++14.
13592 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
13594         * gcc.c (process_command): Use spec_machine rather than
13595         spec_host_machine to build tooldir_prefix2.
13597 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
13598             Bernd Schmidt  <bernds@codesourcery.com>
13600         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
13601         (Token, Stmt): Remove structs.
13602         (decls, vars, fns): Remove variables.
13603         (alloc_comment, append_stmt, is_keyword): Remove macros.
13604         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
13605         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
13606         (parse_init, parse_file): Remove functions.
13607         (read_file): Accept a pointer to a length and store into it.
13608         (process): Don't try to parse the input file, just write it out as
13609         a string, but looking for maps.  Also write out the length.
13610         (main): Don't use "-S" to compile PTX code.
13612 2015-10-02  Jeff Law  <law@redhat.com>
13614         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
13615         fixups.
13617 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
13619         PR target/67822
13620         * config/nvptx/mkoffload.c (main): Scan the argument vector for
13621         -fopenmp, and skip generating an offloading image if specified.
13623 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
13625         * system.h (ROUND_UP): New macro definition.
13626         (ROUND_DOWN): Ditto.
13627         * ggc-page.c (ROUND_UP): Remove local macro definition.
13628         (PAGE_ALIGN): Implement using ROUND_UP macro.
13630         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
13631         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
13632         to align values.
13633         (ix86_compute_frame_layout): Ditto.
13634         (ix86_expand_prologue): Ditto.
13635         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
13636         to round down values.
13637         (expand_set_or_movmem_via_rep): Ditto.
13639 2015-10-02  Marek Polacek  <polacek@redhat.com>
13641         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
13643 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
13645         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
13646         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
13647         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
13648         (free_gimple_bb): Renamed free_gimple_poly_bb.
13649         (try_generate_gimple_bb): Hoist loop invariant code.
13650         (analyze_drs_in_stmts): Same.
13651         (build_scop_drs): Call renamed functions.
13652         (new_pbb_from_pbb): Same.
13653         (scop_ivs_can_be_represented): Delete as functionality now moved to
13654         graphite-scop-detection.c
13655         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
13657 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
13659         * graphite-scop-detection.c (stmt_has_side_effects): New function
13660           outlined from stmt_simple_for_scop_p.
13661         (graphite_can_represent_stmt): Same.
13662         (stmt_simple_for_scop_p): Moved code out of this function for better
13663         readability.
13665 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
13667         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
13668         F_AVX512IFMA.
13669         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
13671 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13673         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
13675 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
13677         PR rtl-optimization/67756
13678         * lra-constraints.c (match_reload): Add a new parameter.  Use it
13679         for creating a pseudo with the same value.
13680         (curr_insn_transform): Pass a new argument to match_reload.
13682 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
13684         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
13685         (expand_vec_perm_even_odd_1): Handle V64QImode.
13686         (ix86_expand_vec_perm_const_1): Try expansion with
13687         expand_vec_perm_even_odd_trunc as well.
13688         * config/i386/sse.md (VI124_AVX512F): Rename to ...
13689         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
13690         to V54QI.
13691         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
13692         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
13693         to V32HI and V16SI.
13694         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
13695         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
13696         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
13697         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
13698         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
13699         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
13701 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
13703         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
13704         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
13706 2015-10-02  Jason Merrill  <jason@redhat.com>
13708         PR c/59218
13709         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
13710         (diagnose_tm_1_op): Also diagnose volatile accesses in
13711         transaction_safe function.
13713 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
13715         * system.h (malloc.h): Don't include obsolete header.
13717 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13719         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
13720         (TLS_SECTION_ASM_FLAG): Delete.
13722 2015-10-02  Marek Polacek  <polacek@redhat.com>
13724         PR c/64249
13725         * doc/invoke.texi: Document -Wduplicated-cond.
13726         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
13727         (insn-dfatab.o): Likewise.
13728         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
13729         warning.
13731 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
13733         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
13734         sequences.
13736 2015-10-02  Renlin Li  <renlin.li@arm.com>
13738         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
13740 2015-10-02  Renlin Li  <renlin.li@arm.com>
13742         PR target/66776
13743         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
13745 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13747         PR rtl-optimization/67786
13748         PR rtl-optimization/67787
13749         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
13750         it modifies a reg used in the condition calculation.
13752 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
13754         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
13755         alternatives for reads from memory and moves from general-purpose
13756         registers.
13757         (*aarch64_combinez_be<mode>): Likewise.
13759 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
13761         PR target/51726
13762         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
13763         selectany within this function without need to keep attribute.
13764         (i386_pe_encode_section_info): Remove selectany-code.
13766 2015-10-02  Richard Biener  <rguenther@suse.de>
13768         * tree-ssa-sccvn.c (has_VN_INFO): New function.
13769         (free_scc_vn): Use it.
13770         (visit_use): Remove dead code and refactor to use gassign
13771         and use less indentation.
13773 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
13775         PR target/67788
13776         PR target/67789
13777         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
13778         (rs6000_cannot_copy_insn_p): New function.
13779         * config/rs6000/rs6000.md (cannot_copy): New attribute.
13780         (load_toc_v4_PIC_1_normal): Set cannot_copy.
13781         (load_toc_v4_PIC_1_476): Ditto.
13783 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
13785         * graphite-scop-detection.c (struct sese_l): New conversion constructor
13786         so that this type can be pushed into a vec.
13787         (class scop_builder): use sese_l to collect scops.
13788         (get_scops): New getter function.
13789         (remove_intersecting_scops): Use sese_l instead of scops_p.
13790         (intersects): Same.
13791         (add_scop): Same.
13792         (subsumes): Same.
13793         (remove_subscops): Same.
13794         (build_scops): Add scops to vec<scops_p> once all the scops have been
13795         detected.
13797 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
13799         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
13800         Renamed type from gimple_bb_p to gimple_poly_bb_p.
13801         (translate_isl_ast_node_user): Same.
13802         * graphite-poly.c (new_poly_bb): Same.
13803         * graphite-poly.h (gbb_from_bb): Same.
13804         * sese.h: Same.
13805         * graphite-sese-to-poly.c (new_gimple_bb):
13806         gimple_bb_p -> gimple_poly_bb_p
13807         (build_scop_scattering): Same.
13808         (find_params_in_bb): Same.
13809         (add_conditions_to_domain): Same.
13810         (sese_dom_walker::before_dom_children): Same.
13811         (analyze_drs_in_stmts): Same.
13812         (new_pbb_from_pbb): Same.
13813         (free_data_refs_aux): New pointer to type base_alias_pair.
13814         * graphite-sese-to-poly.h: Same.
13815         * sese.c (if_region_set_false_region): Fixed Indentation.
13816         (move_sese_in_condition): Same.
13818 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
13819             Aditya Kumar  <aditya.k7@samsung.com>
13821         PR tree-optimization/66980
13822         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
13823         when data reference analysis has failed.
13825 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
13826             Aditya Kumar  <aditya.k7@samsung.com>
13828         PR tree-optimization/67754
13829         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
13830         scev analysis on the same loop nest as analyze_drs_in_stmts.
13831         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
13832         renamed...
13833         (try_generate_gimple_bb): Call outermost_loop_in_sese.
13834         (analyze_drs_in_stmts): Same.
13835         * sese.c (outermost_loop_in_sese): ...here.
13837 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
13838             Aditya Kumar  <aditya.k7@samsung.com>
13840         PR tree-optimization/67754
13841         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
13842         recursion on the inner loops.
13844 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13846         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
13847         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
13848         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
13849         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
13850         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
13852 2015-10-01  Marek Polacek  <polacek@redhat.com>
13854         PR c/65345
13855         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
13856         create_tmp_var_raw rather than create_tmp_var.
13858 2015-10-01  Marek Polacek  <polacek@redhat.com>
13860         PR tree-optimization/67769
13861         * tree-ssa-phiopt.c (conditional_replacement): Call
13862         reset_flow_sensitive_info_in_bb.
13863         (minmax_replacement): Likewise.
13864         (abs_replacement): Likewise.
13866 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
13868         * builtins.c: Don't include gomp-constants.h.
13869         (fold_builtin_1): Don't fold acc_on_device here.
13870         * gimple-fold.c: Include gomp-constants.h.
13871         (gimple_fold_builtin_acc_on_device): New.
13872         (gimple_fold_builtin): Call it.
13874 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13876         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
13877         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
13879 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
13881         * config/arm/aarch-common-protos.h
13882         (aarch_accumulator_forwarding): New.
13883         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
13884         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
13885         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
13886         * config/arm/cortex-a53.md: Rewrite.
13888 2015-10-01  Richard Biener  <rguenther@suse.de>
13890         * gimple-match.h (mprts_hook): Declare.
13891         * gimple-match.head.c (mprts_hook): Define.
13892         (maybe_push_res_to_seq): Use new hook.
13893         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
13894         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
13895         (vn_ssa_aux::has_constants): Remove.
13896         * tree-ssa-sccvn.c: Include gimple-match.h.
13897         (VN_INFO_GET): Assert we don't re-use SSA names.
13898         (vn_get_expr_for): Remove.
13899         (expr_has_constants): Likewise.
13900         (stmt_has_constants): Likewise.
13901         (simplify_binary_expression): Likewise.
13902         (simplify_unary_expression): Likewise.
13903         (vn_lookup_simplify_result): New hook.
13904         (visit_copy): Adjust.
13905         (visit_reference_op_call): Likewise.
13906         (visit_phi): Likewise.
13907         (visit_use): Likewise.
13908         (process_scc): Likewise.
13909         (init_scc_vn): Likewise.
13910         (visit_reference_op_load): Likewise.  Use match-and-simplify and
13911         a gimple seq for inserted expressions.
13912         (try_to_simplify): Remove GENERIC stmt combining code.
13913         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
13914         * tree-ssa-pre.c (eliminate_insert): Adjust.
13915         (eliminate_dom_walker::before_dom_children): Likewise.
13917 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
13919         * doc/invoke.texi (Optimization Options): Add
13920         -freorder-blocks-algorithm=.
13921         (Optimize Options) <-O>: Add -freorder-blocks.
13922         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
13923         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
13924         <-freorder-blocks>: Also enabled at levels -O and -Os.
13925         <-freorder-blocks-algorithm=>: Document new option.
13927 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
13929         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
13930         with flag_reorder_blocks_algorithm.
13931         * common.opt (freorder-blocks-algorithm=): New flag.
13932         (reorder_blocks_algorithm): New enum.
13933         * flag-types.h (reorder_blocks_algorithm): New enum.
13934         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
13935         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
13937 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
13939         * bb-reorder.c: Add intro comment.
13940         (reorder_basic_blocks_software_trace_cache): Print a header to
13941         the dump file.
13942         (edge_order): New function.
13943         (reorder_basic_blocks_simple): New function.
13944         (reorder_basic_blocks): Choose between the STC and the simple
13945         algorithms (always choose the former).
13947 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
13949         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
13950         function, factored out from ...
13951         (reorder_basic_blocks): ... here.
13953 2015-10-01  Tom de Vries  <tom@codesourcery.com>
13955         * tree-cfg.c (dump_function_to_file): Dump function attributes using
13956         __attribute__(()) string.  Move dumping of function attributes to before
13957         function name.
13959 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
13961         PR target/66870
13962         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
13963         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
13964         based on gold linker version.
13965         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
13966         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
13967         * configure, config.in: Regenerate.
13969 2015-10-01  Alan Modra  <amodra@gmail.com>
13971         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
13972         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
13973         (rs6000_output_mi_thunk): Likewise.
13975 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
13977         * config/nvptx/mkoffload.c (process): Change offload data format.
13979 2015-09-30  Jeff Law  <law@redhat.com>
13981         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
13982         with constant conditions.
13983         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
13984         (remove_ctrl_stmt_and_useless_edges): No longer static.
13985         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
13986         (remove_ctrl_stmt_and_useless_edges): Likewise.
13988 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
13989             Cesar Philippidis  <cesar@codesourcery.com>
13991         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
13992         (TARGET_GOACC_VALIDATE_DIMS): Override.
13993         * target.def (TARGET_GOACC): New target hook prefix.
13994         (validate_dims): New hook.
13995         * targhooks.h (default_goacc_validate_dims): New.
13996         * omp-low.c (oacc_validate_dims): New.
13997         (execute_oacc_device_lower): New.
13998         (default_goacc_validate_dims): New.
13999         (pass_data_oacc_device_lower): New.
14000         (pass_oacc_device_lower): New pass.
14001         (make_pass_oacc_device_lower): New.
14002         * tree-pass.h (make_pass_oacc_device_lower): Declare.
14003         * passes.def (pass_oacc_device_lower): Add it.
14004         * doc/tm.texi: Rebuilt.
14005         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
14006         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
14008 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14010         PR rtl-optimization/67037
14011         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
14013 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
14015         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
14016         * passes.c: Include tree-ssanames.h.
14017         (execute_function_todo): Flush the pending free SSA_NAMEs after
14018         eliminating unreachable basic blocks.
14019         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
14020         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
14021         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
14022         (flush_ssanames_freelist): New function.
14023         (release_ssaname_fn): Put released names on the queue.
14024         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
14025         * tree-ssanames.h (flush_ssanames_freelist): Declare.
14027 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
14029         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
14030         (generate_target_descr_file, generate_target_offloadend_file)
14031         (generate_host_descr_file, prepare_target_image): Pass it on.
14032         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
14033         (compile_native, main): Pass it on.
14034         * lto-wrapper.c (compile_offload_image): Likewise.
14036 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
14037             Ilya Verbin  <ilya.verbin@intel.com>
14038             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14040         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
14041         (prepare_target_image, main): Refactor argv building to use
14042         obstacks.
14044 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14046         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
14047         * config/spu/spu.c (spu_expand_atomic_op): New function.
14048         * config/spu/spu.md (AINT): New mode iterator.
14049         (ATOMIC): New code iterator.
14050         (atomic_name, atomic_pred): New code predicates.
14051         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
14052         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
14053         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
14054         "atomic_<atomic_name>_fetch<mode>"): Likewise.
14056 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
14058         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
14059         debug insns.
14060         (scalar_chain::convert_reg): Likewise.
14062 2015-09-30  Richard Biener  <rguenther@suse.de>
14064         * builtins.c: Add comment that no new simplifications should
14065         be added here.
14067 2015-09-30  Marek Polacek  <polacek@redhat.com>
14069         PR tree-optimization/67690
14070         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
14071         reset_flow_sensitive_info_in_bb.
14072         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
14073         * tree-ssanames.c: Include "gimple-iterator.h".
14074         (reset_flow_sensitive_info_in_bb): New function.
14075         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
14077 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
14079         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
14080         variable, replacing it with...
14081         (offload_abi): ... this new variable.  Adjust all users.
14082         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
14084 2015-09-30  Matthias Klose  <doko@ubuntu.com>
14086         * configure.ac: Remove extraneous ;;.
14087         * configure: Regenerate.
14089 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
14091         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
14092         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
14093         predicate, disallow register for operand 2.
14095 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
14097         * graphite-dependences.c (scop_get_dependences): Moved in down
14098         in order to be visible to its caller.
14099         * graphite-poly.h: Removed compute_deps, and extend_schedule.
14101 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
14102             Aditya Kumar  <aditya.k7@samsung.com>
14104         PR tree-optimization/67754
14105         * graphite-optimize-isl.c (optimize_isl): Call
14106         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
14108 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
14110         * builtins.c (expand_builtin_acc_on_device): Delete.
14111         (expand_builtin): Don't call it.
14112         (fold_builtin_1): Fold acc_on_device.
14114 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
14116         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
14117         (ix86_nsaved_sseregs): Likewise.
14119 2015-09-29  Jeff Law  <law@redhat.com>
14121         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
14122         computation of unused value.
14124         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
14125         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
14126         inline macro expansion.
14128         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
14130         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
14131         (gen_shl_sext): Likewise.
14132         * config/sh/sh.md (divsi3): Likewise.
14133         (imm->ext_dest_operand splitter): Likewise.
14135 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
14136             Aditya Kumar  <aditya.k7@samsung.com>
14138         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
14139         (nb_data_writes_in_bb): Remove.
14140         (split_pbb): Remove.
14141         (split_reduction_stmt): Remove.
14142         (is_reduction_operation_p): Remove.
14143         (phi_contains_arg): Remove.
14144         (follow_ssa_with_commutative_ops): Remove.
14145         (detect_commutative_reduction_arg): Remove.
14146         (detect_commutative_reduction_assign): Remove.
14147         (follow_inital_value_to_phi): Remove.
14148         (edge_initial_value_for_loop_phi): Remove.
14149         (initial_value_for_loop_phi): Remove.
14150         (used_outside_reduction): Remove.
14151         (detect_commutative_reduction): Remove.
14152         (translate_scalar_reduction_to_array_for_stmt): Remove.
14153         (remove_phi): Remove.
14154         (dr_indices_valid_in_loop): Remove.
14155         (close_phi_written_to_memory): Remove.
14156         (translate_scalar_reduction_to_array): Remove.
14157         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
14158         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
14159         (rewrite_commutative_reductions_out_of_ssa): Remove.
14160         (build_poly_scop): Remove call to
14161         rewrite_commutative_reductions_out_of_ssa.
14163 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
14165         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
14166         Add new insn types for vector load and store pairs.
14167         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
14168         types "neon_ldp{,_q}".
14169         * config/arm/cortex-a57.md (neon_load_c): Add insn types
14170         "neon_ldp{,_q}".
14171         (neon_store_complex): Add insn types "neon_stp{,_q}".
14172         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
14173         "neon_{ldp,stp}_q".
14175 2015-09-29  Jeff Law  <law@redhat.com>
14177         * config/rx/constraints.md (Int08): Fix undefined left shift
14178         behaviour.
14179         (Sint08, Sint16, Sint24): Likewise.
14180         * config/rx/rx.c (rx_get_stack_layout): Likewise.
14182         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
14183         behaviour.
14185         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
14186         left shift behaviour.
14187         * config/msp430/constraints.md ('L' constraint): Similarly.
14188         ('Ys' constraint): Similarly.
14190 2015-09-29  Richard Biener  <rguenther@suse.de>
14192         PR tree-optimization/67170
14193         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
14194         the translate function pointer parameter to get the
14195         bool whether to disambiguate only by reference.
14196         (walk_non_aliased_vuses): Likewise.
14197         * tree-ssa-alias.c (maybe_skip_until): Adjust.
14198         (get_continuation_for_phi_1): Likewise.
14199         (get_continuation_for_phi): Likewise.
14200         (walk_non_aliased_vuses): Likewise.
14201         * tree-ssa-sccvn.c (const_parms): New bitmap.
14202         (vn_reference_lookup_3): Adjust for interface change.
14203         Disambiguate parameters pointing to readonly memory.
14204         (free_scc_vn): Free const_parms.
14205         (run_scc_vn): Initialize const_parms from a fn spec attribute.
14207 2015-09-29  Richard Biener  <rguenther@suse.de>
14209         PR tree-optimization/67741
14210         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
14211         builtin calls with correct signature.
14213 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
14215         PR target/65105
14216         * config/i386/i386.c: Include dbgcnt.h.
14217         (has_non_address_hard_reg): New.
14218         (convertible_comparison_p): New.
14219         (scalar_to_vector_candidate_p): New.
14220         (remove_non_convertible_regs): New.
14221         (scalar_chain): New.
14222         (scalar_chain::scalar_chain): New.
14223         (scalar_chain::~scalar_chain): New.
14224         (scalar_chain::add_to_queue): New.
14225         (scalar_chain::mark_dual_mode_def): New.
14226         (scalar_chain::analyze_register_chain): New.
14227         (scalar_chain::add_insn): New.
14228         (scalar_chain::build): New.
14229         (scalar_chain::compute_convert_gain): New.
14230         (scalar_chain::replace_with_subreg): New.
14231         (scalar_chain::replace_with_subreg_in_insn): New.
14232         (scalar_chain::emit_conversion_insns): New.
14233         (scalar_chain::make_vector_copies): New.
14234         (scalar_chain::convert_reg): New.
14235         (scalar_chain::convert_op): New.
14236         (scalar_chain::convert_insn): New.
14237         (scalar_chain::convert): New.
14238         (convert_scalars_to_vector): New.
14239         (pass_data_stv): New.
14240         (pass_stv): New.
14241         (make_pass_stv): New.
14242         (ix86_option_override): Created and register stv pass.
14243         (flag_opts): Add -mstv.
14244         (ix86_option_override_internal): Likewise.
14245         * config/i386/i386.md (SWIM1248x): New.
14246         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
14247         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
14248         (*anddi3_doubleword): New.
14249         (*zext<mode>_doubleword): New.
14250         (*zextsi_doubleword): New.
14251         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
14252         (*<code>di3_doubleword): New.
14253         * config/i386/i386.opt (mstv): New.
14254         * dbgcnt.def (stv_conversion): New.
14256 2015-09-29  Tom de Vries  <tom@codesourcery.com>
14258         * tree-cfg.c (dump_function_to_file): Dump function attributes.
14260 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
14262         PR target/67716
14263         * config/sh/sh.c (sh_override_options_after_change): New.
14264         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
14265         (sh_option_override): Move align_loops, align_jumps and
14266         align_functions handling into sh_override_options_after_change.
14268 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
14270         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
14271         (nvptx_record_offload_symbol): Record function execution geometry.
14272         * config/nvptx/mkoffload.c (process): Include launch geometry in
14273         function data.
14274         * omp-low.c (oacc_launch_pack): New.
14275         (replace_oacc_fn_attrib): New.
14276         (set_oacc_fn_attrib): New.
14277         (get_oacc_fn_attrib): New.
14278         (expand_omp_target): Create keyed varargs for GOACC_parallel call
14279         generation.
14280         * omp-low.h (get_oacc_fn_attrib): Declare.
14281         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
14282         (DEF_FUNCTION_TYPE_VAR_11): Delete.
14283         * tree.h (OMP_CLAUSE_EXPR): New.
14284         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
14286 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
14287             Sebastian Pop  <s.pop@samsung.com>
14289         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
14291 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
14292             Sebastian Pop  <s.pop@samsung.com>
14294         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
14295         * graphite-scop-detection.c (struct sese_l): New type.
14296         (get_entry_bb): API for getting entry bb of SESE.
14297         (get_exit_bb): API for getting exit bb of SESE.
14298         (class debug_printer): New type.  Simple printer in debug mode.
14299         (trivially_empty_bb_p): New.  Return true when BB is empty or
14300         contains only debug instructions.
14301         (graphite_can_represent_expr): Call scalar_evoution_in_region
14302         instead of analyze_scalar_evolution.  Pass in scop instead of only
14303         the scop entry.
14304         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
14305         scop entry.
14306         (stmt_simple_for_scop_p): Same.
14307         (harmful_stmt_in_bb): Same.
14308         (graphite_can_represent_loop): Deleted.
14309         (struct scopdet_info): Deleted.
14310         (scopdet_basic_block_info): Deleted.
14311         (build_scops_1): Deleted.
14312         (bb_in_sd_region): Deleted.
14313         (find_single_entry_edge): Deleted.
14314         (find_single_exit_edge): Deleted.
14315         (create_single_entry_edge): Deleted.
14316         (sd_region_without_exit): Deleted.
14317         (create_single_exit_edge): Deleted.
14318         (unmark_exit_edges): Deleted.
14319         (mark_exit_edges): Deleted.
14320         (create_sese_edges): Deleted.
14321         (build_graphite_scops): Deleted.
14322         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
14323         (build_scops): Use the new scop_builder to build scops.
14324         (dot_all_scops_1): Use the new pretty printer.  Print loop father
14325         as well.
14326         (loop_body_is_valid_scop): New.  Return true if loop body is a
14327         valid scop.
14328         (class scop_builder): New.  Builds SCoPs for polyhedral
14329         optimizations.
14330         (scop_builder): New constructor.
14331         (static sese_l invalid_sese): sese_l with invalid edges.
14332         (get_sese): Get an sese (from a loop) if possible, invalid_sese
14333         otherwise.
14334         (get_nearest_dom_with_single_entry): Get nearest dominator of a
14335         basic_block with single entry.  Return NULL if we get to the
14336         beginning of a function.
14337         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
14338         a basic_block with single exit.  Return NULL if we get to the
14339         beginning of a function.
14340         (print_sese): Pretty-print SESE.
14341         (merge_sese): Merge two SESEs if possible and return the new SESE.
14342         (build_scop_depth): Start building the SCoP within a loop nest.
14343         (build_scop_breadth): Start building the SCoP at a single loop
14344         depth.  Merge adjacent SESEs if valid.
14345         (can_represent_loop_1): Returns true if Graphite can represent
14346         loop inside SCoP.  Helper for can_represent_loop.
14347         (can_represent_loop): Returns true if Graphite can represent LOOP
14348         and all its nested loops in SCoP.
14349         (loop_is_valid_scop): Returns true if LOOP and all its nests
14350         constitute a valid SCoP.
14351         (region_has_one_loop): Returns true of a region has only one loop.
14352         (add_scop): Add SCoP to the list of valid scops.  Removes an
14353         already existing scop if it intersects with or subsumed by this one.
14354         (harmful_stmt_in_region): Returns true if SCoP has any statment
14355         which cannot be represented by Graphite.
14356         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
14357         (remove_subscops): Remove any SCoP from the list of already found
14358         SCoPs, if subsumed by S1.
14359         (intersects): Return true if region bounded by SCoPs S1 and S2
14360         intersect.
14361         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
14362         * graphite.c (print_graphite_scop_statistics):
14363         (print_graphite_statistics): Print SCoP info while debugging.
14364         (graphite_initialize): Early exit in case number of loops in a
14365         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
14366         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
14367         (graphite_finalize):
14368         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
14369         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
14370         (recompute_all_dominators): Recalculate POST_DOMINATORS.
14371         * tree-cfg.c (print_loops): Print the function name while printing
14372         loops.
14374 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
14375             Sebastian Pop  <s.pop@samsung.com>
14377         PR tree-optimization/67700
14378         * graphite-sese-to-poly.c (parameter_index_in_region): Call
14379         invariant_in_sese_p_rec.
14380         (extract_affine): Same.
14381         (rewrite_cross_bb_scalar_deps): Call update_ssa.
14382         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
14383         * sese.h (invariant_in_sese_p_rec): Declare.
14385 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
14387         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
14389 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
14391         Revert:
14392         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14393                     Jiong Wang  <jiong.wang@arm.com>
14395         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
14396         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
14397         (REG_CLASS_NAMES): Likewise.
14398         (REG_CLASS_CONTENTS): Likewise.
14399         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
14400         (aarch64_register_move_cost): Likewise.
14401         (aarch64_load_symref_appropriately): Invoke the new added pattern if
14402         possible.
14403         * config/aarch64/constraints.md (Uc0): New constraint.
14405 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
14407         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
14409 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
14411         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
14412         SECTION_EXCLUDE in XO mapping class.
14414 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
14416         PR target/54236
14417         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
14418         and handle ne and eq codes.
14419         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
14420         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
14421         CONST_INT_P.  Use reverse_condition.
14422         (sh_split_treg_set_expr): Likewise.
14424 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
14426         * config/arm/types.md (type): Add rotate_imm.
14427         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
14428         ROR immediate case.
14429         (*rorsi3_insn_uxtw): Likewise.
14430         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
14431         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
14432         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
14434 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14436         PR rtl-optimization/67481
14437         * ifcvt.c (contains_ccmode_rtx_p): New function.
14438         (insn_valid_noce_process_p): Use it.
14440 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14442         PR rtl-optimization/67456
14443         PR rtl-optimization/67464
14444         PR rtl-optimization/67465
14445         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
14446         move in the mode of x.  Handle combination of complex and simple
14447         block pairs as well as the case when one is empty.
14449 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14451         * doc/gimple.texi: Update references to gimple_statement_base.
14452         * gdbhooks.py: Likewise.
14453         * gimple.h: Likewise.
14455 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
14457         * config/sparc/driver-sparc.c: map LEON to leon3
14459 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
14461         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
14462           and make it inverse to change default
14463         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
14464           supervisor mode
14465         * doc/invoke.texi: Document change of default
14467 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
14469         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
14470         true on %f0 for a target without FPU.
14471         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
14472         without FPU.
14473         (untyped_return): Do not load %f0 for a target without FPU.
14475 2015-09-28  Andrew Pinski  <apinski@cavium.com>
14477         * config/aarch64/aarch64.md (prefetch):
14478         Change the predicate of operand 0 to register_operand.
14480 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
14482         * config/i386/predicates.md (register_sse4nonimm_operand): New
14483         predicate.
14484         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
14485         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
14486         Use register_sse4nonimm_operand as operand 0 predicate.
14487         (*vec_extractv8hi_sse2): Remove insn pattern.
14488         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
14489         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
14491 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
14492             Kaz Kojima  <kkojima@gcc.gnu.org>
14494         PR target/67391
14495         * config/sh/sh-protos.h (sh_lra_p): Declare.
14496         * config/sh/sh.c (sh_lra_p): Make non-static.
14497         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
14498         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
14499         Expand into addsi3_scr if operands[2] if needed.
14500         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
14501         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
14502         (addsi3_scr, *addsi3): New insn_and_split patterns.
14504 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
14506         PR rtl-optimization/64164
14507         PR tree-optimization/67312
14508         PR middle-end/67340
14509         PR middle-end/67490
14510         PR bootstrap/67597
14511         * cfgexpand.c (parm_in_stack_slot_p): Remove.
14512         (ssa_default_def_partition): Remove.
14513         (get_rtl_for_parm_ssa_default_def): Remove.
14514         (set_rtl): Check that RTL assignments match expectations.
14515         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
14516         default def location for params and results.  Record SSA names
14517         or types in REG and MEM attrs, respectively.
14518         (set_parm_rtl): New.
14519         (expand_one_ssa_partition): Drop logic that assigned MEMs with
14520         unassigned addresses.
14521         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
14522         deferred stack alloc vars.
14523         (expand_used_vars): Skip partitions holding parm default defs.
14524         Move adjust_one_expanded_partition_var loop...
14525         (pass_expand::execute): ... here.  Drop redundant assert.
14526         Adjust comments before the final loop over all ssa names.
14527         Require assigned rtl of parms and results to match exactly.
14528         Reset its attributes to match them, not any other variables in
14529         the same partition.
14530         (expand_debug_expr): Use entry value for PARM's default defs
14531         only iff they have zero nondebug uses.
14532         * cfgexpand.h (parm_in_stack_slot_p): Remove.
14533         (get_rtl_for_parm_ssa_default_def): Remove.
14534         (set_parm_rtl): Declare.
14535         * doc/invoke.texi: Improve wording.
14536         * explow.c (promote_decl_mode): Fix promote_function_mode for
14537         result decls not by reference.
14538         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
14539         bypass TYPE_MODE to get the actual vector mode.
14540         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
14541         2015-08-19's changes as follows.  Drop include of
14542         basic-block.h and df.h.
14543         (rtl_for_parm): Remove.
14544         (maybe_reset_rtl_for_parm): Remove.
14545         (parm_in_unassigned_mem_p): Remove.
14546         (use_register_for_decl): Add logic for RESULT_DECLs matching
14547         assign_parms' behavior.
14548         (split_complex_args): Revert.
14549         (assign_parms_augmented_arg_list): Revert.  Add comment
14550         referencing the logic above.
14551         (assign_parm_adjust_stack_rtl): Revert.
14552         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
14553         of SET_DECL_RTL.  Set up a REG if the parm demands so.
14554         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
14555         calls into a single set_parm_rtl.  Set up a temporary RTL
14556         temporarily for expand_assignment.
14557         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
14558         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
14559         (assign_bounds): Revert.
14560         (assign_parms): Revert.  Use set_parm_rtl.
14561         (allocate_struct_function): Relayout result and parms of
14562         non-abstruct functions.
14563         (expand_function_start): Revert.  Use set_parm_rtl.  If the
14564         result is not a hard reg, create a pseudo from the promoted
14565         mode of the default def.  Promote static chain mode.
14566         * tree-outof-ssa.c (remove_ssa_form): Drop unused
14567         partition_has_default_def.  Set up
14568         partitions_for_parm_default_defs.
14569         (finish_out_of_ssa): Remove partition_has_default_def.
14570         Release partitions_for_parm_default_defs.
14571         * tree-outof-ssa.h (struct ssaexpand): Remove
14572         partition_has_default_def.  Add
14573         partitions_for_parm_default_defs.
14574         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
14575         stor-layout.h.
14576         (build_ssa_conflict_graph): Fix conflict-detection of default
14577         defs of even unused default defs of params and results.
14578         (for_all_parms): New.
14579         (create_default_def): New.
14580         (register_default_def): New.
14581         (coalesce_with_default): New.
14582         (create_outofssa_var_map): Create default defs for all parms
14583         and results, and register their partitions.  Add GIMPLE_RETURN
14584         operands as coalesce candidates with results.  Add default
14585         defs of each parm or result as coalesce candidates with its
14586         other defs.  Mark each result def, and each default def of
14587         parms, as used_in_copy.
14588         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
14589         with the ssa names, even anonymous ones.  Drop
14590         parm_in_stack_slot_p calls.  Require same signedness and
14591         alignment.
14592         (coalesce_ssa_name): Add coalesce candidates for all defs of
14593         each parm and result, even unused ones.
14594         (parm_default_def_partition_arg): New type.
14595         (set_parm_default_def_partition): New.
14596         (get_parm_default_def_partitions): New.
14597         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
14598         * tree-ssa-live.c (partition_view_init): Regard unused defs of
14599         parms and results as used.
14600         (verify_live_on_entry): Don't error out just because they're
14601         not live.
14603 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
14605         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
14606         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
14607         (output_fde): Don't output length for debug_frame on AIX.
14608         (output_call_frame_info): Don't output length for debug_frame on AIX.
14609         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
14610         HAVE_XCOFF_DWARF_EXTRAS.
14611         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
14612         HAVE_XCOFF_DWARF_EXTRAS.
14613         (output_compilation_unit_header): Don't output length on AIX.
14614         (output_pubnames): Don't output length on AIX.
14615         (output_aranges): Delete argument. Compute length locally. Don't
14616         output length on AIX.
14617         (output_line_info): Don't output length on AIX.
14618         (dwarf2out_finish): Don't compute aranges_length.
14619         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
14620         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
14621         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
14622         symbol decoration for AIX.
14623         (rs6000_xcoff_debug_unwind_info): New.
14624         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
14625         for SECTION_DEBUG.
14626         (rs6000_xcoff_declare_function_name): Emit different
14627         .function pseudo-op when DWARF2_DEBUG. Don't call
14628         xcoffout_declare_function for DWARF2_DEBUG.
14629         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
14630         Redefine.
14631         * config/rs6000/aix71.h: New.
14632         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
14633         locations support.
14634         * configure: Regenerate.
14635         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
14636         DWARF support.
14638 2015-09-26  Jeff Law  <law@redhat.com>
14640         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
14641         behaviour.
14642         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
14643         behaviour.
14645         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
14646         behaviour
14648         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
14649         undefined behaviour.
14651         * config/cris/cris.md (asrandb): Fix left shift undefined
14652         behaviour.
14653         (asrandw): Likewise.
14655 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
14657         PR target/61578
14658         * lra-constarints.c (match_reload): Check presence of the input pseudo
14659         in the output operand.
14661 2015-09-25  Tobias Burnus  <burnus@net-b.de>
14663         * doc/invoke.texi (-fsanitize): Minor wording tweak.
14665 2015-09-25  Tobias Burnus  <burnus@net-b.de>
14667         * doc/invoke.texi (-fsanitize): Update URLs.
14669 2015-09-25  Teresa Johnson  <tejohnson@google.com>
14671         * opts.c (finish_options): Unset -freorder-blocks-and-partition
14672         if not using profile.
14674 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14676         PR pretty-print/67567
14677         * pretty-print.c (pp_string): Add gcc_checking_assert.
14678         * pretty-print.h (output_buffer_append_r): Likewise.
14680 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
14682         PR target/67675
14683         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
14684         addr2 individually.  Don't emit logical or insn if one is known to
14685         be aligned approriately.
14686         (sh_expand_cmpnstr): Likewise.
14688 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
14690         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
14691         __builtin_aarch64_fp[sc]r arguments into a register.
14693 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
14695         * config.gcc (x86_archs): Replace lakemount with lakemont.
14696         (with_cpu): Likewise.
14697         (with_arch): Likewise.
14698         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
14699         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
14700         __tune_lakemount__ with __tune_lakemont__.
14701         * config/i386/i386.c (lakemount_cost): Renamed to ...
14702         (lakemont_cost): This.
14703         (m_LAKEMOUNT): Renamed to ...
14704         (m_LAKEMONT): This.
14705         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
14706         (processor_target_table): Replace "lakemount" with "lakemont".
14707         (processor_alias_table): Likewise.
14708         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
14709         PROCESSOR_LAKEMONT.
14710         (ix86_adjust_cost): Likewise.
14711         (ia32_multipass_dfa_lookahead): Likewise.
14712         * config/i386/i386.h (processor_type): Likewise.
14713         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
14714         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
14715         Lakemount with Lakemont.
14717 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
14719         * config.gcc (x86_archs): Replace iamcu with lakemount.
14720         (with_cpu): Likewise.
14721         (with_arch): Likewise.
14722         * doc/invoke.texi: Likewise.
14723         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
14724         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
14725         __tune_iamcu__ with __tune_lakemount__.
14726         * config/i386/i386.c (iamcu_cost): Renamed to ...
14727         (lakemount_cost): This.
14728         (m_IAMCU): Renamed to ...
14729         (m_LAKEMOUNT): This.
14730         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
14731         (processor_target_table): Replace "iamcu" with "lakemount".
14732         (processor_alias_table): Likewise.
14733         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
14734         PROCESSOR_LAKEMOUNT.
14735         (ix86_adjust_cost): Likewise.
14736         (ia32_multipass_dfa_lookahead): Likewise.
14737         * config/i386/i386.h (processor_type): Likewise.
14738         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
14740 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
14742         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
14743         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
14744         Declare.
14745         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
14746         (pa_expand_compare_and_swap_loop): New.
14747         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
14748         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
14749         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
14750         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
14751         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
14752         Revise.
14754 2015-09-24  Michael Collison  <michael.collison@linaro.org>
14756         PR other/57195
14757         * read-md.c (read_name): Allow mode iterators inside angle
14758         brackets in rtl expressions.
14760 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
14762         PR target/61578
14763         * ira-color.c (update_allocno_cost): Add parameter.
14764         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
14765         parameter.
14767 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14769         PR driver/67640
14770         * opts-common.c (prune_options): Discard all -fdiagnostics-color
14771         but the last one, which is moved to the front to be processed
14772         first.
14773         * opts.c (enable_warning_as_error): Reject options that do not
14774         control warnings.
14776 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
14778         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
14780 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
14782         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
14783         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
14784         (aarch64_cannot_force_const_mem): Likewise.
14785         (aarch64_classify_address): Likewise.
14786         (aarch64_classify_symbolic_expression): Likewise.
14787         (aarch64_print_operand): Likewise.
14788         (aarch64_classify_symbol): Likewise.
14789         (aarch64_mov_operand_p): Likewise.
14790         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
14791         (aarch64_mov_operand): Likewise.
14793 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
14795         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
14796         for info->spe_gp_size.
14798 2015-09-24  Richard Biener  <rguenther@suse.de>
14800         PR lto/67699
14801         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
14802         abstract origins.
14804 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
14806         * tree-object-size.c (plus_stmt_object_size)
14807         (cond_expr_object_size): Change the formal parameters from gimple
14808         to gimple *.
14809         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
14810         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
14811         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
14813 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14815         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
14816         Check for ld -type pie on Solaris 11.x and 12.
14817         * configure: Regenerate.
14818         * config.in: Regenerate.
14820         * gcc.c (LD_PIE_SPEC): Allow redefinition.
14822         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
14823         (STARTFILE_SPEC): Use it.
14824         (ENDFILE_CRTEND_SPEC): Define.
14825         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
14826         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
14827         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
14828         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
14829         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
14830         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
14831         (ENDFILE_ARCH_SPEC): Define.
14832         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
14834 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14836         * configure.ac (gcc_cv_solaris_crts): New test.
14837         * configure. Regenerate.
14838         * config.in: Regenerate.
14839         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
14840         HAVE_SOLARIS_CRTS variant.
14842 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14844         * tree-inline.h (count_insns_seq): Delete prototype.
14845         (estimate_num_insns_seq): Define prototype.
14846         * tree-inline.c (count_insns_seq): Delete.
14847         (estimate_num_insns_seq): Remove static qualifier.
14848         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
14849         with estimate_num_insns_seq.
14851 2015-09-24  Richard Biener  <rguenther@suse.de>
14853         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
14854         members.
14855         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
14856         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
14857         offset.
14858         (ao_ref_init_from_vn_reference): Record clique and base in the
14859         built base.
14860         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
14862 2015-09-24  Richard Biener  <rguenther@suse.de>
14864         PR tree-optimization/48885
14865         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
14866         as not including any restrict tags from other pointers.
14868 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
14870         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
14871         character when appending to offload_targets.
14873         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
14874         offload targets by commas, not colons.
14875         * config.in: Regenerate.
14876         * configure: Likewise.
14877         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
14878         instead of setting up the default offload targets here...
14879         (process_command): ..., do it here.
14880         libgomp/
14881         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
14882         targets are separated by commas.
14883         * config.h.in: Regenerate.
14885 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
14886             Nathan Sidwell  <nathan@codesourcery.com>
14888         * omp-low.h (omp_reduction_init_op): Declare.
14889         * omp-low.c (omp_reduction_init_op): New, broken out of ...
14890         (omp_reduction_init): ... here.  Call it.
14891         * tree-parloops.c (initialize_reductions): Use
14892         omp_reduction_init_op.
14894 2015-09-23   Richard Biener  <rguenther@suse.de>
14896         PR middle-end/67662
14897         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
14898         undefined overflow unless they will cancel out.
14900 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
14902         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
14903         insn emit.
14905 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14907         PR c/49655
14908         * opts.h (write_langs): Declare.
14909         * opts-global.c (write_langs): Make it extern.
14911 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
14913         PR target/67391
14914         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
14915         overlapping regs when matching the pattern.
14917 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
14919         * config/aarch64/aarch64-simd.md
14920         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
14921         (aarch64_float_truncate_hi_v4sf_le): New.
14922         (aarch64_float_truncate_hi_v4sf_be): Likewise.
14924 2015-09-23  Richard Biener  <rguenther@suse.de>
14926         * tree-ssa-structalias.c (intra_create_variable_infos): Build
14927         representatives for all restrict qualified pointer destinations.
14929 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
14931         * config/i386/i386.md (define_code_attr mshift): New.
14932         (define_mode_iterator SWI1248_AVX512BW): Rename ...
14933         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
14934         only.
14935         (define_insn "*k<logic><mode>"): Use new iterator name.
14936         (define_insn "*<mshift><mode>3"): New.
14938 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
14940         PR middle-end/67649
14941         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
14942         mark the block as accessible.
14944 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
14946         * function.c (thread_prologue_and_epilogue_insns): Delete
14947         orig_entry_edge argument to try_shrink_wrapping.
14948         * shrink-wrap.c (can_get_prologue): New function.
14949         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
14950         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
14951         can_get_prologue where needed.  Remove code that finds a single
14952         edge for the prologue.  Remove code that tests if any reg clobbered
14953         by the prologue is live on the prologue edge.  Remove code that finds
14954         the new prologue edge after duplicating blocks.  Make a new prologue
14955         block and edge.
14956         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
14958 2015-09-22  Jeff Law  <law@redhat.com>
14960         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
14961         behavior.
14963 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
14965         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
14966         -Wtemplates, -Wnamespaces): Document.
14968 2015-09-22  Tom de Vries  <tom@codesourcery.com>
14970         PR tree-optimization/67671
14971         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
14972         pointer references as restrict.
14974 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
14976         * config/nios2/nios2.c (nios2_legitimize_address): When handling
14977         'reg + reloc' cases, allow first operand to be non-REG, and use
14978         force_reg() to enforce address pattern.
14980 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
14982         PR target/67480
14983         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
14984         (define_mode_iterator VI12_AVX_AVX512F): New.
14985         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
14986         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
14987         (define_insn "*<code><mode>3"): ... Into new pattern using
14988         VI12_AVX_AVX512F iterators without masking.
14990 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
14992         * config.gcc: Support "skylake-avx512".
14993         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14994         PROCESSOR_SKYLAKE_AVX512.
14995         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
14996         (processor_target_table): Add "skylake-avx512".
14997         (PTA_SKYLAKE_AVX512): Define.
14998         (ix86_option_override_internal): Add "skylake_avx512".
14999         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
15000         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
15001         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
15002         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
15003         * doc/invoke.texi (skylake-avx512): New.
15005 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
15007         * config/i386/i386.md (define_insn "kunpckhi"): Fix
15008         operand in pattern.
15009         (define_insn "kunpcksi"): Ditto.
15010         (define_insn "kunpckdi"): Ditto.
15012 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
15014         * config/i386/i386.md (define_split not/xor SWI1248x): Use
15015         iterator instead of fixed modes.
15017 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
15019         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
15020         Adjust declaration.
15021         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
15022         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
15023         out_result.  Update to support update-fetch operations.
15024         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
15025         Adjust for change to aarch64_gen_atomic_ldop.
15026         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
15027         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
15028         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
15029         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
15030         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
15032 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
15034         * config/aarch64/aarch64-protos.h
15035         (aarch64_atomic_ldop_supported_p): Declare.
15036         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
15037         (enum aarch64_atomic_load_op_code): New.
15038         (aarch64_emit_atomic_load_op): New.
15039         (aarch64_gen_atomic_ldop): Update to support load-operate
15040         patterns.
15041         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
15042         to an expander.
15043         (aarch64_atomic_<atomic_optab><mode>): New.
15044         (aarch64_atomic_<atomic_optab><mode>_lse): New.
15045         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
15046         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
15047         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
15049 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
15051         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
15052         (UNSPECV_ATOMIC_LDOP_OR): New.
15053         (UNSPECV_ATOMIC_LDOP_BIC): New.
15054         (UNSPECV_ATOMIC_LDOP_XOR): New.
15055         (UNSPECV_ATOMIC_LDOP_PLUS): New.
15056         (ATOMIC_LDOP): New.
15057         (atomic_ldop): New.
15058         (aarch64_atomic_load<atomic_ldop><mode>): New.
15060 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
15062         * config/aarch64/aarch64.md
15063         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
15064         pattern.
15066 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
15068         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
15069         Declare.
15070         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
15071         (aarch64_gen_atomic_ldop): New.
15072         (aarch64_split_atomic_op): Fix whitespace and add a comment.
15073         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
15074         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
15075         (atomic_exchange<mode>): Replace with an expander.
15076         (aarch64_atomic_exchange<mode>): New.
15077         (aarch64_atomic_exchange<mode>_lse): New.
15078         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
15079         (aarch64_atomic_swp<mode>): New.
15081 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15083         * tree-inline.c (expand_call_inline): Use inform for extra note.
15084         Do not give a note with UNKNOWN_LOCATION.
15085         Replace input_location with gimple_location (stmt).
15086         Use true/false instead of TRUE/FALSE.
15088 2015-09-22  Tom de Vries  <tom@codesourcery.com>
15090         PR tree-optimization/67666
15091         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
15092         with single field non-conservative.
15094 2015-09-21  David S. Miller  <davem@davemloft.net>
15096         PR/67622
15097         Revert:
15098         2015-09-11  David S. Miller  <davem@davemloft.net>
15100         * config/sparc/constraints.md: Make "U" constraint a real register
15101         constraint.
15102         * config/sparc/sparc.c (TARGET_LRA_P): Define.
15103         (D_MODES, DF_MODES): Add missing cast.
15104         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
15105         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
15106         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
15107         cost to 8.
15108         * config/sparc/sparc.h (PROMOTE_MODE): Define.
15109         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
15110         provide these insn when flag_pic.
15112         2015-09-17  David S. Miller  <davem@davemloft.net>
15114         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
15115         Declare.
15116         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
15117         function.
15118         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
15119         (HARD_REGNO_CALLER_SAVE_MODE): Define.
15120         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
15121         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
15122         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
15123         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
15124         provide when flag_pic.
15126 2015-09-21  Jeff Law  <law@redhat.com>
15128         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
15129         behavior.
15131 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15133         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
15135 2015-09-21  Richard Biener  <rguenther@suse.de>
15137         * passes.c (rest_of_decl_compilation): Do not call
15138         dwarf2out_early_global_decl for aliases.
15140 2015-09-21  Richard Biener  <rguenther@suse.de>
15142         PR debug/67664
15143         * dwarf2out.c (add_location_or_const_value_attribute): Remove
15144         attribute parameter.  Early exit if either DW_AT_const_value
15145         or DW_AT_location are present already.
15146         (gen_variable_die): Adjust caller.
15147         (dwarf2out_late_global_decl): Likewise.
15149 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
15151         PR target/67657
15152         * config/sh/sh.c (sh_remove_overlapping_post_inc,
15153         sh_peephole_emit_move_insn): Add new functions.
15154         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
15155         sh_peephole_emit_move_insn): Declere them.
15156         * config/sh/sh.md: Use them in various peephole2 patterns.
15158 2015-09-21  Richard Biener  <rguenther@suse.de>
15160         PR middle-end/67651
15161         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
15162         address with -fno-delete-null-pointer-checks.
15164 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
15166         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
15167         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
15168         (reduc_uplus_v16qi): Remove.
15170         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
15171         (reduc_<VEC_reduc_name>_v2df): Remove.
15172         (reduc_<VEC_reduc_name>_v4sf): Remove.
15173         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
15175         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
15176         gen_ function by removing * prefix.
15177         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
15179 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15181         PR middle-end/60832
15182         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
15183         Print i_bound without converting it to a tree.
15185 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
15187         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
15188         operands[4] operands[5] swap with std::swap, removed tmp variable.
15189         (arm_evpc_neon_vzip): Replaced in0/in1 and
15190         out0/out1 swaps with std::swap, removed x variable.
15191         (arm_evpc_neon_vtrn): Replaced in0/int1 and
15192         out0/out1 swaos with std::swap, removed x variable.
15193         (arm_expand_vec_perm_const_1): Replaced
15194         d->op0/d->op1 swap with std::swap, removed x variable.
15195         (arm_evpc_neon_vuzp): Replaced in0/in1 and
15196         out0/out1 swaps with std::swap, removed x variable.
15198 2015-09-21  Jonathan Yong  <10walls@gmail.com>
15200         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
15201         sysroot/usr/lib/32api for additional win32 libraries,
15202         fixes failing Cygwin bootstrapping.
15204 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
15206         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
15208 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
15210         PR target/67126
15211         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
15212         (*mov_t_msb_neg): Rewrite negc pattern.
15214 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
15216         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
15217         immediate generation code.
15219 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
15221         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
15222         redundant immediate generation code.
15224 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
15226         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
15227         (AARCH64_NUM_BITMASKS): Remove.
15228         (aarch64_bitmasks_cmp): Remove.
15229         (aarch64_build_bitmask_table): Remove.
15231 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
15233         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
15234         slow immediate matching loops with a faster algorithm.
15236 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
15238         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
15239         faster algorithm.
15241 2015-09-20  Jeff Law  <law@redhat.com>
15243         PR tree-optimization/47679
15244         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
15245         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
15246         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
15247         (thread_through_normal_block): Use record_temporary_equivalences.
15249 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
15251         * coretypes.h (gimple): Change typedef to be a forward declaration.
15252         * gimple.h (gimple_statement_base): rename to gimple.
15253         * (all functions and types using gimple): Adjust.
15254         * *.[ch]: Likewise.
15256 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
15257             David Edelsohn  <dje.gcc@gmail.com>
15259         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
15260         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15261         (EH_FRAME_THROUGH_COLLECT2): Define.
15262         (EH_TABLES_CAN_BE_READ_ONLY): Define.
15263         (ASM_OUTPUT_DWARF_PCREL): Define.
15264         (ASM_OUTPUT_DWARF_DATAREL): Define.
15266 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
15268         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
15269         of TARGET_ELF32.
15271 2015-09-18  Jeff Law  <law@redhat.com>
15273         PR tree-optimization/47679
15274         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
15275         it here ...
15276         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
15277         object.  Update constructor.
15278         (pass_dominator::execute):  Corresponding chagnes to declaration
15279         and initialization of avail_exprs_stack.  Update constructor call
15280         for dom_opt_dom_walker object.
15281         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
15282         it down to children as needed.
15283         (record_equivalences_from_incoming_edge): Likewise.
15284         (eliminate_redundant_computations): Likewise.
15285         (record_equivalences_from_stmt): Likewise.
15286         (simplify_stmt_for_jump_threading): Likewise.
15287         (record_temporary_equivalences): Likewise.
15288         (optimize_stmt): Likewise.
15289         (dom_opt_dom_walker::thread_across_edge): Update access to
15290         avail_exprs_stack object and pass it to children as needed.
15291         (dom_opt_dom_walker::before_dom_children): Similarly.
15292         (dom_opt_dom_walker::after_dom_children): Similarly.
15293         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
15294         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
15295         Add avail_expr_stack argument.  Pass it to children as needed.
15296         (dummy_simplify): Likewise.
15297         (simplify_control_stmt_condition): Likewise.
15298         (thread_around_empty_blocks): Likewise.
15299         (thread_through_normal_block): Likewise.
15300         (thread_across_edge): Likewise.
15301         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
15302         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
15304         PR tree-optimization/47679
15305         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
15306         it here ...
15307         (dom_opt_dom_walker): New private member holding the const_and_copies
15308         object.  Update constructor.
15309         (pass_dominator::execute): Corresponding changes to declaration
15310         and initialization of const_and_copies.  Update constructor call
15311         for the dom_opt_dom_walker object.
15312         (record_temporary_equivalences): Accept const_and_copies argument
15313         pass it down to children as needed.
15314         (record_equality): Likewise.
15315         (record_equivalences_from_incoming_edge): Likewise.
15316         (cprop_into_successor_phis, optimize_stmt): Likewise.
15317         (eliminate_redundant_computations): Likewise.
15318         (dom_opt_dom_walker::thread_across_edge): Update access to
15319         const_and_copies object and pass it to children as needed.
15320         (dom_opt_dom_walker::before_dom_children): Similarly.
15321         (dom_opt_dom_walker::after_dom_children): Similarly.
15323         PR tree-optimization/47679
15324         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
15325         it into the avail_exprs_stack class.
15326         (pass_dominator::execute): Corresponding changes to declaration
15327         and initialization of avail_exprs.  Pass avail_exprs to
15328         dump_dominator_optimization_stats.
15329         (record_cond): Extract avail_exprs from avail_exprs_stack.
15330         (lookup_avail_expr): Similarly.
15331         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
15332         position in file.
15333         (dump_dominator_optimization_stats): Make static and prototype.
15334         Add argument for the hash table to dump.
15335         (debug_dominator_optimization_stats): Remove.
15336         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
15337         prototype.
15338         (debug_dominator_optimization_stats): Similarly.
15339         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
15340         "void" in prototype for pop_to_marker method.  Add accessor method
15341         for the underlying avail_exprs table.
15343         * tree-ssa-threadedge.c: Remove trailing whitespace.
15345 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
15347         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
15348         unsigned.
15349         (pa_ldil_cint_p): Likewise.
15350         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
15351         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
15352         Update callers.
15353         * config/pa/pa.md: Likewise.
15355 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
15357         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
15358         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
15359         (diagnostic_show_locus): Likewise.
15360         (diagnostic_print_caret_line): Likewise.
15361         * diagnostic-show-locus.c: New file.
15363 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
15365         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
15366         "back" parameter. Declare label in #if block.
15368 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
15370         PR middle-end/67619
15371         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
15372         the address to a register.
15374 2015-09-18  Jeff Law  <law@redhat.com>
15376         PR tree-optimization/47679
15377         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
15378         * tree-ssa-dom.c: Remove unnecessary header includes.
15379         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
15380         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
15381         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
15382         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
15383         (pass_phi_only_cprop::execute): Likewise.
15384         (make_pass_phi_only_cprop): Likewise.
15385         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
15386         uses of file scoped statics by passing the required objects
15387         as parameters wherever needed.
15389 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
15390             David Edelsohn  <dje.gcc@gmail.com>
15392         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
15393         EH_FRAME_THROUGH_COLLECT2.
15394         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
15395         DW_EH_PE_datarel.
15396         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
15397         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
15398         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
15399         * except.c (switch_to_exception_section): Use a read-only section
15400         even if EH_FRAME_SECTION_NAME is undefined.
15401         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
15402         * collect2.c (write_c_file_stat): Provide dbase on AIX.
15403         (scan_prog_file): Don't export __dso_handle nor
15404         __gcc_unwind_dbase.
15405         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15406         (EH_TABLES_CAN_BE_READ_ONLY): Define.
15407         (ASM_OUTPUT_DWARF_PCREL): Define.
15408         (ASM_OUTPUT_DWARF_DATAREL): Define.
15409         (EH_FRAME_THROUGH_COLLECT2): Define.
15410         (EH_FRAME_IN_DATA_SECTION): Delete.
15411         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
15412         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
15413         Declare.
15414         (rs6000_asm_output_dwarf_datarel): Declare.
15415         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
15416         (rs6000_aix_asm_output_dwarf_datarel): New.
15417         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
15418         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
15419         (EH_FRAME_THROUGH_COLLECT2): Define.
15420         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
15421         (EH_FRAME_THROUGH_COLLECT2): Define.
15422         (EH_TABLES_CAN_BE_READ_ONLY): Define.
15423         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
15424         (EH_FRAME_THROUGH_COLLECT2): New.
15425         (ASM_OUTPUT_DWARF_DATAREL): New.
15426         * doc/tm.texi: Regenerate.
15428 2015-09-18  Richard Biener  <rguenther@suse.de>
15430         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
15431         we're in early phase.
15432         (schedule_generic_params_dies_gen): Likewise.
15433         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
15434         work as possible, retaining unhandled cases.
15435         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
15436         clear out generic_type_instances at the end.
15437         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
15438         (dwarf2out_early_finish): ... here.  Do most of
15439         gen_remaining_tmpl_value_param_die_attribute here.
15441 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
15443         PR tree-optimization/67283
15444         * tree-sra.c (type_consists_of_records_p): Rename to...
15445         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15446         (completely_scalarize_record): Rename to...
15447         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
15448         (scalarize_elem): New.
15449         (analyze_all_variable_accesses): Follow renamings.
15451 2015-09-18  Richard Biener  <rguenther@suse.de>
15453         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
15454         in early-dwarf.
15456 2015-09-18  Richard Biener  <rguenther@suse.de>
15458         PR tree-optimization/66142
15459         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
15460         treat MEM[&x] and x the same.
15461         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
15462         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
15463         when we simplified sth.
15464         (vn_reference_maybe_forwprop_address): Likewise.
15465         (valueize_refs_1): When we simplified through
15466         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
15467         set valueized_anything to true.
15468         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
15469         one ref kills the other instead of just a offset-based test.
15470         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
15471         for the operand_equal_p test to compare bases and also compare
15472         sizes.
15474 2015-09-17  Christian Bruel  <christian.bruel@st.com>
15476         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
15478 2015-09-17  Richard Henderson  <rth@redhat.com>
15480         PR libstdc++/65913
15481         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
15482         pointers that encode the alignment of the object.
15484 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
15486         PR rtl-optimization/66790
15487         * df-problems.c (LIVE): Amend documentation.
15489 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
15491         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
15492         and optabs-tree.o.
15493         (GTFILES): Replace optabs.c with optabs-libfunc.c.
15494         * genopinit.c (main): Add an include guard to insn-opinit.h.
15495         Protect the rtx_code parts with NUM_RTX_CODE.
15496         * optabs.h: Split parts out to...
15497         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
15498         * optabs.c: Split parts out to...
15499         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
15500         * cilk-common.c: Include optabs-query.h rather than optabs.h.
15501         * fold-const.c: Likewise.
15502         * target-globals.c: Likewise.
15503         * tree-if-conv.c: Likewise.
15504         * tree-ssa-forwprop.c: Likewise.
15505         * tree-ssa-loop-prefetch.c: Likewise.
15506         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
15507         Remove unncessary include files.
15508         * tree-ssa-phiopt.c: Likewise.
15509         * tree-ssa-reassoc.c: Likewise.
15510         * tree-switch-conversion.c: Likewise.
15511         * tree-vect-data-refs.c: Likewise.
15512         * tree-vect-generic.c: Likewise.
15513         * tree-vect-loop.c: Likewise.
15514         * tree-vect-patterns.c: Likewise.
15515         * tree-vect-slp.c: Likewise.
15516         * tree-vect-stmts.c: Likewise.
15517         * tree-vrp.c: Likewise.
15518         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
15519         rather than optabs.h.
15520         * expr.c: Include optabs-tree.h.
15521         * function.c: Likewise.
15523 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
15525         PR middle-end/65958
15526         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
15527         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
15528         * config/arm/arm.c: Include common/common-target.h.
15529         (use_return_insn): Return 0 if the static chain register was saved
15530         above a non-APCS frame.
15531         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
15532         (struct scratch_reg): New.
15533         (get_scratch_register_on_entry): New function.
15534         (release_scratch_register_on_entry): Likewise.
15535         (arm_emit_probe_stack_range): Likewise.
15536         (output_probe_stack_range): Likewise.
15537         (arm_expand_prologue): Factor out code dealing with the IP register
15538         for nested function and adjust it for stack checking.
15539         Invoke arm_emit_probe_stack_range if static builtin stack checking
15540         is enabled.
15541         (thumb1_expand_prologue): Sorry out if static builtin stack checking
15542         is enabled.
15543         (arm_expand_epilogue): Add the saved static chain register, if any, to
15544         the amount of pre-pushed registers to pop.
15545         (arm_frame_pointer_required): Return true if static stack checking is
15546         enabled and we want to catch the exception with the EABI unwinder.
15547         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
15548         (UNSPEC_PROBE_STACK_RANGE): Likewise.
15549         * config/arm/arm.md (probe_stack): New insn.
15550         (probe_stack_range): Likewise.
15552 2015-09-17  Richard Biener  <rguenther@suse.de>
15554         * genmatch.c (parser::parse_expr): Improve error message
15555         for mis-placed flags.
15557 2015-09-17  Richard Biener  <rguenther@suse.de>
15559         * passes.c (rest_of_decl_compilation): Always call early_global_decl
15560         debug hook when we created a varpool node.
15561         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
15562         dwarf2out_early_global_decl, when not just add location or
15563         value attributes to existing DIEs.
15565 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
15567         * config/aarch64/aarch64.md (copysigndf3): New.
15568         (copysignsf3): Likewise.
15570 2015-09-17  David S. Miller  <davem@davemloft.net>
15572         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
15573         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
15574         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
15575         (HARD_REGNO_CALLER_SAVE_MODE): Define.
15576         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
15577         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
15578         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
15579         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
15580         provide when flag_pic.
15582 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
15584         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
15585         object_allocator change.
15587 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
15589         PR tree-optimization/66388
15590         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
15591         (dump_iv): Dump no_overflow information.
15592         (alloc_iv): Initialize new field for struct iv.
15593         (mark_bivs): Count number of no_overflow bivs.
15594         (find_deriving_biv_for_expr, record_biv_for_address_use): New
15595         functions.
15596         (idx_find_step): Call new functions above.
15597         (add_candidate_1, add_candidate): New paramter.
15598         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
15599         (get_computation_aff): Simplify convertion of cand for BIV.
15600         (get_computation_cost_at): Step cand's base if necessary.
15602 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
15604         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
15605         parameter.
15606         (tree_simplify_using_condition): Ditto.
15607         (simplify_using_initial_conditions): Ditto.
15608         (loop_exits_before_overflow): Pass new argument to function
15609         simplify_using_initial_conditions.  Remove case for type conversions
15610         simplification.
15611         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
15612         parameter.
15613         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
15614         in iv base using loop initial conditions.
15616 2015-09-16  Jeff Law  <law@redhat.com>
15618         PR tree-optimization/47679
15619         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
15620         (free_all_edge_infos): Use it.
15621         (allocate_edge_info): Free preexisting edge info data.
15622         (pass_dominator::execute): Set up initial edge info structures.
15623         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
15624         thread_across_edge.
15625         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
15626         If non-null, then push/pop markers appropriately.
15627         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
15628         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
15629         thread-across_edge.
15631 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
15633         * config/ft32/ft32.c: Fix the memory address space predicate.
15635 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
15637         PR target/67573
15638         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
15639         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
15641 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15643         * toplev.h (check_global_declaration): Remove declaration.
15644         * toplev.c (check_global_declaration): Move to ...
15645         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
15646         (analyze_functions): Update call.
15648 2015-09-16  David S. Miller  <davem@davemloft.net>
15650         * lra-constraints.c (simplify_operand_subreg): Do not assume that
15651         lowpart of a SUBREG has offset zero.
15653 2015-09-16  Jeff Law  <law@redhat.com>
15655         PR tree-optimization/47679
15656         * tree-ssa-dom.c (enum expr_kind): Moved from here to
15657         tree-ssa-scopedtables.h.
15658         (struct hashable_expr, class expr_hash_elt): Likewise.
15659         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
15660         Move associated methods into tree-ssa-scopedtables.c.
15661         (avail_expr_hash, initialize_expr_from_cond): Similarly.
15662         (hashable_expr_equal_p, add_expr_commutative): Likewise.
15663         (add_hashable_expr): Likewise.
15664         (record_cond): Delete element directly.
15665         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
15666         private copy ctor and assignment operator methods.
15667         (expr_elt_hasher): Inline trivial methods.
15668         (initialize_expr_from_cond): Prototype.
15669         * tree-ssa-scopedtables.c: Add necessary includes, functions and
15670         methods that were previously in tree-ssa-dom.c.  Improve various
15671         comments.
15673 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
15675         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
15677 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
15679         PR bootstrap/67587
15680         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
15681         fixup_partitions.
15683 2015-09-16  Richard Biener  <rguenther@suse.de>
15685         PR middle-end/67253
15686         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
15687         location of possibly shared trees.
15689 2015-09-16  Richard Biener  <rguenther@suse.de>
15691         PR middle-end/67271
15692         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
15694 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
15696         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
15697         offset and size computations instead of HOST_WIDE_INT.
15699 2015-09-16  Richard Biener  <rguenther@suse.de>
15701         PR middle-end/67442
15702         * fold-const.c (extract_muldiv_1): Properly extend multiplication
15703         result before builting a tree via wide_int_to_tree.
15705 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
15707         * Makefile.in: Add memory-block.cc
15708         (pool_allocator::initialize): Use fixed block size.
15709         (pool_allocator::release): Use memory_block_pool.
15710         (pool_allocator::allocate): Likewise.
15711         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
15712         object pools.
15713         * cfg.c (initialize_original_copy_tables): Likewise.
15714         * cselib.c (elt_list_pool, elt_loc_list_pool,
15715         cselib_val_pool): Likewise.
15716         * df-problems.c (df_chain_alloc): Likewise.
15717         * df-scan.c (df_scan_alloc): Likewise.
15718         * dse.c (cse_store_info_pool, rtx_store_info_pool,
15719         read_info_type_pool, insn_info_type_pool, bb_info_pool,
15720         group_info_pool, deferred_change_pool): Likewise.
15721         * et-forest.c (et_nodes, et_occurrences): Likewise.
15722         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
15723         ipcp_agg_lattice_pool): Likewise.
15724         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
15725         * ipa-profile.c (histogram_pool): Likewise.
15726         * ipa-prop.c (ipa_refdesc_pool): Likewise.
15727         * ira-build.c (live_range_pool, allocno_pool, object_pool,
15728         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
15729         * ira-color.c (update_cost_record_pool): Likewise.
15730         * lra-lives.c (lra_live_range_pool): Likewise.
15731         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
15732         * memory-block.cc: New file.
15733         * memory-block.h: New file.
15734         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
15735         * sched-deps.c (sched_deps_init): Likewise.
15736         * sel-sched-ir.c (sched_lists_pool): Likewise.
15737         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
15738         * tree-sra.c (access_pool): Likewise.
15739         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
15740         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
15741         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
15742         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
15743         * tree-ssa-strlen.c (strinfo_pool): Likewise.
15744         * tree-ssa-structalias.c (variable_info_pool): Likewise.
15745         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
15746         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
15748 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
15750         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
15751         definition.
15752         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
15753         call0 ABI.
15755 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
15757         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
15758         to pass TLS call argument, according to current ABI.
15759         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
15760         callx0 for TLS call, according to current ABI.
15762 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
15764         * tree-eh.c (lower_try_finally_dup_block): Clear location information
15765         on stack restore statements.
15766         (decide_copy_try_finally): Do not consider a stack restore statement as
15767         coming from sources.
15769 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
15771         * config/alpha/alpha.c (alpha_expand_block_clear): Use
15772         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
15774 2015-09-15  Jeff Law  <law@redhat.com>
15776         PR tree-optimization/47679
15777         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
15778         methods and private members.
15779         (avail_exprs_stack): Similarly.  Change type of global
15780         from a pair of expr_hash_elt_t to the new class.
15781         (expr_elt_hasher::hash): Corresponding changes.
15782         (expr_elt_hasher::equal): Similarly.
15783         (avail_expr_hash): Similarly.
15784         (pass_dominator::execute): Similarly.
15785         (dom_opt_dom_walker::thread_across_edge): Similarly.
15786         (record_cond): Similarly.
15787         (dom_opt_dom_walker::before_dom_children): Similarly.
15788         (dom_opt_dom_walker::after_dom_children): Similarly.
15789         (lookup_avail_expr): Likewise.
15790         (initialize_hash_element): Now a expr_hash_elt constructor.
15791         (initialize_hash_element_from_expr): Similarly.
15792         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
15793         (free_expr_hash_elt): Call dtor for the element.
15794         (remove_local_expressions_from_table): Now the "pop_to_marker"
15795         method in the available_exprs_stack class.
15796         (avail_expr_stack::record_expr): Method factored out.
15797         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
15798         Fix formatting.
15799         (hashable_expr_equal_p): Fix formatting.
15801 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
15803         * input.h (location_get_source_line): Drop "expanded_location"
15804         param in favor of a file and line number.
15805         * input.c (location_get_source_line): Likewise.
15806         (dump_location_info): Update for change in signature of
15807         location_get_source_line.
15808         * diagnostic.c (diagnostic_print_caret_line): Likewise.
15810 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
15812         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
15813         Bump to 4KB for SJLJ exceptions.
15814         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
15815         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
15816         * doc/tm.texi: Regenerate.
15818 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15820         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
15821         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
15822         Update prototype.
15824 2015-09-15  Richard Biener  <rguenther@suse.de>
15826         PR tree-optimization/67470
15827         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
15828         structure for PHI hoisting by inserting a forwarder block
15829         if appropriate.
15831 2015-09-15  Christian Bruel  <christian.bruel@st.com>
15833         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
15834         (arm_option_print): New function.
15836 2015-09-15  Christian Bruel  <christian.bruel@st.com>
15838         PR target/52144
15839         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
15840         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
15841         Remove flags parameter.
15842         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
15843         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
15844         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
15845         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
15846         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
15847         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
15848         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
15849         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
15851 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15853         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
15855         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
15856         AARCH64_VALID_SIMD_DREG_MODE.
15858 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15860         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
15861         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
15862         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
15863         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
15864         aarch64_ld4_lane<mode>): Combine together, making...
15865         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
15866         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
15867         aarch64_st4_lane<mode>): Combine together, making...
15868         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
15869         * config/aarch64/iterators.md (nregs): Add comment.
15871 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15873         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
15874         Change operand mode from <V_TWO_ELEM> to BLK.
15875         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
15876         (aarch64_vec_store_lanesoi_lane<mode): Likewise
15877         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15878         (aarch64_ld2_lane<mode>): Likewise.
15879         (aarch64_st2_lane<VQ:mode>): Likewise.
15880         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
15882 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15884         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
15885         Change operand mode from <V_FOUR_ELEM> to BLK.
15886         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
15887         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
15888         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15889         (aarch64_ld4_lane<mode>): Likewise.
15890         (aarch64_st4_lane<mode>): Likewise.
15891         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
15893 2015-09-15  Richard Biener  <rguenther@suse.de>
15895         PR middle-end/67563
15896         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
15897         transfer EH info from old to new stmt.
15898         (replace_call_with_value): Likewise.
15899         (replace_call_with_call_and_fold): Likewise.
15900         (gimple_fold_builtin_memory_op): Likewise.
15901         (gimple_fold_builtin_memset): Likewise.
15902         (gimple_fold_builtin_stpcpy): Likewise.
15903         (gimple_fold_call): Likewise.
15905 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15907         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
15908         comment.
15909         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
15910         (aarch64_simd_intEI_type_node): Likewise.
15911         (aarch64_simd_builtin_std_type): Remove EImode case.
15912         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
15913         * config/aarch64/aarch64-modes.def: Remove EImode.
15915 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15917         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
15918         Change operand mode from <V_THREE_ELEM> to BLK.
15919         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
15920         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
15921         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15922         (aarch64_ld3_lane<mode>): Likewise.
15923         (aarch64_st3_lane<mode>): Likewise.
15924         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
15926 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15928         * config/aarch64/aarch64-simd.md
15929         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
15930         Change all TImode operands to BLKmode.
15931         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
15932         Change all EImode operands to BLKmode.
15933         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
15934         Change all OImode operands to BLKmode.
15936         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
15937         and call set_mem_size.
15938         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
15940         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
15942 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15944         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
15945         to...
15946         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
15948         (vec_store_lanesci_lane<mode>): Rename to...
15949         (aarch64_vec_store_lanesci_lane<mode>): ...this.
15951         (vec_store_lanesxi_lane<mode>): Rename to...
15952         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
15954         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
15955         aarch64_st4_lane<mode>): Follow renaming.
15957 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15959         * config/s390/s390.c (s390_const_operand_ok): Add missing
15960         brackets.
15962 2015-09-15  Richard Biener  <rguenther@suse.de>
15964         PR lto/67568
15965         * lto-streamer.h (lto_location_cache::current_sysp): Properly
15966         initialize.
15967         * lto-streamer-out.c (clear_line_info): Likewise.
15969 2015-09-15  Richard Biener  <rguenther@suse.de>
15971         * doc/match-and-simplify.texi: Fix wording.
15973 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
15975         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
15976         unnecessary type conversion in op1.
15978 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
15980         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
15981         (dup_block_and_redirect): Delete function.
15982         (can_dup_for_shrink_wrapping): New function.
15983         (fix_fake_fallthrough_edge): New function.
15984         (try_shrink_wrapping): Rewrite function.
15985         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
15987 2015-09-14  Rich Felker  <dalias@libc.org>
15989         * configure.ac: Change target pattern for sh TLS support
15990         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
15991         * configure: Regenerate.
15993 2015-09-14  Jeff Law  <law@redhat.com>
15995         PR tree-optimization/47679
15996         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
15997         type rather than void *.
15999 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16001         PR fortran/67460
16002         * diagnostic.c (diagnostic_initialize): Do not set
16003         some_warnings_are_errors.
16004         (diagnostic_finish): Use DK_WERROR count instead.
16005         (diagnostic_report_diagnostic): Do not set
16006         some_warnings_are_errors.
16007         * diagnostic.h (struct diagnostic_context): Remove
16008         some_warnings_are_errors.
16010 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
16012         * config/sparc/predicates.md (const_all_ones_operand): Use
16013         CONSTM1_RTX to simplify definition.
16015 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
16017         PR target/67061
16018         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
16019         Handle call insns.
16021 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
16023         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
16024         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
16025         OPT_fshow_column to handled saved option cases.
16026         (append_compiler_options): Do not skip the above added options.
16028 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16030         PR target/63304
16031         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
16032         nopcrelative_literal_loads.
16033         (aarch64_classify_address): Likewise.
16034         (aarch64_constant_pool_reload_icode): Define.
16035         (aarch64_secondary_reload): Handle secondary reloads for
16036         literal pools.
16037         (aarch64_override_options): Handle nopcrelative_literal_loads.
16038         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
16039         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
16040         Define.
16041         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
16042         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
16043         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
16044         predicate.
16045         * doc/invoke.texi (mpc-relative-literal-loads): Document.
16047 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
16049         PR middle-end/67401
16050         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
16051         sync_compare_and_swap_optab libcall to target_oval.
16053 2015-09-14  Marek Polacek  <polacek@redhat.com>
16055         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
16056         value.
16057         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
16059 2015-09-11  Mark Wielaard  <mjw@redhat.com>
16061         PR c/28901
16062         * toplev.c (check_global_declaration): Check and use
16063         warn_unused_const_variable.
16064         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
16065         (-Wunused-variable): Remove non-constant. For C implies
16066         -Wunused-const-variable.
16067         (-Wunused-const-variable): New.
16069 2015-09-14  Richard Biener  <rguenther@suse.de>
16071         * doc/match-and-simplify.texi: Update for changed syntax
16072         of inner ifs and the new switch expression.
16074 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
16076         * config/i386/haswell.md: New file describing Haswell pipeline.
16077         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
16078         haswell-like processors.
16079         (ix86_reassociation_width): Increase reassociation width for 64-bit
16080         Haswell processor family.
16081         * config/i386/i386.md: Introduce haswell cpu and include new md file.
16083 2015-09-14  Richard Biener  <rguenther@suse.de>
16085         * doc/match-and-simplify.texi: Fixup some formatting issues
16086         and document the 's' flag.
16088 2015-09-13  Olivier Hainque  <hainque@adacore.com>
16089             Eric Botcazou  <ebotcazou@adacore.com>
16091         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
16092         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
16093         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
16094         (TARGET_CPU_gr5): Likewise.
16095         (TARGET_CPU_gr6): Likewise.
16096         (MULTILIB_DEFAULTS): Likewise.
16097         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
16098         for mcpu=gr5 and mcpu=gr6.
16099         (MULTILIB_DIRNAMES): Adjust accordingly.
16101 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16103         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
16104         (mem_ref_p): Likewise.
16105         (outermost_indep_loop): Adjust.
16106         (mem_ref_in_stmt): Likewise.
16107         (determine_max_movement): Likewise.
16108         (mem_ref_alloc): Likewise.
16109         (record_mem_ref_loc): Likewise.
16110         (set_ref_stored_in_loop): Likewise.
16111         (mark_ref_stored): Likewise.
16112         (gather_mem_refs_stmt): Likewise.
16113         (mem_refs_may_alias_p): Likewise.
16114         (for_all_locs_in_loop): Likewise.
16115         (struct rewrite_mem_ref_loc): Likewise.
16116         (rewrite_mem_refs): Likewise.
16117         (struct first_mem_ref_loc_1): Likewise.
16118         (first_mem_ref_loc): Likewise.
16119         (struct sm_set_flag_if_changed): Likewise.
16120         (execute_sm_if_changed_flag_set): Likewise.
16121         (execute_sm): Likewise.
16122         (hoist_memory_references):
16123         (struct ref_always_accessed): Likewise.
16124         (ref_always_accessed_p): Likewise.
16125         (refs_independent_p): Likewise.
16126         (record_dep_loop): Likewise.
16127         (ref_indep_loop_p_1): Likewise.
16128         (ref_indep_loop_p_2): Likewise.
16129         (ref_indep_loop_p): Likewise.
16130         (can_sm_ref_p): Likewise.
16131         (find_refs_for_sm): Likewise.
16132         (tree_ssa_lim_finalize): Likewise.
16134 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16136         * dwarf2out.c (dw_attr_ref): Remove typedef.
16137         (dw_line_info_ref): Likewise.
16138         (pubname_ref): Likewise.
16139         (dw_ranges_ref): Likewise.
16140         (dw_ranges_by_label_ref): Likewise.
16141         (comdat_type_node_ref): Likewise.
16142         (get_AT): Adjust.
16143         (get_AT_low_pc): Likewise.
16144         (get_AT_hi_pc): Likewise.
16145         (get_AT_string): Likewise.
16146         (get_AT_flag): Likewise.
16147         (get_AT_unsigned): Likewise.
16148         (get_AT_ref): Likewise.
16149         (get_AT_file): Likewise.
16150         (remove_AT): Likewise.
16151         (print_die): Likewise.
16152         (check_die): Likewise.
16153         (die_checksum): Likewise.
16154         (attr_checksum_ordered): Likewise.
16155         (struct checksum_attributes): Likewise.
16156         (collect_checksum_attributes): Likewise.
16157         (die_checksum_ordered): Likewise.
16158         (same_die_p): Likewise.
16159         (is_declaration_die): Likewise.
16160         (clone_die): Likewise.
16161         (clone_as_declaration): Likewise.
16162         (copy_declaration_context): Likewise.
16163         (break_out_comdat_types): Likewise.
16164         (copy_decls_walk): Likewise.
16165         (output_location_lists): Likewise.
16166         (external_ref_hasher::hash): Likewise.
16167         (optimize_external_refs_1): Likewise.
16168         (build_abbrev_table): Likewise.
16169         (size_of_die): Likewise.
16170         (unmark_all_dies): Likewise.
16171         (size_of_pubnames): Likewise.
16172         (output_die_abbrevs): Likewise.
16173         (output_die): Likewise.
16174         (output_pubnames): Likewise.
16175         (add_ranges_num): Likewise.
16176         (add_ranges_by_labels): Likewise.
16177         (add_high_low_attributes): Likewise.
16178         (gen_producer_string): Likewise.
16179         (dwarf2out_set_name): Likewise.
16180         (new_line_info_table): Likewise.
16181         (prune_unused_types_walk_attribs): Likewise.
16182         (prune_unused_types_update_strings): Likewise.
16183         (prune_unused_types): Likewise.
16184         (resolve_addr): Likewise.
16185         (optimize_location_lists_1): Likewise.
16186         (index_location_lists): Likewise.
16187         (dwarf2out_finish): Likewise.
16189 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16191         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
16193 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16195         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
16196         (dump_asserts_for): Adjust.
16197         (register_new_assert_for): Likewise.
16198         (process_assert_insertions): Likewise.
16199         (insert_range_assertions): Likewise.
16201 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16203         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
16204         and remove typedef.
16205         (new_temp_expr_table): Adjust.
16206         (free_temp_expr_table): Likewise.
16207         (version_to_be_replaced_p): Likewise.
16208         (make_dependent_on_partition): Likewise.
16209         (add_to_partition_kill_list): Likewise.
16210         (remove_from_partition_kill_list): Likewise.
16211         (add_dependence): Likewise.
16212         (finished_with_expr): Likewise.
16213         (process_replaceable): Likewise.
16214         (kill_expr): Likewise.
16215         (kill_virtual_exprs): Likewise.
16216         (mark_replaceable): Likewise.
16217         (find_replaceable_in_bb): Likewise.
16218         (find_replaceable_exprs): Likewise.
16219         (debug_ter): Likewise.
16221 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16223         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
16224         (struct btr_user): Rename from btr_user_s.
16225         (struct btr_def): Rename from btr_def_s.
16226         (find_btr_def_group): Adjust.
16227         (add_btr_def): Likewise.
16228         (new_btr_user): Likewise.
16229         (note_other_use_this_block): Likewise.
16230         (compute_defs_uses_and_gen): Likewise.
16231         (link_btr_uses): Likewise.
16232         (build_btr_def_use_webs): Likewise.
16233         (block_at_edge_of_live_range_p): Likewise.
16234         (btr_def_live_range): Likewise.
16235         (combine_btr_defs): Likewise.
16236         (move_btr_def): Likewise.
16237         (migrate_btr_def): Likewise.
16238         (migrate_btr_defs): Likewise.
16240 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16242         * var-tracking.c (shared_hash_def): Rename to shared_hash.
16243         (shared_hash): Remove typedef.
16244         (struct dataflow_set): Adjust.
16245         (shared_hash_unshare): Likewise.
16246         (dataflow_set_merge): Likewise.
16247         (vt_initialize): Likewise.
16248         (vt_finalize): Likewise.
16250 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16252         * var-tracking.c (struct location_chain): Rename from
16253         location_chain_def.
16254         (struct variable_part): Adjust.
16255         (variable_htab_free): Likewise.
16256         (unshare_variable): Likewise.
16257         (get_init_value): Likewise.
16258         (get_addr_from_local_cache): Likewise.
16259         (drop_overlapping_mem_locs): Likewise.
16260         (val_reset): Likewise.
16261         (struct variable_union_info): Likewise.
16262         (variable_union): Likewise.
16263         (find_loc_in_1pdv): Likewise.
16264         (insert_into_intersection): Likewise.
16265         (intersect_loc_chains): Likewise.
16266         (canonicalize_loc_order_check): Likewise.
16267         (canonicalize_values_mark): Likewise.
16268         (canonicalize_values_star): Likewise.
16269         (canonicalize_vars_star): Likewise.
16270         (variable_merge_over_cur): Likewise.
16271         (remove_duplicate_values): Likewise.
16272         (variable_post_merge_new_vals): Likewise.
16273         (variable_post_merge_perm_vals): Likewise.
16274         (find_mem_expr_in_1pdv): Likewise.
16275         (dataflow_set_preserve_mem_locs): Likewise.
16276         (dataflow_set_remove_mem_locs): Likewise.
16277         (variable_part_different_p): Likewise.
16278         (onepart_variable_different_p): Likewise.
16279         (find_src_set_src): Likewise.
16280         (dump_var): Likewise.
16281         (set_slot_part): Likewise.
16282         (clobber_slot_part): Likewise.
16283         (delete_slot_part): Likewise.
16284         (vt_expand_var_loc_chain): Likewise.
16285         (emit_note_insn_var_location): Likewise.
16286         (vt_finalize): Likewise.
16288 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16290         * dse.c (store_info_t): Remove typedef.
16291         (group_info_t): Likewise.
16292         (const_group_info_t): Likewise.
16293         (deferred_change_t): Likewise.
16294         (get_group_info): Adjust.
16295         (free_store_info): Likewise.
16296         (canon_address): Likewise.
16297         (clear_rhs_from_active_local_stores): Likewise.
16298         (record_store): Likewise.
16299         (replace_read): Likewise.
16300         (check_mem_read_rtx): Likewise.
16301         (scan_insn): Likewise.
16302         (remove_useless_values): Likewise.
16303         (dse_step1): Likewise.
16304         (dse_step2_init): Likewise.
16305         (dse_step2_nospill): Likewise.
16306         (scan_stores_nospill): Likewise.
16307         (scan_reads_nospill): Likewise.
16308         (dse_step3_exit_block_scan): Likewise.
16309         (dse_step3): Likewise.
16310         (dse_step5_nospill): Likewise.
16311         (dse_step6): Likewise.
16313 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16315         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
16316         (alias_set_entry): Remove typedef.
16317         (alias_set_subset_of): Adjust.
16318         (alias_sets_conflict_p): Likewise.
16319         (init_alias_set_entry): Likewise.
16320         (get_alias_set): Likewise.
16321         (new_alias_set): Likewise.
16322         (record_alias_subset): Likewise.
16324 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
16326         * doc/install.texi (Downloading the source): Mark up
16327         contrib/download_prerequisites properly and drop leading "./".
16329 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16331         * config/arc/arc.h: Remove define of STRUCT_VALUE.
16332         * config/lm32/lm32.h: Likewise.
16333         * config/mep/mep.h: Likewise.
16334         * config/visium/visium.h: Likewise.
16335         * system.h: Poison STRUCT_VALUE macro.
16337 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
16339         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
16340         CONSTANT_P operands.
16342 2015-09-11  David S. Miller  <davem@davemloft.net>
16344         * config/sparc/constraints.md: Make "U" constraint a real register
16345         constraint.
16346         * config/sparc/sparc.c (TARGET_LRA_P): Define.
16347         (D_MODES, DF_MODES): Add missing cast.
16348         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
16349         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
16350         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
16351         cost to 8.
16352         * config/sparc/sparc.h (PROMOTE_MODE): Define.
16353         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
16354         provide these insn when flag_pic.
16356 2015-09-11  Jeff Law  <law@redhat.com>
16358         PR tree-optimization/47679
16359         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
16360         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
16361         member with m_.  Update inline member functions as necessary.  Add
16362         toplevel comment.
16363         * tree-ssa-scopedtables.c: Update const_and_copies's member
16364         functions to use m_ prefix to access the stack.
16366 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
16368         * graphite-optimize-isl.c (disable_tiling): Remove.
16369         (get_schedule_for_band): Do not use disable_tiling.
16370         (get_prevector_map): Delete function.
16371         (enable_polly_vector): Remove.
16372         (get_schedule_for_band_list): Remove dead code.
16374 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
16376         * graphite-optimize-isl.c (get_tile_map): Refactor.
16377         (get_schedule_for_band): Same.
16378         (getScheduleForBand): Same.
16379         (get_prevector_map): Same.
16380         (get_schedule_for_band_list): Same.
16381         (get_schedule_map): Same.
16382         (get_single_map): Same.
16383         (apply_schedule_map_to_scop): Same.
16384         (optimize_isl): Same.
16386 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16388         PR target/63304
16389         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
16390         (movtf): Delete.
16391         * config/aarch64/iterators.md (GPF_TF_F16): New.
16392         (GPF_F16): Delete.
16394 2015-09-10  Nathan Sidwell  <nathan@acm.org>
16396         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
16397         (nvptx_reorg): Adjust comments.
16399 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
16401         PR bootstrap/67363
16402         * configure.ac: Check if setenv and unsetenv are declared.
16403         * configure: Rebuild.
16404         * config.in: Rebuild.
16405         * system.h: Declare setenv and unsetenv if not declared.
16407 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16409         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
16410         commentary to simplify permute mask adjustment equation.
16411         (special_handling_values): Add SH_VPERM.
16412         (const_load_sequence_p): New function.
16413         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
16414         the mask loaded from the constant pool.
16415         (adjust_vperm): New function.
16416         (handle_special_swappables): Call adjust_vperm.
16417         (dump_swap_insn_table): Handle SH_VPERM.
16419 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
16421         * shrink-wrap.c (requires_stack_frame_p): Remove static.
16422         * shrink-wrap.h (requires_stack_frame_p): Put back.
16424 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
16426         * reload1.c (elimination_costs_in_insn): Locally turn
16427         -Wmaybe-uninitialized into a warning.
16429 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
16431         * shrink-wrap.c (requires_stack_frame_p): Make static.
16432         (prepare_shrink_wrap): Likewise.
16433         (dup_block_and_redirect): Likewise.
16434         * shrink-wrap.h: Remove declarations of those functions.
16436 2015-09-10  Mark Wielaard  <mjw@redhat.com>
16438         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
16440 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
16442         PR target/67506
16443         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
16444         missing simplify_gen_subreg.
16446 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16448         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
16449         the vector element is bigger than 64 bit.
16451 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16453         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
16454         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
16456 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16458         * config/s390/s390.c: Add V1TImode to constant pool modes.
16460 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16462         PR target/67439
16463         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
16464         predicate.  Set predicable_short_it attr to "no".
16466 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
16468         PR rtl-optimization/67421
16469         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
16470         left wide shift tranformation.
16472 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
16474         * common/config/arc/arc-common.c: Remove references to A5.
16475         * config/arc/arc-opts.h: Likewise.
16476         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
16477         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
16478         * config/arc/t-arc-newlib: Likewise.
16480 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
16482         * config/arc/arc.md (length): Fix attribute length for conditional
16483         executed instructions with long immediate.
16485 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16487         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
16488         type for second alternative.
16490 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
16492         * doc/invoke.texi (Downloading GCC): Mention
16493         contrib/download_prerequisites script.
16495 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
16497         PR c++/67523
16498         * gimplify.c (gimplify_omp_for): If inner stmt is not found
16499         for combined loop, assert seen_error () and return GS_ERROR.
16501         PR middle-end/67521
16502         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
16503         if decl is already in outer->variables.
16505         PR middle-end/67517
16506         * gimplify.c (gimplify_scan_omp_clauses): Instead of
16507         asserting that decl is not specified in octx->variables,
16508         break out of the loop if it is.
16510         PR c++/67514
16511         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
16512         iterator is not explicitly determined, but is defined inside
16513         of the combined workshare region, handle it like if it has
16514         DECL_EXPR in OMP_FOR_PRE_BODY.
16516 2015-09-09  Nathan Sidwell  <nathan@acm.org>
16518         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
16519         (*cmp<mode>): Add assembler spacing.
16520         (setcc_int<mode>, set_cc_float<mode>): Likewise.
16521         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
16522         level.
16523         (write_func_decl_from_insn): Refactor argument loops & comma emission.
16524         (nvptx_expand_call): Likewise.
16525         (nvptx_output_call_insn): Likewise.
16526         (nvptx_reorg_subreg): Add spacing.
16528 2015-09-09  Marek Polacek  <polacek@redhat.com>
16530         PR middle-end/67512
16531         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
16532         for comparisons.
16534 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
16536         PR c++/53184
16537         * doc/invoke.texi ([Wsubobject-linkage]): Document.
16539 2015-09-09  Tom de Vries  <tom@codesourcery.com>
16541         * params-list.h: Add missing copyright notice.
16543 2015-09-09  Nathan Sidwell  <nathan@acm.org>
16545         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
16546         sel_truesi, not andsi.
16548 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16550         * config/arm/arm.md (*subsi3_compare0): Rename to...
16551         (subsi3_compare0): ... This.
16552         (modsi3): New define_expand.
16553         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
16554         when operand is power of 2.
16556 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16558         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
16559         (*neg<mode>2_compare0): Rename to...
16560         (neg<mode>2_compare0): ... This.
16561         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
16562         Move check for speed inside the if-then-elses.  Reflect
16563         CSNEG sequence in MOD by power of 2 case.
16565 2015-09-09  Alan Modra  <amodra@gmail.com>
16567         PR target/67378
16568         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
16569         reload replacement for PRE_MODIFY address reg.
16571 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
16573         PR tree-optimization/53852
16574         * config.in: Regenerate.
16575         * configure: Regenerate.
16576         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
16577         * graphite-optimize-isl.c (optimize_isl): Stop computation when
16578         PARAM_MAX_ISL_OPERATIONS is reached.
16579         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
16580         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
16581         result equal to isl_stat_ok as the status now can be isl_error_quota.
16582         (subtract_commutative_associative_deps): Same.
16583         (compute_deps): Same.
16585 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
16586             Sebastian Pop  <s.pop@samsung.com>
16588         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
16589         Return the parameter if it was saved in corresponding
16590         parameter_rename_map of the region.
16591         (copy_def): Copy def from sese region to the newly created region.
16592         (copy_internal_parameters): Copy all the internal parameters defined
16593         within a region to the newly created region.
16594         (graphite_regenerate_ast_isl): Copy parameters to the new region before
16595         translating isl to gimple.
16596         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
16597         the loop-nest does not have any data-references.
16598         (build_graphite_scops): Create a scop only when there is at least one
16599         loop inside it.
16600         (contains_only_close_phi_nodes): Deleted.
16601         (print_graphite_scop_statistics): Deleted
16602         (print_graphite_statistics): Deleted
16603         (limit_scops): Deleted.
16604         (build_scops): Removed call to limit_scops.
16605         * sese.c (new_sese): Construct.
16606         (free_sese): Destruct.
16607         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
16608         added.
16609         (set_rename): Pass sese region so that parameters inside the region can
16610         be added to its parameter_rename_map.
16611         (rename_uses): Pass sese region.
16612         (graphite_copy_stmts_from_block): Do not copy parameters that have been
16613         generated in the header of the scop. For each SSA_NAME in the
16614         parameter_rename_map rename its usage.
16615         (invariant_in_sese_p_rec): Return false if tree t is defined outside
16616         sese region.
16617         (scalar_evolution_in_region): If the tree t is invariant just return t.
16618         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
16619         struct sese to keep track of all the parameters which need renaming.
16620         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
16621         any data-refs.
16622         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
16624 2015-09-08  Tom de Vries  <tom@codesourcery.com>
16626         * Makefile.in (generated_files): Add params.list.
16627         (params.list, s-params.list): Add rule.
16628         * params.h (enum compiler_param): Include params-list.h.  Move define
16629         DEFPARAM, include params.def and undef DEFPARAM ...
16630         * params-list.h: ... here.  New file.
16632 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
16634         * pretty-print.h (printer_fn): Fix typo in comment.
16636 2015-09-07  Jeff Law  <law@redhat.com>
16638         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
16640 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16642         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
16643         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
16644         (arm_neon_fp16_hw): New.
16646 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16648         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
16649         UNITS_PER_WORD >= 4.
16651 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16653         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
16654         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
16655         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
16656         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
16657         (aarch64_float_extend_lo_v2df): Rename to...
16658         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
16660         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
16661         (float_extend_lo): Add v4sf.
16663         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
16664         * config/aarch64/iterators.md (VQ_HSF): New iterator.
16665         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
16666         (Vwide): New mode_attr.
16668 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16670         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
16671         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
16672         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
16673         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
16674         V4HF and V8HF variants to iterator.
16676         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
16678         * config/aarch64/iterators.md (VDQF_F16): New.
16679         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
16681 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16683         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
16684         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
16685         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
16686         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
16687         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
16688         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
16689         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
16690         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
16691         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
16692         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
16693         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
16694         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
16695         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
16696         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
16697         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
16698         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
16699         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
16700         vld1q_dup_f16): New.
16702 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16704         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
16705         Reparameterize to...
16706         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
16707         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
16708         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
16710         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
16711         v8hf variant.
16712         (float_truncate_lo_): Use BUILTIN_VDF iterator.
16714         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
16716         * config/aarch64/iterators.md (VDF, Vdtype): New.
16717         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
16719 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16721         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
16722         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
16723         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
16724         Add __builtin_aarch64_simd_hf.
16725         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
16726         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
16727         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
16728         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
16729         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
16730         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
16731         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
16732         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
16733         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
16735         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
16736         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
16737         (VDC, Vdbl): Add V4HF.
16739 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16741         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
16742         V4HFmode and V8HFmode.
16743         (aarch64_split_simd_move): Add case for V8HFmode.
16744         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
16745         (aarch64_simd_builtin_std_type): Handle HFmode.
16746         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
16748         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
16749         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
16750         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
16752         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
16753         Float16x8_t.
16755         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
16756         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
16757         New typedefs.
16758         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
16759         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
16760         vst1q_lane_f16): New.
16761         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
16762         (VALLDI_F16, VALL_F16): New.
16763         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
16764         Add cases for V4HF and V8HF.
16765         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
16767 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16769         * config/arm/arm-builtins.c (VAR11, VAR12): New.
16770         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
16771         vld4_dup): Add v4hf variant.
16772         (vget_high, vget_low): Add v8hf variant.
16773         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
16774         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
16775         v4hf and v8hf variants.
16777         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
16778         (VDX): Add V4HF.
16779         (V_DOUBLE): Add case for V4HF.
16780         (VQX): Add V8HF.
16781         (V_HALF): Add case for V8HF.
16782         (VDQX): Add V4HF, V8HF.
16783         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
16784         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
16786         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
16787         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
16788         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
16789         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
16790         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
16791         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
16792         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
16793         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
16794         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
16796         (neon_vcreate, neon_vreinterpretv8qi<mode>,
16797         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
16798         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
16799         Change VDX to VD_RE.
16801         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
16802         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
16803         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
16805         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
16806         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
16807         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
16808         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
16809         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
16810         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
16811         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
16812         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
16813         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
16815 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16817         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
16818         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
16819         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
16820         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
16821         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
16822         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
16823         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
16824         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
16825         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
16826         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
16827         New.
16829 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16831         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
16833         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
16835         * config/arm/arm-builtins.c (v8hf_UP): New.
16836         (arm_init_simd_builtin_types): Initialise Float16x8_t.
16838         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
16840         * config/arm/arm_neon.h (float16x8_t): New typedef.
16842 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16844         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
16845         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
16846         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
16847         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
16848         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
16849         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
16850         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
16851         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
16852         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
16853         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
16855 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
16857         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
16858         non-alphanumeric characters in the symbol name.
16860 2015-09-07  Marek Polacek  <polacek@redhat.com>
16862         PR inline-asm/67448
16863         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
16864         a memory input.
16866 2015-09-07  Marek Polacek  <polacek@redhat.com>
16868         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
16870 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
16872         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
16873         not warn.
16875 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
16877         PR middle-end/67452
16878         * tree-ssa-live.c: Include cfgloop.h.
16879         (remove_unused_locals): Clear loop->simduid if simduid is about
16880         to be removed from cfun->local_decls.
16882 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16884         PR target/65210
16885         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
16886         attribute as well.
16888 2015-09-04  Tom de Vries  <tom@codesourcery.com>
16890         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
16892 2015-09-04  Jeff Law  <law@redhat.com>
16894         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
16895         unnecessary constructor.  It's now trivial and implemented inside...
16896         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
16897         constructor.  Add comments to various methods.  Remove unused
16898         private fields.
16899         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
16900         * tree-vrp.c (identify_jump_threads): Likewise.
16901         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
16902         indentation issues.
16903         (thread_across_edge): Similarly.
16904         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
16905         arguments in constructor call.
16907 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
16909         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
16910         temp path contains a '-'.
16912 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16913             Petr Murzin  <petr.murzin@intel.com>
16914             Kirill Yukhin  <kirill.yukhin@intel.com>
16916         * config/i386/i386-builtin-types.def
16917         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
16918         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
16919         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
16920         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
16921         * config/i386/i386.c
16922         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
16923         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
16924         IX86_BUILTIN_SCATTERALTDIV16SI.
16925         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
16926         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
16927         __builtin_ia32_scatteraltdiv8si.
16928         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
16929         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
16930         IX86_BUILTIN_SCATTERALTDIV16SI.
16931         (ix86_vectorize_builtin_scatter): New.
16932         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
16933         ix86_vectorize_builtin_scatter.
16935 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16936             Petr Murzin  <petr.murzin@intel.com>
16937             Kirill Yukhin  <kirill.yukhin@intel.com>
16939         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
16940         * doc/tm.texi: Regenerate.
16941         * target.def: Add scatter builtin.
16942         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
16943         for loads/stores in case of gather/scatter accordingly.
16944         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
16945         STMT_VINFO_GATHER_P(S).
16946         (vect_check_gather): Rename to ...
16947         (vect_check_gather_scatter): this.
16948         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
16949         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
16950         (vect_check_gather_scatter): Use it instead of vect_check_gather.
16951         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
16952         variable and new checkings for it accordingly.
16953         * tree-vect-stmts.c
16954         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
16955         STMT_VINFO_GATHER_P(S).
16956         (vect_check_gather_scatter): Use it instead of vect_check_gather.
16957         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
16959 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
16961         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
16962         define_insn.
16963         (mulv16qi3): New define_expand.
16965 2015-09-03  Martin Sebor  <msebor@redhat.com>
16967         PR c/66516
16968         * doc/extend.texi (Other Builtins): Document when the address
16969         of a built-in function can be taken.
16971 2015-09-03  Richard Biener  <rguenther@suse.de>
16973         * dwarf2out.c (flush_limbo_die_list): Split out from ...
16974         (dwarf2out_early_finish): ... here.
16975         (dwarf2out_finish): Do not call dwarf2out_early_finish but
16976         flush_limbo_die_list.  Assert we have no deferred asm names.
16978 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16980         * optabs.c (expand_binop): Don't create a broadcast vector with a
16981         source element wider than the inner mode.
16983 2015-09-03  Richard Biener  <rguenther@suse.de>
16985         * varasm.c (output_constant): Use fold_convert instead of
16986         wide_int_to_tree.
16988 2015-09-03  Tom de Vries  <tom@codesourcery.com>
16990         PR tree-optimization/65637
16991         * omp-low.c (expand_omp_for_static_chunk): Handle case that
16992         fin_bb has 2 predecessors.
16994 2015-09-03  Tom de Vries  <tom@codesourcery.com>
16996         PR tree-optimization/65637
16997         * omp-low.c (find_phi_with_arg_on_edge): New function.
16998         (expand_omp_for_static_chunk): Fix inner loop phi.
17000 2015-09-03  Tom de Vries  <tom@codesourcery.com>
17002         PR tree-optimization/65637
17003         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
17004         that head is NULL.
17006 2015-09-03  Tom de Vries  <tom@codesourcery.com>
17008         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
17010 2015-09-03  Tom de Vries  <tom@codesourcery.com>
17012         * doc/invoke.texi (parloops-chunk-size): Add item.
17013         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
17014         * tree-parloops.c: Include params.h.
17015         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
17016         param parloops-chunk-size is used.
17018 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17020         PR middle-end/67351
17021         * fold-const.c (fold_binary_loc) : Move
17022         Transform (x >> c) << c into x & (-1<<c) or
17023         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
17024         types using simplify and match.
17025         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
17026         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
17028 2015-09-03  Richard Biener  <rguenther@suse.de>
17030         PR ipa/66705
17031         * tree-ssa-structalias.c (ctor_for_analysis): New function.
17032         (create_variable_info_for_1): Use ctor_for_analysis instead
17033         of get_constructor.
17034         (create_variable_info_for): Likewise.
17036 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
17038         PR ipa/67280
17039         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
17040         in new callgraph edge.
17042 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
17044         PR target/59810
17045         PR target/63652
17046         PR target/63653
17047         * config/aarch64/aarch64-simd.md
17048         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
17049         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
17050         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
17051         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
17053 2015-09-02  Alan Modra  <amodra@gmail.com>
17055         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
17056         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
17057         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
17059 2015-09-02  Alan Modra  <amodra@gmail.com>
17061         PR target/67417
17062         * config/rs6000/predicates.md (current_file_function_operand): Don't
17063         return true for weak symbols.
17064         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
17066 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
17067             Andrew Bennett  <andrew.bennett@imgtec.com>
17069         * config/mips/mips-opts.h (mips_cb_setting): New enum.
17070         * config/mips/mips-protos.h: Add definitions for
17071         mips_output_jump and mips_output_equal_conditional_branch
17072         * config/mips/mips.c (MIPS_JR): Change to support the
17073         JIC instruction.
17074         (mips_emit_compare): Add support for the MIPS R6 conditional
17075         compact branches.
17076         (mips_process_sync_loop): Likewise.
17077         (mips_output_order_conditional_branch): Likewise.
17078         (mips16_build_call_stub): Change MIPS_CALL to
17079         mips_output_jump.
17080         (mips_print_operand_punctuation): Update 's' case to only
17081         apply to micromips r2.
17082         (mips_adjust_insn_length): Add support for forbidden slot
17083         hazards.
17084         (mips_avoid_hazard): Likewise.
17085         (mips_reorg_process_insns): Likewise.
17086         (mips_output_jump): New function.
17087         (mips_output_equal_conditional_branch): Likewise.
17088         (mips_output_conditional_branch): Use jrc/bc if compact
17089         branch support is enabled.  Ensure the forbidden slots
17090         between the two branch instructions is filled with a nop.
17091         (mips_option_override): Add support to process the compact
17092         branch option and set the correct defaults.  Prevent
17093         non-explict relocs being using for MIPS R6.
17094         (mips_trampoline_init): Add compact branch support.
17095         (mips_mult_zero_zero_cost): Allow zero initialisation of
17096         accumulators with TARGET_DSP.
17097         * config/mips/mips.h (TARGET_CB_NEVER): New define.
17098         (TARGET_CB_MAYBE): New define.
17099         (TARGET_CB_ALWAYS): New define.
17100         (ISA_HAS_DELAY_SLOTS): New define.
17101         (ISA_HAS_COMPACT_BRANCHES): New define.
17102         (ISA_HAS_JRC): New define.
17103         (MIPS_BRANCH_C): New define.
17104         (MIPS_CALL): Removed.
17105         (MICROMIPS_J): Removed.
17106         * config/mips/mips.md (compact_form): New attr.
17107         (hazard): Add support for forbidden slots.
17108         (define_delay): Add support for compact branches.
17109         (*branch_order<mode>): Likewise.
17110         (*branch_order<mode>_inverted): Likewise.
17111         (*branch_equality<mode>): Likewise.
17112         (*branch_equality<mode>_inverted): Likewise.
17113         (*jump_absolute): Likewise.
17114         (*jump_pic): Likewise.
17115         (indirect_jump): Use mips_output_jump to produce assembly output.
17116         (tablejump_<mode>"): Likewise.
17117         (*<optab>"): Likewise.
17118         (<optab>_internal): Likewise.
17119         (sibcall_internal): Likewise.
17120         (sibcall_value_internal): Likewise.
17121         (sibcall_value_multiple_internal): Likewise.
17122         (call_internal): Likewise.
17123         (call_split): Likewise.
17124         (call_internal_direct): Likewise.
17125         (call_direct_split): Likewise.
17126         (call_value_internal): Likewise.
17127         (call_value_split): Likewise.
17128         (call_value_internal_direct): Likewise.
17129         (call_value_direct_split): Likewise.
17130         (call_value_multiple_internal): Likewise.
17131         (call_value_multiple_split): Likewise.
17132         (mips_get_fcsr_mips16_<mode>): Likewise.
17133         (mips_set_fcsr_mips16_<mode>): Likewise.
17134         (tls_get_tp_mips16_<mode>): Likewise.
17135         * config/mips/mips.opt: Add -mcompact-branches option.
17136         * config/mips/predicates.md (order_operator): Ensure the
17137         conditional compact branches are only used if the ISA them.
17138         * doc/invoke.texi: Document -mcompact-branches option.
17140 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
17142         PR target/61578
17143         * lra-lives.c (process_bb_lives): Process move pseudos with the
17144         same value for copies and preferences
17145         * lra-constraints.c (match_reload): Create match reload pseudo
17146         with the same value from single dying input pseudo.
17148 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
17150         PR target/67405
17151         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
17153 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
17155         * trans-mem.c: Add contributed-by.
17156         * trans-mem.h: Same.
17158 2015-09-01  Richard Biener  <rguenther@suse.de>
17160         * expr.c (expand_expr_real_1): For expanding TERed defs
17161         set the current location to that of the def if not UNKNOWN.
17163 2015-09-01  David Sherwood  <david.sherwood@arm.com>
17165         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
17167 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17169         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
17170         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
17171         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
17172         Include rtl-iter.h.
17173         (noce_simple_bbs): New function.
17174         (noce_try_move): Bail if basic blocks are not simple.
17175         (noce_try_store_flag): Likewise.
17176         (noce_try_store_flag_constants): Likewise.
17177         (noce_try_addcc): Likewise.
17178         (noce_try_store_flag_mask): Likewise.
17179         (noce_try_cmove): Likewise.
17180         (noce_try_minmax): Likewise.
17181         (noce_try_abs): Likewise.
17182         (noce_try_sign_mask): Likewise.
17183         (noce_try_bitop): Likewise.
17184         (bbs_ok_for_cmove_arith): New function.
17185         (noce_emit_all_but_last): Likewise.
17186         (noce_emit_insn): Likewise.
17187         (noce_emit_bb): Likewise.
17188         (noce_try_cmove_arith): Handle non-simple basic blocks.
17189         (insn_valid_noce_process_p): New function.
17190         (contains_mem_rtx_p): Likewise.
17191         (bb_valid_for_noce_process_p): Likewise.
17192         (noce_process_if_block): Allow non-simple basic blocks
17193         where appropriate.
17195 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
17197         * tree-ssa-dom.c (record_equivalences_from_phis,
17198         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
17199         (lookup_avail_expr): Likewise, and remove comment and unused temp.
17201 2015-09-01  Nick Clifton  <nickc@redhat.com>
17203         * config/msp430/msp430.opt (mcpu): Fix typo.
17205 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17207         * config/aarch64/aarch64.c (aarch64_set_current_function):
17208         Re-layout any vector parameters have non-simd layout.
17209         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
17210         Delete.
17211         (aarch64_simd_expand_args): Delete call to the above.
17213 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
17215         * doc/invoke.texi (asan-stack): Add space before option.
17217 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
17219         * tree.h (zerop): New function.
17220         * tree.c (zerop): Likewise.
17221         (element_precision): Handle expressions.
17222         * match.pd (define_predicates): Add zerop.
17223         (x <= +Inf): Fix comment.
17224         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
17225         * fold-const.c (fold_binary_loc): ... here. Remove.
17227 2015-08-31  Richard Biener  <rguenther@suse.de>
17229         PR middle-end/67381
17230         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
17232 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
17234         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
17235         (CEXPI): New operator list.
17236         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
17237         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
17238         Converted from ...
17239         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
17241 2015-08-31  Tom de Vries  <tom@codesourcery.com>
17243         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
17244         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
17245         parameter.
17246         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
17247         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
17248         (rewrite_into_loop_closed_ssa): ... here.
17249         (replace_uses_in_dominated_bbs): Remove function.
17250         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
17251         rewrite_into_loop_closed_ssa_1.
17253 2015-08-31  Michael Matz  <matz@suse.de>
17255         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
17256         enter entry and exit blocks for reverse post order.
17258 2015-08-31  Richard Biener  <rguenther@suse.de>
17260         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
17261         (lto_location_cache::current_sysp): Likewise.
17262         (output_block::current_sysp): Likewise.
17263         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
17264         (lto_location_cache::apply_location_cache): Properly record
17265         system header locations.
17266         (lto_location_cache::input_location): Input whether a file
17267         is a system header.
17268         * lto-streamer-out.c (lto_output_location): Stream whether a file
17269         is a system header.
17271 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17273         PR bootstrap/67363
17274         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
17276 2015-08-31  Tom de Vries  <tom@codesourcery.com>
17278         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
17279         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
17280         Improve function header comments.
17282 2015-08-30  Michael Collison  <michael.collison@linaro.org>
17284         PR other/67320
17285         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
17286         standard names
17288 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17290         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
17291         special_handling bitfield.
17292         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
17293         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
17294         that represents a general xxpermdi.
17295         (insn_is_swappable_p): Add handling for vec_concat of two
17296         doublewords, which maps to a specific xxpermdi.
17297         (adjust_xxpermdi): New function.
17298         (adjust_concat): Likewise.
17299         (handle_special_swappables): Call adjust_xxpermdi and
17300         adjust_concat.
17301         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
17303 2015-08-30  Rich Felker <dalias@libc.org>
17305         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
17306         case instead of sh[123456ble]-*-*.
17308 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
17310         * ira.c (print_unform_and_important_classes,
17311         print_translated_classes): Remove reg_class_names static array.
17312         (print_unform_and_important_classes): Rename to ...
17313         (print_uniform_and_important_classes): ... this.
17314         (ira_debug_allocno_classes): Update accordingly.
17316 2015-08-29  Tom de Vries  <tom@codesourcery.com>
17318         PR tree-optimization/46193
17319         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
17320         clause.
17322 2015-08-28  Jeff Law  <law@redhat.com>
17324         PR lto/66752
17325         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17326         unable to find X NE 0 in the tables, return X as the simplified
17327         condition.
17328         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17329         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
17330         to VISISTED_BBS.
17331         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17332         after removing the control flow statement and unnecessary edges.
17334 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
17336         Revert:
17337         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
17339         PR tree-optimization/67283
17340         * tree-sra.c (type_consists_of_records_p): Rename to...
17341         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
17343         (completely_scalarize_record): Rename to...
17344         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
17345         code to:
17346         (scalarize_elem): New.
17348 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
17350         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
17351         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
17352         (aarch64_symbol_type): Likewise.
17353         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17354         Likewise.
17355         (aarch64_expand_mov_immediate): Likewise.
17356         (aarch64_print_operand): Likewise.
17357         (aarch64_classify_tls_symbol): Likewise.
17359 2015-08-28  Richard Biener  <rguenther@suse.de>
17361         * cgraphunit.c (symbol_table::compile): Move early debug generation
17362         and finish...
17363         (symbol_table::finalize_compilation_unit): ... back here and
17364         add a !seen_error () guard.
17366 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
17368         * toplev.c (process_options): Do not use flag_loop_block,
17369         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
17370         flag_loop_optimize_isl.
17372 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
17374         * Makefile.in (OBJS): Remove graphite-blocking.o and
17375         graphite-interchange.o.
17376         * common.opt (floop-strip-mine, floop-interchange, floop-block):
17377         Alias of floop-nest-optimize.
17378         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
17379         Document as alias of -floop-nest-optimize.
17380         * graphite-blocking.c: Remove.
17381         * graphite-interchange.c: Remove.
17382         * graphite-optimize-isl.c: Include dumpfile.h.
17383         (getScheduleForBand): Add dump for tiled loops.  Use
17384         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
17385         * graphite-poly.c (scop_max_loop_depth): Remove.
17386         (print_scattering_function_1): Remove.
17387         (print_scattering_function): Remove.
17388         (print_scattering_functions): Remove.
17389         (debug_scattering_function): Remove.
17390         (debug_scattering_functions): Remove.
17391         (apply_poly_transforms): Remove use of flag_loop_block,
17392         flag_loop_strip_mine, and flag_loop_interchange.
17393         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
17394         PBB_ORIGINAL.
17395         (print_pdr_access_layout): Remove.
17396         (print_pdr): Print ISL representation.
17397         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
17398         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
17399         (free_scop): Same.
17400         (openscop_print_pbb_domain): Remove.
17401         (print_pbb): Remove call to print_scattering_function.
17402         (openscop_print_scop_context): Remove.
17403         (print_scop_context): Do not print matrices anymore.
17404         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
17405         SCOP_TRANSFORMED_SCHEDULE.
17406         (print_isl_set): Add printing of a new line.
17407         (print_isl_map): Same.
17408         (print_isl_aff): Same.
17409         (print_isl_constraint): Same.
17410         (loop_to_lst): Remove.
17411         (scop_to_lst): Remove.
17412         (lst_indent_to): Remove.
17413         (print_lst): Remove.
17414         (debug_lst): Remove.
17415         (dot_lst_1): Remove.
17416         (dot_lst): Remove.
17417         (reverse_loop_at_level): Remove.
17418         (reverse_loop_for_pbbs): Remove.
17419         * graphite-poly.h (pdr_dim_iter_domain): Remove.
17420         (pdr_nb_params): Remove.
17421         (pdr_alias_set_dim): Remove.
17422         (pdr_subscript_dim): Remove.
17423         (pdr_iterator_dim): Remove.
17424         (pdr_parameter_dim): Remove.
17425         (same_pdr_p): Remove.
17426         (struct poly_scattering): Remove.
17427         (struct poly_bb): Remove _original, _transformed, _saved.
17428         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
17429         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
17430         (PBB_NB_LOCAL_VARIABLES): Remove.
17431         (PBB_NB_SCATTERING_TRANSFORM): Remove.
17432         (schedule_to_scattering): Remove.
17433         (number_of_write_pdrs): Remove.
17434         (pbb_dim_iter_domain): Remove.
17435         (pbb_nb_params): Remove.
17436         (pbb_nb_scattering_orig): Remove.
17437         (pbb_nb_scattering_transform): Remove.
17438         (pbb_nb_dynamic_scattering_transform): Remove.
17439         (pbb_nb_local_vars): Remove.
17440         (pbb_iterator_dim): Remove.
17441         (pbb_parameter_dim): Remove.
17442         (psco_scattering_dim): Remove.
17443         (psct_scattering_dim): Remove.
17444         (psct_local_var_dim): Remove.
17445         (psco_iterator_dim): Remove.
17446         (psct_iterator_dim): Remove.
17447         (psco_parameter_dim): Remove.
17448         (psct_parameter_dim): Remove.
17449         (psct_dynamic_dim): Remove.
17450         (psct_static_dim): Remove.
17451         (psct_add_local_variable): Remove.
17452         (new_lst_loop): Remove.
17453         (new_lst_stmt): Remove.
17454         (free_lst): Remove.
17455         (copy_lst): Remove.
17456         (lst_add_loop_under_loop): Remove.
17457         (lst_depth): Remove.
17458         (lst_dewey_number): Remove.
17459         (lst_dewey_number_at_depth): Remove.
17460         (lst_pred): Remove.
17461         (lst_succ): Remove.
17462         (lst_find_pbb): Remove.
17463         (find_lst_loop): Remove.
17464         (lst_find_first_pbb): Remove.
17465         (lst_empty_p): Remove.
17466         (lst_find_last_pbb): Remove.
17467         (lst_contains_p): Remove.
17468         (lst_contains_pbb): Remove.
17469         (lst_create_nest): Remove.
17470         (lst_remove_from_sequence): Remove.
17471         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
17472         (lst_niter_for_loop): Remove.
17473         (pbb_update_scattering): Remove.
17474         (lst_update_scattering_under): Remove.
17475         (lst_update_scattering): Remove.
17476         (lst_insert_in_sequence): Remove.
17477         (lst_replace): Remove.
17478         (lst_substitute_3): Remove.
17479         (lst_distribute_lst): Remove.
17480         (lst_remove_all_before_including_pbb): Remove.
17481         (lst_remove_all_before_excluding_pbb): Remove.
17482         (struct scop): Remove original_schedule, transformed_schedule, and
17483         saved_schedule.
17484         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
17485         (SCOP_SAVED_SCHEDULE): Remove.
17486         (poly_scattering_new): Remove.
17487         (poly_scattering_free): Remove.
17488         (poly_scattering_copy): Remove.
17489         (store_scattering_pbb): Remove.
17490         (store_lst_schedule): Remove.
17491         (restore_lst_schedule): Remove.
17492         (store_scattering): Remove.
17493         (restore_scattering_pbb): Remove.
17494         (restore_scattering): Remove.
17495         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
17496         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
17497         compute the scattering polyhedron dimension from the dimension of
17498         pbb->domain.
17499         (build_scop_scattering): Update call to
17500         build_pbb_scattering_polyhedrons.
17501         (build_poly_scop): Remove call to scop_to_lst.
17502         * graphite.c (graphite_transform_loops): Add call to print_scop.
17503         (gate_graphite_transforms): Remove use of flag_loop_block,
17504         flag_loop_interchange, and flag_loop_strip_mine.
17506 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
17508         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
17509         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
17510         -floop-nest-optimize.
17511         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
17512         (generate_luj_sepclass): Remove.
17513         (generate_luj_options): Remove.
17514         (set_options): Remove opt_luj.
17515         (scop_to_isl_ast): Remove opt_luj.
17516         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
17517         flag_loop_unroll_jam.
17518         (getPrevectorMap_full): Remove.
17519         (getScheduleForBandList): Remove map_sepcl.
17520         (getScheduleMap): Same.
17521         (apply_schedule_map_to_scop): Remove sepcl.
17522         (optimize_isl): Same.
17523         * graphite-poly.c (apply_poly_transforms): Remove check for
17524         flag_loop_unroll_jam.
17525         (new_poly_bb): Remove map_sepclass.
17526         * graphite-poly.h (struct poly_bb): Same.
17527         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
17528         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
17529         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
17530         * toplev.c (process_options): Remove flag_loop_unroll_jam.
17532 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
17534         PR target/67317
17535         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
17536         (addqi3_cc): Ditto.
17537         (UNSPEC_ADD_CARRY): Remove.
17538         (addqi3_cconly_overflow): New expander.
17539         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
17540         Adjust for changed add<mode>3_carry.
17541         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
17542         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
17543         (<plusminus_insn><mode>3_carry): Remove expander.
17544         (*<plusminus_insn><mode>3_carry): Split insn pattern to
17545         add<mode>3_carry and sub<mode>3_carry.
17546         (plusminus_carry_mnemonic): Remove code attribute.
17547         (add<mode>3_carry): Canonicalize insn pattern.
17548         (*addsi3_carry_zext): Ditto.
17549         (sub<mode>3_carry): Ditto.
17550         (*subsi3_carry_zext): Ditto.
17551         (adcx<mode>3): Remove insn pattern.
17552         (addcarry<mode>): New insn pattern.
17553         (subborrow<mode>): Ditto.
17554         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
17555         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
17556         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
17557         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
17558         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
17559         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
17560         Rewrite expander to not clobber carry flag chains.
17562 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
17564         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
17565         instead of a rotate.
17567 2015-08-27  Marek Polacek  <polacek@redhat.com>
17569         PR middle-end/67005
17570         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
17571         an entry into an irreducible region.
17573 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17575         * configure: Regenerate.
17577 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
17579         PR tree-optimization/67283
17580         * tree-sra.c (type_consists_of_records_p): Rename to...
17581         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
17583         (completely_scalarize_record): Rename to...
17584         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
17585         (scalarize_elem): New.
17587 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
17589         * tree-sra.c (completely_scalarize_var): Rename to...
17590         (create_total_scalarization_access): ... Here. Drop call to
17591         completely_scalarize_record.
17593         (analyze_all_variable_accesses): Replace completely_scalarize_var
17594         with create_total_scalarization_access and completely_scalarize_record.
17596 2015-08-27  Alan Modra  <amodra@gmail.com>
17598         PR target/67356
17599         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
17600         for operand 1.
17602 2015-08-27  Richard Biener  <rguenther@suse.de>
17604         * passes.c (rest_of_decl_compilation): Guard early_global_decl
17605         call with !seen_error ().
17606         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
17607         early debug generation and finish...
17608         (symbol_table::compile): ... here to put it after a !seen_error ()
17609         guard.
17611 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17613         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
17614         Solaris 12+.
17616 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17617             Andre Vieira  <andre.simoesdiasvieira@arm.com>
17619         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
17620         (*cb<optab><mode>1): Likewise.
17621         (*tb<optab><mode>1): Likewise.
17622         (*cb<optab><mode>1): Likewise.
17623         * config/aarch64/iterators.md (inv_cb): New code attribute.
17624         (inv_tb): Likewise.
17625         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
17626         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
17628 2015-08-27  Richard Biener  <rguenther@suse.de>
17630         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
17632 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17634         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
17635         trap to fix ICE.
17637 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
17639         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
17640         Add declaration.
17642         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
17643         comment.
17644         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
17645         floating point in VSX registers.
17646         (rs6000_output_move_128bit): Always print out the set insn if we
17647         can't generate an appropriate 128-bit move.
17648         (rs6000_generate_compare): Add support for IEEE 128-bit floating
17649         point in VSX registers comparisons.
17650         (rs6000_expand_float128_convert): Likewise.
17652         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
17653         predicate for only GPR hard registers.
17655         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
17656         modes to iterators. Add new iterators for moving 128-bit values in
17657         scalar FPR registers and VSX registers.
17658         (FMOVE128): Likewise.
17659         (FMOVE128_FPR): Likewise.
17660         (FMOVE128_GPR): Likewise.
17661         (FMOVE128_VSX): Likewise.
17662         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
17663         in VSX registers.
17664         (IFKF): Likewise.
17665         (IBM128): Likewise.
17666         (TFIFKF): Likewise.
17667         (RELOAD): Add IEEE 128-bit floating point modes.
17668         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
17669         floating point in VSX registers modes.
17670         (signbit<mode>2, IBM128 iterator): Likewise.
17671         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
17672         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
17673         (negtf2): Likewise.
17674         (neg<mode>2, TFIFKF iterator): Likewise.
17675         (negtf2_internal): Likewise.
17676         (abstf2): Likewise.
17677         (abs<mode>2, TFIFKF iterator): Likewise.
17678         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
17679         VSX insn support for negate, absolute value, and negative absolute
17680         value.
17681         (ieee_128bit_vsx_neg<mode>2): Likewise.
17682         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
17683         (ieee_128bit_vsx_abs<mode>2): Likewise.
17684         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
17685         (ieee_128bit_vsx_nabs<mode>2): Likewise.
17686         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
17687         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
17688         floating point in VSX registers.
17689         (unpack<mode>_dm): Likewise.
17690         (unpack<mode>_nodm): Likewise.
17691         (pack<mode>): Likewise.
17692         (unpackv1ti): Likewise.
17693         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
17694         (packv1ti): Likewise.
17695         (pack<mode>, FMOVE128_VSX iterator): Likewise.
17696         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
17697         registers.
17698         (extenddftf2_internal): Likewise.
17699         (trunctfdf2): Likewise.
17700         (trunctfdf2_internal2): Likewise.
17701         (fix_trunc_helper): Likewise.
17702         (fix_trunctfdi2"): Likewise.
17703         (floatditf2): Likewise.
17704         (floatuns<mode>tf2): Likewise.
17705         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
17706         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
17707         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
17708         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
17709         (float<SDI:mode><IFKF:mode>2): Likewise.
17710         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
17712 2015-08-26  Renlin Li  <renlin.li@arm.com>
17714         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
17716 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17717             Jiong Wang  <jiong.wang@arm.com>
17719         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
17720         (tlsie_tiny_<mode>): New define_insn.
17721         (tlsie_tiny_sidi): Likewise.
17722         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
17723         SYMBOL_TINY_TLSIE.
17724         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
17725         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
17726         SYMBOL_TINY_TLSIE.
17727         (aarch64_expand_mov_immediate): Likewise.
17728         (aarch64_print_operand): Likewise.
17729         (arch64_classify_tls_symbol): Likewise.
17731 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
17733         * config/arm/arm-arches.def: Replace single value flags with
17734         an initializer built from ARM_FSET_MAKE_CPU1.
17735         * config/arm/arm-cores.def: Likewise.
17736         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
17737         derivation from the ARM_CORE macro definition, use the given value
17738         instead.
17739         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
17740         ARM_ARCH macro definition, use the given value instead.
17742 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
17744         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
17745         feature set.
17746         (struct builtin_description): Replace field mask with field
17747         features.
17748         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
17749         (IWMMXT2_BUILTIN): Likewise.
17750         (IWMMXT2_BUILTIN2): Likewise.
17751         (FP_BUILTIN): Likewise.
17752         (CRC32_BUILTIN): Likewise.
17753         (CRYPTO_BUILTIN): Likewise.
17754         (iwmmx_mbuiltin): Likewise.
17755         (iwmmx2_mbuiltin): Likewise.
17756         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
17757         struct builtin_description.
17759 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
17761         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
17762         (struct builtin_description): Change type of mask to unsigned
17763         long.
17764         * config/arm/arm-protos.h (insn_flags): Declare as type
17765         arm_feature_set.
17766         (tune_flags): Likewise.
17767         * config/arm/arm.c (feature_count): New.
17768         (insn_flags): Define as type arm_feature_set.
17769         (tune_flags): Likewise.
17770         (struct processors): Define field flags as type arm_feature_set.
17771         (all_cores): Update for change to struct processors.
17772         (all_architectures): Likewise.
17773         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
17774         macros.
17775         (arm_option_override_internal): Likewise.
17776         (arm_option_override): Likewise.
17778 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17779             Jiong Wang  <jiong.wang@arm.com>
17781         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
17782         tls size for tiny, small, large memory model.
17783         (aarch64_load_symref_appropriately): Support new symbol types.
17784         (aarch64_expand_mov_immediate): Likewise.
17785         (aarch64_print_operand): Likewise.
17786         (aarch64_classify_tls_symbol): Likewise.
17787         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
17788         (aarch64_symbol_type): Likewise.
17789         * config/aarch64/aarch64.md (tlsle): Deleted.
17790         (tlsle12_<mode>): New define_insn.
17791         (tlsle24_<mode>): Likewise.
17792         (tlsle32_<mode>): Likewise.
17793         (tlsle48_<mode>): Likewise.
17794         * doc/sourcebuild.texi (AArch64-specific attributes): Document
17795         "aarch64_tlsle32".
17797 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
17799         * config/arm/arm-protos.h (FL_NONE): New.
17800         (FL_ANY): New.
17801         (arm_feature_set): New.
17802         (ARM_FSET_MAKE): New.
17803         (ARM_FSET_MAKE_CPU1): New.
17804         (ARM_FSET_MAKE_CPU2): New.
17805         (ARM_FSET_CPU1): New.
17806         (ARM_FSET_CPU2): New.
17807         (ARM_FSET_EMPTY): New.
17808         (ARM_FSET_ANY): New.
17809         (ARM_FSET_HAS_CPU1): New.
17810         (ARM_FSET_HAS_CPU2): New.
17811         (ARM_FSET_HAS_CPU): New.
17812         (ARM_FSET_ADD_CPU1): New.
17813         (ARM_FSET_ADD_CPU2): New.
17814         (ARM_FSET_DEL_CPU1): New.
17815         (ARM_FSET_DEL_CPU2): New.
17816         (ARM_FSET_UNION): New.
17817         (ARM_FSET_INTER): New.
17818         (ARM_FSET_XOR): New.
17819         (ARM_FSET_EXCLUDE): New.
17820         (AFM_FSET_IS_EMPTY): New.
17821         (ARM_FSET_CPU_SUBSET): New.
17823 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
17825         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
17826         SYMBOL_TLSLE to SYMBOL_TLSLE24.
17827         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17828         Likewise.
17829         (aarch64_expand_mov_immediate): Likewise.
17830         (aarch64_print_operand): Likewise.
17831         (aarch64_classify_symbol): Likewise.
17833 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
17835         * config/aarch64/aarch64.opt (mtls-size): New entry.
17836         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
17837         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
17838         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
17840 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
17842         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
17843         ARM_CORE entry.  Fix some white-space.
17844         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
17845         ARM_CORE definition.
17847 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17849         * fold-const.c (fold_binary_loc) : Move Optimize
17850         root(x)*root(y) as root(x*y) to match.pd.
17851         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
17852         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
17853         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
17854         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
17855         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
17856         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
17857         (mult (exps:s @0) (exps:s @1)) : New simplifier.
17858         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
17859         (rdiv @0 (exps:s @1)) : New simplifier.
17861 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
17863         * gcc.c (driver::finalize): Only assign to extra_specs if
17864         [EXTRA_SPECS].
17866 2015-08-25  Marek Polacek  <polacek@redhat.com>
17868         PR middle-end/67330
17869         * varasm.c (declare_weak): Return after giving an error.
17871 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
17873         * gcc-main.c (main): Add params to driver ctor.
17874         * gcc.c (class env_manager): New.
17875         (env): New global.
17876         (env_manager::init): New.
17877         (env_manager::get): New.
17878         (env_manager::xput): New.
17879         (env_manager::restore): New.
17880         Poison getenv and putenv.
17881         (DEFAULT_TARGET_SYSTEM_ROOT): New.
17882         (target_system_root): Update initialization to use
17883         DEFAULT_TARGET_SYSTEM_ROOT.
17884         (struct spec_list): Add field "default_ptr".
17885         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
17886         (init_spec): Likewise.
17887         (set_spec): Clear field "default_ptr".
17888         (read_specs): Free "spec" and "buffer".
17889         (xputenv): Reimplement in terms of env_manager.
17890         (process_command): Replace ::getenv calls with calls to the
17891         env_manager singleton.
17892         (process_brace_body): Free string in three places.
17893         (driver::driver): New.
17894         (driver::~driver): New.
17895         (used_arg): Convert from a function to...
17896         (class used_arg_t): ...this class, and...
17897         (used_arg): ...this new global instance.
17898         (used_arg_t::finalize): New function.
17899         (getenv_spec_function): Add "const" to local "value".  Replace
17900         ::getenv call with call to the env_manager singleton.
17901         (path_prefix_reset): New function.
17902         (driver::finalize): New function.
17903         * gcc.h (driver::driver): New.
17904         (driver::~driver): New.
17905         (driver::finalize): New.
17907 2015-08-25  Nathan Sidwell  <nathan@acm.org>
17909         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
17910         target doesn't have one.
17912 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
17914         PR target/67346
17915         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
17917 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
17919         PR target/67344
17920         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
17921         a define_insn, remove second alternative.
17923 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
17924             Joseph Myers  <joseph@codesourcery.com>
17926         * gcc.c (struct switchstr): Expand comment.
17928 2015-08-25  Nathan Sidwell  <nathan@acm.org>
17930         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
17931         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
17933 2015-08-25  Richard Biener  <rguenther@suse.de>
17935         PR middle-end/67306
17936         * genmatch.c (expr::gen_transform): Verify the result of
17937         builtin_decl_implicit.
17938         (dt_simplify::gen_1): Likewise.
17940 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17942         * config/arm/constraints.md: Also list Cs and US ARM-specific
17943         constraints as used.
17945 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
17947         PR target/66609
17948         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
17949         UNSPEC_PCREL.
17950         (nonpic_symbol_mentioned_p): Likewise.
17951         (sh_delegitimize_address): Likewise.
17952         (sh_function_ok_for_sibcall): Take into account weak symbols.
17953         (sh_expand_sym_label2reg): New.
17954         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
17955         * config/sh/sh.md (UNSPEC_PCREL): New enum.
17956         (call_pcrel): Use sh_expand_sym_label2reg.
17957         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
17958         (symPCREL_label2reg) New expand.
17960 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
17962         * graphite-poly.c: Change type of region from void* to sese.
17963         * graphite-poly.h (struct scop): Changing the type of scop::region
17964         from void* to sese. Change accessor macro accordingly.
17965         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
17967 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
17969         * graphite-scop-detection.c (stmt_simple_for_scop_p):
17970         Constrain only on INTEGER_TYPE.
17972 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
17974         PR target/67211
17975         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
17976         -mefficient-unaligned-vsx on ISA 2.7.
17978         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
17979         option to a masked option.
17981         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
17982         logic for -mefficient-unaligned-vsx so that it is set via an arch
17983         ISA option, instead of being set if -mtune=power8 is set. Move
17984         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
17985         near other default option handling.
17987 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
17989         * genflags.c (gen_macro): Delete.
17990         (gen_proto): Don't create GEN.*CALL.* macros.
17991         * gensupport.h (get_file_location): Declare.
17992         * gensupport.c (rtx_locs): New variable.
17993         (read_md_rtx): Record rtx locations.
17994         (get_file_location): New function.
17995         * target-insns.def (call, call_pop, call_value, call_value_pop)
17996         (sibcall, sibcall_value): New patterns.
17997         * gentarget-def.c (parse_argument): New function.
17998         (def_target_insn): Use it.  Handle optional operands.  Raise an
17999         error if an .md pattern has the wrong number of operands for the
18000         pattern name.  Remove the names of unused operands from the prototype.
18001         * builtins.c (expand_builtin_apply): Use targetm functions
18002         instead of HAVE_call_value and GEN_CALL_VALUE.
18003         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
18004         and sibcall_value_pop.
18005         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
18006         of GEN_CALL.
18007         * config/alpha/alpha.md (untyped_call): Likewise.
18008         * config/iq2000/iq2000.md (untyped_call): Likewise.
18009         * config/m68k/m68k.md (untyped_call): Likewise.
18010         * config/mips/mips.md (untyped_call): Likewise.
18011         * config/pa/pa.md (untyped_call): Likewise.
18012         * config/rs6000/rs6000.md (untyped_call): Likewise.
18013         * config/sparc/sparc.md (untyped_call): Likewise.
18014         * config/tilegx/tilegx.md (untyped_call): Likewise.
18015         * config/tilepro/tilepro.md (untyped_call): Likewise.
18016         * config/visium/visium.md (untyped_call): Likewise.
18017         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
18018         gen_call_value instead of GEN_CALL_VALUE.
18019         * config/arm/arm.md (untyped_call): Likewise.
18020         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
18021         GEN_CALL.
18023 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
18025         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
18026         (have_cbranchcc4): New variable.
18027         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
18028         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
18029         (if_convert): Initialize have_cbranchcc4.
18031 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
18033         * builtins.c (expand_cmpstrn): Rename to...
18034         (expand_cmpstrn_or_cmpmem): ...this.
18035         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
18036         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
18037         Remove mode argument.
18038         (expand_builtin): Update accordingly.
18040 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
18042         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
18043         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
18044         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
18045         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
18046         Add predicates for operands 0 and 3.
18047         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
18048         operand.
18049         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
18050         immediate_operand to nonmemory_operand.
18052 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
18054         * df-scan.c (df_insn_info_init_fields): New function, split out
18055         from...
18056         (df_insn_create_insn_record): ...here.
18057         (df_insn_info_free_fields): New function, split out from...
18058         (df_insn_info_delete): ...here.
18059         (df_insn_rescan): Use the new functions instead of freeing and
18060         reallocating the df_insn_info.
18062 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18064         * doc/install.texi (Binaries): Remove links no longer valid.
18066 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
18068         * config/nvptx/mkoffload.c (process): Replace
18069         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
18071 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
18073         PR target/67329
18074         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
18076 2015-08-24  Renlin Li  <renlin.li@arm.com>
18078         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
18079         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
18080         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
18081         * config/arm/constraints.md ("j"): Add check for high code.
18083 2015-08-24  Tom de Vries  <tom@codesourcery.com>
18085         PR tree-optimization/65468
18086         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
18087         chunk_size is one.
18089 2015-08-24  Nathan Sidwell  <nathan@acm.org>
18091         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
18092         change to nvptx_type_from_mode call. Use arg_promotion for both
18093         split and non-split args.
18095 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
18097         * target-insns.def (movstr): New pattern.
18098         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
18099         (expand_movstr): Use targetm rather than HAVE_movstr/
18100         CODE_FOR_movstr.
18102 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
18104         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
18105         cast syntax.
18107 2015-08-24  Andrew Pinski  <apinski@cavium.com>
18109         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
18110         AARCH64_EXTRA_TUNING_OPTION.
18111         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
18112         New enum.
18113         (aarch64_extra_tuning_flags): Base the shifted value on the index
18114         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
18115         * config/aarch64/aarch64.c: Remove the last argument to
18116         AARCH64_EXTRA_TUNING_OPTION.
18118 2015-08-23  Nathan Sidwell  <nathan@acm.org>
18120         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
18121         decls.
18122         (nvptx_declare_function_name): Insert formatting tabs for
18123         consistency.
18125 2015-08-23  Tom de Vries  <tom@codesourcery.com>
18127         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
18128         parm_decl, rather than generating a dummy default def in cfun.
18129         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
18130         ssa_name from cfun and child_fn do not share a stmt as def stmt.
18131         (move_stmt_op): Handle PARM_DECl.
18132         (gather_ssa_name_hash_map_from): New function.
18133         (move_sese_region_to_fn): Add default defs for function params, and add
18134         them to vars_map.  Release copied ssa names.
18135         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
18137 2015-08-23  Tom de Vries  <tom@codesourcery.com>
18139         * doc/sourcebuild.texi: Rename vect_no_int_max with
18140         vect_no_int_min_max.  Update description.
18142 2015-08-22  Andrew Pinski  <apinski@cavium.com>
18144          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
18145         * config/aarch64/aarch64-protos.h
18146         (aarch64_fusion_pairs_index): New enum.
18147         (aarch64_fusion_pairs): Base the shifted value on the index instead
18148         Rewrite AARCH64_FUSE_ALL to be based on the end index.
18149         of the argument to AARCH64_FUSION_PAIR.
18150         * config/aarch64/aarch64.c: Remove the last argument to
18151         AARCH64_FUSION_PAIR.
18153 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
18155         * dominance.c (new_zero_array): Define.
18156         (dom_info): Redefine as class with proper encapsulation.
18157         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
18158         Add new members.
18159         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
18160         allocations/deallocations.  Pass function as parameter (instead of
18161         using cfun).
18162         (dom_info::get_idom): Define accessor method.
18163         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
18164         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
18165         (calculate_dominance_info): Adjust to use dom_info class.
18166         (verify_dominators): Likewise.
18168 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
18170         * print-rtl.c (print_rtx): Check the correct range for
18171         flag_dump_unnumbered_links to behave as documented.
18173         PR rtl-optimization/67227
18174         PR rtl-optimization/64164
18175         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
18176         (nonoverlapping_memrefs_p): Test offsets and sizes when given
18177         identical gimple_reg exprs.
18179 2015-08-21  Nathan Sidwell  <nathan@acm.org>
18181         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
18182         expansion.
18183         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
18184         crtl->stack_alignment_needed to determine alignment.
18185         (nvptx_get_drap_rtx): New.
18186         (TARGET_GET_DRAP_RTX): Override.
18187         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
18189 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18191         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
18193 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18195         * configure.ac: Remove uwin* cases.
18196         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
18197         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
18198         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
18199         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
18200         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
18201         i[34567]86-*-uwin*, powerpc-*-beos*.
18203 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
18205         * gencodes.c (gencodes): Print the comma for the preceding
18206         enum value rather than the current one.  Use aliased enum values
18207         rather than #defines for compiled-out patterns.
18208         (main): Update accordingly.  Replace LAST_INSN_CODE with
18209         NUM_INSN_CODES.
18210         * lra.c (insn_code_data): Update accordingly.
18211         (finish_insn_code_data_once, get_static_insn_data): Likewise.
18212         * recog.h (target_recog): Likewise.
18213         (preprocess_insn_constraints): Change parameter to unsigned int.
18214         * recog.c (preprocess_insn_constraints): Likewise.
18215         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
18216         * tree-vect-stmts.c (vectorizable_operation): Simplify.
18218 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
18220         PR rtl-optimization/61657
18221         * loop-iv.c (iv_number_of_iterations): Declare up and down as
18222         unsigned.  Remove superflous uint64_t cast.
18224 2014-08-21  Felix Yang  <felix.yang@huawei.com>
18225             Jiji Jiang  <jiangjiji@huawei.com>
18227         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
18228         argument and get builtin function code directly from CALL.
18229         (gimple_stringop_fixed_value): Modified accordingly.
18230         (gimple_stringops_transform, gimple_stringops_values_to_profile):
18231         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
18233 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18235         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
18237 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
18239         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
18240         to match.pd.
18241         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
18242         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
18243         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
18244         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
18245         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
18246         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
18247         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
18248         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
18249         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
18250         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
18252         * match.pd (SIN ) : New Operator.
18253         (TAN) : New Operator.
18254         (mult (SQRT@1 @0) @1) : New simplifier.
18255         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
18256         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
18257         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
18258         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
18259         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
18260         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
18261         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
18262         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
18263         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
18264         (rdiv @0 (POW:s @1 @2)) : New simplifier.
18266 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
18268         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
18269         loop if EXPR is simplified to const value.
18271 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
18273         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
18274         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
18276 2015-08-21  Richard Biener  <rguenther@suse.de>
18278         PR middle-end/67285
18279         * gimple-fold.c (replace_stmt_with_simplification): Assert
18280         seq is empty when replacing a call with itself but different
18281         arguments.
18282         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
18283         a call require that it is const.
18285 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18287         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
18288         * builtins.c (get_object_alignment_2): Adjust.
18289         * varasm.c (align_variable): Likewise.
18290         (get_variable_align): Likewise.
18291         (build_constant_desc): Likewise.
18292         (force_const_mem): Likewise.
18293         * doc/tm.texi.in: Likewise.
18294         * doc/tm.texi: Regenerate.
18296 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18298         * genconfig.c (main): Always define HAVE_cc0.
18299         * recog.c (rest_of_handle_peephole2): Adjust.
18301 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18303         * reorg.c (relax_delay_slots): Don't use #if to check value of
18304         HAVE_cc0.
18306 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18308         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
18309         * targhooks.c (default_have_conditional_execution): Adjust.
18311 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
18313         * rtl.h (rtvec_all_equal_p): Declare.
18314         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
18315         * rtl.c (rtvec_all_equal_p): New function.
18316         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
18317         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
18318         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
18319         * config/arm/arm.c (neon_vdup_constant): Likewise.
18320         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
18321         * config/tilegx/constraints.md (W, Y): Likewise.
18322         * config/tilepro/constraints.md (W, Y): Likewise.
18323         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
18324         (classify_immediate): Use unwrap_const_vec_duplicate.
18325         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
18326         (reg_or_v2s8bit_operand): Likewise.
18327         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
18328         (reg_or_v4s8bit_operand): Likewise.
18330 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18332         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
18333         (vec_shasigma_be): New #define.
18334         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
18335         (VPMSUMH): Likewise.
18336         (VPMSUMW): Likewise.
18337         (VPMSUMD): Likewise.
18338         (VPMSUM): New BU_P8V_OVERLOAD_2.
18339         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
18340         entries for VEC_MADD and VEC_VPMSUM.
18342 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
18344         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
18345         Multiply argument avr_n_flash by 64 to match unit of "KiB".
18346         (avr_pgm_check_var_decl): Same.
18348 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
18350         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
18351         initialization of HFmode scalar type (float16_t) to...
18352         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
18353         code.
18355         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
18357         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
18358         having an -mfp16-format.
18360 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
18362         * config/i386/predicates.md (vector_all_ones_operand): Use
18363         CONSTM1_RTX to simplify definition.
18365 2015-08-20  Richard Biener  <rguenther@suse.de>
18367         * toplev.c (compile_file): Remove loop calling late_global_decl
18368         on all symbols.
18369         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
18370         on decls we assembled.
18372 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
18374         * common/config/aarch64/aarch64-common.c
18375         (AARCH64_CPU_NAME_LENGTH): Delete.
18376         (aarch64_option_extension): New.
18377         (all_extensions): Likewise.
18378         (processor_name_to_arch): Likewise.
18379         (arch_to_arch_name): Likewise.
18380         (all_cores): New.
18381         (all_architectures): Likewise.
18382         (aarch64_get_extension_string_for_isa_flags): Likewise.
18383         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
18384         architecture names.
18385         * config/aarch64/aarch64-protos.h
18386         (aarch64_get_extension_string_for_isa_flags): New.
18387         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
18388         (aarch64_option_print): Get the string to print from
18389         aarch64_get_extension_string_for_isa_flags.
18390         (aarch64_declare_function_name): Likewise.
18391         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
18392         (MCPU_TO_MARCH_SPEC): This.
18393         (ASM_CPU_SPEC): Use it.
18394         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
18395         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
18396         (EXTRA_SPEC_FUNCTIONS): Use it.
18398 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
18400         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
18401         expansion when !ISA_HAS_LWL_LWR.
18402         (mips_block_move_straight): Update the size of elements copied to
18403         account for alignment when !ISA_HAS_LWL_LWR.
18404         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
18406 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
18408         * expr.c (expand_expr_real_2): Check gimple statement during
18409         LSHIFT_EXPR expand.
18411 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
18413         * common.opt (fstack-protector): Initialize to -1.
18414         (fstack-protector-all): Likewise.
18415         (fstack-protector-strong): Likewise.
18416         (fstack-protector-explicit): Likewise.
18417         * configure.ac: Add --enable-default-ssp.
18418         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
18419         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
18420         -1.
18421         * doc/install.texi: Document --enable-default-ssp.
18422         * config.in: Regenerated.
18423         * configure: Likewise.
18425 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
18427         PR rtl-optimization/64164
18428         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
18429         (parm_in_stack_slot_p): ... this.  Disregard mode, what
18430         matters is whether the parm will live in a pseudo or a stack
18431         slot.
18432         (expand_one_ssa_partition): Deal with params without a default
18433         def.  Disregard mode.
18434         * cfgexpand.h: Renamed function declaration.
18435         * tree-ssa-coalesce.c: Adjust.
18436         * function.c (split_complex_args): Allocate stack slot for
18437         unassigned parms before splitting.
18438         (parm_in_unassigned_mem_p): New.  Use it instead of
18439         parm_maybe_byref_p throughout this file.
18440         (assign_parm_setup_block): Use it.  Accept pseudos in the
18441         expand-assigned rtl.
18442         (assign_parm_setup_reg): Drop BLKmode requirement.
18443         (assign_parm_setup_stack): Allocate and fill in the address of
18444         unassigned MEM parms.
18446 2015-08-19  David Sherwood  <david.sherwood@arm.com>
18448         * genmodes.c (emit_mode_unit_size_inline): New function.
18449         (emit_mode_unit_precision_inline): New function.
18450         (emit_insn_modes_h): Emit new #define.  Emit new functions.
18451         (emit_mode_unit_size): New function.
18452         (emit_mode_unit_precision): New function.
18453         (emit_mode_adjustments): Add mode_unit_size adjustments.
18454         (emit_insn_modes_c): Emit new arrays.
18455         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
18456         use new inline methods.
18458 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18460         * config/aarch64/aarch64.c (bit_count): Delete prototype
18461         and definition.
18462         (aarch64_print_operand): Use popcount_hwi instead of the above.
18464 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18466         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
18467         comment.
18469 2015-08-19  Marek Polacek  <polacek@redhat.com>
18471         PR middle-end/67133
18472         * gimple-ssa-isolate-paths.c
18473         (insert_trap_and_remove_trailing_statements): Rename to ...
18474         (insert_trap): ... this.  Don't remove trailing statements; split
18475         block instead.
18476         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
18478 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
18480         PR other/67042
18481         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
18482         conditionalize the whole on __GNUC__.  Add fallback code
18483         depending neither on undefined nor implementation-defined behaviour.
18485 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
18487         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
18488         whitespaces with tab.
18490 2015-08-19  Florian Weimer  <fweimer@redhat.com>
18492         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
18493         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
18494         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
18495         Move Name_Ids instantiation to the Prj.Proc package, to avoid
18496         trampolines.
18498 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18500         * config/arm/arm.c (bounds_check): Use %wd print format
18501         for HOST_WIDE_INT arguments.
18503 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
18505         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
18506         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
18507         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
18508         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
18509         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
18510         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
18511         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
18512         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
18513         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
18514         typedefs.
18516 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
18518         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
18519         function.c, graphite-scop-detection.c, haifa-sched.c,
18520         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
18521         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
18522         varasm.c: Remove typedefs of structs.
18524 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
18526         * config/rs6000/altivec.h (vec_adde): New define.
18527         (vec_addec): Likewise.
18528         (vec_double): Likewise.
18529         (vec_bperm): Likewise.
18530         (vec_gb): Likewise.
18531         * config/rs6000/rs6000-builtin.def (ADDE): New
18532         BU_ALTIVEC_OVERLOAD_3.
18533         (ADDEC): Likewise.
18534         (DOUBLE): New BU_VSX_OVERLOAD_1.
18535         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
18536         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
18537         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
18538         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
18539         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
18540         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
18541         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
18542         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
18543         and P8V_BUILTIN_VEC_VBPERMQ.
18545 2015-08-18  Jason Merrill  <jason@redhat.com>
18547         * print-tree.c (print_node): Handle TREE_BINFO.
18549 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18551         PR middle-end/36757
18552         * builtins.c (expand_builtin_signbit): Add asserts to make sure
18553         we can expand BUILT_IN_SIGNBIT inline.
18554         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
18555         * doc/extend.texi: Document the type-generic __builtin_signbit.
18557 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
18559         PR rtl-optimization/67218
18560         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
18561         (simplify_unary_operation_1): Use it.
18563 2015-08-18  Marek Polacek  <polacek@redhat.com>
18565         PR middle-end/67222
18566         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
18567         if the call isn't valid.
18568         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
18569         gimple_call_builtin_p.
18570         (call_may_clobber_ref_p_1): Likewise.
18571         (stmt_kills_ref_p): Likewise.
18573 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
18575         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
18576         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
18577         (mips_hard_regno_scratch_ok): Likewise.
18578         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
18579         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
18581 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
18583         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
18584         (determine_value_range): Call refine_value_range_using_guard for
18585         each loop initial condition to improve value range.
18587 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
18589         * config/i386/i386.c: Remove include of fibheap.h.
18591 2015-08-17  Richard Biener  <rguenther@suse.de>
18593         PR tree-optimization/67221
18594         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
18595         (sccvn_dom_walker::before_dom_children): Mark backedges of
18596         non-executable blocks as not executable.
18598 2015-08-17  David Sherwood  <david.sherwood@arm.com>
18600         * config/arm/arm.c (neon_element_bits): Replace call to
18601         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
18602         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
18603         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
18604         (neon_vdup_lane<mode>): Likewise.
18605         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
18606         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
18607         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
18608         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
18609         * config/spu/spu.c (arith_immediate_p): Likewise.
18610         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
18611         * expr.c (expand_expr_real_2): Likewise.
18612         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
18613         * simplify-rtx.c (simplify_immed_subreg): Likewise.
18614         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
18615         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
18616         New variable.
18617         * fold-const.c (fold_binary_loc): Replace call to
18618         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
18619         GET_MODE_UNIT_PRECISION (m).
18621 2015-08-17  Mike Stump  <mikestump@comcast.net>
18623         * config/arm/arm.c (arm_block_move_unaligned_straight):
18624         Emit normal move instead of unaligned load when source or destination
18625         are appropriately aligned.
18627 2015-08-17  Richard Biener  <rguenther@suse.de>
18628             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
18630         PR middle-end/16107
18631         * match.pd (div (coss (op @0) : New simplifier.
18633 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
18635         PR rtl-optimization/64164
18636         PR bootstrap/66978
18637         PR middle-end/66983
18638         PR rtl-optimization/67000
18639         PR middle-end/67034
18640         PR middle-end/67035
18641         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18642         * tree-ssa-copyrename.c: Removed.
18643         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
18644         -ftree-coalesce-vars.
18645         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18646         * common.opt (ftree-copyrename): Ignore.
18647         (ftree-coalesce-inlined-vars): Likewise.
18648         * doc/invoke.texi: Remove the ignored options above.
18649         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18650         * tree-ssa-coalesce.h: ... here.
18651         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18652         headers required by it.
18653         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18654         across variables when flag_tree_coalesce_vars.  Check register
18655         use and promoted modes to allow coalescing.  Do not coalesce
18656         maybe-byref parms with SSA_NAMEs of other variables, or
18657         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
18658         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18659         with its member functions to tree-ssa-coalesce.c.
18660         (var_map_base_init): Likewise.  Renamed to
18661         compute_samebase_partition_bases.
18662         (partition_view_normal): Drop want_bases parameter.
18663         (partition_view_bitmap): Likewise.
18664         * tree-ssa-live.h: Adjust declarations.
18665         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
18666         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18667         default defs at the entry point.
18668         (dump_part_var_map): New.
18669         (compute_optimized_partition_bases): New, called by...
18670         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18671         of compute_samebase_partition_bases.  Adjust.
18672         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18673         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
18674         (ssa_default_def_partition): New.
18675         (get_rtl_for_parm_ssa_default_def): New.
18676         (align_local_variable, add_stack_var): Support anonymous SSA
18677         names.
18678         (defer_stack_allocation): Likewise.  Declare earlier.
18679         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18680         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18681         Do no record deferred-allocation marker in
18682         SA.partition_to_pseudo.
18683         (expand_stack_vars): Adjust check for the marker in it.
18684         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
18685         redundant MEM attr setting.
18686         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
18687         from...
18688         (expand_one_stack_var): ... this.  New wrapper to check and
18689         skip already expanded SSA partitions.
18690         (record_alignment_for_reg_var): New, factored out of...
18691         (expand_one_var): ... this.
18692         (expand_one_ssa_partition): New.
18693         (adjust_one_expanded_partition_var): New.
18694         (expand_one_register_var): Check and skip already expanded SSA
18695         partitions.
18696         (expand_used_vars): Don't create DECLs for anonymous SSA
18697         names.  Expand all SSA partitions, then adjust all SSA names.
18698         (pass::execute): Replace the loops that set
18699         SA.partition_to_pseudo from partition leaders and cleared
18700         DECL_RTL for multi-location variables, and that which used to
18701         rename vars and set attrs, with one that clears DECL_RTL and
18702         checks that PARMs and RESULTs default_defs match DECL_RTL.
18703         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18704         * emit-rtl.c: Include stor-layout.h.
18705         (set_reg_attrs_for_parm): Handle NULL decl.
18706         (set_reg_attrs_for_decl_rtl): Take mode from expression if
18707         it's not a DECL.
18708         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
18709         rather than its possibly-NULL DECL.
18710         * explow.c (promote_ssa_mode): New.
18711         * explow.h (promote_ssa_mode): Declare.
18712         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18713         (read_complex_part): Export.
18714         * expr.h (read_complex_part): Declare.
18715         * cfgexpand.h (parm_maybe_byref_p): Declare.
18716         * function.c: Include cfgexpand.h.
18717         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18718         (use_register_for_parm_decl): Wrapper for the above to
18719         special-case the result_ptr.
18720         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18721         (split_complex_args): Take assign_parm_data_all argument.
18722         Pass it to rtl_for_parm.  Set up rtl and context for split
18723         args.  Reset complex parm before fetching its default decl
18724         rtl.
18725         (assign_parms_unsplit_complex): Use the default-def complex
18726         parm rtl if it matches the components.
18727         (assign_parms_augmented_arg_list): Adjust.
18728         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18729         multiple locations.  Recognize split complex args.
18730         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18731         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
18732         (assign_parm_setup_block): Prefer SSA-assigned location, and
18733         fill in its address if the memory location of a maybe-byref
18734         parm was not assigned by cfgexpand.
18735         (assign_parm_setup_reg): Likewise.  Adjust its mode as
18736         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
18737         sure passed_pointer parms don't need conversion.  Copy address
18738         or value as needed.
18739         (assign_parm_setup_stack): Prefer SSA-assigned location.
18740         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
18741         rtl before testing for pointer bounds.  Special-case result_ptr.
18742         (expand_function_start): Maybe reset DECL_RTL of result.
18743         Prefer SSA-assigned location for result and static chain.
18744         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
18745         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
18746         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18747         anonymous SSA names.  Use promote_ssa_mode.
18748         (get_temp_reg): Likewise.
18749         (remove_ssa_form): Adjust.
18750         * stor-layout.c (layout_decl): Don't set mem attributes of
18751         non-MEMs.
18752         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18753         and get its reg_usage for reg invalidation.
18754         (compute_bb_dataflow): Pass it insn.
18755         (emit_notes_in_bb): Likewise.
18757 2015-08-14  Marek Polacek  <polacek@redhat.com>
18759         * tree-core.h (tree_base): Fix typo.
18761 2015-08-14  Marek Polacek  <polacek@redhat.com>
18763         PR middle-end/67133
18764         * gimple.c (infer_nonnull_range_by_attribute): Check that the
18765         nonnull argument position is not outside function arguments.
18767 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
18769         PR target/67143
18770         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
18771         'lconst_atomic' with 'const_atomic'.
18772         (atomic_fetch_<optab><mode>): Likewise.
18773         (atomic_<optab>_fetch<mode>): Likewise.
18774         * config/aarch64/iterators.md (lconst-atomic): Move below
18775         'const_atomic'.
18776         (const_atomic): New.
18778 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
18779             Bernd Schmidt  <bernds@codesourcery.com>
18781         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
18782         debug options.
18783         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
18784         (DWARF2_DEBUGGING_INFO): Don't define.
18785         * debug.h (dwarf2_lineno_debug_hooks): Declare.
18786         * toplev.c (process_options): Add a case for it.
18787         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
18788         (dwarf2out_init): Skip most initializations if
18789         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
18790         case.
18791         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
18792         DWARF2_LINENO_DEBUGGING_INFO.
18793         * opts.c (set_debug_level): Likewise.
18795 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
18797         * config/arm/types.md (is_neon_type): Add missing types.
18799 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
18801         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
18802         for skylake.
18803         * config/i386/i386.c (PTA_SKYLAKE): New macros.
18804         (processor_alias_table): Add skylake description.
18805         (enum processor_model): Add skylake processor.
18806         (arch_names_table): Add skylake record.
18807         * doc/invoke.texi: Add skylake item.
18809 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
18811         * ira-int.h: Include recog.h.
18812         * ira-build.c: Don't include recog.h.
18813         * ira-color.c: Likewise.
18814         * ira-conflicts.c: Likewise.
18815         * ira-costs.c: Likewise.
18816         * ira-emit.c: Likewise.
18817         * ira-lives.c: Likewise.
18818         * ira.c: Likewise.
18819         * sched-deps.c: Likewise.
18820         * sel-sched.c: Likewise.
18821         * target-globals.c: Likewise.
18823 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
18825         PR bootstrap/55035
18826         * reload1.c (elimination_costs_in_insn): Make it obvious to the
18827         compiler that the n_dups and n_operands loop bounds are invariant.
18829 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18831         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
18832         expressions in A and B.
18834 2015-08-13  Richard Biener  <rguenther@suse.de>
18836         * tree.c (nonnull_arg_p): Move from ...
18837         * tree-vrp.c (nonnull_arg_p): ... here.
18838         * tree.h (nonnull_arg_p): Declare.
18839         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
18840         here, register ptr != 0 for nonnull_arg_p pointer arguments.
18841         Properly initialize static chain and by-reference result pointer.
18842         (run_scc_vn): Adjust.
18844 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
18846         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
18847         TUNE_I6400.
18849 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
18851         * config/aarch64/aarch64-protos.h
18852         (aarch64_gen_atomic_cas): Declare.
18853         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
18854         Choose appropriate instruction pattern for the target.
18855         (aarch64_gen_atomic_cas): New.
18856         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
18857         (atomic_compare_and_swap<mode>_1): Rename to
18858         aarch64_compare_and_swap<mode>.  Fix some indentation.
18859         (aarch64_compare_and_swap<mode>_lse): New.
18860         (aarch64_atomic_cas<mode>): New.
18862 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
18864         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
18865         (TARGET_LSE): New.
18867 2015-08-13  Richard Biener  <rguenther@suse.de>
18869         PR tree-optimization/67191
18870         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
18871         assert we value-numbered last stmts operand because it can validly
18872         trigger for unreachable code.
18874 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18876         PR rtl-optimization/67103
18877         * ifcvt.c (noce_try_store_flag_constants): Move
18878         x = (-(test != 0) & (b - a)) + a transformation to...
18879         (noce_try_cmove): ... Here.  Try it if normal conditional
18880         move fails.
18882 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
18884         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
18885         pseudo-processors.
18886         * config/mips/mips.md (processor): Remove w32 and w64.
18888 2015-08-13  Richard Biener  <rguenther@suse.de>
18890         PR tree-optimization/66502
18891         PR tree-optimization/67167
18892         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
18893         backedge arguments.
18894         (vn_phi_lookup): Adjust.
18895         (vn_phi_insert): Likewise.
18896         (visit_phi): Prefer to value-number to another PHI node
18897         over value-numbering to a PHI argument.
18898         (init_scc_vn): Mark DFS back edges.
18900 2015-08-13  Richard Biener  <rguenther@suse.de>
18902         * gimple.h (gcall::code_): New constant static member.
18903         (gcond::code_): Likewise.
18904         * gimple.c (gcall::code_): Define.
18905         (gcond::code_): Likewise.
18906         (is_a_helper <const gcond *>): Add.
18907         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
18908         and forward to a new gcall overload with less checking and a
18909         cheaper way to access the operand.
18910         (gimple_call_lhs_ptr): Likewise.
18911         (gimple_call_set_lhs): Likewise.
18912         (gimple_call_internal_p): Likewise.
18913         (gimple_call_with_bounds_p): Likewise.
18914         (gimple_call_set_with_bounds): Likewise.
18915         (gimple_call_internal_fn): Likewise.
18916         (gimple_call_set_ctrl_altering): Likewise.
18917         (gimple_call_ctrl_altering_p): Likewise.
18918         (gimple_call_fntype): Likewise.
18919         (gimple_call_fn): Likewise.
18920         (gimple_call_fn_ptr): Likewise.
18921         (gimple_call_set_fndecl): Likewise.
18922         (gimple_call_fndecl): Likewise.
18923         (gimple_call_chain): Likewise.
18924         (gimple_call_num_args): Likewise.
18925         (gimple_call_arg): Likewise.
18926         (gimple_call_arg_ptr): Likewise.
18927         (gimple_call_set_arg): Likewise.
18928         (gimple_call_noreturn_p): Likewise.
18929         (gimple_cond_code): Likewise.
18930         (gimple_cond_lhs): Likewise.
18931         (gimple_cond_rhs): Likewise.
18932         (gimple_has_lhs): Reduce checking.
18934 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
18936         PR middle-end/25529
18937         * match.pd (div (mult @0 @1) @1) : New simplifier.
18939 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
18941         PR target/67071
18942         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
18943         predicate to allow construction of vector constants using the
18944         VSLDOI vector shift instruction.
18946         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
18947         declaration.
18949         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
18950         the number of bytes to be shifted left and filled in with either
18951         all zero or all one bits.
18952         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
18953         methods exist.
18954         (output_vec_const_move): On power8, generate XXLORC to generate
18955         a vector constant with all 1's. Do a split if we need to use a
18956         VSLDOI instruction.
18958         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
18959         properly test for the MSB.
18961         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
18962         vector constants that can be created with VSLDOI.
18964 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
18966         revert:
18967         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
18968         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
18969         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
18970         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
18971         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
18972         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18973         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
18974         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
18975         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
18977 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
18979         * config/xtensa/constraints.md (define_constraint "Y"): New
18980         constraint.
18981         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
18982         * config/xtensa/linux.h (ASM_SPEC): Likewise.
18983         * config/xtensa/predicates.md (move_operand): Match constants
18984         and symbols in the presence of TARGET_AUTO_LITPOOLS.
18985         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
18986         immediate references to TLS data.
18987         (xtensa_emit_move_sequence): Don't force constants to memory in
18988         the presence of TARGET_AUTO_LITPOOLS.
18989         (print_operand): Add 'y' format, same as default, but capable of
18990         printing SF mode constants as well.
18991         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
18992         (movsf_internal): Add movi pattern that loads literal.
18993         (movsf, movdf): Don't force constants to memory in the presence
18994         of TARGET_AUTO_LITPOOLS.
18995         (movdf_internal): Add 'Y' constraint.
18996         * config/xtensa/xtensa.opt (mauto-litpools): New option.
18997         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
18999 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
19001         * config/arm/arm-fpus.def: Replace booleans with feature flags.
19002         Update comment.
19003         * config/arm/arm.c (ARM_FPU): Update macro.
19004         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
19005         (TARGET_FP16): Likewise.
19006         (TARGET_CRYPTO): Likewise.
19007         (TARGET_NEON): Likewise.
19008         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
19009         field features.
19011 2015-08-12  Tom de Vries  <tom@codesourcery.com>
19013         PR other/67092
19014         PR other/67098
19015         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
19016         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
19017         accordingly.  Mention default for --with-stage1-ldflags.
19019 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
19021         * config/arm/arm.h (arm_fpu_feature_set): New.
19022         (ARM_FPU_FSET_HAS): New.
19023         (FPU_FL_NONE): New.
19024         (FPU_FL_NEON): New.
19025         (FPU_FL_FP16): New.
19026         (FPU_FL_CRYPTO): New.
19028 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19030         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
19031         after -mcmodel=large -fPIC sorry.
19033 2015-08-12  Richard Biener  <rguenther@suse.de>
19035         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
19036         comparison operand order and commutative ternary op operand order.
19037         (sccvn_dom_walker::cond_stack): New state to track temporary
19038         expressions.
19039         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
19040         no longer valid.
19041         (sccvn_dom_walker::record_cond): Add a single temporary conditional
19042         expression.
19043         (sccvn_dom_walker::record_conds): Add a temporary conditional
19044         expressions and all related expressions also true/false.
19045         (sccvn_dom_walker::before_dom_children): Record temporary
19046         expressions based on the controlling condition of a single
19047         predecessor.  When trying to simplify a conditional statement
19048         lookup expressions we might have inserted earlier.
19050 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
19052         PR target/67127
19053         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
19054         to ARM core registers.
19056 2015-08-12  Nathan Sidwell  <nathan@acm.org>
19058         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
19059         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
19061 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
19063         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
19064         line with comments.
19065         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
19067 2015-08-12  Richard Biener  <rguenther@suse.de>
19069         * gimple.h (remove_pointer): New trait.
19070         (GIMPLE_CHECK2): New inline template function.
19071         (gassign::code_): New constant static member.
19072         (is_a_helper<const gassign *>): Add.
19073         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
19074         and forward to a new gassign overload with less checking and a
19075         cheaper way to access the operand.
19076         (gimple_assign_lhs_ptr): Likewise.
19077         (gimple_assign_set_lhs): Likewise.
19078         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
19079         Likewise.
19080         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
19081         Likewise.
19082         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
19083         Likewise.
19084         (gimple_assign_rhs_code): Likewise.
19085         * gimple.c (gassign::code_): Define.
19087 2015-08-12  Richard Biener  <rguenther@suse.de>
19089         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19090         Eliminate edges marked as not executable by SCCVN.
19091         * tree-ssa-sccvn.c: Include gimple-iterator.h.
19092         (cond_dom_walker): Rename to sccvn_dom_walker.
19093         (sccvn_dom_walker::before_dom_children): Value-number defs
19094         of all stmts.
19095         (run_scc_vn): Remove loop value-numbering all SSA names.
19096         Drop not visited SSA names to varying.
19098 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
19100         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
19101         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
19102         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
19103         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
19104         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19105         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19106         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
19107         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
19108         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
19110 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
19112         PR target/66954
19113         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
19114         to enum feature_priority and feature_list.
19115         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
19116         and isa_names_table.
19118 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
19120         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
19121         vect_induction_def.
19123 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19125         PR c/66098
19126         PR c/66711
19127         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
19128         account when deciding what was the command-line status.
19130 2015-08-11  Nathan Sidwell  <nathan@acm.org>
19132         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
19134         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
19135         we're not the only contributor to target phi.
19137 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
19139         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
19140         FIXED_REG0.
19142 2015-08-11  Tom de Vries  <tom@codesourcery.com>
19144         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
19146 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
19148         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
19149         with CPU_SLM.
19150         * config/i386/i386.md (cpu): Remove knl.
19152 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
19154         PR libgomp/65742
19155         PR middle-end/66332
19156         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
19157         open-coded sequence.
19158         * omp-low.c (oacc_process_reduction_data): Remove handline of
19159         GOMP_DEVICE_HOST_NONSHM.
19161         * lto-streamer-in.c (lto_input_mode_table): Adjust to
19162         GET_MODE_INNER changes.
19164 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
19165             Ilya Verbin  <ilya.verbin@intel.com>
19167         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
19169 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19171         * doc/options.texi (EnabledBy): Document that the argument must be
19172         a Common option.
19173         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
19174         Not enabled by -Wall.
19175         * optc-gen.awk: Give nicer error messages. Detect if the argument
19176         of EnabledBy is not a Common option.
19177         * common.opt (Wnull-dereference): Not enabled by -Wall.
19178         * opt-functions.awk (lang_enabled_by): Nicer error messages.
19180 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
19182         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
19183         model == 0x4f as Broadwell.
19185 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
19187         PR rtl-optimization/67028
19188         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
19189         Add test to see if a const_int fits in the new mode.
19191 2015-08-07  DJ Delorie  <dj@redhat.com>
19193         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
19195 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
19197         PR rtl-optimization/67029
19198         * ira-color.c: Include "recog.h" before including "ira-int.h".
19199         * target-globals.c: Likewise.
19200         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
19201         adds an alternative_mask argument and use it instead of
19202         preferred_alternatives.
19203         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
19204         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
19205         * sched-deps.c: Include "ira-int.h" after including "ira.h".
19206         (sched_analyze_insn): Update call to
19207         ira_implicitly_set_insn_hard_regs.
19208         * sel-sched.c: Include "ira-int.h" after including "ira.h".
19209         (implicit_clobber_conflict_p): Update call to
19210         ira_implicitly_set_insn_hard_regs.
19212 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
19214         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
19216 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
19218         PR target/67002
19219         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
19220         currently_expanding_to_rtl is set.
19222 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
19224         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
19225         * configure: Regenerate.
19227 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19228             Jiong Wang  <jiong.wang@arm.com>
19230         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
19231         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
19232         (REG_CLASS_NAMES): Likewise.
19233         (REG_CLASS_CONTENTS): Likewise.
19234         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
19235         (aarch64_register_move_cost): Likewise.
19236         (aarch64_load_symref_appropriately): Invoke the new added pattern if
19237         possible.
19238         * config/aarch64/constraints.md (Uc0): New constraint.
19240 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
19242         * config/aarch64/constraints.md (Usf): Add the test of
19243         aarch64_is_noplt_call_p.
19245 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
19247         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
19248         declaration.
19249         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
19250         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
19251         (call_symbol): Likewise.
19253 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
19255         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
19256         for vectorizing multiplication patterns.
19257         * tree-vectorizer.h: Adjust the number of patterns.
19259 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
19261         * config/i386/sse.md (*vec_concatv2df): Declare added
19262         alternatives as sselog type.
19264 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19266         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
19267         all GPRs.
19269 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19271         * config/s390/s390.c (s390_expand_tbegin): Expand either
19272         tbegin_1_z13 or tbegin_1 depending on VX flag.
19273         * config/s390/s390.md ("tbegin_1_z13"): New expander.
19275 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19277         * config/s390/s390.opt: Clarify description for -mzvector
19278         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
19279         -mzvector.
19281 2015-08-06  Richard Biener  <rguenther@suse.de>
19283         * gimple.h (gimple_call_set_fn): Access op member directly.
19284         (gimple_call_chain_ptr): Likewise.
19285         (gimple_call_set_chain): Likewise.
19286         (gimple_cond_lhs_ptr): Likewise.
19287         (gimple_cond_set_lhs): Likewise.
19288         (gimple_cond_rhs_ptr): Likewise.
19289         (gimple_cond_set_rhs): Likewise.
19290         (gimple_cond_true_label): Likewise.
19291         (gimple_cond_set_true_label): Likewise.
19292         (gimple_cond_set_false_label): Likewise.
19293         (gimple_cond_false_label): Likewise.
19294         (gimple_label_label): Likewise.
19295         (gimple_label_set_label): Likewise.
19296         (gimple_goto_set_dest): Likewise.
19297         (gimple_asm_input_op): Likewise.
19298         (gimple_asm_input_op_ptr): Likewise.
19299         (gimple_asm_set_input_op): Likewise.
19300         (gimple_asm_output_op): Likewise.
19301         (gimple_asm_output_op_ptr): Likewise.
19302         (gimple_asm_set_output_op): Likewise.
19303         (gimple_asm_clobber_op): Likewise.
19304         (gimple_asm_set_clobber_op): Likewise.
19305         (gimple_asm_label_op): Likewise.
19306         (gimple_asm_set_label_op): Likewise.
19307         (gimple_switch_index): Likewise.
19308         (gimple_switch_index_ptr): Likewise.
19309         (gimple_return_retval_ptr): Likewise.
19310         (gimple_return_retval): Likewise.
19311         (gimple_return_set_retval): Likewise.
19312         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
19313         (gimple_switch_label): Likewise.
19314         (gimple_switch_set_label): Likewise.
19316 2015-08-06  Richard Biener  <rguenther@suse.de>
19318         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
19319         bool comparison canonicalization and restrict to integers.
19321 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
19323         * coretypes.h (enum symbol_visibility): Relocate here.
19324         * flag-types.h (enum symbol_visibility): Remove.
19325         * tree-core.h (enum symbol_visibility): Remove.
19327 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
19329         PR target/66870
19330         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
19331         for no_split_stack function attribute along with
19332         flag_split_stack.
19333         (rs6000_expand_split_stack_prologue): Likewise.
19335 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19336             Jeff Law  <law@redhat.com>
19338         PR c/16351
19339         * doc/invoke.texi (Wnull-dereference): New.
19340         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
19341         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
19342         Warn for potential NULL dereferences.
19343         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
19344         * ubsan.c (instrument_nonnull_arg): Call
19345         infer_nonnull_range_by_attribute.
19346         (instrument_nonnull_return): Likewise.
19347         * common.opt (Wnull-dereference); New.
19348         * gimple.c (infer_nonnull_range): Remove bool arguments.
19349         (infer_nonnull_range_by_dereference): New.
19350         (infer_nonnull_range_by_attribute): New.
19351         * gimple.h: Update declarations.
19353 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
19355         * gensupport.c (sequence_num): Replace with...
19356         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
19357         ...these new variables.
19358         (init_rtx_reader_args_cb): Update accordingly.
19359         (get_num_code_insns): Likewise.
19360         (read_md_rtx): Rework to use a while loop and get_c_test.
19361         Use the new counters.  Remove redundant DEFINE_SUBST case.
19362         * genoutput.c (gen_split): Delete.
19363         (main): Don't call it.
19365 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
19367         * gensupport.h (get_c_test): Declare.
19368         * gensupport.c (get_c_test): New function.
19369         * genconditions.c (main): Use it.
19370         * genrecog.c (validate_pattern): Likewise.
19371         (match_pattern_1): Likewise.  Remove c_test argument.
19372         (match_pattern): Update accordingly and remove c_test argument.
19373         (main): Update accordingly.
19375 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
19377         * gensupport.h (get_num_insn_codes): Declare.
19378         * gensupport.c (get_num_insn_codes): New function.
19379         * genattrtab.c (optimize_attrs): Rename max_insn_code to
19380         num_insn_codes.
19381         (main): Likewise.  Use get_num_insn_codes.
19382         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
19384 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
19386         PR middle-end/66311
19387         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
19388         is zero- rather than sign-extended.
19390 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
19392         * target-insns.def (can_extend): Delete.
19394 2015-08-05  Richard Biener  <rguenther@suse.de>
19396         PR tree-optimization/67121
19397         * tree-if-conv.c (combine_blocks): Clear range-info produced
19398         by stmts no longer executed conditionally.
19400 2015-08-05  Nick Clifton  <nickc@redhat.com>
19402         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
19403         to allow identical far pointers to remain.
19405 2015-08-05  Richard Biener  <rguenther@suse.de>
19407         PR middle-end/67120
19408         * match.pd: Compare address bases with == if they are decls
19409         or SSA names, not operand_equal_p.  Otherwise fail.
19411 2015-08-05  Richard Biener  <rguenther@suse.de>
19413         PR tree-optimization/67055
19414         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
19415         NULL gimple_block.
19417         * g++.dg/torture/pr67055.C: New testcase.
19419 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
19421         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
19422         noavx512vl.
19423         (define_attr "enabled"): Handle avx521vl and noavx512vl.
19424         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
19425         AVX-512 alternative out of SSE.
19426         (define_insn "*vec_concatv2df"): Ditto.
19428 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
19430         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
19431         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
19432         CODE_FOR_avx_ptestv4di.
19433         * config/i386/sse.md (define_mode_iterator V_AVX): New.
19434         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
19435         (define_insn "avx_ptest256"): Merge this ...
19436         (define_insn "sse4_1_ptest"): And this ...
19437         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
19439 2015-08-05  Richard Biener  <rguenther@suse.de>
19441         PR tree-optimization/67109
19442         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
19443         against too big groups.  Print whether this is a load or store
19444         group.  Rename from ...
19445         (vect_analyze_group_access): ... this which is now a wrapper
19446         dissolving an invalid group.
19447         (vect_analyze_data_ref_accesses): Print whether this is a load
19448         or store group.
19450 2015-08-05  Richard Biener  <rguenther@suse.de>
19452         PR middle-end/67107
19453         * match.pd: Guard const_binop result checking against NULL_TREE
19454         result.
19456 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
19458         * cse.c (cse_insn): Restoring old behaviour for src_eqv
19459          when dest and value in the REG_EQUAL are same and dest
19460          is STRICT_LOW_PART.
19462 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
19464         * config/moxie/moxie.h (PRINT_OPERAND,
19465           PRINT_OPERAND_ADDRESS): Remove macros.
19466         * config/moxie/moxie-protos.h (moxie_print_operand,
19467           moxie_print_operand_address): Remove declaration.
19468         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
19469           TARGET_PRINT_OPERAND_ADDRESS): Define.
19470           (moxie_print_operand, moxie_print_operand_address): Make static.
19472 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19474         PR target/66731
19475         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
19476         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
19478 2015-08-04  Richard Biener  <rguenther@suse.de>
19480         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
19481         generated code.
19482         (dt_operand::gen_gimple_expr): Adjust.
19484 2015-08-04  Richard Biener  <rguenther@suse.de>
19486         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
19487         bool compares on RHS.
19488         * match.pd: Add X ==/!= !X is false/true pattern.
19490 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
19492         * config/aarch64/aarch64.c: Change inner loop statement cost
19493         to be consistent with other targets.
19495 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
19497         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
19498         targets.
19500 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
19502         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
19503         (machine_function): Remove pseudos field.
19505 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19507         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
19508         Exit early and use target_option_current_node if processing current
19509         pragma.
19511 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19513         * doc/extend.texi (AArch64 Function Attributes): New node.
19514         (AArch64 Pragmas): Likewise.
19516 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19518         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
19519         Initialize simd builtins if TARGET_SIMD.
19520         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
19521         Make sure that the builtins are initialized only once no matter how
19522         many times the function is called.
19523         (aarch64_init_builtins): Unconditionally initialize crc builtins.
19524         (aarch64_relayout_simd_param): New function.
19525         (aarch64_simd_expand_args): Use above during argument expansion.
19526         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
19527         simd builtins if TARGET_SIMD.
19528         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
19529         prototype.
19530         (aarch64_relayout_simd_types): Likewise.
19532 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19534         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
19535         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
19536         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
19537         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
19538         static keyword.
19539         (aarch64_reset_previous_fndecl): New function.
19540         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
19541         the string.
19542         * config/aarch64/aarch64-c.c: New file.
19543         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
19544         Push and pop options at beginning and end.  Remove ifdef
19545         __ARM_FEATURE_CRC32.
19546         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
19547         Add pragma +nothing+simd and +nothing+crypto where appropriate.
19548         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
19549         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
19550         Define prototype.
19551         (aarch64_register_pragmas): Likewise.
19552         (aarch64_reset_previous_fndecl): Likewise.
19553         (aarch64_process_target_attr): Likewise.
19554         (aarch64_override_options_internal): Likewise.
19556 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19558         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
19559         New function.
19560         (aarch64_can_inline_p): Likewise.
19561         (TARGET_CAN_INLINE_P): Define.
19563 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19565         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
19566         Remove static.  Handle OPT_mgeneral_regs_only,
19567         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
19568         OPT_momit_leaf_frame_pointer.
19569         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
19570         (aarch64_attr_opt_type): New enum.
19571         (aarch64_attribute_info): New struct.
19572         (aarch64_handle_attr_arch): New function.
19573         (aarch64_handle_attr_cpu): Likewise.
19574         (aarch64_handle_attr_tune): Likewise.
19575         (aarch64_handle_attr_isa_flags): Likewise.
19576         (aarch64_attributes): New table.
19577         (aarch64_process_one_target_attr): New function.
19578         (num_occurences_in_str): Likewise.
19579         (aarch64_process_target_attr): Likewise.
19580         (aarch64_option_valid_attribute_p): Likewise.
19581         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
19582         * config/aarch64/aarch64-protos.h: Include input.h
19583         (aarch64_handle_option): Declare prototype.
19585 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19587         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
19588         * config/aarch64/aarch64.c: Include target-globals.h
19589         (aarch64_previous_fndecl): New variable.
19590         (aarch64_set_current_function): New function.
19591         (TARGET_SET_CURRENT_FUNCTION): Define.
19593 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19595         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
19596         (explicit_arch): Likewise.
19597         (x_aarch64_isa_flags): Likewise.
19598         (mgeneral-regs-only): Mark as Save.
19599         (mfix-cortex-a53-835769): Likewise.
19600         (mcmodel=): Likewise.
19601         (mstrict-align): Likewise.
19602         (momit-leaf-frame-pointer): Likewise.
19603         (mtls-dialect): Likewise.
19604         (master=): Likewise.
19605         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
19606         (aarch64_isa_flags): Remove extern declaration.
19607         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
19608         to indicate success or failure.
19609         (aarch64_validate_march): Likewise.
19610         (aarch64_validate_mtune): Likewise.
19611         (aarch64_isa_flags): Delete.
19612         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
19613         instead of aarch64_isa_flags.
19614         (aarch64_get_tune_cpu): New function.
19615         (aarch64_get_arch): Likewise.
19616         (aarch64_override_options): Use above and set up explicit_tune_core
19617         and explicit_arch.
19618         (aarch64_print_extension): Move earlier in file.  Add isa_flags
19619         argument and use that instead of the global aarch64_isa_flags.
19620         (aarch64_option_save): New function.
19621         (aarch64_option_restore): Likewise.
19622         (aarch64_option_print): Likewise.
19623         (aarch64_declare_function_name): Likewise.
19624         (aarch64_start_file): Delete.
19625         (TARGET_ASM_FILE_START): Do not define.
19626         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
19627         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
19628         Declare prototype.
19630 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19632         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
19633         flag_omit_leaf_frame_pointer to 2.
19635 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19637         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
19638         define to 0 or 1.
19639         (TARGET_FIX_ERR_A53_835769): New macro.
19640         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
19641         handling of opts->x_aarch64_fix_a53_err835769.
19642         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
19643         than aarch64_fix_a53_err835769.
19644         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
19645         * config/aarch64/aarch64-linux.h: Likewise.
19647 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
19649         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
19650         ix86_expand_int_movcc as boolean.
19652 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19654         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
19655         (aarch64_cpu_string): Likewise.
19656         (aarch64_tune_string): Likewise.
19657         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
19658         (aarch64_parse_extension): Return aarch64_parse_opt_result.
19659         Add extra argument to put result into.
19660         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
19661         (aarch64_parse_cpu): Add arguments to put results into. Return
19662         aarch64_parse_opt_result.
19663         (aarch64_parse_tune): Likewise.
19664         (aarch64_override_options_after_change_1): New function.
19665         (aarch64_override_options_internal): New function.
19666         (aarch64_validate_mcpu): Likewise.
19667         (aarch64_validate_march): Likewise.
19668         (aarch64_validate_mtune): Likewise.
19669         (aarch64_override_options): Update to reflect above changes.
19670         Move some logic into aarch64_override_options_internal.
19671         Initialize target_option_default_node and target_option_current_node.
19672         (aarch64_override_options_after_change): Move logic into
19673         aarch64_override_options_after_change_1 and call it with global_options.
19674         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
19675         flag values from that.
19677 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19679         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
19680         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
19681         * config/aarch64/aarch64.c (struct processor): Add arch field.
19682         (all_architectures): Handle above, move above all_cores.
19683         (all_cores): Handle above.
19684         (aarch64_parse_arch): Handle above changes.
19685         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
19686         above.  Update comments.
19687         (armv8.1-a): Likewise.
19688         * config/aarch64/aarch64-cores.def: Update according to above.
19689         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
19690         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
19691         aarch64_arch_driver_info.
19693 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19695         * config/aarch64/aarch64.c (struct processor): Add ident field.
19696         Rename core sched_core.
19697         (all_cores): Handle above changes.
19698         (all_architectures): Likewise.
19699         (aarch64_parse_arch): Likewise.
19700         (aarch64_override_options): Likewise.
19702 2015-08-04  Richard Biener  <rguenther@suse.de>
19704         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
19705         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
19706         comparisons embedded in [VEC_]COND_EXPRs.
19708 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
19710         * tree-if-conv.c: Fix various typos in comments.
19711         * tree-vect-stmts.c: Likewise.
19713 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19715         PR tree-optimization/67043
19716         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
19717         preheader after hoisting invariant in it.
19718         (find_defs): Force recomputation of all luids.
19720 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
19722         * config/rs6000/htm.md (tabort.): Restrict the source operand to
19723         using a base register.
19725 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
19727         * main.c (main): Pass in NULL for toplev's external_timer.
19728         * timevar.c: Include coretypes.h.
19729         (class timer::named_items): New.
19730         (timer::named_items::named_items): New.
19731         (timer::named_items::~named_items): New.
19732         (timer::named_items::push): New.
19733         (timer::named_items::pop): New.
19734         (timer::named_items::print): New.
19735         (timer::timer): Initialize field "m_jit_client_items".
19736         (timer::~timer): New.
19737         (timer::push): Move bulk of implementation to...
19738         (timer::push_internal): ...here.  New function.
19739         (timer::pop): Move bulk of implementation to...
19740         (timer::pop_internal): ...here.  New function.
19741         (timer::push_client_item): New.
19742         (timer::pop_client_item): New.
19743         (timer::print_row): New function, taken from timer::print.
19744         (timer::print): Print "GCC items" header if we also have client
19745         items.  Move row-printing to timer::print_row.  Print any client
19746         items.
19747         (timer::get_topmost_item_name): New method.
19748         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
19749         (TV_JIT_CLIENT_CODE): New.
19750         * timevar.h (timer::push_client_item): New declaration.
19751         (timer::pop_client_item): New declaration.
19752         (timer::get_topmost_item_name): New method.
19753         (timer::push_internal): New declaration.
19754         (timer::pop_internal): New declaration.
19755         (timer::print_row): New declaration.
19756         (timer::named_items): New declaration.
19757         (timer::m_jit_client_items): New field.
19758         (timer): Add friend class named_items.
19759         (auto_timevar::auto_timevar): Add timer param.
19760         (auto_timevar::~auto_timevar): Use field "m_timer".
19761         (auto_timevar::m_timer): New field.
19762         * toplev.c (initialize_rtl): Add g_timer as param when
19763         constructing auto_timevar instance.
19764         (toplev::toplev): Add "external_timer" param, and use it to
19765         initialize the "g_timer" global if non-NULL.
19766         (toplev::~toplev): If this created "g_timer", delete it.
19767         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
19768         with "external_timer" timer *.
19770 2015-08-03  Alexander Basov <coohpt@gmail.com>
19772         PR middle-end/64744
19773         PR middle-end/48470
19774         PR middle-end/43404
19775         * cfgexpand.c (expand_one_var): Add check if stack is going to
19776         be used in naked function.
19777         * expr.c (expand_expr_addr_expr_1): Remove excess checking
19778         whether expression should not reside in MEM.
19779         * function.c (use_register_for_decl): Do not use registers for
19780         non-register things (volatile, float, BLKMode) in naked functions.
19782 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
19784         PR target/67060
19785         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
19786         Adjust splits to match new pattern.
19788 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
19790         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
19791         (VEC_M): Likewise.
19792         (VEC_N): Likewise.
19793         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
19794         point in VSX registers.
19796         * config/rs6000/constraints.md (wb constraint): Document unused
19797         w<x> constraint.
19798         (we constraint): Likewise.
19799         (wo constraint): Likewise.
19800         (wp constraint): New constraint for IEEE 128-bit floating point in
19801         VSX registers.
19802         (wq constraint): Likewise.
19804         * config/rs6000/predicates.md (easy_fp_constant): Add support for
19805         IEEE 128-bit floating point in VSX registers.
19806         (easy_scalar_constant): Likewise.
19808         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
19809         constraints (wp, wq) for IEEE 128-bit floating point in VSX
19810         registers.
19811         (rs6000_init_hard_regno_mode_ok): Likewise.
19813         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
19814         floating point in VSX registers.
19815         (VSX_L): Likewise.
19816         (VSX_M): Likewise.
19817         (VSX_M2): Likewise.
19818         (VSm): Likewise.
19819         (VSs): Likewise.
19820         (VSr): Likewise.
19821         (VSa): Likewise.
19822         (VSv): Likewise.
19823         (vsx_le_permute_<mode>): Add support to properly swap bytes for
19824         IEEE 128-bit floating point in VSX registers on little endian.
19825         (vsx_le_undo_permute_<mode>): Likewise.
19826         (vsx_le_perm_load_<mode>): Likewise.
19827         (vsx_le_perm_store_<mode>): Likewise.
19828         (splitters for IEEE 128-bit fp moves): Likewise.
19830         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
19831         wq constraints.
19833         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
19834         floating point in VSX registers.
19835         (VM2): Likewise.
19837         * doc/md.text (Machine Constraints): Document wp and wq
19838         constraints on PowerPC.
19840 2015-08-03  Jeff Law  <law@redhat.com>
19842         PR middle-end/66314
19843         PR gcov-profile/66899
19844         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
19845         iterate over the jump threading paths when an element in the
19846         jump threading paths array is eliminated.
19848 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
19850         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
19852 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
19854         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
19855         is_use_properly_guarded the variable def_preds.  Free its
19856         contents before returning.
19857         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
19858         (is_use_properly_guarded): Replace local variable def_preds with
19859         a parameter.  Adjust accordingly.  Only update *def_preds if it's
19860         the empty vector.
19862 2015-08-03  Richard Biener  <rguenther@suse.de>
19864         * genmatch.c (simplify::for_subst_vec): New member.
19865         (binary_ok): New helper for for lowering.
19866         (lower_for): Delay substituting operators into result expressions
19867         if we can merge the results eventually again.
19868         (capture_info::walk_result): Adjust for user_id appearing as
19869         result expression operator.
19870         (expr::gen_transform): Likewise.
19871         (dt_simplify::gen_1): Likewise.
19872         (dt_simplify::gen): Pass not substituted operators to tail
19873         functions or initialize local variable with it.
19874         (decision_tree::gen): Adjust function signature.
19875         * match.pd: Fix tests against global code and add default
19876         cases to switch stmts.
19878 2015-08-03  Richard Biener  <rguenther@suse.de>
19880         * genmatch.c (dt_simplify::gen): Create captures array
19881         with an initializer.
19883 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19885         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
19886         the host compiler is affected by placement new aliasing bug.
19887         * configure: Regenerate.
19888         * Makefile.in (ALIASING_FLAGS): New variable.
19889         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
19891 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19893         PR target/66731
19894         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
19895         (negmulsf3_vfp): Likewise.
19896         (muldf3negdf_vfp): Disable for -frounding-math.
19897         (mulsf3negsf_vfp): Likewise.
19898         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
19899         fix MULT cost with -frounding-math.
19901 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19903         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
19904         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
19905         explicit.  Prefer to add the flag whenever possible.
19906         (noce_process_if_block): Try noce_try_store_flag_constants before
19907         noce_try_cmove.
19909 2015-08-03  Richard Biener  <rguenther@suse.de>
19911         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
19912         New hash-map to record equivalent transforms.
19913         (dt_node::analyze): Populate the equivalent transforms hash-map.
19914         (dt_simplify::info): Add reference to hash-map entry.
19915         (dt_simplify::gen): If we have split out a function for the
19916         transform, generate a call to it.
19917         (sinfo_hashmap_traits::hash): New function.
19918         (compare_op): New helper function for ...
19919         (sinfo_hashmap_traits::equal_keys): ... this new function.
19920         (decision_tree::gen): Split out common equivalent transforms
19921         into functions.
19923 2015-08-03  Richard Biener  <rguenther@suse.de>
19925         * gimple-fold.c (fold_gimple_assign): Remove folding of
19926         the comparison in COND_EXPRs.
19928 2015-08-03  Richard Biener  <rguenther@suse.de>
19930         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
19931         on the rhs of assignments first simplify the embedded
19932         GENERIC condition.
19934 2015-08-03  Richard Biener  <rguenther@suse.de>
19936         PR tree-optimization/66917
19937         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
19938         field.
19939         (DR_VECT_AUX): New macro.
19940         (set_dr_misalignment): Adjust.
19941         (dr_misalignment): Likewise.
19942         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19943         Compute whether the base is at least element aligned.
19944         * tree-vect-stmts.c (ensure_base_align): Adjust.
19945         (vectorizable_store): If the base is not element aligned
19946         preserve alignment of the original access if misalignment is unknown.
19947         (vectorizable_load): Likewise.
19949 2015-08-02  Martin Sebor  <msebor@redhat.com>
19951         * doc/invoke.texi (Wframe-address): Document it.
19952         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
19953         Clarify possible effects of calling the functions with non-zero
19954         arguments and mention -Wframe-address.
19955         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
19957 2015-08-01  Michael Collison  <michael.collison@linaro.org
19958             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19960         * config/arm/arm.md (*arm_smin_cmp): New pattern.
19961         (*arm_umin_cmp): Likewise.
19963 2015-08-01  Caroline Tice  <cmtice@google.com>
19965         PR 66521
19966         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
19967         global variables.
19968         (vtbl_find_mangled_name):  New function.
19969         (vtbl_register_mangled_name):  New function.
19970         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
19971         mangled name in mangled name vectors.
19972         (find_or_create_vtbl_map_node):  Ditto.
19973         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
19974         update recursion_depth on function entry; pass it to every recursive
19975         call; automatically exit if depth > 25 (give up looking at that point).
19976         (verify_bb_vtables):  Initialize recursion_depth and pass it to
19977         var_is_used_for_virtual_call_p.
19978         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
19979         global variable decls.
19980         (vtbl_register_mangled_name): New extern function decl.
19982 2015-08-01  Tom de Vries  <tom@codesourcery.com>
19984         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
19985         function.
19986         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
19987         Declare.
19988         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
19989         operation_no_trapping_overflow.  Allow non-overflow operations.
19990         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
19991         operations.
19993 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
19995         PR target/67049
19996         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
19998 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20000         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
20001         Enable for TARGET_32BIT.
20002         (*if_move_neg): Likewise.
20004 2015-07-31  Nick Clifton  <nickc@redhat.com>
20006         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
20007         Returns true for __model__.
20008         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
20010 2015-07-31  Alan Modra  <amodra@gmail.com>
20012         PR target/66870
20013         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
20014         (rs6000_emit_prologue): Set it.
20015         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
20017 2015-07-31  Richard Biener  <rguenther@suse.de>
20019         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
20020         -> X == (C1 ^ C2) which is already implemented in match.pd.
20021         Remove redundant dispatching to fold_relational_const.
20022         Move unordered self and NaN compares ...
20023         * match.pd: ... as patterns here.  Remove some stray captures
20024         and add a comment.
20026 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
20028         * config/i386/i386.c
20029         (bdesc_special_args): Convert mask type from signed to unsigned for
20030         masked builtins.
20031         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
20032         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
20033         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
20034         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
20035         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
20036         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
20037         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
20038         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
20039         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
20040         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
20041         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
20042         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
20043         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
20044         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
20045         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
20046         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
20047         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
20048         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
20049         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
20050         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
20051         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
20052         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
20053         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
20054         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
20055         * config/i386/i386-builtin-types.def
20056         (V16QI_FTYPE_V16SI): Remove.
20057         (V8DF_FTYPE_V8SI): Ditto.
20058         (V8HI_FTYPE_V8DI): Ditto.
20059         (V8SI_FTYPE_V8DI): Ditto.
20060         (V8SF_FTYPE_V8DF): Ditto.
20061         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
20062         (V16HI_FTYPE_V16SI): Ditto.
20063         (V16SF_FTYPE_V16HI): Ditto.
20064         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
20065         (V16SF_FTYPE_V16SI): Ditto.
20066         (V4DI_FTYPE_V4DI): Ditto.
20067         (V16SI_FTYPE_V16SF): Ditto.
20068         (V16SF_FTYPE_FLOAT): Ditto.
20069         (V8DF_FTYPE_DOUBLE): Ditto.
20070         (V8DI_FTYPE_INT64): Ditto.
20071         (V8DI_FTYPE_V4DI): Ditto.
20072         (V16QI_FTYPE_V8DI): Ditto.
20073         (UINT_FTYPE_V4SF): Ditto.
20074         (UINT64_FTYPE_V4SF): Ditto.
20075         (UINT_FTYPE_V2DF): Ditto.
20076         (UINT64_FTYPE_V2DF): Ditto.
20077         (V16SI_FTYPE_V16SI): Ditto.
20078         (V8DI_FTYPE_V8DI): Ditto.
20079         (V16SI_FTYPE_PV4SI): Ditto.
20080         (V16SF_FTYPE_PV4SF): Ditto.
20081         (V8DI_FTYPE_PV2DI): Ditto.
20082         (V8DF_FTYPE_PV2DF): Ditto.
20083         (V4DI_FTYPE_PV2DI): Ditto.
20084         (V4DF_FTYPE_PV2DF): Ditto.
20085         (V16SI_FTYPE_PV2SI): Ditto.
20086         (V16SF_FTYPE_PV2SF): Ditto.
20087         (V8DI_FTYPE_PV4DI): Ditto.
20088         (V8DF_FTYPE_PV4DF): Ditto.
20089         (V8SF_FTYPE_FLOAT): Ditto.
20090         (V4SF_FTYPE_FLOAT): Ditto.
20091         (V4DF_FTYPE_DOUBLE): Ditto.
20092         (V8SF_FTYPE_PV4SF): Ditto.
20093         (V8SI_FTYPE_PV4SI): Ditto.
20094         (V4SI_FTYPE_PV2SI): Ditto.
20095         (V8SF_FTYPE_PV2SF): Ditto.
20096         (V8SI_FTYPE_PV2SI): Ditto.
20097         (V16SF_FTYPE_PV8SF): Ditto.
20098         (V16SI_FTYPE_PV8SI): Ditto.
20099         (V8DI_FTYPE_V8SF): Ditto.
20100         (V4DI_FTYPE_V4SF): Ditto.
20101         (V2DI_FTYPE_V4SF): Ditto.
20102         (V64QI_FTYPE_QI): Ditto.
20103         (V32HI_FTYPE_HI): Ditto.
20104         (V8UHI_FTYPE_V8UHI): Ditto.
20105         (V16UHI_FTYPE_V16UHI): Ditto.
20106         (V32UHI_FTYPE_V32UHI): Ditto.
20107         (V2UDI_FTYPE_V2UDI): Ditto.
20108         (V4UDI_FTYPE_V4UDI): Ditto.
20109         (V8UDI_FTYPE_V8UDI): Ditto.
20110         (V4USI_FTYPE_V4USI): Ditto.
20111         (V8USI_FTYPE_V8USI): Ditto.
20112         (V16USI_FTYPE_V16USI): Ditto.
20113         (V2DF_FTYPE_V2DF_UINT64): Ditto.
20114         (V2DI_FTYPE_V2DF_V2DF): Ditto.
20115         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
20116         (V8DF_FTYPE_V8DF_V8DI): Ditto.
20117         (V4SF_FTYPE_V4SF_UINT64): Ditto.
20118         (V4SI_FTYPE_V4SF_V4SF): Ditto.
20119         (V16SF_FTYPE_V16SF_V16SI): Ditto.
20120         (V64QI_FTYPE_V32HI_V32HI): Ditto.
20121         (V32HI_FTYPE_V16SI_V16SI): Ditto.
20122         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
20123         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
20124         (V32HI_FTYPE_V64QI_V64QI): Ditto.
20125         (V32HI_FTYPE_V32HI_V32HI): Ditto.
20126         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
20127         (V16SI_FTYPE_V16SI_V4SI): Ditto.
20128         (V16SI_FTYPE_V16SI_V16SI): Ditto.
20129         (V16SI_FTYPE_V32HI_V32HI): Ditto.
20130         (V16SI_FTYPE_V16SI_SI): Ditto.
20131         (V8DI_FTYPE_V8DI_V8DI): Ditto.
20132         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
20133         (V8DI_FTYPE_V16SI_V16SI): Ditto.
20134         (V8DI_FTYPE_V8DI_V2DI): Ditto.
20135         (QI_FTYPE_QI): Ditto.
20136         (SI_FTYPE_SI): Ditto.
20137         (DI_FTYPE_DI): Ditto.
20138         (QI_FTYPE_QI_QI): Ditto.
20139         (QI_FTYPE_QI_INT): Ditto.
20140         (HI_FTYPE_HI_INT): Ditto.
20141         (SI_FTYPE_SI_INT): Ditto.
20142         (DI_FTYPE_DI_INT): Ditto.
20143         (HI_FTYPE_V16QI_V16QI): Ditto.
20144         (SI_FTYPE_V32QI_V32QI): Ditto.
20145         (DI_FTYPE_V64QI_V64QI): Ditto.
20146         (QI_FTYPE_V8HI_V8HI): Ditto.
20147         (HI_FTYPE_V16HI_V16HI): Ditto.
20148         (SI_FTYPE_V32HI_V32HI): Ditto.
20149         (QI_FTYPE_V4SI_V4SI): Ditto.
20150         (QI_FTYPE_V8SI_V8SI): Ditto.
20151         (QI_FTYPE_V2DI_V2DI): Ditto.
20152         (QI_FTYPE_V4DI_V4DI): Ditto.
20153         (QI_FTYPE_V8DI_V8DI): Ditto.
20154         (HI_FTYPE_V16SI_V16SI): Ditto.
20155         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
20156         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
20157         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
20158         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
20159         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
20160         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
20161         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
20162         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
20163         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
20164         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
20165         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
20166         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
20167         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
20168         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
20169         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
20170         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
20171         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
20172         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
20173         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
20174         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
20175         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
20176         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
20177         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
20178         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
20179         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
20180         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
20181         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
20182         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
20183         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
20184         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
20185         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
20186         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
20187         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
20188         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
20189         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
20190         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
20191         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
20192         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
20193         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
20194         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
20195         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
20196         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
20197         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
20198         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
20199         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
20200         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
20201         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
20202         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
20203         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
20204         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
20205         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
20206         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
20207         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
20208         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
20209         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
20210         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
20211         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
20212         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
20213         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
20214         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
20215         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
20216         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
20217         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
20218         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
20219         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
20220         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
20221         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
20222         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
20223         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
20224         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
20225         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
20226         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
20227         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
20228         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
20229         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
20230         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
20231         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
20232         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
20233         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
20234         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
20235         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
20236         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
20237         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
20238         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
20239         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
20240         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
20241         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
20242         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
20243         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
20244         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
20245         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
20246         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
20247         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
20248         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
20249         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
20250         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
20251         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
20252         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
20253         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
20254         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
20255         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
20256         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
20257         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
20258         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
20259         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
20260         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
20261         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
20262         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
20263         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
20264         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
20265         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
20266         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
20267         (HI_FTYPE_HI): Ditto.
20268         (HI_FTYPE_V16QI): Ditto.
20269         (SI_FTYPE_V32QI): Ditto.
20270         (DI_FTYPE_V64QI): Ditto.
20271         (QI_FTYPE_V8HI): Ditto.
20272         (HI_FTYPE_V16HI): Ditto.
20273         (SI_FTYPE_V32HI): Ditto.
20274         (QI_FTYPE_V4SI): Ditto.
20275         (QI_FTYPE_V8SI): Ditto.
20276         (HI_FTYPE_V16SI): Ditto.
20277         (QI_FTYPE_V2DI): Ditto.
20278         (QI_FTYPE_V4DI): Ditto.
20279         (QI_FTYPE_V8DI): Ditto.
20280         (V16QI_FTYPE_HI): Ditto.
20281         (V32QI_FTYPE_SI): Ditto.
20282         (V64QI_FTYPE_DI): Ditto.
20283         (V8HI_FTYPE_QI): Ditto.
20284         (V16HI_FTYPE_HI): Ditto.
20285         (V32HI_FTYPE_SI): Ditto.
20286         (V4SI_FTYPE_QI): Ditto.
20287         (V4SI_FTYPE_HI): Ditto.
20288         (V8SI_FTYPE_QI): Ditto.
20289         (V8SI_FTYPE_HI): Ditto.
20290         (V2DI_FTYPE_QI): Ditto.
20291         (V4DI_FTYPE_QI): Ditto.
20292         (HI_FTYPE_HI_HI): Ditto.
20293         (SI_FTYPE_SI_SI): Ditto.
20294         (DI_FTYPE_DI_DI): Ditto.
20295         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
20296         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
20297         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
20298         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
20299         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
20300         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
20301         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
20302         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
20303         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
20304         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
20305         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
20306         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
20307         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
20308         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
20309         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
20310         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
20311         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
20312         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
20313         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
20314         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
20315         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
20316         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
20317         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
20318         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
20319         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
20320         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
20321         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
20322         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
20323         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
20324         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
20325         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
20326         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
20327         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
20328         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
20329         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
20330         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
20331         (V16SI_FTYPE_HI): Ditto.
20332         (V8DI_FTYPE_QI): Ditto.
20333         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
20334         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
20335         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
20336         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
20337         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
20338         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
20339         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
20340         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
20341         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
20342         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
20343         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
20344         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
20345         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
20346         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
20347         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
20348         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
20349         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
20350         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
20351         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
20352         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
20353         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
20354         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
20355         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
20356         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
20357         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
20358         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
20359         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
20360         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
20361         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
20362         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
20363         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
20364         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
20365         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
20366         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
20367         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
20368         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
20369         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
20370         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
20371         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
20372         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
20373         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
20374         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
20375         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
20376         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
20377         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
20378         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
20379         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
20380         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
20381         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
20382         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
20383         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
20384         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
20385         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
20386         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
20387         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
20388         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
20389         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
20390         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
20391         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
20392         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
20393         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
20394         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
20395         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
20396         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
20397         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
20398         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
20399         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
20400         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
20401         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
20402         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
20403         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
20404         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
20405         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
20406         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
20407         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
20408         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
20409         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
20410         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
20411         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
20412         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
20413         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
20414         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
20415         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
20416         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
20417         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
20418         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
20419         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
20420         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
20421         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
20422         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
20423         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
20424         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
20425         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
20426         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
20427         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
20428         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
20429         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
20430         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
20431         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
20432         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
20433         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
20434         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
20435         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
20436         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
20437         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
20438         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
20439         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
20440         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
20441         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
20442         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
20443         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
20444         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
20445         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
20446         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
20447         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
20448         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
20449         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
20450         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
20451         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
20452         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
20453         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
20454         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
20455         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
20456         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
20457         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
20458         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
20459         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
20460         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
20461         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
20462         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
20463         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
20464         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
20465         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
20466         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
20467         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
20468         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
20469         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
20470         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
20471         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
20472         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
20473         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
20474         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
20475         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
20476         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
20477         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
20478         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
20479         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
20480         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
20481         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
20482         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
20483         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
20484         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
20485         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
20486         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
20487         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
20488         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
20489         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
20490         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
20491         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
20492         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
20493         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
20494         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
20495         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
20496         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
20497         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
20498         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
20499         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
20500         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
20501         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
20502         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
20503         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
20504         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
20505         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
20506         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
20507         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
20508         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
20509         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
20510         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
20511         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
20512         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
20513         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
20514         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
20515         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
20516         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
20517         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
20518         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
20519         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
20520         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
20521         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
20522         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
20523         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
20524         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
20525         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
20526         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
20527         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
20528         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
20529         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
20530         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
20531         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
20532         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
20533         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
20534         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
20535         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
20536         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
20537         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
20538         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
20539         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
20540         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
20541         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
20542         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
20543         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
20544         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
20545         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
20546         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
20547         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
20548         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
20549         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
20550         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
20551         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
20552         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
20553         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
20554         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
20555         (QI_FTYPE_V8DF_INT_QI): Ditto.
20556         (QI_FTYPE_V4DF_INT_QI): Ditto.
20557         (QI_FTYPE_V2DF_INT_QI): Ditto.
20558         (HI_FTYPE_V16SF_INT_HI): Ditto.
20559         (QI_FTYPE_V8SF_INT_QI): Ditto.
20560         (QI_FTYPE_V4SF_INT_QI): Ditto.
20561         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
20563 2015-07-31  Richard Biener  <rguenther@suse.de>
20565         * gimple-fold.c (fold_gimple_assign): Remove folding of
20566         GIMPLE_BINARY_RHS.
20568 2015-07-31  Tom de Vries  <tom@codesourcery.com>
20570         PR tree-optimization/66846
20571         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
20572         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
20573         (expand_omp_target) [ENABLE_CHECKING]: Same.
20574         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
20575         cfun if !LOOPS_NEED_FIXUP.
20576         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
20577         that omp_for already has its own loop struct.
20578         * tree-parloops.c (create_phi_for_local_result)
20579         (create_call_for_reduction): Handle simple latch bb.
20580         (create_parallel_loop): Add simple latch bb to preserve
20581         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
20582         (gen_parallel_loop): Remove call to cancel_loop_tree.
20583         (parallelize_loops): Skip loops that are inner loops of parallelized
20584         loops.
20585         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
20586         verify_loop_structure.
20588 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
20590         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
20591         * config/v850/v850.md (RV_REGNUM): New constants.
20592         * config/v850/v850.c (v850_libcall_value): New functions.
20593         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
20594         (TARGET_LIBCALL_VALUE): Define.
20596 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
20598         * rtl.h (lowpart_subreg): Move in file.
20599         * loop-iv.c (lowpart_subreg): Move to...
20600         * simplify-rtx.c (lowpart_subreg): ...here.
20601           (simplify_binary_operation_1): Use lowpart_subreg instead of
20602           simplify_gen_subreg.
20603         * expr.c (expand_expr_real_2): Ditto.
20604         * emit-rtl.c (gen_lowpart_common): Ditto.
20605         * combine.c (gen_lowpart_for_combine): Ditto.
20606         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
20607           expand_debug_source_expr): Ditto.
20609 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
20611         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
20612         (expand_builtin_atomic_clear): Remove support for atomic_clear
20613         pattern.
20615 2015-07-30  Richard Biener  <rguenther@suse.de>
20617         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
20618         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
20619         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
20620         redundant operand canonicalization.
20622 2015-07-30  David Sherwood  <david.sherwood@arm.com>
20624         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
20625         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
20626         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
20627         * config/arm/arm.c (neon_valid_immediate): Likewise.
20628         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
20629         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
20630         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
20631         (expand_vec_perm_vpshufb2_vpermq): Likewise.
20632         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
20633         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
20634         * config/i386/sse.md
20635         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
20636         (*ssse3_palignr<mode>_perm): Likewise.
20637         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
20638         * config/spu/spu.c (arith_immediate_p): Likewise.
20639         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
20640         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
20642 2015-07-30  Richard Biener  <rguenther@suse.de>
20644         * genmatch.c (decision_tree::gen_gimple): Merge with ...
20645         (decision_tree::gen_generic): ... this into ...
20646         (decision_tree::gen): ... this.
20647         (main): Adjust callers.
20649 2015-07-30  Richard Biener  <rguenther@suse.de>
20651         * genmatch.c (verbose): New global.
20652         (warning_at): Add overload with source_location.
20653         (capture_info::capture_info): Add bool whether generating gimple
20654         or generic.  Add gimple member.
20655         (capture_info::cinfo): Add capture member.
20656         (capture_info::walk_match): Record capture.  Warn on
20657         non-captured leafs.
20658         (capture_info::walk_c_expr): Add more fragments captures cannot
20659         escape through.  Warn on escaped captures.
20660         (dt_simplify::gen_1): Warn on operands we force to have no
20661         side-effects.
20662         (main): Initialize verbose.
20663         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
20665 2015-07-30  Richard Biener  <rguenther@suse.de>
20667         PR middle-end/67053
20668         * match.pd: Allow both operands to independently have conversion
20669         when simplifying compares of addresses.
20671 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
20673         PR target/66217
20674         PR target/67045
20675         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
20676         around those cases that need one.
20678 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
20680         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
20682 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
20684         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
20685         New.  Copied from config/i386/gnu-user.h.
20686         (ASM_COMMENT_START): Likewise.
20687         (DBX_REGISTER_NUMBER): Likewise.
20689 2015-07-29  Richard Biener  <rguenther@suse.de>
20691         * gimple-fold.c (fold_gimple_cond): Remove.
20692         (fold_stmt_1): Do not call it.
20694 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
20696         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
20697         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
20699         * config/aarch64/aarch64-modes.def: Add HFmode.
20701         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
20702         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
20704         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
20705         aarch64_promoted_type): New.
20707         (aarch64_float_const_representable_p): Disable HFmode.
20708         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
20709         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
20710         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
20712         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
20713         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
20715         * config/aarch64/iterators.md (GPF_F16): New.
20717 2015-07-29  Richard Biener  <rguenther@suse.de>
20719         * match.pd: Merge address comparison patterns and make them
20720         handle some more cases.
20722 2015-07-29  Richard Biener  <rguenther@suse.de>
20724         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
20725         (parser::parse_capture): Add bool argument on whether to reject
20726         unknown captures.
20727         (parser::parse_expr): Adjust.
20728         (parser::parse_op): Likewise.
20729         (parser::parse_pattern): Likewise.
20731 2015-07-29  Richard Biener  <rguenther@suse.de>
20733         * gimple-fold.c (has_use_on_stmt): New function.
20734         (replace_stmt_with_simplification): Use it to allow
20735         abnormals originally referenced in the stmt.
20736         (fold_stmt_1): Canonicalize operand order.
20738 2015-07-28  David Sherwood  <david.sherwood@arm.com>
20740         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
20741         GET_MODE_INNER unconditionally.
20742         * config/spu/spu.c (arith_immediate_p): Likewise.
20743         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
20744         * expmed.c (synth_mult): Remove check for VOIDmode result from
20745         GET_MODE_INNER.
20746         (expand_mult_const): Likewise.
20747         * fold-const.c (fold_binary_loc): Replace call to element_precision
20748         with call to GET_MODE_PRECISION.
20749         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
20750         m->name.
20751         (emit_mode_inner): Likewise.
20752         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
20753         result check.
20754         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
20755         (GET_MODE_UNIT_PRECISION): Likewise.
20756         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
20757         * simplify-rtx.c (simplify_immed_subreg): Likewise.
20758         * stor-layout.c (bitwise_type_for_mode): Update assert.
20759         (element_precision): Remove.
20761 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
20763         * target-insns.def (reload_load_address): New targetm instruction
20764         pattern.
20765         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
20767 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
20769         * target-insns.def (atomic_test_and_set): New targetm instruction
20770         pattern.
20771         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
20772         HAVE_*/gen_* interface.
20774 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
20776         * target-insns.def (can_extend, ptr_extend): New targetm instruction
20777         patterns.
20778         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
20779         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
20780         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
20781         * rtlanal.c (nonzero_bits1): Likewise.
20782         (num_sign_bit_copies1): Likewise.
20784 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
20786         * target-insns.def (eh_return): New targetm instruction pattern.
20787         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
20788         interface.
20789         * function.c (thread_prologue_and_epilogue_insns): Remove
20790         preprocessor condition.
20792 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
20794         * target-insns.def (indirect_jump): New targetm instruction pattern.
20795         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
20796         interface.
20798 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
20800         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
20801         instead of nonimmediate_operand.  Remove C condiition.
20803 2015-07-28  Richard Biener  <rguenther@suse.de>
20805         * match.pd: Add more simplification of address comparisons.
20807 2015-07-28  Richard Biener  <rguenther@suse.de>
20809         * match.pd: Re-order two cases in comparison with max/min
20810         value simplification to make it apply for bools.
20812 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20814         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
20815         Handle simple SIGN_EXTEND or ZERO_EXTEND.
20816         (aarch64_rtx_costs): Properly strip extend or extract before
20817         passing down to rtx costs again.
20819 2015-07-28  Nick Clifton  <nickc@redhat.com>
20821         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
20822         Optimizes the case where -mes0 is active and a constant symbolic
20823         address is used.
20824         * config/rl78/rl78-protos.h: Prototype the new function.
20825         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
20827 2015-07-28  Tom de Vries  <tom@codesourcery.com>
20829         * tree-parloops.c (reduc_stmt_res): New function.
20830         (initialize_reductions, add_field_for_reduction)
20831         (create_phi_for_local_result, create_loads_for_reductions)
20832         (create_stores_for_reduction, build_new_reduction): Handle case that
20833         reduc_stmt is a phi.
20834         (gather_scalar_reductions): Allow double_reduc reductions.
20836 2015-07-28  Richard Biener  <rguenther@suse.de>
20838         * fold-const.c (fold_comparison): Remove equality folding
20839         of decl addresses ...
20840         * match.pd: ... here and merge with existing pattern.
20842 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20844         PR tree-optimization/66828
20845         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
20846         from int64_t to uint64_t.
20848 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20850         * opts-common.c (read_cmdline_option): List DriverOnly enum values
20851         as valid only in the error message of the driver, not in the
20852         messages of the language compilers.
20854 2015-07-27  Tom de Vries  <tom@codesourcery.com>
20856         * tree-parloops.c (gather_scalar_reductions): Simplify function
20857         structure.
20859 2015-07-27  Marek Polacek  <polacek@redhat.com>
20861         * ipa-devirt.c (types_same_for_odr): Fix typo.
20863 2015-07-27  Jason Merrill  <jason@redhat.com>
20865         PR debug/66468
20866         * dwarf2out.c (gen_inlined_subroutine_die): Check
20867         cgraph_function_possibly_inlined_p.
20869 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
20871         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
20872         Place integer variant first.
20873         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20875 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
20877         PR/63870
20878         * config/arm/arm-builtins.c (enum arm_builtins):
20879         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
20880         (ARM_BUILTIN_NEON_BASE): Rename macro to....
20881         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
20882         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
20883         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
20885 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
20887         PR/63870
20888         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
20889         Add qualifier_lane_index.
20890         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
20891         (arm_getlane_qualifiers): Use qualifier_lane_index.
20892         (arm_lanemac_qualifiers): Rename to...
20893         (arm_mac_n_qualifiers): ...this.
20894         (LANEMAC_QUALIFIERS): Rename to...
20895         (MAC_N_QUALIFIERS): ...this.
20896         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
20897         (arm_setlane_qualifiers): Use qualifier_lane_index.
20898         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
20899         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
20900         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
20901         (arm_expand_neon_builtin): Handle qualifier_lane_index.
20903         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
20904         * config/arm/arm.c (bounds_check): Likewise, improve error message.
20905         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
20906         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
20907         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
20908         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
20909         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
20910         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
20911         qualifiers to TERNOP_IMM.
20912         (vdup_lane): Change qualifiers to GETLANE.
20913         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
20914         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
20915         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
20916         vqdmlsl_n): Change qualifiers to MAC_N.
20918         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
20919         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
20920         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
20921         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
20922         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
20923         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
20924         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
20925         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
20926         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
20927         Remove call to neon_lane_bounds.
20929 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
20931         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
20932         Place integer variant first.
20934 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
20936         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
20937         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
20938         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
20939         for armv6kz targets.
20940         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
20941         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
20942         (FL_FOR_ARCH6ZK): Remove.
20943         (FL_FOR_ARCH6KZ): New.
20944         (arm_arch6zk): New declaration.
20945         * config/arm/arm-tables.opt: Regenerate.
20946         * config/arm/arm.c (arm_arch6kz): New.
20947         (arm_option_override): Set arm_arch6kz.
20948         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
20949         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
20950         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
20952 2015-07-27  Marek Polacek  <polacek@redhat.com>
20954         PR c++/66555
20955         PR c/54979
20956         * doc/invoke.texi: Document -Wtautological-compare.
20958 2015-07-27  Richard Biener  <rguenther@suse.de>
20960         * genmatch.c (decision_tree::gen_gimple): Split out large
20961         subtrees into separate functions.
20962         (decision_tree::gen_generic): Likewise.
20964 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
20966         * config/alpha/alpha.c: Use SUBREG_P predicate.
20967         * config/alpha/predicates.md: Ditto.
20969 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20971         * config.host (s390*-*-*): Include driver-native.c only when
20972         building with s390* as host *and* target.
20974 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
20976         PR target/66930
20977         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
20978         T bit register modified_between_p check.
20980 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
20982         * config/i386/i386.c: Use SUBREG_P predicate.
20983         * config/i386/i386.md: Ditto.
20984         * config/i386/sse.md: Ditto.
20985         * config/i386/predicates.md: Ditto.
20987 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
20989         PR target/67004
20990         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
20991         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
20993 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
20995         * Makefile.in: Remove use of TREEBROWSER.
20996         * config.in: Regenerated.
20997         * configure: Regenerated.
20998         * configure.ac: Remove definition of TREEBROWSER.
20999         * tree-browser.c: Removed.
21000         * tree-browser.def: Removed.
21002 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
21004         * graphite-scop-detection.c: Include gimple-pretty-print.h.
21005         (stmt_simple_for_scop_p): Print when a stmt is not handled in
21006         Graphite.
21007         (scopdet_basic_block_info): Print when a loop or bb cannot be
21008         represented in Graphite.
21010 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
21012         PR target/66648
21013         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
21014         execution guard when min_size is less than size_needed.
21016 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
21018         * doc/install.texi: Document supported versions of ISL.
21020 2015-07-25  Jeff Law  <law@redhat.com>
21022         Revert:
21023         PR lto/66752
21024         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
21025         unable to find X NE 0 in the tables, return X as the simplified
21026         condition.
21027         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
21028         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
21029         to VISISTED_BBS.  */
21030         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
21031         after removing the control flow statement and unnecessary edges.
21033 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
21035         Revert:
21036         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
21038         PR rtl-optimization/64164
21039         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21040         * tree-ssa-copyrename.c: Removed.
21041         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
21042         -ftree-coalesce-vars.
21043         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21044         * common.opt (ftree-copyrename): Ignore.
21045         (ftree-coalesce-inlined-vars): Likewise.
21046         * doc/invoke.texi: Remove the ignored options above.
21047         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21048         * tree-ssa-coalesce.h: ... here.
21049         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21050         headers required by it.
21051         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21052         across variables when flag_tree_coalesce_vars.  Check register
21053         use and promoted modes to allow coalescing.  Moved to
21054         tree-ssa-coalesce.c.
21055         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21056         with its member functions to tree-ssa-coalesce.c.
21057         (var_map_base_init): Likewise.  Renamed to
21058         compute_samebase_partition_bases.
21059         (partition_view_normal): Drop want_bases parameter.
21060         (partition_view_bitmap): Likewise.
21061         * tree-ssa-live.h: Adjust declarations.
21062         * tree-ssa-coalesce.c: Include explow.h.
21063         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21064         default defs at the entry point.
21065         (dump_part_var_map): New.
21066         (compute_optimized_partition_bases): New, called by...
21067         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21068         of compute_samebase_partition_bases.  Adjust.
21069         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21070         * cfgexpand.c (leader_merge): New.
21071         (get_rtl_for_parm_ssa_default_def): New.
21072         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21073         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21074         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
21075         redundant MEM attr setting.
21076         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
21077         from...
21078         (expand_one_stack_var): ... this.  New wrapper to check and
21079         skip already expanded SSA partitions.
21080         (record_alignment_for_reg_var): New, factored out of...
21081         (expand_one_var): ... this.
21082         (expand_one_ssa_partition): New.
21083         (adjust_one_expanded_partition_var): New.
21084         (expand_one_register_var): Check and skip already expanded SSA
21085         partitions.
21086         (expand_used_vars): Don't create DECLs for anonymous SSA
21087         names.  Expand all SSA partitions, then adjust all SSA names.
21088         (pass::execute): Replace the loops that set
21089         SA.partition_to_pseudo from partition leaders and cleared
21090         DECL_RTL for multi-location variables, and that which used to
21091         rename vars and set attrs, with one that clears DECL_RTL and
21092         checks that PARMs and RESULTs default_defs match DECL_RTL.
21093         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21094         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21095         * explow.c (promote_ssa_mode): New.
21096         * explow.h (promote_ssa_mode): Declare.
21097         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21098         * function.c: Include cfgexpand.h.
21099         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21100         (use_register_for_parm_decl): Wrapper for the above to
21101         special-case the result_ptr.
21102         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21103         (split_complex_args): Take assign_parm_data_all argument.
21104         Pass it to rtl_for_parm.  Set up rtl and context for split
21105         args.
21106         (assign_parms_augmented_arg_list): Adjust.
21107         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21108         multiple locations.  Recognize split complex args.
21109         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21110         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
21111         (assign_parm_setup_block): Prefer SSA-assigned location.
21112         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
21113         if stack_parm is NULL.
21114         (assign_parm_setup_stack): Prefer SSA-assigned location.
21115         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
21116         rtl before testing for pointer bounds.  Special-case result_ptr.
21117         (expand_function_start): Maybe reset DECL_RTL of result.
21118         Prefer SSA-assigned location for result and static chain.
21119         Factor out DECL_RESULT and SET_DECL_RTL.
21120         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21121         anonymous SSA names.  Use promote_ssa_mode.
21122         (get_temp_reg): Likewise.
21123         (remove_ssa_form): Adjust.
21124         * stor-layout.c (layout_decl): Don't set mem attributes of
21125         non-MEMs.
21126         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21127         and get its reg_usage for reg invalidation.
21128         (compute_bb_dataflow): Pass it insn.
21129         (emit_notes_in_bb): Likewise.
21131 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
21133         * config/i386/i386.c (ix86_va_start): Remove
21134         unneeded !TARGET_64BIT check.
21135         (ix86_gimplify_va_arg): Ditto.
21137 2015-07-24  Tom de Vries  <tom@codesourcery.com>
21139         * graphite-sese-to-poly.c (build_poly_scop): Always call
21140         rewrite_commutative_reductions_out_of_ssa.
21142 2015-07-24  Tom de Vries  <tom@codesourcery.com>
21144         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
21145         flag_associative_math to FLOAT_TYPE_P.  Honour
21146         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
21148 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21150         PR c++/64079
21151         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
21152         and "%qD" in warning_at instead of "%q+D" in warning.
21154 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
21156         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
21157         (ix86_function_abi): Cleanup.
21159 2015-07-24  Michael Darling  <darlingm@gmail.com>
21161         PR other/66259
21162         * acinclude.m4: Reflects renaming of configure.in to configure.ac
21163         * configure: Likewise
21164         * configure.ac: Likewise
21165         * doc/install.texi: Likewise
21166         * doc/tm.texi: Likewise
21167         * doc/tm.texi.in: Likewise
21169 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21171         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
21172         manually swapping values.
21173         * cse.c (fold_rtx): Likewise.
21174         * lra-eliminations.c (form_sum): Likewise.
21176 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
21178         PR target/64003
21179         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
21180         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
21181         (*jcc_1, *jcc_2, jump, simple_return_internal)
21182         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
21183         Set length_nobnd attribute instead of length attribute.
21184         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
21185         (length_nobnd): Remove attribute.
21186         (length): Remove length_nobnd processing.
21188 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
21190         * gimplify.c (omp_default_clause): New function.  Reorganize flow
21191         for clarity. Broken out of ...
21192         (omp_notice_variable): ... here.
21194 2015-07-24  Gary Funck  <gary@intrepid.com>
21196         PR middle-end/66984
21197         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
21198         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
21200 2015-07-24  Tom de Vries  <tom@codesourcery.com>
21202         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
21203         exit-first loop transform.
21205 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
21207         PR 66714
21208         * tree-cfg.c (struct replace_decls_d): New struct.
21209         (replace_block_vars_by_duplicates_1): New function.
21210         (replace_block_vars_by_duplicates): Use it to replace the decls
21211         in the value exprs by duplicates.
21213 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21215         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
21216         -shared, -symbolic, -rdynamic.
21218 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21220         PR target/65711
21221         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
21222         -dynamic-linker within %{!static %{!shared, and -rdynamic within
21223         %{!static.
21225 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
21227         PR ipa/66566
21228         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
21229         edge summary is available.
21231 2015-07-24  Richard Biener  <rguenther@suse.de>
21233         * genmatch.c (struct dt_node): Add statistic fields.
21234         (dt_node::analyze): New method.
21235         (decision_tree::gen_gimple): Call analyze on the root node
21236         and print statistics to stderr.
21237         (decision_tree::gen_generic): Likewise.
21239 2015-07-24  Richard Biener  <rguenther@suse.de>
21241         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
21242         against the highest or lowest possible integer ...
21243         * match.pd: ... as patterns here.
21245 2015-07-24  Richard Biener  <rguenther@suse.de>
21247         * genmatch.c (struct capture_info): Add same_as field.
21248         (capture_info::capture_info): Initialize same_as.
21249         (capture_info::walk_match): Compute same_as.
21250         (capture_info::walk_result): Compute stuff for the leader.
21251         (capture_info::walk_c_expr): Likewise.
21252         (dt_simplify::gen_1): Only look at leaders when deciding
21253         to force no side-effects or emit side-effects of omitted operands.
21255 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21257         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
21258         reg note to the GPR -> FPR save instructions.
21260 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21262         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
21263         cheaper.
21264         (s390_expand_insv): Don't generate risbg pattern for constant zero
21265         sources.
21266         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
21267         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
21268         splitters.
21270 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21272         * config/s390/s390.c (s390_reorg): Clean up handling of processors
21273         with
21274         -mtune=
21275         (s390_issue_rate): Likewise.
21276         (s390_sched_reorder): Likewise.
21277         (s390_sched_variable_issue): Likewise.
21278         (s390_loop_unroll_adjust): Likewise.
21279         (s390_option_override):  Likewise.
21281 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21283         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
21284         processor capabilities with -march=native.
21285         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
21286         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
21287         (S390_TARGET_BITS_STRING): Macro to simplify specs.
21289 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21291         * config/s390/s390.c (s390_issue_rate): Handle
21292         PROCESSOR_2094_Z9_EC.
21293         (s390_option_override): Likewise.
21294         (s390_adjust_priority): Likewise.
21296 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21298         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
21299         when cross compiling.
21301 2015-07-24  Richard Biener  <rguenther@suse.de>
21303         * fold-const.c (maybe_canonicalize_comparison_1): Move
21304         A code CST canonicalization ...
21305         * match.pd: ... to a pattern here.
21307 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
21309         Revert:
21310         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
21311         PR target/63521
21312         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
21313         (HONOR_REG_ALLOC_ORDER): Define.
21315 2015-07-24  Richard Biener  <rguenther@suse.de>
21317         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
21318         * fold-const.c (fold_comparison): Move parameter does not
21319         alias &local simplification ...
21320         * match.pd: ... as a pattern here.
21322 2015-07-24  Richard Biener  <rguenther@suse.de>
21324         * gimple-fold.c (replace_stmt_with_simplification): Special-case
21325         valueizing call operands.
21326         * gimple-match-head.c (maybe_push_res_to_seq): Take
21327         number of call arguments from ops array.
21328         (do_valueize): New function.
21329         (gimple_simplify): Return true if valueization changed
21330         any operand even if the result didn't simplify further.
21332 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
21334         PR middle-end/25530
21335         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
21337 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
21339         PR middle-end/25529
21340         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
21342 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
21344         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
21345         instruction.
21347 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
21349         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
21350         clean up.
21352 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
21354         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
21355         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
21356         targets here.
21357         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
21358         ms_va_list_type_node initialization.
21360 2015-07-23  Jeff Law  <law@redhat.com>
21362         PR lto/66752
21363         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
21364         unable to find X NE 0 in the tables, return X as the simplified
21365         condition.
21366         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
21367         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
21368         to VISISTED_BBS.  */
21369         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
21370         after removing the control flow statement and unnecessary edges.
21372 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21374         * tree-pass.h (get_current_pass_name): Removed.
21376 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
21378         PR rtl-optimization/64164
21379         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21380         * tree-ssa-copyrename.c: Removed.
21381         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
21382         -ftree-coalesce-vars.
21383         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21384         * common.opt (ftree-copyrename): Ignore.
21385         (ftree-coalesce-inlined-vars): Likewise.
21386         * doc/invoke.texi: Remove the ignored options above.
21387         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21388         * tree-ssa-coalesce.h: ... here.
21389         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21390         headers required by it.
21391         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21392         across variables when flag_tree_coalesce_vars.  Check register
21393         use and promoted modes to allow coalescing.  Moved to
21394         tree-ssa-coalesce.c.
21395         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21396         with its member functions to tree-ssa-coalesce.c.
21397         (var_map_base_init): Likewise.  Renamed to
21398         compute_samebase_partition_bases.
21399         (partition_view_normal): Drop want_bases parameter.
21400         (partition_view_bitmap): Likewise.
21401         * tree-ssa-live.h: Adjust declarations.
21402         * tree-ssa-coalesce.c: Include explow.h.
21403         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21404         default defs at the entry point.
21405         (dump_part_var_map): New.
21406         (compute_optimized_partition_bases): New, called by...
21407         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21408         of compute_samebase_partition_bases.  Adjust.
21409         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21410         * cfgexpand.c (leader_merge): New.
21411         (get_rtl_for_parm_ssa_default_def): New.
21412         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21413         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21414         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
21415         redundant MEM attr setting.
21416         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
21417         from...
21418         (expand_one_stack_var): ... this.  New wrapper to check and
21419         skip already expanded SSA partitions.
21420         (record_alignment_for_reg_var): New, factored out of...
21421         (expand_one_var): ... this.
21422         (expand_one_ssa_partition): New.
21423         (adjust_one_expanded_partition_var): New.
21424         (expand_one_register_var): Check and skip already expanded SSA
21425         partitions.
21426         (expand_used_vars): Don't create DECLs for anonymous SSA
21427         names.  Expand all SSA partitions, then adjust all SSA names.
21428         (pass::execute): Replace the loops that set
21429         SA.partition_to_pseudo from partition leaders and cleared
21430         DECL_RTL for multi-location variables, and that which used to
21431         rename vars and set attrs, with one that clears DECL_RTL and
21432         checks that PARMs and RESULTs default_defs match DECL_RTL.
21433         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21434         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21435         * explow.c (promote_ssa_mode): New.
21436         * explow.h (promote_ssa_mode): Declare.
21437         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21438         * function.c: Include cfgexpand.h.
21439         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21440         (use_register_for_parm_decl): Wrapper for the above to
21441         special-case the result_ptr.
21442         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21443         (split_complex_args): Take assign_parm_data_all argument.
21444         Pass it to rtl_for_parm.  Set up rtl and context for split
21445         args.
21446         (assign_parms_augmented_arg_list): Adjust.
21447         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21448         multiple locations.  Recognize split complex args.
21449         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21450         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
21451         (assign_parm_setup_block): Prefer SSA-assigned location.
21452         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
21453         if stack_parm is NULL.
21454         (assign_parm_setup_stack): Prefer SSA-assigned location.
21455         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
21456         rtl before testing for pointer bounds.  Special-case result_ptr.
21457         (expand_function_start): Maybe reset DECL_RTL of result.
21458         Prefer SSA-assigned location for result and static chain.
21459         Factor out DECL_RESULT and SET_DECL_RTL.
21460         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21461         anonymous SSA names.  Use promote_ssa_mode.
21462         (get_temp_reg): Likewise.
21463         (remove_ssa_form): Adjust.
21464         * stor-layout.c (layout_decl): Don't set mem attributes of
21465         non-MEMs.
21466         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21467         and get its reg_usage for reg invalidation.
21468         (compute_bb_dataflow): Pass it insn.
21469         (emit_notes_in_bb): Likewise.
21471 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
21473         PR target/66217
21474         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
21475         prototype.
21476         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
21477         (rs6000_emit_2insn_and): Handle dot forms.
21478         * config/rs6000/rs6000.md (and<mode>3): Adjust.
21479         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
21480         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
21482 2015-07-23  Richard Biener  <rguenther@suse.de>
21484         * generic-match-head.c: Include cgraph.h.
21485         * gimple-match-head.c: Likewise.
21486         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
21487         SSA names.
21488         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
21489         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
21490         pattern.
21492 2015-07-23  Richard Biener  <rguenther@suse.de>
21494         * gimple-fold.c (fold_gimple_cond): Do not require folding
21495         results to pass valid_gimple_rhs_p.
21496         * tree-cfg.h (fold_cond_expr_cond): Remove.
21497         * tree-cfg.c (fold_cond_expr_cond): Likewise.
21498         (make_edges): Do not call it.
21499         * tree-inline.c (tree_function_versioning): Likewise.
21501 2015-07-23  Tom de Vries  <tom@codesourcery.com>
21503         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
21504         vect_force_simple_reduction.
21505         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
21506         (vect_is_simple_reduction_1): Add and handle
21507         need_wrapping_integral_overflow parameter.
21508         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
21509         need_wrapping_integral_overflow parameter.
21510         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
21511         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
21512         decl.
21514 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
21516         PR tree-optimization/66926,66951
21517         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
21518         INNER_LOOP and fix up condition for renaming virtual operands.
21520 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21522         * combine.c (try_combine): Use std::swap instead of manually
21523         swapping.
21525 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
21527         * config/mips/i6400.md: New file.
21528         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
21529         (mips64r6): Likewise.
21530         (i6400): Define.
21531         * config/mips/mips-tables.opt: Regenerate.
21532         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
21533         (mips_issue_rate): Add support for i6400.
21534         (mips_multipass_dfa_lookahead): Likewise.
21535         * config/mips/mips.h (TUNE_I6400): Define.
21536         * config/mips/mips.md: Include i6400.md.
21537         (processor): Add i6400.
21538         * doc/invoke.texi (-march=@var{arch}): Add i6400.
21540 2015-07-23  Richard Biener  <rguenther@suse.de>
21542         PR middle-end/66916
21543         * match.pd: Guard widen and sign-change comparison simplification
21544         with single_use.
21546 2015-07-23  Richard Biener  <rguenther@suse.de>
21548         PR tree-optimization/66945
21549         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
21550         ::before_dom_children): Force the propagators idea of
21551         non-executable edges to materialize, not what the folder
21552         chooses.
21554 2015-07-23  Richard Biener  <rguenther@suse.de>
21556         * gimple.h (gimple_cond_make_false): Use 0 != 0.
21557         (gimple_cond_make_true): Use 1 != 0.
21559 2015-07-22  DJ Delorie  <dj@redhat.com>
21561         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
21562         slashes.
21564         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
21565         (ashrhi3): Likewise.
21566         (lshrhi3): Likewise.
21567         (movhi): Take advantage of zero-extend to load small constants.
21568         (movpsi): Likewise.
21569         (and<mode>3): Likewise.
21570         (zero_extendqihi2): Likewise.
21571         (zero_extendqisi2): New.
21572         * config/msp430/constraints.md (N,O): New.
21573         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
21575 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
21577         PR target/66954
21578         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
21579         to enum feature_priority and feature_list.
21580         (fold_builtin_cpu): Add F_AES to enum processor_features
21581         and isa_names_table.
21583 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
21585         PR driver/66737
21586         * config/i386/linux-common.h (MPX_SPEC): Use linker option
21587         for 64bit target only.
21589 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
21591         * config/nvptx/nvptx.c: Expand some comments.
21593 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
21595         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
21596         (cortex_a53_advsimd): ...This.
21598 2015-07-22  Richard Biener  <rguenther@suse.de>
21600         * genmatch.c (expr::gen_transform): Clarify error message
21601         and display location.
21603 2015-07-22  Richard Biener  <rguenther@suse.de>
21605         * genmatch.c (struct operand): Add location member.
21606         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
21607         constructors.
21608         (struct simplify): Remove match_location and result_location
21609         members.
21610         (elsehwere): Adjust.
21612 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
21614         * config/mips/m5100.md: New file.
21615         * config/mips/mips-cpus.def (m5100, m5101): Define.
21616         * config/mips/mips-tables.opt: Regenerate.
21617         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
21618         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
21619         -march=m5101 to -mips32r5.
21620         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
21621         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
21622         !-msoft-float.
21623         * config/mips/mips.md: Include m5100.md.
21624         (processor): Add m5100.
21625         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
21627 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
21629         * config/mips/mips-cpus.def (interaptiv): Define.
21630         * config/mips/mips-tables.opt: Regenerate.
21631         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
21632         -mips32r2.
21633         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
21634         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
21636 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
21638         PR target/63521
21639         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
21640         (HONOR_REG_ALLOC_ORDER): Define.
21642 2015-07-22  Richard Biener  <rguenther@suse.de>
21644         PR tree-optimization/66952
21645         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
21646         blocks we end up executing unconditionally reset all SSA
21647         info such as range and alignment.
21648         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
21649         * tree-ssanames.c (reset_flow_sensitive_info): New function.
21651 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
21653         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
21654         typo in attribute.
21656 2015-07-22  Richard Biener  <rguenther@suse.de>
21658         * genmatch.c (parser::parse_result): Properly handle
21659         match with result operands and conditions.
21661 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
21663         PR target/63870
21664         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
21665         Add qualifier_struct_load_store_lane_index.
21666         (aarch64_types_loadstruct_lane_qualifiers): Use
21667         qualifier_struct_load_store_lane_index for lane index argument for
21668         last argument.
21669         (aarch64_types_storestruct_lane_qualifiers): Ditto.
21670         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
21671         (aarch64_simd_expand_args): Add new argument describing mode of
21672         builtin. Check lane bounds for arguments with
21673         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
21674         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
21675         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
21676         (aarch64_simd_expand_builtin): Handle arguments with
21677         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
21678         aarch64_simd_expand_args.
21679         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
21680         vst[234]_lane with BUILTIN_VALLDIF.
21681         * config/aarch64/aarch64-simd.md:
21682         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
21683         endianness reversal on lane index.
21684         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
21685         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
21686         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
21687         (vec_store_lanesci_lane<mode>): Ditto.
21688         (vec_store_lanesxi_lane<mode>): Ditto.
21689         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
21690         reversal of lane index.
21691         (aarch64_ld3_lane<mode>): Ditto.
21692         (aarch64_ld4_lane<mode>): Ditto.
21693         (aarch64_st2_lane<mode>): Ditto.
21694         (aarch64_st3_lane<mode>): Ditto.
21695         (aarch64_st4_lane<mode>): Ditto.
21696         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
21697         to qmode. Add new mode parameter. Update uses.
21698         (__LD3_LANE_FUNC): Ditto.
21699         (__LD4_LANE_FUNC): Ditto.
21700         (__ST2_LANE_FUNC): Ditto.
21701         (__ST3_LANE_FUNC): Ditto.
21702         (__ST4_LANE_FUNC): Ditto.
21704 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
21706         * doc/invoke.texi (Language Independent Options): Rename node to
21707         Diagnostic Message Formatting Options.
21709 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
21711         PR ipa/66424.
21712         * lra-remat.c (operand_to_remat): Prevent using insns with input
21713         subregs processed separately by IRA.
21715 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
21717         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
21718         straight loops.
21719         (single_imm_use): Check for iterator node.
21720         (num_imm_uses): Likewise.
21721         * tree-ssa-operands.c (has_zero_uses_1): Delete.
21722         (single_imm_use_1): Check for iterator node.
21724 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
21725             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21727         * configure.ac: Add check for new options in isl-0.15.
21728         * config.in, configure: Rebuilt.
21729         * graphite-blocking.c: Include <isl/constraint.h>
21730         * graphite-interchange.c,  graphite-poly.c: Likewise.
21731         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
21732         * graphite.c: Likewise.
21733         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
21734         <isl/union_set.h>.
21735         * graphite-dependences.c: Include <isl/constraint.h>.
21736         (max_number_of_out_dimensions): Returns isl_stat.
21737         (extend_schedule_1): Likewise
21738         (extend_schedule): Corresponding changes.
21739         * graphite-optimize-isl.c: Include <isl/constraint.h> and
21740         <isl/union_set.h>.
21741         (getSingleMap): Change return type of isl_stat.
21742         (optimize_isl): Conditionally use
21743         isl_options_set_schedule_serialize_sccs.
21744         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
21745         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
21747 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
21749         PR target/66956
21750         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
21751         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
21753 2015-07-21  Richard Biener  <rguenther@suse.de>
21755         PR tree-optimization/66948
21756         * genmatch.c (capture_info::walk_match): Also recurse to
21757         captures.  Properly compute expr state from captures of
21758         captures.
21759         * match.pd: Add single-use guards to
21760         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
21762 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
21764         * config/nvptx/mkoffload.c (process): Add static destructor call.
21766 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21768         PR middle-end/66915
21769         * match.pd (A - B -> A + (-B)): Don't allow folding
21770         when type if a fixed-point type.
21772 2015-07-20  DJ Delorie  <dj@redhat.com>
21774         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
21775         (iorqi3_real): Likewise for set1.
21777 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
21779         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
21780         for !TARGET_64BIT.
21782 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
21784         * graphite-isl-ast-to-gimple.c:
21785         Refactor so that each function can access 'region'. This will help
21786         maintain a parameter rename_map within a region.
21788 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
21790         * config/rs6000/rs6000.md (*lt0_disi): New.
21792 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
21794         PR target/66217
21795         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
21796         "available letters" comment.
21797         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
21798         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
21799         and_2rld_operand):  Delete.
21800         (and_operand): Adjust.
21801         (rotate_mask_operator): New.
21802         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
21803         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
21804         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
21805         extract_ME): Delete.
21806         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
21807         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
21808         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
21809         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
21810         rs6000_emit_2insn_and): New.
21811         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
21812         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
21813         includes_rldic_lshift_p, includes_rldicr_lshift_p,
21814         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
21815         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
21816         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
21817         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
21818         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
21819         rs6000_emit_2insn_and): New.
21820         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
21821         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
21822         handling.
21823         <NOT>: Don't fall through to next case.
21824         <AND>: Handle the various rotate-and-mask cases directly.
21825         <IOR>: Always cost as one insn.
21826         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
21827         (and<mode>3): Adjust expander for the new patterns.
21828         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
21829         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
21830         (*and<mode>3_imm_dot_shifted): New.
21831         (*and<mode>3_mask): Delete, rewrite as ...
21832         (and<mode>3_mask): ... New.
21833         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
21834         (andsi3_internal0_nomc): Delete.
21835         (*andsi3_internal6): Delete.
21836         (*and<mode>3_2insn): New.
21837         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
21838         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
21839         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
21840         *insvdi_internal3): Delete.
21841         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
21842         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
21843         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
21844         *ior<mode>_mask): New.
21845         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
21846         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
21847         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
21848         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
21849         Delete.
21850         (ashr<mode>3): Delete expander.
21851         (*ashr<mode>3): Rename to ...
21852         (ashr<mode>3): ... This.
21853         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
21854         (*rotldi3_internal4, *rotldi3_internal5 and split,
21855         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
21856         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
21857         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
21858         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
21859         (splitter for loading a mask): Adjust.
21860         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
21862 2015-07-20  Marek Polacek  <polacek@redhat.com>
21864         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
21865         output_add_clobbers, output_added_clobbers_hard_reg_p,
21866         gen_rtx_scratch): Remove declarations.
21868 2015-07-20  Marek Polacek  <polacek@redhat.com>
21870         PR c++/55095
21871         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
21873 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21875         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
21876         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
21878 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21880         * combine.c (combine_simplify_rtx): Move simplification step
21881         before various transformations/substitutions.
21883 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
21885         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
21886         (struct int_traits): Likewise.
21888 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21890         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
21891         function to vmsdbgout_function_decl.
21893 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
21895         PR target/66922
21896         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
21897         from misaligned positions.
21898         (ix86_expand_pinsr): Reject insertions to misaligned positions.
21900 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
21902         PR middle-end/46851
21903         PR middle-end/60340
21904         * Makefile.in: Removed omega.o.
21905         * common.opt: Document flag fcheck-data-deps as deprecated.
21906         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
21907         its associated params: omega-max-vars, omega-max-geqs,
21908         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
21909         omega-max-keys, omega-eliminate-redundant-constraints.
21910         * doc/loop.texi: Remove all the section on Omega.
21911         * graphite-blocking.c: Include missing params.h: it used to be
21912         included through tree-data-ref.h and omega.h.
21913         * graphite-isl-ast-to-gimple.c: Same.
21914         * graphite-optimize-isl.c: Same.
21915         * graphite-sese-to-poly.c: Same.
21916         * graphite.c: Same.
21917         * omega.c: Remove.
21918         * omega.h: Remove.
21919         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
21920         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
21921         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
21922         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
21923         * passes.def: Remove pass_check_data_deps.
21924         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
21925         (dump_conflict_function): Same.
21926         (dump_subscript): Same.
21927         (print_direction_vector): Same.
21928         (print_dir_vectors): Same.
21929         (print_lambda_vector): Same.
21930         (print_dist_vectors): Same.
21931         (dump_data_dependence_relation): Same.
21932         (dump_data_dependence_relations): Same.
21933         (dump_dist_dir_vectors): Same.
21934         (dump_ddrs): Same.
21935         (init_omega_eq_with_af): Removed.
21936         (omega_extract_distance_vectors): Removed.
21937         (omega_setup_subscript): Removed.
21938         (init_omega_for_ddr_1): Removed.
21939         (init_omega_for_ddr): Removed.
21940         (ddr_consistent_p): Removed.
21941         (compute_affine_dependence): Do not use omega to check data
21942         dependences.
21943         (compute_data_dependences_for_bb): Removed.
21944         (analyze_all_data_dependences): Removed.
21945         (tree_check_data_deps): Removed.
21946         * tree-data-ref.h: Do not include omega.h.
21947         (compute_data_dependences_for_bb): Removed.
21948         (tree_check_data_deps): Removed.
21949         * tree-ssa-loop.c (pass_check_data_deps): Removed.
21950         (make_pass_check_data_deps): Removed.
21951         * tree-ssa-phiopt.c: Include params.h.
21952         * tree-vect-data-refs.c: Same.
21953         * tree-vect-slp.c: Same.
21955 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
21957         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
21958         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
21959         (mem->fpreg splitters): Ditto.
21960         (general_operand->nonimmediate_operand splitter): Use explicit modes.
21961         Disable DFmode for TARGET_64BIT.
21963 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
21965         PR target/66906
21966         * config/i386/i386.c (ix86_expand_prologue): Replicate static
21967         chain on the stack.
21969 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
21971         * config/nvptx/mkoffload.c (process): Constify host data.
21972         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
21973         Constify host data.
21974         (generate_host_descr_file): Likewise.
21976 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
21977             Sebastian Pop  <s.pop@samsung.com>
21979         PR middle-end/61929
21980         * graphite-dependences.c (add_pdr_constraints): Renamed
21981         pdr->extent to pdr->subscript_sizes.
21982         * graphite-interchange.c (build_linearized_memory_access): Add
21983         back all gcc_assert's that the "isl_int to isl_val conversion"
21984         patch has removed.  Refactored.
21985         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
21986         * graphite-poly.c (new_poly_dr): Same.
21987         (free_poly_dr): Same.
21988         * graphite-poly.h (struct poly_dr): Same.
21989         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
21990         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
21991         * graphite-scop-detection.h: Fix space.
21992         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
21993         back all gcc_assert's removed by a previous patch.
21994         (wrap): Remove the_isl_ctx global variable that the same patch has
21995         added.
21996         (build_loop_iteration_domains): Same.
21997         (add_param_constraints): Same.
21998         (pdr_add_data_dimensions): Same.  Refactored.
21999         (build_poly_dr): Renamed extent to subscript_sizes.
22001 2015-07-17  Marek Polacek  <polacek@redhat.com>
22003         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
22004         * match.pd: ... here.
22006 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
22008         * config/nvptx/mkoffload.c (process): Constify target data.
22009         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
22010         Constify target data.
22011         (generate_target_offloadend_file): Likewise.
22013 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
22015         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
22016         to allow renaming of PHI arguments on edges incoming from outer
22017         loop header, add corresponding check before start PHI iterator.
22018         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
22019         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
22020         with true force_vectorize.  Set-up dominator for outer loop too.
22021         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
22022         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
22023         was marked with force_vectorize and has restricted cfg.
22024         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
22025         inner loop.
22026         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
22027         do peeling for outer loops.
22029 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
22030             Matthias Klose  <doko@ubuntu.com>
22032         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
22033         build-sysroot, sysroot from the `Miscenalleous configure options' to
22034         the `Directories' section and strip trailing `/' from with_sysroot.
22035         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
22036         * configure: Regenerated.
22038 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
22040         PR target/66824
22041         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
22042         (TARGET_HARD_DF_REGS): Ditto.
22043         (TARGET_HARD_XF_REGS): Ditto.
22044         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
22045         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
22046         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
22047         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
22048         (*movsf_internal): Add alternatives 16 and 17. Enable
22049         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
22051 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
22053         PR rtl-optimization/66891
22054         * calls.c (expand_call): Wrap precompute_register_parameters with
22055         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
22057 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
22059         * config/nvptx/mkoffload.c (process): Constify mapping variables.
22060         Define target data struct and initialize it.
22062 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
22064         PR rtl-optimization/66626
22065         * ira.h (emit-rtl.h): Include.
22066         (non_spilled_static_chain_regno_p): New.
22067         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
22068         unless it is non spilled static chain pseudo.
22069         (assign_hard_rego): Spill memory profitable allocno unless it is
22070         non spilled static chain pseudo.
22071         (allocno_spill_priority_compare): Put non spilled static chain
22072         pseudo at the end of sorted array.
22073         (improve_allocation): Do nothing if we have static chain and
22074         non-local goto.
22075         (allocno__priority_compare_func): Put non spilled static chain
22076         pseudo at the beginning of sorted array.
22077         (move_spill_restore): Ignore non spilled static chain pseudo.
22078         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
22079         to non spilled static chain pseudo.
22080         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
22081         pseudo at the beginning of sorted array.
22082         (spill_for): Spill non spilled static chain pseudo last.
22083         * lra-constraints.c (lra_constraints): Remove static chain pseudo
22084         check for equivalence.
22086 2015-07-16  Martin Liska  <mliska@suse.cz>
22088         PR ipa/66896.
22089         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
22090         dst_ctx if it does not exist.
22092 2015-07-16  Martin Liska  <mliska@suse.cz>
22094         * hash-set.h (remove): New function.
22095         (iterator): New iteration class for hash_set.
22097 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
22099         * genattrtab.c (make_canonical): Add a file_location parameter.
22100         Use fatal_at rather than fatal.
22101         (get_attr_value): Likewise.  Update call to make_canonical.
22102         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
22103         (make_internal_attr): Update calls accordingly.
22105 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
22107         * read-md.h (message_with_line, error_with_line): Delete.
22108         * read-md.c (message_with_line, error_with_line): Delete.
22109         * gensupport.h: Include read-md.h.
22110         (md_rtx_info): New structure.
22111         (read_md_rtx): Use it.  Return a bool success value.
22112         * gensupport.c (read_md_rtx): Likewise.
22113         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
22114         (main): Update after interface changes.
22115         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
22116         (main): Update after interface changes.
22117         * genattrtab.c (insn_code_number): Delete.
22118         (optimize_attrs): Add a max_insn_code parameter and use it instead
22119         of insn_code_number.
22120         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
22121         Use *_at rather than *_with_line functions.
22122         (gen_insn): Likewise.
22123         (gen_delay): Likewise.
22124         (gen_insn_reserv): Likewise.
22125         (gen_bypass): Take an md_rtx_info rather than an rtx.
22126         (main): Update after interface changes.  Use a local max_insn_code
22127         variable instead of insn_code_number.
22128         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
22129         an rtx.  Use fatal_at rather than fatal.
22130         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
22131         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
22132         (gen_absence_set, gen_final_absence_set, gen_automaton)
22133         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
22134         (main): Update after interface changes.
22135         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
22136         and code number.
22137         (main): Update after interface changes.
22138         * genconditions.c (main): Use new read_md_rtx interface.
22139         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
22140         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
22141         (main): Update after interface changes.
22142         * genemit.c (insn_code_number, insn_index_number): Delete.
22143         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
22144         Use fatal_at rather than fatal.
22145         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
22146         rather than fatal.
22147         (gen_split): Likewise.
22148         (main): Update after interface changes.
22149         * genextract.c (line_no): Delete.
22150         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
22151         Update call to walk_rtx.
22152         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
22153         rather than message_with_line.
22154         (walk_rtx): Add an md_rtx_info argument.  Update call to
22155         VEC_safe_set_locstr.
22156         (main): Update after interface changes.
22157         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
22158         and lineno.  Use error_at rather than separate message_with_line
22159         calls and have_error assignments.
22160         (main): Update after interface changes.
22161         * genmddump.c (main): Use new read_md_rtx interface.
22162         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
22163         (main): Update after interface changes.
22164         * genoutput.c (next_code_number): Delete.
22165         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
22166         (gen_peephole, gen_expand, gen_split): Likewise.
22167         (note_constraint): Likewise.  Use *_at rather than *_with_line
22168         functions.
22169         (main): Update after interface changes.
22170         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
22171         rtx and lineno.
22172         (main): Update after interface changes.
22173         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
22174         than an rtx and lineno.
22175         (process_define_constraint): Likewise.
22176         (process_define_register_constraint): Likewise.
22177         (main): Update after interface changes.
22178         * genrecog.c (next_insn_code, pattern_lineno): Delete.
22179         (validate_pattern): Replace top-level rtx with an md_rtx_info.
22180         Use *_at rather than *_with_line functions.
22181         (match_pattern_2): Likewise.
22182         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
22183         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
22184         Use *_at rather than *_with_line functions.
22185         * gentarget-def.c (add_insn): New function.
22186         (main): Use it.  Use new read_md_rtx interface.
22188 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
22190         * gensupport.h (compute_test_codes): Take a file_location rather
22191         than a line number.
22192         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
22193         rather than *_with_line functions.
22194         (process_define_predicate): Update call to compute_test_codes.
22195         * genpreds.c (validate_exp): Take a file_location rather than a
22196         line number.  Use *_at functions rather than *_with_line functions.
22197         (process_define_predicate): Update call to validate_exp.
22198         (constraint_data): Replace lineno field with a file_location.
22199         (add_constraint): Take a file_location rather than a line number.
22200         Use *_at functions rather than *_with_line functions.  Fix error
22201         message for address constraints.  Update after changes to
22202         validate_exp, constraint_data and compute_test_codes.
22203         (process_define_constraint): Update accordingly.
22204         (process_define_register_constraint): Likewise.
22206 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
22208         * genoutput.c (data): Use a file_location to record the source
22209         position.
22210         (nothing): Delete.
22211         (idata, idata_end): Remove initialization.
22212         (constraint_data): Replace lineno with a file_location.
22213         (output_insn_data): Update after changes to data.
22214         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
22215         (scan_operands): Likewise, using *_at rather than *_with_line
22216         functions.
22217         (process_template): Likewise.
22218         (validate_insn_alternatives): Likewise.
22219         (validate_insn_operands): Likewise.
22220         (validate_optab_operands): Likewise.
22221         (init_insn_for_nothing): Initialize idata and idata_end.
22222         (note_constraint): Update after changes to constraint_data,
22223         using at rather than with_line functions.
22224         (mdep_constraint_len): Take a file_location rather than a
22225         line number.  Use at rather than with_line functions.
22227 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
22229         * read-md.h (fatal_at): Declare.
22230         * read-md.c (fatal_at): New function.
22231         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
22232         to record the source position.
22233         (check_attr_test): Take a file_location instead of a line number.
22234         Use fatal_at instead of fatal.
22235         (check_attr_value): Update after above changes, using "at"
22236         rather than "with_line" reporting functions.
22237         (convert_set_attr_alternative): Likewise.
22238         (gen_attr): Likewise.
22239         (check_defs): Likewise.  Don't assign to read_md_filename.
22240         (gen_insn): Update initialization after above changes.
22241         (gen_delay): Likewise.
22242         (write_insn_cases): Print the filename for a define_peephole.
22243         (gen_insn_reserv): Take a line number as argument and update
22244         the call to check_attr_test.
22245         (main): Pass a line number to gen_insn_reserv.
22247 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
22249         * read-md.h (file_location): New structure.
22250         (directive_handler_t): Take a file_location rather than a line number.
22251         (message_at, error_at): Declare.
22252         (read_skip_construct): Delete.
22253         * read-md.c (message_with_line_1): Replace with...
22254         (message_at_1): ...this new function.
22255         (message_at, error_at): New functions.
22256         (message_with_line, error_with_line): Update to use message_at_1.
22257         (handle_enum): Take a file_location rather than a line number
22258         and use error_at for error reporting.
22259         (handle_include): Likewise.
22260         (read_skip_construct): Likewise.  Make static.
22261         (handle_file): Update after above changes.  Pass a file_location
22262         rather than a line number to handle_directive.
22263         * gensupport.c (queue_elem): Replace separate filename and lineno
22264         with a file_location.
22265         (queue_pattern): Replace filename and lineno arguments with a
22266         file_location.  Update after change to queue_elem.
22267         (process_define_predicate): Replace lineno argument with a
22268         file_location and use error_at for error reporting.  Update
22269         after above changes.
22270         (process_rtx): Likewise.
22271         (subst_pattern_match): Likewise.
22272         (get_alternatives_number): Likewise.
22273         (alter_predicate_for_insn): Likewise.
22274         (rtx_handle_directive): Likewise.
22275         (is_predicable): Update after above changes, using error_at rather
22276         than error_with_line.
22277         (has_subst_attribute): Likewise.
22278         (identify_predicable_attribute): Likewise.
22279         (alter_attrs_for_subst_insn): Likewise.
22280         (process_one_cond_exec): Likewise.
22281         (process_substs_on_one_elem): Likewise.
22282         (process_define_subst): Likewise.
22283         (check_define_attr_duplicates): Likewise.
22284         (read_md_rtx): Update after change to queue_elem.
22286 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
22288         * genoutput.c (next_index_number): Delete.
22289         (data): Remove index_number.
22290         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
22291         (main): Remove manipulation of next_index_number.
22293 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
22295         * genattrtab.c (check_attr_value): Remove handling of null attrs.
22296         (make_canonical): Likewise.
22298 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
22300         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
22301         instead of adjust_address_nv.
22302         (restore_stack_nonlocal): Likewise.
22303         (nonlocal_goto): Likewise.
22305 2015-07-16  Tom de Vries  <tom@codesourcery.com>
22307         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
22308         not have a corresponding loop header phi.
22310 2015-07-16  Tom de Vries  <tom@codesourcery.com>
22312         * tree-parloops.c (create_loads_for_reductions): Handle case that
22313         reduction is unused.
22315 2015-07-16  Richard Biener  <rguenther@suse.de>
22317         PR tree-optimization/66894
22318         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
22319         about deriving NE_EXPR from truncated values.
22321 2015-07-16  Martin Liska  <mliska@suse.cz>
22323         * alloc-pool.h
22324         (object_allocator): Add new class.
22325         (pool_allocator::initialize): Use the underlying class.
22326         (pool_allocator::allocate): Likewise.
22327         (pool_allocator::remove): Likewise.
22328         (operator new): A new generic allocator.
22329         * asan.c (struct asan_mem_ref): Remove unused members.
22330         (asan_mem_ref_new): Replace new operator with
22331         object_allocator::allocate.
22332         (free_mem_ref_resources): Change deallocation.
22333         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
22334         with object_allocator.
22335         * config/sh/sh.c (add_constant): Replace new operator with
22336         object_allocator::allocate.
22337         (sh_reorg): Change call to a release method.
22338         * cselib.c (struct elt_list): Remove unused members.
22339         (new_elt_list): Replace new operator with
22340         object_allocator::allocate.
22341         (new_elt_loc_list): Likewise.
22342         (new_cselib_val): Likewise.
22343         (unchain_one_elt_list): Change delete operator with remove method.
22344         (unchain_one_elt_loc_list): Likewise.
22345         (unchain_one_value): Likewise.
22346         (cselib_finish): Release newly added static allocators.
22347         * cselib.h (struct cselib_val): Remove unused members.
22348         (struct elt_loc_list): Likewise.
22349         * df-problems.c (df_chain_alloc): Replace pool_allocator with
22350         object_allocator.
22351         * df-scan.c (struct df_scan_problem_data): Likewise.
22352         (df_scan_alloc): Likewise.
22353         * df.h (struct dataflow): Likewise.
22354         * dse.c (struct read_info_type): Likewise.
22355         (struct insn_info_type): Likewise.
22356         (struct dse_bb_info_type): Likewise.
22357         (struct group_info): Likewise.
22358         (struct deferred_change): Likewise.
22359         (get_group_info): Likewise.
22360         (delete_dead_store_insn): Likewise.
22361         (free_read_records): Likewise.
22362         (replace_read): Likewise.
22363         (check_mem_read_rtx): Likewise.
22364         (scan_insn): Likewise.
22365         (dse_step1): Likewise.
22366         (dse_step7): Likewise.
22367         * et-forest.c (struct et_occ): Remove unused members.
22368         (et_new_occ): Use allocate instead of new operator.
22369         (et_new_tree): Likewise.
22370         (et_free_tree): Call release method explicitly.
22371         (et_free_tree_force): Likewise.
22372         (et_free_pools): Likewise.
22373         (et_split): Use remove instead of delete operator.
22374         * et-forest.h (struct et_node): Remove unused members.
22375         * ipa-cp.c: Change pool_allocator to object_allocator.
22376         * ipa-inline-analysis.c: Likewise.
22377         * ipa-profile.c: Likewise.
22378         * ipa-prop.c: Likewise.
22379         * ipa-prop.h: Likewise.
22380         * ira-build.c (initiate_cost_vectors): Cast return value.
22381         (ira_allocate_cost_vector): Likewise.
22382         * ira-color.c (struct update_cost_record): Remove unused members.
22383         * lra-int.h (struct lra_live_range): Likewise.
22384         (struct lra_copy): Likewise.
22385         (struct lra_insn_reg): Likewise.
22386         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
22387         * lra.c (new_insn_reg): Replace new operator with allocate method.
22388         (free_insn_regs): Same for operator delete.
22389         (finish_insn_regs): Release new static allocator.
22390         (finish_insn_recog_data): Likewise.
22391         (lra_free_copies): Replace delete operator with remove method.
22392         (lra_create_copy): Replace operator new with allocate method.
22393         (invalidate_insn_data_regno_info): Same for remove method.
22394         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
22395         (free_debug_insn_changes): Replace delete operator with remove method.
22396         (replace_oldest_value_reg): Replace operator new with allocate method.
22397         (pass_cprop_hardreg::execute): Release new static variable.
22398         * sched-deps.c (sched_deps_init): Change pool_allocator to
22399         object_allocator.
22400         * sel-sched-ir.c: Likewise.
22401         * sel-sched-ir.h: Likewise.
22402         * stmt.c (expand_case): Likewise.
22403         (expand_sjlj_dispatch_table): Likewise.
22404         * tree-sra.c (struct access): Remove unused members.
22405         (struct assign_link): Likewise.
22406         (sra_deinitialize): Release newly added static pools.
22407         (create_access_1):Replace operator new with allocate method.
22408         (build_accesses_from_assign): Likewise.
22409         (create_artificial_child_access): Likewise.
22410         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
22411         pool_allocator to object_allocator.
22412         * tree-ssa-pre.c: Likewise.
22413         * tree-ssa-reassoc.c: Likewise.
22414         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
22415         * tree-ssa-strlen.c: Likewise.
22416         * tree-ssa-structalias.c: Likewise.
22417         * var-tracking.c (onepart_pool_allocate): New function.
22418         (unshare_variable): Use the newly added function.
22419         (variable_merge_over_cur): Likewise.
22420         (variable_from_dropped): Likewise.
22421         (variable_was_changed): Likewise.
22422         (set_slot_part): Likewise.
22423         (emit_notes_for_differences_1): Likewise.
22424         (vt_finalize): Release newly added static pools.
22426 2015-07-16  Martin Jambor  <mjambor@suse.cz>
22428         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
22429         all uses.  Fix two typos in its general comment.
22430         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
22432 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
22434         * config/i386/linux-common.h (LINK_MPX): New.
22435         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
22436         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
22437         indicating '-z bndplt' support by linker.
22438         * configure: Regenerate.
22439         * config.in: Regenerate.
22441 2015-07-16  Richard Biener  <rguenther@suse.de>
22443         * fold-const.c (fold_widened_comparison): Remove.
22444         (fold_sign_changed_comparison): Likewise.
22445         (fold_comparison): Move widened and sign-changed comparison
22446         simplification ...
22447         * match.pd: ... to patterns here.
22448         * generic-match-head.c: Include target.h.
22449         * gimple-match-head.c: Likewise.
22451 2015-07-16  Richard Biener  <rguenther@suse.de>
22453         * tree-ssa-dom.c (dom_valueize): New function.
22454         (record_temporary_equivalences): Also record equivalences
22455         for dominating stmts that have uses of equivalences we are
22456         about to record.
22458 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
22460         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
22461         add_autoinc_candidates.
22462         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
22463         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
22464         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
22465         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
22466         Call new function.
22467         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
22468         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
22469         Remove parameter struct iv*.  Call add_autoinc_candidates here.
22470         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
22471         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
22472         Call new function.
22473         (find_iv_candidates): Call new functions.
22475 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
22477         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
22478         uninitialized-variable warning.
22480 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
22482         PR target/65249
22483         * config/sh/sh.md (movdi): Split simple reg move to two movsi
22484         when the destination is R0.
22486 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
22488         PR target/66866
22489         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
22490         * config/i386/i386.c (ix86_expand_pextr): New function.
22491         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
22492         for non-lowpart subregs.
22493         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
22494         (insv<mode>): Use SWI248 mode iterator.
22495         (insv<mode>_1): Ditto.
22497 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
22498             Sebastian Pop  <s.pop@samsung.com>
22500         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
22501         iterator to use_stmt.
22503 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
22504             Sebastian Pop <s.pop@samsung.com>
22506         * graphite-scop-detection.c (build_scops_1): Discard scops for
22507         which entry==exit.
22509 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
22510             Sebastian Pop <s.pop@samsung.com>
22512         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
22513         case of a return statement in scop.
22515 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
22516             Sebastian Pop <s.pop@samsung.com>
22518         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
22519         INTEGER_TYPE parameters.
22520         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
22521         VECTOR_CST in scan_tree_for_params.
22522         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
22524 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
22526         * gimple-pretty-print.h: Don't include pretty-print.h.
22527         * tree-streamer.h: Don't include lto-streamer.h.
22528         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
22529         * gimple-streamer-in.c: Remove redundant includes.
22530         * gimple-streamer-out.c: Likewise.
22531         * ipa-devirt.c: Likewise.
22532         * ipa-icf.c: Likewise.
22533         * ipa-inline-analysis.c: Likewise.
22534         * ipa-polymorphic-call.c: Likewise.
22535         * ipa-profile.c: Likewise.
22536         * ipa-prop.c: Likewise.
22537         * ipa-pure-const.c: Likewise.
22538         * lto-cgraph.c: Likewise.
22539         * lto-streamer-in.c: Likewise.
22540         * lto-streamer-out.c: Likewise.
22541         * lto-streamer.c: Likewise.
22542         * tree-streamer-in.c: Likewise.
22543         * tree-streamer-out.c: Likewise.
22544         * tree-streamer.c: Likewise.
22546 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
22548         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
22549         include input.h.
22550         * opts.c: Remove multiline #include comment.
22552 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
22554         * config/nvptx/mkoffload.c (process): Add C++ protection to
22555         emitted code.
22557 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
22559         PR target/66854
22560         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
22561         null before IEEE 128-bit floating point support patch.
22563 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22565         * simplify-rtx.c (simplify_ternary_operation): Add simplification
22566         for (!c) != {0,...,0} ? a : b for vector modes.
22568 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
22569             Martin Jambor  <mjambor@suse.cz>
22571         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
22572         struct func_body_info* instead of struct ipa_node_params*, expecting
22573         fbi->info to be filled in.  Replace throughout.  Adjust call to
22574         ipa_load_from_parm_agg.
22575         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
22576         instead of struct ipa_node_params*.  Adjust calls to other functions
22577         so that they pass either fbi or fbi->info.
22578         (set_switch_stmt_execution_predicate): Likewise.
22579         (will_be_nonconstant_predicate): Likewise.
22580         (compute_bb_predicates): Likewise.
22581         (estimate_function_body_sizes): Move asserts earlier.  Fill in
22582         struct func_body_info, replace parms_info with fbi.info.  Adjust
22583         calls to functions that now accept struct func_body_info.
22584         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
22585         (struct func_body_info): Likewise.
22586         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
22587         remove static.  Adjust callers.
22588         (ipa_load_from_parm_agg): Remove.
22589         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
22590         (func_body_info): Likewise.
22591         (ipa_load_from_parm_agg): Adjust prototype.
22593 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22595         * gensupport.c (rtx_handle_directive): Adjust.
22596         * read-rtl.c (apply_iterators): Take vector to add rtxs to
22597         instead of expr list rtx.
22598         (add_define_attr_for_define_subst): Likewise.
22599         (add_define_subst_attr): Likewise.
22600         (read_subst_mapping): Likewise.
22601         (read_rtx): Likewise.
22602         * rtl.h (read_rtx): Adjust.
22604 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22606         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
22608 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
22610         PR target/58066
22611         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
22612         (*tls_local_dynamic_base_64_<mode>): Ditto.
22613         (*tls_local_dynamic_base_64_largepic): Ditto.
22614         (tls_global_dynamic_64_<mode>): Update expander pattern.
22615         (tls_local_dynamic_base_64_<mode>): Ditto.
22617 2015-07-15  Richard Biener  <rguenther@suse.de>
22619         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
22620         and bool_var == 1 -> bool_var simplifications ...
22621         * match.pd: ... to patterns here.  Factor out negate_expr_p
22622         cases from the A - B -> A + (-B) patterns as negate_expr_p
22623         predicate and add a -(A + B) -> (-B) - A pattern.
22625 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
22627         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
22629 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
22630             Robert Suchanek  <robert.suchanek@imgtec.com>
22632         * config/mips/mips.c (mips_int_mask): New enum.
22633         (mips_shadow_set): Likewise.
22634         (int_mask): New variable.
22635         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
22636         (machine_function): Add int_mask and use_shadow_register_set.
22637         (mips_attribute_table): Add attribute handlers for interrupt and
22638         use_shadow_register_set.
22639         (mips_interrupt_mask): New static function.
22640         (mips_handle_interrupt_attr): Likewise.
22641         (mips_handle_use_shadow_register_set_attr): Likewise.
22642         (mips_use_shadow_register_set): Change return type to enum
22643         mips_shadow_set.  Add argument handling for use_shadow_register_set
22644         attribute.
22645         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
22646         compare with mips_shadow_set enum.
22647         (mips_compute_frame_info): Add interrupt mask and
22648         use_shadow_register_set to per-function information structure.
22649         Add a stack slot for EPC unconditionally.
22650         (mips_expand_prologue): Compare use_shadow_register_set value
22651         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
22652         masked interrupt register but in EIC mode use K0 and save Cause in K0.
22653         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
22654         copying the stack pointer from the shadow register set.
22655         * config/mips/mips.h (SR_IM0): New define.
22656         * config/mips/mips.md (mips_rdpgpr): Rename to...
22657         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
22658         * doc/extend.texi (Declaring Attributes of Functions): Document
22659         optional arguments for interrupt and use_shadow_register_set
22660         attributes.
22662 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
22664         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
22665         interrupt attribute.
22666         (mips_expand_prologue): Disable the floating point unit in an ISR.
22667         * config/mips/mips.h (SR_COP1): New define.
22669 2015-07-15  Richard Biener  <rguenther@suse.de>
22671         * genmatch.c (parser::peek, parser::peek_ident): Add argument
22672         to tell how many tokens to peek ahead (default 1).
22673         (parser::eat_token, parser::eat_ident): Return token consumed.
22674         (parser::parse_result): Parse new switch statement.
22675         * match.pd: Use case statements where appropriate.
22677 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
22679         PR rtl-optimization/58066
22680         * calls.c (expand_call): Precompute register parameters before stack
22681         alignment is performed.
22683 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
22685         PR rtl-optimization/66838
22686         * postreload.c (reload_cse_move2add): Also process
22687         CALL_INSN_FUNCTION_USAGE when resetting information of
22688         call-clobbered registers.
22690 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22691             Cesar Philippidis  <cesar@codesourcery.com>
22692             Chung-Lin Tang  <cltang@codesourcery.com>
22694         * config/nios2/constraints.md (U, v): New constraints.
22695         * config/nios2/predicates.md (rdprs_dcache_operand): New.
22696         (ldstex_memory_operand): New.
22697         * config/nios2/sync.md: New file.
22698         * config/nios2/nios2.md (unspecv): Add new builtin function
22699         UNSPECV codes.
22700         (rdprs, flushd, flushda, wrpie, eni): New patterns.
22701         (top-level): Include sync.md.
22702         * config/nios2/nios2.c (N2_FTYPES): Add function types for
22703         new builtins.
22704         (N2_BUILTINS): Add arch field setting, add new builtins.
22705         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
22706         for arch field.
22707         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
22708         Also handle ldex/stex/ldsex/stsex builtins.
22709         (nios2_expand_rdprs_builtin): New function.
22710         (nios2_expand_cache_builtin): New function.
22711         (nios2_expand_wrpie_builtin): New function.
22712         (nios2_expand_eni_builtin): New function.
22713         (nios2_expand_builtin): Add arch field handling and new builtin
22714         cases.
22715         * doc/extend.texi (Altera Nios II Built-in Functions): Document
22716         new builtins.
22717         * doc/md.texi (Machine Constraints): Document U and v constraints.
22719 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22720             Cesar Philippidis  <cesar@codesourcery.com>
22721             Chung-Lin Tang  <cltang@codesourcery.com>
22723         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
22724         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
22725         callee_save_reg_size and uses_anonymous_args fields.
22726         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
22727         (nios2_create_cfa_notes): New function.
22728         (nios2_adjust_stack): New function for adjusting stack.
22729         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
22730         Use nios2_adjust_stack.
22731         (nios2_expand_epilogue): Likewise.
22732         (nios2_expand_return): New function.
22733         (nios2_can_use_return_insn): Update for CDX pop.n usage.
22734         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
22735         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
22736         * config/nios2/nios2.md (return): Use nios2_expand_return.
22738 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22739             Cesar Philippidis  <cesar@codesourcery.com>
22740             Chung-Lin Tang  <cltang@codesourcery.com>
22742         * config/nios2/predicates.md (pop_operation): New.
22743         (ldwm_operation, stwm_operation): New.
22744         (nios2_hard_register_operand): New.
22745         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
22746         (ldstwm_operation_p): Declare.
22747         (gen_ldstwm_peep): Declare.
22748         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
22749         (base_reg_adjustment_p): New.
22750         (pop_operation_p): New.
22751         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
22752         (nios2_ldstwm_regset_p): New.
22753         (ldstwm_operation_p): New.
22754         (gen_ldst): New.
22755         (nios2_ldst_parallel): New.
22756         (struct ldswm_operand): Declare.
22757         (compare_ldstwm_operands): New.
22758         (can_use_cdx_ldstw): New.
22759         (gen_ldstwm_peep): New.
22760         * config/nios2/nios2-ldstwm.sml: New.
22761         * config/nios2/nios2.md: Include ldstwm.md.
22762         * config/nios2/ldstwm.md: Generated.
22764 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22765             Cesar Philippidis  <cesar@codesourcery.com>
22766             Chung-Lin Tang  <cltang@codesourcery.com>
22768         * config/nios2/nios2.h (LABEL_ALIGN): Define.
22769         (REG_ALLOC_ORDER): Define.
22770         (ADJUST_REG_ALLOC_ORDER): Define.
22771         (HONOR_REG_ALLOC_ORDER): Define.
22772         (CDX_REG_P): Define.
22773         (ANDCLEAR_INT): Define.
22774         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
22775         (nios2_label_align): Declare.
22776         (nios2_cdx_narrow_form_p): Declare.
22777         (nios2_adjust_reg_alloc_order): Declare.
22778         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
22779         operation.
22780         (nios2_large_unspec_reloc_p): New function, split from...
22781         (nios2_legitimate_pic_operand_p): ...here.
22782         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
22783         (nios2_print_operand_punct_valid_p): New.
22784         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
22785         (split_mem_address): New.
22786         (split_alu_insn): New.
22787         (cdxreg): New.
22788         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
22789         (enum nios2_add_insn_kind): New.
22790         (nios2_add_insn_names, nios2_add_insn_narrow): New.
22791         (nios2_add_insn_classify): New.
22792         (nios2_add_insn_asm): New.
22793         (nios2_cdx_narrow_form_p): New.
22794         (label_align, min_labelno, max_labelno): New.
22795         (nios2_reorg): New.
22796         (nios2_label_align): New.
22797         (nios2_adjust_reg_alloc_order): New.
22798         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
22799         (TARGET_MACHINE_DEPENDENT_REORG): Define.
22800         * config/nios2/constraints.md (P): New constraint.
22801         * config/nios2/predicates.md (const_and_operand): New.
22802         (and_operand): New.
22803         (stack_memory_operand): New.
22804         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
22805         (length): Update to use nios2_cdx_narrow_form_p().
22806         (type): Add new insn type values.
22807         (control, alu, st, ld, shift): Update insn reservations with
22808         new insn type values.
22809         (*high, *lo_sum): Define new insn patterns for constant generation.
22810         (movqi_internal, movhi_internal, movsi_internal): Reduce
22811         alternatives, update asm template to handle CDX variants, update
22812         type attributes.
22813         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
22814         template, update type attributes.
22815         (extendhisi2, extendqi<mode>2): Likewise.
22816         (addsi3): Change to use function for asm string.
22817         (subsi3): Add CDX notation to asm template, update type attributes.
22818         (negsi3, one_cmplsi3): Likewise.
22819         (andsi3): New pattern, specialized from logical patterns.
22820         (<code>si3): Remove and case, combine alternatives, update asm
22821         template.
22822         (<shift_op>si3): Add CDX notation, update type attributes.
22823         (rotrsi3): Update type attribute.
22824         (*merge, extzv, insv): New insn patterns.
22825         (return): Change to define_expand.
22826         (simple_return): Add CDX notation, update type attributes.
22827         (indirect_jump): Add CDX notation.
22828         (jump): Update asm cases, update length attribute expression.
22829         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
22830         (nios2_cbranch): Update asm cases and length attribute expression
22831         to handle CDX variants.
22832         (nios2_cmp<code>): Update asm template.
22833         (nop): Add CDX notation, update type attributes.
22834         (trap): Add CDX notation.
22835         (ctrapsi4): Update asm cases and length attribute expression to
22836         handle CDX variant.
22837         * doc/md.texi (Machine Constraints): Document P constraint.
22839 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22840             Cesar Philippidis  <cesar@codesourcery.com>
22841             Chung-Lin Tang  <cltang@codesourcery.com>
22843         * config/nios2/nios2.h (SMALL_INT12): New macro.
22844         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
22845         (nios2_valid_addr_expr_p): Use it.
22846         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
22847         with implicit "io" instructions on R2.
22848         * config/nios2/constraints.md (w): New constraint.
22849         * config/nios2/predicates.md (ldstio_memory_operand): New.
22850         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
22851         operand predicate and constraint.
22852         (ld<bh>io_signed, st<bhw>io>): Likewise.
22853         * doc/md.texi (Machine Constraints): Document w constraint.
22855 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22856             Cesar Philippidis  <cesar@codesourcery.com>
22857             Chung-Lin Tang  <cltang@codesourcery.com>
22859         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
22860         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
22861         Nios II architecture level.
22862         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
22863         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
22864         (OPTION_DEFAULT_SPECS): Define.
22865         (ASM_SPEC): Add -march= spec strings.
22866         * config/nios2/nios2.c (nios2_option_override): Check for
22867         conflicts involving new options.
22868         * config.gcc (nios2*-*-*): Support --with-arch=.
22869         * doc/invoke.texi (Option Summary, Nios II Options): Document
22870         -march=, -mbmx, and -mcdx.
22872 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
22874         PR rtl-optimization/66626
22875         * lra-constraints.c (lra_constraints): Prevent equivalence
22876         substitution for static chain pseudo in functions with nonlocal
22877         goto.
22879 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22881         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
22882         (nios2_emit_stack_limit_check): Add size parameter.  Handle
22883         -fstack-limit-symbol as well as -fstack-limit-register.
22884         (nios2_expand_prologue): Emit only a single stack limit check,
22885         even if multiple stack adjustments are required.
22886         (nios2_option_override): Diagnose unsupported combination of -fpic
22887         and -stack-limit-symbol.
22889 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
22891         * Makefile.in (top_srcdir): New.
22892         * configure.ac: Use AM_ZLIB.
22893         * configure: Regeneated.
22895 2015-07-14  Matthias Klose  <doko@ubuntu.com>
22897         PR target/66840
22898         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
22900 2015-07-14  Richard Biener  <rguenther@suse.de>
22902         PR tree-optimization/66863
22903         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
22904         what we record for conversion use stmt lhs inequalities.
22906 2015-07-14  Richard Biener  <rguenther@suse.de>
22908         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
22909         (decision_tree::gen_gimple): Likewise.
22911 2015-07-14  Tom de Vries  <tom@codesourcery.com>
22913         * gcc.c (greater_than_spec_func): Declare forward.
22914         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
22915         -ftree-parallelize-loops={0,1}.
22916         (static_spec_functions): Add greater_than_spec_func function with name
22917         "gt".
22918         (greater_than_spec_func): New function.
22920 2015-07-14  Richard Biener  <rguenther@suse.de>
22922         * tree-ssa-dom.c (record_temporary_equivalences): Merge
22923         wideing type conversion case from record_equivalences_from_incoming_edge
22924         and use record_equality to record equivalences.
22925         (record_equivalences_from_incoming_edge): Call
22926         record_temporary_equivalences.
22928 2015-07-14  Richard Biener  <rguenther@suse.de>
22930         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
22931         (struct if_expr): New.
22932         (struct with_expr): Likewise.
22933         (is_a_helper): Add helpers for if_expr and with_expr.
22934         (struct simplify): Add simplify_kind enum and member.  Remove
22935         ifexpr_vec member.
22936         (simplify::simplify): Adjust.
22937         (lower_commutative): Adjust.
22938         (lower_opt_convert): Likewise.
22939         (lower_cond): Likewise.
22940         (replace_id): Handle with_expr and if_expr.
22941         (lower_for): Adjust.
22942         (dt_simplify::gen_1): New recursive worker, split out from ...
22943         (dt_simplify::gen): ... here.  Deal with if and with expansion
22944         recursively.
22945         (capture_info::capture_info): Take context argument
22946         (capture_info::walk_result): Only analyze specific result.
22947         (parser::parse_result): New function.
22948         (parser::parse_simplify): Adjust to parse ifs with then end
22949         else case.
22950         (parser::parse_if): Simplify.
22951         (parser::parse_pattern): Pass down simplify kind.
22952         * match.pd: Convert if structure to new syntax.
22954 2015-07-13  Marek Polacek  <polacek@redhat.com>
22956         * rtl.c (rtx_equal_p_cb): Fix typo.
22958 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
22960         * omega.h: Don't include config.h, don't include params.h again if
22961         omega.h has already been included.
22962         * graphite-poly.h: Include sese.h.
22963         * graphite.c: Don't include sese.h, remove needless includes and
22964         minimize includes outside #ifdef HAVE_isl block.
22965         * graphite-blocking.c: Don't include sese.h, remove needless includes,
22966         and wrap entire file in #ifdef HAVE_isl
22967         * graphite-dependences.c: Likewise.
22968         * graphite-interchange.c: Likewise.
22969         * graphite-isl-ast-to-gimple.c: Likewise.
22970         * graphite-optimize-isl.c: Likewise.
22971         * graphite-poly.c: Likewise.
22972         * graphite-scop-detection.c: Likewise.
22973         * graphite-sese-to-poly.c: Likewise.
22975 2015-07-13  Tom de Vries  <tom@codesourcery.com>
22977         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
22979 2015-07-13  Renlin Li  <renlin.li@arm.com>
22981         PR rtl/66556
22982         * simplify-rtx.c (simplify_const_relational_operation): Add
22983         side_effects_p checks.
22985 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
22987         * bitmap.h: Fix double word typos.
22988         * builtins.c: Same.
22989         * calls.c: Same.
22990         * cfgloopmanip.c: Same.
22991         * cgraph.c: Same.
22992         * cgraph.h: Same.
22993         * cgraphclones.c: Same.
22994         * combine.c: Same.
22995         * config/aarch64/aarch64-protos.h: Same.
22996         * config/aarch64/aarch64.c: Same.
22997         * config/aarch64/aarch64.md: Same.
22998         * config/arm/arm.md: Same.
22999         * config/arm/arm1020e.md: Same.
23000         * config/arm/arm1026ejs.md: Same.
23001         * config/arm/arm926ejs.md: Same.
23002         * config/arm/fa526.md: Same.
23003         * config/arm/fa606te.md: Same.
23004         * config/arm/fa626te.md: Same.
23005         * config/arm/fa726te.md: Same.
23006         * config/arm/fmp626.md: Same.
23007         * config/darwin.c: Same.
23008         * config/epiphany/epiphany.c: Same.
23009         * config/frv/frv.c: Same.
23010         * config/ft32/ft32.c: Same.
23011         * config/gnu-user.h: Same.
23012         * config/h8300/constraints.md: Same.
23013         * config/i386/i386.c: Same.
23014         * config/i386/i386.md: Same.
23015         * config/iq2000/iq2000.md: Same.
23016         * config/mips/mips.c: Same.
23017         * config/mmix/mmix.md: Same.
23018         * config/moxie/moxie.c: Same.
23019         * config/nds32/nds32.md: Same.
23020         * config/pa/pa.h: Same.
23021         * config/rs6000/aix.h: Same.
23022         * config/rs6000/rs6000.h: Same.
23023         * config/sh/sh.c: Same.
23024         * config/tilegx/tilegx.md: Same.
23025         * config/tilepro/gen-mul-tables.cc: Same.
23026         * cse.c: Same.
23027         * dbxout.c: Same.
23028         * doc/invoke.texi: Same.
23029         * dse.c: Same.
23030         * dwarf2out.c: Same.
23031         * final.c: Same.
23032         * gcc.c: Same.
23033         * genmatch.c: Same.
23034         * gimplify.c: Same.
23035         * hash-table.h: Same.
23036         * internal-fn.c: Same.
23037         * ipa-cp.c: Same.
23038         * ipa-devirt.c: Same.
23039         * ipa-icf.c: Same.
23040         * ipa-icf.h: Same.
23041         * ipa-profile.c: Same.
23042         * ipa-prop.c: Same.
23043         * ipa-prop.h: Same.
23044         * ira.c: Same.
23045         * omp-low.c: Same.
23046         * reg-stack.c: Same.
23047         * regcprop.c: Same.
23048         * reorg.c: Same.
23049         * rtl.h: Same.
23050         * sbitmap.h: Same.
23051         * tree-eh.c: Same.
23052         * tree-inline.c: Same.
23053         * tree-sra.c: Same.
23054         * tree-ssa-dom.c: Same.
23055         * tree-ssa-loop-ivopts.c: Same.
23056         * tree-ssa-structalias.c: Same.
23057         * tree-ssa-tail-merge.c: Same.
23058         * tree-ssa-ter.c: Same.
23059         * tree-ssa-threadupdate.c: Same.
23060         * tree-ssa-uninit.c: Same.
23061         * tree-ssanames.c: Same.
23062         * tree-vect-loop-manip.c: Same.
23063         * tree-vrp.c: Same.
23064         * tree.c: Same.
23065         * valtrack.c: Same.
23066         * vec.h: Same.
23068 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
23070         PR middle-end/66726
23071         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
23072         tree_ssa_phiopt_worker): Call it.
23074 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
23076         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
23077         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
23078         REG_EQUAL note.
23080 2015-07-11  Marek Polacek  <polacek@redhat.com>
23082         PR middle-end/66353
23083         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
23084         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
23085         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
23086         rather than bb_has_abnormal_call_pred.
23087         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
23088         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
23089         rather than bb_has_abnormal_call_pred.
23091 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
23093         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
23094         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
23095         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
23096         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
23097         v850_legitimate_address_p): New functions.
23098         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
23100 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
23102         PR target/66819
23103         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
23104         indirect sibcall with register arguments if register available
23105         for argument passing.
23106         (init_cumulative_args): Set cfun->machine->arg_reg_available
23107         to (cum->nregs > 0) or to true if function has a variable
23108         argument list.
23109         (function_arg_advance_32): Set cfun->machine->arg_reg_available
23110         to false if cum->nregs <= 0.
23111         * config/i386/i386.h (machine_function): Add arg_reg_available.
23113 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
23115         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
23116         and gen_higpart instead of gen_rtx_SUBREG.
23117         * config/i386/i386.md
23118         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
23119         (read-modify peephole2): Use gen_lowpart instead of
23120         gen_rtx_SUBREG for operand 5.
23122 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
23124         * config/tilepro/gen-mul-tables.cc (main): Change include list for
23125         generated files.
23126         * config/tilepro/mul-tables.c: Regenerate.
23127         * config/tilegx/mul-tables.c: Regenerate.
23129 2015-07-10  Richard Biener  <rguenther@suse.de>
23131         * fold-const.c (distribute_bit_expr): Remove.
23132         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
23133         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
23134         to A & (B | C) and simplifying A << C1 << C2 to ...
23135         * match.pd: ... patterns here.
23137 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
23139         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23140         Mark mem as READONLY and NOTRAP for PIC symbol.
23142 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
23144         * gimple-predict.h: New file.
23145         (gimple_predict_predictor, gimple_predict_set_predictor,
23146         gimple_predict_outcome, gimple_predict_set_outcome,
23147         gimple_build_predict): Relocate here.
23148         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
23149         gimple_predict_outcome, gimple_predict_set_outcome): Move to
23150         gimple-predict.h.
23151         * gimple.c (gimple_build_predict): Move to gimple-predict.h
23152         * basic-block.h: Don't include cfghooks.h.
23153         * backend.h: Don't include predict.h.
23154         * cfghooks.h: Include predict.h.
23155         * gimple-pretty-print.c: Include gimple-predict.h.
23156         * gimplify.c: Likwise.
23157         * predict.c: Adjust includes.
23158         * tree-inline.c: Likewise.
23159         * asan.c: Likewise.
23160         * auto-inc-dec.c: Likewise.
23161         * auto-profile.c: Likewise.
23162         * bb-reorder.c: Likewise.
23163         * builtins.c: Likewise.
23164         * caller-save.c: Likewise.
23165         * calls.c: Likewise.
23166         * cfganal.c: Likewise.
23167         * cfgbuild.c: Likewise.
23168         * cfg.c: Likewise.
23169         * cfgcleanup.c: Likewise.
23170         * cfgexpand.c: Likewise.
23171         * cfghooks.c: Likewise.
23172         * cfgloopanal.c: Likewise.
23173         * cfgloop.c: Likewise.
23174         * cfgloopmanip.c: Likewise.
23175         * cfgrtl.c: Likewise.
23176         * cgraph.c: Likewise.
23177         * cgraphunit.c: Likewise.
23178         * combine.c: Likewise.
23179         * cprop.c: Likewise.
23180         * cse.c: Likewise.
23181         * dce.c: Likewise.
23182         * dojump.c: Likewise.
23183         * dse.c: Likewise.
23184         * except.c: Likewise.
23185         * expmed.c: Likewise.
23186         * expr.c: Likewise.
23187         * final.c: Likewise.
23188         * fold-const.c: Likewise.
23189         * function.c: Likewise.
23190         * fwprop.c: Likewise.
23191         * gcc-plugin.h: Likewise.
23192         * gcse.c: Likewise.
23193         * genattrtab.c: Likewise.
23194         * genemit.c: Likewise.
23195         * gengtype.c: Likewise.
23196         * genopinit.c: Likewise.
23197         * genoutput.c: Likewise.
23198         * genpreds.c: Likewise.
23199         * genrecog.c: Likewise.
23200         * gimple-fold.c: Likewise.
23201         * gimple-iterator.c: Likewise.
23202         * gimple-ssa-isolate-paths.c: Likewise.
23203         * gimple-ssa-strength-reduction.c: Likewise.
23204         * graph.c: Likewise.
23205         * graphite-blocking.c: Likewise.
23206         * graphite.c: Likewise.
23207         * graphite-dependences.c: Likewise.
23208         * graphite-interchange.c: Likewise.
23209         * graphite-isl-ast-to-gimple.c: Likewise.
23210         * graphite-optimize-isl.c: Likewise.
23211         * graphite-poly.c: Likewise.
23212         * graphite-scop-detection.c: Likewise.
23213         * graphite-sese-to-poly.c: Likewise.
23214         * haifa-sched.c: Likewise.
23215         * ifcvt.c: Likewise.
23216         * internal-fn.c: Likewise.
23217         * ipa-cp.c: Likewise.
23218         * ipa-profile.c: Likewise.
23219         * ipa-split.c: Likewise.
23220         * ipa-utils.c: Likewise.
23221         * ira-build.c: Likewise.
23222         * ira-color.c: Likewise.
23223         * ira-conflicts.c: Likewise.
23224         * ira-costs.c: Likewise.
23225         * ira-emit.c: Likewise.
23226         * ira-lives.c: Likewise.
23227         * jump.c: Likewise.
23228         * loop-doloop.c: Likewise.
23229         * loop-init.c: Likewise.
23230         * loop-invariant.c: Likewise.
23231         * loop-unroll.c: Likewise.
23232         * lower-subreg.c: Likewise.
23233         * lra-assigns.c: Likewise.
23234         * lra.c: Likewise.
23235         * lra-coalesce.c: Likewise.
23236         * lra-constraints.c: Likewise.
23237         * lra-lives.c: Likewise.
23238         * lto-cgraph.c: Likewise.
23239         * lto-streamer-in.c: Likewise.
23240         * mode-switching.c: Likewise.
23241         * modulo-sched.c: Likewise.
23242         * omp-low.c: Likewise.
23243         * optabs.c: Likewise.
23244         * passes.c: Likewise.
23245         * postreload.c: Likewise.
23246         * postreload-gcse.c: Likewise.
23247         * profile.c: Likewise.
23248         * recog.c: Likewise.
23249         * regstat.c: Likewise.
23250         * reload1.c: Likewise.
23251         * reorg.c: Likewise.
23252         * rtlanal.c: Likewise.
23253         * sched-ebb.c: Likewise.
23254         * sel-sched-ir.c: Likewise.
23255         * sese.c: Likewise.
23256         * shrink-wrap.c: Likewise.
23257         * simplify-rtx.c: Likewise.
23258         * stmt.c: Likewise.
23259         * store-motion.c: Likewise.
23260         * tracer.c: Likewise.
23261         * trans-mem.c: Likewise.
23262         * tree-call-cdce.c: Likewise.
23263         * tree-cfg.c: Likewise.
23264         * tree-cfgcleanup.c: Likewise.
23265         * tree-chkp.c: Likewise.
23266         * tree-complex.c: Likewise.
23267         * tree-eh.c: Likewise.
23268         * tree-if-conv.c: Likewise.
23269         * tree-loop-distribution.c: Likewise.
23270         * tree-outof-ssa.c: Likewise.
23271         * tree-parloops.c: Likewise.
23272         * tree-predcom.c: Likewise.
23273         * tree-pretty-print.c: Likewise.
23274         * tree-profile.c: Likewise.
23275         * tree-sra.c: Likewise.
23276         * tree-ssa.c: Likewise.
23277         * tree-ssa-coalesce.c: Likewise.
23278         * tree-ssa-dce.c: Likewise.
23279         * tree-ssa-dom.c: Likewise.
23280         * tree-ssa-forwprop.c: Likewise.
23281         * tree-ssa-ifcombine.c: Likewise.
23282         * tree-ssa-loop-ch.c: Likewise.
23283         * tree-ssa-loop-im.c: Likewise.
23284         * tree-ssa-loop-ivcanon.c: Likewise.
23285         * tree-ssa-loop-ivopts.c: Likewise.
23286         * tree-ssa-loop-manip.c: Likewise.
23287         * tree-ssa-loop-prefetch.c: Likewise.
23288         * tree-ssa-loop-unswitch.c: Likewise.
23289         * tree-ssa-math-opts.c: Likewise.
23290         * tree-ssa-phiopt.c: Likewise.
23291         * tree-ssa-pre.c: Likewise.
23292         * tree-ssa-reassoc.c: Likewise.
23293         * tree-ssa-sink.c: Likewise.
23294         * tree-ssa-tail-merge.c: Likewise.
23295         * tree-ssa-threadedge.c: Likewise.
23296         * tree-ssa-threadupdate.c: Likewise.
23297         * tree-switch-conversion.c: Likewise.
23298         * tree-tailcall.c: Likewise.
23299         * tree-vect-data-refs.c: Likewise.
23300         * tree-vect-loop.c: Likewise.
23301         * tree-vect-loop-manip.c: Likewise.
23302         * tree-vectorizer.c: Likewise.
23303         * tree-vrp.c: Likewise.
23304         * ubsan.c: Likewise.
23305         * value-prof.c: Likewise.
23306         * varasm.c: Likewise.
23307         * var-tracking.c: Likewise.
23308         * config/aarch64/aarch64-builtins.c: Likewise.
23309         * config/aarch64/aarch64.c: Likewise.
23310         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23311         * config/alpha/alpha.c: Likewise.
23312         * config/arc/arc.c: Likewise.
23313         * config/arm/arm.c: Likewise.
23314         * config/avr/avr.c: Likewise.
23315         * config/bfin/bfin.c: Likewise.
23316         * config/c6x/c6x.c: Likewise.
23317         * config/cr16/cr16.c: Likewise.
23318         * config/cris/cris.c: Likewise.
23319         * config/darwin.c: Likewise.
23320         * config/darwin-c.c: Likewise.
23321         * config/epiphany/epiphany.c: Likewise.
23322         * config/epiphany/mode-switch-use.c: Likewise.
23323         * config/epiphany/resolve-sw-modes.c: Likewise.
23324         * config/fr30/fr30.c: Likewise.
23325         * config/frv/frv.c: Likewise.
23326         * config/ft32/ft32.c: Likewise.
23327         * config/h8300/h8300.c: Likewise.
23328         * config/i386/i386.c: Likewise.
23329         * config/i386/winnt.c: Likewise.
23330         * config/ia64/ia64.c: Likewise.
23331         * config/iq2000/iq2000.c: Likewise.
23332         * config/lm32/lm32.c: Likewise.
23333         * config/m32c/m32c.c: Likewise.
23334         * config/m32r/m32r.c: Likewise.
23335         * config/m68k/m68k.c: Likewise.
23336         * config/mcore/mcore.c: Likewise.
23337         * config/mep/mep.c: Likewise.
23338         * config/microblaze/microblaze.c: Likewise.
23339         * config/mips/mips.c: Likewise.
23340         * config/mmix/mmix.c: Likewise.
23341         * config/mn10300/mn10300.c: Likewise.
23342         * config/moxie/moxie.c: Likewise.
23343         * config/msp430/msp430.c: Likewise.
23344         * config/nds32/nds32.c: Likewise.
23345         * config/nds32/nds32-cost.c: Likewise.
23346         * config/nds32/nds32-fp-as-gp.c: Likewise.
23347         * config/nds32/nds32-intrinsic.c: Likewise.
23348         * config/nds32/nds32-isr.c: Likewise.
23349         * config/nds32/nds32-md-auxiliary.c: Likewise.
23350         * config/nds32/nds32-memory-manipulation.c: Likewise.
23351         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23352         * config/nds32/nds32-predicates.c: Likewise.
23353         * config/nios2/nios2.c: Likewise.
23354         * config/nvptx/nvptx.c: Likewise.
23355         * config/pa/pa.c: Likewise.
23356         * config/pdp11/pdp11.c: Likewise.
23357         * config/rl78/rl78.c: Likewise.
23358         * config/rs6000/rs6000.c: Likewise.
23359         * config/rx/rx.c: Likewise.
23360         * config/s390/s390.c: Likewise.
23361         * config/sh/sh.c: Likewise.
23362         * config/sh/sh-mem.cc: Likewise.
23363         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23364         * config/sh/sh_treg_combine.cc: Likewise.
23365         * config/sparc/sparc.c: Likewise.
23366         * config/spu/spu.c: Likewise.
23367         * config/stormy16/stormy16.c: Likewise.
23368         * config/tilegx/tilegx.c: Likewise.
23369         * config/tilepro/tilepro.c: Likewise.
23370         * config/v850/v850.c: Likewise.
23371         * config/vax/vax.c: Likewise.
23372         * config/visium/visium.c: Likewise.
23373         * config/xtensa/xtensa.c: Likewise.
23375 2015-07-10  Richard Biener  <rguenther@suse.de>
23377         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
23378         (decision_tree::gen_gimple): Likewise.
23379         (decision_tree::gen_generic): Likewise.
23381 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
23383         PR target/66813
23384         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
23385         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
23387 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
23389         PR middle-end/66820
23390         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
23391         or ORT_TASK contexts.
23392         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
23393         is non-zero.
23395 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23397         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
23398         above function.
23400 2015-07-10  Tom de Vries  <tom@codesourcery.com>
23402         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
23403         insert nit + 1 bound.
23405 2015-07-10  Richard Biener  <rguenther@suse.de>
23407         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
23408         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
23409         (if_convertible_loop_p_1): For this always compute bb predicates.
23410         (if_convertible_loop_p): And free them.
23412 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23414         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
23415         in dump message.
23417 2015-07-10  Richard Biener  <rguenther@suse.de>
23419         PR tree-optimization/66823
23420         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
23421         inverted predicate.
23423 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
23425         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
23426         to handle mips[32|64]r3 and mips[32|64]r5.
23428 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
23430         PR middle-end/66633
23431         * tree-nested.c (get_static_chain): Or in a flag into
23432         info->static_chain_added.
23433         (get_frame_field, get_nonlocal_debug_decl): Likewise.
23434         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
23435         2015-07-01 changes.
23436         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
23437         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
23438         add it to clauses.
23440         PR tree-optimization/66718
23441         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
23442         field.
23443         (vect_simd_lane_linear): New function.
23444         (vectorizable_simd_clone_call): Support using linear arguments for
23445         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
23447 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
23449         PR target/66821
23450         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
23452 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
23454         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
23455         Use machine mode, not enum machine_mode in the prototype.
23457         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
23458         classify 128-bit floating point support.
23459         (FLOAT128_IBM_P): Likewise.
23460         (FLOAT128_VECTOR_P): Likewise.
23461         (FLOAT128_2REG_P): Likewise.
23462         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
23463         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
23464         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
23465         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
23467         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
23468         tests against TFmode/TDmode, since those modes do not use VSX
23469         addresses.
23470         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
23471         support.
23472         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
23473         tests against TFmode, etc.
23474         (invalid_e500_subreg): Add tests against IFmode/KFmode.
23475         (reg_offset_addressing_ok_p): Likewise.
23476         (rs6000_legitimate_offset_address_p): Likewise.
23477         (rs6000_legitimize_address): Likewise.
23478         (rs6000_legitimize_reload_address): Likewise.
23479         (rs6000_legitimate_address_p): Clean up tests against TFmode and
23480         TDmode to use the new helper macros, which will include IFmode and
23481         KFmode.
23482         (rs6000_emit_move): Likewise.
23483         (rs6000_darwin64_record_arg_recurse): Likewise.
23484         (print_operand): Likewise.
23485         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
23486         that uses a single vector register as a vector and not as a
23487         floating point register in terms of the calling sequence.
23488         (rs6000_discover_homogeneous_aggregate): Likewise.
23489         (rs6000_return_in_memory): Likewise.
23490         (init_cumulative_args): Likewise.
23491         (rs6000_function_arg_boundary): Likewise.
23492         (rs6000_function_arg_advance_1): Likewise.
23493         (rs6000_function_arg): Likewise.
23494         (rs6000_pass_by_reference): Likewise.
23495         (rs6000_gimplify_va_arg): Likewise.
23496         (rs6000_secondary_reload_memory): Use machine_mode not enum
23497         machine mode.
23498         (rs6000_split_multireg_move): Use new helper macros.
23499         (spe_func_has_64bit_regs_p): Likewise.
23500         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
23501         (output_toc): Use new helper macros.
23502         (rs6000_register_move_cost): Likewise.
23503         (rs6000_function_value): Add IEEE 128-bit floating point calling
23504         sequence support.
23505         (rs6000_libcall_value): Likewise.
23506         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
23507         floating point support.
23508         (rs6000_vector_mode_supported_p): Likewise.
23510 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
23512         PR rtl-optimization/66782
23513         * lra-int.h (struct lra_insn_recog_data): Add comment about
23514         clobbered hard regs for arg_hard_regs.
23515         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
23516         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
23517         Add condition for processing used hard regs.
23518         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
23519         Process clobbered hard regs.
23521 2015-07-09  Michael Matz  <matz@suse.de>
23523         * genmatch.c (fprintf_indent): New function.
23524         (operand::gen_transform): Add indent parameter.
23525         (expr::gen_transform, c_expr::gen_transform,
23526         capture::gen_transform): Ditto and use fprintf_indent.
23527         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
23528         (dt_operand::gen, dt_operand::gen_predicate,
23529         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
23530         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
23531         (decision_tree::gen_gimple): Adjust calls and indent generated
23532         code.
23533         (decision_tree::gen_generic): Ditto.
23534         (write_predicate): Ditto.
23536 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
23538         PR target/66814
23539         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
23540         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
23541         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
23542         {GENERAL,SSE,MMX}_REG_P where appropriate.
23544 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
23546         * lto-streamer.h: Don't include target.h and alloc-pool.h.
23547         * builtins.c: Adjust includes.
23548         * gimple.c: Likewise.
23549         * ipa-icf.c: Likewise.
23550         * lto-opts.c: Likewise.
23551         * ipa-reference.c: Likewise.
23552         * lto-section-out.c: Likewise.
23553         * lto-streamer-in.c: Likewise.
23554         * lto-streamer-out.c: Likewise.
23555         * opts-global.c: Likewise.
23556         * symtab.c: Likewise.
23557         * tree-chkp.c: Likewise.
23558         * tree-ssa-live.c: Likewise.
23559         * tree-streamer-in.c: Likewise.
23560         * tree-streamer-out.c: Likewise.
23561         * config/darwin.c: Likewise.
23562         * config/i386/winnt.c: Likewise.
23564 2015-07-09  Richard Biener  <rguenther@suse.de>
23566         * genmatch.c (struct expr): Add force_single_use flag.
23567         (expr::expr): Add copy constructor.
23568         (capture_info::walk_match): Gather force_single_use captures.
23569         (expr::gen_transform): Use possibly NULLified sequence.
23570         (dt_simplify::gen): Apply single-use restrictions by NULLifying
23571         seq if any constrained expr is not single-use.
23572         (parser::parse_expr): Refactor to allow multiple flags.  Handle
23573         's' flag to force an expression have a single-use if the pattern
23574         simplifies to more than one statement.
23575         * match.pd: Convert most single_use conditionals to :s flags.
23577 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
23579         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
23580         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
23581         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
23583 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
23585         * flags.h: Don't include flag-types.h or options.h.
23586         * opts-common.c: Adjust includes.
23587         * opts-global.c: Likewise.
23588         * common/config/epiphany/epiphany-common.c: Likewise.
23590 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
23592         PR target/66818
23593         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
23594         for IA MCU.
23596 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
23598         PR target/66817
23599         * config/i386/i386.c (ix86_return_in_memory): Return true
23600         if int_size_in_bytes returns negative for IA MCU.
23602 2015-07-09  Marek Polacek  <polacek@redhat.com>
23604         PR tree-optimization/66718
23605         * Makefile.in (OBJS): Add gimple-laddress.o.
23606         * passes.def: Schedule pass_laddress.
23607         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
23608         * tree-pass.h (make_pass_laddress): Declare.
23609         * gimple-laddress.c: New file.
23611 2015-07-09  Richard Biener  <rguenther@suse.de>
23613         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
23615 2015-07-09  Richard Biener  <rguenther@suse.de>
23617         PR tree-optimization/66807
23618         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
23620 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
23622         * function.c (stack_protect_epilogue): Use if rather than switch for
23623         check targetm.have_stack_protect_test.
23625 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23627         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
23628         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
23629         * config/arc/arc.h: Likewise.
23630         * config/arm/arm.h: Likewise.
23631         * config/bfin/bfin.h: Likewise.
23632         * config/epiphany/epiphany.h: Likewise.
23633         * config/frv/frv.h: Likewise.
23634         * config/ia64/ia64.h: Likewise.
23635         * config/iq2000/iq2000.h: Likewise.
23636         * config/lm32/lm32.h: Likewise.
23637         * config/m32r/m32r.h: Likewise.
23638         * config/mcore/mcore.h: Likewise.
23639         * config/mep/mep.h: Likewise.
23640         * config/microblaze/microblaze.h: Likewise.
23641         * config/mips/mips.h: Likewise.
23642         * config/mmix/mmix.h: Likewise.
23643         * config/mn10300/mn10300.h: Likewise.
23644         * config/nds32/nds32.h: Likewise.
23645         * config/nios2/nios2.h: Likewise.
23646         * config/pa/pa.h: Likewise.
23647         * config/rl78/rl78.h: Likewise.
23648         * config/sh/sh.h: Likewise.
23649         * config/sparc/sparc.h: Likewise.
23650         * config/stormy16/stormy16.h: Likewise.
23651         * config/tilegx/tilegx.h: Likewise.
23652         * config/tilepro/tilepro.h: Likewise.
23653         * config/v850/v850.h: Likewise.
23654         * config/xtensa/xtensa.h: Likewise.
23655         * doc/tm.texi: Regenerate.
23656         * doc/tm.texi.in: Adjust.
23657         * combine.c (simplify_set): Likewise.
23658         (simplify_comparison): Likewise.
23659         * expr.c (store_constructor): Likewise.
23660         * internal-fn.c (expand_arith_overflow): Likewise.
23661         * reload.c (push_reload): Likewise.
23662         (find_reloads): Likewise.
23663         (find_reloads_subreg_address): Likewise.
23664         * reload1.c (eliminate_regs_1): Likewise.
23665         * rtlanal.c (nonzero_bits1): Likewise.
23666         (num_sign_bit_copies1): Likewise.
23667         * simplify-rtx.c (simplify_truncation): Likewise.
23669 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23671         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
23672         of AUTO_INC_DEC with the preprocessor.
23673         * combine.c (combine_instructions): Likewise.
23674         (can_combine_p): Likewise.
23675         (try_combine): Likewise.
23676         * emit-rtl.c (try_split): Likewise.
23677         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
23678         * lower-subreg.c (resolve_simple_move): Likewise.
23679         * lra.c (update_inc_notes): Likewise.
23680         * recog.c (asm_operand_ok): Likewise.
23681         (constrain_operands): Likewise.
23682         * regrename.c (scan_rtx_address): Likewise.
23683         * reload.c (update_auto_inc_notes): Likewise.
23684         (reg_inc_found_and_valid_p): Likewise.
23685         * reload1.c (reload): Likewise.
23686         (emit_input_reload_insns): Likewise.
23687         (delete_output_reload): Likewise.
23688         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
23689         * valtrack.c (cleanup_auto_inc_dec): Likewise.
23691 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23693         * rtl.h: Always define AUTO_INC_DEC.
23694         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
23695         * combine.c (combine_instructions): Likewise.
23696         (can_combine_p): Likewise.
23697         (try_combine): Likewise.
23698         * emit-rtl.c (try_split): Likewise.
23699         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
23700         * lower-subreg.c (resolve_simple_move): Likewise.
23701         * lra.c (update_inc_notes): Likewise.
23702         * recog.c (asm_operand_ok): Likewise.
23703         (constrain_operands): Likewise.
23704         * regrename.c (scan_rtx_address): Likewise.
23705         * reload.c (update_auto_inc_notes): Likewise.
23706         (find_equiv_reg): Likewise.
23707         * reload1.c (reload): Likewise.
23708         (reload_as_needed): Likewise.
23709         (choose_reload_regs): Likewise.
23710         (emit_input_reload_insns): Likewise.
23711         (delete_output_reload): Likewise.
23712         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
23713         * valtrack.c (cleanup_auto_inc_dec): Likewise.
23715 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23717         * combine.c (can_combine_def_p): Don't check the value of
23718         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
23719         (combinable_i3pat): Likewise.
23720         (mark_used_regs_combine): Likewise.
23721         * regrename.c (rename_chains): Likewise.
23722         * reload.c (find_reloads_address): Likewise.
23723         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
23725 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23727         * combine.c (update_rsp_from_reg_equal): Don't check if
23728         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
23729         (reg_nonzero_bits_for_combine): Likewise.
23730         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
23731         1.
23732         * config/frv/frv.h: Likewise.
23733         * config/lm32/lm32.h: Likewise.
23734         * config/mep/mep.h: Likewise.
23735         * config/mips/mips.h: Likewise.
23736         * config/rs6000/rs6000.h: Likewise.
23737         * config/sh/sh.h: Likewise.
23738         * config/tilegx/tilegx.h (enum reg_class): Likewise.
23739         * config/tilepro/tilepro.h: Likewise.
23740         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
23741         * doc/tm.texi: Regenerate.
23742         * doc/tm.texi.in: Adjust.
23743         * rtlanal.c (nonzero_bits1): Likewise.
23745 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23747         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
23748         with the preprocessor.
23749         (combine_instructions): Likewise.
23750         (try_combine): Likewise.
23751         (subst): Likewise.
23752         (distribute_notes): Likewise.
23754 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23756         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
23757         defined.
23758         (simplify_set): Likewise.
23759         * cse.c (cse_insn): Likewise.
23760         * fold-const.c (fold_single_bit_test): Likewise.
23761         (fold_unary_loc): Likewise.
23762         * postreload.c (reload_cse_simplify_set): Likewise.
23763         (reload_cse_simplify_operands): Likewise.
23765 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
23767         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
23768         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
23770 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
23772         PR target/66746
23773         * config/i386/x86intrin.h: Include <adxintrin.h> even if
23774         __iamcu__ is defined.
23776 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
23778         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
23780 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
23782         PR target/66523
23783         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
23784         names from preservation.
23786 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
23788         PR target/66806
23789         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
23790         change for IAMCU.
23791         (function_arg_advance_32): Don't pass vectors in registers for
23792         IAMCU.
23793         (function_arg_32): Likewise.
23794         (ix86_return_in_memory): Don't return vectors in registers for
23795         IAMCU.
23797 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
23799         PR middle-end/66334
23800         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
23801         hard regno live at the start of BB with incoming abnormal edges.
23802         * lra-lives.c (process_bb_lives): Ditto.
23804 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
23806         PR libgomp/65099
23807         * config/nvptx/mkoffload.c (main): Create an offload image only in
23808         64-bit configurations.
23810 2015-07-08  Martin Liska  <mliska@suse.cz>
23812         PR bootstrap/66744
23813         * tree-sra.c (create_access_1): Call ctor without brackets.
23814         (create_artificial_child_access): Likewise.
23816 2015-07-08  Richard Biener  <rguenther@suse.de>
23818         PR tree-optimization/66793
23819         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
23820         Properly split the block after stmts ending it.
23822 2015-07-08  Richard Biener  <rguenther@suse.de>
23824         PR tree-optimization/66794
23825         * passes.c (execute_function_todo): Assert that post-dominators
23826         are not computed.
23827         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
23828         Free post-dominators.
23830 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23832         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
23833         with early exit.
23835 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
23837         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
23838         more than or equal 8 and less than 32 when optimizing for size.
23840 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23842         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
23843         COSTS_N_INSNS (1) and increment it appropriately throughout the
23844         function.
23846 2015-07-08  Richard Biener  <rguenther@suse.de>
23848         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
23850 2015-07-08  Alan Modra  <amodra@gmail.com>
23852         * target.def (rtx_costs): Remove "code" param, add "mode".
23853         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
23854         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
23855         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
23856         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
23857         call.  Track mode when given in rtx.
23858         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
23859         (default_address_cost): Pass Pmode to rtx_cost.
23860         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
23861         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
23862         with NULL set.
23863         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
23864         (notreg_cost): Add mode param.  Use it.
23865         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
23866         mode param and pass to set_src_cost.  Update all calls.
23867         (hash_scan_set): Formatting.
23868         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
23869         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
23870         * hooks.h: Ditto.
23871         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
23872         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
23873         emit_store_flag): Update set_src_cost and rtx_cost calls.
23874         * auto-inc-dec.c (attempt_change): Likewise.
23875         * calls.c (precompute_register_parameters): Likewise.
23876         * combine.c (expand_compound_operation, make_extraction,
23877         force_to_mode, distribute_and_simplify_rtx): Likewise.
23878         * dojump.c (prefer_and_bit_test): Likewise.
23879         * dse.c (find_shift_sequence): Likewise.
23880         * expr.c (compress_float_constant): Likewise.
23881         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
23882         * ifcvt.c (noce_try_sign_mask): Likewise.
23883         * loop-doloop.c (doloop_optimize): Likewise.
23884         * loop-invariant.c (create_new_invariant): Likewise.
23885         * lower-subreg.c (shift_cost, compute_costs): Likewise.
23886         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
23887         lshift_cheap_p): Likewise.
23888         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
23889         try_replace_in_use, reload_cse_move2add): Likewise.
23890         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
23891         Likewise.
23892         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
23893         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
23894         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
23895         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
23896         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
23897         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
23898         to rtx_cost calls.
23899         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
23900         * config/arc/arc.c (arc_rtx_costs): Likewise.
23901         * config/arm/arm.c (arm_rtx_costs): Likewise.
23902         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
23903         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
23904         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
23905         * config/cris/cris.c (cris_rtx_costs): Likewise.
23906         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
23907         * config/frv/frv.c (frv_rtx_costs): Likewise.
23908         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
23909         * config/i386/i386.c (ix86_rtx_costs): Likewise.
23910         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
23911         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
23912         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
23913         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
23914         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
23915         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
23916         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
23917         * config/mep/mep.c (mep_rtx_cost): Likewise.
23918         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
23919         * config/mips/mips.c (mips_rtx_costs): Likewise.
23920         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
23921         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
23922         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
23923         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
23924         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
23925         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
23926         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
23927         * config/pa/pa.c (hppa_rtx_costs): Likewise.
23928         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
23929         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
23930         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
23931         * config/s390/s390.c (s390_rtx_costs): Likewise.
23932         * config/sh/sh.c (sh_rtx_costs): Likewise.
23933         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
23934         * config/spu/spu.c (spu_rtx_costs): Likewise.
23935         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
23936         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
23937         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
23938         * config/v850/v850.c (v850_rtx_costs): Likewise.
23939         * config/vax/vax.c (vax_rtx_costs): Likewise.
23940         * config/visium/visium.c (visium_rtx_costs): Likewise.
23941         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
23942         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
23943         "code" param, and pass as outer_code to first rtx_cost call.  Pass
23944         mode to rtx_cost calls.
23945         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
23946         calls.
23947         (aarch64_rtx_costs_wrapper): Update.
23948         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
23949         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
23950         rtx_cost calls.
23951         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
23952         and rtx_cost calls.
23953         (avr_operand_rtx_cost): Similarly.
23954         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
23955         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
23956         * config/mips/mips.c (mips_stack_address_p): Comment typo.
23957         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
23958         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
23959         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
23960         rtx_cost.
23961         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
23962         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
23963         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
23964         * doc/tm.texi: Regenerate.
23966 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
23968         * tree-core.h: Include symtab.h.
23969         * rtl.h: Include hard-reg-set.h but not flags.h.
23970         (HARD_CONST): Remove condition compilation involving HARD_CONST since
23971         hard-reg-set.h is always included.
23972         * regs.h: Don't include hard-reg-set.h or rtl.h.
23973         * cfg.h: Include dominance.h.
23974         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
23975         * backend.h: New.  Aggregate commonly used backend header files.
23976         * gimple-ssa.h: Don't include tree-hasher.h.
23977         * ssa.h: New.  Aggregate commonly used SSA header files.
23978         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
23979         * sel-sched-ir.h: Flatten includes.
23980         * lra-int.h: Flatten completely.
23981         * sel-sched-dump.h: Flatten includes.
23982         * ira-int.h: Flatten includes.
23983         * gimple-streamer.h: Remove all includes.
23984         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
23985         * resource.h: Flatten hard-reg-set.h and df.h.
23986         * sched-int.h: Flatten insn-arrt.h and df.h.
23987         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
23988         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
23989         * genattrtab.c (write_header): Adjust generated includes.
23990         * genautomata.c (main): Likewise.
23991         * genconditions.c (write-header): Likewise.
23992         * genemit.c (main): Likewise.
23993         * gengtype.c (open_base_files): Likewise.
23994         * genopinit.c (main): Likewise.
23995         * genoutput.c (output_prologue): Likewise.
23996         * genpeep.c (main): Likewise.
23997         * genpreds.c (write_insn_preds_c): Likewise.
23998         * genrecog.c (write_header): Likewise.
23999         * alias.c: Adjust includes.
24000         * asan.c: Likewise.
24001         * attribs.c: Likewise.
24002         * auto-inc-dec.c: Likewise.
24003         * auto-profile.c: Likewise.
24004         * bb-reorder.c: Likewise.
24005         * bt-load.c: Likewise.
24006         * builtins.c: Likewise.
24007         * caller-save.c: Likewise.
24008         * calls.c: Likewise.
24009         * ccmp.c: Likewise.
24010         * cfg.c: Likewise.
24011         * cfganal.c: Likewise.
24012         * cfgbuild.c: Likewise.
24013         * cfgcleanup.c: Likewise.
24014         * cfgexpand.c: Likewise.
24015         * cfghooks.c: Likewise.
24016         * cfgloop.c: Likewise.
24017         * cfgloopanal.c: Likewise.
24018         * cfgloopmanip.c: Likewise.
24019         * cfgrtl.c: Likewise.
24020         * cgraph.c: Likewise.
24021         * cgraphbuild.c: Likewise.
24022         * cgraphclones.c: Likewise.
24023         * cgraphunit.c: Likewise.
24024         * cilk-common.c: Likewise.
24025         * combine-stack-adj.c: Likewise.
24026         * combine.c: Likewise.
24027         * compare-elim.c: Likewise.
24028         * convert.c: Likewise.
24029         * coverage.c: Likewise.
24030         * cppbuiltin.c: Likewise.
24031         * cprop.c: Likewise.
24032         * cse.c: Likewise.
24033         * cselib.c: Likewise.
24034         * data-streamer-in.c: Likewise.
24035         * data-streamer-out.c: Likewise.
24036         * data-streamer.c: Likewise.
24037         * dbxout.c: Likewise.
24038         * dce.c: Likewise.
24039         * ddg.c: Likewise.
24040         * debug.c: Likewise.
24041         * df-core.c: Likewise.
24042         * df-problems.c: Likewise.
24043         * df-scan.c: Likewise.
24044         * dfp.c: Likewise.
24045         * dojump.c: Likewise.
24046         * dominance.c: Likewise.
24047         * domwalk.c: Likewise.
24048         * double-int.c: Likewise.
24049         * dse.c: Likewise.
24050         * dumpfile.c: Likewise.
24051         * dwarf2asm.c: Likewise.
24052         * dwarf2cfi.c: Likewise.
24053         * dwarf2out.c: Likewise.
24054         * emit-rtl.c: Likewise.
24055         * et-forest.c: Likewise.
24056         * except.c: Likewise.
24057         * explow.c: Likewise.
24058         * expmed.c: Likewise.
24059         * expr.c: Likewise.
24060         * final.c: Likewise.
24061         * fixed-value.c: Likewise.
24062         * fold-const.c: Likewise.
24063         * function.c: Likewise.
24064         * fwprop.c: Likewise.
24065         * gcc-plugin.h: Likewise.
24066         * gcse-common.c: Likewise.
24067         * gcse.c: Likewise.
24068         * generic-match-head.c: Likewise.
24069         * ggc-page.c: Likewise.
24070         * gimple-builder.c: Likewise.
24071         * gimple-expr.c: Likewise.
24072         * gimple-fold.c: Likewise.
24073         * gimple-iterator.c: Likewise.
24074         * gimple-low.c: Likewise.
24075         * gimple-match-head.c: Likewise.
24076         * gimple-pretty-print.c: Likewise.
24077         * gimple-ssa-isolate-paths.c: Likewise.
24078         * gimple-ssa-strength-reduction.c: Likewise.
24079         * gimple-streamer-in.c: Likewise.
24080         * gimple-streamer-out.c: Likewise.
24081         * gimple-walk.c: Likewise.
24082         * gimple.c: Likewise.
24083         * gimplify-me.c: Likewise.
24084         * gimplify.c: Likewise.
24085         * godump.c: Likewise.
24086         * graph.c: Likewise.
24087         * graphite-blocking.c: Likewise.
24088         * graphite-dependences.c: Likewise.
24089         * graphite-interchange.c: Likewise.
24090         * graphite-isl-ast-to-gimple.c: Likewise.
24091         * graphite-optimize-isl.c: Likewise.
24092         * graphite-poly.c: Likewise.
24093         * graphite-scop-detection.c: Likewise.
24094         * graphite-sese-to-poly.c: Likewise.
24095         * graphite.c: Likewise.
24096         * haifa-sched.c: Likewise.
24097         * hw-doloop.c: Likewise.
24098         * ifcvt.c: Likewise.
24099         * init-regs.c: Likewise.
24100         * internal-fn.c: Likewise.
24101         * ipa-chkp.c: Likewise.
24102         * ipa-comdats.c: Likewise.
24103         * ipa-cp.c: Likewise.
24104         * ipa-devirt.c: Likewise.
24105         * ipa-icf-gimple.c: Likewise.
24106         * ipa-icf.c: Likewise.
24107         * ipa-inline-analysis.c: Likewise.
24108         * ipa-inline-transform.c: Likewise.
24109         * ipa-inline.c: Likewise.
24110         * ipa-polymorphic-call.c: Likewise.
24111         * ipa-profile.c: Likewise.
24112         * ipa-prop.c: Likewise.
24113         * ipa-pure-const.c: Likewise.
24114         * ipa-ref.c: Likewise.
24115         * ipa-reference.c: Likewise.
24116         * ipa-split.c: Likewise.
24117         * ipa-utils.c: Likewise.
24118         * ipa-visibility.c: Likewise.
24119         * ipa.c: Likewise.
24120         * ira-build.c: Likewise.
24121         * ira-color.c: Likewise.
24122         * ira-conflicts.c: Likewise.
24123         * ira-costs.c: Likewise.
24124         * ira-emit.c: Likewise.
24125         * ira-lives.c: Likewise.
24126         * ira.c: Likewise.
24127         * jump.c: Likewise.
24128         * langhooks.c: Likewise.
24129         * lcm.c: Likewise.
24130         * loop-doloop.c: Likewise.
24131         * loop-init.c: Likewise.
24132         * loop-invariant.c: Likewise.
24133         * loop-iv.c: Likewise.
24134         * loop-unroll.c: Likewise.
24135         * lower-subreg.c: Likewise.
24136         * lra-assigns.c: Likewise.
24137         * lra-coalesce.c: Likewise.
24138         * lra-constraints.c: Likewise.
24139         * lra-eliminations.c: Likewise.
24140         * lra-lives.c: Likewise.
24141         * lra-remat.c: Likewise.
24142         * lra-spills.c: Likewise.
24143         * lra.c: Likewise.
24144         * lto-cgraph.c: Likewise.
24145         * lto-compress.c: Likewise.
24146         * lto-opts.c: Likewise.
24147         * lto-section-in.c: Likewise.
24148         * lto-section-out.c: Likewise.
24149         * lto-streamer-in.c: Likewise.
24150         * lto-streamer-out.c: Likewise.
24151         * lto-streamer.c: Likewise.
24152         * mcf.c: Likewise.
24153         * mode-switching.c: Likewise.
24154         * modulo-sched.c: Likewise.
24155         * omega.c: Likewise.
24156         * omp-low.c: Likewise.
24157         * optabs.c: Likewise.
24158         * opts-global.c: Likewise.
24159         * passes.c: Likewise.
24160         * plugin.c: Likewise.
24161         * postreload-gcse.c: Likewise.
24162         * postreload.c: Likewise.
24163         * predict.c: Likewise.
24164         * print-rtl.c: Likewise.
24165         * print-tree.c: Likewise.
24166         * profile.c: Likewise.
24167         * real.c: Likewise.
24168         * realmpfr.c: Likewise.
24169         * recog.c: Likewise.
24170         * ree.c: Likewise.
24171         * reg-stack.c: Likewise.
24172         * regcprop.c: Likewise.
24173         * reginfo.c: Likewise.
24174         * regrename.c: Likewise.
24175         * regstat.c: Likewise.
24176         * reload.c: Likewise.
24177         * reload1.c: Likewise.
24178         * reorg.c: Likewise.
24179         * resource.c: Likewise.
24180         * rtl-chkp.c: Likewise.
24181         * rtlanal.c: Likewise.
24182         * rtlhooks.c: Likewise.
24183         * sanopt.c: Likewise.
24184         * sched-deps.c: Likewise.
24185         * sched-ebb.c: Likewise.
24186         * sched-rgn.c: Likewise.
24187         * sched-vis.c: Likewise.
24188         * sdbout.c: Likewise.
24189         * sel-sched-dump.c: Likewise.
24190         * sel-sched-ir.c: Likewise.
24191         * sel-sched.c: Likewise.
24192         * sese.c: Likewise.
24193         * shrink-wrap.c: Likewise.
24194         * simplify-rtx.c: Likewise.
24195         * stack-ptr-mod.c: Likewise.
24196         * stmt.c: Likewise.
24197         * stor-layout.c: Likewise.
24198         * store-motion.c: Likewise.
24199         * stringpool.c: Likewise.
24200         * symtab.c: Likewise.
24201         * target-globals.c: Likewise.
24202         * targhooks.c: Likewise.
24203         * toplev.c: Likewise.
24204         * tracer.c: Likewise.
24205         * trans-mem.c: Likewise.
24206         * tree-affine.c: Likewise.
24207         * tree-browser.c: Likewise.
24208         * tree-call-cdce.c: Likewise.
24209         * tree-cfg.c: Likewise.
24210         * tree-cfgcleanup.c: Likewise.
24211         * tree-chkp-opt.c: Likewise.
24212         * tree-chkp.c: Likewise.
24213         * tree-chrec.c: Likewise.
24214         * tree-complex.c: Likewise.
24215         * tree-data-ref.c: Likewise.
24216         * tree-dfa.c: Likewise.
24217         * tree-diagnostic.c: Likewise.
24218         * tree-dump.c: Likewise.
24219         * tree-eh.c: Likewise.
24220         * tree-emutls.c: Likewise.
24221         * tree-if-conv.c: Likewise.
24222         * tree-inline.c: Likewise.
24223         * tree-into-ssa.c: Likewise.
24224         * tree-iterator.c: Likewise.
24225         * tree-loop-distribution.c: Likewise.
24226         * tree-nested.c: Likewise.
24227         * tree-nrv.c: Likewise.
24228         * tree-object-size.c: Likewise.
24229         * tree-outof-ssa.c: Likewise.
24230         * tree-parloops.c: Likewise.
24231         * tree-phinodes.c: Likewise.
24232         * tree-predcom.c: Likewise.
24233         * tree-pretty-print.c: Likewise.
24234         * tree-profile.c: Likewise.
24235         * tree-scalar-evolution.c: Likewise.
24236         * tree-sra.c: Likewise.
24237         * tree-ssa-address.c: Likewise.
24238         * tree-ssa-alias.c: Likewise.
24239         * tree-ssa-ccp.c: Likewise.
24240         * tree-ssa-coalesce.c: Likewise.
24241         * tree-ssa-copy.c: Likewise.
24242         * tree-ssa-copyrename.c: Likewise.
24243         * tree-ssa-dce.c: Likewise.
24244         * tree-ssa-dom.c: Likewise.
24245         * tree-ssa-dse.c: Likewise.
24246         * tree-ssa-forwprop.c: Likewise.
24247         * tree-ssa-ifcombine.c: Likewise.
24248         * tree-ssa-live.c: Likewise.
24249         * tree-ssa-loop-ch.c: Likewise.
24250         * tree-ssa-loop-im.c: Likewise.
24251         * tree-ssa-loop-ivcanon.c: Likewise.
24252         * tree-ssa-loop-ivopts.c: Likewise.
24253         * tree-ssa-loop-manip.c: Likewise.
24254         * tree-ssa-loop-niter.c: Likewise.
24255         * tree-ssa-loop-prefetch.c: Likewise.
24256         * tree-ssa-loop-unswitch.c: Likewise.
24257         * tree-ssa-loop.c: Likewise.
24258         * tree-ssa-math-opts.c: Likewise.
24259         * tree-ssa-operands.c: Likewise.
24260         * tree-ssa-phiopt.c: Likewise.
24261         * tree-ssa-phiprop.c: Likewise.
24262         * tree-ssa-pre.c: Likewise.
24263         * tree-ssa-propagate.c: Likewise.
24264         * tree-ssa-reassoc.c: Likewise.
24265         * tree-ssa-sccvn.c: Likewise.
24266         * tree-ssa-scopedtables.c: Likewise.
24267         * tree-ssa-sink.c: Likewise.
24268         * tree-ssa-strlen.c: Likewise.
24269         * tree-ssa-structalias.c: Likewise.
24270         * tree-ssa-tail-merge.c: Likewise.
24271         * tree-ssa-ter.c: Likewise.
24272         * tree-ssa-threadedge.c: Likewise.
24273         * tree-ssa-threadupdate.c: Likewise.
24274         * tree-ssa-uncprop.c: Likewise.
24275         * tree-ssa-uninit.c: Likewise.
24276         * tree-ssa.c: Likewise.
24277         * tree-ssanames.c: Likewise.
24278         * tree-stdarg.c: Likewise.
24279         * tree-streamer-in.c: Likewise.
24280         * tree-streamer-out.c: Likewise.
24281         * tree-streamer.c: Likewise.
24282         * tree-switch-conversion.c: Likewise.
24283         * tree-tailcall.c: Likewise.
24284         * tree-vect-data-refs.c: Likewise.
24285         * tree-vect-generic.c: Likewise.
24286         * tree-vect-loop-manip.c: Likewise.
24287         * tree-vect-loop.c: Likewise.
24288         * tree-vect-patterns.c: Likewise.
24289         * tree-vect-slp.c: Likewise.
24290         * tree-vect-stmts.c: Likewise.
24291         * tree-vectorizer.c: Likewise.
24292         * tree-vrp.c: Likewise.
24293         * tree.c: Likewise.
24294         * tsan.c: Likewise.
24295         * ubsan.c: Likewise.
24296         * valtrack.c: Likewise.
24297         * value-prof.c: Likewise.
24298         * var-tracking.c: Likewise.
24299         * varasm.c: Likewise.
24300         * varpool.c: Likewise.
24301         * vmsdbgout.c: Likewise.
24302         * vtable-verify.c: Likewise.
24303         * web.c: Likewise.
24304         * wide-int.cc: Likewise.
24305         * xcoffout.c: Likewise.
24306         * config/aarch64/aarch64-builtins.c: Likewise.
24307         * config/aarch64/aarch64.c: Likewise.
24308         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24309         * config/alpha/alpha.c: Likewise.
24310         * config/arc/arc.c: Likewise.
24311         * config/arm/aarch-common.c: Likewise.
24312         * config/arm/arm-builtins.c: Likewise.
24313         * config/arm/arm-c.c: Likewise.
24314         * config/arm/arm.c: Likewise.
24315         * config/avr/avr-c.c: Likewise.
24316         * config/avr/avr-log.c: Likewise.
24317         * config/avr/avr.c: Likewise.
24318         * config/bfin/bfin.c: Likewise.
24319         * config/c6x/c6x.c: Likewise.
24320         * config/cr16/cr16.c: Likewise.
24321         * config/cris/cris.c: Likewise.
24322         * config/darwin-c.c: Likewise.
24323         * config/darwin.c: Likewise.
24324         * config/epiphany/epiphany.c: Likewise.
24325         * config/epiphany/mode-switch-use.c: Likewise.
24326         * config/epiphany/resolve-sw-modes.c: Likewise.
24327         * config/fr30/fr30.c: Likewise.
24328         * config/frv/frv.c: Likewise.
24329         * config/ft32/ft32.c: Likewise.
24330         * config/h8300/h8300.c: Likewise.
24331         * config/i386/i386-c.c: Likewise.
24332         * config/i386/i386.c: Likewise.
24333         * config/i386/msformat-c.c: Likewise.
24334         * config/i386/winnt-cxx.c: Likewise.
24335         * config/i386/winnt-stubs.c: Likewise.
24336         * config/i386/winnt.c: Likewise.
24337         * config/ia64/ia64-c.c: Likewise.
24338         * config/ia64/ia64.c: Likewise.
24339         * config/iq2000/iq2000.c: Likewise.
24340         * config/lm32/lm32.c: Likewise.
24341         * config/m32c/m32c-pragma.c: Likewise.
24342         * config/m32c/m32c.c: Likewise.
24343         * config/m32r/m32r.c: Likewise.
24344         * config/m68k/m68k.c: Likewise.
24345         * config/mcore/mcore.c: Likewise.
24346         * config/mep/mep-pragma.c: Likewise.
24347         * config/mep/mep.c: Likewise.
24348         * config/microblaze/microblaze-c.c: Likewise.
24349         * config/microblaze/microblaze.c: Likewise.
24350         * config/mips/mips.c: Likewise.
24351         * config/mmix/mmix.c: Likewise.
24352         * config/mn10300/mn10300.c: Likewise.
24353         * config/moxie/moxie.c: Likewise.
24354         * config/msp430/msp430-c.c: Likewise.
24355         * config/msp430/msp430.c: Likewise.
24356         * config/nds32/nds32-cost.c: Likewise.
24357         * config/nds32/nds32-fp-as-gp.c: Likewise.
24358         * config/nds32/nds32-intrinsic.c: Likewise.
24359         * config/nds32/nds32-isr.c: Likewise.
24360         * config/nds32/nds32-md-auxiliary.c: Likewise.
24361         * config/nds32/nds32-memory-manipulation.c: Likewise.
24362         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24363         * config/nds32/nds32-predicates.c: Likewise.
24364         * config/nds32/nds32.c: Likewise.
24365         * config/nios2/nios2.c: Likewise.
24366         * config/nvptx/nvptx.c: Likewise.
24367         * config/pa/pa.c: Likewise.
24368         * config/pdp11/pdp11.c: Likewise.
24369         * config/rl78/rl78-c.c: Likewise.
24370         * config/rl78/rl78.c: Likewise.
24371         * config/rs6000/rs6000-c.c: Likewise.
24372         * config/rs6000/rs6000.c: Likewise.
24373         * config/rx/rx.c: Likewise.
24374         * config/s390/s390-c.c: Likewise.
24375         * config/s390/s390.c: Likewise.
24376         * config/sh/sh-c.c: Likewise.
24377         * config/sh/sh-mem.cc: Likewise.
24378         * config/sh/sh.c: Likewise.
24379         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
24380         * config/sh/sh_treg_combine.cc: Likewise.
24381         * config/sol2-c.c: Likewise.
24382         * config/sol2-cxx.c: Likewise.
24383         * config/sol2-stubs.c: Likewise.
24384         * config/sol2.c: Likewise.
24385         * config/sparc/sparc-c.c: Likewise.
24386         * config/sparc/sparc.c: Likewise.
24387         * config/spu/spu-c.c: Likewise.
24388         * config/spu/spu.c: Likewise.
24389         * config/stormy16/stormy16.c: Likewise.
24390         * config/tilegx/mul-tables.c: Likewise.
24391         * config/tilegx/tilegx-c.c: Likewise.
24392         * config/tilegx/tilegx.c: Likewise.
24393         * config/tilepro/mul-tables.c: Likewise.
24394         * config/tilepro/tilepro-c.c: Likewise.
24395         * config/tilepro/tilepro.c: Likewise.
24396         * config/v850/v850-c.c: Likewise.
24397         * config/v850/v850.c: Likewise.
24398         * config/vax/vax.c: Likewise.
24399         * config/visium/visium.c: Likewise.
24400         * config/vms/vms-c.c: Likewise.
24401         * config/vms/vms.c: Likewise.
24402         * config/vxworks.c: Likewise.
24403         * config/xtensa/xtensa.c: Likewise.
24405 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
24407         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
24408         Remove operand constraints.  Change operand 2 predicate to
24409         nonmemory operand.  Limit const_int values to mode bitsize.  Only
24410         allow const_int values less than 32 when optimizing for size.
24411         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
24412         Remove operand constraints.
24413         (*bt<mode>): Use SImode for const_int values less than 32.
24414         (regmode): Remove mode attribute.
24416 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
24418         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
24419         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
24420           moxie_legitimate_address_p): New functions.
24421           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
24423 2015-07-07  Tom de Vries  <tom@codesourcery.com>
24425         PR tree-optimization/66642
24426         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
24427         header comment.  Rename split_edge variable to edge_at_split.  Split
24428         exit edge to create new loop exit bb.  Insert loop exit phis in new
24429         loop exit bb.
24431 2015-07-07  Tom de Vries  <tom@codesourcery.com>
24433         * tree-cfg.c (get_virtual_phi): New function.
24434         * tree-cfg.h (get_virtual_phi): Declare.
24435         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
24436         (rewrite_virtuals_into_loop_closed_ssa): New function.
24437         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
24438         Declare.
24439         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
24440         (transform_to_exit_first_loop_alt): Use
24441         rewrite_virtuals_into_loop_closed_ssa.
24443 2015-07-07  Richard Biener  <rguenther@suse.de>
24445         * fold-const.c (fold_binary_loc): Move
24446         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
24447         * match.pd: ... here.
24448         Add (X * C1) % C2 -> 0 simplification pattern derived from
24449         extract_muldiv_1.
24451 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
24453         PR target/66780
24454         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
24455         change for target/65249.
24457 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
24459         * symtab.c (address_matters_1): Fix typo in comment above.
24460         (can_increase_alignment_p): Likewise.
24462 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24464         * function.c (free_after_compilation): Clear PROP_cfg in
24465         f->curr_properties.
24467 2015-07-07  Richard Biener  <rguenther@suse.de>
24469         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
24470         add which use to.
24471         (add_control_edge): Remove excessive vertical space in dumping.
24472         (process_ssa_edge_worklist): Simulate at most one statement and
24473         return whether we did.  Do not simulate PHIs if they are in a
24474         BB not yet simulated.
24475         (ssa_propagate): Adjust to always drain the BB worklist whenever
24476         a BB is available there, likewise the VARYING edges list before
24477         the interesting edge list.
24479 2015-07-07  Christian Bruel  <christian.bruel@st.com>
24481         PR target/52144
24482         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
24484 2015-07-07  Richard Biener  <rguenther@suse.de>
24486         PR middle-end/66739
24487         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
24488         A - B.
24490 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
24492         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
24493         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
24494         Copy operand 0 to a temporary if !ext_register_operand.  Remove
24495         ancient extract_bit_field workaround.
24496         (insv<mode>_1): Rename from mov<mode>_insv_1.
24497         (*insvqi): Rename from *movqi_insv_2.
24498         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
24499         for renamed insvsi_1.
24500         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
24502 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
24504         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
24505         call to nvptx_reorg_subreg.
24507 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
24509         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
24510         * graphite-dependencies.c, graphite-interchange.c,
24511         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
24512         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
24513         Likewise.
24515 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
24517         * match.pd: Remove element_mode inside HONOR_*.
24518         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
24519         (~X | X -> -1, ~X ^ X -> -1): Merge.
24520         * tree.c (build_each_one_cst): New function.
24521         * tree.h (build_each_one_cst): Likewise.
24523 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
24525         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24526         PROCESSOR_IAMCU.
24528 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
24530         * config.gcc <mips*-*-*>: Add fused-madd.opt.
24531         * config/mips/mips.opt (mfused-madd): Remove.
24532         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
24533         * config/mips/mips.h (TARGET_MIPS8000): New.
24534         (ISA_HAS_FP_MADD4_MSUB4): Remove.
24535         (ISA_HAS_FP_MADDF_MSUBF): Remove.
24536         (ISA_HAS_FP_MADD3_MSUB3): Remove.
24537         (ISA_HAS_NMADD4_NMSUB4): Remove.
24538         (ISA_HAS_NMADD3_NMSUB3): Remove.
24539         (ISA_HAS_FUSED_MADD4): New.
24540         (ISA_HAS_UNFUSED_MADD4): New.
24541         (ISA_HAS_FUSED_MADDF): New.
24542         (ISA_HAS_FUSED_MADD3): New.
24543         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
24544         (*fma<mode>4_madd3) New.
24545         (*fma<mode>4_madd4) New.
24546         (*fma<mode>4_maddf) New.
24547         (fms<mode>4) New.
24548         (*fms<mode>4_msub3) New.
24549         (*fms<mode>4_msub4) New.
24550         (fnma<mode>4) New.
24551         (*fnma<mode>4_nmadd3) New.
24552         (*fnma<mode>4_nmadd4) New.
24553         (fnms<mode>4) New.
24554         (*fnms<mode>4_nmsub3) New.
24555         (*fnms<mode>4_nmsub4) New.
24556         (*madd4<mode>) Modify to be unfused only.
24557         (*msub4<mode>) Modify to be unfused only.
24558         (*nmadd4<mode>) Modify to be unfused only.
24559         (*nmsub4<mode>) Modify to be unfused only.
24560         (*madd3<mode>) Remove.
24561         (*msub3<mode>) Remove.
24562         (*nmadd3<mode>) Remove.
24563         (*nmsub3<mode>) Remove.
24564         (*nmadd3<mode>_fastmath) Remove.
24565         (*nmsub3<mode>_fastmath) Remove.
24566         (*nmadd4<mode>_fastmath) Update condition.
24567         (*nmsub4<mode>_fastmath) Update condition.
24569 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
24571         PR target/65956
24572         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
24573         alignment attribute, exploring one level down for records and arrays.
24575 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
24577         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
24578         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
24579         Copy operand 1 to a temporary if !ext_register_operand.  Remove
24580         ancient extract_bit_field workaround.
24581         (*extv<mode>): Rename from *mov<mode>_extv_1.
24582         (*extvqi): Rename from *movqi_extv_1.
24583         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
24584         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
24585         to a temporary if !ext_register_operand.  Remove ancient
24586         extract_bit_field workaround.
24587         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
24588         (*extzvqi): Rename from *movqi_extzv_2.
24589         (*testqi_ext_3): Remove modes from const_int_operand predicated
24590         operands.  Add "n" constraint.
24591         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
24592         operand.  Add "J" constraint.
24593         (*btsq, *btrq, *btcq peephole2s): Remove mode from
24594         const_0_to_63 predicated operand.
24595         (regmode): New insn attribute.
24596         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
24597         to nonmemory_operand.  Use regmode insn attribute.
24598         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
24599         (*jcc_bt<mode>_mask): Remove mode from operand 3.
24600         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
24601         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
24602         operands.  Use "N" constraint instead of "n".
24604 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
24606         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
24608 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
24610         PR target/66749
24611         * config/i386/i386.c (iamcu_cost): New.
24612         (m_IAMCU): Likewise.
24613         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
24614         (processor_target_table): Add an entry for "iamcu".
24615         (processor_alias_table): Likewise.
24616         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
24617         (ix86_adjust_cost): Likewise.
24618         (ia32_multipass_dfa_lookahead): Likewise.
24619         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
24620         * config/i386/x86-tune.def: Updated for m_IAMCU.
24622 2015-07-06  Richard Biener  <rguenther@suse.de>
24624         PR tree-optimization/66772
24625         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
24626         values are available in the PHI node BB when there are
24627         still unexecutable edges.
24629 2015-07-06  Richard Biener  <rguenther@suse.de>
24631         PR tree-optimization/66767
24632         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
24633         Make sure to build the alignment test on a SSA name without
24634         final alignment info valid only if the alignment test
24635         evaluates to true.
24637 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
24639         PR target/66620
24640         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
24641         loop start when inserting LSETUP.
24643 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
24645         PR target/53383
24646         * config/i386/i386.c (ix86_option_override_internal): Allow
24647         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
24649 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24651         * read-md.c (decimal_string): Rename to ...
24652         (md_decimal_string): ... this.
24653         (handle_enum): Reflect this.
24655 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24657         PR target/66731
24658         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
24660 2015-07-06  Richard Biener  <rguenther@suse.de>
24662         PR middle-end/66759
24663         * match.pd: Add missing constraint of y to REAL_CST in
24664         REAL_CST - x CMP y to y - CST CMP x simplification.
24666 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
24668         PR tree-optimization/66757
24669         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
24671 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
24672             Sandra Loosemore <sandra@codesourcery.com>
24674         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
24675         Delete extern declaration.
24676         (gprel_constant_p): Add extern declaration.
24677         * config/nios2/constraints.md ("S"): Use gprel_constant_p
24678         instead of nios2_symbol_ref_in_small_data_p.
24679         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
24680         (nios2_symbol_ref_in_small_data_p): Make static.
24681         (gprel_constant_p): Make non-static.
24683 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
24685         * doc/fragments.texi (Target Fragment): Convert debian.org
24686         link to use https.
24687         * doc/install.texi (Configuration): Ditto.
24689 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
24691         PR tree-optimization/66718
24692         * tree-vect-stmts.c (vectorizable_call): Replace uses of
24693         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
24695         PR tree-optimization/66718
24696         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
24697         vectorizable_load, vectorizable_condition): Move vectype,
24698         nunits, ncopies computation after checking what kind of statement
24699         stmt is.
24701 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24703         * target-insns.def (extv, extzv, insv): New targetm instruction
24704         patterns.
24705         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
24706         interface.
24707         * recog.c (simplify_while_replacing): Likewise.
24709 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24711         * target-insns.def (doloop_begin, doloop_end): New targetm
24712         instruction patterns.
24713         * loop-init.c: Include target.h.
24714         (pass_loop2::gate): Use the new targetm patterns instead of
24715         HAVE_*/gen_* interface.
24716         (pass_rtl_doloop::gate): Likewise.
24717         (pass_rtl_doloop::execute): Remove preprocessor condition.
24718         * hw-doloop.c: Build unconditionally.
24719         * loop-doloop.c: Likewise.
24720         (doloop_optimize): Use the new targetm patterns instead of
24721         HAVE_*/gen_* interface.
24722         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
24723         * modulo-sched.c (doloop_register_get): Likewise.
24725 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24727         * target-insns.def (clear_cache): New targetm instruction pattern.
24728         * builtins.c (expand_builtin___clear_cache): Use it instead of
24729         HAVE_*/gen_* interface.
24731 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24733         * target-insns.def (allocate_stack, check_stack, probe_stack)
24734         (probe_stack_address, split_stack_prologue, split_stack_space_check):
24735         New targetm instruction patterns.
24736         * explow.c (allocate_dynamic_stack_space): Use them instead of
24737         HAVE_*/gen_* interface.
24738         (emit_stack_probe): Likewise.
24739         (probe_stack_range): Likewise.
24740         * function.c (thread_prologue_and_epilogue_insns): Likewise.
24742 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24744         * target-insns.def (stack_protect_set, stack_protect_test): New
24745         targetm instruction patterns.
24746         * cfgexpand.c (stack_protect_prologue): Use them instead of
24747         HAVE_*/gen_* interface.
24748         * function.c (stack_protect_epilogue): Likewise.
24750 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24752         * expr.h (gen_move_insn_uncast): Delete.
24753         * expr.c (gen_move_insn_uncast): Delete.
24755 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24757         * target-insns.def (restore_stack_block, restore_stack_function)
24758         (restore_stack_nonlocal, save_stack_block, save_stack_function)
24759         (save_stack_nonlocal): New targetm instruction patterns.
24760         * builtins.c (expand_builtin_apply): Use them instead of
24761         HAVE_*/gen_* interface.
24762         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
24764 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24766         * target-insns.def (trap): New targetm instruction pattern.
24767         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
24768         interface.
24769         * explow.c (allocate_dynamic_stack_space): Likewise.
24770         * ifcvt.c (find_if_header): Likewise.
24772 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24774         * target-insns.def (prefetch): New targetm instruction pattern.
24775         * tree-ssa-loop-prefetch.c: Include targeth.
24776         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
24777         of HAVE_*/gen_* interface.
24778         * builtins.c (expand_builtin_prefetch): Likewise.
24779         * toplev.c (process_options): Likewise.
24781 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24783         * target-insns.def (untyped_call, untyped_return): New targetm
24784         instruction patterns.
24785         * builtins.c (expand_builtin_apply): Use them instead of
24786         HAVE_*/gen_* interface.
24787         (result_vector): Define unconditionally.
24789 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24791         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
24792         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
24793         (nonlocal_goto_receiver): New targetm instruction patterns.
24794         * builtins.c (expand_builtin_setjmp_setup): Use them instead
24795         of HAVE_*/gen_* interface.
24796         (expand_builtin_setjmp_receiver): Likewise.
24797         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
24798         * except.c (expand_dw2_landing_pad_for_region): Likewise.
24800 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24802         * target.def: Add code_for_* hooks.
24803         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
24804         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
24805         * target-insns.def (casesi, tablejump): New targetm instruction
24806         patterns.
24807         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
24808         (do_tablejump): Likewise.
24809         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
24810         (expand_sjlj_dispatch_table): Likewise.
24811         * targhooks.c (default_case_values_threshold): Likewise.
24813 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
24815         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
24816         Use rtx_insn * instead of rtx.
24817         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
24818         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
24819         (nios2_call_tls_get_addr): Likewise.
24820         (nios2_emit_expensive_div): Likewise.
24821         (nios2_emit_move_sequence): Change return type to bool.
24822         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
24823         Change return type to bool.
24825 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24827         PR target/66747
24828         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
24830 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
24832         PR target/66114
24833         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
24834         of register_operand.  Remove constraint.
24836 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
24838         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
24839         the first argument.
24841 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
24843         * attribs.c (decl_attributes): Guard inform with the return value
24844         of the preceding warning.
24846 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
24848         * doc/invoke.texi (moverride): Move to correct section.
24850 2015-07-03  Richard Biener  <rguenther@suse.de>
24852         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
24853         Copy from tree.c
24854         (dt_operand::gen_gimple_expr): After valueizing operands
24855         re-canonicalize operand order for commutative tree codes.
24857 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
24859         PR target/66746.
24860         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
24861         is defined.
24862         (__crc32w): Likewise.
24863         (__crc32d): Likewise.
24864         (__rdpmc): Likewise.
24865         (__rdtscp): Likewise.
24866         (_rdpmc): Likewise.
24867         (_rdtscp): Likewise.
24868         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
24869         is defined.
24871 2015-07-03  Richard Biener  <rguenther@suse.de>
24873         * fold-const.c (fold_mathfn_compare): Remove.
24874         (fold_inf_compare): Likewise.
24875         (fold_comparison): Move floating point comparison simplifications...
24876         * match.pd: ... to patterns here.  Introduce simple_comparisons
24877         operator list and use it for patterns formerly in fold_comparison.
24879 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
24881         PR tree-optimization/66119
24882         * toplev.c (process_options): Don't set up default values for
24883         the sra_max_scalarization_size_{speed,size} parameters.
24884         * tree-sra (analyze_all_variable_accesses): If no values
24885         have been set for the sra_max_scalarization_size_{speed,size}
24886         parameters, call get_move_ratio to get target defaults.
24888 2015-07-03  Richard Biener  <rguenther@suse.de>
24890         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
24891         * match.pd: ... here.
24893 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
24895         PR target/37072
24896         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
24897         is not actually the default on FreeBSD.
24899 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24901         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
24902         definition.
24903         (CMPGE_8HI): Likewise.
24904         (CMPGE_4SI): Likewise.
24905         (CMPGE_2DI): Likewise.
24906         (CMPGE_U16QI): Likewise.
24907         (CMPGE_U8HI): Likewise.
24908         (CMPGE_U4SI): Likewise.
24909         (CMPGE_U2DI): Likewise.
24910         (CMPLE_16QI): Likewise.
24911         (CMPLE_8HI): Likewise.
24912         (CMPLE_4SI): Likewise.
24913         (CMPLE_2DI): Likewise.
24914         (CMPLE_U16QI): Likewise.
24915         (CMPLE_U8HI): Likewise.
24916         (CMPLE_U4SI): Likewise.
24917         (CMPLE_U2DI): Likewise.
24918         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24919         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
24920         ALTIVEC_BUILTIN_VEC_CMPLE.
24921         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
24922         floating-point vector modes.
24923         (vector_nlt<mode>): New define_expand.
24924         (vector_nltu<mode>): Likewise.
24925         (vector_ngt<mode>): Likewise.
24926         (vector_ngtu<mode>): Likewise.
24928 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
24930         PR rtl-optimization/66706
24931         * combine.c (make_compound_operation): If an AND of SUBREG of
24932         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
24934 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
24936         * tree-pass.h (make_pass_ch_vect): New.
24937         * passes.def: Add pass_ch_vect just before pass_if_conversion.
24939         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
24940         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
24941         make_pass_ch_vect): New.
24942         (pass_ch): Extend ch_base.
24944         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
24945         (ch_base::copy_headers): ...here.
24947 2015-07-02  Richard Biener  <rguenther@suse.de>
24949         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
24950         * fold-const.c (get_pointer_modulus_and_residue): Remove.
24951         (fold_binary_loc): Implement (T)ptr & CST in terms of
24952         get_pointer_alignment_1.
24953         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
24954         Make sure to build the alignment test on a SSA name without
24955         final alignment info valid only after the prologue.
24957 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
24959         * config/cris/cris.md ("epilogue"): Remove condition.
24960         ("prologue"): Ditto.
24962 2015-07-02  Richard Biener  <rguenther@suse.de>
24964         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
24965         parameter to record a condition that is false.
24966         (record_conditions): When recording an extra NE_EXPR that is
24967         true also record a EQ_EXPR that is false.
24969 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
24971         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
24972         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
24973         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
24974         (set_iv, find_interesting_uses_address, add_candidate_1): New
24975         argument to alloc_iv.
24976         (find_interesting_uses_op, find_interesting_uses_cond): Don't
24977         duplicate struct iv.
24978         (free_loop_data): Don't free struct iv explicitly.
24979         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
24981 2015-07-01  DJ Delorie  <dj@redhat.com>
24983         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
24984         (LIB_SPEC): Add.
24985         (SUPPORTS_DISCRIMINATOR): Define.
24987 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
24989         PR bootstrap/66685
24990         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
24991         there are no CALLs in the same pattern.
24993 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24995         PR rtl-optimization/61047
24996         * rtlanal.c (get_initial_register_offset): New function.
24997         (rtx_addr_can_trap_p_1): Check offsets of stack references.
24999 2015-07-01  Richard Biener  <rguenther@suse.de>
25001         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
25002         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
25003         ~X CMP C -> X CMP' ~C to ...
25004         * match.pd: ... patterns here.
25006 2015-07-01  Nick Clifton  <nickc@redhat.com>
25008         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
25009         a 16-bit value into a 20-bit memory slot.
25011 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
25013         * doc/sourcebuild.texi (AArch64-specific attributes): Document
25014         "aarch64_tiny", "aarch64_small", "aarch64_large",
25015         "aarch64_little_endian", "aarch64_big_endian".
25017 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
25019         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
25020         Document "aarch64_small_fpic".
25022 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
25024         * configure.ac: Add check for aarch64 assembler -fpic relocation
25025         modifier support.
25026         * configure: Regenerate.
25027         * config.in: Regenerate.
25028         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
25029         to -fPIC if not support of -fpic relocation modifier in assembler.
25031 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
25033         PR bootstrap/66685
25034         * rtl.c (classify_insn): Handle returns in PARALLELs.
25036 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
25038         PR middle-end/66633
25039         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
25040         to true if the function is nested and if not optimizing.
25041         (convert_local_omp_clauses): Initialize need_frame to true if the
25042         function contains nested functions and if not optimizing.
25044 2015-07-01  Richard Biener  <rguenther@suse.de>
25046         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
25047         (X & Y) ^ Y -> ~X & Y transforms to ...
25048         * match.pd: ... here.
25050 2015-07-01  Richard Biener <rguenther@suse.de>
25052         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
25053         of converts to avoid uninteresting noise from the conversion
25054         simplifying patterns.
25056 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
25058         * config/c6x/c6x.c (try_rename_operands): Do not depend on
25059         gcc_assert evaluating its argument for side-effect.
25061 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
25063         PR target/64833
25064         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
25065         flag_pic is set.
25067 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
25069         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
25070         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
25071         (hash_scc): Add this_ref_p and ref_p parameters and pass them
25072         to the inner DFS walk.
25074 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
25076         * target-insns.def (jump): New targetm instruction pattern.
25077         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
25078         instead of gen_jump.
25079         (fix_up_crossing_landing_pad): Likewise.
25080         (add_labels_and_missing_jumps): Likewise.
25081         (fix_crossing_conditional_branches): Likewise.
25082         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
25083         (force_nonfallthru_and_redirect): Likewise.
25084         * cse.c (cse_insn): Likewise.
25085         * expmed.c (expand_divmod): Likewise.
25086         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
25087         * haifa-sched.c (init_before_recovery): Likewise.
25088         (sched_create_recovery_edges): Likewise.
25089         * ifcvt.c (find_cond_trap): Likewise.
25090         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
25091         (expand_float, expand_fix): Likewise.
25092         * stmt.c (emit_jump): Likewise.
25094 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
25096         * defaults.h (HAVE_load_multiple, gen_load_multiple)
25097         (HAVE_store_multiple, gen_store_multiple): Delete.
25098         * target-insns.def (load_multiple, store_multiple): New targetm
25099         instruction patterns.
25100         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
25101         of HAVE_*/gen_* interface.
25103 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
25105         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
25106         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
25107         (gen_mem_signal_fence): Delete.
25108         * target-insns.def (mem_signal_fence, mem_thread_fence)
25109         (memory_barrier): New targetm instruction patterns.
25110         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
25111         interface.
25112         (expand_mem_signal_fence): Likewise.
25114 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
25116         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
25117         * target-insns.def (epilogue, prologue, sibcall_prologue): New
25118         targetm instruction patterns.
25119         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
25120         interface.
25121         * calls.c (expand_call): Likewise.
25122         * cfgrtl.c (cfg_layout_finalize): Likewise.
25123         * df-scan.c (df_get_entry_block_def_set): Likewise.
25124         (df_get_exit_block_use_set): Likewise.
25125         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
25126         * final.c (final_start_function): Likewise.
25127         * function.c (thread_prologue_and_epilogue_insns): Likewise.
25128         (reposition_prologue_and_epilogue_notes): Likewise.
25129         * reorg.c (find_end_label): Likewise.
25130         * toplev.c (process_options): Likewise.
25132 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
25134         * typed-splay-tree.h: New file.
25136 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
25138         PR debug/66691
25139         * lra-int.h (lra_substitute_pseudo): Add a parameter.
25140         (lra_substitute_pseudo_within_insn): Ditto.
25141         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
25142         of constant.
25143         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
25144         to lra_substitute_pseudo.
25145         * lra-lives.c (process_bb_lives): Add an argument to
25146         lra_substitute_pseudo_within_insn call.
25147         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
25148         argument to lra_substitute_pseudo and
25149         lra_substitute_pseudo_within_insn calls.
25150         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
25152 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
25154         * configure: Regenerated.
25156 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
25158         * config.gcc: Support i[34567]86-*-elfiamcu target.
25159         * config/i386/iamcu.h: New.
25160         * config/i386/i386.opt: Add -miamcu.
25161         * doc/invoke.texi: Document -miamcu.
25162         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
25163         off x87/MMX/SSE/AVX codegen for -miamcu.
25164         * config/i386/i386-c.c (ix86_target_macros_internal): Define
25165         __iamcu/__iamcu__ for -miamcu.
25166         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
25167         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
25168         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
25169         * config/i386/i386.c (ix86_option_override_internal): Ignore and
25170         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
25171         MCU by default.  Default long double to 64-bit for Intel MCU.
25172         Turn on -freg-struct-return for Intel MCU.  Issue an error when
25173         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
25174         AVX is turned on.
25175         (function_arg_advance_32): Pass value whose size is no larger
25176         than 8 bytes in registers for Intel MCU.
25177         (function_arg_32): Likewise.
25178         (ix86_return_in_memory): Return value whose size is no larger
25179         than 8 bytes in registers for Intel MCU.
25180         (iamcu_alignment): New function.
25181         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
25182         true.
25183         (ix86_local_alignment): Don't increase alignment for Intel MCU.
25184         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
25185         true.
25187 2015-06-30  Marek Polacek  <polacek@redhat.com>
25189         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
25190         both operands of the resulting expression.
25192         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
25193         the final expression with the operand's type and then convert
25194         it to the type of the expression.
25196 2015-06-30  Richard Biener  <rguenther@suse.de>
25198         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
25199         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
25200         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
25201         * match.pd: ... to patterns here.
25203 2015-06-30  Richard Biener  <rguenther@suse.de>
25205         PR tree-optimization/66704
25206         * tree-vect-data-refs.c (vect_setup_realignment): Use
25207         make_ssa_name for non-SSA name source.
25209 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
25211         PR middle-end/66702
25212         * omp-low.c (simd_clone_adjust): Handle addressable linear
25213         or uniform parameters or non-gimple type uniform parameters.
25215 2015-06-30  Richard Biener  <rguenther@suse.de>
25217         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
25218         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
25219         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
25220         * match.pd: ... here.
25221         Add a few cases of A - B -> A + (-B) when B "easily" negates.
25222         Move (x & y) | x -> x and friends before
25223         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
25225 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
25227         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
25228         -mfix-ut699 is not specified.
25229         (leon3_load): Rename into...
25230         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
25231         is specified.
25233 2015-06-30  Marek Polacek  <polacek@redhat.com>
25235         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
25236         * match.pd: ... here.
25238 2015-06-30  Richard Biener  <rguenther@suse.de>
25240         * target-insns.def (canonicalize_funcptr_for_compare): Add.
25241         * fold-const.c (build_range_check): Replace uses of
25242         HAVE_canonicalize_funcptr_for_compare.
25243         (fold_widened_comparison): Likewise.
25244         (fold_sign_changed_comparison): Likewise.
25245         * dojump.c: Include "target.h".
25246         (do_compare_and_jump): Replace uses of
25247         HAVE_canonicalize_funcptr_for_compare and
25248         gen_canonicalize_funcptr_for_compare.
25249         * expr.c (do_store_flag): Likewise.
25251 2015-06-30  Tom de Vries  <tom@codesourcery.com>
25253         PR tree-optimization/66652
25254         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
25255         max_loop_iterations to determine if nit + 1 overflows.
25257 2015-06-30  Richard Biener  <rguenther@suse.de>
25259         * tree-vrp.c (register_edge_assert_for_2): Also register
25260         asserts for dominating conversion results.
25262 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
25264         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
25265         field in struct iv.
25267 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
25269         PR target/66509
25270         * configure.ac: Fix filds and fildq test for 64-bit.
25271         * configure: Regenerated.
25273 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
25275         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
25276         (nvptx_reorg): Here.  Keep the non-subreg pieces.
25278 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
25280         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
25281         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
25283 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
25285         * config/i386/i386.md (*jcc_1): Use %! in asm template.
25286         Set attribute "length_nobnd" instead of "length".
25287         (*jcc_2): Ditto.
25288         (jump): Ditto.
25289         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
25291 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
25293         * config/nios2/nios2.c (nios2_delegitimize_address): Make
25294         assert less restrictive.
25296 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25298         PR fortran/66605
25299         * cgraphunit.c (cgraph_node::finalize_function): Do not call
25300         do_warn_unused_parameter.
25301         * function.c (do_warn_unused_parameter): Move from here.
25302         * function.h (do_warn_unused_parameter): Do not declare.
25304 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
25306         PR target/65697
25307         * gcc.target/arm/armv-sync-comp-swap.c: New.
25308         * gcc.target/arm/armv-sync-op-acquire.c: New.
25309         * gcc.target/arm/armv-sync-op-full.c: New.
25310         * gcc.target/arm/armv-sync-op-release.c: New.
25312 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
25314         PR target/65697
25315         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
25316         initial acquire barrier with final barrier.
25318 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
25320         PR target/65697
25321         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
25322         initial acquire barrier with final barrier.
25324 2015-06-29  Richard Henderson  <rth@redhat.com>
25326         * config/i386/constraints.md (Bf): New constraint.
25327         * config/i386/i386-c.c (ix86_target_macros): Define
25328         __GCC_ASM_FLAG_OUTPUTS__.
25329         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
25330         as flags outputs.
25331         * doc/extend.texi (FlagOutputOperands): Document them.
25333 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
25335         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
25336         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
25337         unspec name.
25338         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
25339         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
25340         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
25341         (aarch64_symbol_context): Ditto.
25342         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
25343         and use new pattern name.
25344         (aarch64_expand_mov_immediate): Ditto.
25345         (aarch64_print_operand): Ditto.
25346         (aarch64_classify_tls_symbol): Ditto.
25348 2015-06-29  Marek Polacek  <polacek@redhat.com>
25349             Marc Glisse  <marc.glisse@inria.fr>
25351         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
25352         * match.pd: ... pattern here.
25354 2015-06-29  Tom de Vries  <tom@codesourcery.com>
25356         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
25357         function structure.
25359 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
25361         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
25362         feature description, split out the native option, add a link to
25363         the feature documentation, rearrange and slightly rewrite text.
25364         (Aarch64 options, -mcpu): Likewise.
25365         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
25366         +rdma implies Adv. SIMD.
25368 2015-06-29  Marek Polacek  <polacek@redhat.com>
25370         PR c/66322
25371         * function.c (stack_protect_epilogue): Remove a cast to int.
25372         * doc/invoke.texi: Update -Wswitch-bool description.
25374 2015-06-29  Richard Biener  <rguenther@suse.de>
25376         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
25377         * fold-const.c (fold_binary_loc): Move &A - &B simplification
25378         via ptr_difference_const ...
25379         * match.pd: ... here.
25380         When matching (X ^ Y) == Y also match with swapped operands.
25382 2015-06-29  Richard Biener  <rguenther@suse.de>
25384         * lto-streamer.h (LTO_major_version): Bump to 5.
25386 2015-06-29  Richard Biener  <rguenther@suse.de>
25388         PR tree-optimization/66677
25389         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
25390         STMT_VINFO_VEC_STMT clobbering less strict.
25392 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
25394         PR middle-end/64130
25395         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
25396         division, compute max and min when value ranges for dividend and
25397         divisor are available.
25399 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
25400             Sandra Loosemore <sandra@codesourcery.com>
25402         * regrename.h (regrename_do_replace): Change to return bool.
25403         * regrename.c (rename_chains): Check return value of
25404         regname_do_replace.
25405         (regrename_do_replace): Re-validate the modified insns and
25406         return bool status.
25407         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
25408         Update to match rename_chains changes.
25409         * config/c6x/c6x.c (try_rename_operands): Assert that
25410         regrename_do_replace returns true.
25412 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
25414         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
25415         operand 2 here.  Use copy_addr_to_reg to copy non-index
25416         register operand 2 to a temporary.
25417         (<mode>_stx): Ditto for operand 1.
25418         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
25419         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
25420         (ix86_store_bounds): Ditto.
25422 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
25424         * print-tree.c (print_node) [TREE_VEC]: Print its length.
25426 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
25428         * gimple.c (gimple_call_set_fndecl): Remove.
25429         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
25430         build1_loc directly instead of build_fold_addr_expr_loc.
25432 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
25434         * hash-map.h (hash_map::traverse): Use the definition of the
25435         Key typedef rather than the typedef itself.
25437 2015-06-26  Martin Jambor  <mjambor@suse.cz>
25439         PR debug/66301
25440         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
25441         NULL instead of calling dump_enabled_p.
25443 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
25445         * config/aarch64/aarch64.opt: (override): New.
25446         * doc/invoke.texi (override): Document.
25447         * config/aarch64/aarch64.c (aarch64_flag_desc): New
25448         (aarch64_fusible_pairs): Likewise.
25449         (aarch64_tuning_flags): Likewise.
25450         (aarch64_tuning_override_function): Likewise.
25451         (aarch64_tuning_override_functions): Likewise.
25452         (aarch64_parse_one_option_token): Likewise.
25453         (aarch64_parse_boolean_options): Likewise.
25454         (aarch64_parse_fuse_string): Likewise.
25455         (aarch64_parse_tune_string): Likewise.
25456         (aarch64_parse_one_override_token): Likewise.
25457         (aarch64_parse_override_string): Likewise.
25458         (aarch64_override_options): Parse the -override string if it
25459         is present.
25461 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
25463         * config/aarch64/aarch64-protos.h (tune_params): Remove
25464         const from members.
25465         (aarch64_tune_params): Remove const, change to no longer be
25466         a pointer.
25467         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
25468         change to no longer be a pointer, initialize to generic_tunings.
25469         (aarch64_min_divisions_for_recip_mul): Change dereference of
25470         aarch64_tune_params to member access.
25471         (aarch64_reassociation_width): Likewise.
25472         (aarch64_rtx_mult_cost): Likewise.
25473         (aarch64_address_cost): Likewise.
25474         (aarch64_branch_cost): Likewise.
25475         (aarch64_rtx_costs): Likewise.
25476         (aarch64_register_move_cost): Likewise.
25477         (aarch64_memory_move_cost): Likewise.
25478         (aarch64_sched_issue_rate): Likewise.
25479         (aarch64_builtin_vectorization_cost): Likewise.
25480         (aarch64_override_options): Take a copy of the selected tuning
25481         struct in to aarch64_tune_params, rather than just setting
25482         a pointer, change dereferences of aarch64_tune_params to member
25483         accesses.
25484         (aarch64_override_options_after_change): Change dereferences of
25485         aarch64_tune_params to member access.
25486         (aarch64_macro_fusion_p): Likewise.
25487         (aarch_macro_fusion_pair_p): Likewise.
25488         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
25490 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
25492         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
25493         (aarch64_tune_flags): Likewise.
25494         (AARCH64_TUNE_FMA_STEERING): Likewise.
25495         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
25496         to AARCH64_FL_USE_FMA_STEERING_PASS.
25497         (cortex-a57.cortex-a53): Likewise.
25498         (cortex-a72): Use cortexa72_tunings.
25499         (cortex-a72.cortex-a53): Likewise.
25500         (exynos-m1): Likewise.
25501         * config/aarch64/aarch64-protos.h (tune_params): Add
25502         a field: extra_tuning_flags.
25503         * config/aarch64/aarch64-tuning-flags.def: New.
25504         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
25505         (aarch64_extra_tuning_flags): Likewise.
25506         (aarch64_tune_params): Declare here.
25507         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
25508         (cortexa53_tunings): Likewise.
25509         (cortexa57_tunings): Likewise.
25510         (thunderx_tunings): Likewise.
25511         (xgene1_tunings): Likewise.
25512         (cortexa72_tunings): New.
25513         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
25514          (gate): Check against aarch64_tune_params.
25515         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
25516         aarch64-protos.h.
25518 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
25520         * config/aarch64/aarch64-fusion-pairs.def: New.
25521         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
25522         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
25523         aarch64_fusion_pairs.
25524         (AARCH64_FUSE_MOV_MOVK): Likewise.
25525         (AARCH64_FUSE_ADRP_ADD): Likewise.
25526         (AARCH64_FUSE_MOVK_MOVK): Likewise.
25527         (AARCH64_FUSE_ADRP_LDR): Likewise.
25528         (AARCH64_FUSE_CMP_BRANCH): Likewise.
25530 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
25532         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
25533         SYMBOL_SMALL_GOT_28K.
25534         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
25535         relocation modifiers.
25536         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
25537         (ldr_got_small_28k_<mode>): New.
25538         (ldr_got_small_28k_sidi): New.
25539         * config/aarch64/iterators.md (got_modifier): New mode iterator.
25540         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
25541         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
25542         SYMBOL_SMALL_GOT_28K.
25543         (aarch64_rtx_costs): Add costs for new instruction sequences.
25544         (initialize_aarch64_code_model): Initialize new model.
25545         (aarch64_classify_symbol): Recognize new model and new symbol classification.
25546         (aarch64_asm_preferred_eh_data_format): Support new model.
25547         (aarch64_load_symref_appropriately): Generate new instruction
25548         sequences for -fpic.
25549         (TARGET_USE_PSEUDO_PIC_REG): New definition.
25550         (aarch64_use_pseudo_pic_reg): New function.
25552 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
25554         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
25555         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
25556         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
25557         (aarch64_expand_mov_immediate): Ditto.
25558         (aarch64_print_operand): Ditto.
25559         (aarch64_classify_symbol): Ditto.
25561 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
25563         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
25565 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
25567         PR bootstrap/66638
25568         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
25569         assertion failed.  Remove assertion itself.
25571 2015-06-26  Richard Biener  <rguenther@suse.de>
25573         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
25574         and -A CMP CST -> A CMP -CST which is redundant with a pattern
25575         in match.pd.
25576         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
25577         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
25578         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
25579         * match.pd: ... patterns here.
25581 2015-06-26  Marek Polacek  <polacek@redhat.com>
25583         * match.pd ((x | y) & ~(x & y) -> x ^ y,
25584         (x | y) & (~x ^ y) -> x & y): New patterns.
25586 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
25588         * rtl.h (emit): Add an optional boolean parameter to control
25589         whether barriers are emitted.
25590         * emit-rtl.c (emit): Likewise.
25591         * gensupport.c (get_emit_function): Return null rather than "emit".
25592         * genemit.c (gen_emit_seq): Handle the null return value.
25593         Don't emit barriers after the final instruction in the sequence.
25594         * gentarget-def.c (main): Don't emit barriers after the instruction.
25596 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25598         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
25599         TARGET_UNIFIED_ASM.
25601 2015-06-26  Richard Biener  <rguenther@suse.de>
25603         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
25605 2015-06-26  Richard Biener  <rguenther@suse.de>
25607         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
25608         irrespective on whether the inner operation has a single use
25609         of both off are constant.
25611 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
25612             Segher Boessenkool  <segher@kernel.crashing.org>
25614         PR target/66412
25615         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
25616         before doing PUT_MODE or PUT_CODE on operands to avoid
25617         in-place RTX modification.
25619 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
25621         * gentarget-def.c (def_target_insn): Cast return of strtol to
25622         unsigned int.
25624 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
25626         * gimple.h (gimple_call_set_fn): Move inline function.
25627         * gimple.c (gimple_call_set_fn): Relocate here.
25629 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
25631         PR target/65979
25632         PR target/66611
25633         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
25634         the replacement insn will work.
25636 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
25638         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
25639         by default.
25641 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
25643         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
25644         * cgraph.h: Include ipa-ref.h and plugin-api.h.
25645         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
25646         (symtab_node::address_can_be_compared_p): Move function.
25647         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
25648         definition here.
25649         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
25650         * auto-profile.c: Likewise.
25651         * bb-reorder.c: Likewise.
25652         * builtins.c: Likewise.
25653         * calls.c: Likewise.
25654         * cfgexpand.c: Likewise.
25655         * cgraphbuild.c: Likewise.
25656         * cgraphclones.c: Likewise.
25657         * cgraphunit.c: Likewise.
25658         * combine.c: Likewise.
25659         * coverage.c: Likewise.
25660         * data-streamer-in.c: Likewise.
25661         * data-streamer-out.c: Likewise.
25662         * data-streamer.c: Likewise.
25663         * dbxout.c: Likewise.
25664         * dwarf2out.c: Likewise.
25665         * except.c: Likewise.
25666         * expr.c: Likewise.
25667         * final.c: Likewise.
25668         * fold-const.c: Likewise.
25669         * ggc-page.c: Likewise.
25670         * gimple-fold.c: Likewise.
25671         * gimple-iterator.c: Likewise.
25672         * gimple-pretty-print.c: Likewise.
25673         * gimple-streamer-in.c: Likewise.
25674         * gimple-streamer-out.c: Likewise.
25675         * gimple.c: Likewise.
25676         * gimplify.c: Likewise.
25677         * ipa-chkp.c: Likewise.
25678         * ipa-comdats.c: Likewise.
25679         * ipa-cp.c: Likewise.
25680         * ipa-devirt.c: Likewise.
25681         * ipa-icf-gimple.c: Likewise.
25682         * ipa-icf.c: Likewise.
25683         * ipa-inline-analysis.c: Likewise.
25684         * ipa-inline-transform.c: Likewise.
25685         * ipa-inline.c: Likewise.
25686         * ipa-polymorphic-call.c: Likewise.
25687         * ipa-profile.c: Likewise.
25688         * ipa-prop.c: Likewise.
25689         * ipa-pure-const.c: Likewise.
25690         * ipa-ref.c: Likewise.
25691         * ipa-reference.c: Likewise.
25692         * ipa-split.c: Likewise.
25693         * ipa-utils.c: Likewise.
25694         * ipa-visibility.c: Likewise.
25695         * ipa.c: Likewise.
25696         * langhooks.c: Likewise.
25697         * lto-cgraph.c: Likewise.
25698         * lto-compress.c: Likewise.
25699         * lto-opts.c: Likewise.
25700         * lto-section-in.c: Likewise.
25701         * lto-section-out.c: Likewise.
25702         * lto-streamer-in.c: Likewise.
25703         * lto-streamer-out.c: Likewise.
25704         * lto-streamer.c: Likewise.
25705         * omp-low.c: Likewise.
25706         * opts-global.c: Likewise.
25707         * passes.c: Likewise.
25708         * predict.c: Likewise.
25709         * print-tree.c: Likewise.
25710         * profile.c: Likewise.
25711         * ree.c: Likewise.
25712         * sanopt.c: Likewise.
25713         * stor-layout.c: Likewise.
25714         * symtab.c: Likewise.
25715         * toplev.c: Likewise.
25716         * trans-mem.c: Likewise.
25717         * tree-cfg.c: Likewise.
25718         * tree-chkp.c: Likewise.
25719         * tree-eh.c: Likewise.
25720         * tree-emutls.c: Likewise.
25721         * tree-inline.c: Likewise.
25722         * tree-nested.c: Likewise.
25723         * tree-parloops.c: Likewise.
25724         * tree-pretty-print.c: Likewise.
25725         * tree-profile.c: Likewise.
25726         * tree-sra.c: Likewise.
25727         * tree-ssa-alias.c: Likewise.
25728         * tree-ssa-live.c: Likewise.
25729         * tree-ssa-loop-ivcanon.c: Likewise.
25730         * tree-ssa-loop-ivopts.c: Likewise.
25731         * tree-ssa-pre.c: Likewise.
25732         * tree-ssa-sccvn.c: Likewise.
25733         * tree-ssa-strlen.c: Likewise.
25734         * tree-ssa-structalias.c: Likewise.
25735         * tree-streamer-in.c: Likewise.
25736         * tree-streamer-out.c: Likewise.
25737         * tree-streamer.c: Likewise.
25738         * tree-switch-conversion.c: Likewise.
25739         * tree-tailcall.c: Likewise.
25740         * tree-vect-data-refs.c: Likewise.
25741         * tree-vect-stmts.c: Likewise.
25742         * tree-vectorizer.c: Likewise.
25743         * tree.c: Likewise.
25744         * tsan.c: Likewise.
25745         * ubsan.c: Likewise.
25746         * value-prof.c: Likewise.
25747         * varasm.c: Likewise.
25748         * varpool.c: Likewise.
25749         * config/arm/arm.c: Likewise.
25750         * config/bfin/bfin.c: Likewise.
25751         * config/c6x/c6x.c: Likewise.
25752         * config/cris/cris.c: Likewise.
25753         * config/darwin-c.c: Likewise.
25754         * config/darwin.c: Likewise.
25755         * config/i386/i386.c: Likewise.
25756         * config/i386/winnt.c: Likewise.
25757         * config/microblaze/microblaze.c: Likewise.
25758         * config/mips/mips.c: Likewise.
25759         * config/rs6000/rs6000.c: Likewise.
25760         * config/rx/rx.c: Likewise.
25761         * config/s390/s390.c: Likewise.
25762         * config/tilegx/mul-tables.c: Likewise.
25764 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25766         * config/aarch64/aarch64.c, config/alpha/alpha.c,
25767         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
25768         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
25769         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
25770         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
25771         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
25772         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
25773         config/microblaze/microblaze.c, config/mips/mips.c,
25774         config/mmix/mmix.c, config/mn10300/mn10300.c,
25775         config/moxie/moxie.c, config/msp430/msp430.c,
25776         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
25777         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
25778         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
25779         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
25780         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
25781         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
25782         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
25783         target-def.h include.
25784         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
25786 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25788         * Makefile.in (TARGET_DEF): Add target-insns.def.
25789         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
25790         (build/gentarget-def.o): New rule.
25791         (genprogrtl): Add target-def.
25792         * target-insns.def, gentarget-def.c: New files.
25793         * target.def: Add targetm.have_* and targetm.gen_* hooks,
25794         based on the contents of target-insns.def.
25795         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
25796         (HAVE_return, gen_return): Delete.
25797         * target-def.h: Include insn-target-def.h.
25798         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
25799         instead of direct calls.  Rely on them to do the appropriate assertions.
25800         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
25801         (convert_jumps_to_returns): Use targetm interface instead of
25802         direct calls.
25803         (thread_prologue_and_epilogue_insns): Likewise.
25804         * reorg.c (find_end_label, dbr_schedule): Likewise.
25805         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
25806         * shrink-wrap.c (convert_to_simple_return): Likewise.
25807         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
25809 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25811         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
25812         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
25813         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
25814         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
25815         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
25816         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
25817         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
25818         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
25819         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
25820         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
25821         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
25822         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
25823         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
25824         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
25825         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
25826         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
25827         includes to end.
25829 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25831         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
25832         (unbounded_int_hashmap_traits::key_type): Likewise.
25833         * hash-map.h (hash_map): Get the key type from the traits.
25834         * hash-traits.h (default_hash_traits): By default, inherit from the
25835         template parameter.
25836         * alias.c (alias_set_traits): Delete.
25837         (alias_set_entry_d::children): Use alias_set_hash as the first
25838         template parameter.
25839         (record_alias_subset): Update accordingly.
25840         * except.c (tree_hash_traits): Delete.
25841         (type_to_runtime_map): Use tree_hash as the first template parameter.
25842         (init_eh): Update accordingly.
25843         * genmatch.c (capture_id_map_hasher): Delete.
25844         (cid_map_t): Use nofree_string_hash as first template parameter.
25845         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
25846         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
25847         Use symbol_compare_hash as the first template parameter in
25848         subdivide_hash_map.
25849         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
25850         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
25851         template parameter.
25852         * passes.c (pass_registry_hasher): Delete.
25853         (name_to_pass_map): Use nofree_string_hash as the first template
25854         parameter.
25855         (register_pass_name): Update accordingly.
25856         * sanopt.c (sanopt_tree_map_traits): Delete.
25857         (sanopt_tree_triplet_map_traits): Delete.
25858         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
25859         template parameter.
25860         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
25861         the first template parameter.
25862         * sese.c (rename_map_hasher): Delete.
25863         (rename_map_type): Use tree_ssa_name_hash as the first template
25864         parameter.
25865         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
25866         (function_summary::m_map): Use map_hash as the first template
25867         parameter.
25868         (function_summary::release): Update accordingly.
25869         * tree-if-conv.c (phi_args_hash_traits): Delete.
25870         (predicate_scalar_phi): Use tree_operand_hash as the first template
25871         parameter to phi_arg_map.
25872         * tree-inline.h (dependence_hasher): Delete.
25873         (copy_body_data::dependence_map): Use dependence_hash as the first
25874         template parameter.
25875         * tree-inline.c (remap_dependence_clique): Update accordingly.
25876         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
25877         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
25878         parameter.
25879         (addr_stridxptr): Update accordingly.
25880         * value-prof.c (profile_id_traits): Delete.
25881         (cgraph_node_map): Use profile_id_hash as the first template
25882         parameter.
25883         (init_node_map): Update accordingly.
25884         * config/alpha/alpha.c (string_traits): Delete.
25885         (machine_function::links): Use nofree_string_hash as the first
25886         template parameter.
25887         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
25888         * config/m32c/m32c.c (pragma_traits): Delete.
25889         (pragma_htab): Use nofree_string_hash as the first template parameter.
25890         (m32c_note_pragma_address): Update accordingly.
25891         * config/mep/mep.c (pragma_traits): Delete.
25892         (pragma_htab): Use nofree_string_hash as the first template parameter.
25893         (mep_note_pragma_flag): Update accordingly.
25894         * config/mips/mips.c (mips16_flip_traits): Delete.
25895         (mflip_mips16_htab): Use nofree_string_hash as the first template
25896         parameter.
25897         (mflip_mips16_use_mips16_p): Update accordingly.
25898         (local_alias_traits): Delete.
25899         (mips16_local_aliases): Use nofree_string_hash as the first template
25900         parameter.
25901         (mips16_local_alias): Update accordingly.
25903 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25905         * hash-map-traits.h (default_hashmap_traits): Delete.
25907 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25909         * hash-map-traits.h (unbounded_hashmap_traits): New class.
25910         (unbounded_int_hashmap_traits): Likewise.
25911         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
25913 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25915         * ipa-icf.h (symbol_compare_hash): New class.
25916         (symbol_compare_hashmap_traits): Use it.
25917         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
25918         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
25919         (mem_alloc_description::reverse_mem_map_t): Remove redundant
25920         default_hashmap_traits.
25921         * sanopt.c (sanopt_tree_triplet_hash): New class.
25922         (sanopt_tree_triplet_map_traits): Use it.
25924 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25926         * gengtype-parse.c (require_template_declaration): Allow '+' in
25927         template parameters.  Consolidate cases.
25928         * hash-traits.h (int_hash): New class.
25929         * alias.c (alias_set_hash): New structure.
25930         (alias_set_traits): Use it.
25931         * symbol-summary.h (function_summary::map_hash): New class.
25932         (function_summary::summary_hashmap_traits): Use it.
25933         * tree-inline.h (dependence_hash): New class.
25934         (dependence_hasher): Use it.
25935         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
25936         * value-prof.c (profile_id_hash): New class.
25937         (profile_id_traits): Use it.
25939 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25941         * config/mips/mips.c (mips16_flip_traits): Use it.
25942         (local_alias_traits, mips16_local_aliases): Convert from a map of
25943         rtxes to a map of symbol names.
25944         (mips16_local_alias): Update accordingly.
25946 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25948         * hash-traits.h (string_hash, nofree_string_hash): New classes.
25949         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
25950         * passes.c (pass_registry_hasher): Likewise.
25951         * config/alpha/alpha.c (string_traits): Likewise.
25952         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
25953         * config/m32c/m32c.c (pragma_traits): Likewise.
25954         * config/mep/mep.c (pragma_traits): Likewise.
25956 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25958         * tree-hash-traits.h (tree_hash): New class.
25959         * except.c: Include tree-hash-traits.h.
25960         (tree_hash_traits): Use tree_hash.
25962 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25964         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
25965         * sese.c: Include tree-hash-traits.h.
25966         (rename_map_hasher): Use tree_ssa_name_hasher.
25968 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25970         * tree-hash-traits.h (tree_decl_hash): New class.
25971         * tree-ssa-strlen.c: Include tree-hash-traits.h.
25972         (stridxlist_hash_traits): Use tree_decl_hash.
25974 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25976         * tree-hash-traits.h: New file.
25977         (tree_operand_hash): New class.
25978         * sanopt.c: Include tree-hash-traits.h.
25979         (sanopt_tree_map_traits): Use tree_operand_hash.
25980         * tree-if-conv.c: Include tree-hash-traits.h.
25981         (phi_args_hash_traits): Use tree_operand_hash.
25982         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
25983         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
25985 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25987         * hash-map-traits.h: Include hash-traits.h.
25988         (simple_hashmap_traits): New class.
25989         * mem-stats.h (hash_map): Change the default traits to
25990         simple_hashmap_traits<default_hash_traits<Key> >.
25992 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25994         * hash-table.h: Update comments.
25996 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25998         * hash-traits.h (default_hash_traits): New structure.
25999         * hash-set.h (default_hashset_traits): Delete.
26000         (hash_set): Use default_hash_traits<Key> instead of
26001         default_hashset_traits.  Delete hash_entry type and use Key directly.
26002         * ipa-devirt.c (pair_traits): Delete.
26003         (default_hash_traits <type_pair>): Override.
26004         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
26005         (odr_types_equivalent_p, add_type_duplicate): Likewise.
26007 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
26009         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
26011 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
26013         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
26014         (has_is_empty, is_empty_helper): Delete.
26015         (has_mark_deleted, mark_deleted_helper): Delete.
26016         (has_mark_empty, mark_empty_helper): Delete.
26017         (hash_table::is_deleted): Call the Descriptor unconditionally.
26018         (hash_table::is_empty): Likewise.
26019         (hash_table::mark_deleted): Likewise.
26020         (hash_table::mark_empty): Likewise.
26022 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
26024         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
26025         redundant typedefs and members.
26026         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
26027         redundant typedefs.
26028         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
26029         * ipa-devirt.c (odr_name_hasher): Likewise.
26030         (polymorphic_call_target_hasher): Likewise.
26031         * ira-costs.c (cost_classes_hasher): Likewise.
26032         * statistics.c (stats_counter_hasher): Likewise.
26033         * trans-mem.c (log_entry_hasher): Likewise.
26034         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
26035         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
26036         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
26037         * var-tracking.c (variable_hasher): Likewise.
26038         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
26039         Remove redundant typedefs and members.
26041 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
26043         * hash-traits.h (ggc_cache_hasher): Rename to...
26044         (ggc_cache_remove): ...this and remove typedefs.
26045         (ggc_cache_ptr_hash): New class.
26046         * hash-table.h: Update commentary.
26047         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
26048         rather than ggc_cache_hasher.
26049         (const_wide_int_hasher, reg_attr_hasher): Likewise.
26050         (const_double_hasher, const_fixed_hasher): Likewise.
26051         * function.c (insn_cache_hasher): Likewise.
26052         * trans-mem.c (tm_wrapper_hasher): Likewise.
26053         * tree.h (tree_decl_map_cache_hasher): Likewise.
26054         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
26055         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
26056         * ubsan.c (tree_type_map_cache_hasher): Likewise.
26057         * varasm.c (tm_clone_hasher): Likewise.
26058         * config/i386/i386.c (dllimport_hasher): Likewise.
26059         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
26060         (tree_hasher): Likewise.
26062 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
26064         * hash-traits.h (ggc_hasher): Rename to...
26065         (ggc_remover): ...this and remove typedefs.
26066         (ggc_cache_hasher): Update accordingly.  Add typedefs.
26067         (ggc_ptr_hash): New class.
26068         * hash-table.h: Update comment.
26069         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
26070         ggc_hasher.
26071         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
26072         (tree_descriptor_hasher): Likewise.
26073         * cgraph.c (function_version_hasher): Likewise.
26074         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
26075         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
26076         (dw_loc_list_hasher, addr_hasher): Likewise.
26077         * function.h (used_type_hasher): Likewise.
26078         * function.c (temp_address_hasher): Likewise.
26079         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
26080         * libfuncs.h (libfunc_hasher): Likewise.
26081         * lto-streamer.h (decl_state_hasher): Likewise.
26082         * optabs.c (libfunc_decl_hasher): Likewise.
26083         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
26084         * varasm.c (section_hasher, object_block_hasher): Likewise.
26085         (const_rtx_desc_hasher): Likewise.
26086         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
26087         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
26089 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
26091         * hash-traits.h (free_ptr_hash): New class.
26092         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
26093         rather than typed_free_remove.  Remove redudant typedefs.
26094         (external_ref_hasher): Likewise.
26095         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
26096         (ehspec_hasher): Likewise.
26097         * ggc-common.c (saving_hasher): Likewise.
26098         * gimplify.c (gimplify_hasher): Likewise.
26099         * haifa-sched.c (delay_i2_hasher): Likewise.
26100         * loop-invariant.c (invariant_expr_hasher): Likewise.
26101         * loop-iv.c (biv_entry_hasher): Likewise.
26102         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
26103         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
26104         * tree-cfg.c (locus_discrim_hasher): Likewise.
26105         * tree-eh.c (finally_tree_hasher): Likewise.
26106         * tree-into-ssa.c (var_info_hasher): Likewise.
26107         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
26108         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
26109         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
26110         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
26111         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
26112         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
26113         (shared_bitmap_hasher): Likewise.
26114         * tree-ssa-threadupdate.c (redirection_data): Likewise.
26115         * tree-vectorizer.h (peel_info_hasher): Likewise.
26116         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
26117         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
26119 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
26121         * hash-table.h: Update comments.
26122         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
26123         (nofree_ptr_hash): New class.
26124         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
26125         than typed_noop_remove.  Remove redudant typedefs.
26126         * attribs.c (attribute_hasher): Likewise.
26127         * cfg.c (bb_copy_hasher): Likewise.
26128         * cselib.c (cselib_hasher): Likewise.
26129         * dse.c (invariant_group_base_hasher): Likewise.
26130         * dwarf2cfi.c (trace_info_hasher): Likewise.
26131         * dwarf2out.c (macinfo_entry_hasher): Likewise.
26132         (comdat_type_hasher, loc_list_hasher): Likewise.
26133         * gcse.c (pre_ldst_expr_hasher): Likewise.
26134         * genmatch.c (id_base): Likewise.
26135         * genrecog.c (test_pattern_hasher): Likewise.
26136         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
26137         * haifa-sched.c (delay_i1_hasher): Likewise.
26138         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
26139         * ipa-icf.h (congruence_class_group_hash): Likewise.
26140         * ipa-profile.c (histogram_hash): Likewise.
26141         * ira-color.c (allocno_hard_regs_hasher): Likewise.
26142         * lto-streamer.h (string_slot_hasher): Likewise.
26143         * lto-streamer.c (tree_entry_hasher): Likewise.
26144         * plugin.c (event_hasher): Likewise.
26145         * postreload-gcse.c (expr_hasher): Likewise.
26146         * store-motion.c (st_expr_hasher): Likewise.
26147         * tree-sra.c (uid_decl_hasher): Likewise.
26148         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
26149         (ssa_name_var_hash): Likewise.
26150         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
26151         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
26152         * tree-ssa-pre.c (pre_expr_d): Likewise.
26153         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
26154         * vtable-verify.h (registration_hasher): Likewise.
26155         * vtable-verify.c (vtbl_map_hasher): Likewise.
26156         * config/arm/arm.c (libcall_hasher): Likewise.
26157         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
26158         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
26159         * config/sol2.c (comdat_entry_hasher): Likewise.
26160         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
26161         (print_fold_checksum, fold_checksum_tree): Likewise.
26162         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
26163         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
26164         (fold_build_call_array_loc): Likewise.
26165         * tree-ssa-ccp.c (gimple_htab): Likewise.
26166         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
26167         rather than pointer_type.
26169 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
26171         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
26172         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
26174 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
26176         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
26177         (ggc_hasher::ggc_mx): Likewise.
26178         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
26179         that duplicate ggc_hasher ones.
26181 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
26183         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
26184         (gt_cleare_cache): Check here for deleted and empty entries.
26185         Replace handle_cache_entry with a call to keep_cache_entry.
26186         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
26187         (ggc_cache_hasher::keep_cache_entry): New function.
26188         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
26189         (tm_wrapper_hasher::keep_cache_entry): New function.
26190         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
26191         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
26192         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
26193         (type_cache_hasher::keep_cache_entry): New function.
26194         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
26195         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
26196         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
26197         (tree_type_map_cache_hasher::keep_cache_entry): New function.
26198         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
26199         (tm_clone_hasher::keep_cache_entry): New function.
26200         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
26201         (dllimport_hasher::keep_cache_entry): New function.
26203 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
26205         * hash-table.h: Include hash-traits.h.
26206         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
26207         (ggc_cache_hasher): Move to...
26208         * hash-traits.h: ...this new file.
26210 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
26212         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
26213         struct cl_optimization.
26214         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
26215         * tree.c (make_node_stat): Allocate cl_optimization struct.
26216         (copy_node_stat): Allocate and copy cl_optimization struct.
26218 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
26220         * function.h (struct incoming_args): Move struct.
26221         (pass_by_reference, reference_callee_copied): Remove prototypes.
26222         * emit-rtl.h (struct incoming_args): Relocate struct here.
26223         * calls.h (pass_by_reference, reference_callee_copied): Relocate
26224         prototypes here.
26225         * function.c (pass_by_reference, reference_callee_copied): Move.
26226         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
26227         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
26228         * ipa-chkp.c: Include calls.h.
26230 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
26232         * alias.h (alias_set_type): Move typedef.
26233         * coretypes.h (alias_set_type): Relocate typedef here.
26234         * rtl.h: Don't include alias.h.
26236 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
26238         * cgraph.h (cgraph_rtl_info): Move to rtl.h
26239         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
26240         and instance.
26241         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
26242         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
26243         doesn't exist.
26244         * calls.c: Include hard-reg-set.h before rtl.h.
26245         * ira.c: Likewise.
26247 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
26248             Vladimir Makarov  <vmakarov@redhat.com>
26250         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
26251         Add assert.
26253 2015-06-25  Richard Biener  <rguenther@suse.de>
26255         * fold-const.c (fold_binary_loc): Move simplification of
26256         (X <<>> C1) & C2 ...
26257         * match.pd: ... here.
26259 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
26261         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
26263 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
26265         * match.pd: Add patterns for vec_conds between 1 and 0.
26267 2015-06-25  Richard Biener  <rguenther@suse.de>
26269         * tree-vect-stmts.c (vectorizable_conversion): Do not set
26270         STMT_VINFO_VEC_STMT for SLP.
26271         (vectorizable_store): Likewise.
26272         (vectorizable_load): Likewise.
26273         (vect_transform_stmt): Catch SLP vectorization clobbering
26274         STMT_VINFO_VEC_STMT.
26276 2015-06-25  Richard Biener  <rguenther@suse.de>
26278         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
26279         dumping.
26280         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
26281         cleanup resulting dead code and parameters.
26282         (vect_transform_slp_perm_load): Adjust.
26284 2015-06-25  Nick Clifton  <nickc@redhat.com>
26286         * config/bfin/bfin.c (bfin_expand_prologue): Set
26287         current_function_static_stack_size if flag_stack_usage_info is set.
26288         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
26289         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
26290         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
26291         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
26293 2015-06-25  Tom de Vries  <tom@codesourcery.com>
26295         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
26296         comment that the generated IV is unsigned.
26298 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26300         PR target/29693
26301         * config/arm/arm.c (arm_dbx_register_number): Return
26302         DWARF_FRAME_REGISTERS by default.
26304 2015-06-25  Tom de Vries  <tom@codesourcery.com>
26306         * dominance.c (calculate_dominance_info): Fix verify_dominators call
26307         argument.  Call verify_dominator when reusing dominator info.
26309 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
26311         PR target/66563
26312         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
26313         an additional element of the unspec vector.  Modify indices
26314         of operands.
26315         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
26316         * config/sh/sh.c (prepare_move_operands): Pass incremented
26317         const_int to gen_GOTaddr2picreg.
26318         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
26320 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
26322         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
26323         Condition on TARGET_FLOAT.
26325 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
26327         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
26328         and (no)crypto.
26330 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
26332         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
26334         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
26335         aarch64_err_no_fpadvsimd.
26337         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
26338         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
26339         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
26340         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
26341         Turn error into assert, test TARGET_FLOAT.
26342         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
26343         TARGET_FLOAT.
26345 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
26347         PR debug/66482
26348         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
26350 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
26352         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
26354 2015-06-24  Renlin Li <renlin.li@arm.com>
26356         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
26357         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
26359 2015-06-24  Richard Biener  <rguenther@suse.de>
26361         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
26362         (main): Likewise.
26363         (lower_opt_convert): Support lowering of conditional view_convert.
26364         (parser::parse_operation): Likewise.
26365         (parser::parse_for): Likewise.
26367 2015-06-24  Renlin Li  <renlin.li@arm.com>
26369         * varasm.c (emit_local): Use unsigned int for align variable.
26371 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26373         PR target/63408
26374         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
26375         for negative numbers.
26377 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26379         PR rtl-optimization/66306
26380         * reload.c (find_reloads): Swap the match_dup info for
26381         commutative operands.
26383 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26385         * config/s390/vx-builtins.md
26386         ("vec_scatter_element<mode>_<non_vec_int>")
26387         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
26388         attribute with bhfgq.
26390 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26392         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
26394 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26396         * config/s390/s390-builtin-types.def: Add flag to indicate the
26397         options under which the function type is needed.
26398         * config/s390/s390-builtins.def: Add flag to indicate the options
26399         under which the builtin is enabled.
26400         * config/s390/s390-builtins.h: Add flags parameter to macro
26401         definitions.
26402         (bflags_for_builtin): New function.
26403         (flags_for_builtin): Renamed to ...
26404         (opflags_for_builtin): ... this.
26405         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
26406         flags_for_builtin to bflags_for_builtin and
26407         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
26408         * config/s390/s390.c: Add initialization of bflags_builtin and
26409         opflags_builtin arrays.
26410         Remove code for flags_builtin.
26411         (s390_init_builtins): Only create builtin function types if one of
26412         their flags is active.
26413         Only create builtins if all of their flags are active.
26414         (s390_expand_builtin): Rename flags_for_builtin to
26415         opflags_for_builtin.
26417 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26419         * config/s390/vecintrin.h: Remove internal builtins.
26421 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26423         * config/s390/s390.c (s390_secondary_reload): Fix check for
26424         GENERAL_REGS register class.
26426 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26428         * config/s390/s390.c (s390_support_vector_misalignment): Call
26429         default implementation for !TARGET_VX.
26431 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26433         * config/s390/s390.c (s390_legitimate_constant_p): Add
26434         TARGET_VX check.
26436 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26438         * config/s390/s390.c (s390_vector_abi): New variable definition.
26439         (s390_check_type_for_vector_abi): New function.
26440         (TARGET_ASM_FILE_END): New macro definition.
26441         (s390_asm_file_end): New function.
26442         (s390_function_arg): Call s390_check_type_for_vector_abi.
26443         (s390_gimplify_va_arg): Likewise.
26444         * configure: Regenerate.
26445         * configure.ac: Check for .gnu_attribute Binutils feature.
26447 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
26449         PR target/65803
26450         * config/bfin/bfin.c (hwloop_optimize): Initialize
26451         JUMP_LABEL for newly created jump.
26453 2015-06-23  Tristan Gingold  <gingold@adacore.com>
26455         * collect-utils.c (collect_wait): Unlink the response file here
26456         instead of...
26457         (do_wait): ...here.
26458         (utils_cleanup): ...and here.
26460 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
26462         * df-scan.c: Don't include target-def.h.
26463         * targhooks.c: Likewise.
26464         * config/arm/arm-c.c: Likewise.
26465         * config/i386/i386-c.c: Likewise.
26466         * config/nds32/nds32-cost.c: Likewise.
26467         * config/nds32/nds32-fp-as-gp.c: Likewise.
26468         * config/nds32/nds32-intrinsic.c: Likewise.
26469         * config/nds32/nds32-isr.c: Likewise.
26470         * config/nds32/nds32-md-auxiliary.c: Likewise.
26471         * config/nds32/nds32-memory-manipulation.c: Likewise.
26472         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26473         * config/nds32/nds32-predicates.c: Likewise.
26475 2015-06-23  Richard Biener  <rguenther@suse.de>
26477         PR tree-optimization/66636
26478         * tree-vect-stmts.c (vectorizable_store): Properly compute the
26479         def type for further defs for strided stores.
26481 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
26483         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
26484         conditional selects.
26485         (setcc_int<mode>, setcc_float<mode>): Reformat.
26487 2015-06-23  Marek Polacek  <polacek@redhat.com>
26489         * match.pd ((x + y) - (x | y) -> x & y,
26490         (x + y) - (x & y) -> x | y): New patterns.
26492 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
26494         PR 65711
26495         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
26496         '-dynamic-linker' within %{!shared: ...}.
26498 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
26500         PR target/66560
26501         * config/i386/predicates.md (addsub_vm_operator): New predicate.
26502         (addsub_vs_operator): Ditto.
26503         (addsub_vs_parallel): Ditto.
26504         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
26505         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
26506         Put minus RTX before plus and adjust vec_merge selector.
26507         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
26508         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
26509         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
26510         (addsub vec_merge splitters): New combiner splitters.
26511         (addsub vec_select/vec_concat splitters): Ditto.
26513 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
26515         PR tree-optimization/66449
26516         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
26517         POINTER_PLUS_EXPR for pointers.
26519 2015-06-23  Alan Modra  <amodra@gmail.com>
26521         * rtlanal.c (commutative_operand_precedence): Correct comments.
26522         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
26523         declaration.  Return an int.  Distinguish REG,REG return from
26524         others.
26525         (struct simplify_plus_minus_op_data): Make local to function.
26526         (simplify_plus_minus): Don't set canonicalized if merely sorting
26527         registers.  Avoid packing ops if nothing changes.  White space fixes.
26529 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
26531         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
26532         -fdump-ada-spec is passed but not if -fsyntax-only is.
26534 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
26536         PR bootstrap/63740
26537         * lra-lives.c (process_bb_lives): Check insn copying the same
26538         reload pseudo and don't create a copy for it.
26540 2015-06-22  Tom de Vries  <tom@codesourcery.com>
26542         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
26543         for cond_stmt.
26545 2015-06-22  Tom de Vries  <tom@codesourcery.com>
26547         * builtins.def (DEF_GOMP_BUILTIN): Test
26548         'flag_tree_parallelize_loops > 1' instead of
26549         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
26551 2015-06-22  Tom de Vries  <tom@codesourcery.com>
26553         * dominance.c (calculate_dominance_info): Verify dominators if
26554         early-out.
26556 2015-06-22  Marek Polacek  <polacek@redhat.com>
26558         * match.pd ((x ^ y) ^ (x | y) -> x & y,
26559         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
26560         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
26561         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
26563 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
26565         PR target/65871
26566         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
26567         cost of embedded comparison.
26569 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26571         PR target/65914
26572         * config/rs6000/predicates.md (altivec_register_operand): Permit
26573         virtual stack registers.
26574         (vsx_register_operand): Likewise.
26575         (vfloat_operand): Likewise.
26576         (vint_operand): Likewise.
26577         (vlogical_operand): Likewise.
26579 2015-06-22  Richard Biener  <rguenther@suse.de>
26581         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
26582         and single_scalar_iteration_cost members.
26583         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
26584         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
26585         (vect_get_single_scalar_iteration_cost): Remove.
26586         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
26587         Use LOOP_VINFO_SCALAR_ITERATION_COST.
26588         * tree-vect-loop.c (destroy_loop_vec_info): Free
26589         scalar_cost_vec.
26590         (vect_get_single_scalar_iteration_cost): Compute result into
26591         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
26592         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
26593         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
26594         (vect_estimate_min_profitable_iters): Use them.
26596 2015-06-22  Christian Bruel  <christian.bruel@st.com>
26598         PR target/52144
26599         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
26600         (TARGET_INSERT_ATTRIBUTES): Define.
26601         (thumb_flipper): New var.
26602         * config/arm/arm.opt (-mflip-thumb): New switch.
26604 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
26605             Martin Liska  <mliska@suse.cz>
26607         PR ipa/65908
26608         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
26609         construction of arg_types.
26610         (sem_function::sem_function): Likewise.
26611         (sem_function::~sem_function): Remove destruction of arg_types.
26612         (sem_function::compatible_parm_types_p): New function.
26613         (sem_function::equals_wpa): Reorg matching of return values
26614         and parameter types.
26615         (sem_function::equals_private): Reorg mathcing of argument types.
26616         (sem_function::parse_tree_args): Remove.
26617         * ipa-icf.h (init_wpa): Do not call it.
26618         (parse_tree_args): Remove.
26619         (compatible_parm_types_p): Declare.
26620         (result_type): Remove.
26621         (arg_types): Remove.
26623 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
26625         PR ipa/66351
26626         * ipa-polymorphic-call.c
26627         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
26628         initializing alias oracle; fix formating; set base_alias_set if it
26629         is known.
26631 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
26633         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
26634         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
26635         (find_inc): Likewise.
26636         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
26637         swapping.
26638         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
26639         * df-scan.c (df_swap_refs): Remove.
26640         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
26641         * dominance.c (link_roots): Use std::swap instead of manually swapping.
26642         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
26643         * fold-const.c (fold_relational_const): Likewise.
26644         * genattrtab.c (simplify_test_exp): Likewise.
26645         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
26646         gimple_simplify): Likewise.
26647         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
26648         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
26649         * ipa-devirt.c (add_type_duplicate): Likewise.
26650         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
26651         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
26652         * lra.c (lra_create_copy): Likewise.
26653         * lto-streamer-out.c (DFS::DFS): Likewise.
26654         * modulo-sched.c (get_sched_window): Likewise.
26655         * omega.c (omega_pretty_print_problem): Likewise.
26656         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
26657         * reload1.c (reloads_unique_chain_p): Likewise.
26658         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
26659         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
26660         use std::swap.
26661         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
26662         manually swapping.
26663         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
26664         predicate_mem_writes): Likewise.
26665         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
26666         * tree-predcom.c (combine_chains): Likewise.
26667         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
26668         refs_may_alias_p_1): Likewise.
26669         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
26670         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
26671         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
26672         number_of_iterations_cond): Likewise.
26673         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
26674         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
26675         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
26676         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
26677         * tree-vrp.c (extract_range_from_binary_expr_1,
26678         extract_range_from_unary_expr_1): Likewise.
26680 2015-06-20  Marek Polacek  <polacek@redhat.com>
26682         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
26684 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
26686         PR target/66591
26687         * config/sh/sh.c (prepare_move_operands): Replace subreg
26688         index term with R0 for base and index addressing.
26690 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
26692         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
26693         op1 is an fp zero.
26694         (movsf_aarch64): Change condition from register_operand to
26695         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
26696         load1.  Change type for alternative 7 to store1.
26697         (movdf_aarch64): Likewise.
26699 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
26701         * config/vax/vax.md: Adjust sign/zero extend patterns to
26702         handle SUBREGs in operands[1].
26704 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26706         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
26707         of manually swapping.
26708         (expand_vec_perm_interleave2): Likewise.
26710 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
26712         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
26713         reuse bounds created for abnormal ssa names.
26715 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
26717         * config/nvptx/nvptx.md (allocate_stack): Rename to...
26718         (allocate_stack_<mode>): ... this, and add :P on both
26719         match_operand and unspec.
26720         (allocate_stack): New expander.
26722 2015-06-19  Christian Bruel  <christian.bruel@st.com>
26724         PR target/66541
26725         PR target/52144
26726         * config/arm/arm.c (arm_set_current_function): Handle
26727         explicit default options.
26729 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
26731         * config/i386/i386.md (*movsicc_noc_zext): New insn.
26732         (zero-extended cmove with mem peephole2): New pattern.
26733         (cmove with mem peephole2): Merge patterns.
26735 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
26737         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
26739 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
26741         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
26742         * config/mips/mips.md (*madd4<mode>): Ditto.
26743         (*nmadd3<mode>) Ditto.
26744         (*nmadd4<mode>_fastmath): Ditto.
26745         (*nmadd3<mode>_fastmath): Ditto.
26746         (*nmsub4<mode>): Ditto.
26747         (*nmsub3<mode>): Ditto.
26748         (*nmsub4<mode>_fastmath): Ditto.
26749         (*nmsub3<mode>_fastmath): Ditto.
26751 2015-06-18  Michael Matz  <matz@suse.de>
26753         PR middle-end/66253
26754         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
26755         grouped strided stores.
26756         (vectorizable_load): Don't use the DR from first_stmt in
26757         the non-SLP grouped strided case.
26759 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
26761         PR target/66569
26762         * function.c (assign_bounds): Add arguments assign_regs,
26763         assign_special, assign_bt.
26764         (assign_parms): For vararg functions handle bounds in BT
26765         and special slots after incoming vararg bounds.
26767 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
26769         PR middle-end/66568
26770         * cfgexpand.c (expand_return): Handle missing bounds.
26771         (expand_gimple_stmt_1): Likewise.
26772         * tree-chkp.c (chkp_expand_zero_bounds): New.
26773         * tree-chkp.h (chkp_expand_zero_bounds): New.
26775 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
26777         PR middle-end/66567
26778         * ipa-chkp.c (chkp_maybe_create_clone): Require
26779         functions to be instrumentable.
26780         * tree-chkp.c (chkp_replace_function_pointer): Use
26781         chkp_instrumentable_p instead of attribute check.
26783 2015-06-18  Richard Biener  <rguenther@suse.de>
26785         PR tree-optimization/66510
26786         * tree-vect-stmts.c (vectorizable_load): Properly compute the
26787         number of vector loads for SLP permuted loads.
26788         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
26789         check the stride for loop vectorization.
26790         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
26791         vectorization factor.
26792         (vect_analyze_group_access): If the group size is not a power
26793         of two require a epilogue loop.
26794         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
26795         compute and optimizing and alias test pruning after final
26796         vectorization factor computation.
26797         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
26798         vector alignment.
26799         (vect_transform_slp_perm_load): Properly compute the original
26800         number of vector load stmts.
26802 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
26804         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
26805         "unlikely character , in @var" warning.
26807 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
26809         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
26810         (ix86_function_arg_advance): Ditto.
26811         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
26813 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
26815         * function.h (struct rtl_data): Remove struct and accessor macros.
26816         * emit-rtl.h (struct rtl_data): Relocate to here.
26817         * Makefile.in (GTFILES): Add emit-rtl.h.
26818         * df-core.c: Include emit-rtl.h.
26819         * genattrtab.c: Likewise.
26820         * genconditions.c: Likewise.
26821         * genpreds.c: Likewise.
26822         * genrecog.c: Likewise.
26823         * regcprop.c: Likewise.
26824         * resource.c: Likewise.
26825         * sched-rgn.c: Likewise.
26826         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26827         * config/i386/winnt.c: Likewise.
26829 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
26831         PR middle-end/66429
26832         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
26833         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
26834         and has_force_vectorize_loops flags from cfun into
26835         child_cfun.
26836         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
26837         if simduid is non-NULL.
26838         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
26839         * passes.def (pass_simduid_cleanup): Add new pass after loop
26840         passes.
26841         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
26842         indirection from htab argument's type.
26843         (shrink_simd_arrays): New function.
26844         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
26845         Don't call adjust_simduid_builtins if there are no loops.
26846         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
26847         (pass_simduid_cleanup::execute): New method.
26848         (make_pass_simduid_cleanup): New function.
26850 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
26852         * tree-core.h (tree_target_option): Make opts field a pointer to a
26853         cl_target_option instead of an instance of the struct.
26854         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
26855         the structure.
26856         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
26857         TARGET_OPTION_NODE.
26858         (copy_node_stat): Allocate and copy struct cl_target_option.
26860 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
26862         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
26863         Remove conditional exposure of prototypes.
26864         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
26865         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
26866         definitions in tree.h with functions.
26867         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
26868         anon_aggrname_p.
26869         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
26871 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
26873         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
26874         (*cmp<mode>_signed): ... this.
26875         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
26876         (*cmp<mode>_unsigned): ... this.  Remove %b.
26878 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
26880         * coretypes.h: Include input.h and as-a.h.
26881         * rtl.h: Include input.h and as-a.h for generator files.
26882         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
26883         * vec.c: Don't include diagnostic-core.h.
26884         * alias.c: Do not include input.h, line-map.h or is-a.h.
26885         * asan.c: Likewise.
26886         * attribs.c: Likewise.
26887         * auto-inc-dec.c: Likewise.
26888         * auto-profile.c: Likewise.
26889         * bb-reorder.c: Likewise.
26890         * bt-load.c: Likewise.
26891         * builtins.c: Likewise.
26892         * caller-save.c: Likewise.
26893         * calls.c: Likewise.
26894         * ccmp.c: Likewise.
26895         * cfg.c: Likewise.
26896         * cfganal.c: Likewise.
26897         * cfgbuild.c: Likewise.
26898         * cfgcleanup.c: Likewise.
26899         * cfgexpand.c: Likewise.
26900         * cfghooks.c: Likewise.
26901         * cfgloop.c: Likewise.
26902         * cfgloop.h: Likewise.
26903         * cfgloopanal.c: Likewise.
26904         * cfgloopmanip.c: Likewise.
26905         * cfgrtl.c: Likewise.
26906         * cgraph.c: Likewise.
26907         * cgraphbuild.c: Likewise.
26908         * cgraphclones.c: Likewise.
26909         * cgraphunit.c: Likewise.
26910         * cilk-common.c: Likewise.
26911         * combine-stack-adj.c: Likewise.
26912         * combine.c: Likewise.
26913         * compare-elim.c: Likewise.
26914         * convert.c: Likewise.
26915         * coverage.c: Likewise.
26916         * cppbuiltin.c: Likewise.
26917         * cprop.c: Likewise.
26918         * cse.c: Likewise.
26919         * cselib.c: Likewise.
26920         * data-streamer-in.c: Likewise.
26921         * data-streamer-out.c: Likewise.
26922         * data-streamer.c: Likewise.
26923         * dbxout.c: Likewise.
26924         * dce.c: Likewise.
26925         * ddg.c: Likewise.
26926         * debug.c: Likewise.
26927         * df-core.c: Likewise.
26928         * df-problems.c: Likewise.
26929         * df-scan.c: Likewise.
26930         * df.h: Likewise.
26931         * dfp.c: Likewise.
26932         * diagnostic-core.h: Likewise.
26933         * diagnostic.c: Likewise.
26934         * dojump.c: Likewise.
26935         * dominance.c: Likewise.
26936         * domwalk.c: Likewise.
26937         * double-int.c: Likewise.
26938         * dse.c: Likewise.
26939         * dumpfile.c: Likewise.
26940         * dumpfile.h: Likewise.
26941         * dwarf2asm.c: Likewise.
26942         * dwarf2cfi.c: Likewise.
26943         * dwarf2out.c: Likewise.
26944         * emit-rtl.c: Likewise.
26945         * et-forest.c: Likewise.
26946         * except.c: Likewise.
26947         * explow.c: Likewise.
26948         * expmed.c: Likewise.
26949         * expr.c: Likewise.
26950         * final.c: Likewise.
26951         * fixed-value.c: Likewise.
26952         * fold-const.c: Likewise.
26953         * function.c: Likewise.
26954         * fwprop.c: Likewise.
26955         * gcc-plugin.h: Likewise.
26956         * gcse.c: Likewise.
26957         * generic-match-head.c: Likewise.
26958         * ggc-page.c: Likewise.
26959         * gimple-builder.c: Likewise.
26960         * gimple-expr.c: Likewise.
26961         * gimple-fold.c: Likewise.
26962         * gimple-iterator.c: Likewise.
26963         * gimple-low.c: Likewise.
26964         * gimple-match-head.c: Likewise.
26965         * gimple-pretty-print.c: Likewise.
26966         * gimple-ssa-isolate-paths.c: Likewise.
26967         * gimple-ssa-strength-reduction.c: Likewise.
26968         * gimple-streamer-in.c: Likewise.
26969         * gimple-streamer-out.c: Likewise.
26970         * gimple-streamer.h: Likewise.
26971         * gimple-walk.c: Likewise.
26972         * gimple.c: Likewise.
26973         * gimplify-me.c: Likewise.
26974         * gimplify.c: Likewise.
26975         * godump.c: Likewise.
26976         * graph.c: Likewise.
26977         * graphite-blocking.c: Likewise.
26978         * graphite-dependences.c: Likewise.
26979         * graphite-interchange.c: Likewise.
26980         * graphite-isl-ast-to-gimple.c: Likewise.
26981         * graphite-optimize-isl.c: Likewise.
26982         * graphite-poly.c: Likewise.
26983         * graphite-scop-detection.c: Likewise.
26984         * graphite-sese-to-poly.c: Likewise.
26985         * graphite.c: Likewise.
26986         * haifa-sched.c: Likewise.
26987         * hw-doloop.c: Likewise.
26988         * ifcvt.c: Likewise.
26989         * init-regs.c: Likewise.
26990         * input.c: Likewise.
26991         * internal-fn.c: Likewise.
26992         * ipa-chkp.c: Likewise.
26993         * ipa-comdats.c: Likewise.
26994         * ipa-cp.c: Likewise.
26995         * ipa-devirt.c: Likewise.
26996         * ipa-icf-gimple.c: Likewise.
26997         * ipa-icf.c: Likewise.
26998         * ipa-inline-analysis.c: Likewise.
26999         * ipa-inline-transform.c: Likewise.
27000         * ipa-inline.c: Likewise.
27001         * ipa-polymorphic-call.c: Likewise.
27002         * ipa-profile.c: Likewise.
27003         * ipa-prop.c: Likewise.
27004         * ipa-pure-const.c: Likewise.
27005         * ipa-ref.c: Likewise.
27006         * ipa-reference.c: Likewise.
27007         * ipa-split.c: Likewise.
27008         * ipa-utils.c: Likewise.
27009         * ipa-visibility.c: Likewise.
27010         * ipa.c: Likewise.
27011         * ira-build.c: Likewise.
27012         * ira-color.c: Likewise.
27013         * ira-conflicts.c: Likewise.
27014         * ira-costs.c: Likewise.
27015         * ira-emit.c: Likewise.
27016         * ira-lives.c: Likewise.
27017         * ira.c: Likewise.
27018         * jump.c: Likewise.
27019         * langhooks.c: Likewise.
27020         * lcm.c: Likewise.
27021         * loop-doloop.c: Likewise.
27022         * loop-init.c: Likewise.
27023         * loop-invariant.c: Likewise.
27024         * loop-iv.c: Likewise.
27025         * loop-unroll.c: Likewise.
27026         * lower-subreg.c: Likewise.
27027         * lra-assigns.c: Likewise.
27028         * lra-coalesce.c: Likewise.
27029         * lra-constraints.c: Likewise.
27030         * lra-eliminations.c: Likewise.
27031         * lra-lives.c: Likewise.
27032         * lra-remat.c: Likewise.
27033         * lra-spills.c: Likewise.
27034         * lra.c: Likewise.
27035         * lto-cgraph.c: Likewise.
27036         * lto-compress.c: Likewise.
27037         * lto-opts.c: Likewise.
27038         * lto-section-in.c: Likewise.
27039         * lto-section-out.c: Likewise.
27040         * lto-streamer-in.c: Likewise.
27041         * lto-streamer-out.c: Likewise.
27042         * lto-streamer.c: Likewise.
27043         * mcf.c: Likewise.
27044         * mode-switching.c: Likewise.
27045         * modulo-sched.c: Likewise.
27046         * omega.c: Likewise.
27047         * omp-low.c: Likewise.
27048         * optabs.c: Likewise.
27049         * opts-global.c: Likewise.
27050         * opts.h: Likewise.
27051         * passes.c: Likewise.
27052         * plugin.c: Likewise.
27053         * postreload-gcse.c: Likewise.
27054         * postreload.c: Likewise.
27055         * predict.c: Likewise.
27056         * pretty-print.h: Likewise.
27057         * print-rtl.c: Likewise.
27058         * print-tree.c: Likewise.
27059         * profile.c: Likewise.
27060         * real.c: Likewise.
27061         * realmpfr.c: Likewise.
27062         * recog.c: Likewise.
27063         * ree.c: Likewise.
27064         * reg-stack.c: Likewise.
27065         * regcprop.c: Likewise.
27066         * reginfo.c: Likewise.
27067         * regrename.c: Likewise.
27068         * regstat.c: Likewise.
27069         * reload.c: Likewise.
27070         * reload1.c: Likewise.
27071         * reorg.c: Likewise.
27072         * resource.c: Likewise.
27073         * rtl-chkp.c: Likewise.
27074         * rtl-error.c: Likewise.
27075         * rtlanal.c: Likewise.
27076         * rtlhooks.c: Likewise.
27077         * sanopt.c: Likewise.
27078         * sched-deps.c: Likewise.
27079         * sched-ebb.c: Likewise.
27080         * sched-rgn.c: Likewise.
27081         * sched-vis.c: Likewise.
27082         * sdbout.c: Likewise.
27083         * sel-sched-dump.c: Likewise.
27084         * sel-sched-ir.c: Likewise.
27085         * sel-sched.c: Likewise.
27086         * sese.c: Likewise.
27087         * shrink-wrap.c: Likewise.
27088         * simplify-rtx.c: Likewise.
27089         * stack-ptr-mod.c: Likewise.
27090         * statistics.c: Likewise.
27091         * stmt.c: Likewise.
27092         * stor-layout.c: Likewise.
27093         * store-motion.c: Likewise.
27094         * streamer-hooks.c: Likewise.
27095         * stringpool.c: Likewise.
27096         * symtab.c: Likewise.
27097         * target-globals.c: Likewise.
27098         * targhooks.c: Likewise.
27099         * toplev.c: Likewise.
27100         * tracer.c: Likewise.
27101         * trans-mem.c: Likewise.
27102         * tree-affine.c: Likewise.
27103         * tree-browser.c: Likewise.
27104         * tree-call-cdce.c: Likewise.
27105         * tree-cfg.c: Likewise.
27106         * tree-cfgcleanup.c: Likewise.
27107         * tree-chkp-opt.c: Likewise.
27108         * tree-chkp.c: Likewise.
27109         * tree-chrec.c: Likewise.
27110         * tree-complex.c: Likewise.
27111         * tree-data-ref.c: Likewise.
27112         * tree-dfa.c: Likewise.
27113         * tree-diagnostic.c: Likewise.
27114         * tree-dump.c: Likewise.
27115         * tree-eh.c: Likewise.
27116         * tree-emutls.c: Likewise.
27117         * tree-if-conv.c: Likewise.
27118         * tree-inline.c: Likewise.
27119         * tree-into-ssa.c: Likewise.
27120         * tree-iterator.c: Likewise.
27121         * tree-loop-distribution.c: Likewise.
27122         * tree-nested.c: Likewise.
27123         * tree-nrv.c: Likewise.
27124         * tree-object-size.c: Likewise.
27125         * tree-outof-ssa.c: Likewise.
27126         * tree-parloops.c: Likewise.
27127         * tree-phinodes.c: Likewise.
27128         * tree-predcom.c: Likewise.
27129         * tree-pretty-print.c: Likewise.
27130         * tree-profile.c: Likewise.
27131         * tree-scalar-evolution.c: Likewise.
27132         * tree-sra.c: Likewise.
27133         * tree-ssa-address.c: Likewise.
27134         * tree-ssa-alias.c: Likewise.
27135         * tree-ssa-ccp.c: Likewise.
27136         * tree-ssa-coalesce.c: Likewise.
27137         * tree-ssa-copy.c: Likewise.
27138         * tree-ssa-copyrename.c: Likewise.
27139         * tree-ssa-dce.c: Likewise.
27140         * tree-ssa-dom.c: Likewise.
27141         * tree-ssa-dse.c: Likewise.
27142         * tree-ssa-forwprop.c: Likewise.
27143         * tree-ssa-ifcombine.c: Likewise.
27144         * tree-ssa-live.c: Likewise.
27145         * tree-ssa-loop-ch.c: Likewise.
27146         * tree-ssa-loop-im.c: Likewise.
27147         * tree-ssa-loop-ivcanon.c: Likewise.
27148         * tree-ssa-loop-ivopts.c: Likewise.
27149         * tree-ssa-loop-manip.c: Likewise.
27150         * tree-ssa-loop-niter.c: Likewise.
27151         * tree-ssa-loop-prefetch.c: Likewise.
27152         * tree-ssa-loop-unswitch.c: Likewise.
27153         * tree-ssa-loop.c: Likewise.
27154         * tree-ssa-math-opts.c: Likewise.
27155         * tree-ssa-operands.c: Likewise.
27156         * tree-ssa-phiopt.c: Likewise.
27157         * tree-ssa-phiprop.c: Likewise.
27158         * tree-ssa-pre.c: Likewise.
27159         * tree-ssa-propagate.c: Likewise.
27160         * tree-ssa-reassoc.c: Likewise.
27161         * tree-ssa-sccvn.c: Likewise.
27162         * tree-ssa-scopedtables.c: Likewise.
27163         * tree-ssa-sink.c: Likewise.
27164         * tree-ssa-strlen.c: Likewise.
27165         * tree-ssa-structalias.c: Likewise.
27166         * tree-ssa-tail-merge.c: Likewise.
27167         * tree-ssa-ter.c: Likewise.
27168         * tree-ssa-threadedge.c: Likewise.
27169         * tree-ssa-threadupdate.c: Likewise.
27170         * tree-ssa-uncprop.c: Likewise.
27171         * tree-ssa-uninit.c: Likewise.
27172         * tree-ssa.c: Likewise.
27173         * tree-ssanames.c: Likewise.
27174         * tree-stdarg.c: Likewise.
27175         * tree-streamer-in.c: Likewise.
27176         * tree-streamer-out.c: Likewise.
27177         * tree-streamer.c: Likewise.
27178         * tree-switch-conversion.c: Likewise.
27179         * tree-tailcall.c: Likewise.
27180         * tree-vect-data-refs.c: Likewise.
27181         * tree-vect-generic.c: Likewise.
27182         * tree-vect-loop-manip.c: Likewise.
27183         * tree-vect-loop.c: Likewise.
27184         * tree-vect-patterns.c: Likewise.
27185         * tree-vect-slp.c: Likewise.
27186         * tree-vect-stmts.c: Likewise.
27187         * tree-vectorizer.c: Likewise.
27188         * tree-vrp.c: Likewise.
27189         * tree.c: Likewise.
27190         * tsan.c: Likewise.
27191         * ubsan.c: Likewise.
27192         * valtrack.c: Likewise.
27193         * value-prof.c: Likewise.
27194         * var-tracking.c: Likewise.
27195         * varasm.c: Likewise.
27196         * varpool.c: Likewise.
27197         * vmsdbgout.c: Likewise.
27198         * vtable-verify.c: Likewise.
27199         * web.c: Likewise.
27200         * wide-int.cc: Likewise.
27201         * xcoffout.c: Likewise.
27202         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
27203         * common/common-targhooks.c: Likewise.
27204         * config/aarch64/aarch64-builtins.c: Likewise.
27205         * config/aarch64/aarch64.c: Likewise.
27206         * config/alpha/alpha.c: Likewise.
27207         * config/arc/arc.c: Likewise.
27208         * config/arm/aarch-common.c: Likewise.
27209         * config/arm/arm-builtins.c: Likewise.
27210         * config/arm/arm-c.c: Likewise.
27211         * config/arm/arm.c: Likewise.
27212         * config/avr/avr-c.c: Likewise.
27213         * config/avr/avr-log.c: Likewise.
27214         * config/avr/avr.c: Likewise.
27215         * config/bfin/bfin.c: Likewise.
27216         * config/c6x/c6x.c: Likewise.
27217         * config/cr16/cr16.c: Likewise.
27218         * config/cris/cris.c: Likewise.
27219         * config/darwin-c.c: Likewise.
27220         * config/darwin.c: Likewise.
27221         * config/default-c.c: Likewise.
27222         * config/epiphany/epiphany.c: Likewise.
27223         * config/epiphany/mode-switch-use.c: Likewise.
27224         * config/epiphany/resolve-sw-modes.c: Likewise.
27225         * config/fr30/fr30.c: Likewise.
27226         * config/frv/frv.c: Likewise.
27227         * config/ft32/ft32.c: Likewise.
27228         * config/glibc-c.c: Likewise.
27229         * config/h8300/h8300.c: Likewise.
27230         * config/i386/i386-c.c: Likewise.
27231         * config/i386/i386.c: Likewise.
27232         * config/i386/msformat-c.c: Likewise.
27233         * config/i386/winnt-cxx.c: Likewise.
27234         * config/i386/winnt-stubs.c: Likewise.
27235         * config/i386/winnt.c: Likewise.
27236         * config/ia64/ia64-c.c: Likewise.
27237         * config/ia64/ia64.c: Likewise.
27238         * config/iq2000/iq2000.c: Likewise.
27239         * config/lm32/lm32.c: Likewise.
27240         * config/m32c/m32c-pragma.c: Likewise.
27241         * config/m32c/m32c.c: Likewise.
27242         * config/m32r/m32r.c: Likewise.
27243         * config/m68k/m68k.c: Likewise.
27244         * config/mcore/mcore.c: Likewise.
27245         * config/mep/mep-pragma.c: Likewise.
27246         * config/mep/mep.c: Likewise.
27247         * config/microblaze/microblaze-c.c: Likewise.
27248         * config/microblaze/microblaze.c: Likewise.
27249         * config/mips/mips.c: Likewise.
27250         * config/mmix/mmix.c: Likewise.
27251         * config/mn10300/mn10300.c: Likewise.
27252         * config/moxie/moxie.c: Likewise.
27253         * config/msp430/msp430-c.c: Likewise.
27254         * config/msp430/msp430.c: Likewise.
27255         * config/nds32/nds32-cost.c: Likewise.
27256         * config/nds32/nds32-fp-as-gp.c: Likewise.
27257         * config/nds32/nds32-intrinsic.c: Likewise.
27258         * config/nds32/nds32-isr.c: Likewise.
27259         * config/nds32/nds32-md-auxiliary.c: Likewise.
27260         * config/nds32/nds32-memory-manipulation.c: Likewise.
27261         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27262         * config/nds32/nds32-predicates.c: Likewise.
27263         * config/nds32/nds32.c: Likewise.
27264         * config/nios2/nios2.c: Likewise.
27265         * config/nvptx/nvptx.c: Likewise.
27266         * config/pa/pa.c: Likewise.
27267         * config/pdp11/pdp11.c: Likewise.
27268         * config/rl78/rl78-c.c: Likewise.
27269         * config/rl78/rl78.c: Likewise.
27270         * config/rs6000/rs6000-c.c: Likewise.
27271         * config/rs6000/rs6000.c: Likewise.
27272         * config/rx/rx.c: Likewise.
27273         * config/s390/s390-c.c: Likewise.
27274         * config/s390/s390.c: Likewise.
27275         * config/sh/sh-c.c: Likewise.
27276         * config/sh/sh-mem.cc: Likewise.
27277         * config/sh/sh.c: Likewise.
27278         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
27279         * config/sh/sh_treg_combine.cc: Likewise.
27280         * config/sol2-c.c: Likewise.
27281         * config/sol2-cxx.c: Likewise.
27282         * config/sol2-stubs.c: Likewise.
27283         * config/sol2.c: Likewise.
27284         * config/sparc/sparc-c.c: Likewise.
27285         * config/sparc/sparc.c: Likewise.
27286         * config/spu/spu-c.c: Likewise.
27287         * config/spu/spu.c: Likewise.
27288         * config/stormy16/stormy16.c: Likewise.
27289         * config/tilegx/mul-tables.c: Likewise.
27290         * config/tilegx/tilegx-c.c: Likewise.
27291         * config/tilegx/tilegx.c: Likewise.
27292         * config/tilepro/mul-tables.c: Likewise.
27293         * config/tilepro/tilepro-c.c: Likewise.
27294         * config/tilepro/tilepro.c: Likewise.
27295         * config/v850/v850-c.c: Likewise.
27296         * config/v850/v850.c: Likewise.
27297         * config/vax/vax.c: Likewise.
27298         * config/visium/visium.c: Likewise.
27299         * config/vms/vms-c.c: Likewise.
27300         * config/vms/vms.c: Likewise.
27301         * config/vxworks.c: Likewise.
27302         * config/winnt-c.c: Likewise.
27303         * config/xtensa/xtensa.c: Likewise.
27305 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
27307         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
27308         function.
27309         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
27311 2015-06-17  Richard Biener  <rguenther@suse.de>
27313         PR tree-optimization/66251
27314         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
27315         stmts for SLP strided stores.
27317         Revert
27318         2015-05-22  Richard Biener  <rguenther@suse.de>
27320         PR tree-optimization/66251
27321         * tree-vect-stmts.c (vectorizable_conversion): Properly
27322         set STMT_VINFO_VEC_STMT even for the SLP case.
27324         2015-05-26  Michael Matz  <matz@suse.de>
27326         PR middle-end/66251
27327         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
27328         STMT_VINFO_VEC_STMT, also with SLP.
27330 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
27332         PR target/56766
27333         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
27334         (*avx_addsubv4df3_1s): Ditto.
27335         (*sse3_addsubv2df3_1): Ditto.
27336         (*sse3_addsubv2df3_1s): Ditto.
27337         (*avx_addsubv8sf3_1): Ditto.
27338         (*avx_addsubv8sf3_1s): Ditto.
27339         (*sse3_addsubv4sf3_1): Ditto.
27340         (*sse3_addsubv4sf3_1s): Ditto.
27342 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
27344         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
27345         (SYSROOT_SUFFIX_SPEC): Update.
27346         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
27347         (STARTFILE_PREFIX_SPEC): Update.
27348         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
27349         (MULTILIB_REQUIRED): New.
27350         (MULTILIB_OSDIRNAMES): New.
27351         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
27352         (MULTILIB_REQUIRED): New.
27353         (MULTILIB_OSDIRNAMES): New.
27355 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
27357         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
27358         * config/aarch64/aarch64-options-extensions.def: Update "fP",
27359         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
27360         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
27361         (AARCH64_FL_PAN): New.
27362         (AARCH64_FL_LOR): New.
27363         (AARCH64_FL_RDMA): New.
27364         (AARCH64_FL_FOR_ARCH8_1): New.
27365         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
27366         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
27368 2015-06-16  Martin Liska  <mliska@suse.cz>
27370         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
27371         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
27372         guard.
27374 2015-06-16  Richard Biener  <rguenther@suse.de>
27376         * tree-vect-stmts.c (vectorizable_store): Adjust.
27377         (vectorizable_load): Likewise.
27378         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
27379         Simplify.
27380         (vect_create_data_ref_ptr): Likewise.
27381         (bump_vector_ptr): Adjust.
27383 2015-06-16  Richard Biener  <rguenther@suse.de>
27385         * tree-vect-stmts.c (vectorizable_load): Properly start loads
27386         with the first element if this is grouped loads.
27388 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
27390         * config/arm/arm-protos.h (struct tune_params): Rename
27391         log_op_non_sc to log_op_non_short_circuit, and rename enum
27392         values to expand SC to SHORT_CIRCUIT.
27393         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
27394         to LOG_OP_NON_SHORT_CIRCUIT.
27395         (arm_fastmul_tune):Likewise
27396         (arm_strongarm_tune): Likewise.
27397         (arm_xscale_tune): Likewise.
27398         (arm_9e_tune): Likewise.
27399         (arm_marvell_pj4_tune): Likewise.
27400         (arm_v6t2_tune): Likewise.
27401         (arm_cortex_tune): Likewise.
27402         (arm_cortex_a8_tune): Likewise.
27403         (arm_cortex_a7_tune): Likewise.
27404         (arm_cortex_a15_tune): Likewise.
27405         (arm_cortex_a53_tune): Likewise.
27406         (arm_cortex_a57_tune): Likewise.
27407         (arm_xgene1_tune): Likewise.
27408         (arm_cortex_a5_tune): Likewise.
27409         (arm_cortex_a9_tune): Likewise.
27410         (arm_cortex_a12_tune): Likewise.
27411         (arm_v7m_tune): Likewise.
27412         (arm_cortex_m7_tune): Likewise.
27413         (arm_v6m_tune): Likewise.
27414         (arm_fa726te_tune): Likewise.
27416 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
27418         * altivec.md: Delete UNSPEC_VMLADDUHM.
27419         (mulv4si3_p8): New pattern.
27420         (mulv4si3): Use it for POWER8.
27421         (mulv8hi3): Use vmladduhm with zero addend.
27422         (altivec_vmladduhm): Descriptive RTL.
27424 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
27426         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
27427         to use neon_move instead of mov_imm.
27428         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
27429         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
27431         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
27432         aarch64_float_const_zero_rtx_p check before TFmode check.
27433         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
27434         an fp zero.
27435         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
27436         code and attributes to match.  Change condition from register_operand
27437         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
27438         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
27439         to store2.
27441 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
27443         PR debug/66535
27444         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
27445         there is no parent.
27447 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
27449         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
27450         HOST_WIDE_INT parameter.
27452 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
27454         PR ipa/66181
27455         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
27456         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
27457         TYPE_NO_FORCE_BLK.
27458         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
27460 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
27462         * rtl.h (classify_insn): Declare.
27463         * emit-rtl.c (classify_insn): Move to...
27464         * rtl.c: ...here and add generator support.
27465         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
27466         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
27467         * genemit.c (gen_emit_seq): New function.
27468         (gen_expand, gen_split): Use it.
27470 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
27472         * tree.c (make_vector_stat): Fix comment to state that the
27473         function returns a VECTOR_CST.
27475 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
27477         * gensupport.h (add_implicit_parallel): Declare.
27478         * genrecog.c (add_implicit_parallel): Move to...
27479         * gensupport.c (add_implicit_parallel): ...here.
27480         (process_one_cond_exec): Use it.
27481         * genemit.c (gen_insn): Likewise.
27483 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
27485         PR bootstrap/66448
27486         * passes.c (rest_of_decl_compilation): Do not register globals for
27487         early debug if they are declared in built-ins.
27489 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
27491         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
27493 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27495         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
27496         manually swapping.
27497         (noce_try_cmove_arith): Likewise.
27498         (noce_get_alt_condition): Likewise.
27500 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
27502         * common/config/i386/i386-common.c
27503         (OPTION_MASK_ISA_MWAITX_SET): New.
27504         (ix86_handle_option): Handle mwaitx.
27505         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
27506         (x86_64-*-*): Likewise.
27507         * config/i386/mwaitxintrin.h: New header.
27508         * config/i386/cpuid.h (bit_MWAITX):  Define.
27509         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
27510         MWAITX support.
27511         * config/i386/i386.opt (mwaitx): New.
27512         * config/i386/i386-builtin-types.def
27513         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
27514         * config/i386/i386-c.c: Define __MWAITX__ if needed.
27515         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
27516         (PTA_MWAITX): New.
27517         (ix86_option_override_internal): Handle new option.
27518         (processor_alias_table): Added PTA_MWAITX.
27519         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
27520         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
27521         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
27522         IX86_BUILTIN_MONITORX  built-ins.
27523         * config/i386/i386.h (TARGET_MWAITX): New.
27524         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
27525         UNSPEC_MONITORX.
27526         (mwaitx):  New pattern.
27527         (monitorx_<mode>): New pattern.
27528         * config/i386/x86intrin.h: Include mwaitxintrin.h.
27529         * doc/extend.texi: Document monitorx and mwaitx builtins.
27530         * doc/invoke.texi: Document -mmwaitx option.
27532 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
27534         * emit-rtl.c (need_atomic_barrier_p): Mask model with
27535         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
27537 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
27539         * dbxout.c (xcoff_debug_hooks): Provide a function for
27540         register_main_translation_unit hook.
27542 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
27544         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
27545         variants cases from switch.
27546         (rs6000_post_atomic_barrier): Same.
27547         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
27548         (rs6000_expand_atomic_exchange): Same.
27549         (rs6000_expand_atomic_op): Same.
27550         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
27551         SYNC variants cases from switch.
27552         (atomic_load): Same.
27553         (atomic_store): Same.
27555 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
27557         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
27558         CONST_INT for goto.
27560 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
27562         PR bootstrap/66448
27563         * dwarf2out.c (check_die): Check for common duplicate attributes.
27564         (add_location_or_const_value_attribute): Do not add duplicate
27565         attributes.
27566         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
27567         time around.
27568         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
27569         (gen_type_die_with_usage): Call check_die.
27570         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
27572 2015-06-11  Jason Merrill  <jason@redhat.com>
27574         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
27575         dies.
27577 2015-06-11  Marek Polacek  <polacek@redhat.com>
27579         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
27581 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
27583         PR bootstrap/66252
27584         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
27585         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
27586         (*addx_extend_sp32): Fix pasto.
27587         (*subx_extend): Rename into...
27588         (*subx_extend_sp32): ...this.
27589         (*adddi3_extend_sp32): Add earlyclobber.
27590         (*subdi3_insn_sp32): Likewise.
27591         (*subdi3_extend_sp32): Likewise.
27592         (*and_not_di_sp32): Likewise.
27593         (*or_not_di_sp32): Likewise.
27594         (*xor_not_di_sp32): Likewise.
27595         (*negdi2_sp32): Likewise.
27596         (*one_cmpldi2_sp32): Likewise.
27598 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
27600         * debug.h (struct gcc_debug_hooks): Add a
27601         register_main_translation_unit hook.
27602         * debug.c (do_nothing_debug_hooks): Provide a function for this
27603         new hook.
27604         * dbxout.c (dbx_debug_hooks): Likewise.
27605         * sdbout.c (sdb_debug_hooks): Likewise.
27606         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
27607         * dwarf2out.c (main_translation_unit): New global variable.
27608         (dwarf2out_register_main_translation_unit): New function
27609         implementing the new hook.
27610         (dwarf2_debug_hooks): Assign
27611         dwarf2out_register_main_translation_unit to this new hook.
27612         (dwarf2out_init): Associate any main translation unit to
27613         comp_unit_die ().
27615 2015-06-11  Marek Polacek  <polacek@redhat.com>
27617         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
27619 2015-06-11  Marek Polacek  <polacek@redhat.com>
27621         * match.pd: Use single_use throughout.
27623 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27625         * config/arm/arm.c (arm_option_params_internal): When optimising
27626         for speed set max_insns_skipped when arm_restrict_it.
27628 2015-06-11  Christian Bruel  <christian.bruel@st.com>
27630         PR target/52144
27631         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
27632          macros in ...
27633         (arm_cpu_builtins): New function.
27634         (arm_pragma_target_parse): Call arm_cpu_builtins.
27635         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
27636         (arm_register_target_pragmas): Likewise.
27637         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
27638          Call arm_register_target_pragmas.
27639         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
27640         (arm_pragma_target_parse): Likewise.
27642 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
27644         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
27645         of the second operand.
27647 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
27649         PR target/66473
27650         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
27651         to prepare mask operand for AVX512 modes.
27653 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
27655         PR target/66474
27656         * doc/md.texi (Machine Constraints): Document that on the PowerPC
27657         if you use a constraint that targets a VSX register, you must use
27658         %x<n> in the template.
27660 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
27662         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
27663         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
27664         (define_insn "trap"): New definition.
27666 2015-06-10  Richard Biener  <rguenther@suse.de>
27668         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
27669         out from ...
27670         (vect_supported_load_permutation_p): ... here.  Handle
27671         supportable permutations in reductions.
27672         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
27673         for vectorizing strided group loads.
27675 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
27677         PR target/66470
27678         * config/i386/i386.c (ix86_split_long_move): For collisions
27679         involving direct tls segment refs, move the UNSPEC_TP possibly
27680         wrapped in ZERO_EXTEND out of the address for lea, to each of
27681         the memory loads.
27683 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27685         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
27686         dmb sy. Adjust tabs.
27688 2015-06-10  Tom de Vries  <tom@codesourcery.com>
27690         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
27692 2015-06-10  Martin Liska  <mliska@suse.cz>
27694         PR bootstrap/66471
27695         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
27696         all enum values in mem_alloc_origin.
27697         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
27698         name.
27699         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
27700         * bitmap.c (bitmap_register): Likewise.
27701         (dump_bitmap_statistics): Likewise.
27702         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
27703         (ggc_record_overhead): Likewise.
27704         * hash-map.h: Likewise.
27705         * hash-set.h: Likewise.
27706         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
27707         * hash-table.h: Likewise.
27708         * vec.c (vec_prefix::register_overhead): Likewise.
27709         (vec_prefix::release_overhead): Likewise.
27710         (dump_vec_loc_statistics): Likewise.
27712 2015-06-09  Christian Bruel  <christian.bruel@st.com>
27714         PR target/52144
27715         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
27716         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
27717         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
27718         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
27719         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
27720         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
27721         (arm_valid_target_attribute_p): Likewise.
27722         (arm_set_current_function, arm_can_inline_p): Likewise.
27723         (arm_valid_target_attribute_rec): Likewise.
27724         (arm_previous_fndecl): New variable.
27725         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
27726         (TARGET_CAN_INLINE_P): Define.
27727         (arm_asm_trampoline_template): Emit mode.
27728         (arm_file_start): Don't set unified syntax.
27729         (arm_declare_function_name): Set unified syntax and mode.
27730         (arm_option_override): Init target_option_default_node.
27731         and target_option_current_node.
27732         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
27733         (*call_symbol): Likewise.
27734         * doc/extend.texi: Document ARM/Thumb target attribute.
27735         * doc/invoke.texi: Likewise.
27737 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
27739         Revert:
27740         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
27741         PR rtl-optimization/64164
27742         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
27743         * tree-ssa-copyrename.c: Removed.
27744         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
27745         -ftree-coalesce-vars.
27746         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
27747         * common.opt (ftree-copyrename): Ignore.
27748         (ftree-coalesce-inlined-vars): Likewise.
27749         * doc/invoke.texi: Remove the ignored options above.
27750         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
27751         * tree-ssa-coalesce.h: ... here.
27752         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
27753         headers required by it.
27754         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
27755         across variables when flag_tree_coalesce_vars.  Check register
27756         use and promoted modes to allow coalescing.  Moved to
27757         tree-ssa-coalesce.c.
27758         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
27759         with its member functions to tree-ssa-coalesce.c.
27760         (var_map_base_init): Likewise.  Renamed to
27761         compute_samebase_partition_bases.
27762         (partition_view_normal): Drop want_bases parameter.
27763         (partition_view_bitmap): Likewise.
27764         * tree-ssa-live.h: Adjust declarations.
27765         * tree-ssa-coalesce.c: Include explow.h.
27766         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
27767         default defs at the entry point.
27768         (dump_part_var_map): New.
27769         (compute_optimized_partition_bases): New, called by...
27770         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
27771         of compute_samebase_partition_bases.  Adjust.
27772         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
27773         * cfgexpand.c (leader_merge): New.
27774         (get_rtl_for_parm_ssa_default_def): New.
27775         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
27776         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
27777         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
27778         redundant MEM attr setting.
27779         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
27780         from...
27781         (expand_one_stack_var): ... this.  New wrapper to check and
27782         skip already expanded SSA partitions.
27783         (record_alignment_for_reg_var): New, factored out of...
27784         (expand_one_var): ... this.
27785         (expand_one_ssa_partition): New.
27786         (adjust_one_expanded_partition_var): New.
27787         (expand_one_register_var): Check and skip already expanded SSA
27788         partitions.
27789         (expand_used_vars): Don't create DECLs for anonymous SSA
27790         names.  Expand all SSA partitions, then adjust all SSA names.
27791         (pass::execute): Replace the loops that set
27792         SA.partition_to_pseudo from partition leaders and cleared
27793         DECL_RTL for multi-location variables, and that which used to
27794         rename vars and set attrs, with one that clears DECL_RTL and
27795         checks that PARMs and RESULTs default_defs match DECL_RTL.
27796         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
27797         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
27798         * explow.c (promote_ssa_mode): New.
27799         * explow.h (promote_ssa_mode): Declare.
27800         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
27801         * function.c: Include cfgexpand.h.
27802         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
27803         (use_register_for_parm_decl): Wrapper for the above to
27804         special-case the result_ptr.
27805         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
27806         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
27807         multiple locations.
27808         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
27809         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
27810         (assign_parm_setup_block): Prefer SSA-assigned location.
27811         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
27812         if stack_parm is NULL.
27813         (assign_parm_setup_stack): Prefer SSA-assigned location.
27814         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
27815         rtl before testing for pointer bounds.  Special-case result_ptr.
27816         (expand_function_start): Maybe reset DECL_RTL of result.
27817         Prefer SSA-assigned location for result and static chain.
27818         Factor out DECL_RESULT and SET_DECL_RTL.
27819         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
27820         anonymous SSA names.  Use promote_ssa_mode.
27821         (get_temp_reg): Likewise.
27822         (remove_ssa_form): Adjust.
27823         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
27824         and get its reg_usage for reg invalidation.
27825         (compute_bb_dataflow): Pass it insn.
27826         (emit_notes_in_bb): Likewise.
27827         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
27828         fail assert on conversion between unsigned types.
27830 2015-06-09  Tom de Vries  <tom@codesourcery.com>
27832         PR tree-optimization/65460
27833         * omp-low.c (expand_omp_target): Set parallelized_function on
27834         cgraph_node for child_fn.
27836 2015-06-09  Tom de Vries  <tom@codesourcery.com>
27838         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
27839         parallelized_function before add_new_function.
27841 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
27843         * gcc-plugin.h: Move decls to plugin.h and include it.
27844         * plugin.h: Relocate decls from gcc-plugin.h
27845         * ggc-page.c: Include required header files.
27846         * passes.c: Likewise.
27847         * cgraphunit.c: Likewise.
27849 2015-06-09  Tom de Vries  <tom@codesourcery.com>
27851         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
27853 2015-06-09  Jason Merrill  <jason@redhat.com>
27855         PR bootstrap/66448
27856         * toplev.c (check_global_declaration): Don't warn about a clone.
27858 2015-06-09  Marek Polacek  <polacek@redhat.com>
27860         PR tree-optimization/66299
27861         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
27862         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
27863         patterns.
27865 2015-06-09  Richard Biener  <rguenther@suse.de>
27867         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
27868         (vect_analyze_slp_instance): Instead do not falsely drop
27869         load permutations.
27871 2015-06-09  Richard Biener  <rguenther@suse.de>
27873         PR middle-end/66423
27874         * match.pd: Handle A % (unsigned)(1 << B).
27876 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
27878         * varasm.c (output_object_block_htab): Remove.
27879         (output_object_block_compare): New.
27880         (output_object_blocks): Sort named object_blocks before outputting
27881         them.
27883 2015-06-09  Richard Biener  <rguenther@suse.de>
27885         PR tree-optimization/66419
27886         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
27887         consider GROUP_GAP when detecting a perfect subchain.
27889 2015-06-09  Nick Clifton  <nickc@redhat.com>
27891         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
27892         place read only data in the .frodata section.
27894 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
27896         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
27897         (atomic_store<mode>): Likewise.
27899 2015-06-09  Richard Biener  <rguenther@suse.de>
27901         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
27903 2015-06-09  Richard Biener  <rguenther@suse.de>
27905         PR middle-end/66413
27906         * tree-inline.c (insert_init_debug_bind): Unshare value.
27908 2015-06-09  Richard Biener  <rguenther@suse.de>
27910         PR tree-optimization/66396
27911         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
27912         Rename virtual operands.
27914 2015-06-09  Tom de Vries  <tom@codesourcery.com>
27916         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
27917         always return false.
27919 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
27921         PR rtl-optimization/64164
27922         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
27923         * tree-ssa-copyrename.c: Removed.
27924         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
27925         -ftree-coalesce-vars.
27926         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
27927         * common.opt (ftree-copyrename): Ignore.
27928         (ftree-coalesce-inlined-vars): Likewise.
27929         * doc/invoke.texi: Remove the ignored options above.
27930         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
27931         * tree-ssa-coalesce.h: ... here.
27932         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
27933         headers required by it.
27934         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
27935         across variables when flag_tree_coalesce_vars.  Check register
27936         use and promoted modes to allow coalescing.  Moved to
27937         tree-ssa-coalesce.c.
27938         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
27939         with its member functions to tree-ssa-coalesce.c.
27940         (var_map_base_init): Likewise.  Renamed to
27941         compute_samebase_partition_bases.
27942         (partition_view_normal): Drop want_bases parameter.
27943         (partition_view_bitmap): Likewise.
27944         * tree-ssa-live.h: Adjust declarations.
27945         * tree-ssa-coalesce.c: Include explow.h.
27946         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
27947         default defs at the entry point.
27948         (dump_part_var_map): New.
27949         (compute_optimized_partition_bases): New, called by...
27950         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
27951         of compute_samebase_partition_bases.  Adjust.
27952         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
27953         * cfgexpand.c (leader_merge): New.
27954         (get_rtl_for_parm_ssa_default_def): New.
27955         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
27956         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
27957         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
27958         redundant MEM attr setting.
27959         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
27960         from...
27961         (expand_one_stack_var): ... this.  New wrapper to check and
27962         skip already expanded SSA partitions.
27963         (record_alignment_for_reg_var): New, factored out of...
27964         (expand_one_var): ... this.
27965         (expand_one_ssa_partition): New.
27966         (adjust_one_expanded_partition_var): New.
27967         (expand_one_register_var): Check and skip already expanded SSA
27968         partitions.
27969         (expand_used_vars): Don't create DECLs for anonymous SSA
27970         names.  Expand all SSA partitions, then adjust all SSA names.
27971         (pass::execute): Replace the loops that set
27972         SA.partition_to_pseudo from partition leaders and cleared
27973         DECL_RTL for multi-location variables, and that which used to
27974         rename vars and set attrs, with one that clears DECL_RTL and
27975         checks that PARMs and RESULTs default_defs match DECL_RTL.
27976         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
27977         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
27978         * explow.c (promote_ssa_mode): New.
27979         * explow.h (promote_ssa_mode): Declare.
27980         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
27981         * function.c: Include cfgexpand.h.
27982         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
27983         (use_register_for_parm_decl): Wrapper for the above to
27984         special-case the result_ptr.
27985         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
27986         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
27987         multiple locations.
27988         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
27989         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
27990         (assign_parm_setup_block): Prefer SSA-assigned location.
27991         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
27992         if stack_parm is NULL.
27993         (assign_parm_setup_stack): Prefer SSA-assigned location.
27994         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
27995         rtl before testing for pointer bounds.  Special-case result_ptr.
27996         (expand_function_start): Maybe reset DECL_RTL of result.
27997         Prefer SSA-assigned location for result and static chain.
27998         Factor out DECL_RESULT and SET_DECL_RTL.
27999         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
28000         anonymous SSA names.  Use promote_ssa_mode.
28001         (get_temp_reg): Likewise.
28002         (remove_ssa_form): Adjust.
28003         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
28004         and get its reg_usage for reg invalidation.
28005         (compute_bb_dataflow): Pass it insn.
28006         (emit_notes_in_bb): Likewise.
28007         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
28008         fail assert on conversion between unsigned types.
28010 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
28012         PR debug/58315
28013         * tree-inline.c (reset_debug_binding): New.
28014         (reset_debug_bindings): Likewise.
28015         (expand_call_inline): Call it.
28017 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
28019         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
28020         TYPE_STRING_FLAG.
28022 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
28024         * lto-streamer-out.c (lto_output_location): Stream
28025         reserved locations correctly.
28026         * lto-streamer-in.c (lto_output_location): Likewise.
28028 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
28030         * coretypes.h: Include hash-table.h and hash-set.h for host files.
28031         * ggc.h: Don't include statistics.h>
28032         * hash-map.h: Remove all includes.
28033         * hash-set.h: Likewise.
28034         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
28035         the include list. Remove <new>.
28036         * inchash.h: Remove all includes.
28037         * mem-stats.h: Likewise.
28038         * vec.h: No special processing for generators or ggc.
28039         * alias.c : Adjust include files.
28040         * alloc-pool.c : Likewise.
28041         * alloc-pool.h : Likewise.
28042         * asan.c : Likewise.
28043         * attribs.c : Likewise.
28044         * auto-inc-dec.c : Likewise.
28045         * auto-profile.c : Likewise.
28046         * bb-reorder.c : Likewise.
28047         * bitmap.c : Likewise.
28048         * bitmap.h : Likewise.
28049         * bt-load.c : Likewise.
28050         * builtins.c : Likewise.
28051         * caller-save.c : Likewise.
28052         * calls.c : Likewise.
28053         * ccmp.c : Likewise.
28054         * cfg.c : Likewise.
28055         * cfganal.c : Likewise.
28056         * cfgbuild.c : Likewise.
28057         * cfgcleanup.c : Likewise.
28058         * cfgexpand.c : Likewise.
28059         * cfghooks.c : Likewise.
28060         * cfgloop.c : Likewise.
28061         * cfgloop.h : Likewise.
28062         * cfgloopanal.c : Likewise.
28063         * cfgloopmanip.c : Likewise.
28064         * cfgrtl.c : Likewise.
28065         * cgraph.c : Likewise.
28066         * cgraphbuild.c : Likewise.
28067         * cgraphclones.c : Likewise.
28068         * cgraphunit.c : Likewise.
28069         * cilk-common.c : Likewise.
28070         * combine-stack-adj.c : Likewise.
28071         * combine.c : Likewise.
28072         * compare-elim.c : Likewise.
28073         * context.c : Likewise.
28074         * convert.c : Likewise.
28075         * coverage.c : Likewise.
28076         * cppbuiltin.c : Likewise.
28077         * cprop.c : Likewise.
28078         * cse.c : Likewise.
28079         * cselib.c : Likewise.
28080         * data-streamer-in.c : Likewise.
28081         * data-streamer-out.c : Likewise.
28082         * data-streamer.c : Likewise.
28083         * data-streamer.h : Likewise.
28084         * dbxout.c : Likewise.
28085         * dce.c : Likewise.
28086         * ddg.c : Likewise.
28087         * debug.c : Likewise.
28088         * df-core.c : Likewise.
28089         * df-problems.c : Likewise.
28090         * df-scan.c : Likewise.
28091         * df.h : Likewise.
28092         * dfp.c : Likewise.
28093         * dojump.c : Likewise.
28094         * dominance.c : Likewise.
28095         * domwalk.c : Likewise.
28096         * double-int.c : Likewise.
28097         * dse.c : Likewise.
28098         * dumpfile.c : Likewise.
28099         * dwarf2asm.c : Likewise.
28100         * dwarf2cfi.c : Likewise.
28101         * dwarf2out.c : Likewise.
28102         * emit-rtl.c : Likewise.
28103         * et-forest.c : Likewise.
28104         * except.c : Likewise.
28105         * except.h : Likewise.
28106         * explow.c : Likewise.
28107         * expmed.c : Likewise.
28108         * expr.c : Likewise.
28109         * final.c : Likewise.
28110         * fixed-value.c : Likewise.
28111         * fold-const.c : Likewise.
28112         * function.c : Likewise.
28113         * fwprop.c : Likewise.
28114         * gcc-plugin.h : Likewise.
28115         * gcc.c : Likewise.
28116         * gcse-common.c : Likewise.
28117         * gcse.c : Likewise.
28118         * genattrtab.c : Likewise.
28119         * genautomata.c : Likewise.
28120         * genconditions.c : Likewise.
28121         * genemit.c : Likewise.
28122         * generic-match-head.c : Likewise.
28123         * genextract.c : Likewise.
28124         * gengtype-state.c : Likewise.
28125         * gengtype.c : Likewise.
28126         * genhooks.c : Likewise.
28127         * genmatch.c : Likewise.
28128         * genmodes.c : Likewise.
28129         * genrecog.c : Likewise.
28130         * gensupport.c : Likewise.
28131         * ggc-common.c : Likewise.
28132         * ggc-internal.h : Likewise.
28133         * ggc-none.c : Likewise.
28134         * ggc-page.c : Likewise.
28135         * gimple-builder.c : Likewise.
28136         * gimple-expr.c : Likewise.
28137         * gimple-fold.c : Likewise.
28138         * gimple-iterator.c : Likewise.
28139         * gimple-low.c : Likewise.
28140         * gimple-match-head.c : Likewise.
28141         * gimple-pretty-print.c : Likewise.
28142         * gimple-ssa-isolate-paths.c : Likewise.
28143         * gimple-ssa-strength-reduction.c : Likewise.
28144         * gimple-ssa.h : Likewise.
28145         * gimple-streamer-in.c : Likewise.
28146         * gimple-streamer-out.c : Likewise.
28147         * gimple-streamer.h : Likewise.
28148         * gimple-walk.c : Likewise.
28149         * gimple.c : Likewise.
28150         * gimplify-me.c : Likewise.
28151         * gimplify.c : Likewise.
28152         * godump.c : Likewise.
28153         * graph.c : Likewise.
28154         * graphds.c : Likewise.
28155         * graphite-blocking.c : Likewise.
28156         * graphite-dependences.c : Likewise.
28157         * graphite-interchange.c : Likewise.
28158         * graphite-isl-ast-to-gimple.c : Likewise.
28159         * graphite-optimize-isl.c : Likewise.
28160         * graphite-poly.c : Likewise.
28161         * graphite-scop-detection.c : Likewise.
28162         * graphite-sese-to-poly.c : Likewise.
28163         * graphite.c : Likewise.
28164         * haifa-sched.c : Likewise.
28165         * hard-reg-set.h : Likewise.
28166         * hw-doloop.c : Likewise.
28167         * ifcvt.c : Likewise.
28168         * inchash.c : Likewise.
28169         * incpath.c : Likewise.
28170         * init-regs.c : Likewise.
28171         * input.c : Likewise.
28172         * internal-fn.c : Likewise.
28173         * ipa-chkp.c : Likewise.
28174         * ipa-comdats.c : Likewise.
28175         * ipa-cp.c : Likewise.
28176         * ipa-devirt.c : Likewise.
28177         * ipa-icf-gimple.c : Likewise.
28178         * ipa-icf.c : Likewise.
28179         * ipa-inline-analysis.c : Likewise.
28180         * ipa-inline-transform.c : Likewise.
28181         * ipa-inline.c : Likewise.
28182         * ipa-polymorphic-call.c : Likewise.
28183         * ipa-profile.c : Likewise.
28184         * ipa-prop.c : Likewise.
28185         * ipa-pure-const.c : Likewise.
28186         * ipa-ref.c : Likewise.
28187         * ipa-reference.c : Likewise.
28188         * ipa-split.c : Likewise.
28189         * ipa-utils.c : Likewise.
28190         * ipa-visibility.c : Likewise.
28191         * ipa.c : Likewise.
28192         * ira-build.c : Likewise.
28193         * ira-color.c : Likewise.
28194         * ira-conflicts.c : Likewise.
28195         * ira-costs.c : Likewise.
28196         * ira-emit.c : Likewise.
28197         * ira-lives.c : Likewise.
28198         * ira.c : Likewise.
28199         * jump.c : Likewise.
28200         * langhooks.c : Likewise.
28201         * lcm.c : Likewise.
28202         * libfuncs.h : Likewise.
28203         * lists.c : Likewise.
28204         * loop-doloop.c : Likewise.
28205         * loop-init.c : Likewise.
28206         * loop-invariant.c : Likewise.
28207         * loop-iv.c : Likewise.
28208         * loop-unroll.c : Likewise.
28209         * lower-subreg.c : Likewise.
28210         * lra-assigns.c : Likewise.
28211         * lra-coalesce.c : Likewise.
28212         * lra-constraints.c : Likewise.
28213         * lra-eliminations.c : Likewise.
28214         * lra-lives.c : Likewise.
28215         * lra-remat.c : Likewise.
28216         * lra-spills.c : Likewise.
28217         * lra.c : Likewise.
28218         * lto-cgraph.c : Likewise.
28219         * lto-compress.c : Likewise.
28220         * lto-opts.c : Likewise.
28221         * lto-section-in.c : Likewise.
28222         * lto-section-out.c : Likewise.
28223         * lto-streamer-in.c : Likewise.
28224         * lto-streamer-out.c : Likewise.
28225         * lto-streamer.c : Likewise.
28226         * lto-streamer.h : Likewise.
28227         * mcf.c : Likewise.
28228         * mode-switching.c : Likewise.
28229         * modulo-sched.c : Likewise.
28230         * omega.c : Likewise.
28231         * omp-low.c : Likewise.
28232         * optabs.c : Likewise.
28233         * opts-global.c : Likewise.
28234         * opts.h : Likewise.
28235         * passes.c : Likewise.
28236         * plugin.c : Likewise.
28237         * postreload-gcse.c : Likewise.
28238         * postreload.c : Likewise.
28239         * predict.c : Likewise.
28240         * print-rtl.c : Likewise.
28241         * print-tree.c : Likewise.
28242         * profile.c : Likewise.
28243         * read-md.c : Likewise.
28244         * read-md.h : Likewise.
28245         * read-rtl.c : Likewise.
28246         * real.c : Likewise.
28247         * realmpfr.c : Likewise.
28248         * recog.c : Likewise.
28249         * ree.c : Likewise.
28250         * reg-stack.c : Likewise.
28251         * regcprop.c : Likewise.
28252         * reginfo.c : Likewise.
28253         * regrename.c : Likewise.
28254         * regstat.c : Likewise.
28255         * reload.c : Likewise.
28256         * reload1.c : Likewise.
28257         * reorg.c : Likewise.
28258         * resource.c : Likewise.
28259         * rtl-chkp.c : Likewise.
28260         * rtl.c : Likewise.
28261         * rtl.h : Likewise.
28262         * rtlanal.c : Likewise.
28263         * rtlhash.c : Likewise.
28264         * rtlhash.h : Likewise.
28265         * rtlhooks.c : Likewise.
28266         * sanopt.c : Likewise.
28267         * sched-deps.c : Likewise.
28268         * sched-ebb.c : Likewise.
28269         * sched-rgn.c : Likewise.
28270         * sched-vis.c : Likewise.
28271         * sdbout.c : Likewise.
28272         * sel-sched-dump.c : Likewise.
28273         * sel-sched-ir.c : Likewise.
28274         * sel-sched-ir.h : Likewise.
28275         * sel-sched.c : Likewise.
28276         * sese.c : Likewise.
28277         * shrink-wrap.c : Likewise.
28278         * shrink-wrap.h : Likewise.
28279         * simplify-rtx.c : Likewise.
28280         * stack-ptr-mod.c : Likewise.
28281         * statistics.c : Likewise.
28282         * stmt.c : Likewise.
28283         * stor-layout.c : Likewise.
28284         * store-motion.c : Likewise.
28285         * stringpool.c : Likewise.
28286         * symtab.c : Likewise.
28287         * target-globals.c : Likewise.
28288         * targhooks.c : Likewise.
28289         * tlink.c : Likewise.
28290         * toplev.c : Likewise.
28291         * tracer.c : Likewise.
28292         * trans-mem.c : Likewise.
28293         * tree-affine.c : Likewise.
28294         * tree-affine.h : Likewise.
28295         * tree-browser.c : Likewise.
28296         * tree-call-cdce.c : Likewise.
28297         * tree-cfg.c : Likewise.
28298         * tree-cfgcleanup.c : Likewise.
28299         * tree-chkp-opt.c : Likewise.
28300         * tree-chkp.c : Likewise.
28301         * tree-chrec.c : Likewise.
28302         * tree-complex.c : Likewise.
28303         * tree-data-ref.c : Likewise.
28304         * tree-dfa.c : Likewise.
28305         * tree-diagnostic.c : Likewise.
28306         * tree-dump.c : Likewise.
28307         * tree-eh.c : Likewise.
28308         * tree-eh.h : Likewise.
28309         * tree-emutls.c : Likewise.
28310         * tree-hasher.h : Likewise.
28311         * tree-if-conv.c : Likewise.
28312         * tree-inline.c : Likewise.
28313         * tree-inline.h : Likewise.
28314         * tree-into-ssa.c : Likewise.
28315         * tree-iterator.c : Likewise.
28316         * tree-loop-distribution.c : Likewise.
28317         * tree-nested.c : Likewise.
28318         * tree-nrv.c : Likewise.
28319         * tree-object-size.c : Likewise.
28320         * tree-outof-ssa.c : Likewise.
28321         * tree-parloops.c : Likewise.
28322         * tree-phinodes.c : Likewise.
28323         * tree-predcom.c : Likewise.
28324         * tree-pretty-print.c : Likewise.
28325         * tree-profile.c : Likewise.
28326         * tree-scalar-evolution.c : Likewise.
28327         * tree-sra.c : Likewise.
28328         * tree-ssa-address.c : Likewise.
28329         * tree-ssa-alias.c : Likewise.
28330         * tree-ssa-ccp.c : Likewise.
28331         * tree-ssa-coalesce.c : Likewise.
28332         * tree-ssa-copy.c : Likewise.
28333         * tree-ssa-copyrename.c : Likewise.
28334         * tree-ssa-dce.c : Likewise.
28335         * tree-ssa-dom.c : Likewise.
28336         * tree-ssa-dse.c : Likewise.
28337         * tree-ssa-forwprop.c : Likewise.
28338         * tree-ssa-ifcombine.c : Likewise.
28339         * tree-ssa-live.c : Likewise.
28340         * tree-ssa-loop-ch.c : Likewise.
28341         * tree-ssa-loop-im.c : Likewise.
28342         * tree-ssa-loop-ivcanon.c : Likewise.
28343         * tree-ssa-loop-ivopts.c : Likewise.
28344         * tree-ssa-loop-manip.c : Likewise.
28345         * tree-ssa-loop-niter.c : Likewise.
28346         * tree-ssa-loop-prefetch.c : Likewise.
28347         * tree-ssa-loop-unswitch.c : Likewise.
28348         * tree-ssa-loop.c : Likewise.
28349         * tree-ssa-math-opts.c : Likewise.
28350         * tree-ssa-operands.c : Likewise.
28351         * tree-ssa-phiopt.c : Likewise.
28352         * tree-ssa-phiprop.c : Likewise.
28353         * tree-ssa-pre.c : Likewise.
28354         * tree-ssa-propagate.c : Likewise.
28355         * tree-ssa-reassoc.c : Likewise.
28356         * tree-ssa-sccvn.c : Likewise.
28357         * tree-ssa-scopedtables.c : Likewise.
28358         * tree-ssa-sink.c : Likewise.
28359         * tree-ssa-strlen.c : Likewise.
28360         * tree-ssa-structalias.c : Likewise.
28361         * tree-ssa-tail-merge.c : Likewise.
28362         * tree-ssa-ter.c : Likewise.
28363         * tree-ssa-threadedge.c : Likewise.
28364         * tree-ssa-threadupdate.c : Likewise.
28365         * tree-ssa-uncprop.c : Likewise.
28366         * tree-ssa-uninit.c : Likewise.
28367         * tree-ssa.c : Likewise.
28368         * tree-ssanames.c : Likewise.
28369         * tree-stdarg.c : Likewise.
28370         * tree-streamer-in.c : Likewise.
28371         * tree-streamer-out.c : Likewise.
28372         * tree-streamer.c : Likewise.
28373         * tree-streamer.h : Likewise.
28374         * tree-switch-conversion.c : Likewise.
28375         * tree-tailcall.c : Likewise.
28376         * tree-vect-data-refs.c : Likewise.
28377         * tree-vect-generic.c : Likewise.
28378         * tree-vect-loop-manip.c : Likewise.
28379         * tree-vect-loop.c : Likewise.
28380         * tree-vect-patterns.c : Likewise.
28381         * tree-vect-slp.c : Likewise.
28382         * tree-vect-stmts.c : Likewise.
28383         * tree-vectorizer.c : Likewise.
28384         * tree-vectorizer.h : Likewise.
28385         * tree-vrp.c : Likewise.
28386         * tree.c : Likewise.
28387         * tsan.c : Likewise.
28388         * ubsan.c : Likewise.
28389         * valtrack.c : Likewise.
28390         * valtrack.h : Likewise.
28391         * value-prof.c : Likewise.
28392         * var-tracking.c : Likewise.
28393         * varasm.c : Likewise.
28394         * varpool.c : Likewise.
28395         * vec.c: Likewise.
28396         * vmsdbgout.c : Likewise.
28397         * vtable-verify.c : Likewise.
28398         * vtable-verify.h : Likewise.
28399         * web.c : Likewise.
28400         * wide-int.cc : Likewise.
28401         * xcoffout.c : Likewise.
28402         * config/aarch64/aarch64-builtins.c : Likewise.
28403         * config/aarch64/aarch64.c : Likewise.
28404         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
28405         * config/alpha/alpha.c : Likewise.
28406         * config/arc/arc.c : Likewise.
28407         * config/arm/aarch-common.c : Likewise.
28408         * config/arm/arm-builtins.c : Likewise.
28409         * config/arm/arm-c.c : Likewise.
28410         * config/arm/arm.c : Likewise.
28411         * config/avr/avr-c.c : Likewise.
28412         * config/avr/avr-log.c : Likewise.
28413         * config/avr/avr.c : Likewise.
28414         * config/bfin/bfin.c : Likewise.
28415         * config/c6x/c6x.c : Likewise.
28416         * config/cr16/cr16.c : Likewise.
28417         * config/cris/cris.c : Likewise.
28418         * config/darwin-c.c : Likewise.
28419         * config/darwin.c : Likewise.
28420         * config/default-c.c : Likewise.
28421         * config/epiphany/epiphany.c : Likewise.
28422         * config/epiphany/mode-switch-use.c : Likewise.
28423         * config/epiphany/resolve-sw-modes.c : Likewise.
28424         * config/fr30/fr30.c : Likewise.
28425         * config/frv/frv.c : Likewise.
28426         * config/ft32/ft32.c : Likewise.
28427         * config/glibc-c.c : Likewise.
28428         * config/h8300/h8300.c : Likewise.
28429         * config/i386/i386-c.c : Likewise.
28430         * config/i386/i386.c : Likewise.
28431         * config/i386/msformat-c.c : Likewise.
28432         * config/i386/winnt-cxx.c : Likewise.
28433         * config/i386/winnt-stubs.c : Likewise.
28434         * config/i386/winnt.c : Likewise.
28435         * config/ia64/ia64-c.c : Likewise.
28436         * config/ia64/ia64.c : Likewise.
28437         * config/iq2000/iq2000.c : Likewise.
28438         * config/lm32/lm32.c : Likewise.
28439         * config/m32c/m32c-pragma.c : Likewise.
28440         * config/m32c/m32c.c : Likewise.
28441         * config/m32r/m32r.c : Likewise.
28442         * config/m68k/m68k.c : Likewise.
28443         * config/mcore/mcore.c : Likewise.
28444         * config/mep/mep-pragma.c : Likewise.
28445         * config/mep/mep.c : Likewise.
28446         * config/microblaze/microblaze-c.c : Likewise.
28447         * config/microblaze/microblaze.c : Likewise.
28448         * config/mips/mips.c : Likewise.
28449         * config/mmix/mmix.c : Likewise.
28450         * config/mn10300/mn10300.c : Likewise.
28451         * config/moxie/moxie.c : Likewise.
28452         * config/msp430/msp430-c.c : Likewise.
28453         * config/msp430/msp430.c : Likewise.
28454         * config/nds32/nds32-cost.c : Likewise.
28455         * config/nds32/nds32-fp-as-gp.c : Likewise.
28456         * config/nds32/nds32-intrinsic.c : Likewise.
28457         * config/nds32/nds32-isr.c : Likewise.
28458         * config/nds32/nds32-md-auxiliary.c : Likewise.
28459         * config/nds32/nds32-memory-manipulation.c : Likewise.
28460         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
28461         * config/nds32/nds32-predicates.c : Likewise.
28462         * config/nds32/nds32.c : Likewise.
28463         * config/nios2/nios2.c : Likewise.
28464         * config/nvptx/nvptx.c : Likewise.
28465         * config/pa/pa.c : Likewise.
28466         * config/pdp11/pdp11.c : Likewise.
28467         * config/rl78/rl78-c.c : Likewise.
28468         * config/rl78/rl78.c : Likewise.
28469         * config/rs6000/rs6000-c.c : Likewise.
28470         * config/rs6000/rs6000.c : Likewise.
28471         * config/rx/rx.c : Likewise.
28472         * config/s390/s390-c.c : Likewise.
28473         * config/s390/s390.c : Likewise.
28474         * config/sh/sh-c.c : Likewise.
28475         * config/sh/sh-mem.cc : Likewise.
28476         * config/sh/sh.c : Likewise.
28477         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
28478         * config/sh/sh_treg_combine.cc : Likewise.
28479         * config/sol2-c.c : Likewise.
28480         * config/sol2-cxx.c : Likewise.
28481         * config/sol2-stubs.c : Likewise.
28482         * config/sol2.c : Likewise.
28483         * config/sparc/sparc-c.c : Likewise.
28484         * config/sparc/sparc.c : Likewise.
28485         * config/spu/spu-c.c : Likewise.
28486         * config/spu/spu.c : Likewise.
28487         * config/stormy16/stormy16.c : Likewise.
28488         * config/tilegx/mul-tables.c : Likewise.
28489         * config/tilegx/tilegx-c.c : Likewise.
28490         * config/tilegx/tilegx.c : Likewise.
28491         * config/tilepro/mul-tables.c : Likewise.
28492         * config/tilepro/tilepro-c.c : Likewise.
28493         * config/tilepro/tilepro.c : Likewise.
28494         * config/v850/v850-c.c : Likewise.
28495         * config/v850/v850.c : Likewise.
28496         * config/vax/vax.c : Likewise.
28497         * config/visium/visium.c : Likewise.
28498         * config/vms/vms-c.c : Likewise.
28499         * config/vms/vms.c : Likewise.
28500         * config/vxworks.c : Likewise.
28501         * config/winnt-c.c : Likewise.
28502         * config/xtensa/xtensa.c : Likewise.
28504 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
28506         PR lto/65378
28507         * ipa-utils.h (warn_types_mismatch): Update prototype.
28508         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
28509         parameters.
28510         (type_mismatch_p): New function.
28511         (warn_types_mismatch): Reorg to work better on non-C++ types.
28512         (odr_types_equivalent_p): Add loc1/loc2 parameters.
28513         (add_type_duplicate): Update.
28515 2015-06-08  Tom de Vries  <tom@codesourcery.com>
28517         PR rtl-optimization/66444
28518         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
28519         call_used_regs.
28521 2015-06-08  Richard Biener  <rguenther@suse.de>
28523         PR tree-optimization/66422
28524         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
28525         block after inserted gcc_unreachable.
28527 2015-06-08  Nick Clifton  <nickc@redhat.com>
28529         * config/rx/rx.c (rx_function_value): Do not promote vector types.
28530         (rx_promote_function_mode): Likewise.
28531         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
28533 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
28535         * genattrtab.c (insn_alternatives): Change type from int *
28536         to uint64_t *.
28537         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
28538         (get_attr_value): Change type of num_alt to uint64_t.
28539         (compute_alternative_mask): Change return type from
28540         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
28541         (make_alternative_compare, mk_attr_alt): Change argument type
28542         from int to uint64_t.
28543         (simplify_test_exp): Change type of i from int to uint64_t.
28544         Shift ((uint64_t) 1) instead of 1 up.
28545         (main): Adjust oballocvec first argument from int to uint64_t.
28546         Shift ((uint64_t) 1) instead of 1 up.
28548 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
28550         PR other/65366
28551         * gdbhooks.py: Import sys.
28552         (intptr): New function.  Replace int(...) by intptr(...).
28554 2015-06-08  Richard Biener  <rguenther@suse.de>
28556         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
28557         adjustment for gaps at the end of a SLP load group properly.
28558         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
28559         all permutations we can generate.
28560         (vect_transform_slp_perm_load): Use the correct group-size.
28562 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
28564         * genmatch.c (expr::gen_transform): For conditions, guess the type
28565         from the second operand.
28567 2015-06-08  Tom de Vries  <tom@codesourcery.com>
28569         PR tree-optimization/66442
28570         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
28571         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
28572         if the loop latch is not a singleton.  Use
28573         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
28575 2015-06-08  Marek Polacek  <polacek@redhat.com>
28577         PR sanitizer/66452
28578         * toplev.c (check_global_declaration): Don't warn about artificial
28579         decls.
28581 2015-06-08  Tom de Vries  <tom@codesourcery.com>
28583         PR tree-optimization/66436
28584         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
28585         dump file.
28586         * gimplify.c: Add tree-dump.h include.
28587         (gimplify_function_tree): Dump function to gimple dump file.
28588         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
28589         dump file.
28591 2015-06-08  Tom de Vries  <tom@codesourcery.com>
28593         PR tree-optimization/66435
28594         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
28595         function.
28597 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
28599         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
28600         of ptr_type_node to not be ptr_to_node.
28601         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
28602         TREE_TYPE of pointers.
28603         * gimple-expr.c (useless_type_conversion): Reorder the check for
28604         function pointers and TYPE_CANONICAL.
28606 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
28608         PR bootstrap/66319
28609         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
28610         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
28611         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
28612         later.
28613         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
28614         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
28615         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
28616         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
28617         and non iso if unix2003.
28619 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
28621         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
28623 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
28625         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
28626         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
28627         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
28628         except.c, final.c, function.c, gcse-common.c, genemit.c,
28629         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
28630         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
28631         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
28632         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
28633         more derived ones.
28635 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
28637         * combine.c (combine_split_insns): Remove cast.
28638         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
28639         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
28640         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
28641         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
28642         * genemit.c (gen_split): Change return type of generated functions to
28643         rtx_insn.
28644         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
28645         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
28646         gen_peephole2_* functions.
28647         (print_subroutine, main): Likewise.
28648         * recog.c (peephole2_optimize): Remove cast.
28649         (peep2_next_insn): Promote return type to rtx_insn.
28650         * recog.h (peep2_next_insn): Fix prototype.
28651         * rtl.h (try_split, split_insns): Likewise.
28653 2015-06-06  DJ Delorie  <dj@redhat.com>
28655         * config/msp430/msp430.c (msp430_asm_integer): Support addition
28656         and subtraction too.
28658 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
28660         PR target/66410
28661         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
28662         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
28663         instead of Snd.  Disparage Sid/z alternative with '^'.
28665 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
28667         * dwarf2out.c: Remove deferred_locations*.
28668         (dwarf2_debug_hooks): Add early_finish hook.
28669         Remove global_decl hook.
28670         Add early_global_decl and late_global_decl hook.
28671         New global early_dwarf.
28672         New structure set_early_dwarf.
28673         (output_die): Indicate whether a DIE was generated early
28674         when generating assembly with -dA.
28675         (struct limbo_die_struct): Document created_for field.
28676         Remove file_table_last_lookup.
28677         (remove_AT): Return TRUE if successful.
28678         (remove_child_TAG): Clear die_parent.
28679         (reparent_child): New function abstracted from...
28680         (splice_child_die): ...here.
28681         (new_die): ICE if a DIE ends up in limbo too late.
28682         (check_die): New.
28683         (defer_location): Remove.
28684         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
28685         (fill_variable_array_bounds): New.
28686         (decl_start_label): Call fill_variable_array_bounds.
28687         (gen_formal_parameter_die): Rewrite to reuse previously generated
28688         DIEs.
28689         (gen_subprogram_die): Same.
28690         (gen_variable_die): Same.
28691         (gen_const_die): Same.
28692         (gen_label_die): Same.
28693         (gen_lexical_block_die): Same.
28694         (decl_will_get_specification_p): New.
28695         (local_function_static): New.
28696         (gen_struct_or_union_type_die): Fill in variable-length fields.
28697         (gen_typedef_die): Fill in variable-length typedefs.
28698         (gen_tagged_type_die): Gracefully return on error_mark_node.
28699         Handle re-entrancy.
28700         (gen_type_die_with_usage): Handle variable-length types.
28701         Remove duplicate code for ARRAY_TYPE case.
28702         (process_scope_var): Only process imported modules during early
28703         dwarf.
28704         (dwarf2out_early_global_decl): New.
28705         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
28706         (dwarf2out_type_decl): Set early_dwarf while calling
28707         dwarf2out_decl.
28708         (dwarf2out_decl): Verify that we did not recreate a previously
28709         generated DIE.
28710         Do not return on DECL_EXTERNALs in VAR_DECLs.
28711         Abstract some code to local_function_static.
28712         (lookup_filename): Remove use of file_table_last_lookup.
28713         Gracefully exit on missing file_name.
28714         (dwarf2out_finish): Verify limbo list.
28715         Remove deferred_locations_list use.
28716         Move deferred_asm_name and limbo flushing to...
28717         (dwarf2out_early_finish): ...here.  New.
28718         (dwarf2out_c_finalize): Remove set of deferred_location_list,
28719         deferred_asm_name, and file_table_last_lookup.
28720         * cgraph.h (referred_to_p): Add default argument.
28721         * cgraphunit.c (referred_to_p): Add and handle include_self
28722         argument.
28723         (analyze_functions): Add first_time argument.
28724         Call check_global_declaration for all symbols.
28725         Call late_global_decl for nodes for moribund nodes.
28726         (finalize_compilation_unit): Add new argument to
28727         analyze_functions.
28728         Call early_global_decl for functions.
28729         Call early_finish debug hook.
28730         * dbxout.c (dbxout_early_global_decl): New.
28731         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
28732         (dbx_debug_hooks): Add new hooks.
28733         (xcoff_debug_hooks): Same.
28734         * debug.c (do_nothing_debug_hooks): Add early_finish field.
28735         Add early and late debug hooks.
28736         Remove global_decl hook.
28737         * debug.h (struct gcc_debug_hooks): Add early_finish,
28738         early_global_decl, and late_global_decl fields.
28739         Remove global_decl field.
28740         Document gcc_debug_hooks.
28741         * gengtype.c (output_typename): Remove.
28742         * godump.c (go_early_global_decl): New.
28743         (go_late_global_decl): New.
28744         (go_global_decl): Remove.
28745         (dump_go_spec_init): Remove global_decl.  Add
28746         {early,late}_global_decl.
28747         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
28748         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
28749         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
28750         (write_global_declarations): Remove.
28751         (global_decl_processing): New.
28752         * langhooks.h (struct lang_hooks_for_decls): Remove
28753         final_write_globals field.
28754         Add post_compilation_parsing_cleanups field.
28755         * passes.c (rest_of_decl_compilation): Call early_global_decl.
28756         * sdbout.c: Add early and late_global_decl hooks.  Remove
28757         sdbout_global_decl hook.
28758         Add early_finish field for sdb_debug_hooks.
28759         (sdbout_global_decl): Remove.
28760         (sdbout_early_global_decl): New.
28761         (sdbout_late_global_decl): New.
28762         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
28763         * toplev.c (check_global_declaration): Rename from
28764         check_global_declaration_1.
28765         Adapt to use symtab infrastructure.
28766         (check_global_declarations): Remove.
28767         (emit_debug_global_declarations): Remove.
28768         (compile_file): Remove call to final_write_globals langhook.
28769         Run the actual compilation process.
28770         Perform any post compilation parser cleanups.
28771         Generate late debug info.
28772         * toplev.h (check_global_declaration): New.
28773         (check_global_declaration_1): Remove.
28774         (check_global_declarations): Remove.
28775         (write_global_declarations): Remove.
28776         (emit_debug_global_declarations): Remove.
28777         (global_decl_processing): New.
28778         * tree-core.h (struct tree_block): Add DIE field.
28779         * tree.h (BLOCK_DIE): New.
28780         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
28781         throughout.
28782         (vmsdbgout_early_global_decl): New.
28783         (vmsdbgout_late_global_decl): New.
28784         Add early_finish debug hook field to vmsdbg_debug_hooks.
28785         Remove vmsdbgout_decl to vmsdbgout_function_decl.
28786         Add early and late_global_decl debug hooks.
28788 2015-06-05  Julian Brown  <julian@codesourcery.com>
28789             Sandra Loosemore  <sandra@codesourcery.com>
28791         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
28792         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
28793         to print-sysroot-suffix.sh script.
28795 2015-06-05  Tom de Vries  <tom@codesourcery.com>
28797         merge from gomp4 branch:
28798         2015-05-28  Tom de Vries  <tom@codesourcery.com>
28800         PR tree-optimization/65443
28801         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
28802         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
28803         (try_transform_to_exit_first_loop_alt): New function.
28804         (transform_to_exit_first_loop): Use
28805         try_transform_to_exit_first_loop_alt.
28807 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
28809         * builtins.c (expand_builtin_atomic_compare_exchange): Call
28810         emit_cmp_and_jump_insns with the mode of target.
28812 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
28814         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
28816 2015-06-04  DJ Delorie  <dj@redhat.com>
28818         * config/msp430/msp430.md (movsi_s): New.  Special case for
28819         storing a 20-bit symbol into a 32-bit register.
28820         * config/msp430/msp430.c (msp430_subreg): Add support for it.
28821         * config/msp430/predicates.md (msp430_symbol_operand): New.
28823 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
28825         * calls.c (prepare_call_address): Check for noplt
28826         attribute.
28827         * config/i386/i386.c (ix86_expand_call): Check
28828         for noplt attribute.
28829         (ix86_nopic_noplt_attribute_p): New function.
28830         (ix86_output_call_insn): Output indirect call for non-pic
28831         no plt calls.
28832         * doc/extend.texi (noplt): Document new attribute.
28833         * doc/invoke.texi: Document new attribute.
28835 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
28837         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
28838         real.h, and fixed-value.h when included in host source files.
28839         * double-int.h: Remove redundant #includes listed above.
28840         * fixed-value.h: Likewise.
28841         * real.h: Likewise.
28842         * wide-int.h: Likewise.
28843         * inchash.h: Likewise.
28844         * rtl.h: Add some include files When included from a generator file.
28845         * target.h: Remove wide-int.h and insn-modes.h from the include list.
28846         * internal-fn.h: Don't include coretypes.h.
28847         * alias.c: Adjust includes for restructured coretypes.h.
28848         * asan.c: Likewise.
28849         * attribs.c: Likewise.
28850         * auto-inc-dec.c: Likewise.
28851         * auto-profile.c: Likewise.
28852         * bb-reorder.c: Likewise.
28853         * bt-load.c: Likewise.
28854         * builtins.c: Likewise.
28855         * caller-save.c: Likewise.
28856         * calls.c: Likewise.
28857         * ccmp.c: Likewise.
28858         * cfg.c: Likewise.
28859         * cfganal.c: Likewise.
28860         * cfgbuild.c: Likewise.
28861         * cfgcleanup.c: Likewise.
28862         * cfgexpand.c: Likewise.
28863         * cfghooks.c: Likewise.
28864         * cfgloop.c: Likewise.
28865         * cfgloop.h: Likewise.
28866         * cfgloopanal.c: Likewise.
28867         * cfgloopmanip.c: Likewise.
28868         * cfgrtl.c: Likewise.
28869         * cgraph.c: Likewise.
28870         * cgraphbuild.c: Likewise.
28871         * cgraphclones.c: Likewise.
28872         * cgraphunit.c: Likewise.
28873         * cilk-common.c: Likewise.
28874         * combine-stack-adj.c: Likewise.
28875         * combine.c: Likewise.
28876         * compare-elim.c: Likewise.
28877         * convert.c: Likewise.
28878         * coverage.c: Likewise.
28879         * cppbuiltin.c: Likewise.
28880         * cprop.c: Likewise.
28881         * cse.c: Likewise.
28882         * cselib.c: Likewise.
28883         * data-streamer-in.c: Likewise.
28884         * data-streamer-out.c: Likewise.
28885         * data-streamer.c: Likewise.
28886         * dbxout.c: Likewise.
28887         * dce.c: Likewise.
28888         * ddg.c: Likewise.
28889         * debug.c: Likewise.
28890         * df-core.c: Likewise.
28891         * df-problems.c: Likewise.
28892         * df-scan.c: Likewise.
28893         * df.h: Likewise.
28894         * dfp.c: Likewise.
28895         * dojump.c: Likewise.
28896         * dominance.c: Likewise.
28897         * domwalk.c: Likewise.
28898         * double-int.c: Likewise.
28899         * dse.c: Likewise.
28900         * dumpfile.c: Likewise.
28901         * dwarf2asm.c: Likewise.
28902         * dwarf2cfi.c: Likewise.
28903         * dwarf2out.c: Likewise.
28904         * dwarf2out.h: Likewise.
28905         * emit-rtl.c: Likewise.
28906         * et-forest.c: Likewise.
28907         * except.c: Likewise.
28908         * explow.c: Likewise.
28909         * expmed.c: Likewise.
28910         * expr.c: Likewise.
28911         * final.c: Likewise.
28912         * fixed-value.c: Likewise.
28913         * fold-const.c: Likewise.
28914         * function.c: Likewise.
28915         * fwprop.c: Likewise.
28916         * gcc-plugin.h: Likewise.
28917         * gcse.c: Likewise.
28918         * generic-match-head.c: Likewise.
28919         * ggc-page.c: Likewise.
28920         * gimple-builder.c: Likewise.
28921         * gimple-expr.c: Likewise.
28922         * gimple-fold.c: Likewise.
28923         * gimple-iterator.c: Likewise.
28924         * gimple-low.c: Likewise.
28925         * gimple-match-head.c: Likewise.
28926         * gimple-pretty-print.c: Likewise.
28927         * gimple-ssa-isolate-paths.c: Likewise.
28928         * gimple-ssa-strength-reduction.c: Likewise.
28929         * gimple-streamer-in.c: Likewise.
28930         * gimple-streamer-out.c: Likewise.
28931         * gimple-streamer.h: Likewise.
28932         * gimple-walk.c: Likewise.
28933         * gimple.c: Likewise.
28934         * gimplify-me.c: Likewise.
28935         * gimplify.c: Likewise.
28936         * godump.c: Likewise.
28937         * graph.c: Likewise.
28938         * graphite-blocking.c: Likewise.
28939         * graphite-dependences.c: Likewise.
28940         * graphite-interchange.c: Likewise.
28941         * graphite-isl-ast-to-gimple.c: Likewise.
28942         * graphite-optimize-isl.c: Likewise.
28943         * graphite-poly.c: Likewise.
28944         * graphite-scop-detection.c: Likewise.
28945         * graphite-sese-to-poly.c: Likewise.
28946         * graphite.c: Likewise.
28947         * haifa-sched.c: Likewise.
28948         * hooks.h: Likewise.
28949         * hw-doloop.c: Likewise.
28950         * ifcvt.c: Likewise.
28951         * incpath.c: Likewise.
28952         * init-regs.c: Likewise.
28953         * internal-fn.c: Likewise.
28954         * ipa-chkp.c: Likewise.
28955         * ipa-comdats.c: Likewise.
28956         * ipa-cp.c: Likewise.
28957         * ipa-devirt.c: Likewise.
28958         * ipa-icf-gimple.c: Likewise.
28959         * ipa-icf.c: Likewise.
28960         * ipa-inline-analysis.c: Likewise.
28961         * ipa-inline-transform.c: Likewise.
28962         * ipa-inline.c: Likewise.
28963         * ipa-polymorphic-call.c: Likewise.
28964         * ipa-profile.c: Likewise.
28965         * ipa-prop.c: Likewise.
28966         * ipa-pure-const.c: Likewise.
28967         * ipa-ref.c: Likewise.
28968         * ipa-reference.c: Likewise.
28969         * ipa-split.c: Likewise.
28970         * ipa-utils.c: Likewise.
28971         * ipa-visibility.c: Likewise.
28972         * ipa.c: Likewise.
28973         * ira-build.c: Likewise.
28974         * ira-color.c: Likewise.
28975         * ira-conflicts.c: Likewise.
28976         * ira-costs.c: Likewise.
28977         * ira-emit.c: Likewise.
28978         * ira-lives.c: Likewise.
28979         * ira.c: Likewise.
28980         * jump.c: Likewise.
28981         * langhooks.c: Likewise.
28982         * lcm.c: Likewise.
28983         * loop-doloop.c: Likewise.
28984         * loop-init.c: Likewise.
28985         * loop-invariant.c: Likewise.
28986         * loop-iv.c: Likewise.
28987         * loop-unroll.c: Likewise.
28988         * lower-subreg.c: Likewise.
28989         * lra-assigns.c: Likewise.
28990         * lra-coalesce.c: Likewise.
28991         * lra-constraints.c: Likewise.
28992         * lra-eliminations.c: Likewise.
28993         * lra-lives.c: Likewise.
28994         * lra-remat.c: Likewise.
28995         * lra-spills.c: Likewise.
28996         * lra.c: Likewise.
28997         * lto-cgraph.c: Likewise.
28998         * lto-compress.c: Likewise.
28999         * lto-opts.c: Likewise.
29000         * lto-section-in.c: Likewise.
29001         * lto-section-out.c: Likewise.
29002         * lto-streamer-in.c: Likewise.
29003         * lto-streamer-out.c: Likewise.
29004         * lto-streamer.c: Likewise.
29005         * mcf.c: Likewise.
29006         * mode-switching.c: Likewise.
29007         * modulo-sched.c: Likewise.
29008         * omega.c: Likewise.
29009         * omp-low.c: Likewise.
29010         * optabs.c: Likewise.
29011         * opts-global.c: Likewise.
29012         * passes.c: Likewise.
29013         * plugin.c: Likewise.
29014         * postreload-gcse.c: Likewise.
29015         * postreload.c: Likewise.
29016         * predict.c: Likewise.
29017         * print-rtl.c: Likewise.
29018         * print-tree.c: Likewise.
29019         * profile.c: Likewise.
29020         * real.c: Likewise.
29021         * realmpfr.c: Likewise.
29022         * realmpfr.h: Likewise.
29023         * recog.c: Likewise.
29024         * ree.c: Likewise.
29025         * reg-stack.c: Likewise.
29026         * regcprop.c: Likewise.
29027         * reginfo.c: Likewise.
29028         * regrename.c: Likewise.
29029         * regs.h: Likewise.
29030         * regstat.c: Likewise.
29031         * reload.c: Likewise.
29032         * reload1.c: Likewise.
29033         * reorg.c: Likewise.
29034         * resource.c: Likewise.
29035         * rtl-chkp.c: Likewise.
29036         * rtlanal.c: Likewise.
29037         * rtlhooks.c: Likewise.
29038         * sanopt.c: Likewise.
29039         * sched-deps.c: Likewise.
29040         * sched-ebb.c: Likewise.
29041         * sched-rgn.c: Likewise.
29042         * sched-vis.c: Likewise.
29043         * sdbout.c: Likewise.
29044         * sel-sched-dump.c: Likewise.
29045         * sel-sched-ir.c: Likewise.
29046         * sel-sched.c: Likewise.
29047         * sese.c: Likewise.
29048         * shrink-wrap.c: Likewise.
29049         * shrink-wrap.h: Likewise.
29050         * simplify-rtx.c: Likewise.
29051         * stack-ptr-mod.c: Likewise.
29052         * statistics.c: Likewise.
29053         * stmt.c: Likewise.
29054         * stor-layout.c: Likewise.
29055         * store-motion.c: Likewise.
29056         * stringpool.c: Likewise.
29057         * symtab.c: Likewise.
29058         * target-globals.c: Likewise.
29059         * targhooks.c: Likewise.
29060         * toplev.c: Likewise.
29061         * tracer.c: Likewise.
29062         * trans-mem.c: Likewise.
29063         * tree-affine.c: Likewise.
29064         * tree-affine.h: Likewise.
29065         * tree-browser.c: Likewise.
29066         * tree-call-cdce.c: Likewise.
29067         * tree-cfg.c: Likewise.
29068         * tree-cfgcleanup.c: Likewise.
29069         * tree-chkp-opt.c: Likewise.
29070         * tree-chkp.c: Likewise.
29071         * tree-chrec.c: Likewise.
29072         * tree-complex.c: Likewise.
29073         * tree-data-ref.c: Likewise.
29074         * tree-dfa.c: Likewise.
29075         * tree-diagnostic.c: Likewise.
29076         * tree-dump.c: Likewise.
29077         * tree-eh.c: Likewise.
29078         * tree-emutls.c: Likewise.
29079         * tree-if-conv.c: Likewise.
29080         * tree-inline.c: Likewise.
29081         * tree-into-ssa.c: Likewise.
29082         * tree-iterator.c: Likewise.
29083         * tree-loop-distribution.c: Likewise.
29084         * tree-nested.c: Likewise.
29085         * tree-nrv.c: Likewise.
29086         * tree-object-size.c: Likewise.
29087         * tree-outof-ssa.c: Likewise.
29088         * tree-parloops.c: Likewise.
29089         * tree-phinodes.c: Likewise.
29090         * tree-predcom.c: Likewise.
29091         * tree-pretty-print.c: Likewise.
29092         * tree-pretty-print.h: Likewise.
29093         * tree-profile.c: Likewise.
29094         * tree-scalar-evolution.c: Likewise.
29095         * tree-sra.c: Likewise.
29096         * tree-ssa-address.c: Likewise.
29097         * tree-ssa-alias.c: Likewise.
29098         * tree-ssa-ccp.c: Likewise.
29099         * tree-ssa-coalesce.c: Likewise.
29100         * tree-ssa-copy.c: Likewise.
29101         * tree-ssa-copyrename.c: Likewise.
29102         * tree-ssa-dce.c: Likewise.
29103         * tree-ssa-dom.c: Likewise.
29104         * tree-ssa-dse.c: Likewise.
29105         * tree-ssa-forwprop.c: Likewise.
29106         * tree-ssa-ifcombine.c: Likewise.
29107         * tree-ssa-live.c: Likewise.
29108         * tree-ssa-loop-ch.c: Likewise.
29109         * tree-ssa-loop-im.c: Likewise.
29110         * tree-ssa-loop-ivcanon.c: Likewise.
29111         * tree-ssa-loop-ivopts.c: Likewise.
29112         * tree-ssa-loop-manip.c: Likewise.
29113         * tree-ssa-loop-niter.c: Likewise.
29114         * tree-ssa-loop-prefetch.c: Likewise.
29115         * tree-ssa-loop-unswitch.c: Likewise.
29116         * tree-ssa-loop.c: Likewise.
29117         * tree-ssa-loop.h: Likewise.
29118         * tree-ssa-math-opts.c: Likewise.
29119         * tree-ssa-operands.c: Likewise.
29120         * tree-ssa-phiopt.c: Likewise.
29121         * tree-ssa-phiprop.c: Likewise.
29122         * tree-ssa-pre.c: Likewise.
29123         * tree-ssa-propagate.c: Likewise.
29124         * tree-ssa-reassoc.c: Likewise.
29125         * tree-ssa-sccvn.c: Likewise.
29126         * tree-ssa-scopedtables.c: Likewise.
29127         * tree-ssa-sink.c: Likewise.
29128         * tree-ssa-strlen.c: Likewise.
29129         * tree-ssa-structalias.c: Likewise.
29130         * tree-ssa-tail-merge.c: Likewise.
29131         * tree-ssa-ter.c: Likewise.
29132         * tree-ssa-threadedge.c: Likewise.
29133         * tree-ssa-threadupdate.c: Likewise.
29134         * tree-ssa-uncprop.c: Likewise.
29135         * tree-ssa-uninit.c: Likewise.
29136         * tree-ssa.c: Likewise.
29137         * tree-ssanames.c: Likewise.
29138         * tree-stdarg.c: Likewise.
29139         * tree-streamer-in.c: Likewise.
29140         * tree-streamer-out.c: Likewise.
29141         * tree-streamer.c: Likewise.
29142         * tree-switch-conversion.c: Likewise.
29143         * tree-tailcall.c: Likewise.
29144         * tree-vect-data-refs.c: Likewise.
29145         * tree-vect-generic.c: Likewise.
29146         * tree-vect-loop-manip.c: Likewise.
29147         * tree-vect-loop.c: Likewise.
29148         * tree-vect-patterns.c: Likewise.
29149         * tree-vect-slp.c: Likewise.
29150         * tree-vect-stmts.c: Likewise.
29151         * tree-vectorizer.c: Likewise.
29152         * tree-vrp.c: Likewise.
29153         * tree.c: Likewise.
29154         * tsan.c: Likewise.
29155         * ubsan.c: Likewise.
29156         * valtrack.c: Likewise.
29157         * value-prof.c: Likewise.
29158         * var-tracking.c: Likewise.
29159         * varasm.c: Likewise.
29160         * varpool.c: Likewise.
29161         * vmsdbgout.c: Likewise.
29162         * vtable-verify.c: Likewise.
29163         * web.c: Likewise.
29164         * wide-int-print.cc: Likewise.
29165         * wide-int-print.h: Likewise.
29166         * wide-int.cc: Likewise.
29167         * xcoffout.c: Likewise.
29168         * config/aarch64/aarch64-builtins.c: Likewise.
29169         * config/aarch64/aarch64.c: Likewise.
29170         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
29171         * config/alpha/alpha.c: Likewise.
29172         * config/arc/arc.c: Likewise.
29173         * config/arm/aarch-common.c: Likewise.
29174         * config/arm/arm-builtins.c: Likewise.
29175         * config/arm/arm-c.c: Likewise.
29176         * config/arm/arm.c: Likewise.
29177         * config/avr/avr-c.c: Likewise.
29178         * config/avr/avr-log.c: Likewise.
29179         * config/avr/avr.c: Likewise.
29180         * config/bfin/bfin.c: Likewise.
29181         * config/c6x/c6x.c: Likewise.
29182         * config/cr16/cr16.c: Likewise.
29183         * config/cris/cris.c: Likewise.
29184         * config/darwin-c.c: Likewise.
29185         * config/darwin.c: Likewise.
29186         * config/default-c.c: Likewise.
29187         * config/epiphany/epiphany.c: Likewise.
29188         * config/epiphany/mode-switch-use.c: Likewise.
29189         * config/epiphany/resolve-sw-modes.c: Likewise.
29190         * config/fr30/fr30.c: Likewise.
29191         * config/frv/frv.c: Likewise.
29192         * config/ft32/ft32.c: Likewise.
29193         * config/glibc-c.c: Likewise.
29194         * config/h8300/h8300.c: Likewise.
29195         * config/i386/i386-c.c: Likewise.
29196         * config/i386/i386.c: Likewise.
29197         * config/i386/msformat-c.c: Likewise.
29198         * config/i386/winnt-cxx.c: Likewise.
29199         * config/i386/winnt-stubs.c: Likewise.
29200         * config/i386/winnt.c: Likewise.
29201         * config/ia64/ia64-c.c: Likewise.
29202         * config/ia64/ia64.c: Likewise.
29203         * config/iq2000/iq2000.c: Likewise.
29204         * config/lm32/lm32.c: Likewise.
29205         * config/m32c/m32c-pragma.c: Likewise.
29206         * config/m32c/m32c.c: Likewise.
29207         * config/m32r/m32r.c: Likewise.
29208         * config/m68k/m68k.c: Likewise.
29209         * config/mcore/mcore.c: Likewise.
29210         * config/mep/mep-pragma.c: Likewise.
29211         * config/mep/mep.c: Likewise.
29212         * config/microblaze/microblaze-c.c: Likewise.
29213         * config/microblaze/microblaze.c: Likewise.
29214         * config/mips/mips.c: Likewise.
29215         * config/mmix/mmix.c: Likewise.
29216         * config/mn10300/mn10300.c: Likewise.
29217         * config/moxie/moxie.c: Likewise.
29218         * config/msp430/msp430-c.c: Likewise.
29219         * config/msp430/msp430.c: Likewise.
29220         * config/nds32/nds32-cost.c: Likewise.
29221         * config/nds32/nds32-fp-as-gp.c: Likewise.
29222         * config/nds32/nds32-intrinsic.c: Likewise.
29223         * config/nds32/nds32-isr.c: Likewise.
29224         * config/nds32/nds32-md-auxiliary.c: Likewise.
29225         * config/nds32/nds32-memory-manipulation.c: Likewise.
29226         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
29227         * config/nds32/nds32-predicates.c: Likewise.
29228         * config/nds32/nds32.c: Likewise.
29229         * config/nios2/nios2.c: Likewise.
29230         * config/nvptx/nvptx.c: Likewise.
29231         * config/pa/pa.c: Likewise.
29232         * config/pdp11/pdp11.c: Likewise.
29233         * config/rl78/rl78-c.c: Likewise.
29234         * config/rl78/rl78.c: Likewise.
29235         * config/rs6000/rs6000-c.c: Likewise.
29236         * config/rs6000/rs6000.c: Likewise.
29237         * config/rx/rx.c: Likewise.
29238         * config/s390/s390-c.c: Likewise.
29239         * config/s390/s390.c: Likewise.
29240         * config/sh/sh-c.c: Likewise.
29241         * config/sh/sh-mem.cc: Likewise.
29242         * config/sh/sh.c: Likewise.
29243         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
29244         * config/sh/sh_treg_combine.cc: Likewise.
29245         * config/sol2-c.c: Likewise.
29246         * config/sol2-cxx.c: Likewise.
29247         * config/sol2-stubs.c: Likewise.
29248         * config/sol2.c: Likewise.
29249         * config/sparc/sparc-c.c: Likewise.
29250         * config/sparc/sparc.c: Likewise.
29251         * config/spu/spu-c.c: Likewise.
29252         * config/spu/spu.c: Likewise.
29253         * config/stormy16/stormy16.c: Likewise.
29254         * config/tilegx/mul-tables.c: Likewise.
29255         * config/tilegx/tilegx-c.c: Likewise.
29256         * config/tilegx/tilegx.c: Likewise.
29257         * config/tilepro/mul-tables.c: Likewise.
29258         * config/tilepro/tilepro-c.c: Likewise.
29259         * config/tilepro/tilepro.c: Likewise.
29260         * config/v850/v850-c.c: Likewise.
29261         * config/v850/v850.c: Likewise.
29262         * config/vax/vax.c: Likewise.
29263         * config/visium/visium.c: Likewise.
29264         * config/vms/vms-c.c: Likewise.
29265         * config/vms/vms.c: Likewise.
29266         * config/vxworks.c: Likewise.
29267         * config/winnt-c.c: Likewise.
29268         * config/xtensa/xtensa.c: Likewise.
29269         * common/config/bfin/bfin-common.c: Likewise.
29271 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
29273         * tree.h (tree_code_for_canonical_type_merging): New function.
29274         * tree.c (gimple_canonical_types_compatible_p): Use
29275         tree_code_for_canonical_type_merging..
29277 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29279         PR c++/66192
29280         PR target/66200
29281         * doc/tm.texi: Regenerate.
29282         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
29283         * target.def (TARGET_RELAXED_ORDERING): Likewise.
29284         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
29285         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
29286         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
29287         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
29288         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
29289         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
29290         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
29292 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29294         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
29295         register fma steering pass.
29296         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
29297         AARCH64_TUNE_FMA_STEERING.
29299 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
29301         * tree.c (verify_type_variant): Verify that type and variant is
29302         compatible.
29303         (gimple_canonical_types_compatible_p): Look for main variants.
29305 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
29307         * config.gcc (powerpc*-*-*): Add support for a new configure
29308         option --with-advance-toolchain=<xxx> which overrides using the
29309         default header files, libraries and dynamic linker.
29311         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
29312         specs to support the configure --with-advance-toolchain=<xxx>
29313         option.
29314         (INCLUDE_EXTRA_SPEC): Likewise.
29315         (LINK_OS_EXTRA_SPEC32): Likewise.
29316         (LINK_OK_EXTRA_SPEC64): Likewise.
29317         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
29318         (DYNAMIC_LINKER_PREFIX): Likewise.
29319         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
29320         toolchain support.
29321         (GLIBC_DYNAMIC_LINKER32): Likewise.
29322         (GLIBC_DYNAMIC_LINKER64): Likewise.
29323         (LINK_OS_LINUX_SPEC32): Likewise.
29324         (LINK_OS_LINUX_SPEC64): Likewise.
29326         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
29327         configuration option.
29329 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
29331         PR target/66275
29332         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
29333         to determine current function ABI.
29334         (ix86_function_value_regno_p): Ditto.
29336 2015-06-03  Martin Liska  <mliska@suse.cz>
29338         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
29339         * bitmap.h (struct bitmap_usage): Likewise.
29340         * ggc-common.c (struct ggc_usage): Likewise.
29341         * mem-stats.h (struct mem_location): Likewise.
29342         (struct mem_usage): Likewise.
29343         * vec.c (struct vec_usage): Likewise.
29345 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
29347         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
29348         -Bsymbolic.
29350 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
29352         * doc/plugins.texi (enum plugin_event): New event.
29353         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
29354         and PLUGIN_FINISH_FUNCTION.
29355         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
29356         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
29358 2015-06-03  Richard Biener  <rguenther@suse.de>
29360         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29361         compute GROUP_GAP for the first element.
29362         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
29363         on in-group gaps.
29365 2015-06-03  Nick Clifton  <nickc@redhat.com>
29367         * config/rl78/rl78-real.md: Add peepholes to avoid a register
29368         copy when calling a function.
29369         * config/rl78/rl78.c (need_to_save): Do not push the frame
29370         pointer in an interrupt handler prologue if it is never used.
29372 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29374         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
29376 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
29378         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
29379         reference when cloning alias node.
29381 2015-06-03  Martin Liska  <mliska@suse.cz>
29383         * alloc-pool.h (struct pool_usage): Correct space padding.
29384         * ggc-page.c (ggc_print_statistics): Align columns in a report.
29385         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
29386         * tree.c (dump_tree_statistics): Align columns in a report.
29388 2015-06-03  Martin Liska  <mliska@suse.cz>
29390         * alloc-pool.c (allocate_pool_descriptor): Remove.
29391         (struct pool_output_info): Likewise.
29392         (print_alloc_pool_statistics): Likewise.
29393         (dump_alloc_pool_statistics): Likewise.
29394         * alloc-pool.h (struct pool_usage): New struct.
29395         (pool_allocator::initialize): Change usage of memory statistics
29396         to a new interface.
29397         (pool_allocator::release): Likewise.
29398         (pool_allocator::allocate): Likewise.
29399         (pool_allocator::remove): Likewise.
29400         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
29401         for a pool allocator.
29402         * mem-stats.h (struct mem_location): Add new ctor.
29403         (struct mem_usage): Add counter for number of
29404         instances.
29405         (mem_alloc_description::register_descriptor): New overload of
29406         * mem-stats.h (mem_location::to_string): New function.
29407         * bitmap.h (struct bitmap_usage): Use this new function.
29408         * ggc-common.c (struct ggc_usage): Likewise.
29409         the function.
29411 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
29413         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
29414         of GCC_INSN_FLAGS_H block.
29416 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
29418         * explow.c (plus_constant): Update check after force_const_mem call
29419         to see if the value returned is not a NULL_RTX.
29421 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
29423         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
29424         remove instumentation thunks calling reachable functions.
29425         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
29426         * lto/lto-partition.c (privatize_symbol_name_1): New.
29427         (privatize_symbol_name): Privatize both decl and orig_decl
29428         names for instrumented functions.
29429         * cgraph.c (cgraph_node::verify_node): Add transparent
29430         alias chain check for instrumented node.
29432 2015-06-03  Marek Polacek  <polacek@redhat.com>
29434         PR c/64223
29435         PR c/29358
29436         * tree.c (attribute_value_equal): Handle attribute format.
29437         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
29439 2015-06-03  Richard Biener  <rguenther@suse.de>
29441         PR tree-optimization/63916
29442         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
29443         Forward-propagate non-invariant addresses by splicing their
29444         reference ops if the result isn't going to be used by PRE.
29445         (vn_reference_lookup_3): Remove pointless assert.
29447 2015-06-03  Richard Biener  <rguenther@suse.de>
29449         PR tree-optimization/66375
29450         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
29451         add to the evolution before following SSA edges.
29453 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
29455         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
29456         (dump_use, dump_cand, find_induction_variables): Pass new argument
29457         to dump_iv.
29458         (record_use): Preserve the ssa name information in IV.
29460 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
29462         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
29463         NO_MODE_TEST.
29464         (add_mode_tests): Don't add mode tests if the predicate only
29465         accepts scalar constant integers.  Otherwise, allow the mode
29466         of "op" to be VOIDmode if the predicate does accept such integers.
29468 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
29470         PR target/66258
29471         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
29472         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
29473         (aarch64_secondary_reload): Likewise
29474         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
29475         to !TARGET_FLOAT.
29476         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
29477         Likewise.
29479 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
29480             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
29482         PR target/65768
29483         * cprop.c (try_replace_reg): Check cost of constants before propagating.
29485 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
29487         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
29488         provide access to the IBM extended double floating point mode if
29489         long double is IEEE 128-bit floating point.
29490         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
29491         point if long double is the IBM extended double type.
29493         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
29494         enable adding IEEE 128-bit floating point support.
29495         (-mfloat128-software): Likewise.
29496         (-mfloat128-sw): Likewise.
29498         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
29499         128-bit floating point types to occupy any register if
29500         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
29501         -mfloat128-software is enabled.
29502         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
29503         support.
29504         (rs6000_option_override_internal): Add -mfloat128-* support.
29505         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
29507         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
29508         and float128 type nodes.
29509         (ieee128_float_type_node): Likewise.
29510         (ibm128_float_type_node): Likewise.
29512 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29514         PR target/66136
29515         * config/aarch64/geniterators.sh: Rewrite in awk.
29517 2015-06-02  Martin Liska  <mliska@suse.cz>
29519         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
29520         values to avoid -Wmaybe-uninitialized errors.
29522 2015-06-02  Richard Biener  <rguenther@suse.de>
29524         PR debug/65549
29525         * dwarf2out.c (lookup_context_die): New function.
29526         (resolve_addr): Avoid forcing a full DIE for the
29527         target of a DW_TAG_GNU_call_site during late compilation.
29528         Instead create a stub DIE without a type if we have a
29529         context DIE present.
29531 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
29533         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
29535 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
29537         PR tree-optimization/48052
29538         * cfgloop.h (struct control_iv): New.
29539         (struct loop): New field control_ivs.
29540         * tree-ssa-loop-niter.c : Include "stor-layout.h".
29541         (number_of_iterations_lt): Set no_overflow information.
29542         (number_of_iterations_exit): Init control iv in niter struct.
29543         (record_control_iv): New.
29544         (estimate_numbers_of_iterations_loop): Call record_control_iv.
29545         (loop_exits_before_overflow): New.  Interface factored out of
29546         scev_probably_wraps_p.
29547         (scev_probably_wraps_p): Factor loop niter related code into
29548         loop_exits_before_overflow.
29549         (free_numbers_of_iterations_estimates_loop): Free control ivs.
29550         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
29552 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
29554         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
29555         the target doesn't belong to the current function.
29557 2015-06-02  Marek Polacek  <polacek@redhat.com>
29559         PR middle-end/66345
29560         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
29561         get_maxval_strlen does not produce an INTEGER_CST.
29563 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
29565         * config/arc/constraints.md: Use lower-case names in match_code.
29566         * config/mmix/constraints.md: Likewise.
29568 2015-06-02  Richard Biener  <rguenther@suse.de>
29570         PR tree-optimization/65961
29571         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
29572         check and clarify dump message.
29573         (vect_build_slp_tree): If all children are built up from scalars
29574         build up the parent from scalars instead.
29575         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
29577 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
29579         PR other/65366
29580         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
29581         instead of print ... .
29583 2015-06-02  Alan Modra  <amodra@gmail.com>
29585         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
29586         2014-08-11 change.
29588 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
29590         PR tree-optimization/52563
29591         PR tree-optimization/62173
29592         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
29593         (alloc_iv, set_iv): New parameter.
29594         (determine_biv_step): Delete.
29595         (find_bivs): Inline original determine_biv_step.  Pass new
29596         argument to set_iv.
29597         (idx_find_step): Use no_overflow information for conversion.
29598         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
29599         resolve_mixers handle folded_casts.
29600         (instantiate_scev_name): Change bool parameter to bool pointer.
29601         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
29602         (instantiate_array_ref, instantiate_scev_not): Ditto.
29603         (instantiate_scev_3, instantiate_scev_2): Ditto.
29604         (instantiate_scev_1, instantiate_scev_r): Ditto.
29605         (instantiate_scev_convert, ): Change parameter.  Pass argument
29606         to chrec_convert_aggressive.
29607         (instantiate_scev): Change argument.
29608         (resolve_mixers): New parameter and set it.
29609         (scev_const_prop): New argument.
29610         * tree-scalar-evolution.h (resolve_mixers): New parameter.
29611         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
29612         of chrec_conert_1.
29613         (chrec_convert): New parameter.  Move definition below.
29614         (chrec_convert_aggressive): New parameter and set it.  Call
29615         convert_affine_scev.
29616         * tree-chrec.h (chrec_convert): New parameter.
29617         (chrec_convert_aggressive): Ditto.
29619 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
29621         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
29622         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
29623         the LHS of a no-return call if its type has variable size.
29624         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
29625         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
29627 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
29629         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
29630         * config.in: Regenerate.
29632 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
29634         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
29635         consecutive accesses within outer-loop with force_vectorize
29636         for references with zero step in inner-loop.
29638 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
29640         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
29641         rather than from gcc/build directory.
29643 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
29645         PR target/65697
29646         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
29647         for __sync memory models, emit initial loads and final barriers as
29648         appropriate.
29650 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
29652         PR target/65697
29653         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
29654         (aarch64_split_atomic_op): Check for __sync memory models, emit
29655         appropriate initial loads and final barriers.
29657 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
29659         * Makefile.in: Fix gcov dependencies that should
29660         not point to a build folder.
29662 2015-06-01  Richard Biener  <rguenther@suse.de>
29664         Revert
29665         2015-05-29  Richard Biener  <rguenther@suse.de>
29667         PR tree-optimization/66314
29668         * tree-ssa-threadupdate.c (create_block_for_threading): Add
29669         parameter that says which loop the new block belongs to.
29670         (ssa_create_duplicates): Blocks duplicated for the threaded
29671         path belong to the loop of the thread destination.
29673 2015-06-01  Martin Liska  <mliska@suse.cz>
29675         * sched-deps.c: Include pool-alloc.h before
29676         cselib.h header file is included.
29678 2015-06-01  Richard Biener  <rguenther@suse.de>
29680         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
29681         functions.
29683 2015-06-01  Martin Liska  <mliska@suse.cz>
29685         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
29686         a function local variable.
29688 2015-06-01  Martin Liska  <mliska@suse.cz>
29690         * alloc-pool.c (create_alloc_pool): Remove.
29691         (empty_alloc_pool): Likewise.
29692         (free_alloc_pool): Likewise.
29693         (free_alloc_pool_if_empty): Likewise.
29694         (pool_alloc): Likewise.
29695         (pool_free): Likewise.
29696         * alloc-pool.h: Remove old declarations.
29698 2015-06-01  Martin Liska  <mliska@suse.cz>
29700         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
29701         (ira_create_object): Likewise.
29702         (ira_create_allocno): Likewise.
29703         (ira_create_live_range): Likewise.
29704         (copy_live_range): Likewise.
29705         (ira_finish_live_range): Likewise.
29706         (ira_free_allocno_costs): Likewise.
29707         (finish_allocno): Likewise.
29708         (finish_allocnos): Likewise.
29709         (initiate_prefs): Likewise.
29710         (ira_create_pref): Likewise.
29711         (finish_pref): Likewise.
29712         (finish_prefs): Likewise.
29713         (initiate_copies): Likewise.
29714         (ira_create_copy): Likewise.
29715         (finish_copy): Likewise.
29716         (finish_copies): Likewise.
29717         (finish_prefs): Likewise.
29719 2015-06-01  Martin Liska  <mliska@suse.cz>
29721         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
29722         (allocate_and_init_ipcp_value): Likewise.
29723         (ipcp_lattice::add_value): Likewise.
29724         (merge_agg_lats_step): Likewise.
29725         (ipcp_driver): Likewise.
29726         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
29727         (ipa_free_all_structures_after_iinln): Likewise.
29728         * ipa-prop.h: Likewise.
29730 2015-06-01  Martin Liska  <mliska@suse.cz>
29732         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
29733         pool allocator.
29734         (set_hint_predicate): Likewise.
29735         (inline_summary_alloc): Likewise.
29736         (reset_inline_edge_summary): Likewise.
29737         (reset_inline_summary): Likewise.
29738         (set_cond_stmt_execution_predicate): Likewise.
29739         (set_switch_stmt_execution_predicate): Likewise.
29740         (compute_bb_predicates): Likewise.
29741         (estimate_function_body_sizes): Likewise.
29742         (inline_free_summary): Likewise.
29744 2015-06-01  Martin Liska  <mliska@suse.cz>
29746         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
29747         (ipa_edge_duplication_hook): Likewise.
29748         (ipa_free_all_structures_after_ipa_cp): Likewise.
29749         (ipa_free_all_structures_after_iinln): Likewise.
29751 2015-06-01  Martin Liska  <mliska@suse.cz>
29753         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
29754         (ipa_profile_generate_summary): Likewise.
29755         (ipa_profile_read_summary): Likewise.
29756         (ipa_profile): Likewise.
29758 2015-06-01  Martin Liska  <mliska@suse.cz>
29760         * tree-ssa-structalias.c (new_var_info): Use new type-based
29761         pool allocator.
29762         (new_constraint): Likewise.
29763         (init_alias_vars): Likewise.
29764         (delete_points_to_sets): Likewise.
29766 2015-06-01  Martin Liska  <mliska@suse.cz>
29768         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
29769         (free_strinfo): Likewise.
29770         (pass_strlen::execute): Likewise.
29772 2015-06-01  Martin Liska  <mliska@suse.cz>
29774         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
29775         pool allocator.
29776         (vn_reference_insert_pieces): Likewise.
29777         (vn_phi_insert): Likewise.
29778         (visit_reference_op_call): Likewise.
29779         (copy_phi): Likewise.
29780         (copy_reference): Likewise.
29781         (process_scc): Likewise.
29782         (allocate_vn_table): Likewise.
29783         (free_vn_table): Likewise.
29785 2015-06-01  Martin Liska  <mliska@suse.cz>
29787         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
29788         pool allocator.
29789         (add_repeat_to_ops_vec): Likewise.
29790         (get_ops): Likewise.
29791         (maybe_optimize_range_tests): Likewise.
29792         (init_reassoc): Likewise.
29793         (fini_reassoc): Likewise.
29795 2015-06-01  Martin Liska  <mliska@suse.cz>
29797         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
29798         pool allocator.
29799         (bitmap_set_new): Likewise.
29800         (get_or_alloc_expr_for_constant): Likewise.
29801         (get_or_alloc_expr_for): Likewise.
29802         (phi_translate_1): Likewise.
29803         (compute_avail): Likewise.
29804         (init_pre): Likewise.
29805         (fini_pre): Likewise.
29807 2015-06-01  Martin Liska  <mliska@suse.cz>
29809         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
29810         (delete_dep_node): Likewise.
29811         (create_deps_list): Likewise.
29812         (free_deps_list): Likewise.
29813         (sched_deps_init): Likewise.
29814         (sched_deps_finish): Likewise.
29816 2015-06-01  Martin Liska  <mliska@suse.cz>
29818         * regcprop.c (free_debug_insn_changes): Use new type-based
29819         pool allocator.
29820         (replace_oldest_value_reg): Likewise.
29821         (pass_cprop_hardreg::execute): Likewise.
29823 2015-06-01  Martin Liska  <mliska@suse.cz>
29825         * ira-build.c (initiate_cost_vectors): Use new type-based
29826         pool allocator.
29827         (ira_allocate_cost_vector): Likewise.
29828         (ira_free_cost_vector): Likewise.
29829         (finish_cost_vectors): Likewise.
29831 2015-06-01  Martin Liska  <mliska@suse.cz>
29833         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
29834         pool allocator.
29835         (free_sched_pools): Likewise.
29836         * sel-sched-ir.h (_list_alloc): Likewise.
29837         (_list_remove): Likewise.
29839 2015-06-01  Martin Liska  <mliska@suse.cz>
29841         * stmt.c (add_case_node): Use new type-based pool allocator.
29842         (expand_case): Likewise.
29843         (expand_sjlj_dispatch_table): Likewise.
29845 2015-06-01  Martin Liska  <mliska@suse.cz>
29847         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
29848         (free_bb): Likewise.
29849         (pass_cse_reciprocals::execute): Likewise.
29851 2015-06-01  Martin Liska  <mliska@suse.cz>
29853         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
29854         (sra_deinitialize) Likewise.
29855         (create_access_1) Likewise.
29856         (build_accesses_from_assign) Likewise.
29857         (create_artificial_child_access) Likewise.
29859 2015-06-01  Martin Liska  <mliska@suse.cz>
29861         * dse.c (get_group_info):Use new type-based pool allocator.
29862         (dse_step0) Likewise.
29863         (free_store_info) Likewise.
29864         (delete_dead_store_insn) Likewise.
29865         (free_read_records) Likewise.
29866         (record_store) Likewise.
29867         (replace_read) Likewise.
29868         (check_mem_read_rtx) Likewise.
29869         (scan_insn) Likewise.
29870         (dse_step1) Likewise.
29871         (dse_step7) Likewise.
29873 2015-06-01  Martin Liska  <mliska@suse.cz>
29875         * df-scan.c (struct df_scan_problem_data):Use new type-based
29876         pool allocator.
29877         (df_scan_free_internal) Likewise.
29878         (df_scan_alloc) Likewise.
29879         (df_grow_reg_info) Likewise.
29880         (df_free_ref) Likewise.
29881         (df_insn_create_insn_record) Likewise.
29882         (df_mw_hardreg_chain_delete) Likewise.
29883         (df_insn_info_delete) Likewise.
29884         (df_free_collection_rec) Likewise.
29885         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
29886         (df_sort_and_compress_mws) Likewise.
29887         (df_ref_create_structure) Likewise.
29888         (df_ref_record) Likewise.
29890 2015-06-01  Martin Liska  <mliska@suse.cz>
29892         * df-problems.c (df_chain_create):Use new type-based pool allocator.
29893         (df_chain_unlink_1) Likewise.
29894         (df_chain_unlink) Likewise.
29895         (df_chain_remove_problem) Likewise.
29896         (df_chain_alloc) Likewise.
29897         (df_chain_free) Likewise.
29898         * df.h (struct dataflow) Likewise.
29900 2015-06-01  Martin Liska  <mliska@suse.cz>
29902         * cselib.c (new_elt_list):Use new type-based pool allocator.
29903         (new_elt_loc_list) Likewise.
29904         (unchain_one_elt_list) Likewise.
29905         (unchain_one_elt_loc_list) Likewise.
29906         (unchain_one_value) Likewise.
29907         (new_cselib_val) Likewise.
29908         (cselib_init) Likewise.
29909         (cselib_finish) Likewise.
29911 2015-06-01  Martin Liska  <mliska@suse.cz>
29913         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
29914         (sh_reorg) Likewise.
29916 2015-06-01  Martin Liska  <mliska@suse.cz>
29918         * cfg.c (initialize_original_copy_tables):Use new type-based
29919         pool allocator.
29920         (free_original_copy_tables) Likewise.
29921         (copy_original_table_clear) Likewise.
29922         (copy_original_table_set) Likewise.
29924 2015-06-01  Martin Liska  <mliska@suse.cz>
29926         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
29927         pool allocator.
29928         (asan_mem_ref_new) Likewise.
29929         (free_mem_ref_resources) Likewise.
29931 2015-06-01  Martin Liska  <mliska@suse.cz>
29933         * var-tracking.c (variable_htab_free):Use new type-based
29934         pool allocator.
29935         (attrs_list_clear) Likewise.
29936         (attrs_list_insert) Likewise.
29937         (attrs_list_copy) Likewise.
29938         (shared_hash_unshare) Likewise.
29939         (shared_hash_destroy) Likewise.
29940         (unshare_variable) Likewise.
29941         (var_reg_delete_and_set) Likewise.
29942         (var_reg_delete) Likewise.
29943         (var_regno_delete) Likewise.
29944         (drop_overlapping_mem_locs) Likewise.
29945         (variable_union) Likewise.
29946         (insert_into_intersection) Likewise.
29947         (canonicalize_values_star) Likewise.
29948         (variable_merge_over_cur) Likewise.
29949         (dataflow_set_merge) Likewise.
29950         (remove_duplicate_values) Likewise.
29951         (variable_post_merge_new_vals) Likewise.
29952         (dataflow_set_preserve_mem_locs) Likewise.
29953         (dataflow_set_remove_mem_locs) Likewise.
29954         (variable_from_dropped) Likewise.
29955         (variable_was_changed) Likewise.
29956         (set_slot_part) Likewise.
29957         (clobber_slot_part) Likewise.
29958         (delete_slot_part) Likewise.
29959         (loc_exp_insert_dep) Likewise.
29960         (notify_dependents_of_changed_value) Likewise.
29961         (emit_notes_for_differences_1) Likewise.
29962         (vt_emit_notes) Likewise.
29963         (vt_initialize) Likewise.
29964         (vt_finalize) Likewise.
29966 2015-06-01  Martin Liska  <mliska@suse.cz>
29968         * ira-color.c (init_update_cost_records):Use new type-based
29969         pool allocator.
29970         (get_update_cost_record) Likewise.
29971         (free_update_cost_record_list) Likewise.
29972         (finish_update_cost_records) Likewise.
29973         (initiate_cost_update) Likewise.
29975 2015-06-01  Martin Liska  <mliska@suse.cz>
29977         * lra.c (init_insn_regs): Use new type-based pool allocator.
29978         (new_insn_reg) Likewise.
29979         (free_insn_reg) Likewise.
29980         (free_insn_regs) Likewise.
29981         (finish_insn_regs) Likewise.
29982         (init_insn_recog_data) Likewise.
29983         (init_reg_info) Likewise.
29984         (finish_reg_info) Likewise.
29985         (lra_free_copies) Likewise.
29986         (lra_create_copy) Likewise.
29987         (invalidate_insn_data_regno_info) Likewise.
29989 2015-06-01  Martin Liska  <mliska@suse.cz>
29991         * lra-lives.c (free_live_range): Use new type-based pool allocator.
29992         (free_live_range_list) Likewise.
29993         (create_live_range) Likewise.
29994         (copy_live_range) Likewise.
29995         (lra_merge_live_ranges) Likewise.
29996         (remove_some_program_points_and_update_live_ranges) Likewise.
29997         (lra_live_ranges_init) Likewise.
29998         (lra_live_ranges_finish) Likewise.
30000 2015-06-01  Martin Liska  <mliska@suse.cz>
30002         * et-forest.c (et_new_occ): Use new type-based pool allocator.
30003         (et_new_tree): Likewise.
30004         (et_free_tree): Likewise.
30005         (et_free_tree_force): Likewise.
30006         (et_free_pools): Likewise.
30007         (et_split): Likewise.
30009 2015-06-01  Martin Liska  <mliska@suse.cz>
30011         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
30012         to header file.
30013         * alloc-pool.h (pool_allocator::pool_allocator): New function.
30014         (pool_allocator::release): Likewise.
30015         (inline pool_allocator::release_if_empty): Likewise.
30016         (inline pool_allocator::~pool_allocator): Likewise.
30017         (pool_allocator::allocate): Likewise.
30018         (pool_allocator::remove): Likewise.
30020 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
30022         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
30023         in comment.
30025 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
30027         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
30028         to fusible_ops.
30029         * config/arm/arm.c (arm_print_tune_info): Likewise.
30030         (arm_macro_fusion_p): Likewise.
30031         (arm_macro_fusion_pair_p): Likewise.
30033 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
30035         * config/aarch64/aarch64-protos.h (tune_params): Rename
30036         fuseable_ops to fusible_ops.
30037         * config/aarch64/aarch64.c (generic_tunings): Rename
30038         fuseable_ops to fusible_ops.
30039         (cortexa53_tunings): Likewise.
30040         (cortexa57_tunings): Likewise.
30041         (thunderx_tunings): Likewise.
30042         (xgene1_tunings): Likewise.
30043         (aarch64_macro_fusion_p): Likewise.
30044         (aarch64_macro_fusion_pair_p): Likewise.
30046 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30048         * config/s390/driver-native.c: New file.
30049         * config/s390/x-native: New file.
30050         * config.host: Add new files for s390.
30051         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
30052         and -march=native
30053         * config.gcc: Likewise.
30054         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
30055         * config/s390/s390-opts.h (enum processor_type): Ditto.
30056         * config/s390/s390.c (s390_option_override): Catch unhandled
30057         PROCESSOR_NATIVE
30059 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
30061         PR target/65527
30062         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
30063         redirection for instrumented calls.
30064         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
30065         (append_compiler_options): Append -fcheck-pointer-bounds.
30066         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
30067         (chkp_redirect_edge): New.
30068         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
30069         (chkp_redirect_edge): New.
30071 2015-06-01  Richard Biener  <rguenther@suse.de>
30073         PR tree-optimization/66280
30074         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
30075         def-use walking.
30077 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30079         * config/aarch64/aarch64.md
30080         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
30081         logic_shift_imm.
30083 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
30085         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
30086         Remove obsolete kludge.
30088 2015-06-01  Richard Biener  <rguenther@suse.de>
30090         * tree-ssa-reassoc.c (get_rank): Simplify.
30092 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
30094         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
30095         * configure: Regenerated.
30097 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
30099         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
30100         issue (add space between string literal and macro).
30101         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
30103 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
30105         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
30106         implict or explicit -fPIE or -fpie.
30108 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
30110         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
30112 2015-05-28  DJ Delorie  <dj@redhat.com>
30114         * expmed.c (extract_bit_field_1): Avoid clobbering a
30115         yet-to-be-used base/index register.
30117 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
30119         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
30120         (alias_stats): Add num_universal.
30121         (alias_set_subset_of): Special case pointers; be ready for NULL
30122         children.
30123         (alias_sets_conflict_p): Special case pointers; be ready for NULL
30124         children.
30125         (init_alias_set_entry): Break out from ...
30126         (record_alias_subset): ... here; propagate new fields;
30127         allocate children only when really needed.
30128         (get_alias_set): Do less generous pointer globbing.
30129         (dump_alias_stats_in_alias_c): Update statistics.
30131 2015-05-30  Alan Modra  <amodra@gmail.com>
30133         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
30134         correct block for use of r12.
30135         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
30137 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30139         PR target/66215
30140         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
30141         with -mhotpatch=.
30143 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
30145         PR tree-optimization/66142
30146         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
30147         virtual phis that feed themselves.
30149 2015-05-29  Richard Biener  <rguenther@suse.de>
30151         PR tree-optimization/66314
30152         * tree-ssa-threadupdate.c (create_block_for_threading): Add
30153         parameter that says which loop the new block belongs to.
30154         (ssa_create_duplicates): Blocks duplicated for the threaded
30155         path belong to the loop of the thread destination.
30157 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30159         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
30160         to cleanup-saved-temps.
30161         * doc/sourcebuild.texi (Clean up generated test files): Expand
30162         introduction.
30163         (dg-keep-saved-temps): Document new proc.
30164         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
30165         cleanup-saved-temps): Remove.
30167 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
30169         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
30170         gcc_AC_CHECK_DECLS.
30171         * configure: Regenerate.
30173 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
30175         * config/nios2/linux.h (CPP_SPEC): Define.
30177 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
30179         * config/microblaze/linux.h (CPP_SPEC): Define.
30181 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
30183         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
30184         -pthread is specified.
30186 2015-05-28  Richard Biener  <rguenther@suse.de>
30188         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
30189         (vect_fixup_scalar_cycles_with_patterns): Likewise.
30190         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
30191         after pattern recog.
30192         (vect_create_epilog_for_reduction): Properly handle reductions
30193         with patterns.
30194         (vectorizable_reduction): Likewise.
30195         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
30196         reduction chains.
30197         (vect_get_constant_vectors): Create the correct number of
30198         initial values for reductions.
30199         (vect_schedule_slp_instance): Handle reduction chains that are
30200         type changing properly.
30201         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
30203 2015-05-28  Richard Biener  <rguenther@suse.de>
30205         PR tree-optimization/66142
30206         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
30207         values better in memcpy destination handling.  Handle non-aliasing
30208         we discover here.
30210 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
30212         PR target/63810
30213         * config/darwin-c.c (version_components): New global enum.
30214         (parse_version, version_as_legacy_macro)
30215         (version_as_modern_macro, macosx_version_as_macro): New functions.
30216         (version_as_macro): Remove.
30217         (darwin_cpp_builtins): Use new function.
30219 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
30221         * builtins.c (expand_builtin_acc_on_device): Mark parameters
30222         with ATTRIBUTE_UNUSED.
30224 2015-05-28  Julian Brown  <julian@codesourcery.com>
30226         PR libgomp/65742
30228         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
30229         sequence for !ACCEL_COMPILER.
30231 2015-05-28  Nick Clifton  <nickc@redhat.com>
30233         * config/rx/rx.c (push_regs): New function.  Extracts code from...
30234         (rx_expand_prologue): ... here.  Use push_regs to push even small
30235         spans of registers.
30236         (pop_regs): New function.
30237         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
30238         registers.
30240 2015-05-28  Richard Biener  <rguenther@suse.de>
30242         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
30243         member.
30244         (SLP_INSTANCE_BODY_COST_VEC): Remove.
30245         (vect_update_slp_costs_according_to_vf): Likewise.
30246         (vect_slp_analyze_operations): Update prototype.
30247         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
30248         vect_update_slp_costs_according_to_vf, adjust.
30249         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
30250         (vect_analyze_slp_cost_1): Likewise.
30251         (vect_analyze_slp_cost): Likewise.  Properly deal with
30252         widening reduction ops.  Commit body costs.
30253         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
30254         cost for loops from here.
30255         (vect_slp_analyze_operations): But do it from here when
30256         the vectorization factor is known and stmts are analyzed.
30257         (vect_bb_vectorization_profitable_p): Simplify.
30258         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
30259         (vect_update_slp_costs_according_to_vf): Remove.
30261 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
30262             H.J. Lu  <hongjiu.lu@intel.com>
30264         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
30265         (BUILD_CFLAGS): Likewise.
30266         (BUILD_CXXFLAGS): Likewise.
30267         (LINKER): Add @NO_PIE_FLAG@.
30268         (BUILD_LDFLAGS): Likewise.
30269         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
30270         --enable-default-pie.
30271         * common.opt (fPIE): Initialize to -1.
30272         (fpie): Likewise.
30273         (no-pie): New option.
30274         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
30275         * configure.ac: Add --enable-default-pie.
30276         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
30277         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
30278         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
30279         * gcc.c (NO_PIE_SPEC): New.
30280         (PIE_SPEC): Likewise.
30281         (NO_FPIE1_SPEC): Likewise.
30282         (FPIE1_SPEC): Likewise.
30283         (NO_FPIE2_SPEC): Likewise.
30284         (FPIE2_SPEC): Likewise.
30285         (NO_FPIE2_SPEC): Likewise.
30286         (FPIE_SPEC): Likewise.
30287         (NO_FPIE_SPEC): Likewise.
30288         (NO_FPIC1_SPEC): Likewise.
30289         (FPIC1_SPEC): Likewise.
30290         (NO_FPIC2_SPEC): Likewise.
30291         (FPIC2_SPEC): Likewise.
30292         (NO_FPIC2_SPEC): Likewise.
30293         (FPIC_SPEC): Likewise.
30294         (NO_FPIC_SPEC): Likewise.
30295         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
30296         (FPIE1_OR_FPIC1_SPEC): Likewise.
30297         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
30298         (FPIE2_OR_FPIC2_SPEC): Likewise.
30299         (NO_FPIE_AND_FPIC_SPEC): Likewise.
30300         (FPIE_OR_FPIC_SPEC): Likewise.
30301         (LD_PIE_SPEC): Likewise.
30302         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
30303         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
30304         * config/darwin.h (PIE_SPEC): Renamed to ...
30305         (DARWIN_PIE_SPEC): This.
30306         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
30307         * config/darwin9.h (PIE_SPEC): Renamed to ...
30308         (DARWIN_PIE_SPEC): This.
30309         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
30310         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
30311         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
30312         FPIE2_OR_FPIC2_SPEC.
30313         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
30314         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
30315         * config/sol2.h (ASM_PIC_SPEC): Likewise.
30316         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
30317         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
30318         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
30319         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
30320         * config/m32r/m32r.h (ASM_SPEC): Likewise.
30321         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
30322         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
30323         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
30324         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
30325         * config/sparc/linux.h (ASM_SPEC): Likewise.
30326         * config/sparc/linux64.h (ASM_SPEC): Likewise.
30327         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
30328         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
30329         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
30330         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
30331         * config/sparc/sparc.h (ASM_SPEC): Likewise.
30332         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
30333         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
30334         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
30335         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
30336         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
30337         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
30338         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
30339         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
30340         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
30341         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
30342         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
30343         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
30344         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
30345         * config/vax/linux.h (ASM_SPEC): Likewise.
30346         * doc/install.texi: Document --enable-default-pie.
30347         * doc/invoke.texi: Document -no-pie.
30348         * config.in: Regenerated.
30349         * configure: Likewise.
30351 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30353         PR rtl-optimization/66168
30354         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
30355         can_move_invariant_reg.
30357 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
30359         PR target/66148
30360         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
30361         REG_EQUAL note when doing insert.
30363         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
30364         instead of "%d" for 'o' operand.
30366 2015-05-27  Nathan Sidwell  <nathan@acm.org>
30368         PR c++/66270
30369         * tree.c (build_pointer_type_for_mode): Canonical type does not
30370         inherit can_alias_all.
30371         (build_reference_type_for_mode): Likewise.
30373 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
30375         * expr.h (array_at_struct_end_p): Move to...
30376         (array_ref_element_size): Likewise.
30377         (component_ref_field_offset): Likewise.
30378         * tree.h (array_ref_element_size): ...here.
30379         (array_at_struct_end_p): Likewise.
30380         (component_ref_field_offset): Likewise.
30381         * expr.c (array_ref_element_size): Move to...
30382         (array_ref_low_bound): Likewise.
30383         (array_at_struct_end_p): Likewise.
30384         (array_ref_up_bound): Likewise.
30385         (component_ref_field_offset): Likewise.
30386         * tree.c (array_ref_element_size): ...here.
30387         (array_ref_low_bound): Likewise.
30388         (array_ref_up_bound): Likewise.
30389         (array_at_struct_end_p): Likewise.
30390         (component_ref_field_offset): Likewise.
30392 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
30393             Szabolcs Nagy  <szabolcs.nagy@arm.com>
30395         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
30397 2015-05-27  Jason Merrill  <jason@redhat.com>
30399         PR bootstrap/66304
30400         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
30401         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
30402         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
30404 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
30406         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
30407         is true.
30409         * statistics.c (statistics_fini_pass): Print pass name.
30411 2015-05-27  Richard Biener  <rguenther@suse.de>
30413         PR tree-optimization/66272
30414         Revert parts of
30415         2014-08-15  Richard Biener  <rguenther@suse.de>
30417         PR tree-optimization/62031
30418         * tree-data-ref.c (dr_analyze_indices): Do not set
30419         DR_UNCONSTRAINED_BASE.
30420         (dr_may_alias_p): All indirect accesses have to go the
30421         formerly DR_UNCONSTRAINED_BASE path.
30422         * tree-data-ref.h (struct indices): Remove
30423         unconstrained_base member.
30424         (DR_UNCONSTRAINED_BASE): Remove.
30426 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
30428         * dwarf2out.c: Remove block_map.
30429         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
30430         (gen_lexical_block_die): Same.
30431         (dwarf2out_function_decl): Remove block_map use.
30432         (dwarf2out_c_finalize): Same.
30433         * tree-core.h (struct tree_block): Add die field.
30434         * tree.h (BLOCK_DIE): New.
30436 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30438         PR target/65358
30439         * expr.c (memory_load_overlap): New function.
30440         (emit_push_insn): When pushing partial args to the stack would
30441         clobber the register part load the overlapping part into a pseudo
30442         and put it into the hard reg after pushing.  Change return type
30443         to bool.  Add bool argument.
30444         * expr.h (emit_push_insn): Change return type to bool.
30445         Add bool argument.
30446         * calls.c (expand_call): Cancel sibcall optimization when encountering
30447         partial argument on targets with ARGS_GROW_DOWNWARD and
30448         !STACK_GROWS_DOWNWARD.
30449         (emit_library_call_value_1): Update callsite of emit_push_insn.
30450         (store_one_arg): Likewise.
30452 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
30454         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
30456 2015-05-27  Martin Liska  <mliska@suse.cz>
30458         * Makefile.in: Add additional dependencies related to memory report
30459         enhancement.
30460         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
30461         * bitmap.c (struct bitmap_descriptor_d): Remove.
30462         (struct loc): Likewise.
30463         (struct bitmap_desc_hasher): Likewise.
30464         (bitmap_desc_hasher::hash): Likewise.
30465         (bitmap_desc_hasher::equal): Likewise.
30466         (get_bitmap_descriptor): Likewise.
30467         (bitmap_register): User new memory descriptor API.
30468         (register_overhead): Likewise.
30469         (bitmap_find_bit): Register nsearches and search_iter statistics.
30470         (struct bitmap_output_info): Remove.
30471         (print_statistics): Likewise.
30472         (dump_bitmap_statistics): Use new memory descriptor.
30473         * bitmap.h (struct bitmap_usage): New class.
30474         * genmatch.c: Extend header file inclusion.
30475         * genpreds.c: Likewise.
30476         * ggc-common.c (struct ggc_usage): New class.
30477         (struct ggc_loc_desc_hasher): Remove.
30478         (ggc_loc_desc_hasher::hash): Likewise.
30479         (ggc_loc_desc_hasher::equal): Likewise.
30480         (struct ggc_ptr_hash_entry): Likewise.
30481         (struct ptr_hash_hasher): Likewise.
30482         (ptr_hash_hasher::hash): Likewise.
30483         (ptr_hash_hasher::equal): Likewise.
30484         (make_loc_descriptor): Likewise.
30485         (ggc_prune_ptr): Likewise.
30486         (dump_ggc_loc_statistics): Use new memory descriptor.
30487         (ggc_record_overhead): Likewise.
30488         (ggc_free_overhead): Likewise.
30489         (final_cmp_statistic): Remove.
30490         (cmp_statistic): Likewise.
30491         (ggc_add_statistics): Liekwise.
30492         (ggc_prune_overhead_list): Likewise.
30493         * hash-map-traits.h: New file.
30494         * hash-map.h (struct default_hashmap_traits): Move the traits to a
30495         separate header file.
30496         * hash-set.h: Pass memory statistics info to ctor.
30497         * hash-table.c (void dump_hash_table_loc_statistics): New function.
30498         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
30499         (hash_table::~hash_table): Register memory release operation.
30500         (hash_table::alloc_entries): Handle memory allocation operation.
30501         (hash_table::expand): Likewise.
30502         * inchash.c (iterative_hash_hashval_t): Move implementation to header
30503         file.
30504         (iterative_hash_host_wide_int): Likewise.
30505         * inchash.h (class hash): Likewise.
30506         * mem-stats-traits.h: New file.
30507         * mem-stats.h: New file.
30508         (mem_location): Add new class.
30509         (mem_usage): Likewise.
30510         (mem_alloc_description): Likewise.
30511         * sese.c: Add new header file inclusision.
30512         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
30513         and hash_set.
30514         * tree-sra.c: Add new header file inclusision.
30515         * vec.c (struct vec_descriptor): Remove.
30516         (hash_descriptor): Likewise.
30517         (struct vec_usage): Likewise.
30518         (struct ptr_hash_entry): Likewise.
30519         (hash_ptr): Likewise.
30520         (eq_ptr): Likewise.
30521         (vec_prefix::register_overhead): Use new memory descriptor API.
30522         (vec_prefix::release_overhead): Likewise.
30523         (add_statistics): Remove.
30524         (dump_vec_loc_statistics): Use new memory descriptor API.
30525         * vec.h (struct vec_prefix): Likewise.
30526         (va_heap::reserve): Likewise.
30527         (va_heap::release): Likewise.
30528         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
30530 2015-05-27  Richard Biener  <rguenther@suse.de>
30532         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
30533         earlier and remove ??? comment.
30534         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
30535         and got called from loop analysis bail out.  Always pass the SLP
30536         node to the vectorizable_* functions.
30537         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
30538         the premature SLP check here.
30539         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
30540         detected SLP stmts.
30541         (vect_detect_hybrid_slp_1): Likewise.
30543 2015-05-26  Jeff Law  <law@redhat.com>
30545         * combine.c (find_split_point): Verify that the shift count is a
30546         constant when choosing (plus (ashift ...)) as a split point.
30548         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
30549         No functional changes.
30551 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
30553         * ipa-polymorphic-call.c
30554         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
30555         case when call target is already known.
30557 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
30559         PR target/65979
30560         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
30561         take into account the case that operands[1] and operands[2]
30562         are the same register.
30564 2015-05-26  Michael Matz  <matz@suse.de>
30566         PR middle-end/66251
30568         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
30569         stores.
30570         (vect_create_vectorized_demotion_stmts): Always set
30571         STMT_VINFO_VEC_STMT, also with SLP.
30572         (vectorizable_store): Handle strided group stores.
30574 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
30576         PR target/66049
30577         * config/aarch64/aarch64.md
30578         (*adds_shift_imm_<mode>):  New pattern.
30579         (*subs_shift_imm_<mode>):  Likewise.
30580         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
30581         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
30582         (*add_uxt<mode>_shift2): Likewise.
30583         (*add_uxtsi_shift2_uxtw): Likewise.
30584         (*sub_uxt<mode>_shift2): Likewise.
30585         (*sub_uxtsi_shift2_uxtw): Likewise.
30587 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
30589         * config/rs6000/constraints.md (Y, U): Use match_test.
30591 2015-05-26  Christian Bruel  <christian.bruel@st.com>
30593         PR target/52144
30594         * config/arm/arm.c (arm_option_check_internal)
30595         (arm_option_params_internal): Check opts->target_flags to set macros.
30596         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
30597         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
30598         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
30599         (builtin_define): Replaced with def_or_undef_macro.
30600         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
30601         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
30602         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
30603         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
30604         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
30605         (TARGET_ARM_FEATURE_LDREX_P)
30606         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
30607         * config/arm/arm-c.c (def_or_undef_macro): New function.
30608         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
30610 2015-05-26  Christian Bruel  <christian.bruel@st.com>
30612         * c-common.h (builtin_define_with_int_value)
30613         (builtin_define_type_sizeof): Declare.
30614         * c-cppbuiltin.c (builtin_define_with_int_value)
30615         (builtin_define_type_sizeof): Externalize.
30616         (builtin_define_std): Cleanup declaration.
30617         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
30618         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
30619         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
30620         (builtin_define, builtin_assert): New macros.
30622 2015-05-26  Richard Biener  <rguenther@suse.de>
30624         PR tree-optimization/66142
30625         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
30626         MEM_REFs for the same base address.
30628 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30630         PR ipa/66181
30631         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
30633 2015-05-26  Jason Merrill  <jason@redhat.com>
30635         * configure.ac: Set CXXFLAGS for ISL test.
30636         * configure: Regenerate.
30638         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
30639         strstr and basename.
30640         * configure: Regenerate.
30642 2015-05-26  Richard Biener  <rguenther@suse.de>
30644         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
30645         X % C -> X & (C - 1) for C being a power-of two to ...
30646         * match.pd: ... patterns.
30648 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
30650         * match.pd (swapped_tcc_comparison): New operator list.
30651         (-A CMP -B): New simplification.
30652         * fold-const.c (fold_comparison): Remove corresponding code.
30654 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
30656         * caller-save.c (init_caller_save): Base temporary register numbers
30657         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
30658         * cfgloopanal.c (init_set_costs): Likewise.
30659         * dojump.c (prefer_and_bit_test): Likewise.
30660         * expr.c (init_expr_target): Likewise.
30661         * ira.c (setup_prohibited_mode_move_regs): Likewise.
30662         * lower-subreg.c (init_lower_subreg): Likewise.
30663         * postreload.c (reload_cse_regs_1): Likewise.
30665 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
30667         * gensupport.h (compute_test_codes): Declare.
30668         * gensupport.c (compute_predicate_codes): Rename to...
30669         (compute_test_codes): ...this.  Generalize error message.
30670         (process_define_predicate): Update accordingly.
30671         * genpreds.c (compute_maybe_allows): Delete.
30672         (add_constraint): Use compute_test_codes to determine whether
30673         something can accept a SUBREG, REG or MEM.
30675 2015-05-26  Torvald Riegel  <triegel@redhat.com>
30677         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
30678         'memory model' to align with C++11; fix description of memory orders;
30679         fix a few typos.
30681 2015-05-26  Richard Biener  <rguenther@suse.de>
30683         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
30684         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
30685         detect whether we apply SLP.  Remove call to
30686         vect_update_slp_costs_according_to_vf.
30687         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
30688         vect_update_slp_costs_according_to_vf from here.  Dispatch
30689         to vect_slp_analyze_operations to analyze SLP stmts.
30690         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
30691         unused bb_vec_info parameter, adjust assert.
30692         (vect_slp_analyze_operations): Pass in the slp instance tree
30693         instead of bb_vec_info.
30694         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
30695         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
30697 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
30699         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
30700         Q_REGS.  Expand comment.
30701         (REG_CLASS_NAMES): Ditto.
30702         (REG_CLASS_CONTENTS): Ditto.
30704 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
30706         PR target/66274
30707         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
30708         when LEGACY_INT_REGNO_P is processed.
30710 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
30712         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
30714 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
30716         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
30717         register if not marked dead/unused, before return.
30719 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
30721         PR lto/66180
30722         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
30723         is set; check for assembler name at LTO time.
30724         (type_in_anonymous_namespace): Remove hacks, check that all
30725         anonymous types are called "<anon>"
30726         (odr_type_p): Simplify; add check for "<anon>"
30727         (odr_subtypes_equivalent): Add odr_type_p check.
30728         * tree.c (need_assembler_name_p): Even anonymous namespace needs
30729         assembler name.
30731 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
30733         * ipa-utils.h (method_class_type): Remove.
30734         * cgraphunit.c (walk_polymorphic_call_targets): Use
30735         TYPE_METHOD_BASETYPE.
30736         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
30737         on main variants only.
30738         (method_class_type): Remove.
30739         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
30740         (build_type_inheritance_graph): Likewise.
30741         * ipa-icf.c (sem_function::equals_wpa): Likewise.
30742         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
30743         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
30745 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
30747         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
30748         is_typedef_decl, typedef_variant_p): Constify.
30749         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
30750         is_typedef_decl, typedef_variant_p): Constify.
30752 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30754         * defaults.h (gen_tablejump): New function.
30755         (HAVE_tablejump): Add default value.
30756         * expr.c: Adjust.
30757         * stmt.c: Likewise.
30759 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30761         * defaults.h (gen_store_multiple): New function.
30762         (HAVE_store_multiple): Add default value.
30763         * expr.c (move_block_from_reg): Adjust.
30765 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30767         * defaults.h (gen_load_multiple): New function.
30768         (HAVE_load_multiple): Add default value.
30769         * expr.c (move_block_to_reg): Adjust.
30771 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30773         * defaults.h (gen_mem_signal_fence): New function.
30774         (HAVE_mem_signal_fence): Add default value.
30775         * optabs.c: Adjust.
30777 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30779         * defaults.h (gen_memory_barrier): New function.
30780         (HAVE_memory_barrier): Add default value.
30781         * optabs.c: Adjust.
30783 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30785         * defaults.h (gen_mem_thread_fence): New function.
30786         (HAVE_mem_thread_fence): Add default definition.
30787         * optabs.c: Adjust.
30789 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30791         * combine.c (find_split_point): Check the value of HAVE_lo_sum
30792         instead of if it is defined.
30793         (combine_simplify_rtx): Likewise.
30794         * lra-constraints.c (process_address_1): Likewise.
30795         * config/darwin.c: Adjust.
30796         * genconfig.c (main): Always define HAVE_lo_sum.
30798 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30800         * genmatch.c (parser::parse_operation): Reject expanding
30801         operator-list inside 'for'.
30803 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30805         * genmatch.c (parser::parse_for): Reject iterator if used as
30806         operator-list.
30808 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30810         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
30811         after end of id-list.
30813 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
30815         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
30816         we do not try to compute canonical type for type that does not need
30817         alias set.
30818         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
30819         FUNCITON_TYPE.
30820         * tree.h (type_with_alias_set_p): New.
30822 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
30824         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
30825         function attributes.
30826         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
30828 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
30830         * Makefile.in (check_gcc_parallelize): Delete.
30831         (lang_checks_parallelized): Update comment.
30833 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
30835         PR rtl-optimization/66237
30836         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
30837         location of an "as_a" cast.
30839 2015-05-22  Jeff Law  <law@redhat.com>
30841         * config/pa/pa.md (non-canonical shift-add insns): Remove.
30842         (peepholes with non-canonical RTL sources): Remove.
30843         (peepholes for indexed stores of FP regs in integer modes): Match and
30844         generate canonical RTL.
30846 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
30848         PR tree-optimization/63387
30849         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
30850         ((x ord x) & (y ord y) -> (x ord y),
30851         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
30852         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
30853         vectors like scalars.
30855 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
30857         * convert.c (convert_to_integer, convert_to_vector): Include the
30858         types in the error message.
30860 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
30862         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
30863         simplifications.
30865 2015-05-22  Jeff Law  <law@redhat.com>
30867         * config/pa/pa.md (integer_indexed_store splitters): Use
30868         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
30869         insns -- adjusting the constant 2nd operand accordingly.
30871         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
30872         (plus (ashift X log2) Y) if it is a split point.
30874         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
30875         out of hppa_legitimize_address to handle both forms of a multiply
30876         by 2, 4 or 8.
30877         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
30878         Always generate the ASHIFT variant as the result is not directly
30879         used in a MEM.  Update comments and refactor slightly to improve
30880         readability.
30882 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30884         PR target/65491
30885         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
30886         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
30887         (aarch64_composite_type_p): Return false if given type and mode are
30888         for a short vector.
30890 2015-05-22  Richard Biener  <rguenther@suse.de>
30892         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
30893         member.
30894         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
30895         patterns when determining whether SLP is pure.
30896         (vect_is_slp_reduction): Remove check for pattern stmts.
30897         (vect_is_simple_reduction_1): Remove dead code.
30898         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
30899         (vect_get_and_check_slp_defs): Pass in the stmt number.
30900         Allow the first def in a reduction to be not a pattern stmt when
30901         the rest of the stmts def are patterns.
30902         (vect_build_slp_tree_1): Allow tcc_expression codes like
30903         SAD_EXPR and DOT_PROD_EXPR.
30904         (vect_build_slp_tree): Adjust.
30905         (vect_analyze_slp): Refactor and move BB vect error message ...
30906         (vect_slp_analyze_bb_1): ... here.
30908 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
30910         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
30911         for CSWTCH temporary.
30913 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30915         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
30916         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
30917         unknown unspecs.
30919 2015-05-22  Richard Biener  <rguenther@suse.de>
30921         PR tree-optimization/66251
30922         * tree-vect-stmts.c (vectorizable_conversion): Properly
30923         set STMT_VINFO_VEC_STMT even for the SLP case.
30925 2015-05-22  Marek Polacek  <polacek@redhat.com>
30927         * doc/extend.texi: Use @pxref instead of @xref.
30929 2015-05-22  hiraditya  <hiraditya@msn.com>
30931         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
30932         redundant if.
30934 2015-05-22  Richard Biener  <rguenther@suse.de>
30936         PR tree-optimization/65701
30937         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30938         Move peeling cost models into one place.  Peel for alignment
30939         for single loads only if an aligned load is cheaper than
30940         an unaligned load.
30942 2015-05-22  Marek Polacek  <polacek@redhat.com>
30944         PR c/47043
30945         * doc/extend.texi (Enumerator Attributes): New section.
30946         Document syntax of enumerator attributes.
30948 2015-05-22  Richard Biener  <rguenther@suse.de>
30950         * tree-vect-loop.c (get_reduction_op): New function.
30951         (vect_model_reduction_cost): Use it, add reduc_index parameter.
30952         Make ready for BB reductions.
30953         (vect_create_epilog_for_reduction): Use get_reduction_op.
30954         (vectorizable_reduction): Init reduc_index to a valid value.
30955         Adjust vect_model_reduction_cost call.
30956         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
30957         operand for reduction defaults.  Add SAD_EXPR support.
30958         Assert we have a neutral op for SLP reductions.
30959         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
30960         walking pattern stmt ops only recurse to SSA names.
30962 2015-05-22  Richard Biener  <rguenther@suse.de>
30964         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
30965         assert with guard, remove check on detected reduction.
30966         (vect_recog_sad_pattern): Likewise.
30967         (vect_recog_widen_sum_pattern): Likewise.
30969 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30971         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
30972         __always_inline__ attribute.
30973         (vaesdq_u8): Likewise.
30974         (vaesmcq_u8): Likewise.
30975         (vaesimcq_u8): Likewise.
30976         (vsha1cq_u32): Likewise.
30977         (vsha1mq_u32): Likewise.
30978         (vsha1pq_u32): Likewise.
30979         (vsha1h_u32): Likewise.
30980         (vsha1su0q_u32): Likewise.
30981         (vsha1su1q_u32): Likewise.
30982         (vsha256hq_u32): Likewise.
30983         (vsha256h2q_u32): Likewise.
30984         (vsha256su0q_u32): Likewise.
30985         (vsha256su1q_u32): Likewise.
30986         (vmull_p64): Likewise.
30987         (vmull_high_p64): Likewise.
30989 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30991         * final.c (final_scan_insn): Don't check HAVE_peephole with the
30992         preprocessor.
30993         * output.h: Likewise.
30994         * genconfig.c (main): Alwways define HAVE_peephole.
30995         * genpeep.c: Don't emit checks of HAVE_peephole.
30997 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30999         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
31000         check HAVE_conditional_move with the preprocessor.
31002 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31004         * genconfig.c (main): Always define HAVE_conditional_move.
31005         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
31006         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
31007         is defined.
31009 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31011         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
31012         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
31013         and FRAME_POINTER_REGNUM with the preprocessor.
31015 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31017         * defaults.h: Add default for STACK_PUSH_CODE.
31018         * expr.c: Don't redefine STACK_PUSH_CODE.
31019         * recog.c: Likewise.
31021 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31023         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
31024         sched-deps.c: Use if instead of preprocessor checks with
31025         STACK_GROWS_DOWNWARD.
31027 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31029         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
31030         is defined.
31031         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
31032         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
31033         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
31034         * doc/tm.texi: Regenerate.
31036 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
31038         PR target/66232
31039         * config/i386/constraints.md (Bg): New constraint for GOT memory
31040         operand.
31041         * config/i386/i386.md (*call_got_x32): New pattern.
31042         (*call_value_got_x32): Likewise.
31043         * config/i386/predicates.md (GOT_memory_operand): New predicate.
31045 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
31047         PR tree-optimization/66233
31048         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
31049         Simplify.
31051 2015-05-21  Jeff Law  <law@redhat.com>
31053         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
31054         than MULT for shadd sequences.
31056 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
31058         * alias.c (alias_stats): New static var.
31059         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
31060         (dump_alias_stats_in_alias_c): New function.
31061         * alias.h (dump_alias_stats_in_alias_c): Declare.
31062         * tree-ssa-alias.c (dump_alias_stats): Call it.
31064 2015-05-08  Michael Matz  <matz@suse.de>
31066         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
31067         to strided_p.
31068         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
31069         (STMT_VINFO_STRIDED_P): ... this.
31070         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
31071         (vect_verify_datarefs_alignment): Likewise.
31072         (vect_enhance_data_refs_alignment): Likewise.
31073         (vect_analyze_data_ref_access): Likewise.
31074         (vect_analyze_data_refs): Accept strided stores.
31075         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
31076         (vect_model_load_cost): Adjust for macro rename.
31077         (vectorizable_mask_load_store): Likewise.
31078         (vectorizable_load): Likewise.
31079         (vectorizable_store): Open code strided stores.
31081 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31083         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
31084         Document sqrt_insn.
31086 2015-05-21  Richard Biener  <rguenther@suse.de>
31088         PR c++/66211
31089         * match.pd: Guard pattern optimzing (int)(float)int
31090         conversions to apply only on GIMPLE.
31092 2015-05-21  Jeff Law  <law@redhat.com>
31094         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
31095         multiply-accumulate/shift-add insn generation.
31097 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
31099         PR target/54236
31100         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
31101         operands[1] are the same.
31103 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
31105         PR middle-end/66221
31106         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
31107         build_distinct_type_copy to copy bounds.
31109 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
31111         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
31112         Change to unsigned int.
31114 2015-05-20  Jeff Law  <law@redhat.com>
31116         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
31117         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
31118         (pa_shadd_constant_p): Allow constants for shadd insns rather
31119         than valid scaling constants for memory addresses.
31120         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
31121         * config/pa/predicates.md (mem_shadd_operand): New predicate.
31122         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
31123         (shift-add insns using ASHIFT): New patterns.
31125 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
31127         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
31128         feasible.
31129         (fix_up_fall_thru_edges): Likewise.
31130         (fix_crossing_conditional_branches): Likewise. Promote jump targets
31131         from to rtx_insn to rtx_code_label where feasible.
31132         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
31133         gen_move_insn (returned type changed to rtx_insn).
31134         * builtins.c (expand_errno_check): Fix arguments of
31135         do_compare_rtx_and_jump (now expects rtx_code_label).
31136         (expand_builtin_acc_on_device): Likewise.
31137         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
31138         invert_jump (now exprects rtx_jump_insn).
31139         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
31140         (construct_init_block): Use rtx_code_label.
31141         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
31142         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
31143         calling redirect_jump.
31144         (patch_jump_insn): Likewise.
31145         (redirect_branch_edge): Likewise.
31146         (force_nonfallthru_and_redirect): Likewise.
31147         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
31148         when suitable.
31149         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
31150         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
31151         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
31152         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
31153         to store the value retured by gen_label_rtx.
31154         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
31155         rtx_jump_insn.
31156         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
31157         (split_branches): Fix calls of redirect_jump.
31158         * dojump.c (jumpifnot): Promote argument type from rtx to
31159         rtx_code_label.
31160         (jumpifnot_1): Likewise.
31161         (jumpif): Likewise.
31162         (jumpif_1): Likewise.
31163         (do_jump_1): Likewise.
31164         (do_jump): Likewise. Use rtx_code_label when feasible.
31165         (do_jump_by_parts_greater_rtx): Likewise.
31166         (do_jump_by_parts_zero_rtx): Likewise.
31167         (do_jump_by_parts_equality_rtx): Likewise.
31168         (do_compare_rtx_and_jump): Likewise.
31169         * dojump.h: Update function prototypes.
31170         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
31171         returns rtx_insn).
31172         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
31173         rtx_jump_insn.
31174         (emit_label_before): Likewise.
31175         (emit_jump_insn_after_noloc): Likewise.
31176         (emit_jump_insn_after_setloc): Likewise.
31177         (emit_jump_insn_after): Likewise
31178         (emit_jump_insn_before_setloc): Likewise.
31179         (emit_jump_insn_before): Likewise.
31180         (emit_label_before): Promote return type to rtx_code_label.
31181         (emit_label): Likewise.
31182         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
31183         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
31184         gen_move_insn.
31185         (emit_stack_restore): Likewise.
31186         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
31187         (do_cmp_and_jump): Likewise.
31188         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
31189         from rtx to rtx_code_label.
31190         (gen_move_insn_uncast): New function.
31191         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
31192         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
31193         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
31194         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
31195         invert_jump_1 and redirect_jump_1.
31196         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
31197         do_compare_rtx_and_jump.
31198         (expand_addsub_overflow): Likewise.
31199         (expand_neg_overflow): Likewise.
31200         (expand_mul_overflow): Likewise.
31201         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
31202         return value of gen_move_insn.
31203         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
31204         * loop-doloop.c (add_test): Use rtx_code_label.
31205         (doloop_modify): Likewise.
31206         (doloop_optimize): Likewise.
31207         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
31208         * lra-constraints.c (emit_spill_move): Remove cast of value returned
31209         by gen_move_insn.
31210         (inherit_reload_reg): Add cast when calling dump_insn_slim.
31211         (split_reg): Likewise.
31212         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
31213         gen_move_insn.
31214         * optabs.c (expand_binop_directly): Remove casts of values returned by
31215         maybe_gen_insn.
31216         (expand_unop_direct): Likewise.
31217         (expand_abs): Likewise.
31218         (maybe_emit_unop_insn): Likewise.
31219         (maybe_gen_insn): Promote return type to rtx_insn.
31220         * optabs.h: Update prototype of maybe_gen_insn.
31221         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
31222         redundant cast.
31223         * recog.c (struct peep2_insn_data): Promote type of insn field to
31224         rtx_insn.
31225         (peep2_reinit_state): Use NULL instead of NULL_RTX.
31226         (peep2_attempt): Remove casts of insn in peep2_insn_data.
31227         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
31228         * recog.h (struct insn_gen_fn): Promote return types of function
31229         pointers and operator ().from rtx to rtx_insn.
31230         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
31231         (fill_eager_delay_slots): Likewise.
31232         (relax_delay_slots): Likewise.
31233         (make_return_insns): Likewise.
31234         (dbr_schedule): Likewise.
31235         (optimize_skips): Likewise.
31236         (reorg_redirect_jump): Likewise.
31237         (fill_slots_from_thread): Likewise.
31238         * reorg.h: Update prototypes.
31239         * resource.c (find_dead_or_set_registers): Use dyn_cast to
31240         rtx_jump_insn instead of check.  Use it's jump_target method.
31241         * rtl.h (rtx_jump_insn::jump_label): Define new method.
31242         (rtx_jump_insn::jump_target): Define new method.
31243         (rtx_jump_insn::set_jump_target): Define new method.
31244         * rtlanal.c (tablejump_p): Promote type of one local variable.
31245         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
31246         (sched_analyze_insn): Likewise.
31247         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
31248         (print_insn): Likewise.
31249         * stmt.c (label_rtx): Promote return type to rtx_insn.
31250         (force_label_rtx): Likewise.
31251         (jump_target_rtx): Define new function.
31252         (expand_label): Use it, get rid of one cast.
31253         (expand_naked_return): Promote rtx to rtx_code_label.
31254         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
31255         (expand_case): Use rtx_code_label instread of rtx where feasible.
31256         (expand_sjlj_dispatch_table): Likewise.
31257         (emit_case_nodes): Likewise.
31258         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
31259         * store-motion.c (insert_store): Make use of new return type of
31260         gen_move_insn and remove a cast.
31261         (replace_store_insn): Likewise.
31263 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
31265         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
31266         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
31268 2015-05-20  Jeff Law  <law@redhat.com>
31270         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
31271         dispose of the jump thread path when the jump threading
31272         opportunity is cancelled.
31274 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31276         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
31277         when printing the caret character.
31279 2015-05-20  Marek Polacek  <polacek@redhat.com>
31281         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
31283 2015-05-20  Marek Polacek  <polacek@redhat.com>
31285         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
31286         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
31287         * gimple-fold.c (canonicalize_bool): Likewise.
31288         (same_bool_result_p): Likewise.
31289         * tree-if-conv.c (parse_predicate): Likewise.
31291 2015-05-20  Marek Polacek  <polacek@redhat.com>
31293         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
31294         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
31296 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31298         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
31299         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
31300         values.
31302 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
31304         * config/mips/mips.h (micromips_globals): Declare.
31306 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
31308         * timevar.def (TV_INITIALIZE_RTL): New.
31309         * toplev.c (initialize_rtl): Use an auto_timevar to account this
31310         function's time to TV_INITIALIZE_RTL.
31312 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
31314         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
31315         gimple_build_nop calls.
31316         (chkp_find_bounds_for_elem): Likewise.
31317         (chkp_get_zero_bounds): Likewise.
31318         (chkp_get_none_bounds): Likewise.
31319         (chkp_get_bounds_by_definition): Likewise.
31320         (chkp_generate_extern_var_bounds): Likewise.
31321         (chkp_get_bounds_for_decl_addr): Likewise.
31322         (chkp_get_bounds_for_string_cst): Likewise.
31324 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
31326         PR tree-optimization/65447
31327         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
31328         (dump_use, dump_uses): Support to dump sub use.
31329         (record_use): New parameters to support sub use.  Remove call to
31330         dump_use.
31331         (record_sub_use, record_group_use): New functions.
31332         (compute_max_addr_offset, split_all_small_groups): New functions.
31333         (group_address_uses, rewrite_use_address): New functions.
31334         (strip_offset): New declaration.
31335         (find_interesting_uses_address): Call record_group_use.
31336         (add_candidate): New assertion.
31337         (infinite_cost_p): Move definition forward.
31338         (add_costs): Check INFTY cost and return immediately.
31339         (get_computation_cost_at): Clear setup cost and dependent bitmap
31340         for sub uses.
31341         (determine_use_iv_cost_address): Compute cost for sub uses.
31342         (rewrite_use_address_1): Rename from old rewrite_use_address.
31343         (free_loop_data): Free sub uses.
31344         (tree_ssa_iv_optimize_loop): Call group_address_uses.
31346 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
31347             Jim Wilson  <jim.wilson@linaro.org>
31349         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
31350         new  fields loadv and storev.
31351         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
31352         Initialize loadv and storev.
31353         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
31354         (cortexa53_extra_costs): Likewise.
31355         (cortexa57_extra_costs): Likewise.
31356         (xgene1_extra_costs): Likewise.
31357         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
31358         rtx_costs.
31360 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
31362         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
31363          storev.
31364         (cortexa8_extra_costs): Likewise.
31365         (cortexa5_extra_costs): Likewise.
31366         (cortexa7_extra_costs): Likewise.
31367         (cortexa12_extra_costs): Likewise.
31368         (cortexa15_extra_costs): Likewise.
31369         (v7m_extra_costs): Likewise.
31371 2015-05-20  Jeff Law  <law@redhat.com>
31373         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
31374         instead of open-coded version.  Also delete the jump thread created
31375         within this function.
31377 2015-05-20  Alan Modra  <amodra@gmail.com>
31379         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
31380         stack adjusting insn.  Formatting.
31381         (rs6000_emit_prologue): Track stack adjusting insn, and use of
31382         r12.  If possible, emit first -fsplit-stack arg pointer insn
31383         before stack adjust.  Don't use r12 to save cr if split-stack.
31385 2015-05-20  Alan Modra  <amodra@gmail.com>
31387         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
31388         Define.
31389         (rs6000_supports_split_stack): New function.
31390         * config/rs6000/rs6000.c (machine_function): Add
31391         split_stack_arg_pointer.
31392         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
31393         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
31394         rather than virtual_incoming_args_rtx.
31395         (rs6000_va_start): Likewise.
31396         (split_stack_arg_pointer_used_p): New function.
31397         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
31398         (morestack_ref): New var.
31399         (gen_add3_const, rs6000_expand_split_stack_prologue,
31400         rs6000_internal_arg_pointer, rs6000_live_on_entry,
31401         rs6000_split_stack_space_check): New functions.
31402         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
31403         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
31404         (UNSPECV_SPLIT_STACK_RETURN): Define.
31405         (split_stack_prologue, load_split_stack_limit,
31406         load_split_stack_limit_di, load_split_stack_limit_si,
31407         split_stack_return, split_stack_space_check): New expands and insns.
31408         * config/rs6000/rs6000-protos.h
31409         (rs6000_expand_split_stack_prologue): Declare.
31410         (rs6000_split_stack_space_check): Declare.
31412 2015-05-20  Alan Modra  <amodra@gmail.com>
31414         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
31415         (direct_return): Test vrsave_size rather than vrsave_mask.
31416         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
31417         (rs6000_emit_epilogue): Likewise.
31419 2015-05-20  Alan Modra  <amodra@gmail.com>
31421         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
31422         when not saving registers.
31423         (debug_stack_info): Adjust to omit printing unused offsets,
31424         as before.
31425         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
31426         expression.
31428 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31430         PR c++/65835
31431         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
31432         value_type to const char *.
31434 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
31436         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
31437         to build a biarch toolchain again.
31439 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
31441         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
31442         or implicit declarations.
31443         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
31444         into it.
31445         (get_odr_type): Check type has linkage before adding bases.
31446         (register_odr_type): Check that type has linkage before adding it.
31447         (type_known_to_have_no_deriavations_p): Rename to ..
31448         (type_known_to_have_no_derivations_p): This one.
31449         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
31450         (type_known_to_have_no_derivations_p): This one.
31451         * ipa-polymorphic-call.c
31452         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
31453         type has linkage.
31455 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
31457         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
31458         (layout_type): Use RECORD_OR_UNION_TYPE_P.
31460 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31462         * config/s390/s390.c (s390_vector_bool_type_p): New function.
31463         (s390_invalid_binary_op): New function.
31464         (TARGET_INVALID_BINARY_OP): Define macro.
31466 2015-05-19  David Sherwood  <david.sherwood@arm.com>
31468         * loop-invariant.c (create_new_invariant): Don't calculate address cost
31469         if mode is not a scalar integer.
31470         (get_inv_cost): Increase computational cost for unused invariants.
31472 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31474         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
31475         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
31476         * config/s390/s390-builtin-types.def: New file.
31477         * config/s390/s390-builtins.def: New file.
31478         * config/s390/s390-builtins.h: New file.
31479         * config/s390/s390-c.c: New file.
31480         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
31481         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
31482         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
31483         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
31484         prototypes.
31485         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
31486         Include.
31487         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
31488         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
31489         variable definitions.
31490         (s390_const_operand_ok): New function.
31491         (s390_expand_builtin): Rewrite.
31492         (s390_init_builtins): New function.
31493         (s390_handle_vectorbool_attribute): New function.
31494         (s390_attribute_table): Add s390_vector_bool attribute.
31495         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
31496         (s390_branch_condition_mask): Generate masks for new modes.
31497         (s390_expand_vec_compare_cc): New function.
31498         (s390_mangle_type): Add mangling for vector bool types.
31499         (enum s390_builtin): Remove.
31500         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
31501         efpc builtins.
31502         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
31503         s390_cpu_cpp_builtins.
31504         (REGISTER_TARGET_PRAGMAS): New macro.
31505         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
31506         (insn_cmp mode attribute): Add new CC modes.
31507         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
31508         (lcbb): New pattern definition.
31509         * config/s390/s390intrin.h: Include vecintrin.h.
31510         * config/s390/t-s390: New file.
31511         * config/s390/vecintrin.h: New file.
31512         * config/s390/vector.md: Include vx-builtins.md.
31513         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
31514         support.
31516 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31518         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
31519         CCVFHE.
31520         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
31521         (s390_select_ccmode): Likewise.
31522         (s390_canonicalize_comparison): Swap operands if necessary.
31523         (s390_expand_vec_compare_scalar): Expand DFmode compare using
31524         single element vector instructions.
31525         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
31526         (s390_branch_condition_mask): Generate CC masks for the new modes.
31527         * config/s390/s390.md (v0, vf, vd): New mode attributes.
31528         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
31529         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
31530         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
31531         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
31532         (*extend<DSF:mode><BFP:mode>2): New insn definition.
31533         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
31534         (extend<DSF:mode><BFP:mode>2): Turn into expander.
31535         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
31536         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
31537         (sqrt<mode>2): Add vector instruction.
31539 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31541         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
31542         constraints.
31543         * config/s390/predicates.md (const0_operand, constm1_operand)
31544         (constable_operand): Accept vector operands.
31545         * config/s390/s390-modes.def: Add supported vector modes.
31546         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
31547         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
31548         (s390_bytemask_vector_p, s390_expand_vec_strlen)
31549         (s390_expand_vec_compare, s390_expand_vcond)
31550         (s390_expand_vec_init): Add prototypes.
31551         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
31552         (s390_vector_mode_supported_p): New function.
31553         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
31554         (s390_contiguous_bitmask_vector_p): New function.
31555         (s390_bytemask_vector_p): New function.
31556         (s390_split_ok_p): Vector regs don't work either.
31557         (regclass_map): Add VEC_REGS.
31558         (s390_legitimate_constant_p): Handle vector constants.
31559         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
31560         (legitimate_reload_vector_constant_p): New function.
31561         (s390_preferred_reload_class): Handle CONST_VECTOR.
31562         (s390_reload_symref_address):  Likewise.
31563         (s390_secondary_reload): Vector memory instructions only support
31564         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
31565         (s390_emit_ccraw_jump): New function.
31566         (s390_expand_vec_strlen): New function.
31567         (s390_expand_vec_compare): New function.
31568         (s390_expand_vcond): New function.
31569         (s390_expand_vec_init): New function.
31570         (s390_dwarf_frame_reg_mode): New function.
31571         (print_operand): Handle addresses with 'O' and 'R' constraints.
31572         (NR_C_MODES, constant_modes): Add vector modes.
31573         (s390_output_pool_entry): Handle vector constants.
31574         (s390_hard_regno_mode_ok): Handle vector registers.
31575         (s390_class_max_nregs): Likewise.
31576         (s390_cannot_change_mode_class): New function.
31577         (s390_invalid_arg_for_unprototyped_fn): New function.
31578         (s390_function_arg_vector): New function.
31579         (s390_function_arg_float): Remove size variable.
31580         (s390_pass_by_reference): Handle vector arguments.
31581         (s390_function_arg_advance): Likewise.
31582         (s390_function_arg): Likewise.
31583         (s390_return_in_memory): Vector values are returned in a VR if
31584         possible.
31585         (s390_function_and_libcall_value): Handle vector arguments.
31586         (s390_gimplify_va_arg): Likewise.
31587         (s390_call_saved_register_used): Consider the arguments named.
31588         (s390_conditional_register_usage): Disable v16-v31 for non-vec
31589         targets.
31590         (s390_preferred_simd_mode): New function.
31591         (s390_support_vector_misalignment): New function.
31592         (s390_vector_alignment): New function.
31593         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
31594         (TARGET_VECTOR_MODE_SUPPORTED_P)
31595         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
31596         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
31597         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
31598         (TARGET_VECTOR_ALIGNMENT): Define target macro.
31599         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
31600         (FIRST_PSEUDO_REGISTER): Increase value.
31601         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
31602         (VECTOR_REG_P): Define macros.
31603         (FIXED_REGISTERS, CALL_USED_REGISTERS)
31604         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
31605         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
31606         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
31607         Add vector registers.
31608         (CANNOT_CHANGE_MODE_CLASS): Call C function.
31609         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
31610         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
31611         memory.
31612         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
31613         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
31614         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
31615         (VR*_REGNUM): New constants.
31616         (ALL): New mode iterator.
31617         (INTALL): Remove mode iterator.
31618         Include vector.md.
31619         (movti): Implement TImode moves for VRs.
31620         Disable TImode splitter for VR targets.
31621         Implement splitting TImode GPR<->VR moves.
31622         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
31623         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
31624         reload<mode>_la_in, reload<mode>_la_out.
31625         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
31626         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
31627         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
31628         (mov<mode> SF SD): Prefer lder, lde for loading.
31629         Add lrl and strl instructions.
31630         Add vector instructions.
31631         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
31632         Call s390_expand_vec_strlen on z13.
31633         (*cc_to_int): Change predicate to nonimmediate_operand.
31634         (addti3): Rename to *addti3.  New expander.
31635         (subti3): Rename to *subti3.  New expander.
31636         * config/s390/vector.md: New file.
31638 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31640         * common/config/s390/s390-common.c (processor_flags_table): Add
31641         z13.
31642         * config.gcc: Add z13.
31643         * config/s390/s390-opts.h (enum processor_type): Add
31644         PROCESSOR_2964_Z13.
31645         * config/s390/s390.c (s390_adjust_priority): Check for
31646         PROCESSOR_2964_Z13.
31647         (s390_reorg): Likewise.
31648         (s390_sched_reorder): Likewise.
31649         (s390_sched_variable_issue): Likewise.
31650         (s390_loop_unroll_adjust): Likewise.
31651         (s390_option_override): Likewise. Default to -mvx when available.
31652         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
31653         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
31654         (TARGET_VX_ABI): Define macros.
31655         macros.
31656         (TARGET_DEFAULT): Add MASK_OPT_VX.
31657         * config/s390/s390.md ("cpu" attribute): Add z13.
31658         ("cpu_facility" attribute): Add vec.
31659         * config/s390/s390.opt (processor_type): Add z13.
31660         (mvx): New options.
31661         * doc/invoke.texi: Add z13 option for -march.
31663 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31665         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
31666         mode check to make sure that only scalar integer values are
31667         accepted.
31669 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
31671         * tree.c (verify_type_variant): Fix #undef.
31672         (gimple_canonical_types_compatible_p): Move here from lto.c
31673         (verify_type): Verify TYPE_CANONICAL compatibility.
31674         * tree.h (gimple_canonical_types_compatible_p): Declare.
31676 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
31678         PR middle-end/66199
31679         * tree.h (OMP_TEAMS_COMBINED): Define.
31680         * gimplify.c (enum gimplify_omp_var_data): Add
31681         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
31682         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
31683         (omp_notice_variable): Accept both ORT_TEAMS
31684         and ORT_COMBINED_TEAMS.  Don't recurse if
31685         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
31686         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
31687         GOVD_FIRSTPRIVATE.
31688         (omp_no_lastprivate): New function.
31689         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
31690         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
31691         notice_outer and set appropriate bits, otherwise make
31692         sure default(none) combined constructs won't complain.
31693         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
31694         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
31695         omp_no_lastprivate either remove the clause or turn it
31696         into OMP_CLAUSE_PRIVATE.
31697         (gimplify_omp_for): Fix up handling of implicit
31698         lastprivate or linear iterators.
31699         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
31700         ORT_COMBINED_TEAMS.
31701         * omp-low.c (lower_omp_for_lastprivate): For combined
31702         for simd use fd.loop.n2 from the for rather than simd.
31704 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31706         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
31707         instead of gen_rtx_raw_REG.
31708         (cris_expand_epilogue): Likewise.
31709         * config/microblaze/microblaze.c (microblaze_classify_address):
31710         Likewise.
31711         * config/sparc/sparc.md: Likewise.
31713 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
31715         * config/alpha/alpha.c (alpha_legitimize_reload_address)
31716         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
31717         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
31718         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
31719         Use CASE_CONST_SCALAR_INT.
31720         (print_operand) <case 'M'>: Use mode_width_operand to check the
31721         value of the constant.
31722         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
31723         * config/alpha/predicates.md (input_operand): Use general_operand
31724         instead of match_code as operand check.
31725         (symbolic_operand): Use match_code with subexpression digits.
31726         * config/alpha/constraints.md (Q): Ditto.
31728 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31730         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
31732 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31734         * config/s390/s390.c (s390_secondary_reload): Fix check for
31735         load/store relative.
31737 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31739         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
31740         alternative_mask to uint64_t.
31742 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
31744         PR tree-optimization/66187
31745         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
31746         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
31747         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
31749 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
31751         * diagnostic.c (diagnostic_report_current_module): Strengthen
31752         local "new_map" from const line_map * to
31753         const line_map_ordinary *.
31754         * genmatch.c (error_cb): Likewise for local "map".
31755         (output_line_directive): Likewise for local "map".
31756         * input.c (expand_location_1): Likewise for local "map".
31757         Pass NULL rather than &map to
31758         linemap_unwind_to_first_non_reserved_loc, since the value is never
31759         read from there, and the value written back not read from here.
31760         (is_location_from_builtin_token): Strengthen local "map" from
31761         const line_map * to const line_map_ordinary *.
31762         (dump_location_info): Strengthen locals "map" from
31763         line_map *, one to const line_map_ordinary *, the other
31764         to const line_map_macro *.
31765         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
31766         const line_map * to const line_map_macro *.
31767         (maybe_unwind_expanded_macro_loc): Add a call to
31768         linemap_check_macro when writing to the "map" field of the
31769         loc_map_pair.
31770         Introduce local const line_map_ordinary * "ord_map", using it in
31771         place of "map" in the part of the function where we know we have
31772         an ordinary map.  Strengthen local "m" from const line_map * to
31773         const line_map_ordinary *.
31775 2015-05-19  Nick Clifton  <nickc@redhat.com>
31777         PR target/66156
31778         * config/msp430/msp430.md (zero_extendhisi2): Add support for
31779         separate source and destination registers.
31781 2015-05-19  Richard Biener  <rguenther@suse.de>
31783         PR tree-optimization/66165
31784         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
31785         for no load permutation.
31787         PR tree-optimization/66185
31788         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
31789         when building the SLP node from scalars.
31791 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
31792             Tristan Gingold  <gingold@adacore.com>
31794         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
31795         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
31796         (expand_stack_restore): Call record_new_stack_level.
31797         (expand_stack_save): Do not call do_pending_stack_adjust.
31798         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
31799         * calls.c (expand_call): Call record_new_stack_level for alloca.
31800         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
31801         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
31802         (update_sjlj_context): New global function.
31803         * except.h (update_sjlj_context): Declare.
31804         * explow.c (record_new_stack_level): New global function.
31805         (allocate_dynamic_stack_space): Call record_new_stack_level.
31806         * explow.h (record_new_stack_level): Declare.
31807         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
31808         * cfgrtl.c (duplicate_insn_chain): Likewise.
31810 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31812         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
31813         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
31814         STACK_GROWS_DOWNWARD as normal if.
31815         (expand_call): Likewise.
31817 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
31819         PR target/54236
31820         * config/sh/sh.md (*round_int_even): New insn_and_split and
31821         accompanying new unnamed split.
31823 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31825         * bitmap.c (bitmap_set_range): Handle count==1 specially.
31826         (bitmap_clear_range): Likewise.
31827         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
31828         bitmap_set_range unconditionally.
31829         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
31830         * df-scan.c (df_mark_reg): Likewise.
31831         * haifa-sched.c (setup_ref_regs): Likewise.
31832         * sched-rgn.c (update_live_1): Likewise.
31834 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31836         * regs.h (END_HARD_REGNO): Delete.
31837         (END_REGNO): Move to...
31838         * rtl.h: ...here.
31839         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
31840         * caller-save.c (mark_set_regs): Likewise.
31841         * combine.c (move_deaths, distribute_notes): Likewise.
31842         * cse.c (invalidate, invalidate_for_call): Likewise.
31843         * df-scan.c (df_ref_record): Likewise.
31844         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
31845         (record_last_reg_set_info): Likewise.
31846         * reg-stack.c (convert_regs_exit): Likewise.
31847         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
31848         * resource.c (update_live_status): Likewise.
31849         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
31851 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31853         * rtl.h (reg_info): Add an nregs field.
31854         (REG_NREGS): Use it.
31855         (SET_REGNO_RAW): Delete.
31856         (set_regno_raw): New function.
31857         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
31858         (END_REGNO): Redefine in terms of REG_NREGS.
31859         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
31860         SET_REGNO_RAW.
31861         * emit-rtl.c (set_mode_and_regno): Likewise.
31862         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
31863         instead of SET_REGNO_RAW.
31865 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31867         * rtl.h (PUT_MODE_RAW): New macro.
31868         (PUT_REG_NOTE_KIND): Use it.
31869         (set_mode_and_regno): Declare.
31870         (gen_raw_REG): Change regno to "unsigned int".
31871         (gen_rtx_REG): Change "unsigned" to "unsigned int".
31872         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
31873         use set_mode_and_regno to change the mode of registers.
31874         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
31875         * emit-rtl.c (set_mode_and_regno): New function.
31876         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
31877         * caller-save.c (reg_save_code): Use set_mode_and_regno.
31878         * expr.c (init_expr_target): Likewise.
31879         * ira.c (setup_prohibited_mode_move_regs): Likewise.
31880         * postreload.c (reload_cse_simplify_operands): Likewise.
31882 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31884         * caller-save.c (init_caller_save): Use word_mode and
31885         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
31886         * expr.c (init_expr_target): Likewise.
31887         * ira.c (setup_prohibited_mode_move_regs): Likewise.
31888         * postreload.c (reload_cse_regs_1): Likewise.
31890 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31892         * rtl.def (REG): Change format to "r".
31893         * rtl.h (rtunion): Remove rt_reg.
31894         (reg_info): New structure.
31895         (rtx_def): Add reg field to main union.
31896         (X0REGATTR): Delete.
31897         (REG_CHECK): New macro.
31898         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
31899         * rtl.c (rtx_format): Document "r".
31900         (rtx_code_size): Handle REG specially.
31901         * gengenrtl.c (special_format): Return true for formats
31902         that include 'r'.
31903         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
31904         Deal with REG_ATTRS after the field loop.
31905         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
31906         * expmed.c (init_expmed): Call gen_raw_REG instead of
31907         gen_rtx_raw_REG.
31908         * expr.c (init_expr_target): Likewise.
31909         * regcprop.c (maybe_mode_change): Likewise.
31910         * varasm.c (make_decl_rtl): Likewise.
31911         * final.c (leaf_renumber_regs_insn): Return early after
31912         handling REGs.
31913         * genemit.c (gen_exp): Handle 'r' fields.
31914         * genpeep.c (match_rtx): Likewise.
31915         * gensupport.c (subst_pattern_match): Likewise.
31916         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
31917         (alter_constraints, subst_dup): Likewise.
31918         * read-rtl.c (read_rtx_code): Likewise.
31919         * print-rtl.c (print_rtx): Likewise.
31920         * genrecog.c (find_operand, find_matching_operand): Likewise.
31921         (validate_pattern, match_pattern_2): Likewise.
31922         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
31923         (rtx_test::regno_field): New function.
31924         (operator ==, safe_to_hoist_p, transition_parameter_type)
31925         (parameter_type_string, print_parameter_value)
31926         (print_nonbool_test, print_test): Handle new enum values.
31927         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
31928         * lra-constraints.c (operands_match_p): Likewise.
31930 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31932         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
31933         Change type of new_regno to unsigned int.
31934         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
31935         new_regno to unsigned int.
31936         (df_ref_change_reg_with_loc): Remove old_regno parameter.
31937         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
31938         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
31939         (SET_REGNO_RAW): Add space after ",".
31941 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31943         * rtl.h (REG_NREGS): New macro
31944         * alias.c (record_set): Use it.
31945         * cfgcleanup.c (mark_effect): Likewise.
31946         * combine.c (likely_spilled_retval_1): Likewise.
31947         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
31948         (move_deaths, distribute_notes): Likewise.
31949         * cselib.c (cselib_record_set): Likewise.
31950         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
31951         * df-scan.c (df_mark_reg): Likewise.
31952         * dse.c (look_for_hardregs): Likewise.
31953         * dwarf2out.c (reg_loc_descriptor): Likewise.
31954         (multiple_reg_loc_descriptor): Likewise.
31955         * expr.c (write_complex_part, read_complex_part): Likewise.
31956         (emit_move_complex): Likewise.
31957         * haifa-sched.c (setup_ref_regs): Likewise.
31958         * ira-lives.c (mark_hard_reg_live): Likewise.
31959         * lra.c (lra_set_insn_recog_data): Likewise.
31960         * mode-switching.c (create_pre_exit): Likewise.
31961         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
31962         (reload_combine_recognize_pattern): Likewise.
31963         (reload_combine_note_use, move2add_record_mode): Likewise.
31964         (reload_cse_move2add): Likewise.
31965         * reg-stack.c (subst_stack_regs_pat): Likewise.
31966         * regcprop.c (kill_value, copy_value): Likewise.
31967         (copyprop_hardreg_forward_1): Likewise.
31968         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
31969         (build_def_use): Likewise.
31970         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
31971         (deps_analyze_insn): Likewise.
31972         * sched-rgn.c (check_live_1, update_live_1): Likewise.
31973         * sel-sched.c (count_occurrences_equiv): Likewise.
31974         * valtrack.c (dead_debug_insert_temp): Likewise.
31976 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31978         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
31979         * dse.c (note_add_store): Likewise.
31980         * ira-lives.c (mark_hard_reg_dead): Likewise.
31981         * loop-invariant.c (mark_reg_store): Likewise.
31982         (mark_reg_death): Likewise.
31983         * postreload.c (reload_combine): Likewise.
31984         (reload_combine_note_store): Likewise.
31985         (reload_combine_note_use): Likewise.
31986         * recog.c (peep2_reg_dead_p): Likewise.
31988 2015-05-19  Alan Modra  <amodra@gmail.com>
31990         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
31991         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
31992         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
31993         unused predicates.
31994         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
31995         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
31996         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
31997         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
31999 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
32001         * config/mips/mips.md (JOIN_MODE): New mode iterator.
32002         (join2_load_Store<JOIN_MODE:mode>): New pattern.
32003         (join2_loadhi): Likewise.
32004         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
32005         load-load and store-stores.
32006         * config/mips/mips.opt (mload-store-pairs): New option.
32007         (TARGET_LOAD_STORE_PAIRS): New macro.
32008         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
32009         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
32010         * config/mips/mips.c (mips_load_store_bonding_p): New function.
32012 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
32014         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
32015         explicit swaps.
32016         * dojump.c (do_compare_rtx_and_jump): Likewise.
32017         * expmed.c (emit_store_flag_1): Likewise.
32018         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
32019         * final.c (sprint_ul): Use std::reverse for reversing a string.
32020         * fold-const.c (extract_muldiv_1): Use std::swap.
32021         * genmodes.c (emit_mode_int_n): Likewise.
32022         * ifcvt.c (dead_or_predicable): Likewise.
32023         * ira-build.c (ira_merge_live_ranges): Likewise.
32024         (swap_allocno_copy_ends_if_necessary): Likewise.
32025         * ira.c (ira_setup_alts): Likewise.
32026         * loop-iv.c (iv_analyze_expr): Likewise.
32027         (implies_p): Likewise.
32028         (canon_condition): Likewise.
32029         * lra-constraints.c (swap_operands): Likewise.
32030         * lra-lives.c (lra_merge_live_ranges): Likewise.
32031         * omega.c (swap): Remove.
32032         (bswap): Remove.
32033         (omega_unprotect_1): Use std::swap.
32034         (omega_solve_geq): Likewise.
32035         * optabs.c (expand_binop_directly): Likewise.
32036         (expand_binop): Likewise.
32037         (emit_conditional_move): Likewise.
32038         (emit_conditional_add): Likewise.
32039         * postreload.c (reload_cse_simplify_operands): Likewise.
32040         * reg-stack.c (emit_swap_insn): Likewise.
32041         (swap_to_top): Likewise.
32042         (compare_for_stack_reg): Likewise.
32043         (subst_asm_stack_regs): Likewise.
32044         * reload.c (find_reloads): Likewise.
32045         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
32046         * sel-sched.c (invoke_reorder_hooks): Likewise.
32047         (create_block_for_bookkeeping): Likewise.
32048         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
32049         (lambda_matrix_right_hermite): Use std::swap.
32050         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
32051         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
32052         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
32053         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
32054         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
32055         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
32056         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
32057         * tree-vrp.c (compare_ranges): Likewise.
32058         * var-tracking.c (add_with_sets): Likewise.
32059         (vt_find_locations): Likewise.
32061 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
32063         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
32064         pie executables.
32065         (FBSD_ENDFILE_SPEC): Likewise.
32066         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
32067         config/freebsd-spec.h.
32068         (ENDFILE_SPEC): Likewise.
32070 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
32071             Richard Henderson  <rth@redhat.com>
32073         PR target/57032
32074         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
32075         Check for a memory location that is not a reference (using an AND)
32076         to an unaligned location here.
32077         * config/alpha/predicates.md (normal_memory_operand): Remove.
32079 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
32081         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
32082         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
32084 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
32086         * config/mips/mips.c (micromips_globals): New variable.
32087         (mips_set_compression_mode): Save and reinitialize target-dependent
32088         state for microMIPS.
32090 2015-05-18  Martin Liska  <mliska@suse.cz>
32092         * dbgcnt.def: Add new counter.
32093         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
32095 2015-05-18  Martin Liska  <mliska@suse.cz>
32097         * dbgcnt.def: Sort counters.
32098         * opts.c (common_handle_option): Do not compile if
32099         -fdbg-cnt-list is enabled.
32101 2015-05-18  Tom de Vries  <tom@codesourcery.com>
32103         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
32104         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
32105         address operator to va_list operand.
32106         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
32107         unconditionally.
32108         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
32109         operand.
32110         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
32111         * config/s390/s390.c (s390_gimplify_va_arg): Same.
32112         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
32114 2015-05-18  Tom de Vries  <tom@codesourcery.com>
32116         * tree-ssa-tail-merge.c: Fix whitespace.
32118 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
32120         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
32121         cortex-a17, and cortex-a17.cortex-a7.
32123 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
32125         PR target/54236
32126         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
32128 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
32130         PR target/66174
32131         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
32132         QImode inner modes for TARGET_AVX512BW.  Force mask operand
32133         to a register for AVX512F modes.
32135 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
32137         * toplev.c (emit_debug_global_declarations): Do not output debug info
32138         when doing slim LTO objects.
32140 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
32142         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
32143         odr_types_equivalent_p): Declare.
32144         (odr_type_p): Use gcc_checking_assert.
32145         (type_in_anonymous_namespace_p) Declare.
32146         (type_with_linkage_p): Declare.
32147         * common.opt (Wlto-type-mismatch): New warning.
32148         * ipa-devirt.c (compound_type_base): New function.
32149         (odr_or_derived_type_p): New function.
32150         (odr_types_equivalent_p): New function.
32151         (add_type_duplicate): Simplify.
32152         (type_with_linkage_p): Add hack to prevent false positives on C types
32153         (type_in_anonymous_namespace_p): Likewise.
32154         * tree.c (need_assembler_name_p): Use type_with_linkage.
32155         * tree.h (type_in_anonymous_namespace_p): Remove.
32156         * doc/invoke.texi (-Wlto-type-mismatch): Document
32158 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
32160         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
32161         (verify_type): Verify STRING_FLAG.
32163 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32165         PR fortran/44054
32166         * tree-pretty-print.c (percent_K_format): Replace locus pointer
32167         with accessor function.
32168         * tree-diagnostic.c (diagnostic_report_current_function): Use
32169         diagnostic_location function.
32170         (maybe_unwind_expanded_macro_loc): Likewise.
32171         (virt_loc_aware_diagnostic_finalizer): Likewise.
32172         (default_tree_printer): Replace locus pointer with accessor function.
32173         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
32174         (diagnostic_set_info_translated): Initialize second location.
32175         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
32176         (diagnostic_show_locus): Handle two locations. Call
32177         diagnostic_print_caret_line.
32178         (diagnostic_print_caret_line): New.
32179         (default_diagnostic_starter): Use diagnostic_location function.
32180         (diagnostic_report_diagnostic): Use diagnostic_location function.
32181         (verbatim): Do not set text.locus.
32182         * diagnostic.h (struct diagnostic_info): Remove location field.
32183         (struct diagnostic_context): Make caret_chars an array of two.
32184         (diagnostic_location): New inline.
32185         (diagnostic_expand_location): Handle two locations.
32186         (diagnostic_same_line): New inline.
32187         (diagnostic_print_caret_line): Declare.
32188         (CARET_LINE_MARGIN): New constant.
32189         * pretty-print.c (pp_printf): Do not set text.locus.
32190         (pp_verbatim): Do not set text.locus.
32191         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
32192         (struct text_info): Replace locus pointer with locations
32193         array. Add accessor functions.
32195 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
32196             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
32198         PR target/65768
32199         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
32200         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
32201          large constants in register instead of splitting them.
32203 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
32205         PR target/66140
32206         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
32207         replacements in memory addresses.
32208         (get_unaligned_address): Ditto.
32210 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
32212         * config/ft32/*: New files for FT32 port.
32213         * doc/install.texi: Add FT32 information.
32214         * doc/invoke.texi: Add FT32 information.
32215         * doc/md.texi: Add FT32 information.
32216         * doc/contrib.texi: Self added.
32218 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
32220         PR tree-optimization/64454
32221         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
32222         (-1 - A -> ~A): Remove unnecessary condition.
32224 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
32226         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
32227         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
32228         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
32230 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
32232         * ipa-chkp.h (chkp_wrap_function): New.
32233         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
32234         (chkp_wrap_function_name): New.
32235         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
32236         to get wrapper name.
32237         * lto-cgraph.c: Include ipa-chkp.h.
32238         (input_cgraph_1): Avoid alias chain for wrappers.
32240 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
32242         PR middle-end/66134
32243         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
32244         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
32246 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32248         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
32249         (AARCH64_FL_SLOWMUL): Delete.
32250         (AARCH64_FL_CRC): Redefine to 1<<3.
32251         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
32253 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32255         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
32256         casting.
32258 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
32260         * config/alpha/alpha.md (extendqidi2): Use general_operand
32261         instead of some_operand for operand[1] predicate.
32262         (extendhidi2): Ditto.
32263         (cbranchdi4): Use general_operand instead of some_operand
32264         for operand[1] and operands[2] predicates.
32265         (cstoredi4): Ditto.
32266         * config/alpha/predicates.md (some_operand): Remove unused predicate.
32267         (some_ni_operand): Ditto.
32269 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
32271         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
32272         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
32273         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
32274         low part of the constant using alpha_emit_set_const_1.
32275         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
32277 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
32279         * varasm.c (output_constant_pool_1): Pass down alignment from
32280         constant pool entry's descriptor to output_constant_pool_2.
32281         (output_object_block): Add comment prior to call to
32282         output_constant_pool_1.
32284 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
32286         PR rtl-optimization/65862
32287         * target.def (ira_change_pseudo_allocno_class): New hook.
32288         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
32289         value of the hook.
32290         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
32291         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
32292         hook.
32293         * ira-costs.c (find_costs_and_classes): Call the hook and change
32294         classes when it is necessary.
32295         * doc/tm.texi: Update.
32297 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
32299         * config/i386/i386.md (sibcall_memory): Check that register with
32300         callee address is not also used as one of the arguments, instead
32301         of checking that it is not live after the sibcall.
32302         (sibcall_pop_memory): Ditto.
32303         (sibcall_value_memory): Ditto.
32304         (sibcall_value_pop_memory): Ditto.
32306 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
32308         * generic-match-head.c (types_match): Handle non-types.
32309         * gimple-match-head.c (types_match): Likewise.
32310         * match.pd: Remove unnecessary TREE_TYPE for types_match.
32312 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
32314         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
32315         (csneg3<mode>_insn): Enable expansion of pattern.
32317 2015-05-14  Nick Clifton  <nickc@redhat.com>
32319         * config/rl78/rl78.c (rl78_select_section): Select the correct
32320         default section based upon the category of the decl.
32322 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
32324         PR rtl-optimization/30967
32325         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
32326         destination mode for the cost of scc patterns.
32328 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
32330         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
32331         using SWIM248 mode iterator.
32332         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
32333         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
32334         for operand[2] constraint.
32335         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
32337 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
32339         PR middle-end/66133
32340         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
32341         make sure it is never noreturn, even when the task body does not
32342         return.
32343         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
32344         right before GIMPLE_OMP_RETURN.
32345         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
32346         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
32347         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
32349 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32351         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
32352         * tree-ssa-math-opts.c: Include params.h
32353         (pow_synth_sqrt_info): New struct.
32354         (representable_as_half_series_p): New function.
32355         (get_fn_chain): Likewise.
32356         (print_nested_fn): Likewise.
32357         (dump_fractional_sqrt_sequence): Likewise.
32358         (dump_integer_part): Likewise.
32359         (expand_pow_as_sqrts): Likewise.
32360         (gimple_expand_builtin_pow): Use above to attempt to expand
32361         pow as series of square roots.  Removed now unused variables.
32363 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
32365         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
32366         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
32367         Remove *p0 and *p1 arguments.  Rewrite function.
32368         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
32369         (alpha_split_const_mov): Update calls to alpha_extract_integer and
32370         alpha_emit_set_long_const.
32371         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
32372         (alpha_output_mi_thunk_osf): Ditto.
32373         * config/alpha/alpha.md (movti): Do not check operands[1]
32374         for CONST_DOUBLE.
32376 2015-05-13  Richard Biener  <rguenther@suse.de>
32378         PR tree-optimization/66129
32379         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
32380         commutative.
32381         (vect_schedule_slp_instance): Fix typo.
32383 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
32385         * common.opt (fdump-internal-locations): New option.
32386         * input.c: Include diagnostic-core.h.
32387         (get_end_location): New function.
32388         (write_digit): New function.
32389         (write_digit_row): New function.
32390         (dump_location_range): New function.
32391         (dump_labelled_location_range): New function.
32392         (dump_location_info): New function.
32393         * input.h (dump_location_info): New prototype.
32394         * toplev.c (compile_file): Handle flag_dump_locations.
32396 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
32398         * gimple-expr.h (is_gimple_constant): Reorder.
32399         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
32401 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
32403         * combine.c (simplify_set): When generating a CC set, if the
32404         source already is in the correct mode, do not wrap it in a
32405         compare.  Simplify the rest of that code.
32407 2015-05-13  Richard Biener  <rguenther@suse.de>
32409         PR tree-optimization/66123
32410         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
32411         a taken edge.
32413 2015-05-13  Richard Biener  <rguenther@suse.de>
32415         PR middle-end/66110
32416         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
32417         specially.
32418         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
32420 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
32422         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
32423         * aclocal.m4: Regenerated with automake-1.11.6.
32425 2015-05-13  Tom de Vries  <tom@codesourcery.com>
32427         PR tree-optimization/66010
32428         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
32429         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
32430         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
32431         and rval based on do_deref.
32433 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
32435         PR target/65103
32436         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
32437         link time constants into adress expressions and therefore set
32438         their cost to 0.
32440 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
32442         PR target/66112
32443         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
32444         Use SWI248 iterator instead of SWI.
32445         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
32446         Use eq_attr "alternative" "0" instead of match_test in
32447         length_immediate attribute computation.
32448         (*mulvhi4, *mulvhi4_1): New define_insns.
32450         PR target/66112
32451         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
32452         SIGNED to get precision of non-negative value.
32454 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
32456         PR target/66048
32457         * function.c (diddle_return_value_1): Process bounds first.
32458         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
32459         register.
32461 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32463         PR rtl-optimization/64616
32464         * loop-invariant.c (can_move_invariant_reg): New.
32465         (move_invariant_reg): Call above new function to decide whether
32466         instruction can just be moved, skipping creation of temporary
32467         register.
32469 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
32471         PR target/pr66047.c
32472         * i386.c (ix86_function_sseregparm): Only return -1 if local function
32473         with implied regparm is called from -mno-sse function.
32474         (init_cumulative_args): Output error if ix86_function_sseregparm
32475         return -1 and SSE register would be needed.
32476         (function_arg_advance_32): Likewise.
32477         (function_arg_32): Likewise.
32478         * i386.h (ix86_args): Add decl field.
32480 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
32482         PR ipa/65873
32483         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
32484         inlines across optimization boundary.
32486 2015-05-12  Jason Merrill  <jason@redhat.com>
32488         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
32489         string literal and macro name.
32491 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
32493         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
32494         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
32495         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
32497 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
32499         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
32500         (-Wmisleading-indentation): New option.
32501         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
32503 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
32505         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
32506         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
32507         (alpha_extract_integer): Ditto.
32508         (alpha_legitimate_constant_p): Ditto.
32509         (alpha_split_tmode_pair): Ditto.
32510         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
32511         (alpha_expand_mov): Ditto.
32512         (print_operand): Remove handling of 'H' modifier.
32513         <case 'm'>: Remove CONST_DOUBLE handling.
32514         (summarize_insn): Handle CONST_WIDE_INT.
32515         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
32516         (anddi3): Ditto.
32517         (movti): Handle CONST_WIDE_INT.
32518         * config/alpha/constraints.md ('H'): Remove constraint definition.
32519         ('G'): Do not match MODE_FLOAT class.
32520         * config/alpha/predicates.md (const0_operand): Also match
32521         const_wide_int.
32522         (non_add_const_operand): Ditto.
32523         (non_zero_const_operand): Ditto.
32524         (some_operand): Ditto.
32525         (input_operand): Ditto.  Handle CONST_WIDE_INT.
32526         (and_operand): Do not match const_double.
32527         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
32529 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
32531         PR target/65697
32532         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
32533         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
32534         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
32535         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
32536         is_mm_seq_cst, is_mm_sync): New accessor functions.
32537         * builtins.c (expand_builtin_sync_operation,
32538         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
32539         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
32540         (get_memmodel,  expand_builtin_atomic_compare_exchange,
32541         expand_builtin_atomic_load, expand_builtin_atomic_store,
32542         expand_builtin_atomic_clear): Use new accessor routines.
32543         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
32544         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
32545         (maybe_emit_sync_lock_test_and_set): Use new accessors and
32546         MEMMODEL_SYNC_ACQUIRE.
32547         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
32548         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
32549         expand_atomic_store): Use new accessors.
32550         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
32551         * tsan.c (instrument_builtin_call): Update check for memory model beyond
32552         final enum to use MEMMODEL_LAST.
32553         * c-family/c-common.c: Use new accessor for memmodel_base.
32554         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
32555         accessors.
32556         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
32557         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
32558         mem_thread_fence, *dmb): Likewise.
32559         * config/alpha/alpha.c (alpha_split_compare_and_swap,
32560         alpha_split_compare_and_swap_12): Likewise.
32561         * config/arm/arm.c (arm_expand_compare_and_swap,
32562         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
32563         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
32564         atomic_loaddi): Likewise.
32565         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
32566         Likewise.
32567         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
32568         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
32569         use new accessors.
32570         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
32571         atomic_store<mode>, atomic_compare_and_swap<mode>,
32572         atomic_exchange<mode>): Use new accessors.
32573         * config/mips/mips.c (mips_process_sync_loop): Likewise.
32574         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
32575         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
32576         rs6000_post_atomic_barrier): Add new cases.
32577         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
32578         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
32579         (atomic_load<mode>): Add new cases and use new accessors.
32580         (store_quadpti): Add new cases.
32581         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
32582         accessors.
32583         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
32584         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
32585         model, not 8.
32587 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
32589         * ipa-devirt.c (type_with_linkage_p): New function.
32590         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
32591         type has linkage.
32592         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
32593         (can_be_name_hashed_p): Simplify.
32594         (hash_odr_name): Check that type has linkage before checking if it is
32595         anonymous.
32596         (types_same_for_odr): Likewise.
32597         (odr_name_hasher::equal): Likewise.
32598         (odr_subtypes_equivalent_p): Likewise.
32599         (warn_types_mismatch): Likewise.
32600         (get_odr_type): Likewise.
32601         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
32602         * ipa-utils.h (odr_type_p): Move offline.
32603         * tree.c (need_assembler_name_p): Fix handling of types
32604         without linkages.
32605         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
32607 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
32609         * timevar.c (timevar_enable): Delete in favor of...
32610         (g_timer): New global.
32611         (struct timevar_def): Move to timevar.h inside class timer.
32612         (struct timevar_stack_def): Likewise.
32613         (timevars): Delete global in favor of field "m_timevars" within
32614         class timer in timevar.h
32615         (stack): Likewise, in favor of field "m_stack".
32616         (unused_stack_instances): Likewise, in favor of field
32617         "m_unused_stack_instances".
32618         (start_time): Likewise, in favor of field "m_start_time".
32619         (get_time): Eliminate check for timevar_enable.
32620         (timer::timer): New function, built from part of timevar_init.
32621         (timevar_init): Rewrite idempotency test from using
32622         "timevar_enable" bool to using dynamic allocation of "g_timer".
32623         Move rest of implementation into timer's constructor.
32624         (timevar_push_1): Rename to...
32625         (timer::push): ...this, adding "m_" prefixes to variables that
32626         are now fields of timer.
32627         (timevar_pop_1): Likewise, rename to...
32628         (timer::pop): ...this, and add "m_" prefixes.
32629         (timevar_start): Replace test for "timevar_enable" with one for
32630         "g_timer", and move bulk of implementation to...
32631         (timer::start): ...here, adding "m_" prefixes.
32632         (timevar_stop): Likewise, from here...
32633         (timer::stop): ...to here.
32634         (timevar_cond_start): Likewise, from here...
32635         (timer::cond_start): ...to here.
32636         (timevar_cond_stop): Likewise, from here...
32637         (timer::cond_stop): ...to here.
32638         (validate_phases): Rename to...
32639         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
32640         locals "total" and "tv" const.
32641         (timevar_print): Rename to...
32642         (timer::print): ...this, and add "m_" prefixes.  Make locals
32643         "total" and "tv" const.  Eliminate test for timevar_enable.
32644         * timevar.h (timevar_enable): Eliminate.
32645         (g_timer): New declaration.
32646         (timevar_push_1): Eliminate.
32647         (timevar_pop_1): Eliminate.
32648         (timevar_print): Eliminate.
32649         (class timer): New class.
32650         (timevar_push): Rewrite to use g_timer.
32651         (timevar_pop): Likewise.
32652         * toplev.c (toplev::~toplev): Likewise.
32654 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
32656         * arm-protos.h (arm_sched_autopref): Delete.
32657         (tune_params): Re-organize, use enums for flag values.
32658         (FUSE_OPS): New macro.
32659         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
32660         (ARM_PREFETCH_BENEFICIAL): Likewise.
32661         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
32662         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
32663         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
32664         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
32665         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
32666         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
32667         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
32668         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
32669         format.
32670         (arm_option_override, thumb2_reorg, arm_print_tune_info)
32671         (aarch_macro_fusion_pair_p): Update uses of current_tune.
32672         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
32674 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
32676         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
32677         "break".
32679 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
32680             Sandra Loosemore <sandra@codesourcery.com>
32682         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
32683         value.
32684         (REG_CLASS_NAMES): Add "IJMP_REGS".
32685         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
32686         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
32687         use new "c" register constraint.
32688         * config/nios2/constraint.md (c): New register constraint
32689         corresponding to IJMP_REGS.
32691 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
32693         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
32694         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
32695         define_splits): Delete, revamp, transmogrify into ...
32696         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
32697         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
32698         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
32699         New.
32701 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
32703         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
32704         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
32706 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
32708         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
32709         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
32710         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
32711         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
32712         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
32713         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
32714         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
32715         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
32716         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
32717         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
32718         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
32719         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
32720         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
32721         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
32722         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
32723         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
32724         and 30 corresponding splitters): Delete.
32726 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
32728         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
32729         zero_extract.
32731 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
32733         * combine.c (recog_for_combine_1): New function, factored out
32734         from recog_for_combine.
32735         (change_zero_ext): New function.
32736         (recog_for_combine): If recog fails, try again with the pattern
32737         modified by change_zero_ext; if that still fails, restore the
32738         pattern.
32740 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
32742         * combine.c (get_undo_marker): New function.
32743         (undo_to_marker): New function, largely factored out from ...
32744         (undo_all): ... this.  Adjust.
32746 2015-05-12  Richard Biener  <rguenther@suse.de>
32748         PR tree-optimization/66101
32749         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
32750         fixup if we turn a loop exit edge to a fallthru edge.
32752 2015-05-12  Richard Biener  <rguenther@suse.de>
32754         PR tree-optimization/37021
32755         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
32756         (SLP_TREE_TWO_OPERATORS): New define.
32757         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
32758         SLP_TREE_TWO_OPERATORS.
32759         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
32760         SLP node.
32761         (vect_build_slp_tree): Adjust.
32762         (vect_analyze_slp_cost_1): Likewise.
32763         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
32764         emitting two vector stmts and mixing the results.
32766 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
32768         * call.c (print_z_candidates): Remove dead code.
32770 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
32772         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
32773         and zEC12_simple_fp.
32774         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
32775         to 1.
32777 2015-05-12  Tom de Vries  <tom@codesourcery.com>
32779         PR tree-optimization/66010
32780         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
32781         ifn_va_arg.
32782         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
32783         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
32784         va_lists are passed, and remove corresponding handling.
32785         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
32786         do_deref argument to ifn_va_arg.
32787         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
32788         ifn_va_arg.
32790 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32792         PR target/65955
32793         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
32794         REG before taking its REGNO.
32796 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32798         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
32799         rsp->sign_bit_copies and rsp->nonzero_bits into ...
32800         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
32801         present to get more accurate information about the number of sign bit
32802         copies and non zero bits.
32804 2015-05-12  Richard Biener  <rguenther@suse.de>
32806         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
32807         do not allow unrolling.
32809 2015-05-11  Richard Henderson  <rth@redhat.com>
32811         * config/i386/i386-modes.def (CCP): New.
32812         * config/i386/i386.c (put_condition_code): Handle it.
32813         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
32815 2015-05-11  Richard Henderson  <rth@redhat.com>
32817         * target.def (md_asm_clobbers): Replace with...
32818         (md_asm_adjust): this.
32819         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
32820         (TARGET_MD_ASM_ADJUST): New.
32821         * tm.texi: Rebuild.
32822         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
32823         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
32824         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
32826         * cfgexpand.c (check_operand_nalternatives): Accept vector of
32827         constraints instead of lists of outputs and inputs.
32828         (expand_asm_stmt): Save and restore input_location around the
32829         body of the function.  Move asm data into vectors instead of
32830         building tree lists.  Generate cleanup sequences as needed,
32831         rather than waiting til the end.  Use new md_asm_adjust hook.
32833         * config/vxworks.c: Include vec.h before target.h.
32834         * gimple.c: Likewise.
32835         * incpath.c: Likewise.
32836         * mode-switching.c: Likewise.
32838         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
32839         (cris_md_asm_adjust): this.
32840         (TARGET_MD_ASM_CLOBBERS): Remove.
32841         (TARGET_MD_ASM_ADJUST): New.
32842         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
32843         (ix86_md_asm_adjust): this.
32844         (TARGET_MD_ASM_CLOBBERS): Remove.
32845         (TARGET_MD_ASM_ADJUST): New.
32846         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
32847         (mn10300_md_asm_adjust): this.
32848         (TARGET_MD_ASM_CLOBBERS): Remove.
32849         (TARGET_MD_ASM_ADJUST): New.
32850         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
32851         (rs6000_md_asm_adjust): this.
32852         (TARGET_MD_ASM_CLOBBERS): Remove.
32853         (TARGET_MD_ASM_ADJUST): New.
32854         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
32855         (visium_md_asm_adjust): this.
32856         (TARGET_MD_ASM_CLOBBERS): Remove.
32857         (TARGET_MD_ASM_ADJUST): New.
32859 2015-05-11  Richard Henderson  <rth@redhat.com>
32861         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
32862         if noutputs is zero.
32863         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
32865         * cfgexpand.c (expand_asm_operands): Merge into...
32866         (expand_asm_stmt): ... here.
32868         * cfgexpand.c (expand_asm_operands): Don't call
32869         resolve_asm_operand_names.
32870         * stmt.c (resolve_asm_operand_names): Clarify block comment.
32872 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
32874         * dwarf2out.c (gen_member_die): Sanity check that we access
32875         TYPE_MAIN_VARIANT for TYPE_METHODS.
32876         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
32877         checking TYPE_METHODS.
32878         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
32879         if non-null.
32880         (build_distinct_type_copy): Clear TYPE_METHODS.
32881         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
32882         (verify_type): Allow TYPE_METHODS to be error_mark_node.
32883         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
32885 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
32887         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
32888         (emit_pattern_before_setloc): Likewise.
32890 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
32892         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
32893         for define_peephole2s.
32894         (get_peephole2_pattern): New function.
32895         (main): Use it.  Call validate_pattern.
32897 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
32899         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
32900         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
32901         (Last callee saved reg is different for AVR_TINY architecture)
32903 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
32905         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
32906         when looking for memory references.
32908 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
32910         PR target/65753
32911         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
32912         via function pointers.
32914 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
32916         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
32917         indirect call by forcing address into a pseudo with -fno-plt.
32918         * common.opt (flag_plt): New option.
32919         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
32920         ([-fno-plt]): Document.
32922 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
32924         PR bootstrap/66105
32925         * config/rs6000/option-defaults.h: Add space between string literal
32926         and macro name.
32928 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32930         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
32931         accross ARM targets.
32933 2015-05-11  Christian Bruel  <christian.bruel@st.com>
32935         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
32936         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
32938 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
32940         PR rtl-optimization/66076
32941         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
32942         Don't grow the heap array if it is already big enough from a
32943         previous iteration.
32945 2015-05-11  Christian Bruel  <christian.bruel@st.com>
32947         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
32948         (is_called_in_ARM_mode): Remove.
32949         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
32950         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
32951         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
32952          arm_declare_function_name.
32954 2015-05-11  Christian Bruel  <christian.bruel@st.com>
32956         * config/arm/arm.c (arm_option_override): Reoganized and split into :
32957         (arm_option_params_internal); New function.
32958         (arm_option_check_internal): New function.
32959         (arm_option_override_internal): New function.
32960         (thumb_code, thumb1_code): Remove.
32961         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
32962         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
32963         (thumb_code, thumb1_code): Remove.
32964         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
32966 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
32968         * config/alpha/alpha.c (alpha_emit_set_const_1)
32969         (alpha_emit_set_long_const, alpha_extract_integer)
32970         (alpha_legitimate_constant_p, alpha_split_const_mov)
32971         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
32972         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
32973         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
32974         HOST_WIDE_INT_1U.
32975         * config/alpha/predicates.md (mode_mask_operand): Do not match
32976         const_double RTX.
32977         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
32978         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
32979         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
32980         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
32981         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
32983 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
32985         PR target/65780
32986         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
32987         default_binds_local_p_2.
32988         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
32989         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
32991 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
32993         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
32995 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
32997         Patch by Richard Biener
32998         * coverage.c (coverage_obj_init): Delay building of type variant
32999         until the type is finished.
33001 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
33003         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
33004         mismatch between C and C++ type; compoare correctly ARG_TYPES
33005         for non-prototypes and output correctly parameter index for METHOD_TYPE.
33006         (odr_types_equivalent_p): Fix wording of warning about attributes;
33007         it is OK to match prototype and non-prototype.
33009 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
33011         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
33012         TYPE_ARG_TYPES list.
33013         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
33014         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
33016 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
33018         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
33019         * tree.h (is_lang_specific): Constify.
33021 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
33023         PR tree-optimization/64454
33024         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
33025         Rewrite.
33027 2015-05-08  Jason Merrill  <jason@redhat.com>
33029         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
33030         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
33031         config/darwin.h, config/darwin9.h, config/elfos.h,
33032         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
33033         config/microblaze/microblaze.h, config/mips/mips.h,
33034         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
33035         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
33036         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
33037         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
33038         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
33039         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
33040         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
33041         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
33042         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
33043         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
33044         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
33045         between string literal and macro name.
33047 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33049         * jump.c: Change argument types to rtx_insn *.
33050         * rtl.h: Adjust.
33052 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33054         * lra-constraints.c: Change argument type to rtx_insn *.
33056 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33058         * df-problems.c: Change argument type to rtx_insn *.
33060 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33062         * combine.c: Change argument type to rtx_insn *.
33064 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33066         * rtl.h: Adjust.
33067         * rtlanal.c: Change argument type to rtx_insn *.
33069 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33071         * sched-deps.c: Change argument types to rtx_insn *.
33072         * sched-int.h: Adjust.
33074 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33076         * dwarf2cfi.c: Change argument type to rtx_insn *.
33078 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33080         * ira.c (decrease_live_ranges_number): Changetype of local
33081         variable to rtx_insn *.
33082         * recog.c: Change argument types to rtx_insn *.
33083         * recog.h: Adjust.
33085 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33087         * reorg.c: Change argument types to rtx_insn *.
33089 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33091         * ira-color.c: Change argument types to rtx_insn *.
33092         * lra-eliminations.c: Likewise.
33093         * ira.h: Adjust.
33095 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33097         * gcse.c: Change argument types to rtx_insn *.
33099 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33101         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
33103 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33105         * emit-rtl.c (emit_debug_insn_before): Change argument type to
33106         rtx_insn *.
33107         * rtl.h: Adjust.
33109 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33111         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
33112         * rtl.h: Adjust.
33114 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33116         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
33117         * rtl.h: Adjust.
33119 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33121         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
33122         * rtl.h: Adjust.
33124 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33126         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
33127         * rtl.h: Adjust.
33129 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33131         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
33132         to rtx_insn *.
33133         * rtl.h: Adjust.
33135 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33137         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
33138         to rtx_insn *.
33139         * rtl.h: Likewise.
33141 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33143         * except.c (can_nonlocal_goto): Change type of argument to
33144         rtx_insn *.
33145         * rtl.h: Adjust.
33147 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33149         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
33150         * rtl.h: Adjust.
33152 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33154         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
33155         * cfgrtl.c (can_delete_label_p): Adjust.
33156         * rtl.h: likewise.
33158 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33160         * reorg.c (stop_search_p): Change argument to rtx_insn *.
33162 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33164         * except.c (make_reg_eh_region_note): Change argument to
33165         rtx_insn *.
33166         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
33167         * except.h: Adjust.
33169 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33171         * mode-switching.c (commit_mode_sets): Change type of local
33172         variable from rtx to rtx_insn *.
33174 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
33176         * doc/install.texi (--enable-languages): Add missing jit and lto info.
33177         Add ^ to grep command.
33178         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
33179         arg to last gimple_simplify declaration.  Add missing gimple_build
33180         declaration for built-in function case with four tree args.
33182 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
33183             Szabolcs Nagy  <szabolcs.nagy@arm.com>
33185         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
33186         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
33187         (GNU_USER_DYNAMIC_LINKERN32): Update.
33189 2015-05-08  Richard Biener  <rguenther@suse.de>
33191         PR tree-optimization/66036
33192         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
33193         Handle strided group loads.
33194         (vect_verify_datarefs_alignment): Likewise.
33195         (vect_enhance_data_refs_alignment): Likewise.
33196         (vect_analyze_group_access): Likewise.
33197         (vect_analyze_data_ref_access): Likewise.
33198         (vect_analyze_data_ref_accesses): Likewise.
33199         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
33200         (vectorizable_load): Likewise.
33202 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
33204         * config/rs6000/rs6000.md: Require operand inequality in one
33205         of the peepholes.
33207 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
33208             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
33210         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
33211         from (set ...).
33212         * config/rx/rx.md (movdi, movdf): Likewise.
33213         Likewise for define_peephole2s.
33215 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
33217         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
33218         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
33219         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
33220         vtst_u64): Rewrite using gcc vector extensions.
33222 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
33224         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
33225         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
33227 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
33229         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
33231 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
33233         * config/glibc-stdint.h (OPTION_MUSL): Define.
33234         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
33235         Change the definition based on OPTION_MUSL for 64 bit targets.
33236         * config/linux.h (OPTION_MUSL): Redefine.
33237         * config/alpha/linux.h (OPTION_MUSL): Redefine.
33238         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
33239         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
33241 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
33242             Szabolcs Nagy  <szabolcs.nagy@arm.com>
33244         * config.gcc (LIBC_MUSL): New tm_defines macro.
33245         * config/linux.h (OPTION_MUSL): Define.
33246         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
33247         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
33248         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33249         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33250         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33251         * config/linux.opt (mmusl): New option.
33252         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
33253         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33254         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33255         * configure: Regenerate.
33257 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
33258             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33260         PR target/48904
33261         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
33262         * config/i386/knetbsd-gnu64.h: New file.
33264 2015-05-08  Marek Polacek  <polacek@redhat.com>
33266         PR c/64918
33267         * doc/invoke.texi: Document -Woverride-init-side-effects.
33269 2015-05-07  Marek Polacek  <polacek@redhat.com>
33271         PR c/65179
33272         * doc/invoke.texi: Document -Wshift-negative-value.
33274 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
33276         * gcov-tool.c (do_merge): Refactore to remove int ret.
33277         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
33278         !type == FUNC to type != FUNC.
33279         * reload.h (struct target_reload): Changee to type of
33280         x_spill_indirect_levels from bool to unsigned char.
33282 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
33284         * rtl.h (always_void_p): New function.
33285         * gengenrtl.c (always_void_p): Likewise.
33286         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
33287         with code foo are always VOIDmode.
33288         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
33289         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
33290         compare-elim.c, config/aarch64/aarch64.c,
33291         config/aarch64/aarch64.md, config/alpha/alpha.c,
33292         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
33293         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
33294         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
33295         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
33296         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
33297         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
33298         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
33299         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
33300         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
33301         config/ia64/vect.md, config/iq2000/iq2000.c,
33302         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
33303         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
33304         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
33305         config/mep/mep.c, config/microblaze/microblaze.c,
33306         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
33307         config/mn10300/mn10300.c, config/msp430/msp430.c,
33308         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
33309         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
33310         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
33311         config/rs6000/altivec.md, config/rs6000/rs6000.c,
33312         config/rs6000/rs6000.md, config/rs6000/vector.md,
33313         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
33314         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
33315         config/sh/sh.md, config/sh/sh_treg_combine.cc,
33316         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
33317         config/spu/spu.md, config/stormy16/stormy16.c,
33318         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
33319         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
33320         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
33321         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
33322         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
33323         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
33324         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
33325         var-tracking.c: Update calls accordingly.
33327 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
33329         PR middle-end/192
33330         PR middle-end/54303
33331         * varasm.c (function_mergeable_rodata_prefix): New function.
33332         (mergeable_string_section): Use it.
33333         (mergeable_constant_section): Use it.
33335 2015-05-07  Jeff Law  <law@redhat.com>
33337         PR target/39726
33338         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
33339         simplifier to narrow arithmetic.
33340         * generic-match-head.c: (types_match, single_use): New functions.
33341         * gimple-match-head.c: (types_match, single_use): New functions.
33343 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
33345         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
33346         rtx type.
33348 2015-05-07  Richard Biener  <rguenther@suse.de>
33350         PR tree-optimization/66002
33351         * passes.def: Schedule another pass_merge_phi after ifcombine, right
33352         before phiopt.
33354 2015-05-07  Marek Polacek  <polacek@redhat.com>
33355             Martin Uecker  <uecker@eecs.berkeley.edu>
33357         * doc/invoke.texi: Document -fsanitize=bounds-strict.
33358         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
33359         into SANITIZE_NONDEFAULT.
33360         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
33362 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
33364         PR target/66015
33365         * config/alpha/alpha.c (alpha_override_options_after_change): New.
33366         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
33367         (alpha_override_options): Move align_loops, align_jumps and
33368         align_functions handling into alpha_override_options_after_change.
33370 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
33371             Chris Jones  <chrisj@nvidia.com>
33372             Joshua Conner  <jconner@nvidia.com>
33374         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
33375         linking of crtfastmath.o.
33376         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
33378 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
33380         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
33381         (cstore<mode>4_unsigned_imm): New expander.
33382         (cstore<mode>4): Remove empty constraint strings.  Use the new
33383         expanders.
33385 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
33387         PR target/64208
33388         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
33389         alternatives.
33391 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
33393         * config/aarch64/geniterators.sh: Use standard BRE in sed.
33395 2015-05-06  Alan Modra  <amodra@gmail.com>
33397         PR target/66033
33398         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
33399         (UNSPEC_NOP): Define.
33400         (reload_vsx_from_gpr<mode>): Add missing DONE.
33401         (reload_gpr_from_vsx<mode>): Likewise.
33402         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
33403         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
33405 2015-05-06  Christian Bruel  <christian.bruel@st.com>
33407         PR target/66015
33408         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
33409         align_jumps, align_functions into aarch64_override_options_after_change.
33411 2015-05-06  Richard Biener  <rguenther@suse.de>
33413         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
33414         vect_transform_slp_perm_load to check if we support a permutation
33415         for basic-block vectorization.
33417 2015-05-06  Nick Clifton  <nickc@redhat.com>
33419         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
33420         used, even if it is not being used as a frame pointer.
33422 2015-05-05  Jason Merrill  <jason@redhat.com>
33424         * dwarf2out.c (gen_member_die): Don't emit anything for an
33425         anonymous class constructor.
33427 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
33429         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
33430         that it reflects the block structure.
33431         (afdo_propagate_edge): Likewise.
33432         (afdo_calculate_branch_prob): Likewise.
33433         (afdo_annotate_cfg): Likewise.
33434         * cfgcleanup.c (equal_different_set_p): Likewise.
33435         (try_crossjump_to_edge): Likewise.
33436         * cgraph.c (cgraph_node::verify_node): Likewise.
33437         * cgraphunit.c (expand_all_functions): Likewise.
33438         * config/i386/i386.c (ix86_expand_copysign): Likewise.
33439         (exact_dependency_1): Likewise.
33440         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
33441         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
33442         * gensupport.c (process_define_subst): Likewise.
33443         * lto-wrapper.c (merge_and_complain): Likewise.
33444         * tree-if-conv.c (if_convertible_bb_p): Likewise.
33445         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
33446         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
33447         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
33448         * tree-vect-loop.c (vectorizable_reduction): Likewise.
33449         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
33450         * tree-vect-stmts.c (vectorizable_shift): Likewise.
33451         * tree-vrp.c (vrp_finalize): Likewise.
33452         * tree.c (variably_modified_type_p): Likewise.
33454 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
33456         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
33457         on darwin12 and later.
33458         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
33459         file to pass -rdynamic on darwin12 and later.
33460         * config/darwin.opt (rdynamic): Add.
33462 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
33464         * doc/extend.texi (C Extensions): Update menu for moved Variable
33465         Attributes and Type Attributes sections.
33467 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
33469         PR target/65990
33470         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
33471         if rep_8byte stringop strategy was specified for 32-bit target.
33473 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
33475         PR target/65915
33476         * config/i386/i386.md (vector convert to float spltiter): Check for
33477         xmm16+, when splitting scalar float conversion.
33478         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
33480 2015-05-05  Nick Clifton  <nickc@redhat.com>
33482         * config/msp430/msp430-opts.h (enum msp430_regions): New.
33483         * config/msp430/msp430.c (msp430_override_options): Complain if
33484         -mcode-region or -mdata-region is used on a non MSP430X.
33485         (msp430_section_attr): New function.  Checks lower, upper and
33486         either attributes.
33487         (msp430_attribute_table): Add lower, upper and either.
33488         (gen_prefix): New function.  Generates a prefix for a section
33489         name.
33490         (msp430_select_section): New function - handles the choice of
33491         section for an object.  Takes into account memory region
33492         attributes and options.
33493         (msp430_function_section): Use gen_prefix.
33494         (TARGET_SECTION_TYPE_FLAGS): Define.
33495         (msp430_section_type_flags): New function.
33496         (TARGET_ASM_UNIQUE_SECTION): Define.
33497         (msp430_unique_section): New function.
33498         (msp430_output_aligned_decl_common): New function.
33499         (msp430_do_not_relax_short_jumps): New function.
33500         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
33501         Define.
33502         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
33503         * config/msp430/msp430-protos.h
33504         (msp430_do_not_relax_short_jumps): New prototype.
33505         (msp430_output_aligned_decl_common): New prototype.
33506         * config/msp430/msp430.md (length): New attribute.
33507         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
33508         then use a long code sequence for short jumps.
33509         * config/msp430/msp430.opt (mcode-region): New.
33510         (mdata-region): New.
33511         * doc/invoke.texi: Document new options.
33512         * doc/extend.texi: Document new attributes.
33514 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
33516         * config/aarch64-protos.h (struct cpu_branch_cost): New.
33517         (tune_params): Add field branch_costs.
33518         (aarch64_branch_cost): Declare.
33519         * config/aarch64.c (generic_branch_cost): New.
33520         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
33521         (cortexa53_tunings): Likewise.
33522         (cortexa57_tunings): Likewise.
33523         (thunderx_tunings): Likewise.
33524         (xgene1_tunings): Likewise.
33525         (aarch64_branch_cost): Define.
33526         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
33528 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
33530         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
33531         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
33532         * config/i386/i386.md: Ditto.
33533         * config/i386/winnt.c: Ditto.
33535 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
33537         * doc/extend.texi (__atomic Builtins): Move implementation details
33538         to the end of the description, rewrite opening paragraphs, state
33539         difference with __sync builtins, state C11/C++11 assumptions,
33540         weaken itemized descriptions, add explanation of memory model
33541         behaviour, expand description of compare-exchange, simplify text.
33543 2015-05-05  Renlin Li  <renlin.li@arm.com>
33545         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
33547 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
33549         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
33550         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
33551         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
33552         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
33553         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
33554         * configure: Regenerate.
33555         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
33556         * doc/install.texi (aarch64*-*-*): Document new
33557         --enable-fix-cortex-a53-843419 option.
33558         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
33559         and -mno-fix-cortex-a53-843419 options.
33561 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
33563         PR target/65871
33564         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
33566 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
33568         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
33569         fix overactive TYPE_MIN_VALUE check and add FIXME for type
33570         compatibility problems.
33572 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
33574         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
33575         constraints.
33576         (cbranchsi4_reg): New.
33577         * config/microblaze/microblaze.c
33578         (microblaze_expand_conditional_branch_reg): New.
33579         * config/microblaze/microblaze-protos.h
33580         (microblaze_expand_conditional_branch_reg): New prototype.
33582 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
33584         * config/microblaze/microblaze.md (peephole2): New.
33586 2015-05-04  Jeff Law  <law@redhat.com>
33588         Revert:
33589         2015-05-04  Jeff Law  <law@redhat.com>
33591         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
33592         simplifier to narrow arithmetic.
33593         * generic-match-head.c: (types_match, single_use): New functions.
33594         * gimple-match-head.c: (types_match, single_use): New functions.
33596 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
33598         PR target/65987
33599         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
33600         (split_branches): Likewise.
33602 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
33604         * common.opt (fdelete-null-pointer-checks): Init to -1.
33605         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
33606         override flag_delete_null_pointer_checks default.
33607         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
33608         behavior re address zero.  Better document target-specific behavior.
33609         (-fisolate-errneous-paths-dereference): Mention relationship to
33610         -fdelete-null-pointer-checks.
33612 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
33614         PR tree-optimization/65984
33615         * ubsan.c: Include tree-cfg.h.
33616         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
33617         stmt_could_throw_p test, rename can_throw variable to ends_bb.
33619 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
33621         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
33622         to CONST_DOUBLE_P predicate.
33623         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
33624         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
33625         allow only operands that satisfy standard_sse_constant_p predicate.
33626         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
33627         to CONST_DOUBLE_P predicate.
33629 2015-05-04  Jeff Law  <law@redhat.com>
33631         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
33632         simplifier to narrow arithmetic.
33633         * generic-match-head.c: (types_match, single_use): New functions.
33634         * gimple-match-head.c: (types_match, single_use): New functions.
33636 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
33638         * config/arm/arm.c: Restore bootstrap.
33640 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
33642         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
33643         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
33644         as CONST_WIDE_INT, not CONST_DOUBLE.
33645         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
33646         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
33647         (ix86_find_base_term): Do not check for CONST_DOUBLE.
33648         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
33649         (ix86_build_signbit_mask): Rewrite using wide ints.
33650         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
33651         (ix86_rtx_costs): Handle CONST_WIDE_INT.
33652         (find_constant): Ditto.
33653         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
33654         using gen_int_mode.
33655         * config/i386/predicates.md (x86_64_immediate_operand)
33656         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
33657         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
33658         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
33659         (const0_operand): Also match const_wide_int.
33660         (constm1_operand): Ditto.
33661         (const1_operand): Ditto.
33663 2015-05-04  Richard Biener  <rguenther@suse.de>
33665         PR tree-optimization/65965
33666         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
33667         store groups at gaps.
33669 2015-05-04  Richard Biener  <rguenther@suse.de>
33671         PR tree-optimization/65935
33672         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
33673         then make sure to apply that swapping to the IL.
33675 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
33677         * Makefile.in (PATCHLEVEL_c): New variable.
33678         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
33679         expand the same way as if DEVPHASE_c was non-empty.
33681 2015-05-04  Kai Tietz  <ktietz@redhat.com>
33683         PR target/65559
33684         * lto-wrapper.c (run_gcc): Open filename
33685         in binary-mode.
33687 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
33689         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
33690         sections up in file, to immediately after the Function Attributes
33691         section.
33693 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
33695         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
33697 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33699         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
33700         (insert_partition_copy_on_edge): Adjust.
33701         (insert_rtx_to_part_on_edge): Likewise.
33702         (insert_part_to_rtx_on_edge): Likewise.
33704 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33706         * function.c (set_return_jump_label): Change type of argument to
33707         rtx_insn *.
33708         * function.h (set_return_jump_label): Adjust.
33710 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33712         * reload.h (struct reg_equivs_t): Change type of init to
33713         rtx_insn *.
33714         * ira.c (fix_reg_equiv_init): Adjust.
33715         * reload1.c (eliminate_regs_1): Likewise.
33716         (init_eliminable_invariants): Likewise.
33718 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33720         * cselib.c (fp_setter_insn): Take a rtx_insn *.
33721         * cselib.h (fp_setter_insn): Adjust.
33723 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33725         * recog.c (struct validate_replace_src_data): Change type of
33726         insn field to rtx_insn *.
33727         (validate_replace_src_group): Change type of argument to rtx_insn *.
33728         * recog.h (validate_replace_src_group): Adjust.
33730 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33732         * haifa-sched.c: Change the type of some variables to rtx_insn *.
33733         * sched-deps.c: Likewise.
33734         * sched-int.h: Likewise.
33735         * sched-rgn.c: Likewise.
33736         * sel-sched.c: Likewise.
33738 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33740         to rtx_insn *.
33741         * config/i386/i386.c: Change the type of some arguments to
33742         rtx_insn *.
33743         * config/arm/arm.c: Likewise.
33745 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33747         * lra-constraints.c: Change type of some arguments to rtx_insn *.
33749 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33751         * regcprop.c (kill_autoinc_value): Change type of argument to
33752         rtx_insn *.
33754 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33756         * genrecog.c (print_subroutine): Adjust.
33757         * recog.c (get_bool_attr_mask_uncached): Likewise.
33758         * recog.h (struct recog_data_d): Change the type of insn to
33759         rtx_insn *.
33761 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33763         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
33765 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33767         * df-problems.c (df_set_note): Change type of argument to
33768         rtx_insn *.
33770 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33772         * builtins.c (expand_builtin_trap): Change type of local
33773         variable to rtx_insn *.
33774         (add_sched_insns_for_speculation): Likewise.
33775         (ix86_emit_save_regs): Likewise.
33776         (get_scratch_register_on_entry): Likewise.
33777         (ix86_emit_restore_reg_using_pop): Likewise.
33778         (ix86_emit_leave): Likewise.
33779         (ix86_emit_restore_regs_using_mov): Likewise.
33780         (ix86_expand_epilogue): Likewise.
33781         Likewise.
33782         (rl78_alloc_physical_registers_umul): Likewise.
33783         * cselib.c (discard_useless_locs): Likewise.
33784         (cselib_invalidate_regno): Likewise.
33785         (cselib_invalidate_mem): Likewise.
33786         * function.c (expand_function_start): Likewise.
33787         (emit_use_return_register_into_block): Likewise.
33788         * gcse.c: Likewise.
33789         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
33790         * ifcvt.c (noce_get_alt_condition): Likewise.
33791         * loop-doloop.c (doloop_condition_get): Likewise.
33792         * lra-constraints.c (inherit_in_ebb): Likewise.
33793         * modulo-sched.c (sms_schedule_by_order): Likewise.
33794         * recog.c (next_insn_tests_no_inequality): Likewise.
33795         * reorg.c (emit_delay_sequence): Likewise.
33796         (update_reg_dead_notes): Likewise.
33797         (fix_reg_dead_note): Likewise.
33798         (fill_slots_from_thread): Likewise.
33799         (delete_computation): Likewise.
33801 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
33803         * doc/extend.texi (Variable Attributes): Add menu and proper
33804         @nodes to subsections.  Move Microsoft Windows attributes to
33805         their own subsection.
33806         (Type Attributes): Reorganize introduction to remove duplicate
33807         list of attributes.  Add menu and proper @nodes to subsections.
33808         Alphabetize the main table of common attributes.
33810 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
33812         * match.pd: New simplification patterns.
33813         (x + (x & 1))  -> ((x + 1) & ~1)
33814         (x & ~(x & y)) -> ((x & ~y))
33815         (x | ~(x | y)) -> ((x | ~y))
33817 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33819         * target.def (attribute_table): Mention that struct attribute_spec
33820         is defined in tree-core.h rather than tree.h
33821         * doc/tm.texi: Regenerate.
33823 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
33825         * genrecog.c (test): Rename to rtx_test.  Update rest of file
33826         accordingly.
33828 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33830         PR translation/65959
33831         * params.h (DEFPARAM): Rename msgid to nocmsgid.
33833 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
33835         * config/aarch64/aarch64-protos.h (tune_params):
33836         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
33837         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
33838         Return value depending on target.
33839         (generic_tunings): Initialize new target settings.
33840         (cortexa53_tunings): Likewise.
33841         (cortexa57_tunings): Likewise.
33842         (thunderx_tunings): Likewise.
33843         (xgene1_tunings): Likewise.
33845 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
33847         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
33848         Make Cortex-A53 shift costs more accurate.
33850 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33852         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
33853         UNSIGNED_FLOAT.
33855 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
33857         * config/aarch64/aarch64.c (aarch64_rtx_costs):
33858         Calculate cost of op0 and op1 in PLUS and MINUS cases.
33860 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33862         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
33863         Add cost of op0 in the compare-with-fpzero case.
33865 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
33867         * builtins.c (fold_builtin_1): Remove spurious second
33868         semicolon.
33869         * cgraph.h (symtab_node::get_availability): Likewise.
33870         * opts.c (common_handle_option): Remove spurious second semicolon.
33871         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
33872         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
33874 2015-04-30  Caroline Tice  <cmtice@google.com>
33876         PR gcov-profile/65929
33877         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
33878         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
33879         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
33880         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
33881         * doc/tm.texi: Regenerate.
33882         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
33883         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
33884         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
33885         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
33887 2015-04-30  Marek Polacek  <polacek@redhat.com>
33889         * varasm.c (handle_cache_entry): Fix logic.
33891 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33893         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
33894         (*extrsi5_insn_uxtw_alt): Likewise.
33895         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
33896         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
33897         operations.
33899 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33901         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
33902         fabd in ABS case.
33904 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33906         * config/aarch64/aarch64.md
33907         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
33908         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
33909         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
33910         appropriately.  Handle alternative EON form.
33912 2015-04-30  Renlin Li  <renlin.li@arm.com>
33914         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
33915         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
33917 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
33919         PR ipa/65873
33920         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
33921         -fstrict-aliasing boundaries.
33923 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33925         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
33926         and [SU]MNEGL patterns.
33928 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33930         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
33931         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
33932         combined arithmetic-shift ops.  Properly handle all shift and extend
33933         operations that can occur in combination with PLUS/MINUS.
33934         Rename maybe_fma to compound_p.
33935         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
33936         arithmetic and shift operations.
33938 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33940         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
33941         rather than arith_shift cost when costing ADD/MINUS of an
33942         extended value.
33944 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
33946         PR lto/65948
33947         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
33948         to itself.
33950 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
33952         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
33953         are for the same position.
33955 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
33957         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
33958         vectorize_loops.
33959         (vectorize_loops): Use it.
33961 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
33963         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
33964         for aggregate types.
33965         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
33966         type to be non_ODR.
33967         * tree.c (need_assembler_name_p): Compute mangled name for
33968         non-fundamental types and integer types.
33970 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
33972         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
33973         manual swaps.
33974         * expr.c (expand_expr_real_2): Likewise.
33976 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
33978         * tree.c (build_common_builtin_nodes): Do not build
33979         __builtin_alloca_with_align as equivalent of library alloca.
33981 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
33983         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
33984         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
33985         bugus variants.
33986         * tree.c: Include print-tree.h and ipa-utils.h
33987         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
33988         (free_lang_data_in_cgraph): Call verify_type.
33989         (verify_type_variant): New function.
33990         (verify_type): New function.
33991         * tree.h (verify_type): Declare.
33993 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
33995         * config/mips/mips-cpus.def: (mips4): Change default processor
33996         from PROCESSOR_R8000 to PROCESSOR_R10000.
33998 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
34000         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
34001         la/jalr instead of jal.
34003 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
34005         PR target/65871
34006         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
34007         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
34008         (setcc+movzbl peephole2): Check also clobbered reg.
34009         (setcc+andl peephole2): Ditto.
34011 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
34013         PR libgomp/65099
34014         * config/nvptx/mkoffload.c (target_ilp32): New variable.
34015         (main): Set it depending on "-foffload-abi=[...]".
34016         (compile_native, main): Use it to pass "-m32" or "-m64" to the
34017         compiler.
34019 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
34021         PR target/65770
34022         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
34023         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
34024         Flip lane index back at assembly time for bigendian.
34026 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
34028         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
34029         * gimplify.c (gimplify_omp_workshare): Use it.
34031 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
34033         * Makefile.in (build/genrecog.o): Depend on inchash.h.
34034         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
34035         build/inchash.o
34036         * genrecog.c: Rewrite most of the code except for the third page.
34038 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
34040         * inchash.h, inchash.c: Include bconfig.h for build objects.
34041         * Makefile.in (build/inchash.o): New rule.
34043 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
34045         PR target/65924
34046         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
34047         number in type attribute expression.
34049 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
34051         * loop-iv.c (canon_condition): Generalize to all types of integer
34052         constant.
34054 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
34056         * gimple-walk.c: Prune duplicate or unneeded includes.
34057         (walk_gimple_asm): Only call parse_input_constraint or
34058         parse_output_constraint if their findings are used.
34059         Honour parse_input_constraint and parse_output_constraint
34060         result.
34062 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
34064         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
34066 2015-04-29  Tom de Vries  <tom@codesourcery.com>
34068         PR tree-optimization/65893
34069         * passes.def (pass_all_optimizations): Move pass_stdarg to after
34070         pass_dce.
34072 2015-04-29  Richard Biener  <rguenther@suse.de>
34074         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
34075         compute GROUP_SIZE for basic-block SLP.
34076         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
34077         take into account gaps.
34078         (vect_get_mask_element): Properly reject references to previous
34079         vectors.
34080         (vect_transform_slp_perm_load): Likewise.
34082 2015-04-29  Christian Bruel  <christian.bruel@st.com>
34084         PR target/64835
34085         * config/i386/i386.c (ix86_default_align): New function.
34086         (ix86_override_options_after_change): Call ix86_default_align.
34087         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
34088         (ix86_override_options_after_change): New function.
34090 2015-04-28  Jeff Law  <law@redhat.com>
34092         * tree-ssa-dom.c (record_equality); Fix comment typos.
34094 2015-04-28  Tom de Vries  <tom@codesourcery.com>
34096         PR tree-optimization/65887
34097         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
34099 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
34101         * doc/extend.texi (Declaring Attributes of Functions): Split into
34102         subsections by target.  Alphabetize the table of common attributes.
34103         Rewrite some of the introductory text to reflect the new structure.
34104         Update some cross-references to point to the new subsections.
34105         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
34106         duplicate copies in the discussion of function, label, and type
34107         attributes.
34109 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
34111         PR bootstrap/65910
34112         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
34114 2015-04-28  Jason Merrill  <jason@redhat.com>
34116         PR c++/65734
34117         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
34118         (finalize_type_size): Respect TYPE_USER_ALIGN.
34119         (layout_type) [ARRAY_TYPE]: Likewise.
34121 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
34123         * config/arm/arm.md (*arm_movt): Fix type attribute.
34124         (*cmpsi_shiftsi): Likewise.
34125         (*cmpsi_shiftsi_swp): Likewise.
34126         (*movsicc_insn): Likewise.
34127         (*cond_move): Likewise.
34128         (*if_plus_move): Likewise.
34129         (*if_move_plus): Likewise.
34130         (*if_arith_move): Likewise.
34131         (*if_move_arith): Likewise.
34132         (*if_shift_move): Likewise.
34133         (*if_move_shift): Likewise.
34134         (*arm_movtas_ze): Likewise.
34135         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
34136         redundancy and type attribute.
34137         (*thumb2_movsi_insn): Fix type attribute.
34138         (*thumb2_addsi_short): Likewise.
34139         (thumb2_addsi3_compare0): Likewise.
34140         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
34141         attributes accordingly.
34143 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
34145         PR other/65911
34146         * function.c (pad_to_arg_alignment): Add parentheses.
34148 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
34150         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
34151         libgcc/config/frv/elf-lib.h.
34153 2015-04-28  Tom de Vries  <tom@codesourcery.com>
34155         * tree-call-cdce.c: Fix example in header comment.
34157 2015-04-28  Richard Biener  <rguenther@suse.de>
34159         PR tree-optimization/62283
34160         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
34161         fails fatally and we are vectorizing a basic-block simply
34162         cause the child to be constructed piecewise.
34163         (vect_analyze_slp_cost_1): Adjust.
34164         (vect_detect_hybrid_slp_stmts): Likewise.
34165         (vect_bb_slp_scalar_cost): Likewise.
34166         (vect_get_constant_vectors): For piecewise constructed
34167         constants place them after the last def.
34168         (vect_get_slp_defs): Adjust.
34169         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
34170         externals for basic-block vectorization.
34172 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34174         PR target/63503
34175         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
34176         aarch64-*-*.
34177         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
34178         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
34179         (AARCH64_TUNE_FMA_STEERING): Likewise.
34180         * config/aarch64/aarch64-cores.def: Set
34181         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
34182         FMUL/FMADD instructions.
34183         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
34184         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
34185         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
34186         * config/aarch64/cortex-a57-fma-steering.h: New file.
34187         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
34189 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
34191         * gensupport.c (std_preds): Add missing codes to address_operand entry.
34193 2015-04-28  Richard Biener  <rguenther@suse.de>
34195         PR tree-optimization/65851
34196         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
34197         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
34198         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
34199         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
34200         (ccp_visit_phi_node): Adjust.
34201         (evaluate_stmt): For simplifications to SSA names return its
34202         lattice value if that isn't VARYING.  Return immediately when
34203         simplified to a constant.
34204         (visit_assignment): Adjust.
34205         (ccp_visit_stmt): Likewise.
34207 2015-04-28  Tom de Vries  <tom@codesourcery.com>
34209         PR tree-optimization/65818
34210         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
34211         evaluated.
34213 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34215         * calls.c (save_fixed_argument_area): Don't check
34216         ARGS_GROW_DOWNWARD with the preprocessor.
34217         (restore_fixed_argument_area): Likewise.
34218         (mem_overlaps_already_clobbered_arg_p): Likewise.
34219         (check_sibcall_argument_overlap): Likewise.
34220         (expand_call): Likewise.
34221         (emit_library_call_value_1): Likewise.
34222         (store_one_arg): Likewise.
34223         * function.c (assign_parms): Likewise.
34224         (locate_and_pad_parm): Likewise.
34225         (pad_to_arg_alignment): Likewise.
34226         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
34228 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34230         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
34231         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
34232         * calls.c (save_fixed_argument_area): Don't chekc if
34233         ARGS_GROW_DOWNWARD is defined.
34234         (restore_fixed_argument_area): Likewise.
34235         (mem_overlaps_already_clobbered_arg_p): Likewise.
34236         (check_sibcall_argument_overlap): Likewise.
34237         (expand_call): Likewise.
34238         (emit_library_call_value_1): Likewise.
34239         (store_one_arg): Likewise.
34240         * function.c (assign_parms): Likewise.
34241         (locate_and_pad_parm): Likewise.
34242         (pad_to_arg_alignment): Likewise.
34243         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
34245 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34247         * defaults.h (gen_epilogue): New function.
34248         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
34249         defined.
34250         * cfgrtl.c (cfg_layout_finalize): Likewise.
34251         * df-scan.c: Likewise.
34252         * function.c (thread_prologue_and_epilogue_insns): Likewise.
34253         (reposition_prologue_and_epilogue_notes): Likewise.
34254         * reorg.c (find_end_label): Likewise.
34255         * toplev.c: Likewise.
34257 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34259         * bb-reorder.c (HAVE_return): Don't check if its undefined.
34260         * defaults.h (gen_simple_return): New function.
34261         (gen_simple_return): Likewise.
34262         (HAVE_return): Add default definition to false.
34263         (HAVE_simple_return): Likewise.
34264         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
34265         HAVE_return and HAVE_simple_return are defined.
34266         * function.c (gen_return_pattern): Likewise.
34267         (convert_jumps_to_returns): Likewise.
34268         (thread_prologue_and_epilogue_insns): Likewise.
34269         * reorg.c (find_end_label): Likewise.
34270         (dbr_schedule): Likewise.
34271         * shrink-wrap.c: Likewise.
34272         * shrink-wrap.h: Likewise.
34274 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34276         * defaults.h (EPILOGUE_USES): Add default definition of false.
34277         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
34278         * resource.c (init_resource_info): Likewise.
34280 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34282         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
34283         to false.
34284         * dwarf2out.c (field_byte_offset): REmove check if
34285         PCC_BITFIELD_TYPE_MATTERS is defined.
34286         * stor-layout.c (layout_decl): Likewise.
34287         (update_alignment_for_field): Likewise.
34288         (place_field): Likewise.
34290 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34292         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
34293         true.
34294         * regrename.c (check_new_reg_p): Remove check if
34295         HARD_REGNO_RENAME_OK is defined.
34296         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
34298 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34300         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
34301         * cse.c (fold_rtx): Likewise.
34302         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
34303         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
34304         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
34305         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
34306         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
34307         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
34308         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
34309         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
34310         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
34311         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
34312         * Likewise.
34313         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
34314         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
34315         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
34316         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
34317         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
34318         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
34319         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
34320         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
34321         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
34322         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
34323         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
34324         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
34325         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
34326         * doc/tm.texi: Regenerate.
34327         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
34328         either true or false.
34330 2015-04-27  Jeff Law  <law@redhat.com>
34332         PR tree-optimization/65217
34333         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
34334         of them has a single use, make sure it is the LHS of the implied
34335         copy.
34337 2015-04-28  Alan Modra  <amodra@gmail.com>
34339         PR target/65810
34340         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
34341         (offsettable_ok_by_alignment): Use minimum of decl and toc
34342         pointer alignment.  Replace dead code with assertion.
34343         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
34344         case if size exceeds toc pointer alignment.
34345         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
34346         (rs6000_emit_move): Likewise.
34347         * configure.ac: Add linker toc pointer alignment check.
34348         * configure: Regenerate.
34349         * config.in: Regenerate.
34351 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
34353         * config.gcc: Add h8300-*-linux.
34354         * config/h8300/linux.h: New.
34355         * config/h8300/t-linux: New.
34356         * config/h8300/h8300.c (h8300_option_override): Normal mode
34357         is not supported for h8300-*-linux.
34358         (h8300_file_start): Target priority change.
34359         (get_shift_alg): Likewise.
34360         (h8300_shift_need_scratch_p): Likewise.
34361         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
34362         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
34364 2015-04-27  Caroline Tice  <cmtice@google.com>
34366         * final.c (final_scan_insn):  Output cold_function_name as function
34367         type.
34368         * varasm.c (cold_function_name):  Make global.
34369         (assemble_start_function):  Re-set cold_function_name.
34370         (assemble_end_function): Output cold partition size.
34371         * varasm.h (cold_function_name):  Declare global.
34373 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
34375         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
34376         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
34377         constraint.
34378         (*movxi_internal_avx512f): Ditto.
34379         (define_split): Check for xmm16+, when splitting scalar float_extend.
34380         (*extendsfdf2_mixed): Use "v" constraint.
34381         (define_split): Check for xmm16+, when splitting scalar float_truncate.
34382         (*truncdfsf_fast_sse): Use "v" constraint.
34383         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
34384         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
34385         (define_peephole2): Check for xmm16+, when converting scalar
34386         float_truncate.
34387         (define_peephole2): Check for xmm16+, when converting scalar
34388         float_extend.
34389         (*fop_<mode>_comm_mixed): Use "v" constraint.
34390         (*fop_<mode>_comm_sse): Ditto.
34391         (*fop_<mode>_1_mixed): Ditto.
34392         (*sqrt<mode>2_sse): Ditto.
34393         (*ieee_s<ieee_maxmin><mode>3): Ditto.
34395 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34397         * combine.c (simplify_if_then_else): Use std::swap instead
34398         of manually swapping.
34399         (known_cond): Likewise.
34400         (simplify_comparison): Likewise.
34402 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
34404         PR target/64579
34405         * config/rs6000/htm.md: Remove all define_expands.
34406         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
34407         UNSPECV_HTM_TABORTWCI): Remove.
34408         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
34409         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
34410         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
34411         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
34412         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
34413         tabortwci_internal): Remove define_insns.
34414         (tabort<wd>c, tabort<wd>ci): New define_insns.
34415         (tabort): Use gpc_reg_operand.
34416         (tcheck): Remove operand.
34417         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
34418         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
34419         expected value.
34420         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
34421         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
34422         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
34423         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
34424         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
34425         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
34426         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
34427         (tcheck): Remove builtin argument.
34428         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
34429         not TARGET_64BIT.
34430         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
34431         tabortdc and tabortdci builtins when not in 64-bit mode.
34432         Modify code to handle the loss of the HTM define_expands.
34433         Emit code to copy the CR register to TARGET.
34434         (htm_init_builtins): Modify code to handle the loss of the HTM
34435         define_expands.
34436         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
34437         (RS6000_BTC_64BIT): Likewise.
34438         (RS6000_BTC_CR): New macro.
34439         * doc/extend.texi: Update documentation for htm builtins.
34441 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34443         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
34444         of manually swapping.
34445         (simplify_associative_operation): Likewise.
34446         (simplify_binary_operation): Likewise.
34447         (simplify_plus_minus): Likewise.
34448         (simplify_relational_operation): Likewise.
34449         (simplify_ternary_operation): Likewise.
34451 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
34453         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
34454         (xs_hi_nonmemory_operand): Remove error.
34455         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
34456         general_operand rather than xs_hi_general_operand.
34458 2015-04-27  Richard Biener  <rguenther@suse.de>
34460         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
34461         (record_equivalences_from_stmt): Valueize rhs.
34462         (record_equality): Canonicalize x and y order via
34463         tree_swap_operands_p.  Do not swap operands for same loop depth.
34465 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
34467         PR target/65296
34468         PR target/65895
34469         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
34470         Add hint how to use own spec file.
34472 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
34474         PR tree-optimization/65875
34475         * tree-vrp.c (update_value_range): If in is_new case setting
34476         old_vr to VR_VARYING, also set new_vr to it.  Remove
34477         old_vr->type == VR_VARYING test.
34478         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
34479         SSA_PROP_INTERESTING if update_value_range returned true,
34480         but new range is VR_VARYING.
34482 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34484         * combine.c (sign_extend_short_imm): New.
34485         (set_nonzero_bits_and_sign_copies): Use above new function for sign
34486         extension of src short immediate.
34487         (reg_nonzero_bits_for_combine): Likewise for tem.
34489 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
34491         * stor-layout.c (self_referential_component_ref_p): New predicate.
34492         (copy_self_referential_tree_r): Use it.
34493         (self_referential_size): Punt for simple operations directly involving
34494         self-referential component references.
34495         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
34497 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
34499         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
34501 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
34503         * vec.h (vec): Make splice arguments const.  Update definitions
34504         accordingly.
34506 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
34508         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
34509         alternatives.
34511 2015-04-26  Tom de Vries  <tom@codesourcery.com>
34513         PR tree-optimization/65826
34514         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
34516 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
34518         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
34519         (*madd3<mode>): Ditto.
34520         (*msub4<mode>): Ditto.
34521         (*msub3<mode>): Ditto.
34522         (*nmadd4<mode>): Ditto.
34523         (*nmadd3<mode>): Ditto.
34524         (*nmadd4<mode>_fastmath): Ditto.
34525         (*nmadd3<mode>_fastmath): Ditto.
34526         (*nmsub4<mode>): Ditto.
34527         (*nmsub3<mode>): Ditto.
34528         (*nmsub4<mode>_fastmath): Ditto.
34529         (*nmsub3<mode>_fastmath): Ditto.
34531 2015-04-24  Jason Merrill  <jason@redhat.com>
34533         PR c++/50800
34534         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
34535         down when building TYPE_CANONICAL.
34536         (build_pointer_type_for_mode): Likewise.
34538 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
34540         * genrecog.c (validate_pattern): Check matching constraint refers
34541         to a lower numbered operand.
34543 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
34545         PR target/65849
34546         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
34547         save to independent variables use the Save attribute.  This will
34548         allow these options to be modified with the #pragma/attribute
34549         target support.
34550         (-mallow-movmisalign): Likewise.
34551         (-mallow-df-permute): Likewise.
34552         (-msched-groups): Likewise.
34553         (-malways-hint): Likewise.
34554         (-malign-branch-targets): Likewise.
34555         (-mvectorize-builtins): Likewise.
34556         (-msave-toc-indirect): Likewise.
34558         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
34559         can be set via the #pragma/attribute target support.
34560         (rs6000_opt_vars): Likewise.
34561         (rs6000_inner_target_options): If VSX was set, also set
34562         -mno-avoid-indexed-addresses.
34564 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34566         * config/arm/iterators.md (shiftable_ops): Rename to...
34567         (SHIFTABLE_OPS): ... This.  Update use in comments.
34568         (ior_xor): Rename to...
34569         (IOR_XOR): ... This.
34570         (vqh_ops): Rename to...
34571         (VQH_OPS): ... This.
34572         (vqhs_ops): Rename to...
34573         (VQHS_OPS): ... This.
34574         (rshifts): Rename to...
34575         (RSHIFTS): ... This.
34576         (returns): Rename to...
34577         (RETURNS): ... This.
34578         * config/arm/arm.md: Update uses of the above.
34579         * config/arm/neon.md: Likewise.
34581 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34583         * config.host (case ${host}): Add aarch64*-*-linux case.
34584         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
34585         fields to all the cores.
34586         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
34587         Add MCPU_MTUNE_NATIVE_SPECS.
34588         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
34589         field to all extensions.
34590         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
34591         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
34592         Adjust definition of AARCH64_OPT_EXTENSION.
34593         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
34594         (MCPU_MTUNE_NATIVE_SPECS): Define.
34595         * config/aarch64/driver-aarch64.c: New file.
34596         * config/aarch64/x-arch64: New file.
34597         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
34598         -mtune and -march.
34600 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
34601             Wei Mi  <wmi@google.com>
34603         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
34604         * config/i386/i386.c (extract_base_offset_in_addr): New function.
34605         (ix86_operands_ok_for_move_multiple): Ditto.
34606         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
34607         (movlpd/movhpd to movupd peephole2): Ditto.
34609 2015-04-24  Marek Polacek  <polacek@redhat.com>
34611         PR c/61534
34612         * input.h (from_macro_expansion_at): Define.
34614         PR c/63357
34615         * doc/invoke.texi: Update description of -Wlogical-op.
34617 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34619         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
34620         ternary operator in fprintf and harmonize spacing.
34622 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
34624         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
34625         Mark operand1 commutative.
34627 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
34629         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
34630         input operands in memory.
34631         (*vec_concatv2si_sse4_1): Ditto.
34632         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
34633         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
34634         register_operand.
34635         (vec_extract_hi_v32hi): Ditto.
34636         (vec_extract_hi_v64hi): Ditto.
34637         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
34639 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34640             Steven Bosscher <steven@gcc.gnu.org>
34642         PR rtl-optimization/34503
34643         * cprop.c (cprop_reg_p): New.
34644         (hash_scan_set): Use above function to check if register can be
34645         propagated.
34646         (find_avail_set): Return up to two sets, one whose source is a
34647         register and one whose source is a constant.  Sets are returned in an
34648         array passed as parameter rather than as a return value.
34649         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
34650         sets returned by find_avail_set, starting with the one whose source is
34651         a constant. Use cprop_reg_p to check if register can be propagated.
34652         (do_local_cprop): Use cprop_reg_p to check if register can be
34653         propagated.
34654         (implicit_set_cond_p): Likewise.
34656 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
34658         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
34659         (sem_function::equals): IGNORED_NODES parameter is now unused;
34660         update call of equals_private.
34661         (sem_function::equals_private): Do not call equals_wpa; skip
34662         gimple body matching if there is no body.
34663         (sem_function::init): Add logic to hash tthunk info.
34664         (sem_function::parse): Also parse thunks.
34665         * ipa-icf.h (equals_private): Update declaration.
34667 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34669         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
34670         asterisk from name so this can be generated directly.
34671         (*altivec_stvx_<mode>_internal): Likewise.
34672         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
34673         that this is never called during or after reload/lra.
34674         (rs6000_frame_related): Remove split_reg
34675         argument and logic that references it.
34676         (emit_frame_save): Remove last parameter from call to
34677         rs6000_frame_related.
34678         (rs6000_emit_prologue): Remove last parameter from eight calls to
34679         rs6000_frame_related.  Force generation of stvx instruction for
34680         Altivec register saves.  Remove split_reg handling, which is no
34681         longer needed.
34682         (rs6000_emit_epilogue):  Force generation of lvx instruction for
34683         Altivec register restores.
34685 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34687         * config/rs6000/rs6000.opt (mcrypto): Change option description to
34688         match category changes in ISA 2.07B.
34690 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34692         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
34693         iterators.
34694         (cmp_op, cmp_type): New code attributes.
34695         (NEON_VCMP, NEON_VACMP): New int iterators.
34696         (cmp_op_unsp): New int attribute.
34697         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
34698         (neon_vceq<mode>): Delete.
34699         (neon_vc<cmp_op><mode>_insn): New pattern.
34700         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
34701         (neon_vcgeu<mode>): Delete.
34702         (neon_vcle<mode>): Likewise.
34703         (neon_vclt<mode>: Likewise.
34704         (neon_vcage<mode>): Likewise.
34705         (neon_vcagt<mode>): Likewise.
34706         (neon_vca<cmp_op><mode>): New define_expand.
34707         (neon_vca<cmp_op><mode>_insn): New pattern.
34708         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
34710 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
34712         * tree.h (attribute_value_equal): Declare.
34713         * tree.c (attribute_value_equal): Export.
34715 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
34717         * ipa-icf.c (sem_item::compare_attributes): New function.
34718         (sem_item::compare_referenced_symbol_properties): Compare variable
34719         attributes.
34720         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
34721         (sem_function::param_used_p): New function.
34722         (sem_function::equals_wpa): Fix attribute comparsion; match
34723         parameter type codes; do not compare paremter flags when
34724         they are not used; compare edge flags; compare indirect calls.
34725         (sem_item::update_hash_by_addr_refs): Hash reference type.
34726         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
34727         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
34728         reference use type.
34729         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
34730         * ipa-icf.h (compare_attributes, param_used_p): Declare.
34732 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
34734         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
34735         cleanup.
34736         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
34737         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
34738         (sem_item::compare_referenced_symbol_properties): New.
34739         (sem_item::hash_referenced_symbol_properties): New.
34740         (sem_item::compare_cgraph_references): Rename to ...
34741         (sem_item::compare_symbol_references): ... this one; use
34742         compare_referenced_symbol_properties.
34743         (sem_function::equals_wpa): Do not compare
34744         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
34745         DECL_IS_OPERATOR_NEW; compare pointer sizes.
34746         (sem_item::update_hash_by_addr_refs): Call
34747         hash_referenced_symbol_properties.
34748         (sem_item::update_hash_by_local_refs): Cleanup.
34749         (sem_function::merge): Do not mix up symbol properties.
34750         (sem_variable::equals_wpa): Use compare_symbol_references.
34751         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
34752         (sem_item::hash_referenced_symbol_properties): New.
34753         (sem_item::compare_symbol_references): New.
34754         (sem_item::compare_cgraph_references): Remove.
34756 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
34758         PR target/26702
34759         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
34760         Emit size of local.
34762 2015-04-23  Nick Clifton  <nickc@redhat.com>
34764         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
34765         ATTRIBUTE_UNUSED to x parameter.
34766         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
34768 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34770         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
34771         TARGET_CRYPTO to TARGET_P8_VECTOR>
34772         (crypto_vpermxor_<mode>): Likewise.
34773         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
34774         (BU_CRYPTO_3A): Likewise.
34775         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
34776         (BU_CRYPTO_OVERLOAD_3A): New #define.
34777         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
34778         (VPMSUMH): Likewise.
34779         (VPMSUMW): Likewise.
34780         (VPMSUMD): Likewise.
34781         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
34782         (VPERMXOR_V4SI): Likewise.
34783         (VPERMXOR_V8HI): Likewise.
34784         (VPERMXOR_V16QI): Likewise.
34785         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
34786         BU_CRYPTO_OVERLOAD_2A.
34787         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
34788         BU_CRYPTO_OVERLOAD_3A.
34789         * config/rs6000/rs6000.opt (mcrypto): Change description of
34790         option.
34792 2015-04-23  Richard Biener  <rguenther@suse.de>
34794         * passes.def: Remove copy propagation passes run directly after CCP.
34795         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
34796         SSA names.
34797         (ccp_visit_phi_node): Rework to handle first executable edge
34798         specially.
34800 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
34802         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
34803         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
34804         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
34805         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
34806         (thumb_legimitimize_reload_address): Remove.
34807         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
34808         Remove.
34809         (thumb_legimitimize_reload_address): Remove.
34811 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34813         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
34815 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34817         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
34818         MAX_LDM_STM_OPS.
34819         (store_multiple): Likewise.
34821 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34823         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
34824         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
34825         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
34826         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
34827         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
34828         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
34829         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
34830         Specify issue_rate value.
34831         (arm_issue_rate): Look up issue rate from tuning structs. Remove
34832         large switch statement.
34833         (arm_marvell_pj4_tune): New struct.
34834         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
34835         struct.
34837 2015-04-23  Richard Biener  <rguenther@suse.de>
34839         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
34840         (vect_find_last_store_in_slp_instance): Rename to ...
34841         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
34842         (vect_analyze_slp_cost_1): Use vector_load for constant defs
34843         and vec_construct for external defs when estimating prologue cost.
34844         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
34845         Compute costs here only when vectorizing loops.
34846         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
34847         have been determined.
34848         (vect_schedule_slp_instance): Simplify vectorized code placement
34849         and prepare for in-BB external defs.
34850         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
34851         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
34852         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
34853         guard.
34854         (vect_model_load_cost): Likewise.
34855         (vectorizable_store): Instead add it here.
34856         (vectorizable_load): Likewise.
34857         (vect_is_simple_use): Dump def type textually.
34859 2015-04-23  Richard Biener  <rguenther@suse.de>
34861         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
34862         * cfgloop.c (verify_loop_structure): Verify the root loop node.
34863         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
34864         instead of get_eh_region_from_lp_number.
34865         * loop-init.c (fix_loop_structure): If we removed a loop, reset
34866         the SCEV cache.
34868 2015-04-23  Anton Blanchard  <anton@samba.org>
34870         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
34871         need for -mprofile-kernel to save LR to stack.
34873 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34875         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
34876         adjustments.
34877         (insn_is_swappable_p): Return 1 for a convert from double to
34878         single precision when all of its uses are splats of BE element
34879         zero.
34881 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
34883         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
34885 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34887         PR target/65456
34888         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
34889         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
34890         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
34891         option.
34892         (rs6000_builtin_mask_for_load): Return 0 for targets with
34893         efficient unaligned VSX accesses so that the vectorizer will use
34894         direct unaligned loads.
34895         (rs6000_builtin_support_vector_misalignment): Always return true
34896         for targets with efficient unaligned VSX accesses.
34897         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
34898         stores on targets with efficient unaligned VSX accesses is almost
34899         always the same as the cost of an aligned load or store, so model
34900         it that way.
34901         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
34902         unaligned vectors if we have efficient unaligned VSX accesses.
34903         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
34904         undocumented option.
34906 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34908         Revert:
34909         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
34911         * config.gcc (LIBC_MUSL): New tm_defines macro.
34912         * config/linux.h (OPTION_MUSL): Define.
34913         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
34914         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
34915         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
34917         * config/linux.opt (mmusl): New option.
34918         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
34919         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
34921         * configure: Regenerate.
34923 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
34925         * config.gcc (LIBC_MUSL): New tm_defines macro.
34926         * config/linux.h (OPTION_MUSL): Define.
34927         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
34928         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
34929         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
34931         * config/linux.opt (mmusl): New option.
34932         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
34933         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
34935         * configure: Regenerate.
34937 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
34939         * doc/invoke.texi (-fsanitize-sections): Update description.
34940         * asan.c (set_sanitized_sections): Parse incoming arg.
34941         (section_sanitized_p): Support wildcards.
34943 2015-04-22  Tom de Vries  <tom@codesourcery.com>
34945         PR tree-optimization/65823
34946         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
34947         equality between ap_copy and ap.
34949 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34951         PR target/47098
34952         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
34954 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34956         PR target/47122
34957         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
34959 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34961         PR target/55144
34962         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
34963         remove already contained t-files.
34965 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34967         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
34968         Remove unneeded forward declarations.
34969         (suitable_for_tail_call_opt_p): Commentary typo fix.
34971 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34973         * varasm.c (emit_bss): Remove redundant guard.
34975 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34977         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
34979 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34981         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
34983 2015-04-22  Hale Wang  <hale.wang@arm.com>
34984             Terry Guo  <terry.guo@arm.com>
34986         PR rtl-optimization/64818
34987         * combine.c (can_combine_p): Don't combine user-specified
34988         register if it is in an asm input.
34990 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
34992         PR ipa/65076
34993         * passes.def (early_optimizations): Add pass_dse.
34995 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34997         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
34998         * reorg.c (redundant_insn): Remove ifdef
34999         INSN_REFERENCES_ARE_DELAYED.
35000         * resource.c (mark_referenced_resources): Likewise.
35002 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
35004         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
35005         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
35006         * resource.c (mark_set_resources): Likewise.
35008 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
35010         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
35011         * cfgcleanup.c (flow_find_cross_jump): Likewise.
35012         (flow_find_head_matching_sequence): Likewise.
35013         (try_head_merge_bb): Likewise.
35014         * combine.c (can_combine_p): Likewise.
35015         (try_combine): Likewise.
35016         (distribute_notes): Likewise.
35017         * df-problems.c (can_move_insns_across): Likewise.
35018         * final.c (final): Likewise.
35019         * gcse.c (insert_insn_end_basic_block): Likewise.
35020         * ira.c (find_moveable_pseudos): Likewise.
35021         * reorg.c (try_merge_delay_insns): Likewise.
35022         (fill_simple_delay_slots): Likewise.
35023         (fill_slots_from_thread): Likewise.
35024         * sched-deps.c (sched_analyze_2): Likewise.
35026 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
35028         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
35029         PIC_OFFSET_TABLE_REGNUM.
35031 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
35033         * alias.c (init_alias_target): Remove ifdef
35034         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
35035         * df-scan.c (df_insn_refs_collect): Likewise.
35036         (df_get_regular_block_artificial_uses): Likewise.
35037         (df_get_eh_block_artificial_uses): Likewise.
35038         (df_get_entry_block_def_set): Likewise.
35039         (df_get_exit_block_use_set): Likewise.
35040         * emit-rtl.c (gen_rtx_REG): Likewise.
35041         * ira.c (ira_setup_eliminable_regset): Likewise.
35042         * reginfo.c (init_reg_sets_1): Likewise.
35043         * regrename.c (rename_chains): Likewise.
35044         * reload1.c (reload): Likewise.
35045         (eliminate_regs_in_insn): Likewise.
35046         * resource.c (mark_referenced_resources): Likewise.
35047         (init_resource_info): Likewise.
35049 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
35051         * defaults.h (MASK_RETURN_ADDR): New definition.
35052         * except.c (expand_builtin_extract_return_addr): Remove ifdef
35053         MASK_RETURN_ADDR.
35055 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
35057         * defaults.h (RETURN_ADDR_OFFSET): New definition.
35058         * except.c (expand_builtin_extract_return_addr): Remove ifdef
35059         RETURN_ADDR_OFFSET.
35060         (expand_builtin_frob_return_addr): Likewise.
35062 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
35064         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
35065         (try_redirect_by_replacing_jump): Likewise.
35066         (rtl_tidy_fallthru_edge): Likewise.
35067         * combine.c (insn_a_feeds_b): Likewise.
35068         (find_split_point): Likewise.
35069         (simplify_set): Likewise.
35070         * cprop.c (cprop_jump): Likewise.
35071         * cse.c (cse_extended_basic_block): Likewise.
35072         * df-problems.c (can_move_insns_across): Likewise.
35073         * function.c (emit_use_return_register_into_block): Likewise.
35074         * haifa-sched.c (sched_init): Likewise.
35075         * ira.c (find_moveable_pseudos): Likewise.
35076         * loop-invariant.c (find_invariant_insn): Likewise.
35077         * lra-constraints.c (curr_insn_transform): Likewise.
35078         * postreload.c (reload_combine_recognize_const_pattern):
35079         * Likewise.
35080         * reload.c (find_reloads): Likewise.
35081         * reorg.c (delete_scheduled_jump): Likewise.
35082         (steal_delay_list_from_target): Likewise.
35083         (steal_delay_list_from_fallthrough): Likewise.
35084         (redundant_insn): Likewise.
35085         (fill_simple_delay_slots): Likewise.
35086         (fill_slots_from_thread): Likewise.
35087         (delete_computation): Likewise.
35088         * sched-rgn.c (add_branch_dependences): Likewise.
35090 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
35092         * genconfig.c (main): Always define HAVE_cc0.
35093         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
35094         HAVE_cc0.
35095         * cfgcleanup.c (flow_find_cross_jump): Likewise.
35096         (flow_find_head_matching_sequence): Likewise.
35097         (try_head_merge_bb): Likewise.
35098         * cfgrtl.c (rtl_merge_blocks): Likewise.
35099         (try_redirect_by_replacing_jump): Likewise.
35100         (rtl_tidy_fallthru_edge): Likewise.
35101         * combine.c (do_SUBST_MODE): Likewise.
35102         (insn_a_feeds_b): Likewise.
35103         (combine_instructions): Likewise.
35104         (can_combine_p): Likewise.
35105         (try_combine): Likewise.
35106         (find_split_point): Likewise.
35107         (subst): Likewise.
35108         (simplify_set): Likewise.
35109         (distribute_notes): Likewise.
35110         * cprop.c (cprop_jump): Likewise.
35111         * cse.c (cse_extended_basic_block): Likewise.
35112         * df-problems.c (can_move_insns_across): Likewise.
35113         * final.c (final): Likewise.
35114         (final_scan_insn): Likewise.
35115         * function.c (emit_use_return_register_into_block): Likewise.
35116         * gcse.c (insert_insn_end_basic_block): Likewise.
35117         * haifa-sched.c (sched_init): Likewise.
35118         * ira.c (find_moveable_pseudos): Likewise.
35119         * loop-invariant.c (find_invariant_insn): Likewise.
35120         * lra-constraints.c (curr_insn_transform): Likewise.
35121         * optabs.c (prepare_cmp_insn): Likewise.
35122         * postreload.c (reload_combine_recognize_const_pattern):
35123         * Likewise.
35124         * reload.c (find_reloads): Likewise.
35125         (find_reloads_address_1): Likewise.
35126         * reorg.c (delete_scheduled_jump): Likewise.
35127         (steal_delay_list_from_target): Likewise.
35128         (steal_delay_list_from_fallthrough): Likewise.
35129         (try_merge_delay_insns): Likewise.
35130         (redundant_insn): Likewise.
35131         (fill_simple_delay_slots): Likewise.
35132         (fill_slots_from_thread): Likewise.
35133         (delete_computation): Likewise.
35134         (relax_delay_slots): Likewise.
35135         * sched-deps.c (sched_analyze_2): Likewise.
35136         * sched-rgn.c (add_branch_dependences): Likewise.
35138 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
35140         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
35141         that is trivially ded on non cc0 targets.
35142         (simplify_set): Likewise.
35143         (mark_used_regs_combine): Likewise.
35144         * cse.c (new_basic_block): Likewise.
35145         (fold_rtx): Likewise.
35146         (cse_insn): Likewise.
35147         (cse_extended_basic_block): Likewise.
35148         (set_live_p): Likewise.
35149         * rtlanal.c (canonicalize_condition): Likewise.
35150         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
35152 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
35154         * conditions.h: Define macros even if HAVE_cc0 is undefined.
35155         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
35156         * final.c: Likewise.
35157         * jump.c: Likewise.
35158         * recog.c: Likewise.
35159         * recog.h: Declare functions even when HAVE_cc0 is undefined.
35160         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
35162 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
35164         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
35165         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
35166         * builtins.c (expand_builtin): Remove check if
35167         EH_RETURN_DATA_REGNO is defined.
35168         * df-scan.c (df_bb_refs_collect): Likewise.
35169         (df_get_exit_block_use_set): Likewise.
35170         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
35171         * ira-lives.c (process_bb_node_lives): Likewise.
35172         * lra-lives.c (process_bb_lives): Likewise.
35174 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
35176         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
35177         FIRST_PSEUDO_REG): New.
35178         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
35179         (ARG_POINTER_REGNUM): Define to ARGP_REG.
35180         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
35181         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
35182         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
35183         (FIRST_INT_REG): New.
35184         (LAST_INT_REG): New.
35185         (FIRST_*_REG): Define using *_REG.
35186         (LAST_*_REG): Ditto.
35187         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
35188         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
35189         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
35191 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35193         * expmed.c: (synth_mult): Only assume overlapping
35194         shift with previous steps in alg_sub_t_m2 case.
35196 2015-04-21  Richard Biener  <rguenther@suse.de>
35198         PR tree-optimization/65650
35199         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
35200         transitions involving copies.
35201         (set_lattice_value): Adjust for copy lattice state.
35202         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
35203         if that doesn't dominate the merge point.
35204         (bit_value_unop): Adjust what we treat as varying mask.
35205         (bit_value_binop): Likewise.
35206         (bit_value_assume_aligned): Likewise.
35207         (evaluate_stmt): When we simplified to a SSA name record a copy
35208         instead of dropping to varying.
35209         (visit_assignment): Simplify.
35211         * gimple-match.h (gimple_simplify): Add another callback.
35212         * gimple-fold.c (fold_stmt_1): Adjust caller.
35213         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
35214         for the 2nd callback.
35215         * gimple-match-head.c (gimple_simplify): Add a callback that is
35216         used to valueize the stmt operands and use it that way.
35218 2015-04-21  Richard Biener  <rguenther@suse.de>
35220         PR tree-optimization/65788
35221         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
35223 2015-04-21  Richard Biener  <rguenther@suse.de>
35225         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
35226         vec_construct cost by vec_stmt_cost.
35228 2015-04-21  Richard Biener  <rguenther@suse.de>
35230         * cfghooks.h (create_basic_block): Replace with two overloads
35231         for RTL and GIMPLE.
35232         (split_block): Likewise.
35233         * cfghooks.c (split_block): Rename to ...
35234         (split_block_1): ... this.
35235         (split_block): Add two type-safe overloads for RTL and GIMPLE.
35236         (split_block_after_labels): Call split_block_1.
35237         (create_basic_block): Rename to ...
35238         (create_basic_block_1): ... this.
35239         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
35240         (create_empty_bb): Call create_basic_block_1.
35241         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
35242         split_block_after_labels.
35243         * omp-low.c (expand_parallel_call): Likewise.
35244         (expand_omp_target): Likewise.
35245         (simd_clone_adjust): Likewise.
35246         * tree-chkp.c (chkp_get_entry_block): Likewise.
35247         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
35248         create_basic_block overload.
35249         (cgraph_node::expand_thunk): Likewise.
35250         * tree-cfg.c (make_blocks): Likewise.
35251         (handle_abnormal_edges): Likewise.
35252         * tree-inline.c (copy_bb): Likewise.
35254 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35256         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
35257         New pattern.
35258         (*xor_one_cmplsidi3_ze): Likewise.
35260 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35262         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
35263         use df_remove_problem rather than manually removing problems, leaving
35264         holes in df->problems_in_order[].
35266 2015-04-21  Tom de Vries  <tom@codesourcery.com>
35268         PR tree-optimization/65802
35269         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
35271 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35273         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
35274         Increase to 128.
35275         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
35276         at '.'.  Assert that there's enough space for everything.
35278 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
35280         PR tree-optimization/64950
35281         Revert:
35282         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
35284         PR target/41089
35285         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
35286         as volatile.
35288 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
35290         PR rtl-optimization/64916
35291         * cfgcleanup.c (values_equal_p): New function.
35292         (can_replace_by): Use it.
35294 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
35296         PR c++/65801
35297         * doc/invoke.texi ([-Wnarrowing]): Update.
35299 2015-04-20  Jeff Law  <law@redhat.com>
35301         PR tree-optimization/65658
35302         * tree-ssa-threadupdate.c (redirection_block_p): Remove
35303         redundant test for GIMPLE_ASSIGN in last change.
35305 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
35307         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
35308         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
35309         (legitimize_tls_address): Ditto.
35310         (ix86_expand_move): Ditto.
35311         (ix86_expand_binary_operator): Remove reload_in_progress checks.
35312         (ix86_expand_unary_operator): Ditto.
35313         * config/i386/predicates.md (index_register_operand): Ditto.
35315 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
35317         * reorg.c (try_merge_delay_insns): Improve correctness checking
35318         for targets with multiple delay slots.
35320 2015-04-20  Jeff Law  <law@redhat.com>
35322         PR tree-optimization/65658
35323         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
35324         statements too.
35326 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
35328         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
35329         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
35330         Delete.
35332 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
35334         PR debug/65807
35335         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
35337 2015-04-20  Richard Biener  <rguenther@suse.de>
35339         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
35340         * gimple-fold.c (gimple_build_valueize): New function.
35341         (gimple_build): Always use gimple_build_valueize as valueize hook.
35343 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
35345         PR target/64134
35346         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
35347         and overwrite variable parts if <= 1/2 the elements are variable.
35349 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
35351         PR rtl-optimization/65805
35352         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
35353         Don't use difference of offset and previous offset if
35354         update_sp_offset is non-zero.
35355         (eliminate_regs_in_insn): Ditto.
35356         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
35357         lra_eliminate_regs_1 call.
35358         * lra-constraints.c (get_equiv_with_elimination): Ditto.
35360 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
35362         * hash-table.h: Remove version of hash_table that stored value_type *.
35363         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
35364         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
35365         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
35366         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
35367         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
35368         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
35369         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
35370         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
35371         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
35372         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
35373         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
35374         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
35375         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
35376         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
35377         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
35378         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
35380 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35381             Jakub Jelinek  <jakub@redhat.com>
35383         PR target/65787
35384         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
35385         subsequent SH_NONE operand does not overwrite an existing *special
35386         value.
35387         (adjust_extract): Handle case where a vec_extract operation is
35388         wrapped in a PARALLEL.
35390 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
35392         PR target/65780
35393         * config/i386/i386.c (ix86_binds_local_p): Define only if
35394         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
35396 2015-04-17  Jeff Law  <law@redhat.com>
35398         PR tree-optimization/47679
35399         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
35400         * tree-ssa-scopedtables.c: New file.
35401         * tree-ssa-scopedtables.h: New file.
35402         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
35403         (const_and_copies): Change name/type.
35404         (record_const_or_copy): Move into tree-ssa-scopedtables.c
35405         (record_const_or_copy_1): Similarly.
35406         (restore_vars_to_original_value): Similarly.
35407         (pass_dominator::execute): Create and destroy const_and_copies table.
35408         (thread_across_edge): Update passing of const_and_copies.
35409         (record_temporary_equivalence): Use method calls rather than
35410         manipulating const_and_copies directly.
35411         (record_equality, cprop_into_successor_phis): Similarly.
35412         (dom_opt_dom_walker::before_dom_children): Similarly.
35413         (dom_opt_dom_walker::after_dom_children): Similarly.
35414         (eliminate_redundant_computations): Similarly.
35415         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
35416         (record_temporary_equivalence): Likewise.
35417         (invalidate_equivalences): Likewise.
35418         (record_temporary_equivalences_from_phis): Update due to type
35419         change of const_and_copies.  Use method calls rather than
35420         manipulating the stack directly.
35421         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
35422         (thread_through_normal_block, thread_across_edge): Likewise.
35423         (thread_across_edge): Likewise.
35424         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
35425         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
35426         of equiv_stack.
35427         (identify_jump_threads): Update due to type change of equiv_stack.
35428         (finalize_jump_threads): Delete the equiv_stack when complete.
35430 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
35432         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
35433         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
35434         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
35436 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
35438         PR target/65535
35439         * config.gcc: Exit with a comment when we do not have a major version
35440         number for the FreeBSD target.
35442 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
35444         PR target/65689
35445         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
35446         maybe_allows_mem bitfields.
35447         (maybe_allows_none_start, maybe_allows_none_end,
35448         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
35449         maybe_allows_mem_end): New variables.
35450         (compute_maybe_allows): New function.
35451         (add_constraint): Use it to initialize maybe_allows_reg and
35452         maybe_allows_mem fields.
35453         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
35454         is_address constraints such that those that allow neither mem nor
35455         reg come first, then those that only allow reg but not mem, then
35456         those that only allow mem but not reg, then the rest.
35457         (write_allows_reg_mem_function): New function.
35458         (write_tm_preds_h): Call it.
35459         * stmt.c (parse_output_constraint, parse_input_constraint): Use
35460         the generated insn_extra_constraint_allows_reg_mem function
35461         instead of always setting *allows_reg = true; *allows_mem = true;
35462         for unknown extra constraints.
35464 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
35466         PR target/65780
35467         * output.h (default_binds_local_p_3): New.
35468         * varasm.c (default_binds_local_p_3): Make it public.  Take an
35469         argument to indicate if common symbol may be local.  If common
35470         symbol may be local, treat non-external variable as defined
35471         locally.
35472         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
35473         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
35474         * config/i386/i386.c (ix86_binds_local_p): New.
35475         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
35476         ix86_binds_local_p.
35478 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
35480         PR debug/65771
35481         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
35482         trying mem_loc_descriptor on XEXP (rtl, 0).
35484 2015-04-17  Martin Liska  <mliska@suse.cz>
35486         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
35487         Release symbol_compare_collection.
35488         * ipa-reference.c: Add TODO that a vector should be released.
35490 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
35492         PR target/65296
35493         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
35494         to new AVR-LibC file layout (bug #44574).
35495         (*avrlibc_devicelib): Same.
35496         * config/avr/avr-mcus.def: Adjust comments.
35497         * config/avr/avr.opt (nodevicelib): Adjust help.
35499 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
35501         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
35503 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
35505         PR c++/64527
35506         * gimplify.c (gimplify_init_constructor): Always emit a
35507         side-effecting constructor.
35509 2015-04-17  Tom de Vries  <tom@codesourcery.com>
35511         PR tree-optimization/64950
35512         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
35513         in cfun->curr_properties.
35514         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
35515         if we generate an IFN_VA_ARG.
35516         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
35517         function if PROP_gimple_lva is not set in src function.
35519 2015-04-17  Tom de Vries  <tom@codesourcery.com>
35520             Michael Matz  <matz@suse.de>
35522         PR tree-optimization/64950
35523         * gimple-iterator.c (update_modified_stmts): Remove static.
35524         * gimple-iterator.h (update_modified_stmts): Declare.
35525         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
35526         (gimplify_va_arg_internal): New function.
35527         (gimplify_va_arg_expr): Use IFN_VA_ARG.
35528         * gimplify.h (gimplify_va_arg_internal): Declare.
35529         * internal-fn.c (expand_VA_ARG): New unreachable function.
35530         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
35531         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
35532         (expand_ifn_va_arg): New function.
35533         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
35534         (pass_stdarg::execute): Call expand_ifn_va_arg.
35535         (pass_data_lower_vaarg): New pass_data.
35536         (pass_lower_vaarg): New gimple_opt_pass.
35537         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
35538         (make_pass_lower_vaarg): New function.
35539         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
35540         properties_required field.
35541         * passes.def (all_passes): Add pass_lower_vaarg.
35542         * tree-pass.h (PROP_gimple_lva): Add define.
35543         (make_pass_lower_vaarg): Declare.
35545 2015-04-17  Tom de Vries  <tom@codesourcery.com>
35547         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
35548         * calls.c (call_expr_flags): Same.
35550 2015-04-17  Tom de Vries  <tom@codesourcery.com>
35552         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
35553         (pass_stdarg::execute): ... here.
35555 2015-04-17  Tom de Vries  <tom@codesourcery.com>
35556             Michael Matz  <matz@suse.de>
35558         * tree-cfg.c (make_blocks_1): Factor out of ...
35559         (make_blocks): ... here.
35560         (make_edges_bb): Factor out of ...
35561         (make_edges): ... here.
35562         (gimple_find_sub_bbs): New function.
35563         * tree-cfg.h (gimple_find_sub_bbs): Declare.
35565 2015-04-17  Tom de Vries  <tom@codesourcery.com>
35567         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
35569 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
35571         * asan.c (set_sanitized_sections): New function.
35572         (section_sanitized_p): Ditto.
35573         (asan_protect_global): Optionally sanitize user-defined
35574         sections.
35575         * asan.h (set_sanitized_sections): Declare new function.
35576         * common.opt (fsanitize-sections): New option.
35577         * doc/invoke.texi (-fsanitize-sections): Document new option.
35578         * opts-global.c (handle_common_deferred_options): Handle new
35579         option.
35581 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
35583         PR debug/65771
35584         * dwarf2out.c (loc_list_from_tree): Return NULL
35585         for DEBUG_EXPR_DECL.
35587 2015-04-17  Christian Bruel  <christian.bruel@st.com>
35589         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
35590         same attributes.
35592 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
35594         * ira-color.c (setup_left_conflict_sizes_p): Do not process
35595         node itself when computing left conflict subnode size.
35597 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
35599         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
35600         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
35601         *fop_<mode>_1_sse using enabled attribute.  Use
35602         register_mixssei387nonimm_operand operand 1 predicate. Change
35603         alternative 3 constraints from "x" to "v".
35605 2015-04-16  Richard Biener  <rguenther@suse.de>
35607         PR tree-optimization/65774
35608         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
35609         bit-value tracking on.
35611 2015-04-16  Richard Biener  <rguenther@suse.de>
35613         PR tree-optimization/64277
35614         * tree-vrp.c (check_array_ref): Fix anti-range handling,
35615         simplify upper bound handling.
35616         (search_for_addr_array): Simplify.
35617         (check_array_bounds): Handle ADDR_EXPRs here.
35618         (check_all_array_refs): Simplify.
35620 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
35622         * config/i386/i386.c (print_reg): Rewrite function.
35624 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35626         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
35627         Invert the condition.
35629 2015-04-16  Renlin Li  <renlin.li@arm.com>
35631         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
35632         simplifications for UNSIGNED_FLOAT.
35634 2015-04-16  Nick Clifton  <nickc@redhat.com>
35636         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
35637         MUL_UNINIT.
35638         (enum rl78_cpu_type): New.
35639         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
35640         (umulhi3_shift_virt): Remove m constraint from operand 1.
35641         (umulqihi3_virt): Likewise.
35642         * config/rl78/rl78.c (rl78_option_override): Add code to process
35643         -mcpu and -mmul options.
35644         (rl78_alloc_physical_registers): Add code to handle divhi and
35645         divsi valloc attributes.
35646         (set_origin): Likewise.
35647         * config/rl78/rl78.h (RL78_MUL_G14): Define.
35648         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
35649         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
35650         __RL78_Gxx__.
35651         (ASM_SPEC): Pass -mcpu on to assembler.
35652         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
35653         (mulqi3_rl78): Likewise.
35654         (mulhi3_g13): Likewise.
35655         (mulhi3): Generate the G13 or G14 versions of the insn directly.
35656         (mulsi3): Likewise.
35657         (mulhi3_g14): Add clobbers of AX and BC.
35658         (mulsi3_g14): Likewise.
35659         (mulsi3_g13): Likewise.
35660         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
35661         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
35662         * config/rl78/rl78.opt (mmul): Initialise value to
35663         RL78_MUL_UNINIT.
35664         (mcpu): New option.
35665         (m13, m14, mrl78): New option aliases.
35666         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
35667         (MULTILIB_DIRNAMES): Add g13 and g14.
35668         * doc/invoke.texi: Document -mcpu and -mmul options.
35670 2015-04-16  Richard Biener  <rguenther@suse.de>
35672         * tree-ssa-ccp.c (likely_value): See if we have operands that
35673         are marked as never simulate again and return CONSTANT in this
35674         case.
35675         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
35676         not have any operands that will be simulated again as
35677         not being simulated again.
35679 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
35681         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
35682         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
35683         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
35684         attribute.
35685         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
35686         enabled attribute.
35687         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
35688         *float<SWI48:mode><MODEF:mode>2_sse.
35689         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
35690         enabled attribute.
35691         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
35692         enabled attribute.
35694 2015-04-15  Tom de Vries  <tom@codesourcery.com>
35696         PR other/65487
35697         * function.c (push_dummy_function): New function.
35698         (init_dummy_function_start): Use push_dummy_function.
35699         (pop_dummy_function): New function.  Factored out of ...
35700         (expand_dummy_function_end): ... here.
35701         * function.h (push_dummy_function, pop_dummy_function): Declare.
35702         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
35703         pop_dummy_function.
35704         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
35706 2015-04-15  Jeff Law  <law@redhat.com>
35708         PR tree-optimization/47679
35709         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
35710         need for forward declaration in upcoming changes.
35711         (record_conditions, record_edge_info): Likewise.
35713         PR rtl-optimization/42522
35714         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
35715         SIGN_EXTRACT as a whole object rather than simplifying
35716         its operand.
35718 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
35720         PR ipa/65765
35721         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
35722         and GIMPLE_PREDICT use break instead of return true. For
35723         GIMPLE_EH_DISPATCH, compare dispatch region.
35725 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
35727         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
35728         details about the implementation.  Make clear preference for
35729         __atomic builtins.  Reduce possibility of future change.
35731 2015-04-15  Nick Clifton  <nickc@redhat.com>
35733         * config/rx/rx.opt (mallow-string-insns): New option.
35734         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
35735         builtin if string instructions are denied.
35736         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
35737         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
35738         appropriate.
35739         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
35740         * config/rx/rx.md (movstr): Enable pattern only if string
35741         instructions are allowed.
35742         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
35743         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
35744         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
35745         (MULTILIB_DIRNAMES): Add no-strings.
35746         * doc/invoke.texi: Document -mno-allow-string-insns.
35748 2015-04-15  Alan Modra  <amodra@gmail.com>
35750         PR target/65408
35751         PR target/58744
35752         PR middle-end/36043
35753         * calls.c (load_register_parameters): Don't load past end of
35754         mem unless suitably aligned.
35756 2015-04-15  Nick Clifton  <nickc@redhat.com>
35758         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
35759         decrement instruction as being frame related.
35760         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
35761         based addresses.
35762         If zero extending a function address enclose the operation in
35763         %code(...).
35764         (rl78_preferred_reload_class): New function.
35765         (TARGET_PREFERRED_RELOAD_CLASS): Define.
35766         * config/rl78/rl78.md: Remove useless constraints in expanders.
35767         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
35768         (mulhi3_rl78): Likewise.
35769         (mulhi3_g13): Likewise.
35770         (mulsi3_rl78): Likewise.
35771         (es_addr): Move to before the multiply patterns.
35773 2015-04-15  Alan Modra  <amodra@gmail.com>
35775         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
35776         and sequence_stack.  Add seq.
35777         (seq_stack): Delete.
35778         * function.c (prepare_function_start): Don't access x_last_insn.
35779         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
35780         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
35781         * emit_rtl.c (start_sequence, push_topmost_sequence,
35782         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
35783         sequence accessors.
35784         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
35785         remove_insn): Likewise.  Simplify.
35786         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
35787         and pop_topmost_sequence.
35788         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
35789         debug insns.
35790         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
35792 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
35794         PR target/65729
35795         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
35796         the assertiion.
35798 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
35800         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
35801         (LEGACY_INT_REGNO_P): Ditto.
35802         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
35803         (ANY_MASK_REG_P): Remove.
35804         (BND_REG_P): Rename from ANY_BND_REG_P.
35805         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
35806         legacy integer registers.  Do not handle MMX_REG_P in a special way.
35807         Merge 64byte and 32byte SSE handling.
35809 2015-04-14  Nick Clifton  <nickc@redhat.com>
35811         * expr.c (expand_assignment): Force an address offset computation
35812         into a register before changing its mode.
35813         (expand_expr_real_1): Likewise.
35815 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
35817         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
35818         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
35819         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
35820         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
35821         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
35822         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
35823         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
35824         and __aarch64_vget_lane_any.
35826 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
35828         PR rtl-optimization/65761
35829         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
35830         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
35832 2015-04-14  Richard Biener  <rguenther@suse.de>
35834         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
35835         (graphite_can_represent_scev): Use POINTER_TYPE_P.
35837 2015-04-14  Richard Biener  <rguenther@suse.de>
35839         PR tree-optimization/65758
35840         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
35841         against -1.
35842         (ccp_lattice_meet): Likewise.
35843         (bit_value_unop): Likewise.
35844         (bit_value_binop): Likewise.
35845         (bit_value_assume_aligned): Likewise.
35847 2015-04-14  Christian Bruel  <christian.bruel@st.com>
35849         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
35850         function.
35852 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
35854         PR tree-optimization/63387
35855         * match.pd ((x unord x) | (y unord y) -> (x unord y),
35856         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
35858 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
35860         * config/i386/predicates.md (any_QIreg_operand): Rename from
35861         q_regs_operand.  Do not process subregs.
35862         (QIreg_operand): Use QI_REGNO_P predicate.
35863         (ext_QIreg_operand): Ditto.
35864         (ext_register_operand): Ditto.
35865         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
35866         (AND splitters): Ditto.
35867         (AND with -65536 splitter): Add SWI48 mode for operand 0.
35868         (AND with -256 splitter): Use any_QIreg_operand predicate and
35869         SWI248 mode for operand 0.
35870         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
35871         mode for operand 0.
35872         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
35874 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
35876         * doc/plugins.texi: Rewrite first introductory paragraph.
35878 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
35880         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
35881         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
35883 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
35885         * ipa-profie.c (ipa_profile): Check number of parameters
35886         and possible polymorphic call targets before
35887         devirtualizing.
35889 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
35891         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
35892         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
35894 2015-04-13  Richard Biener  <rguenther@suse.de>
35896         PR tree-optimization/65204
35897         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
35898         takens for bit-CCP.
35900 2015-04-13  Richard Biener  <rguenther@suse.de>
35902         PR target/65660
35903         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
35904         and cond_not_taken_branch_cost to 4 and 2.
35905         (bdver2_cost): Likewise.
35906         (bdver3_cost): Likewise.
35907         (bdver4_cost): Likewise.
35909 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
35911         * hash-table.h (hash_table constructor): Add mem stats.
35912         (alloc_entries): Likewise.
35914 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
35916         * ipa-cp.c (ipcp_driver): Relase prev_edge.
35917         * passes.c (execute_one_pass): Only add transform if pass has one.
35919 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
35921         * config/i386/i386.c (ix86_option_override_internal): Don't set
35922         -fprefetch-loop-arrays if optimizing for size.
35924 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
35925             Gerald Pfeifer  <gerald@pfeifer.com>
35927         * doc/contrib.texi (Contributors): Add Martin Jambor and
35928         Michael Matz.
35930 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
35932         * BASE-VER: Set to 6.0.0.
35934         PR tree-optimization/65747
35935         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
35936         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
35938 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
35940         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
35941         sentence.  Improve grammar.
35943 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
35945         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
35947 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
35949         PR ipa/65743
35950         * ipa-inline-transform.c (speculation_removed): Remove static var.
35951         (check_speculations): New function.
35952         (clone_inlined_nodes): Do not check spculations.
35953         (inline_call): Call check_speculations.
35954         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
35955         consider non-invariants.
35957 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
35958             Martin Liska  <mliska@suse.cz>
35960         PR ipa/65722
35961         * ipa-icf.c (sem_item::compare_cgraph_references): function and
35962         variable can not match.
35963         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
35964         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
35966 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
35968         PR tree-optimization/65735
35969         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
35970         Remove visited_phis argument, add visited_bbs, avoid recursing into the
35971         same bb rather than just into the same phi node.
35972         (thread_through_normal_block): Adjust caller.
35974 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
35976         * doc/contrib.texi (Contributors): Add Ira Rosen.
35978 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
35980         * gcov.c (find_source): Fix miswording in error message.
35981         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
35982         (ix86_expand_sse_comi_round): Fix typo in error message.
35984 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
35986         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
35988 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
35990         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
35992 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
35994         PR target/65710
35995         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
35996         Print bad_spills_num and insn_pseudos_num.
35998 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36000         PR target/65694
36001         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
36002         when creating +1 values for SImode.
36004 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
36006         PR target/65729
36007         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
36008         assert.
36010 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
36011             Iain Sandoe  <iain@codesourcery.com>
36013         PR target/65351
36014         * configure: Regenerate.
36016 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
36018         PR target/65671
36019         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
36021 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
36023         * doc/contrib.texi (Contributors): Add John Marino.
36025 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
36027         PR tree-optimization/65709
36028         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
36029         TREE_TYPE (TREE_TYPE (t)).
36031 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
36033         PR target/65710
36034         * lra-int.h (lra_bad_spill_regno_start): New.
36035         * lra.c (lra_bad_spill_regno_start): New.
36036         (lra): Set up lra_bad_spill_regno_start.  Set up
36037         lra_constraint_new_regno_start unconditionally.
36038         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
36039         spill preferences.
36041 2015-04-09  Marek Polacek  <polacek@redhat.com>
36042             Jakub Jelinek  <jakub@redhat.com>
36044         PR middle-end/65554
36045         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
36046         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
36047         of STRIP_NOPS.
36049 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
36051         PR rtl-optimization/65693
36052         * combine.c (is_parallel_of_n_reg_sets): Move outside of
36053         #ifndef HAVE_cc0.
36055 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
36057         PR target/65296
36058         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
36059         device specs file if "device-specs%s" didn't resolve to a path.
36061 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
36063         PR target/65676
36064         * config/i386/i386.c (fixup_modeless_constant): New.
36065         (ix86_expand_args_builtin): Fixup modeless constant operand.
36066         (ix86_expand_round_builtin): Ditto.
36067         (ix86_expand_special_args_builtin): Ditto.
36068         (ix86_expand_builtin): Ditto.
36070 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
36072         PR target/65693
36073         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
36074         any pow2 integer in between 2 and 0x80000000U inclusive.
36076 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
36078         PR rtl-optimization/65693
36079         * combine.c (is_parallel_of_n_reg_sets): Change first argument
36080         from an rtx_insn * to an rtx.
36081         (try_combine): Adjust both callers.  Use it once more.
36083 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
36085         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
36086         (chkp_make_static_const_bounds): Search existing
36087         symbol by assembler name.  Use make_decl_one_only.
36088         (chkp_get_zero_bounds_var): Remove node search which
36089         is now performed in chkp_make_static_const_bounds.
36090         (chkp_get_none_bounds_var): Likewise.
36092 2015-04-08  Michael Witten  <mfwitten@gmail.com>
36094         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
36095         to an example.
36097 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
36099         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
36101 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
36103         * doc/extend.texi (__sync Builtins): Fix grammar.
36105 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
36107         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
36109 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
36111         * varasm.c (emit_local): Move definition of align.
36113 2015-04-08  Julian Brown  <julian@codesourcery.com>
36115         * config/nvptx/mkoffload.c (process): Support variable mapping.
36117 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
36119         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
36120         alpha_links **.
36121         (alpha_write_one_linkage): Correct typo.
36123 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
36125         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
36127 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
36129         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
36131 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
36133         * tree-chkp.h (chkp_insert_retbnd_call): New.
36134         * tree-chkp.c (chkp_insert_retbnd_call): New.
36135         * ipa-split.c (insert_bndret_call_after): Remove.
36136         (split_function): Use chkp_insert_retbnd_call.
36137         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
36138         bounds for instrumented functions.
36140 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
36142         PR ipa/65540
36143         * calls.c (initialize_argument_information): When producing tail
36144         call also turn SSA_NAMES passed by references to original PARM_DECLs
36146 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
36148         PR target/65648
36149         * lra-remat.c (do_remat): Process input and non-input insn
36150         registers separately.
36152 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
36154         PR debug/65678
36155         * valtrack.c (debug_lowpart_subreg): New function.
36156         (dead_debug_insert_temp): Use it.
36158         PR middle-end/65680
36159         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
36160         into signed HOST_WIDE_INT the same as negative bit_offset.
36162 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
36164         * ipa-comdats.c (ipa_comdats): Visit all thunks
36165         to set proper comdat group.
36167 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36169         PR target/65489
36170         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
36171         on constants for NEON VSTRUCT modes.
36173 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
36174             Iain Sandoe  <iain@codesourcery.com>
36176         PR target/65351
36177         * configure: Regenerate.
36179 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
36181         PR target/65614
36182         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
36183         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
36184         that LFD is used to load double constants instead of LFS.  Add
36185         defaults for all costs structures.  Add comments for missing
36186         initialization fields.
36187         (size32_cost): Likewise.
36188         (size64_cost): Likewise.
36189         (rs64a_cost): Likewise.
36190         (mpccore_cost): Likewise.
36191         (ppc403_cost): Likewise.
36192         (ppc405_cost): Likewise.
36193         (ppc440_cost): Likewise.
36194         (ppc476_cost): Likewise.
36195         (ppc601_cost): Likewise.
36196         (ppc603_cost): Likewise.
36197         (ppc604_cost): Likewise.
36198         (ppc604e_cost): Likewise.
36199         (ppc620_cost): Likewise.
36200         (ppc630_cost): Likewise.
36201         (ppccell_cost): Likewise.
36202         (ppc750_cost): Likewise.
36203         (ppc7450_cost): Likewise.
36204         (ppc8540_cost): Likewise.
36205         (ppce300c2c3_cost): Likewise.
36206         (ppce500mc_cost): Likewise.
36207         (ppce500mc64_cost): Likewise.
36208         (ppce5500_cost): Likewise.
36209         (ppce6500_cost): Likewise.
36210         (titan_cost): Likewise.
36211         (power4_cost): Likewise.
36212         (power6_cost): Likewise.
36213         (power7_cost): Likewise.
36214         (power8_cost): Likewise.
36215         (ppca2_cost): Likewise.
36216         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
36218         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
36219         instead of XXLOR to copy SFmode to clear out dirty bits created
36220         when SFmode denormals are generated.
36221         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
36222         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
36224 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
36226         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
36227         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
36228         * config/aarch64/aarch64-tune.md: Regenerate.
36230 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
36232         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
36233         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
36234         * config/arm/arm-cores.def (exynos-m1): New core.
36235         * config/arm/arm-tune.md: Regenerate.
36236         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
36237         * config/arm/bpabi.h: Likewise.
36239 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
36241         * ipa-cp (set_single_call_flag): Remove too
36242         restrictive assert.
36244 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
36246         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
36247         GOMP_offload_unregister from the destructor.
36249 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
36251         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
36252         flags for instrumentation thunk.
36253         (chkp_produce_thunks): Likewise.
36255 2015-04-05  Martin Liska  <mliska@suse.cz>
36257         PR ipa/65665
36258         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
36259         has computed data structure.
36260         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
36262 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
36264         * invoke.texi (inline-unit-growth): Increase growth to 20%
36265         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
36267 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
36269         PR target/65647
36270         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
36271         value checking.
36272         (lra_rematerialization_iter): New.
36273         * lra.c (lra): Initialize lra_rematerialization_iter.
36274         Stop updating lra_constraint_new_regno_start after switching of
36275         inheritance and rematerialization.
36276         * lra-remat.c (lra_rematerialization_iter): New.
36277         (lra_remat): Add printing pass iteration.  Do rematerialization
36278         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
36280 2015-04-04  Richard Biener  <rguenther@suse.de>
36282         PR tree-optimization/64909
36283         PR tree-optimization/65660
36284         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
36285         to take a cost vector for scalar iteration cost.
36286         (vect_get_single_scalar_iteration_cost): Likewise.
36287         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
36288         Compute the scalar iteration cost into a cost vector.
36289         (vect_get_known_peeling_cost): Use the scalar cost vector to
36290         account for the cost of the peeled iterations.
36291         (vect_estimate_min_profitable_iters): Likewise.
36292         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
36293         Likewise.
36295 2015-04-04  Alan Modra  <amodra@gmail.com>
36297         PR target/65576
36298         PR target/65240
36299         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
36300         0.0 constant unless TARGET_VSX.
36301         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
36302         alternative.
36304 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
36306         PR ipa/65654
36307         * ipa-inline-transform.c (inline_call): Skip sanity check to work
36308         around the ICE
36310 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
36312         PR ipa/65655
36313         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
36314         speculative indirect edges to avoid ordering issue.
36316 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
36318         PR ipa/65076
36319         * ipa-inline.c (edge_badness): Add combined size to the denominator.
36321 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
36323         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
36324         TYPE_ARTIFICIAL on the .omp_data* types.
36326 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
36328         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
36329         instrumentation thunks.
36331 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
36333         * config/i386/i386.c (ix86_expand_call): Avoid nested
36334         PARALLEL in returned call value.
36336 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
36338         * lto-cgraph.c (input_cgraph_1): Always link instrumented
36339         assembler name with original one.
36341 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
36343         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
36345 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
36347         Revert parts of r216820.
36348         * config/i386/i386.md (movqi_internal): Correct type calculation
36349         for alternatives 3 and 5.
36351 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
36353         PR preprocessor/61977
36354         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
36355         predefine __vector/__bool/__pixel macros nor context sensitive
36356         macros for CLK_ASM.
36357         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
36359 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
36361         * config/pa/pa.c (pa_output_move_double): Directly handle register
36362         indexed memory operand.  Simplify handling of scaled register indexed
36363         memory operands.
36365 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
36367         PR driver/65444
36368         * config/i386/linux-common.h (MPX_SPEC): New.
36369         (CHKP_SPEC): Add MPX_SPEC.
36370         * doc/invoke.texi (-fcheck-pointer-boudns): Document
36371         possible issues with '-z bndplt' support in linker.
36373 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
36375         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
36376         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
36377         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
36378         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
36379         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
36381 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
36383         * config/i386/sync.md (UNSPEC_MOVA): Remove.
36384         (atomic_load<mode>): Change operand 0 predicate to
36385         nonimmediate_operand and fix up the destination when needed.
36386         Use UNSPEC_LDA.
36387         (atomic_loaddi_fpu): Use UNSPEC_LDA.
36388         (atomic_store<mode>): Change operand 1 predicate to
36389         nonimmendate_operand and move the source to register when needed.
36390         Use UNSPEC_STA.
36391         (atomic_store<mode>_1): Use UNSPEC_STA.
36392         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
36393         Fix moves from memory operand.  Use UNSPEC_STA.
36395 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36397         * expmed.c (strict_volatile_bitfield_p): Check that the access will
36398         not cross a MODESIZE boundary.
36399         (store_bit_field, extract_bit_field): Added assertions in the
36400         strict volatile bitfields code path.
36402 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
36404         PR target/65624
36405         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
36406         Increase args array size by one to avoid buffer overflow.
36408 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
36410         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
36411         split_part.
36412         * ipa-inline.c (edge_badness): Add wrapper penalty.
36413         (sum_callers): Move up.
36414         (inline_small_functions): Set single_caller.
36415         * ipa-inline.h (inline_summary): Add single_caller.
36416         * ipa-split.c (split_function): Set split_part.
36417         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
36418         * cgraph.h (cgraph_node): Add split_part.
36420 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
36422         PR target/58945
36423         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
36424         Do not split operands 0 and operands 2 to halfmode.
36425         (atomic_compare_and_swap<mode>): Update for
36426         atomic_compare_and_swap<dwi>_doubleword changes.
36428 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
36430         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
36431         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
36432         no caching is done.
36434 2015-03-31  Martin Liska  <mliska@suse.cz>
36436         PR ipa/65557
36437         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
36438         has already filled up function summary.
36439         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
36441 2015-03-31  Richard Biener  <rguenther@suse.de>
36443         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
36444         of types.
36446 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
36448         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
36449         nested functions.
36450         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
36451         (s390_asm_output_function_label): Adapt to new signature of
36452         s390_function_num_hotpatch_hw
36453         Optimise the code generating assembler output.
36454         Add comments to assembler file.
36456 2015-03-31  Richard Biener  <rguenther@suse.de>
36458         PR middle-end/65626
36459         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
36460         of the noreturn call so it is last and cleanup_control_flow_bb
36461         can do the CFG part.
36463 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
36465         PR target/65531
36466         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
36467         same_comdat_group for external symbols.
36468         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
36469         infinite same_comdat_group traversal loop.
36471 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
36473         PR plugins/61176
36474         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
36475         automatically to $headers.
36477 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
36479         PR ipa/65610
36480         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
36481         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
36482         function.
36483         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
36484         Use it.
36485         * ipa-prop.c (param_type_may_change_p): Likewise.
36486         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
36487         (remove_unused_scope_block_p): Add in_ctor_dtor_block
36488         argument.  Before inlining, preserve
36489         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
36490         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
36491         recursive calls.
36492         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
36494 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
36496         PR ipa/65076
36497         * ipa-inline.c (edge_badness): Base denominator on callee's
36498         grwoth squared.
36500 2015-03-27  Martin Jambor  <mjambor@suse.cz>
36502         PR ipa/65478
36503         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
36504         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
36505         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
36506         node_calling_single_call.
36507         * ipa-cp.c (count_callers): New function.
36508         (set_single_call_flag): Likewise.
36509         (initialize_node_lattices): Count callers and set single_flag_call if
36510         necessary.
36511         (incorporate_penalties): New function.
36512         (good_cloning_opportunity_p): Use it, dump new flags.
36513         (propagate_constants_topo): Set node_within_scc flag if appropriate.
36514         * doc/invoke.texi (ipa-cp-recursion-penalty,
36515         ipa-cp-single-call-pentalty): Document.
36517 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
36519         PR ipa/65588
36520         * symtab.c (symtab_node::get_partitioning_class): Register vars
36521         are duplicated.
36522         * varpool.c (symbol_table::output_variables) Do not assemble unefined
36523         decls for non-symbols.
36525 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
36527         PR target/65248
36528         * output.h (default_binds_local_p_2): New.
36529         * varasm.c (default_binds_local_p_2): Renamed to ...
36530         (default_binds_local_p_3): This.  Don't return true on protected
36531         data symbol if protected data may be external.
36532         (default_binds_local_p): Use default_binds_local_p_3.
36533         (default_binds_local_p_1): Likewise.
36534         (default_binds_local_p_2): New.
36535         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
36536         default_binds_local_p_2 if TARGET_MACHO is undefined.
36538 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
36540         PR target/65593
36541         * config/i386/i386.c (legitimize_pic_address): If base
36542         is SYMBOL_REF or LABEL_REF using %rip addressing, force
36543         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
36545 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
36547         PR target/65531
36548         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
36549         comdat groups.
36551 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
36553         PR ipa/65600
36554         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
36555         of optimized out indirect call.
36556         (redirect_to_unreachable): Always build symbol table node for
36557         BUILT_IN_UNREACHABLE
36559 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
36561         PR target/65407
36562         * ira-costs.c (record_reg_classes): Process all constraint string
36563         containing 0-9.
36565 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
36567         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
36568         memory_operand.
36570         PR target/65052
36571         * config/c6x/constraints.md (S3): New constraint.
36572         * config/c6x/c6x.md (real_jump): Use it.
36574 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
36576         PR middle-end/65595
36577         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
36578         do redirection if the call is not optimized out.
36580 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
36582         PR target/65495
36583         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
36584         (fchkp-check-incomplete-type): Add LTO.
36585         (fchkp-zero-input-bounds-for-main): Likewise.
36586         (fchkp-first-field-has-own-bounds): Likewise.
36587         (fchkp-narrow-bounds): Likewise.
36588         (fchkp-narrow-to-innermost-array): Likewise.
36589         (fchkp-use-static-bounds): Likewise.
36590         (fchkp-use-static-const-bounds): Likewise.
36591         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
36593 2015-03-27  Marek Polacek  <polacek@redhat.com>
36595         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
36597 2015-03-27  Marek Polacek  <polacek@redhat.com>
36599         PR sanitizer/65583
36600         * ubsan.c (ubsan_create_edge): New function.
36601         (instrument_bool_enum_load): Call it.
36602         (instrument_nonnull_arg): Likewise.
36603         (instrument_nonnull_return): Likewise.
36604         (instrument_object_size): Likewise.
36606 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
36608         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
36609         auto_vec.
36611 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
36613         PR lto/65536
36614         * lto-streamer.h (class lto_location_cache): New.
36615         (struct data_in): Add location_cache.
36616         (lto_input_location): Update prototype.
36617         (stream_input_location_now): New.
36618         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
36619         pointer to location.
36620         (stream_input_location): Update.
36621         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
36622         (warn_odr): Apply location cache before warning.
36623         (lto_input_location): Update prototype.
36624         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
36625         Use stream_input_location_now.
36626         * lto-streamer-in.c (lto_location_cache::current_cache): New static
36627         variable.
36628         (lto_location_cache::cmp_loc): New function.
36629         (lto_location_cache::apply_location_cache): New function.
36630         (lto_location_cache::accept_location_cache): New function.
36631         (lto_location_cache::revert_location_cache): New function.
36632         (lto_location_cache::input_location): New function.
36633         (lto_input_location): Do location caching.
36634         (stream_input_location_now): New function.
36635         (input_eh_region, input_struct_function_base): Use
36636         stream_input_location_now.
36637         (lto_data_in_create): use new.
36638         (lto_data_in_delete): Use delete.
36639         * tree-streamer-in.c (unpack_ts_block_value_fields,
36640         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
36641         lto_input_ts_exp_tree_pointers): Update for cached location api.
36643 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
36645         PR ipa/65076
36646         * passes.def: Add pass_nothrow.
36647         * ipa-pure-const.c: (pass_data_nothrow): New.
36648         (pass_nothrow): New.
36649         (pass_nothrow::execute): New.
36650         (make_pass_nothrow): New.
36651         * tree-pass.h (make_pass_nothrow): Declare.
36653 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
36655         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
36656         edge to change by speculation resolution or redirection.
36657         (edge_set_predicate): Likewise.
36658         (inline_summary_t::duplicate): Likewise.
36659         (remap_edge_summaries): Likewise.
36661 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
36663         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
36664         New macros.
36665         (can_inline_edge_p): Relax option matching for always inline functions.
36667 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
36669         PR target/65561
36670         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
36671         Check operand 4 and operand 0 for equality.
36672         (avx512f_vextract<shuffletype>32x4_1_maskm):
36673         Check operand 6 and operand 0 for equality.
36674         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
36675         for equality.
36676         (vec_extract_hi_<mode>_maskm): Ditto.
36678 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
36680         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
36681         dead calls back to live.
36682         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
36683         cross check to ...
36684         (cgraph_node::verify_node): ... here; verify only callee edges,
36685         not caller.
36686         * cif-code.def (CILK_SPAWN): New code.
36688 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
36690         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
36691         (edge_set_predicate): Use it to mark unreachable edges.
36692         (inline_summary_t::duplicate): Remove unnecesary code.
36693         (remap_edge_summaries): Likewise.
36694         (dump_inline_summary): Report contains_cilk_spawn.
36695         (compute_inline_parameters): Compute contains_cilk_spawn.
36696         (inline_read_section, inline_write_summary): Stream
36697         contains_cilk_spawn.
36698         * ipa-inline.c (can_inline_edge_p): Do not touch
36699         DECL_STRUCT_FUNCTION that may not be available;
36700         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
36701         remove check for callee_fun->can_throw_non_call_exceptions and
36702         replace it by optimization attribute check; check for flag_exceptions.
36703         * ipa-inline-transform.c (inline_call): Maintain
36704         DECL_FUNCTION_PERSONALITY
36705         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
36707 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
36709         PR tree-optimization/65551
36710         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
36711         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
36713 2015-03-26  Richard Biener  <rguenther@suse.de>
36715         PR middle-end/65555
36716         * tree-cfg.c (verify_gimple_call): Do not require a call to
36717         have no LHS if it wasn't recognized as control altering yet.
36719 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
36721         PR tree-optimization/64715
36722         * passes.def: Add another instance of pass_object_sizes before ccp1.
36723         * tree-object-size.c (pass_object_sizes::execute): In
36724         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
36725         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
36726         __bos result and the computed constant.  Remove redundant
36727         checks, obsoleted by gimple_call_builtin_p test.
36729         * var-tracking.c (variable_tracking_main_1): Don't track
36730         variables for targetm.no_register_allocation targets.
36732 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
36734         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
36735         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
36737 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
36739         PR target/65569
36740         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
36741         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
36742         0.0 is correctly setup.
36743         (extenddftf2_internal): Likewise.
36745 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
36747         PR tree-optimization/65177
36748         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
36749         (bb_in_bbs): New.
36750         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
36751         edges not adjacent on the path to the original code.
36753 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
36755         PR bootstrap/65537
36756         * doc/install.texi (Building a native compiler): Document new
36757         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
36758         configuration assumes that the host supports the linker plugin.
36760 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
36762         PR target/65508
36763         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
36764         chain for generated call.
36766 2015-03-25  Richard Biener  <rguenther@suse.de>
36768         * passes.c (pass_manager::execute_early_local_passes): Guard
36769         execution of pass_chkp_instrumentation_passes with
36770         flag_check_pointer_bounds.
36771         (pass_chkp_instrumentation_passes::gate): Likewise.
36773 2015-03-25  Martin Liska  <mliska@suse.cz>
36775         PR tree-optimization/65538
36776         * symbol-summary.h (function_summary::~function_summary):
36777         Relese memory for allocated summaries.
36778         (function_summary::release): New function.
36780 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
36782         PR lto/65515
36783         * lto-streamer-out.c (DFS::worklist): New struct.
36784         (DFS::worklist_vec): New data member.
36785         (DFS::next_dfs_num): Remove.
36786         (DFS::DFS): Rewritten using worklist instead of recursion,
36787         using most of code from DFS::DFS_write_tree.
36788         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
36789         pass it to DFS_write_tree calls.
36790         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
36791         quick initial checks push it into worklist_vec and return.
36793 2015-03-25  Richard Biener  <rguenther@suse.de>
36795         PR middle-end/65519
36796         * genmatch.c (expr::gen_transform): Re-write to avoid
36797         using gimple_build.
36799 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
36801         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
36803 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
36805         * config/arm/arm.opt (print_tune_info): New option.
36806         * config/arm/arm.c (arm_print_tune_info): New function.
36807         (arm_file_start): Call arm_print_tune_info.
36808         * config/arm/arm-protos.h (struct tune_params): Add comment.
36809         * doc/invoke.texi (@item -mprint-tune-info): New item.
36810         (-mtune): mention it in ARM Option Summary.
36812 2015-03-25  DJ Delorie  <dj@redhat.com>
36814         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
36815         correct clause.
36817 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
36818             Martin Liska  <mliska@suse.cz>
36820         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
36821         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
36822         (sem_item::add_type): New function.
36823         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
36824         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
36825         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
36826         (sem_function::equals_wpa): Fix typo.
36827         * ipa-icf.h (sem_item::add_type): New function.
36828         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
36829         order.
36831 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
36833         PR tree-optimization/65533
36834         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
36835         with swapped operands, call vect_free_slp_tree on
36836         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
36837         vector.
36839 2015-03-24  Richard Biener  <rguenther@suse.de>
36841         PR middle-end/65517
36842         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
36843         for fixup if necessary.
36845 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
36847         * doc/extend.texi (Function Attributes): Add @cindex entries
36848         for all attributes and regularize their format.  Delete text
36849         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
36850         information about "eightbit_data", "tiny_data", and "model"
36851         variable attributes to the Variable Attributes section.  Fix
36852         some obvious typos and copy-editing issues.
36853         (Variable Attributes, Type Attributes): Likewise add/fix
36854         @cindex entries for all attributes.
36856 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
36858         PR target/65523
36859         * tree-chkp.c (chkp_build_returned_bound): Ignore
36860         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
36862 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
36864         PR target/65505
36865         * config/sh/predicates.md (simple_mem_operand,
36866         displacement_mem_operand): Add test for reg.
36867         (short_displacement_mem_operand): Test for displacement_mem_operand
36868         before invoking sh_disp_addr_displacement.
36869         * config/sh/constraints.md (Sdd, Sra): Simplify.
36870         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
36871         Remove redundant displacement_mem_operand tests.
36873 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
36875         PR target/65296
36876         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
36877         the same -mmcu=MCU more than once.
36879 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
36881         PR bootstrap/65522
36882         * ipa-devirt.c: Remove duplicate demangle.h include.
36884         PR target/65504
36885         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
36886         on the pseudo.
36887         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
36888         REG_POINTER on *destptr after adjusting it for prologue size.
36890         PR ipa/65521
36891         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
36892         ultimate_alias_target ()->order ints instead of
36893         ultimate_alias_target () pointers.
36895 2015-03-23  Richard Biener  <rguenther@suse.de>
36897         PR tree-optimization/65518
36898         * tree-vect-stmts.c (vectorizable_load): Reject single-element
36899         interleaving cases we generate absymal code for.
36901 2015-03-23  Richard Biener  <rguenther@suse.de>
36903         PR tree-optimization/65494
36904         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
36905         matches here.
36906         (vect_analyze_slp_instance): But do that here, always and once.
36908 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36910         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
36911         adding T or multiplying by T+1 and subracting T.
36913 2015-03-22  Jeff Law  <law@redhat.com>
36915         PR rtl-optimization/64317
36916         * Makefile.in (OBJS): Add gcse-common.c
36917         * gcse.c: Include gcse-common.h
36918         (struct modify_pair_s): Move structure definition to gcse-common.h
36919         (compute_transp): Move function to gcse-common.c.
36920         (canon_list_insert): Similarly.
36921         (record_last_mem_set_info): Break out some code and put it into
36922         gcse-common.c.  Call into the new common code.
36923         (compute_local_properties): Pass additional arguments to compute_transp.
36924         * postreload-gcse.c: Include gcse-common.h and df.h
36925         (modify_mem_list_set, blocks_with_calls): New variables.
36926         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
36927         (get_bb_avail_insn): Pass in the expression index too.
36928         (alloc_mem): Allocate memory for the new bitmaps and lists.
36929         (free_mem): Free memory for the new bitmaps and lists.
36930         (insert_expr_in_table): Record a bitmap index for each entry we
36931         add to the table.
36932         (record_last_mem_set_info): Call into common code in gcse-common.c.
36933         (get_bb_avail_insn): If no available insn was found in the requested
36934         BB.  If BB has a single predecessor, see if the expression is
36935         transparent in BB and available in that single predecessor.
36936         (compute_expr_transp): New wrapper for compute_transp.
36937         (eliminate_partially_redundant_load): Pass expression's bitmap_index
36938         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
36939         (gcse_after_reload_main): If there are elements in the hash table,
36940         then compute transparency for all the elements in the hash table.
36941         * gcse-common.h: New file.
36942         * gcse-common.c: New file.
36944 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
36946         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
36947         as an adjective.
36948         (System Headers): Likewise.
36949         (Ifdef): Likewise.
36950         (Traditional macros): Likewise.
36951         (Invocation): Likewise.
36952         (Option Index): Likewise.
36953         * doc/cppopts.texi (-M): Likewise.
36954         (-finput-charset): Likewise.
36955         (--help): Likewise.
36956         * doc.invoke.texi (AVR Options): Likewise.
36957         (V850 Options): Likewise.
36959 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
36961         PR ipa/65475
36962         * ipa-devirt.c: Include demangle.h
36963         (odr_type_d): Add field rtti_broken.
36964         (odr_subtypes_equivalent_p): Do not require name to match.
36965         (compare_virtual_tables): Fix typo; if type already has ODR violation,
36966         bypass the tests; be ready for function referneces in vtables that are
36967         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
36968         (warn_odr): Give up for nameless types.
36969         (warn_types_mismatch): Report mismatch in mangled names;
36970         report mismatch in anonymous namespaces; look into component types to
36971         give useful error; report when mismatch is dragged in from other ODR
36972         type.
36973         (odr_types_equivalent_p): Match types for being polymorphic; avoid
36974         duplicated diagnostics.
36975         (add_type_duplicate): Reorder checks so more informative ones come
36976         first; fix typo; do not output "the extra base is defined here" when
36977         we did not warn.
36978         (BINFO_N_BASE_BINFOS): Relax sanity check.
36980 2015-03-22  Martin Liska  <mliska@suse.cz>
36981             Jakub Jelinek  <jakub@redhat.com>
36983         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
36984         masks that can potentially include a builtin.
36985         (ix86_add_new_builtins): Introduce fast filter for isa values
36986         that cannot trigger builtin inclusion.
36988 2015-03-22  Martin Liska  <mliska@suse.cz>
36990         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
36991         (sem_item::update_hash_by_local_refs): Likewise.
36992         (sem_variable::get_hash): Empty line is fixed.
36993         (sem_item_optimizer::execute): Include adding of hash references.
36994         (sem_item_optimizer::update_hash_by_addr_refs): New function.
36995         (sem_item_optimizer::build_hash_based_classes): Use local hash.
36996         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
36997         (sem_item::update_hash_by_local_refs): Likewise.
36999 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
37001         PR ipa/65502
37002         * ipa-comdats.c (enqueue_references): Walk through thunks.
37003         (ipa_comdats): Likewise.
37004         (set_comdat_group_1): New function.
37006 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
37008         PR ipa/65475
37009         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
37010         non-polymorphic
37012 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
37013             Gerald Pfeifer  <gerald@pfeifer.com>
37015         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
37017 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
37018             Sandra Loosemore  <sandra@codesourcery.com>
37020         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
37021         function parameter declaration.
37022         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
37023         Update arguments to nios2_adjust_call_address().
37024         (sibcall_internal): Rename from *sibcall.
37025         (sibcall_value_internal): Rename from *sibcall_value.
37026         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
37027         (nios2_large_got_address): Add target temp reg parameter.
37028         (nios2_got_address): Adjust call to nios2_large_got_address, add
37029         force_reg around it.
37030         (nios2_load_pic_address): Add target temp reg parameter, replace call
37031         to nios2_got_address with corresponding code.
37032         (nios2_legitimize_constant_address): Update call to
37033         nios2_load_pic_address.
37034         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
37035         to use temp reg for PIC loading purposes.
37036         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
37037         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
37038         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
37040 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
37042         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
37043         usage of "the @option{...}".
37044         (-Wopenmp-simd): Likewise.
37045         (-fsanitize-recover): Likewise.
37046         (-fsanitize-undefined-trap-on-error): Likewise.
37047         (-flto): Likewise.
37048         (tracer-dynamic-coverage-feedback): Likewise.
37049         (reorder-block-duplicate-feedback): Likewise.
37050         (loop-unroll-jam-size): Likewise.
37051         (-B): Likewise.
37052         (-I-): Likewise.
37053         (-mabs=legacy): Likewise.
37054         (-mupper-regs-df): Likewise.
37055         (-mupper-regs-sf): Likewise.
37056         (-mpointers-to-nested-functions): Likewise.
37058 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
37060         * doc/extend.texi (Cilk Plus Builtins): Add markup.
37062 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
37064         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
37065         additional index entries and cross-references.
37066         (-fchkp-check-incomplete-type): Likewise.
37067         (-fchkp-first-field-has-own-bounds): Likewise.
37068         (-fchkp-narrow-to-innermost-array): Likewise.
37069         (-fchkp-use-fast-string-functions): Likewise.
37070         (-fchkp-use-nochk-string-functions): Likewise.
37071         (-fchkp-use-static-const-bounds): Likewise.
37072         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
37073         (-fchkp-instrument-marked-only): Likewise.
37074         (-fchkp-use-wrappers): Likewise.
37075         (-static-libmpx): Likewise.
37076         (-static-libmpxwrappers): Likewise.
37077         * doc/extend.texi (bnd_legacy): Likewise.
37078         (bnd_instrument): Likewise.
37079         (bnd_variable_size): Likewise.
37080         (Pointer Bounds Checker builtins): Likewise.
37082 2015-03-21  Tom de Vries  <tom@codesourcery.com>
37084         PR tree-optimization/65458
37085         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
37086         * cgraph.h (cgraph_node): Add parallelized_function field.
37087         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
37088         (input_overwrite_node): Read parallelized_function field.
37089         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
37090         parallelized_function on cgraph_node for child_fn.
37091         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
37092         Remove include of gt-tree-parloops.h.
37093         (parallelized_functions): Remove static variable.
37094         (parallelized_function_p): Rewrite using parallelized_function field of
37095         cgraph_node.
37096         (create_loop_fn): Remove adding to parallelized_functions.
37097         * Makefile.in (GTFILES): Remove tree-parloops.c
37099 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
37101         PR rtl-optimization/64366
37102         * lra.c (lra_update_insn_regno_info): Consider regs in
37103         CALL_INSN_FUNCTION_USAGE memory.
37105 2015-03-20  Richard Biener  <rguenther@suse.de>
37107         PR middle-end/64715
37108         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
37109         for type comparison and gcc_checking_assert.
37110         (chrec_fold_plus_poly_poly): Likewise.
37111         (chrec_fold_multiply_poly_poly): Likewise.
37112         (chrec_convert_1): Likewise.
37113         * gimplify.c (gimplify_expr): Remove premature folding of
37114         &X + CST to &MEM[&X, CST].
37116 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
37118         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
37119         already is final.
37120         (ipa_inline): Recompute inline_failed codes.
37121         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
37122         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
37123         CIF_FINAL_ERROR.
37125 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
37127         PR rtl-optimization/60851
37128         * recog.c (constrain_operands): Accept a pseudo register before reload
37129         for LRA enabled targets.
37131 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
37133         PR target/65240
37134         * config/rs6000/predicates.md (easy_fp_constant): Remove special
37135         -ffast-math handling that kept non-0 constants live in the RTL
37136         until reload.  Remove logic testing the number of instructions it
37137         took to create a constant in a GPR that was never used, due to a
37138         test for soft-float earlier.
37139         (memory_fp_constant): Delete, no longer used.
37141         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
37142         alternatives for loading non-0 constants into GPRs for hard
37143         floating point that is no longer needed due to changes in
37144         easy_fp_constant.  Add support for loading 0.0 into GPRs.
37145         (mov<mode>_hardfloat32): Likewise.
37146         (mov<mode>_hardfloat64): Likewise.
37147         (mov<mode>_64bit_dm): Likewise.
37148         (movtd_64bit_nodm): Likewise.
37149         (pre-reload move FP constant define_split): Delete define_split,
37150         since it is no longer used.
37151         (extenddftf2_internal): Remove GHF constraints that are not valid
37152         for extenddftf2.
37154 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
37156         PR rtl-optimization/63491
37157         * lra-constraints.c (check_and_process_move): Use src instead of
37158         sreg.  Remove some dead code.
37160 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
37162         PR ipa/65380
37163         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
37164         (sem_variable::merge): Likewise.
37166 2015-03-19  Martin Liska  <mliska@suse.cz>
37168         PR ipa/65465
37169         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
37170         all fields of cgraph_thunk_info.
37172 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
37174         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
37175         clone instrumented thunks.
37177 2015-03-19  Richard Biener  <rguenther@suse.de>
37179         Revert
37180         2015-03-10  Richard Biener  <rguenther@suse.de>
37182         PR middle-end/63155
37183         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
37184         * tree-ssa-coalesce.c: Include timevar.h.
37185         (attempt_coalesce): Handle graph being NULL.
37186         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
37187         Split out abnormal coalescing to ...
37188         (perform_abnormal_coalescing): ... this function.
37189         (coalesce_ssa_name): Perform abnormal coalescing without computing
37190         live/conflict.
37191         (verify_ssa_coalescing_worker): New function.
37192         (verify_ssa_coalescing): Likewise.
37194 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37195             Jakub Jelinek  <jakub@redhat.com>
37197         PR sanitizer/65400
37198         * tsan.c (instrument_gimple): Clear tail call flag on
37199         calls.
37201 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
37203         PR sanitizer/65400
37204         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
37205         call in the return bb.
37206         (find_split_points): Add RETURN_BB argument, don't call
37207         find_return_bb.
37208         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
37209         if true append TSAN_FUNC_EXIT internal call after the call to
37210         the split off function.
37211         (execute_split_functions): Call find_return_bb here.
37212         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
37213         Adjust find_split_points and split_function calls.
37215 2015-03-18  DJ Delorie  <dj@redhat.com>
37217         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
37218         (iorqi3_virt): Likewise.
37220 2015-03-18  Tom de Vries  <tom@codesourcery.com>
37222         * tree-parloops.c (parallelize_loops): Make static.
37223         * tree-parloops.h (parallelize_loops): Remove extern declaration.
37225 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
37227         PR middle-end/64491
37228         Revert:
37229         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
37231         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
37232         condition would be removed due to undefined behaviour.
37234 2015-03-18  Martin Liska  <mliska@suse.cz>
37236         PR ipa/65432
37237         * cgraph.c (cgraph_node::get_create): Remove unnecessary
37238         xstrdup_for_dump wrapper.
37239         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
37240         sem_item::name.
37241         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
37242         with xstrdup_for_dump.
37243         (sem_variable::equals): Likewise.
37244         (sem_item_optimizer::read_section): Use symtab_node::name instead of
37245         sem_item::name.
37246         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
37247         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
37248         symtab_node::asm_name with xstrdup_for_dump.
37249         (congruence_class::dump): Use symtab_node::name instead of
37250         sem_item::name.
37251         * ipa-icf.h (symtab_node::name): Remove.
37252         (symtab_node::asm_name): Likewise.
37254 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
37256         PR tree-optimization/65450
37257         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
37258         function.
37259         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
37260         it instead of duplicate_ssa_name_ptr_info.
37262         PR target/65222
37263         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
37265 2015-03-18  Richard Biener  <rguenther@suse.de>
37267         * tree-data-ref.h (struct access_matrix): Remove.
37268         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
37269         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
37270         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
37271         (am_vector_index_for_loop): Likewise.
37272         (struct data_reference): Remove access_matrix member.
37273         (DR_ACCESS_MATRIX): Remove.
37274         (lambda_vector_new): Add comment.
37275         (lambda_matrix_new): Use XOBNEWVEC.
37277 2015-03-18  Richard Biener  <rguenther@suse.de>
37279         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
37280         (pass_ch::execute): Cleanup the CFG only if we did sth.
37281         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
37283 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37285         * expmed.c (synth_mult): Use std::swap instead of manually
37286         swapping algorithms.
37288 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
37290         PR target/65078
37291         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
37293 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
37295         PR target/65296
37296         * config/avr/avr.opt (-nodevicelib): New option.
37297         * doc/invoke.texi (AVR Options): Document it.
37298         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
37299         libgcc.a, libc.a, libm.a.
37300         * config/avr/specs.h: Same.
37301         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
37302         which don't (directly) depend on the device.  Print more help.
37303         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
37304         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
37305         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
37306         case of an error.
37307         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
37308         for specs file name.
37309         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
37310         * config/avr/avr-mcus.def: Adjust initializers and comments.
37312 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
37314         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
37315         DECL_ONE_ONLY to check if decl is one only.
37316         * ipa-split.c (consider_split): Limit splitt of one only functions.
37318 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
37320         PR tree-optimization/65427
37321         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
37322         functions.
37323         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
37325 2015-03-16  Marek Polacek  <polacek@redhat.com>
37327         * cgraph.h (add_new_static_var): Remove declaration.
37328         * varpool.c (add_new_static_var): Remove function.
37330 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
37332         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
37333         instead of vec<tree> * with vec_alloc and release for args.
37334         Adjust all users.
37336         PR middle-end/65431
37337         * omp-low.c (delete_omp_context): Only splay_tree_delete
37338         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
37339         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
37341 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
37343         PR sanitizer/64820
37344         * cfgexpand.c (align_base): New function.
37345         (alloc_stack_frame_space): Call it.
37346         (expand_stack_vars): Align prev_frame to be sure
37347         data->asan_vec elements aligned properly.
37349 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
37351         PR middle-end/65409
37352         * expr.c (store_field): Do not do a direct block copy if the source is
37353         a PARALLEL with BLKmode.
37355 2015-03-16  Tom de Vries  <tom@codesourcery.com>
37357         PR middle-end/65414
37358         Revert:
37359         2015-03-12  Tom de Vries  <tom@codesourcery.com>
37361         PR rtl-optimization/64895
37362         * lra-lives.c (check_pseudos_live_through_calls): Use
37363         actual_call_used_reg_set instead of call_used_reg_set, if available.
37365 2015-03-16  Alan Modra  <amodra@gmail.com>
37367         PR target/63150
37368         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
37369         Modify Z->r bswapdi splitter to use dest in place of scratch.
37370         In r->Z and Z->r bswapdi splitter rename word_high, word_low
37371         to word1, word2 and rearrange logic to suit.
37372         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
37373         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
37374         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
37375         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
37376         early clobber.
37378 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
37380         PR tree-optimization/65369
37381         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
37382         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
37383         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
37385         PR tree-optimization/65418
37386         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
37387         are casts in the first PLUS_EXPR operand, ensure tbias and
37388         *totallowp are in the inner type.
37390         PR rtl-optimization/65401
37391         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
37392         argument.  If true, adjust_address_nv of x with big-endian
37393         correction for the mode widening to GET_MODE (y).
37394         (make_field_assignment): Don't do MEM mode widening here.
37395         Use MEM_P instead of GET_CODE == MEM.
37397 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
37399         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
37400         the external decls.
37402 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37404         PR target/64600
37405         * config/arm/arm.c (arm_gen_constant, AND case): Use
37406         ARM_SIGN_EXTEND when constructing AND mask.
37408 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37410         * graph.c (print_graph_cfg): Make function names visible and append
37411         parenthesis to it.  Also make groups of basic blocks belonging to the
37412         same function visible.
37414 2015-03-12  Richard Biener  <rguenther@suse.de>
37416         PR middle-end/44563
37417         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
37418         to avoid quadratic behavior with inline expansion splitting blocks.
37419         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
37420         with the successor if the predecessor will be merged with it.
37421         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
37422         entry block with its successor.
37424 2015-03-13  Richard Biener  <rguenther@suse.de>
37426         PR middle-end/44563
37427         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
37428         (cleanup_tree_cfg_1): Do not call it.
37429         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
37430         (fixup_noreturn_call): Mark the stmt as control altering.
37431         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
37432         here.
37433         (pass_data_fixup_cfg): Produce a dump file.
37434         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
37435         (need_noreturn_fixup): New global.
37436         (pass_dominator::execute): Fixup queued noreturn calls.
37437         (optimize_stmt): Queue calls that became noreturn for fixup.
37438         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
37439         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
37440         (el_to_fixup): New global.
37441         (eliminate_dom_walker::before_dom_childre): Queue calls that
37442         became noreturn for fixup.
37443         (eliminate): Fixup queued noreturn calls.
37444         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
37445         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
37446         (substitute_and_fold_dom_walker::before_dom_children): Queue
37447         alls that became noreturn for fixup.
37448         (substitute_and_fold): Fixup queued noreturn calls.
37450 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
37452         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
37453         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
37454         are building; for methods check ODR type of class they belong to if
37455         they may lead to a polymorphic call.
37456         (sem_function::compare_polymorphic_p): Be bit smarter about testing
37457         when function may lead to a polymorphic call.
37458         (sem_function::compare_type_list): Remove.
37459         (sem_variable::equals): Update use of compatible_types_p.
37460         (sem_variable::parse_tree_refs): Remove.
37461         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
37462         cdtor.
37463         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
37464         matching here.
37465         (func_checker::compatible_polymorphic_types_p): Break out from ...
37466         (unc_checker::compatible_types_p): ... here.
37467         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
37468         Declare.
37469         (unc_checker::compatible_types_p): Update.
37470         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
37471         Remove.
37473 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37475         PR rtl-optimization/65235
37476         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
37477         When first element of vec_concat is const_int, calculate its size
37478         using second element.
37480 2015-03-12  Richard Biener  <rguenther@suse.de>
37482         PR middle-end/65270
37483         * fold-const.c (operand_equal_p): Fix ordering of resetting
37484         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
37486 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
37488         * config/s390/s390.c (s390_reorg): Move code to output nops after label
37489         to s390_reorg ().
37490         (s390_asm_output_function_label): Likewise.
37491         * config/s390/s390.c (s390_asm_output_function_label):
37492         Fix function label alignment with -mhtopatch.
37493         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
37494         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
37495         ("nop_2_byte"): New define_insn.
37496         ("nop_4_byte"): Likewise.
37497         ("nop_6_byte"): Likewise.
37498         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
37499         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
37501 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
37503         PR target/65103
37504         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
37505         register.
37507 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
37509         PR target/65044
37510         * toplev.c (process_options): Restrict Pointer Bounds Checker
37511         usage with Address Sanitizer.
37513 2015-03-12  Richard Biener  <rguenther@suse.de>
37515         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
37516         to split on.
37517         * omp-low.c (expand_omp_taskreg): Split block before removing
37518         the stmt.
37519         (expand_omp_target): Likewise.
37520         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
37521         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
37522         stmt to split_block.
37524 2015-03-12  Tom de Vries  <tom@codesourcery.com>
37526         PR rtl-optimization/64895
37527         * lra-lives.c (check_pseudos_live_through_calls): Use
37528         actual_call_used_reg_set instead of call_used_reg_set, if available.
37530 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
37532         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
37533         (cgraph_node::remove): Likewise.
37534         (cgraph_node::get_untransformed_body): Likewise.
37535         * varpool.c (varpool_node::remove): Likewise.
37536         (varpool_node::get_constructor): Add sanity check.
37538 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
37540         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
37541         old GCC versions.
37542         (-fabi-compat-version): Likewise.
37543         (-ffriend-injection): Likewise.
37544         (-Wdeclaration-after-statement): Likewise.
37545         (-fomit-frame-pointer): Likewise.
37546         (-ftree-coalesce-inlined-vars): Likewise.
37547         (-fvisibility=): Likewise.
37548         * doc/extend.texi (Typeof): Likewise.
37549         (Zero Length): Likewise.
37550         (Escaped Newlines): Likewise.
37551         (Compound Literals): Likewise.
37552         (Function Attributes): Likewise.
37553         (Label Attributes): Likewise.
37554         (Type Attributes): Likewise.
37555         (Function Names): Likewise.
37556         (Other Builtins): Likewise.
37557         (Function Specific Option Pragmas): Likewise.
37558         (C++ Interface): Likewise.
37560 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
37562         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
37564 2015-03-11  Marek Polacek  <polacek@redhat.com>
37566         PR tree-optimization/65388
37567         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
37569 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
37571         PR target/65296
37572         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
37573         * configure: Regenerate.
37574         * config.in: Regenerate.
37575         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
37576         [-mn-flash]: Document it.
37577         [__AVR_ARCH__]: Document avrtiny.
37579         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
37580         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
37581         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
37583 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
37585         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
37587 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
37589         PR target/65242
37590         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
37591         allow reloads of PLUS in floating point/VSX registers.
37593 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
37595         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
37596         crypto_sha256_fast.
37597         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
37599 2015-03-11  Richard Biener  <rguenther@suse.de>
37601         PR tree-optimization/65310
37602         * tree-sra.c (build_ref_for_offset): Also preserve larger
37603         alignment.
37605 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
37607         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
37609 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
37611         PR target/65368
37612         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
37613         new define_expand.
37614         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
37616 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
37618         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
37619         (sem_function::equals_wpa): ... here.
37621 2015-03-10  Marek Polacek  <polacek@redhat.com>
37622             Jakub Jelinek  <jakub@redhat.com>
37624         PR sanitizer/65367
37625         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
37626         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
37627         separately.
37629 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
37631         PR target/65286
37632         * config/rs6000/t-linux: For powerpc64* target set
37633         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
37635 2015-03-10  Richard Biener  <rguenther@suse.de>
37637         PR middle-end/44563
37638         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
37639         for redirect_all_calls.
37641 2015-03-10  Marek Polacek  <polacek@redhat.com>
37643         * gdbinit.in (pcfun): Define and document.
37645 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
37647         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
37648         of libgomp-plugin.h.
37649         (find_target_compiler): Support a case when the path to gcc is
37650         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
37651         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
37652         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
37653         libgomp-plugin.h.
37654         (main): Use GCC_INSTALL_NAME as target_driver_name.
37655         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
37656         define.
37657         (mkoffload.o): Remove obsolete include path and defines.
37658         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
37660 2015-03-10  Richard Biener  <rguenther@suse.de>
37662         PR middle-end/63155
37663         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
37664         * tree-ssa-coalesce.c: Include timevar.h.
37665         (attempt_coalesce): Handle graph being NULL.
37666         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
37667         Split out abnormal coalescing to ...
37668         (perform_abnormal_coalescing): ... this function.
37669         (coalesce_ssa_name): Perform abnormal coalescing without computing
37670         live/conflict.
37671         (verify_ssa_coalescing_worker): New function.
37672         (verify_ssa_coalescing): Likewise.
37674 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
37676         PR target/65296
37677         * config.gcc (extra_options) [avr]: Remove.
37678         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
37679         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
37680         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
37682         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
37683         (-mmcu=): Add Var and MissingArgError properties.
37684         (-march=): Remove.
37685         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
37686         * config/avr/t-multilib: Regenerate.
37687         * config/avr/specs.h: New file.
37688         * config/avr/driver-avr.c: New file.
37689         * config/avr/genopt.sh: Remove file.
37690         * config/avr/avr-tables.opt: Remove file.
37691         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
37692         * config/avr/avr-c.c: Same.
37693         * avr-arch.h: Same.
37694         (avr_current_device): Remove proto.
37695         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
37696         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
37697         (EXTRA_SPEC_FUNCTIONS): Define.
37698         (avr_devicespecs_file): New specs function proto.
37699         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
37700         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
37701         (avr_current_device): Remove definition and usage.
37702         (avr_set_core_architecture): New static function.
37703         (avr_option_override): Use it.
37704         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
37705         (mcu_name): New static array.
37706         (comparator, avr_archs_str, avr_mcus_str): New static functions.
37707         (avr_inform_devices, avr_inform_core_architectures): New functions.
37708         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
37709         (avrlibc.h) [WITH_AVRLIBC]: Include.
37710         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
37711         (print_mcu): Rewrite from scratch.
37712         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
37713         Forward to avr-specific specs defined in device-specs file.
37714         * config/avr/t-avr (driver-avr.o): New rule.
37715         (avr-devices.o): Depend on avr-arch.h.
37716         (avr-mcus): No more depend on avr-tables.opt.
37717         (avr-tables.opt): Remove rule.
37718         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
37720 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
37722         * c-family/c.opt (fchkp-use-wrappers): New.
37723         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
37724         (chkp_wrap_function): New.
37725         (chkp_build_instrumented_fndecl): Support wrapped
37726         functions.
37727         * doc/invoke.texi (-fcheck-pointer-bounds): New.
37728         (-fchkp-check-incomplete-type): New.
37729         (-fchkp-first-field-has-own-bounds): New.
37730         (-fchkp-narrow-bounds): New.
37731         (-fchkp-narrow-to-innermost-array): New.
37732         (-fchkp-optimize): New.
37733         (-fchkp-use-fast-string-functions): New.
37734         (-fchkp-use-nochk-string-functions): New.
37735         (-fchkp-use-static-bounds): New.
37736         (-fchkp-use-static-const-bounds): New.
37737         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
37738         (-fchkp-check-read): New.
37739         (-fchkp-check-write): New.
37740         (-fchkp-store-bounds): New.
37741         (-fchkp-instrument-calls): New.
37742         (-fchkp-instrument-marked-only): New.
37743         (-fchkp-use-wrappers): New.
37744         (-static-libmpx): New.
37745         (-static-libmpxwrappers): New.
37747 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
37749         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
37750         (CHKP_SPEC): Add wrappers library.
37751         * c-family/c.opt (static-libmpxwrappers): New.
37753 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
37755         * config/i386/linux-common.h (LIBMPX_LIBS): New.
37756         (LIBMPX_SPEC): New.
37757         (CHKP_SPEC): New.
37758         * gcc.c (CHKP_SPEC): New.
37759         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
37760         * c-family/c.opt (static-libmpx): New.
37762 2015-03-10  Richard Biener  <rguenther@suse.de>
37764         PR middle-end/44563
37765         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
37766         for compare_type.
37767         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
37768         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
37769         (cgraph_add_edge_to_call_site_hash): Likewise.
37770         (cgraph_node::get_edge): Likewise.
37771         (cgraph_edge::set_call_stmt): Likewise.
37772         (cgraph_edge::remove_caller): Likewise.
37774 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
37776         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
37777         (callee_saved_gpr_regs_size): ... this.
37778         (callee_saved_regs_first_regno): Rename to ...
37779         (callee_saved_first_gpr_regno): ... this.
37780         (callee_saved_regs_last_regno) Rename to ...
37781         (callee_saved_last_gpr_regno): ... this.
37782         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
37783         variables.
37784         (nds32_initial_elimination_offset): Likewise.
37785         (nds32_expand_prologue): Likewise.
37786         (nds32_expand_epilogue): Likewise.
37787         (nds32_expand_prologue_v3push): Likewise.
37788         (nds32_expand_epilogue_v3pop): Likewise.
37789         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
37790         Adjust renamed variables.
37791         (nds32_output_stack_pop): Likewise.
37793 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37795         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
37796         code in comment.
37798 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
37800         PR rtl-optimization/65321
37801         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
37802         than shift mode.
37803         * var-tracking.c (use_narrower_mode): Likewise.
37805 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
37807         PR tree-optimization/65355
37808         * varasm.c (notice_global_symbol): Do not produce RTL.
37809         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
37810         anchor.
37811         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
37812         check for section anchors.
37814 2015-03-10  Alan Modra  <amodra@gmail.com>
37816         PR target/65286
37817         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
37818         to be single-arch by default.  Set cpu_is_64bit for powerpc64
37819         given --with-cpu=native.
37820         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
37821         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
37822         and powerpc64le.
37823         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
37824         rs6000_isa_flags rather than TARGET_64BIT.
37826 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
37827             Kaz Kojima  <kkojima@gcc.gnu.org>
37829         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
37831 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
37833         PR lto/65361
37834         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
37835         on a TREE_BINFO, instead use BINFO_TYPE.
37837 2015-03-09  Richard Biener  <rguenther@suse.de>
37839         PR middle-end/65270
37840         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
37841         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
37842         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
37843         of that.  When comparing dereferences compare alignment.
37844         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
37846 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
37848         * ipa-inline-analysis.c (check_callers): Check
37849         node->can_remove_if_no_direct_calls_and_refs_p.
37850         (growth_likely_positive): Reorganize to call
37851         can_remove_if_no_direct_calls_p later.
37852         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
37853         will_be_removed_from_program_if_no_direct_calls_p): Add
37854         will_inline parameter.
37855         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
37856         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
37857         Handle inliner case correctly.
37859 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37861         PR tree-optimization/63743
37862         * cfgexpand.c (reorder_operands): Also reorder if only second operand
37863         had its definition forwarded by TER.
37865 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
37867         PR lto/65316
37868         * ipa-utils.h (types_odr_comparable): Add strict argument.
37869         * ipa-devirt.c: Fix whitespace;
37870         (odr_hasher): Remove.
37871         (odr_name_hasher, odr_vtable_hasher): New hashers.
37872         (can_be_name_hashed_p): New predicate.
37873         (hash_type_name): remove.
37874         (hash_odr_name): New.
37875         (odr_name_hasher::hash): new.
37876         (can_be_vtable_hashed_p): New.
37877         (hash_odr_vtable): New.
37878         (odr_vtable_hasher::hash): New.
37879         (types_same_for_odr): Add strict parameter.
37880         (types_odr_comparable): Likewise.
37881         (odr_name_hasher::equal): New.
37882         (odr_vtable_hasher::equal): New.
37883         (odr_name_hasher::remove): New.
37884         (odr_hash_type): Change to hash_table<odr_name_hasher>.
37885         (odr_vtable_hash_type): New.
37886         (odr_vtable_hash): New.
37887         (odr_subtypes_equivalent_p): Do strict comparsion.
37888         (add_type_duplicate): Merge type names; cleanup; avoid type
37889         duplicates.
37890         (register_odr_type): Initialize vtable hash.
37891         (build_type_inheritance_graph): Likewise
37892         (get_odr_type): Reorg to use two hashes.
37893         (dump_possible_polymorphic_call_targets): Move sanity check after debug
37894         output.
37895         (ipa_devirt): Dump type_inheritance_graph.
37896         (types_same_for_odr): Add strict mode.
37898 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
37900         PR ipa/65334
37901         * cgraph.h (symtab_node): Add definition_alignment,
37902         can_increase_alignment_p and increase_alignment.
37903         * symtab.c (symtab_node::can_increase_alignment_p,
37904         increase_alignment_1, symtab_node::increase_alignment,
37905         symtab_node::definition_alignment): New.
37906         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
37907         can_increase_alignment_p.
37908         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
37909         * tree-vect-stmts.c (ensure_base_align): Likewise.
37910         * varasm.c (function_section_1): Use definition_alignment.
37911         (assemble_start_function): Likewise.
37912         (emit_local): likewise.
37913         (build_constant_desc): Likewsie.
37914         (output_constant_def_contents): Likewise.
37915         (place_block_symbol): Likewise.
37916         (output_object_block): Likewise.
37918 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
37920         PR ipa/65316
37921         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
37922         when outputting debug.
37924 2015-03-07  Marek Polacek  <polacek@redhat.com>
37925             Martin Uecker  <uecker@eecs.berkeley.edu>
37927         PR sanitizer/65280
37928         * doc/invoke.texi: Update description of -fsanitize=bounds.
37930 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
37932         * tree-ssa-phiopt.c (neg_replacement): Remove.
37933         (tree_ssa_phiopt_worker): Remove negate optimization.
37935 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
37937         PR ipa/65302
37938         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
37940 2015-03-06  Richard Biener  <rguenther@suse.de>
37942         PR middle-end/64928
37943         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
37944         and liveout_obstack members.
37945         (calculate_live_on_exit): Remove.
37946         (calculate_live_ranges): Change declaration.
37947         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
37948         (new_tree_live_info): Adjust.
37949         (calculate_live_ranges): Delete livein when not wanted.
37950         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
37951         Deal with partly deleted live info.
37952         (loe_visit_block): Remove temporary bitmap by using
37953         bitmap_ior_and_compl_into.
37954         (live_worklist): Adjust accordingly.
37955         (calculate_live_on_exit): Make static.
37956         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
37957         we do not need livein.
37959 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
37961         * real.c (real_from_string): Fix typo in assertion.
37963 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
37965         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
37966         the patch.
37968 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
37970         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
37972 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
37974         PR target/64342
37975         * lra-assigns.c (find_hard_regno_for): Rename to
37976         find_hard_regno_for_1.  Add a new parameter.
37977         (find_hard_regno_for): New function using find_hard_regno_for_1.
37979 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37981         PR rtl-optimization/65067
37982         * expmed.c (store_bit_field, extract_bit_field): Reworked the
37983         strict volatile bitfield handling.
37985 2015-03-05  Martin Liska  <mliska@suse.cz>
37987         PR ipa/65318
37988         * ipa-icf.c (sem_variable::equals): Compare variables types.
37990 2015-03-05  Richard Henderson  <rth@redhat.com>
37992         PR target/65121
37993         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
37994         correctly check weak symbol binding.
37996 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
37998         PR middle-end/65315
37999         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
38000         needed alignment.
38002 2015-03-05  Martin Liska  <mliska@suse.cz>
38004         * ipa-inline.c (inline_small_functions): Set default value to
38005         prevent warning during bootstrap.
38006         * tree.h: Add pragma guard that ignores false positives during
38007         bootstrap.
38009 2015-03-05  Richard Biener  <rguenther@suse.de>
38011         PR tree-optimization/65310
38012         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
38013         Properly preserve alignment of the base of the access.
38015 2015-03-05  Richard Biener  <rguenther@suse.de>
38017         PR ipa/65270
38018         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
38019         Compare dependence info.
38021 2015-03-05  Richard Biener  <rguenther@suse.de>
38023         PR middle-end/65233
38024         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
38025         tree-into-ssa.h.
38026         (walk_ssa_copies): Revert last chage.  Instead do not walk
38027         SSA names registered for SSA update.
38029 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
38031         PR ipa/65270
38032         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
38033         vtable references for their containing type.
38034         (sem_function::equals_wpa): Compare TYPE_RESTRICT
38035         and type attributes.
38037 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
38039         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
38040         before negating it.
38041         * stor-layout.c (finalize_record_size): Revert latest change.
38043 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
38045         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
38047 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
38049         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
38050         for correct comdat handling.
38051         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
38052         Likewise.
38053         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
38054         (used_from_object_file_p_worker): Remove.
38055         (cgraph_node::only_called_directly_or_alised): Add
38056         used_from_object_file_p.
38057         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
38058         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
38059         can_remove_if_no_direct_calls_and_refs_p.
38061 2015-03-04  Nick Clifton  <nickc@redhat.com>
38063         * config/rl78/rl78.h (enum reg_class): Remove real registers from
38064         General register class.
38065         * config/rl78/rl78-real.md: Replace general register constraints
38066         with real+virtual register constraints.
38068 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
38070         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
38071         from checking for -mhtm option.
38073 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
38075         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
38076         (struct ipa_sra_check_caller_data): Add has_thunk field.
38077         (ipa_sra_check_caller): Check for thunk.
38078         (ipa_sra_preliminary_function_checks): Give up on function with
38079         thunks.
38080         (ipa_early_sra): Use call_for_symbol_and_aliases.
38082 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
38084         PR target/65249
38085         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
38086         called for __stack_chk_guard symbol.
38088 2015-03-03  DJ Delorie  <dj@redhat.com>
38090         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
38091         inc/dec.
38092         (*addhi3_real): Likewise.
38093         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
38094         pattern to match incrementing memory.
38095         * config/rl78/predicates.md (rl78_1_2_operand): New.
38096         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
38097         it's the same and only mem.
38098         (rl78_alloc_physical_registers_op2): If there's effectively only
38099         one MEM, transcode it into HL.
38100         (rl78_far_p): Reject addresses that aren't legitimate.
38102 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
38104         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
38105         negating it.
38107         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
38109 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
38111         Implement call0 ABI for xtensa
38112         * config/xtensa/constraints.md ("a" constraint): Include stack
38113         pointer in case of call0 ABI.
38114         ("q" constraint): Make empty in case of call0 ABI.
38115         ("D" constraint): Include stack pointer in case of call0 ABI.
38116         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
38117         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
38118         prototypes.
38119         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
38120         variable.
38121         (xtensa_regno_to_class): Make it a local variable in the
38122         function xtensa_regno_to_class.
38123         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
38124         macro, function prototype and implementation.
38125         (reg_nonleaf_alloc_order): Make it a local variable in the
38126         function order_regs_for_local_alloc.
38127         (xtensa_conditional_register_usage): New function.
38128         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
38129         (xtensa_valid_move): Allow direct moves to stack pointer
38130         register in call0 ABI.
38131         (xtensa_setup_frame_addresses): Only spill register windows in
38132         windowed ABI.
38133         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
38134         call0 ABI respectively.
38135         (xtensa_function_arg_1): Only mark a7 register for copying in
38136         windowed ABI.
38137         (xtensa_call_save_reg): New function.
38138         (compute_frame_size): Add space for callee saved register
38139         storage to the frame size in call0 ABI.
38140         (xtensa_expand_prologue): Generate code to set up stack frame
38141         and save callee-saved registers in call0 ABI.
38142         (xtensa_expand_epilogue): New function.
38143         (xtensa_set_return_address): New function.
38144         (xtensa_return_addr): Calculate return address in call0 ABI.
38145         (xtensa_builtin_saveregs): Only mark a7 register for copying and
38146         emit copying code in windowed ABI.
38147         (order_regs_for_local_alloc): Add preferred register allocation
38148         order for non-leaf function in call0 ABI.
38149         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
38150         (xtensa_asm_trampoline_template): Add trampoline generation for
38151         call0 ABI.
38152         (xtensa_trampoline_init): Add trampoline initialization for
38153         call0 ABI.
38154         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
38155         functions.
38156         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
38157         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
38158         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
38159         ABI call-used registers.
38160         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
38161         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
38162         call0 ABI.
38163         (REG_CLASS_CONTENTS): Include all registers into the preferred
38164         reload registers set, adjust the set in the
38165         xtensa_conditional_register_usage.
38166         (xtensa_regno_to_class): Drop variable declaration.
38167         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
38168         function.
38169         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
38170         respectively.
38171         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
38172         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
38173         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
38174         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
38175         location in call0 ABI.
38176         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
38177         stack adjustment size when handling exception.
38178         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
38179         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
38180         definitions.
38181         ("return" pattern): Generate ret.n/ret in call0 ABI.
38182         ("epilogue" pattern): Expand epilogue.
38183         ("nonlocal_goto" pattern): Use default in call0 ABI.
38184         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
38185         emit eh_set_a0_* depending on ABI.
38186         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
38187         ("eh_set_a0_call0", "blockage"): New patterns.
38189 2015-03-03  Martin Liska  <mliska@suse.cz>
38191         PR ipa/65287
38192         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
38194 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
38196         PR 65138/target
38197         * config/rs6000/rs6000-tables.opt: Regenerate table.
38199 2015-03-03  Renlin Li  <renlin.li@arm.com>
38201         * doc/md.texi (@item ^): Change ? into ^.
38203 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
38205         * doc/tm.texi: Regenerated.
38207 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
38209         * builtins.c (expand_builtin_return_addr): Add
38210         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
38211         surrounding #ifdef.
38212         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
38213         definition to 1.
38214         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
38215         Likewise.
38216         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
38217         undefined.
38218         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
38219         paragraph.
38221 2015-03-03  Martin Jambor  <mjambor@suse.cz>
38222             Eric Botcazou  <ebotcazou@adacore.com>
38224         * tree-sra.c (ipa_sra_check_caller_data): New type.
38225         (has_caller_p): Removed.
38226         (ipa_sra_check_caller): New function.
38227         (ipa_sra_preliminary_function_checks): Use it.
38229 2015-03-03  Martin Liska  <mliska@suse.cz>
38231         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
38232         instead of if branch.
38234 2015-03-03  Martin Liska  <mliska@suse.cz>
38236         PR ipa/65282
38237         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
38239 2015-03-23  Jeff Law  <law@redhat.com>
38241         PR tree-optimization/65241
38242         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
38243         hash table if INSERT is true.
38245 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
38247         PR target/65296
38248         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
38250 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
38252         PR target/64331
38253         * config/avr/avr.c (context.h, tree-pass.h): Include them.
38254         (avr_pass_data_recompute_notes): New static variable.
38255         (avr_pass_recompute_notes): New class.
38256         (avr_register_passes): New static function.
38257         (avr_option_override): Call it.
38259 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
38261         Fix various problems with specs file generation.
38263         PR target/65296
38264         * config.gcc (extra_gcc_objs) [avr]: Remove.
38265         * config/avr/driver-avr.c: Remove file.
38266         * config/avr/t-avr (driver-avr.o): Remove rule.
38267         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
38268         INCLUDES to build.  Depend on TM_H.
38269         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
38270         build warnings.  Fix non-matching types and non-existing %-codes.
38271         (tm.h): Include.
38272         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
38273         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
38274         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
38275         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
38276         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
38277         (LIBGCC_SPEC): Remove definitions.
38279 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
38281         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
38282         to create a register in testing mode.
38284 2015-03-03  Martin Liska  <mliska@suse.cz>
38285             Jan Hubicka  <hubicka@ucw.cz>
38287         PR ipa/65263
38288         * cgraph.c (cgraph_node::has_thunk_p): New function.
38289         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
38290         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
38291         (sem_function::merge): Assert is changed.
38293 2015-03-03  Martin Liska  <mliska@suse.cz>
38294             Martin Jambor  <mjambor@suse.cz>
38296         PR ipa/65087
38297         * ipa-icf.c (sem_item_optimizer::execute): Change function
38298         return value to boolean.
38299         (sem_item_optimizer::merge_classes): Likewise.
38300         (ipa_icf_driver): Return TODO_remove_functions in case there's
38301         a merge operation processed.
38302         * ipa-icf.h: Change function return value to boolean.
38304 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
38306         PR 65138/target
38307         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
38308         processor type for 64-bit little endian PowerPC.
38310         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
38311         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
38312         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
38313         printing built-in mask so it does not pass NULL pointers.
38315         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
38316         -mcpu=powerpc64le.
38318 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
38320         PR target/58158
38321         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
38322         !ISA_HAS_FP_CONDMOVE.
38324 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
38326         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
38327         reload_completed.
38329 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
38331         * doc/invoke.texi (Options for Code Generation Conventions):
38332         Fix URL of DSO paper.
38334 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
38336         PR ipa/65130
38337         * ipa-inline.c (check_callers): Looks for recursion.
38338         (inline_to_all_callers): Give up on uninlinable or recursive edges.
38339         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
38340         summary of inline clones.
38341         (do_estimate_growth_1): Fix recursion check.
38343 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
38345         PR ipa/64988
38346         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
38347         comdat groups.
38349 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
38350             Aldy Hernandez  <aldyh@redhat.com>
38352         PR lto/65276
38353         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
38354         when checking TYPE_BINFO.
38356 2015-03-02  Richard Biener  <rguenther@suse.de>
38358         PR ipa/65270
38359         * ipa-icf-gimple.c: Include builtins.h.
38360         (func_checker::compare_memory_operand): Compare base alignment.
38362 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
38364         PR target/65184
38365         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
38366         passed by reference.
38368 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
38370         PR target/65183
38371         * tree-chkp.c (chkp_check_lower): Don't check against
38372         zero bounds for already instrumented functions.
38373         (chkp_check_upper): Likewise.
38374         (chkp_fini): Clean pass local data to avoid wrong reusage.
38376 2015-02-28  Martin Liska  <mliska@suse.cz>
38377             Jan Hubicka  <hubicka@ucw.cz>
38379         * ipa-icf.c (sem_variable::equals): Improve debug output;
38380         get variable constructor.
38381         (sem_variable::parse): Do not filter out too early; give up on
38382         volatile and register vars.
38383         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
38384         variables.
38385         * ipa-icf.h (sem_variable::init): Do not set ctor.
38386         (sem_variable::ctor): Remove.
38388 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
38390         PR middle-end/65233
38391         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
38393 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
38395         * ipa-icf.c: Include stor-layout.h
38396         (sem_function::compare_cgraph_references): Rename to ...
38397         (sem_item::compare_cgraph_references): ... this one.
38398         (sem_variable::equals_wpa): New function
38399         (sem_variable::equals): Do not check stuff already verified by
38400         equals_wpa.
38401         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
38402         * ipa-icf.h (sem_item): Add compare_cgraph_references.
38403         (sem_function): Remove compare_cgraph_references.
38404         (sem_variable): Turns equals_wpa into non-inline.
38406 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
38408         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
38409         (sem_item::add_expr): New function.
38410         (sem_function::hash_stmt): Handle operands of most statements.
38411         (sem_variable::get_hash): Hash the actual constructor.
38412         * ipa-icf.h (sem_item): Add add_expr.
38413         (sem_function): Update prototype of hash_stmt
38415 2015-02-28  Martin Liska  <mliska@suse.cz>
38416             Jan Hubicka  <hubicka@ucw.cz>
38418         PR ipa/65245
38419         * ipa-icf-gimple.c (func_checker::compare_function_decl):
38420         Remove.
38421         (func_checker::compare_variable_decl): Skip symtab vars.
38422         (func_checker::compare_cst_or_decl): Update.
38423         * ipa-icf.c (sem_function::parse): Do not consider aliases.
38424         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
38425         use correct symtab predicates.
38426         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
38427         (sem_variable::parse):  Update comment.
38428         (sem_item_optimizer::build_graph): Consider ultimate aliases
38429         for references.
38431 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
38433         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
38434         of OBJ_TYPE_REF.
38436 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
38438         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
38439         (sem_variable::merge) Likewise.
38441 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
38443         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
38444         target; also match flag_ipa_devirt.
38446 2015-03-01  Martin Liska  <mliska@suse.cz>
38447             Jan Hubicka  <hubicka@ucw.cz>
38449         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
38450         Validate variable alignment.
38451         * ipa-icf.c (sem_function::equals_private): Be more precise
38452         about non-common function attributes.
38453         (sem_variable::equals): Likewise.
38455 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
38457         PR ipa/65237
38458         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
38459         across COMDAT group boundary.
38461 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
38463         PR ipa/65232
38464         * ipa-icf.c (clear_decl_rtl): New function.
38465         (sem_function::merge): Clear RTL before forming alias.
38466         (sem_variable::merge): Clear RTL before forming alias.
38468 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
38470         PR ipa/65236
38471         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
38473 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
38475         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
38476         to neon_to_gp<q>.
38478 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
38480         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
38481         a typo in the description.
38483 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
38485         PR target/64317
38486         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
38487         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
38488         * lra-constraints.c: Include "params.h".
38489         (EBB_PROBABILITY_CUTOFF): Use
38490         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
38491         (lra_inheritance): Use '<' instead of '<=' for
38492         EBB_PROBABILITY_CUTOFF.
38493         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
38494         Document change.
38496 2015-02-27  Martin Liska  <mliska@suse.cz>
38498         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
38499         vector length condition.
38501 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
38503         * doc/extend.texi (x86 transactional memory intrinsics):
38504         Reorganize discussion of _xbegin.  Clarify that the return
38505         value is a bit mask.  Expand example and move to end of section.
38507 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
38508             Aldy Hernandez  <aldyh@redhat.com>
38510         PR rtl-optimization/65220
38511         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
38513 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
38515         PR target/65032
38516         * lra-remat.c (update_scratch_ops): New.
38517         (do_remat): Call it.
38518         * lra.c (lra_register_new_scratch_op): New. Take code from ...
38519         (remove_scratches): ... here.
38520         * lra-int.h (lra_register_new_scratch_op): New prototype.
38522 2015-02-27  Marek Polacek  <polacek@redhat.com>
38524         PR c/65040
38525         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
38526         -Wformat-signedness anymore.
38528 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38530         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
38531         function.
38532         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
38534 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38536         * config/s390/s390.c (enum s390_builtin):
38537         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
38538         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
38539         (s390_init_builtins): Generate new builtin functions.
38540         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
38541         (s390_sfpc, s390_efpc): New pattern definitions.
38543 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38545         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
38546         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
38547         (s390_builtin_decls): New array.
38548         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
38549         (s390_builtin_decl): New function.
38550         (TARGET_BUILTIN_DECL): Define macro.
38552 2015-02-27  Richard Biener  <rguenther@suse.de>
38554         PR middle-end/63175
38555         * builtins.c (get_object_alignment_2): Make sure to re-apply
38556         the ANDed mask after recursing to its operand gets us a new
38557         misalignment bit position.
38559 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
38560             Martin Liska  <mliska@suse.cz>
38562         PR bootstrap/65150
38563         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
38564         Use address_matters_p.
38565         (redirect_all_callers, set_addressable): New functions.
38566         (sem_function::merge): Reorganize and fix merging issues.
38567         (sem_variable::merge): Likewise.
38568         (sem_variable::compare_sections): Remove.
38569         * common.opt (fmerge-all-constants, fmerge-constants): Remove
38570         Optimization flag.
38571         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
38572         redirect them.
38573         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
38574         decl is used.
38575         (address_matters_1): New function.
38576         (symtab_node::address_matters_p): New function.
38577         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
38578         check for merged flag.
38579         * cgraph.h (address_matters_p): Declare.
38580         (symtab_node::address_taken_from_non_vtable_p): Remove.
38581         (symtab_node::address_can_be_compared_p): New method.
38582         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
38583         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
38584         Remove.
38585         (comdat_can_be_unshared_p_1) Use address_matters_p.
38586         (update_vtable_references): Fix formating.
38587         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
38588         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
38589         * cgraphclones.c: Preserve merged and icf_merged flags.
38591 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
38593         * doc/extend.texi (Function Attributes): Fix spelling and typos.
38594         (Label Attributes): Likewise.
38595         (Cilk Plus Builtins): Likewise.
38596         (ARC SIMD Built-in Functions): Likewise.
38597         (ARM C Language Extensions (ACLE)): Likewise.
38598         (PowerPC Built-in Functions): Likewise.
38599         (PowerPC Hardware Transactional Memory Built-in Functions):
38600         Likewise.
38602 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
38604         PR tree-optimization/65216
38605         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
38606         new stmt and new SSA_NAME for lhs whenever the arguments have
38607         changed and weren't just swapped.  Fix comment typo.
38609         PR tree-optimization/65215
38610         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
38611         for PDP endian targets.
38612         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
38613         Fix up formatting issues.
38614         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
38615         size is smaller than the original, adjust MEM_REF offset by the
38616         difference of sizes.  Use is_gimple_mem_ref_addr instead of
38617         is_gimple_min_invariant test to avoid adding address temporaries.
38619 2015-02-26  Martin Liska  <mliska@suse.cz>
38620             Jan Hubicka  <hubicka@ucw.cz>
38622         PR ipa/64693
38623         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
38624         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
38625         (sem_item_optimizer::process_cong_reduction): Include division by
38626         sensitive references.
38627         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
38628         * ipa-ref.c (ipa_ref::address_matters_p): New function.
38629         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
38631 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
38633         PR target/65192
38634         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
38635         Remove.
38636         * config/avr/avr.c: Same.
38637         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
38638         Refuse any constant address not in 0..0xbf.
38639         * config/avr/avr.md (*mov<mode>, *movsf): Remove
38640         tiny_valid_direct_memory_access_range from insn conditions.
38641         (mov<mode>): Don't special-case expansion of avrtiny addresses.
38643 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
38645         PR target/61142
38646         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
38647         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
38648         * config/sh/predicates.md (const_logical_operand): New predicate.
38649         * config/sh/sh.md: Add new peephole2 patterns.
38651 2015-02-26  Marek Polacek  <polacek@redhat.com>
38653         PR ipa/65008
38654         * ipa-inline.c (early_inliner): Recompute inline parameters.
38656 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
38658         PR target/65171
38659         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
38660         instructions with TImode operands are included in the analysis.
38662 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
38664         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
38665         of an EDGE_FSM_THREAD.
38667 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38669         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
38671 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
38673         PR debug/46102
38674         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
38676 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
38678         PR tree-optimization/65048
38679         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
38680         (thread_through_all_blocks): Call valid_jump_thread_path.
38681         Remove invalid FSM jump-thread paths.
38683 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
38685         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
38686         (ipa_write_optimization_summaries): Likewise.
38687         * tree-streamer.h: Include data-streamer.h.
38688         (streamer_mode_table): Declare extern variable.
38689         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
38690         * lto-streamer-out.c (lto_output_init_mode_table,
38691         lto_write_mode_table): New functions.
38692         (produce_asm_for_decls): Call lto_write_mode_table when streaming
38693         offloading LTO.
38694         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
38695         (lto_create_simple_input_block): Add mode_table argument to the
38696         lto_input_block constructors.
38697         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
38698         Likewise.
38699         * data-streamer-in.c (string_for_index): Likewise.
38700         * ipa-inline-analysis.c (inline_read_section): Likewise.
38701         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
38702         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
38703         * lto-streamer-in.c (lto_read_body_or_constructor,
38704         lto_input_toplevel_asms): Likewise.
38705         (lto_input_mode_table): New function.
38706         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
38707         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
38708         Use bp_pack_machine_mode.
38709         * real.h (struct real_format): Add name field.
38710         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
38711         (class lto_input_block): Add mode_table member.
38712         (lto_input_block::lto_input_block): Add mode_table_ argument,
38713         initialize mode_table.
38714         (struct lto_file_decl_data): Add mode_table field.
38715         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
38716         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
38717         unpack_ts_decl_common_value_fields,
38718         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
38719         * tree-streamer.c (streamer_mode_table): New variable.
38720         * real.c (ieee_single_format, mips_single_format,
38721         motorola_single_format, spu_single_format, ieee_double_format,
38722         mips_double_format, motorola_double_format,
38723         ieee_extended_motorola_format, ieee_extended_intel_96_format,
38724         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
38725         ibm_extended_format, mips_extended_format, ieee_quad_format,
38726         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
38727         decimal_single_format, decimal_double_format, decimal_quad_format,
38728         ieee_half_format, arm_half_format, real_internal_format): Add name
38729         field.
38730         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
38732 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
38734         PR target/65161
38735         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
38736         reordering for selective scheduling.
38738 2015-02-26  Terry Guo  <terry.guo@arm.com>
38740         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
38741         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
38742         (arm_arch_no_volatile_ce): Declare new global variable.
38743         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
38744         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
38745         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
38746         (TARGET_NO_VOLATILE_CE): New macro.
38747         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
38748         volatile memory access in IT block
38750 2015-02-25  Kai Tietz  <ktietz@redhat.com>
38752         PR tree-optimization/61917
38753         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
38754         that reduc_def_stmt is null.
38756 2015-02-25  Martin Liska  <mliska@suse.cz>
38758         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
38759         hard register variables.
38761 2015-02-25  Kai Tietz  <ktietz@redhat.com>
38763         PR target/64212
38764         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
38765         (symtab::noninterposable_alias): Likewise.
38767 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
38769         PR target/65167
38770         * config/i386/i386.c (ix86_function_arg_regno_p): Support
38771         bounds registers.
38772         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
38774 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
38776         PR target/64997
38777         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
38778         as split condition; force split via '#' in output pattern.
38780 2015-02-25  Richard Biener  <rguenther@suse.de>
38781             Kai Tietz  <ktietz@redhat.com>
38783         PR tree-optimization/61917
38784         * tree-vect-loop.c (vectorizable_reduction): Allow
38785         vect_internal_def without reduction to exit graceful.
38787 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
38789         PR target/65196
38790         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
38791         only with NONDEBUG_INSN_P.
38793 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
38795         Use variadic macros with avr-log.c.
38797         * config/avr/avr-protos.h (avr_vdump): New prototype.
38798         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
38799         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
38800         * config/avr/avr-log.c: Adjust comments.
38801         (avr_vdump): New function.
38802         (avr_vadump): Pass caller as 2nd argument instead of format string.
38803         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
38804         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
38806 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
38808         PR lto/64374
38809         * target.def (target_option_stream_in): New target hook.
38810         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
38811         targetm.target_option.post_stream_in if non-NULL.
38812         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
38813         * doc/tm.texi: Updated.
38814         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
38815         function.
38816         (TARGET_OPTION_POST_STREAM_IN): Redefine.
38818 2015-02-24  Jeff Law  <law@redhat.com>
38820         PR target/65117
38821         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
38822         of operand 0 and operand 2.
38823         (zero_cost_loop_end, loop_end): Similarly.
38825 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
38827         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
38828         CXX_MEM_STAT_INFO.
38830 2015-02-24  DJ Delorie  <dj@redhat.com>
38832         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
38833         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
38834         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
38835         instead of hardcoding SImode.
38837 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
38839         * omp-low.c (create_omp_child_function): Tag entrypoint
38840         functions with a special attribute.
38842 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
38844         PR target/65058
38845         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
38847 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
38849         PR rtl-optimization/65123
38850         * lra-remat.c (operand_to_remat): Check hard regs in insn
38851         definition too.
38853 2015-02-24  Nick Clifton  <nickc@redhat.com>
38855         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
38856         to the assembler.
38858 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
38860         PR libgomp/64625
38861         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
38862         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
38863         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
38864         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
38865         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
38866         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
38867         (BUILT_IN_GOACC_PARALLEL): Specify as
38868         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
38869         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
38870         * builtin-types.def
38871         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38872         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38873         Remove function types.
38874         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
38875         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38876         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38877         New function types.
38879 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
38881         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
38883 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
38885         PR tree-optimization/65170
38886         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
38887         if val[1] < 0, clear also val[2] and return 3.
38889 2015-02-24  Alan Modra  <amodra@gmail.com>
38891         PR target/65172
38892         * config/rs6000/rs6000.c (get_memref_parts): Only return true
38893         when *base is a reg.  Handle nested plus addresses.  Simplify
38894         pre_modify test.
38896 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
38898         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
38899         use natural alignment when optimizing for size.
38901 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
38903         PR target/65153
38904         * config/sh/sh.md (movsicc_true+3): Remove peephole.
38905         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
38906         * config/sh/sh.c (replace_n_hard_rtx): Remove.
38908 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
38910         PR fortran/63427
38911         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
38912         too big for a wide_int.  Implement missing wrapping operation.
38914 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
38916         PR target/65163
38917         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
38918         instead of const_int 4294901760.
38920 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
38922         * config/avr/t-avr: Fix typo in comment.
38924 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
38926         * doc/rtl.texi (fma): Clarify documentation.
38928 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
38930         PR debug/58123
38931         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
38932         over input_location.
38934 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
38936         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
38937         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
38938         restrict alignments to absolute_biggest_alignment.
38939         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
38940         Define.
38941         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
38942         * doc/tm.texi: Regenerate.
38943         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
38945 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
38947         PR target/64172
38948         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
38950 2015-02-20  Richard Biener  <rguenther@suse.de>
38952         PR tree-optimization/65136
38953         * tree-ssa-propagate.c: Include cfgloop.h.
38954         (replace_phi_args_in): Avoid replacing loop latch edge PHI
38955         arguments with constants.
38957 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
38958             Martin Liska  <mliska@suse.cz>
38960         PR target/63892
38961         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
38962         don't try to create_thunk if stdarg_p.  If
38963         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
38964         redirect_callers if possible.
38965         (sem_item_optimizer::execute): Call unregister_hooks here...
38966         (ipa_icf_driver): ... instead of here.
38968 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38970         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
38971         Mark operand 0 as earlyclobber in 2nd alternative.
38972         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
38973         Write negated shift amount into QI lowpart operand 0 and use it
38974         in the shift step.
38975         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
38977 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
38979         * cgraph.h (clone_function_name_1): Declare.
38980         * cgraphclones.c (clone_function_name_1): New function.
38981         (clone_function_name): Use it.
38982         * lto-partition.c: Include "stringpool.h".
38983         (must_not_rename, maybe_rewrite_identifier)
38984         (validize_symbol_for_target): New static functions.
38985         (privatize_symbol_name): Use must_not_rename.
38986         (promote_symbol): Call validize_symbol_for_target.
38987         (lto_promote_cross_file_statics): Likewise.
38988         (lto_promote_statics_nonwpa): Likewise.
38990 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
38992         PR target/64452
38993         * config/avr/avr.md (pushhi_insn): New insn.
38994         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
38996 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
38997             Jakub Jelinek  <jakub@redhat.com>
38999         * tree-streamer.c (preload_common_nodes): Don't preload
39000         TI_VA_LIST* for offloading.
39001         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
39002         in_lto_p.
39004 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
39006         * config/pa/pa.c (pa_emit_move_sequence): Always force
39007         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
39008         note on insn.
39010         * config/pa/pa.c (pa_reloc_rw_mask): New function.
39011         (TARGET_ASM_RELOC_RW_MASK): Define.
39012         (pa_cannot_force_const_mem): Revert previous change.
39014 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
39015             Jan Hubicka  <hubicka@ucw.cz>
39017         PR ipa/65028
39018         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
39019         across jump functions.
39021 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
39023         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
39025 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
39027         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
39029 2015-02-19  Richard Henderson  <rth@redhat.com>
39031         PR middle-end/65074
39032         * varasm.c (default_binds_local_p_2): Don't test node->definition;
39033         test DECL_EXTERNAL independent of symtab_node.
39035 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
39037         PR lto/65012
39038         * varpool.c (varpool_node::get_constructor): Return early
39039         if this->lto_file_data is NULL.
39041 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
39043         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
39044         (rank_for_schedule_debug): Update.
39045         (ready_sort): Make static.  Move sorting logic to ...
39046         (ready_sort_debug, ready_sort_real): New static functions.
39047         (schedule_block): Sort both debug insns and real insns in preparation
39048         for ready list trimming.  Improve debug output.
39049         * sched-int.h (ready_sort): Remove global declaration.
39051 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
39053         * ipa-icf.c (sem_function::equals_private): Adjust.
39054         (sem_function::bb_dict_test): Take a vec<int> * instead of
39055         auto_vec<int>.
39056         * ipa-icf.h (bb_dict_test): Likewise.
39058 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
39060         PR gcov-profile/64634
39061         * tree-eh.c (frob_into_branch_around): Fix up typos
39062         in function comment.
39063         (lower_catch): Put eh_seq resulting from EH lowering of
39064         the cleanup sequence after the cleanup rather than before it.
39066 2015-02-18  Tom de Vries  <tom@codesourcery.com>
39068         * common.opt (fstdarg-opt): New option.
39069         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
39070         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
39071         (@item -fstdarg-opt): New item.
39073 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
39075         PR target/65064
39076         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
39077         for common symbols.
39079 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
39081         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
39082         insn-modes.h.
39083         (ALL_HOST_OBJS): Add mkoffload.o.
39084         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
39086 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
39088         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
39089         (compare_virtual_tables): Be smarter about skipping typeinfos;
39090         do sane output on virtual table table mismatch.
39091         (warn_odr): Be ready for forward declarations of enums;
39092         output sane info on base mismatch and virtual table mismatch.
39093         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
39094         when only one type is polymorphic.
39095         (get_odr_type): Fix hashtable corruption.
39096         (dump_odr_type): Dump mangled names.
39098 2015-02-18  Richard Biener  <rguenther@suse.de>
39100         PR tree-optimization/65063
39101         * tree-predcom.c (determine_unroll_factor): Return 1 if we
39102         have replaced looparound PHIs.
39104 2015-02-18  Martin Liska  <mliska@suse.cz>
39106         * lto-streamer.c (lto_streamer_init): Encapsulate
39107         streamer_check_handled_ts_structures with checking macro.
39109 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
39111         PR ipa/65087
39112         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
39113         section if !implicit_section.
39114         (cgraph_node::create_version_clone_with_body): Likewise.
39115         * trans-mem.c (ipa_tm_create_version): Likewise.
39117 2015-02-18  Richard Biener  <rguenther@suse.de>
39119         PR tree-optimization/62217
39120         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
39121         into BIVs.
39123 2015-02-18  Marek Polacek  <polacek@redhat.com>
39125         PR sanitizer/65081
39126         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
39127         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
39128         is in range [-16K, -1].  Don't issue run-time error if
39129         (ptr > ptr + offset).
39131 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
39133         * doc/install.texi (nvptx-*-none): New section.
39134         * doc/invoke.texi (Nvidia PTX Options): Likewise.
39135         * config/nvptx/nvptx.opt: Update.
39137         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
39138         (access_check): New functions, copied from
39139         config/i386/intelmic-mkoffload.c.
39140         (main): For non-installed testing, look in all COMPILER_PATHs for
39141         GCC_INSTALL_NAME.
39143         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
39145 2015-02-18  Andrew Pinski  <apinski@cavium.com>
39146             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
39148         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
39149         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
39151 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
39153         * ipa-visibility.c (function_and_variable_visibility): Only
39154         check locality if node is not already local.
39155         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
39156         call_for_symbol_and_aliases instead of
39157         call_for_symbol_thunks_and_aliases.
39158         (ipa_inline): Likewise.
39159         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
39160         first walk aliases.
39161         * ipa.c (symbol_table::remove_unreachable_nodes): Use
39162         call_for_symbol_and_aliases.
39163         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
39164         (ipa_propagate_frequency_1): Use it; use opt_for_fn
39165         (ipa_propagate_frequency): Update.
39166         (ipa_profile): Add opt_for_fn gueards.
39168 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
39170         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
39171         * doc/invoke.texi (SH options): Document it.
39172         * config/sh/sh.c (sh_insn_length_adjustment): Check
39173         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
39175 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
39177         * common.opt (fipa-cp-alignment): New.
39178         * ipa-cp.c (ipcp_store_alignment_results): Check
39179         flag_ipa_cp_alignment.
39180         * opts.c (default_options_table): Enable -fipa-cp-alignment for
39181         -O2.
39182         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
39183         * doc/invoke.texi: Document -fipa-cp-alignment.
39185 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
39187         PR target/64793
39188         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
39189         to nil.  Adjust comments.
39191 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
39193         * ipa-visibility.c (function_and_variable_visibility): Only
39194         check locality if node is not already local.
39195         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
39196         call_for_symbol_and_aliases instead of
39197         call_for_symbol_thunks_and_aliases.
39198         (ipa_inline): Likewise.
39199         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
39200         first walk aliases.
39201         * ipa.c (symbol_table::remove_unreachable_nodes): Use
39202         call_for_symbol_and_aliases.
39203         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
39204         (ipa_propagate_frequency_1): Use it; use opt_for_fn
39205         (ipa_propagate_frequency): Update.
39206         (ipa_profile): Add opt_for_fn guards.
39208 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
39210         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
39211         skipping of "strange" tokens.
39213 2015-02-17  Jeff Law  <law@redhat.com>
39215         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
39216         obsolete comment.
39218 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
39220         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
39221         as forcing a HARD_DEP between instructions, thereby
39222         disallowing rewriting to break dependencies.
39224 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
39226         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
39227         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
39228         variables in boundary that have no inlitalizer encoded and are
39229         not aliases.
39230         * varasm.c (default_binds_local_p_2): External definitions do not
39231         count as definitions here.
39233 2015-02-16  Jeff Law  <law@redhat.com>
39235         PR tree-optimization/64823
39236         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
39237         statements.
39238         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
39239         threading through blocks with PHIs, but no statements.
39240         (thread_through_normal_block): Distinguish between blocks where
39241         we did not process all the statements and blocks with no statements.
39243 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
39244             James Greenhalgh  <james.greenhalgh@arm.com>
39246         PR ipa/64963
39247         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
39248         section if not linkonce.  Fix up formatting.
39249         (cgraph_node::create_version_clone_with_body): Copy section.
39250         * trans-mem.c (ipa_tm_create_version): Likewise.
39252 2015-02-16  Richard Biener  <rguenther@suse.de>
39254         PR tree-optimization/65077
39255         * tree-ssa-structalias.c (get_constraint_for_1): Handle
39256         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
39257         (find_func_aliases): Allow float values to carry pointers again.
39259 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
39261         * doc/install.texi (Specific): Reorder targets list to put
39262         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
39263         from the top menu.
39265 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
39266             David Edelsohn  <dje.gcc@gmail.com>
39268         PR target/65058
39269         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
39270         mapping class to external variable or function reference.
39271         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
39272         mapping class.
39274 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
39276         PR target/53348
39277         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
39278         ASM_WEAKEN_DECL if defined.
39280 2015-02-16  Richard Biener  <rguenther@suse.de>
39282         PR lto/65015
39283         * varasm.c (default_file_start): For LTO produced units
39284         emit <artificial> as file directive.
39286 2015-02-16  Richard Biener  <rguenther@suse.de>
39288         PR tree-optimization/63593
39289         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
39290         stmts and releasing SSA names until...
39291         (execute_pred_commoning): ... after processing all chains.
39293 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
39295         PR ipa/65059
39296         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
39297         external functions.
39299 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
39301         * doc/bugreport.texi: Adjust section titles throughout the file
39302         to use "Title Case".
39303         * doc/extend.texi: Likewise.
39304         * doc/gcov.texi: Likewise.
39305         * doc/implement-c.texi: Likewise.
39306         * doc/implement-cxx.texi: Likewise.
39307         * doc/invoke.texi: Likewise.
39308         * doc/objc.texi: Likewise.
39309         * doc/standards.texi: Likewise.
39310         * doc/trouble.texi: Likewise.
39312 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
39314         * cgraph.h (symtab_node::has_aliases_p): Simplify.
39315         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
39316         * tree.c (lookup_binfo_at_offset): Make static.
39317         (get_binfo_at_offset): Do not shadow offset; add explanatory
39318         comment.
39320 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
39322         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
39323         for all floading point loads and stores except those using a register
39324         index address.
39325         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
39326         to a register.
39328 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
39330         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
39331         (do_estimate_growth_1): Record if any uninlinable edge was seen.
39332         (estimate_growth): Handle uninlinable edges correctly.
39333         (check_callers): New.
39334         (growth_likely_positive): Handle aliases correctly.
39336 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
39338         * ipa-chkp.c: Use iterate_direct_aliases.
39339         * symtab.c (resolution_used_from_other_file_p): Move inline.
39340         (symtab_node::create_reference): Fix formating.
39341         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
39342         (symtab_node::iterate_reference): Move inline.
39343         (symtab_node::iterate_referring): Move inline.
39344         (symtab_node::iterate_direct_aliases): Move inline.
39345         (symtab_node::used_from_object_file_p_worker): Inline into ...
39346         (symtab_node::used_from_object_file_p): ... this one; move inline.
39347         (symtab_node::call_for_symbol_and_aliases): Move inline;
39348         use iterate_direct_aliases.
39349         (symtab_node::call_for_symbol_and_aliases_1): New method.
39350         (cgraph_node::call_for_symbol_and_aliases): Move inline;
39351         use iterate_direct_aliases.
39352         (cgraph_node::call_for_symbol_and_aliases_1): New method.
39353         (varpool_node::call_for_node_and_aliases): Rename to ...
39354         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
39355         use iterate_direct_aliases.
39356         (varpool_node::call_for_symbol_and_aliases_1): New method.
39357         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
39358         (ipa_discover_readonly_nonaddressable_var): Update.
39359         * ipa-devirt.c: Fix formating.
39360         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
39361         Move inline.
39362         (cgraph_node::call_for_symbol_and_aliases): Move inline.
39363         (cgraph_node::call_for_symbol_and_aliases_1): New function..
39364         * cgraph.h (used_from_object_file_p_worker): Remove.
39365         (resolution_used_from_other_file_p): Move inline.
39366         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
39367         (symtab_node::iterate_reference): Move inline.
39368         (symtab_node::iterate_referring): Move inline.
39369         (symtab_node::iterate_direct_aliases): Move inline.
39370         (symtab_node::used_from_object_file_p_worker): Inline into ...
39371         (symtab_node::used_from_object_file_p): Move inline.
39372         * tree-emutls.c (ipa_lower_emutls): Update.
39373         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
39374         (varpool_node::call_for_node_and_aliases): Remove.
39376 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
39378         PR tree-optimization/62209
39379         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
39380         op == range->exp, insert seq and gimplified code after labels
39381         instead of after the phi.
39383 2015-02-13  Jeff Law  <law@redhat.com>
39385         PR bootstrap/65060
39386         Revert my change for tree-optimization/64823.
39388 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
39390         PR tree-optimization/65053
39391         * tree-ssa-phiopt.c (value_replacement): When moving assign before
39392         cond, either reset VR on lhs or set it to phi result VR.
39394 2015-02-13  Jeff Law  <law@redhat.com>
39396         PR tree-optimization/64823
39397         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
39398         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
39399         threading through blocks with PHIs, but no statements.
39400         (thread_through_normal_block): Distinguish between blocks where
39401         we did not process all the statements and blocks with no statements.
39403         PR rtl-optimization/47477
39404         * match.pd (convert (plus/minus (convert @0) (convert @1): New
39405         simplifier to narrow arithmetic.
39407 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
39409         PR ipa/65028
39410         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
39411         polymorphic call info when type is not known to be preserved.
39413 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
39415         PR ipa/65028
39416         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
39417         (inline_call): Use it.
39419 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
39421         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
39422         GOMP_DEVICE_NVIDIA_PTX.
39424 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
39426         PR ipa/65034
39427         * stmt.c (emit_case_nodes): Use void_type_node instead of
39428         NULL_TREE as LABEL_DECL type.
39430 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
39432         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
39433         constraints.
39434         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
39435         symbolic references to data to be forced to constant memory on the
39436         SOM target.
39438 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
39440         PR tree-optimization/65002
39441         * tree-cfg.c (pass_data_fixup_cfg): Don't update
39442         SSA on start.
39443         * tree-sra.c (some_callers_have_no_vuse_p): New.
39444         (ipa_early_sra): Reject functions whose callers
39445         assume function is read only.
39447 2015-02-13  Richard Biener  <rguenther@suse.de>
39449         PR lto/65015
39450         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
39451         for LTO produced CUs.
39453 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
39455         PR tree-optimization/64705
39456         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
39457         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
39458         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
39459         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
39460         expand_simple_operations.
39462 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
39463             Richard Henderson  <rth@redhat.com>
39465         PR rtl/32219
39466         * cgraphunit.c (cgraph_node::finalize_function): Set definition
39467         before notice_global_symbol.
39468         (varpool_node::finalize_decl): Likewise.
39469         * varasm.c (default_binds_local_p_2): Rename from
39470         default_binds_local_p_1, add weak_dominate argument.  Use direct
39471         returns instead of assigning to local variable.  Unify varpool and
39472         cgraph paths via symtab_node.  Reject undef weak variables before
39473         testing visibility.  Reorder tests for simplicity.
39474         (default_binds_local_p): Use default_binds_local_p_2.
39475         (default_binds_local_p_1): Likewise.
39476         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
39477         via symtab_node.
39478         (default_elf_asm_output_external): Emit visibility when specified.
39480 2015-02-13  Alan Modra  <amodra@gmail.com>
39482         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
39483         code setting up r11 for out-of-line fp restore.
39485 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
39487         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
39488         (muser-mode): Likewise.
39490 2015-02-13  Alan Modra  <amodra@gmail.com>
39492         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
39493         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
39495 2015-02-12  David Howells  <dhowells@redhat.com>
39497         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
39498         warning.
39499         * tree-ssa-uninit.c (dump_predicates): Likewise.
39500         * opts.c (print_filtered_help): Likewise.
39502 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
39504         * dwarf2out.c (output_die): Use "%s", name instead of name to
39505         avoid -Wformat-security warning.
39507         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
39508         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
39509         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
39510         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
39512 2015-02-12  Jason Merrill  <jason@redhat.com>
39514         * common.opt (-flifetime-dse): New.
39516 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
39518         PR sanitizer/65019
39519         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
39521         PR tree-optimization/65014
39522         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
39523         use original second operand of arg0 or arg1 instead of
39524         that adjusted by STRIP_NOPS.
39526 2015-02-11  Jeff Law  <law@redhat.com>
39528         PR target/63347
39529         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
39530         that needs to be queued, just queue it for a single cycle.
39532 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
39534         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
39535         bodies of thunks; comment on why.
39536         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
39537         symbols are extern.
39539 2015-02-11  Richard Henderson  <rth@redhat.com>
39541         PR sanitize/65000
39542         * tree-eh.c (mark_reachable_handlers): Mark source and destination
39543         regions of __builtin_eh_copy_values.
39545 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
39547         PR middle-end/65003
39548         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
39549         ultimate alias is MEM with SYMBOL_REF satisfying
39550         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
39551         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
39553 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
39555         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
39556         "diagnostic-core.h".
39557         (main): Initialize progname, and call diagnostic_initialize.
39559         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
39560         instead of __OPENMP_TARGET__.
39562         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
39563         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
39564         hard-coding PTX_ID.
39566 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
39568         * doc/sourcebuild.texi (pie_enabled): Document.
39570 2015-02-11  Martin Liska  <mliska@suse.cz>
39572         PR ipa/64813
39573         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
39574         a return value for call to a function that is noreturn.
39576 2015-02-11  Richard Biener  <rguenther@suse.de>
39578         PR lto/65015
39579         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
39580         and -fresolution.
39582 2015-02-11  Andrew Pinski  <apinski@cavium.com>
39584         PR target/64893
39585         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
39586         Change the first argument type to size_type_node and add another
39587         size_type_node.
39588         (aarch64_simd_expand_builtin): Handle the new argument to
39589         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
39590         print an out when the first two arguments are not
39591         nonzero integer constants.
39592         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
39593         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
39595 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
39597         PR target/61925
39598         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
39599         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
39600         (ix86_set_current_function): Rewritten.
39601         (ix86_add_new_builtins): Temporarily clear current_target_pragma
39602         when creating builtin fndecls.
39604 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
39606         PR ipa/65005
39607         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
39608         function.
39609         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
39610         have no comdat group.
39611         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
39612         (lto_output_varpool_node): Always output alias info.
39613         (output_refs): Output refs of boundary aliases, too.
39614         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
39615         (output_symtab): Output call eges in thunks in boundary.
39616         (get_alias_symbol): Remove.
39617         (input_node, input_varpool_node): Do not special case weakrefs.
39618         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
39619         alias and thunks targets in the boundary; do not take removed symbols
39620         from their comdat groups.
39621         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
39622         (cgraph_node::global_info): Remove.
39623         (cgraph_node::rtl_info): Look through aliases and thunks.
39624         * cgrpah.h (global_info): Remove.
39625         (non_local_p): Remove.
39627 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
39628             Sandra Loosemore  <sandra@codesourcery.com>
39630         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
39631         to inline asm.  List dialects in proper order.
39633 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
39634             Sandra Loosemore  <sandra@codesourcery.com>
39636         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
39638 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
39640         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
39641         modified) reference to Solaris.
39643 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
39645         * doc/extend.texi (Extended Asm): Fix typos.
39647 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
39649         PR sanitizer/65004
39650         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
39652 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
39654         PR target/64661
39655         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
39656         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
39657         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
39658         * config/sh/constraints.md (Ara, Add): New constraints.
39659         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
39660         predicates.
39661         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
39662         atomic_mem_operand_0.  Don't use force_reg on the memory address.
39663         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
39664         Sra constraint.  Convert to insn_and_split.  Add workaround for
39665         PR 64974.
39666         (atomic_compare_and_swap<mode>_hard): Copy to
39667         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
39668         Use atomic_mem_operand_0 predicate.
39669         (atomic_compare_and_swap<mode>_soft_gusa,
39670         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
39671         AraAdd constraints.
39672         (atomic_compare_and_swap<mode>_soft_tcb,
39673         atomic_compare_and_swap<mode>_soft_imask,
39674         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
39675         atomic_mem_operand_0 predicate and SraSdd constraints.
39676         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
39677         constraint.
39678         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
39679         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
39680         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
39681         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
39682         force_reg on the memory address.
39683         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
39684         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
39685         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
39686         atomic_mem_operand_1 predicate and Sra constraint.
39687         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
39688         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
39689         Use atomic_mem_operand_1 predicate.
39690         (atomic_<fetchop_name><mode>_hard): Copy to
39691         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
39692         Use atomic_mem_operand_1 predicate.
39693         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
39694         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
39695         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
39696         insn_and_split.  Use atomic_mem_operand_1 predicate.
39697         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
39698         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
39699         Use atomic_mem_operand_1 predicate.
39700         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
39701         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
39702         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
39703         in generated insn with original mem operand before emitting the insn.
39704         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
39705         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
39706         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
39707         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
39708         Use atomic_mem_operand_1 predicate and AraAdd constraints.
39709         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
39710         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
39711         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
39712         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
39713         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
39714         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
39715         atomic_not_fetch<mode>_soft_tcb,
39716         atomic_<fetchop_name>_fetch<mode>_soft_imask,
39717         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
39718         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
39719         Use atomic_mem_operand_1 predicate and SraSdd constraints.
39721 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
39723         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
39724         and 3 earlyclobber operands.
39726 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
39728         * common.opt (fstack-reuse): Mark as optimization.
39730 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
39732         PR ipa/64982
39733         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
39735 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
39737         PR tree-optimization/64326
39738         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
39740 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
39742         PR gcov-profile/61889
39743         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
39745 2015-02-10  Richard Biener  <rguenther@suse.de>
39747         PR tree-optimization/64995
39748         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
39749         value we use is final.
39750         (visit_reference_op_store): Always valueize op.
39751         (visit_use): Properly valueize vuses.
39753 2015-02-10  Richard Biener  <rguenther@suse.de>
39755         PR tree-optimization/64909
39756         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
39757         pass a scalar-stmt count estimate to the cost model.
39758         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
39760 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
39762         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
39763         enabled by default together with var-tracking.
39765 2015-02-10  Nick Clifton  <nickc@redhat.com>
39767         * config/rl78/rl78.c: Remove DIV attribute code accidentally
39768         included in previous rl78 commit.
39770 2015-02-10  Richard Biener  <rguenther@suse.de>
39772         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
39773         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
39774         return the bitpack.
39776 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
39778         PR gcov-profile/61889
39779         * config.in: regenerate.
39780         * configure.in: Likewise.
39781         * configure.ac: Check for ftw.h.
39782         * gcov-tool.c: Check for ftw.h before using nftw.
39784 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
39786         PR lto/64076
39787         * ipa-visibility.c (update_visibility_by_resolution_info): Only
39788         assert when not in lto mode.
39790 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
39792         * ira-color.c (setup_left_conflict_sizes_p): Simplify
39793         initialization/assignment of conflict_size.
39795 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
39797         PR ipa/64978
39798         * ipa-cp.c (gather_caller_stats): Skip thunks.
39799         (propagate_constants_topo): Skip aliases.
39801 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
39803         PR target/64761
39804         * config/sh/sh.c (sh_option_override): Don't change
39805         -freorder-blocks-and-partition to -freorder-blocks even when
39806         unwinding is enabled.
39807         (sh_can_follow_jump): Return false if the followee jump is
39808         a crossing jump when -freorder-blocks-and-partition is specified.
39809         * config/sh/sh.md (*jump_compact_crossing): New insn.
39811 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
39812             Kaz Kojima  <kkojima@gcc.gnu.org>
39814         PR target/64761
39815         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
39816         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
39817         (sh_can_redirect_branch): Rename to ...
39818         (sh_can_follow_jump): ... this.  Constify argument types.
39819         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
39820         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
39821         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
39822         * doc/tm.texi: Regenerate.
39824 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
39826         PR sanitizer/64981
39827         * builtins.c (expand_builtin): Call targetm.expand_builtin
39828         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
39830 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39832         PR ipa/61548
39833         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
39835 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39837         PR ipa/63566
39838         * ipa-icf.c (set_local): New function.
39839         (sem_function::merge): Use it.
39841 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39843         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
39844         (add_type_duplicate): Fix comparison of BINFOs.
39846 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39848         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
39849         on getting VOID pointer.
39851 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
39853         PR target/64979
39854         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
39855         va_list escapes.
39857 2015-02-09  Richard Biener  <rguenther@suse.de>
39859         * genmatch.c (replace_id): Copy expr_type.
39861 2015-02-09  Richard Biener  <rguenther@suse.de>
39863         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
39864         (streamer_write_tree_bitfields): Declare.
39865         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
39866         properly unpack padding.
39867         (unpack_value_fields): Inline ...
39868         (streamer_read_tree_bitfields): ... here.
39869         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
39870         and properly add padding bits.
39871         (streamer_pack_tree_bitfields): Fold into ...
39872         (streamer_write_tree_bitfields): ... this new function,
39873         exposing the bitpack object.
39874         * lto-streamer-out.c (lto_write_tree_1): Call
39875         streamer_write_tree_bitfields.
39877 2015-02-09  Richard Biener  <rguenther@suse.de>
39879         PR tree-optimization/54000
39880         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
39881         (struct ivopts_data): Add loop_loc member.
39882         (tree_ssa_iv_optimize_loop): Dump loop location.
39883         (create_new_ivs): Likewise, also dump number of IVs generated.
39885 2015-02-09  Martin Liska  <mliska@suse.cz>
39887         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
39888         just if not yet registered.
39889         (ipa_icf_generate_summary): Register callgraph hooks.
39891 2015-02-08  Andrew Pinski  <apinski@cavium.com>
39893         * config/aarch64/aarch64.c (gty_dummy): Delete.
39895 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39897         PR ipa/63566
39898         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
39899         (cgraph_node::local_p): Remove thunk related FIXME.
39901 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39903         PR ipa/63566
39904         * i386.c (ix86_function_regparm): Look through aliases to see if callee
39905         is local and optimized.
39906         (ix86_function_sseregparm): Likewise; also use target's SSE math
39907         settings; error out instead of silently generating wrong code
39908         on mismatches.
39909         (init_cumulative_args): Look through aliases.
39911 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39913         PR ipa/63566
39914         * ipa-split.c (execute_split_functions): Split if function has aliases.
39916 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39918         PR ipa/63566
39919         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
39920         aliases before trying to expand it.
39921         (cgraph_node::expand_thunk): Fix formating.
39923 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
39925         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
39926         (Using Assembly Language with C): Expand introduction.
39927         (Basic Asm): Copy-edit.  Add more information about uses of
39928         basic asm.
39929         (Extended Asm): Copy-edit.  Document new escape syntax and
39930         %l[label] syntax.
39931         (Global Reg Vars): Copy-edit.
39932         (Local Reg Vars): Likewise.
39934 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
39936         PR debug/2714
39937         PR bootstrap/64256
39938         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
39939         (DBX_CONTIN_CHAR): Define.
39941 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
39942             Brian Rzycki  <b.rzycki@samsung.com>
39944         PR tree-optimization/64878
39945         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
39946         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
39947         Stop recursion at loop phi nodes after having visited a loop phi node.
39949 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
39951         * toplev.c (process_options): Change flag_ipa_ra before creating
39952         optimization_{default,current}_node.
39954         PR ipa/64896
39955         * cgraphunit.c (cgraph_node::expand_thunk): If
39956         restype is not is_gimple_reg_type nor the thunk_fndecl
39957         returns aggregate_value_p, set restmp to a temporary variable
39958         instead of resdecl.
39960 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
39962         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
39964 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
39966         PR target/64205
39967         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
39968         add a general secondary reload handler for SDmode, unless we have
39969         both read/write support for SDmode.
39971 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
39973         PR middle-end/64937
39974         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
39975         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
39976         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
39977         1 before, push it to abstract_vec.
39978         (dwarf2out_abstract_function): Adjust caller.  Don't call
39979         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
39980         DECL_ABSTRACT_P flags for all abstract_vec elts.
39982 2015-02-06  Renlin Li  <renlin.li@arm.com>
39984         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
39985         complex gimple.
39986         * tree-ssa.c (execute_update_addresses_taken): Likewise.
39988 2015-02-06  Jeff Law  <law@redhat.com>
39990         PR target/64889
39991         * config/h8300/h8300.c (push): New argument "in_prologue".
39992         Pass "in_prologue" along to "F".
39993         (h8300_push_pop): Corresponding changes.
39994         (h8300_expand_prologue): Likewise.
39995         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
39997 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
39999         PR rtl-optimization/64957
40000         PR debug/64817
40001         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
40002         IOR rather than for AND.
40004 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
40006         PR target/62631
40007         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
40008         of shift-add and (add + shift) operations.  Rename local variable.
40010 2015-02-05  Jeff Law  <law@redhat.com>
40012         PR target/17306
40013         * config/h8300/constraints.md (U): Correctly dectect
40014         "eightbit_data" memory addresses.
40015         * config/h8300/h8300.c (eightbit_constant_address_p): Also
40016         handle (const (plus (symbol_ref (x)))) where x is declared
40017         as an 8-bit data memory address.
40018         * config/h8300/h8300.md (call, call_value): Correctly detect
40019         "funcvec" functions.
40021         PR target/43264
40022         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
40023         24 to 28 bits for the H8/300.
40025 2015-02-06  Alan Modra  <amodra@gmail.com>
40027         PR target/64876
40028         * config/rs6000/rs6000.c (chain_already_loaded): New function.
40029         (rs6000_call_aix): Use it.
40031 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
40033         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
40034         check.
40036 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
40038         * config/h8300/constraints.md ("U" constraint): Use strict
40039         variant of REG_OK_FOR_BASE_P after reload has started.
40041 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
40043         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
40044         define to zero if !TARGET_NEON.
40045         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
40047 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
40048             Trevor Saunders  <tsaunders@mozilla.com>
40050         PR ipa/61548
40051         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
40053 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
40055         PR ipa/61548
40056         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
40057         when removing varpool nodes.
40059 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
40061         PR ipa/61548
40062         * varpool.c (varpool_node::remove): Fix order of variables.
40064 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
40066         PR ipa/64686
40067         * ipa-inline.c (inline_small_functions): Fix ordering issue between
40068         speculation resolution and key updates.
40070 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
40072         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
40073         about not letting any speculative edges unupdated.
40075 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
40077         PR gcov/64123
40078         * gcov-io.c (gcov_var): Export.
40080 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
40082         PR middle-end/64922
40083         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
40084         edges that become speculative.
40086 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
40088         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
40089         or DW_LANG_Fortran08.
40090         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
40091         DW_LANG_Fortran08.
40092         (gen_compile_unit_die): Handle "GNU Fortran2003" and
40093         "GNU Fortran2008" language strings.
40094         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
40095         * langhooks.h (lang_GNU_Fortran): New prototype.
40096         * langhooks.c (lang_GNU_Fortran): New function.
40097         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
40098         lang_GNU_Fortran.
40100 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
40102         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
40103         (RTX_OK_FOR_OLO10_P): Likewise.
40105 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
40107         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
40109 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
40111         PR middle-end/64922
40112         * gimple.c: Include gimple-ssa.h.
40113         (maybe_remove_unused_call_args): New function.
40114         * gimple.h (maybe_remove_unused_call_args): Declare.
40115         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
40116         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
40117         * gimple-fold.c (gimple_fold_call): Likewise.
40119 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
40121         PR rtl-optimization/64905
40122         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
40123         pointer alignment if it isn't needed.
40125 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
40127         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
40128         cortex-a72.cortex-a53.
40129         * config/aarch64/aarch64-tune.md: Regenerate.
40130         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
40132 2015-02-04  Nick Clifton  <nickc@redhat.com>
40134         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
40135         inside a MEM.
40137 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
40139         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
40140         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
40141         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
40142         of DEF_BUILTIN.
40143         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
40144         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
40145         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
40146         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
40147         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
40148         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
40149         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
40150         * tree-core.h (enum built_in_function): In between
40151         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
40152         for builtins that use DEF_BUILTIN_CHKP macro.
40154 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
40156         PR debug/64817
40157         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
40158         operands for tcc_comparison exprs.  Fix typos.
40160         PR debug/64817
40161         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
40162         of two XORs that have an intervening AND or IOR.
40164         PR debug/64817
40165         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
40166         simplification of XOR of AND to not allocate new rtx before
40167         committing to a simplification.
40169 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40171         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
40172         manual swaps in all peepholes.
40174 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40176         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
40177         of manual swapping implementation.
40178         (aarch64_expand_vec_perm_const_1): Likewise.
40180 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
40182         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
40183         (generic_addrcost_table): Remove NAMED_PARAM.
40184         (cortexa57_addrcost_table): Likewise.
40185         (xgene1_addrcost_table): Likewise.
40186         (generic_regmove_table): Likewise.
40187         (cortexa53_regmove_table): Likewise.
40188         (xgene1_regmove_table): Likewise.
40189         (generic_vector_table): Likewise.
40190         (cortexa57_vector_table): Likewise.
40191         (xgene1_vector_table): Likewise.
40192         (generic_tunings): Likewise.
40193         (cortexa53_tunings): Likewise.
40194         (cortexa57_tunings): Likewise.
40195         (xgene1_tunings): Likewise.
40197 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
40199         * config/arm/arm-cores.def: Add cortex-a72 and
40200         cortex-a72.cortex-a53.
40201         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
40202         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
40203         * config/arm/arm-tune.md: Regenerate.
40204         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
40205         "cortex-a72.cortex-a53".
40206         * doc/invoke.texi (ARM Options/-mtune): Likewise.
40208 2015-02-04  Nick Clifton  <nickc@redhat.com>
40210         PR target/64408
40211         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
40212         of accepted codes.
40213         (nonimmediate_di_operand): Likewise.
40215         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
40216         prefixes of known F5 using MSP430 MCUs.
40218 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40220         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
40221         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
40222         instead of __builtin_sqrt.
40224 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
40226         * varasm.c (do_assemble_alias): Follow transparent alias
40227         chain for target.
40228         (default_assemble_visibility): Follow transparent alias
40229         chain for decl name.
40231 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
40233         PR middle-end/62103
40234         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
40235         to compute size of referenced value in the constant case.
40237 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
40239         PR rtl-optimization/64756
40240         * cse.c (invalidate_dest): New function.
40241         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
40242         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
40243         invalidate and do not record it.
40245 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
40247         PR target/64660
40248         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
40249         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
40250         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
40251         atomic_nand<mode>_soft_tcb): New insns.
40252         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
40253         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
40254         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
40255         Split into atomic_not_fetchsi_hard if operands[0] is unused.
40256         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
40257         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
40258         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
40259         atomic_not<mode>_hard if operands[0] is unused.
40260         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
40261         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
40262         if operands[0] is unused.
40263         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
40264         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
40265         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
40266         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
40267         unused.
40268         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
40269         into atomic_not<mode>_soft_tcb if operands[0] is unused.
40270         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
40271         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
40272         if operands[0] is unused.
40273         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
40274         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
40275         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
40276         atomic_nand_fetchsi_hard if operands[0] is unused.
40277         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
40278         atomic_nand<mode>_hard if operands[0] is unused.
40279         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
40280         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
40281         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
40282         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
40283         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
40284         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
40285         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
40286         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
40287         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
40288         atomic_not<mode>_hard if operands[0] is unused.
40289         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
40290         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
40291         unused.
40292         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
40293         into atomic_not<mode>_soft_tcb if operands[0] is unused.
40294         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
40295         atomic_nand<mode>_hard if operands[0] is unused.
40296         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
40297         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
40299 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
40301         PR jit/64810
40302         * Makefile.in (GCC_OBJS): Add gcc-main.o.
40303         * gcc-main.c: New file, containing "main" taken from gcc.c.
40304         * gcc.c (do_self_spec): Free decoded_options.
40305         (class driver): Move declaration to gcc.h.
40306         (main): Move declaration and implementation to new file
40307         gcc-main.c.
40308         (driver_get_configure_time_options): New function.
40309         * gcc.h (class driver): Move this declaration here, from
40310         gcc.c.
40311         (driver_get_configure_time_options): New declaration.
40313 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
40315         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
40316         cross-module inlining.
40317         * cgraph.h (cgraph_node): Add flag merged.
40318         * ipa-icf.c (sem_function::merge): Maintain it.
40320 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
40322         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
40323         instead of OBJECT_P.
40325 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
40327         PR target/62631
40328         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
40329         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
40330         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
40331         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
40333 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
40335         PR other/63504
40336         * combine.c (reg_n_sets_max): New variable.
40337         (can_change_dest_mode, reg_nonzero_bits_for_combine,
40338         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
40339         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
40340         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
40341         (rest_of_handle_combine): Initialize reg_n_sets_max.
40343 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
40345         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
40346         if some always_inline was inlined, apply changes before inlining
40347         heuristically.
40349 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
40351         PR jit/64810
40352         * config/arm/arm.c (arm_option_override): Set
40353         arm_selected_arch/cpu/tune to NULL on entry.
40355 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
40356             Andrew Pinski  <pinskia@gcc.gnu.org>
40357             Jakub Jelinek  <jakub@gcc.gnu.org>
40359         PR target/64231
40360         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
40361         integer typing for small model. Use IN_RANGE.
40363 2015-02-02  Richard Biener  <rguenther@suse.de>
40365         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
40366         * tree-vrp.c (vrp_valueize_1): Likewise.
40368 2015-02-02  Alan Modra  <amodra@gmail.com>
40370         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
40371         than mem for toc_restore.
40372         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
40373         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
40374         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
40376 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
40378         PR target/64047
40379         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
40380         explicit default options.
40382 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
40384         PR ipa/64872
40385         * ipa-utils.c (ipa_merge_profiles): Add release argument.
40386         * ipa-icf.c (sem_function::merge): Do not release body when merging.
40387         * ipa-utils.h (ipa_merge_profiles): Update prototype.
40389 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
40391         PR debug/64817
40392         * cfgexpand.c (deep_ter_debug_map): New variable.
40393         (avoid_deep_ter_for_debug): New function.
40394         (expand_debug_expr): If TERed SSA_NAME is in
40395         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
40396         instead of trying to expand SSA_NAME's def stmt.
40397         (expand_debug_locations): When expanding debug bind
40398         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
40399         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
40400         value.
40401         (pass_expand::execute): Call avoid_deep_ter_for_debug on
40402         all debug bind stmts.  Delete deep_ter_debug_map after
40403         expand_debug_location if non-NULL and clear it.
40405 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
40407         PR target/64851
40408         * config/sh/sync.md (atomic_fetch_notsi_hard,
40409         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
40410         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
40411         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
40412         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
40413         atomic_not_fetch<mode>_soft_imask): New insns.
40415 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
40417         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
40418         (rank_for_schedule_debug): Split from ...
40419         (rank_for_schedule): ... this.
40420         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
40421         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
40423 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
40425         * doc/md.texi (Machine Constraints): Alphabetize table by target.
40426         * doc/extend.texi (x86 Variable Attributes): Move section to
40427         correct alphabetization after renaming.
40428         (x86 Type Attributes): Likewise.
40429         (Target Builtins): Re-alphabetize menu.
40430         (x86 Built-in Functions): Move section to correct alphabetization
40431         after renaming.
40432         (x86 transactional memory intrinsics): Likewise.
40433         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
40434         and x86 Windows Options in table and menu.
40435         (x86 Options): Move section to correct alphabetization after
40436         renaming.
40437         (x86 Windows Options): Likewise.
40439 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
40441         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
40442         preferred names of the architecture and its 32- and 64-bit
40443         variants.
40444         * doc/invoke.texi: Likewise.
40445         * doc/md.texi: Likewise.
40447 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
40449         PR target/64882
40450         * config/i386/predicates.md (address_no_seg_operand): Reject
40451         non-CONST_INT_P operands in invalid mode.
40453 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
40455         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
40456         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
40457         * config/i386/predicates.md (address_no_seg_operand): Call
40458         address_operand with VOIDmode.
40459         (vsib_address_operand): Ditto.
40460         (address_mpx_no_base_operand): Ditto.
40461         (address_mpx_no_index_operand): Ditto.
40463 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
40465         PR target/64688
40466         * lra-constraints.c (original_subreg_reg_mode): New.
40467         (simplify_operand_subreg): Try to simplify subreg of const.  Use
40468         original_subreg_reg_mode for it.
40469         (swap_operands): Update original_subreg_reg_mode.
40470         (curr_insn_transform): Set up original_subreg_reg_mode.
40472 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
40474         PR target/64617
40475         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
40476         function.
40477         (process_alt_operands): Use it.
40478         (curr_insn_transform): Check the optional reload pseudo class is
40479         ok for the mode.
40481 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
40483         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
40484         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
40485         prototype.
40486         * toplev.h (init_asm_output): Update comment on use of
40487         UNKNOWN_LOCATION with fatal_error.
40488         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
40489         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
40490         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
40491         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
40492         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
40493         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
40494         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
40495         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
40496         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
40497         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
40498         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
40499         fatal_error changed to pass input_location as first argument.
40501 2015-01-30  Martin Liska  <mliska@suse.cz>
40503         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
40504         in #pragma GCC diagnostic guards.
40506 2015-01-30  Richard Biener  <rguenther@suse.de>
40508         PR tree-optimization/64829
40509         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
40510         not add a widening conversion pattern but hand off extra
40511         widenings to callers.
40512         (vect_recog_widen_mult_pattern): Handle extra widening produced
40513         by vect_handle_widen_op_by_const.
40514         (vect_recog_widen_shift_pattern): Likewise.
40515         (vect_pattern_recog_1): Remove excess vertical space in dumping.
40516         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
40517         (vect_init_vector_1): Likewise.
40518         (vect_get_vec_def_for_operand): Likewise.
40519         (vect_finish_stmt_generation): Likewise.
40520         (vectorizable_load): Likewise.
40521         (vect_analyze_stmt): Likewise.
40522         (vect_is_simple_use): Likewise.
40524 2015-01-29  Jeff Law  <law@redhat.com>
40526         * combine.c (try_combine): Fix typo in comment.
40528 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
40530         PR target/64580
40531         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
40532         (rs6000_stack_info): Add assert.
40533         (rs6000_output_savres_externs): New function, split off from...
40534         (rs6000_output_function_prologue): ... here.  Do not call it for
40535         thunks.
40537 2015-01-29  Jeff Law  <law@redhat.com>
40539         PR target/15184
40540         * combine.c (try_combine): If I0 is a memory load and I3 a store
40541         to a related address, increase the "goodness" of doing a 4-insn
40542         combination with I0-I3.
40543         (make_field_assignment): Handle SUBREGs in the ior+and case.
40545 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
40547         PR tree-optimization/64746
40548         * tree-if-conv.c (mask_exists): New function.
40549         (predicate_mem_writes): Save created mask with given size for further
40550         use.
40551         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
40552         (ifcvt_repair_bool_pattern): Collect all statements that are root
40553         of bool pattern and use iterative algorithm to remove multiple uses
40554         of predicates, display number of required iterations.
40556 2015-01-29  Richard Biener  <rguenther@suse.de>
40558         PR tree-optimization/64853
40559         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
40560         stmt will get simulated again.
40561         * tree-ssa-ccp.c (valueize_op_1): Likewise.
40563 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40565         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
40566         return_in_pc.  Remove redundant assignments.
40567         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
40568         (arm_expand_epilogue): Don't compare boolean with true in if condition.
40570 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
40572         * config/i386/i386.c (ix86_mode_after): Make static.
40574 2015-01-29  Richard Biener  <rguenther@suse.de>
40576         PR tree-optimization/64844
40577         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
40578         dump cost model analysis.
40579         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
40580         Do not register adjusted load/store costs here.
40582 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
40583             Uros Bizjak  <ubizjak@gmail.com>
40585         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
40586         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
40587         using x86_use_pseudo_pic_reg.
40588         * config/i386/i386.c (ix86_conditional_register_usage): Remove
40589         support for fixed PIC register.
40590         (ix86_use_pseudo_pic_reg): Not static any more.
40592 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
40594         PR middle-end/64805
40595         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
40596         to avoid error in cgraph node verification.
40598 2015-01-29  Marek Polacek  <polacek@redhat.com>
40600         * doc/standards.texi: Reflect that the default for C is gnu11.
40602 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
40604         PR target/64761
40605         * reorg.c (switch_text_sections_between_p): New function.
40606         (relax_delay_slots): Call it when testing if the jump insn
40607         is removable.  Use targetm.can_follow_jump when testing if
40608         the conditional branch can follow an unconditional jump.
40610 2015-01-27  Caroline Tice  <cmtice@google.com>
40612         Committing VTV Cywin/Ming patch for Patrick Wollgast
40613         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
40614         if -fvtable-verify=preinit/std is used.
40615         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
40616         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
40617         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
40618         if -fvtable-verify=preinit/std is used.
40619         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
40620         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
40621         if -fvtable-verify=preinit/std is used.
40622         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
40623         * config/i386/mingw32.h (LIB_SPEC): Likewise.
40624         * varasm.c (assemble_variable): Add code to properly set the comdat
40625         section and name for the .vtable_map_vars section in case the
40626         target is PE or COFF.
40628 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
40630         PR ipa/64801
40631         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
40632         make sane BB profile.
40633         (cgraph_node::expand_thunk): Make sane BB profile.
40634         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
40635         * cgraph.h (init_lowered_empty_function): Update prototype.
40636         * config/i386/i386.c (make_resolver_func): Update call.
40637         * predict.c (gate): Disable branch prediction pass if
40638         profile is already there.
40640 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
40642         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
40643         * opth-gen.awk: Likewise.
40644         * common.opt: Mark flag_fp_contract_mode as Optimization.
40646 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40648         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
40649         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
40651 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
40653         PR target/64659
40654         * config/sh/predicates.md (atomic_arith_operand,
40655         atomic_logical_operand): Remove.
40656         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
40657         (atomic_arith_operand_0): New predicate.
40658         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
40659         Use atomic_arith_operand_0 for input values.
40660         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
40661         atomic_compare_and_swap<mode>_soft_gusa,
40662         atomic_compare_and_swap<mode>_soft_tcb,
40663         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
40664         arith_reg_operand instead of register_operand.
40665         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
40666         atomic_arith_operand_0 for newval input.
40667         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
40668         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
40669         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
40670         arith_reg_operand instead of register_operand.
40671         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
40672         fetchop_predicate_1, fetchop_constraint_1_llcs,
40673         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
40674         fetchop_constraint_1_imask): New code iterator attributes.
40675         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
40676         register_operand.  Use fetchop_predicate_1.
40677         (atomic_fetch_<fetchop_name>si_hard,
40678         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
40679         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
40680         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
40681         and arith_reg_operand instead of register_operand.  Use
40682         fetchop_predicate_1, fetchop_constraint_1_gusa.
40683         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
40684         and arith_reg_operand instead of register_operand.  Use
40685         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
40686         to allow R0 usage.
40687         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
40688         and arith_reg_operand instead of register_operand.  Use
40689         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
40690         to allow R0 usage.
40691         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
40692         register_operand.  Use atomic_logical_operand_1.
40693         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
40694         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
40695         arith_reg_operand instead of register_operand.
40696         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
40697         Use arith_reg_dest and arith_reg_operand instead of register_operand.
40698         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
40699         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
40700         register_operand.  Use fetchop_predicate_1.
40701         (atomic_<fetchop_name>_fetchsi_hard,
40702         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
40703         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
40704         fetchop_constraint_1_llcs.
40705         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
40706         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
40707         fetchop_constraint_1_gusa.
40708         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
40709         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
40710         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
40711         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
40712         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
40713         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
40714         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
40715         register_operand.  Use atomic_logical_operand_1.
40716         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
40717         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
40718         arith_reg_operand instead of register_operand.
40719         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
40720         arith_reg_operand instead of register_operand.  Use logical_operand
40721         and K08.  Adjust asm sequence to allow R0 usage.
40722         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
40723         arith_reg_operand instead of register_operand.  Use logical_operand
40724         and K08.
40726 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
40728         PR other/63504
40729         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
40730         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
40731         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
40732         only get_full_len HOST_WIDE_INTs from get_val () array rather than
40733         all bits in *val_wide.
40735 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
40737         * varpool.c (tls_model_names): Fix names.
40738         (varpool_node::dump): Dump tls- prefix for tls models.
40740 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
40741             Bernd Schmidt  <bernds@codesourcery.com>
40742             Nathan Sidwell  <nathan@codesourcery.com>
40744         * config/nvptx/mkoffload.c: New file.
40745         * config/nvptx/t-nvptx: Add build rules for it.
40746         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
40747         (extra_programs): Add mkoffload.
40748         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
40749         function.
40750         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
40752 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
40754         PR middle-end/64809
40755         * cfgexpand.c (reorder_operands): Skip debug gimples.
40757 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
40759         PR tree-optimization/64277
40760         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
40761         range info when possible to refine estimation.
40763 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
40765         PR tree-optimization/64718
40766         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
40767         be a 16bit unsigned integer when n->range is 16.
40768         (bswap_replace): Convert src to that type if necessary for all bswap
40769         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
40770         set in pass_optimize_bswap::execute ().
40772 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
40774         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
40775         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
40776         integer and floating point variants.
40777         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
40779 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
40781         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
40782         for all vector modes.
40784 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
40786         PR bootstrap/64612
40787         * doc/sourcebuild.texi (comdat_group): Document.
40789 2015-01-28  Terry Guo  <terry.guo@arm.com>
40791         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
40793 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
40795         * toplev.c (print_version): Add param "show_global_state", and
40796         only print GGC and plugin information if it is true.
40797         (init_asm_output): Pass in "true" for the new param when calling
40798         print_version.
40799         (process_options): Likewise.
40800         (toplev::main): Likewise.
40801         * toplev.h (print_version): Add new param to decl.
40803 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
40805         PR ipa/60871
40806         PR ipa/64139
40807         * tree.c (lookup_binfo_at_offset): New function.
40808         (get_binfo_at_offset): Use it.
40810 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
40812         PR ipa/64282
40813         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
40814         on vtable being vtable.
40816 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
40818         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
40819         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
40820         -mhotpatch= option.
40821         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
40822         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
40823         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
40824         Renamed.
40825         (s390_hotpatch_trampoline_halfwords_max): Renamed.
40826         (s390_hotpatch_hw_max): New name.
40827         (s390_hotpatch_trampoline_halfwords): Renamed.
40828         (s390_hotpatch_hw_before_label): New name.
40829         (get_hotpatch_attribute): Removed.
40830         (s390_hotpatch_hw_after_label): New name.
40831         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
40832         attribute.
40833         (s390_attribute_table): Ditto.
40834         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
40835         (s390_function_num_hotpatch_hw): New name.
40836         Remove special handling of inline functions and hotpatching.
40837         Return number of nops before and after the function label.
40838         (s390_can_inline_p): Removed.
40839         (s390_asm_output_function_label): Emit a configurable number of nops
40840         after the function label.
40841         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
40842         (TARGET_CAN_INLINE_P) Removed.
40843         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
40845 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
40846             Jiong Wang  <jiong.wang@arm.com>
40848         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
40849         of scratch reg.
40850         (cb<optab><mode>1): Likewise.
40851         * config/aarch64/iterators.md (bcond): New define_code_attr.
40853 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40855         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
40856         memory accesses.
40858 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40860         * config/s390/s390.c (s390_register_move_cost): Increase costs for
40861         FPR->GPR moves.
40863 2015-01-27  Richard Biener  <rguenther@suse.de>
40865         * tree-vrp.c (update_value_range): Intersect the range with
40866         old recorded SSA name range information.
40868 2015-01-27  Nick Clifton  <nickc@redhat.com>
40870         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
40871         BC, DE and HL registers directly, not via AX.
40872         When decrementing the stack pointer by a large amount, transfer SP
40873         into AX and perform the subtraction there.
40874         (rl78_expand_epilogue): Perform the inverse of the above
40875         enhancements.
40877 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
40879         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
40881 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
40882             Yury Gribov  <y.gribov@samsung.com>
40884         PR ubsan/64741
40885         * ubsan.c (ubsan_source_location): Refactor code.
40886         (ubsan_type_descriptor): Update type size. Refactor code.
40888 2015-01-27  Richard Biener  <rguenther@suse.de>
40890         PR tree-optimization/56273
40891         PR tree-optimization/59124
40892         PR tree-optimization/64277
40893         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
40894         from the first VRP pass.
40896 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
40898         PR ipa/64776
40899         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
40900         handle the first argument in the same loop as all the other arguments.
40902         PR rtl-optimization/61058
40903         * jump.c (cleanup_barriers): Update basic block boundaries
40904         if BLOCK_FOR_INSN is non-NULL on PREV.
40906 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
40908         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
40909         bounds narrowing, already instrumented calls and calls to
40910         not instrumentable functions.
40912 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
40914         PR tree-optimization/64807
40915         * wide-int.cc (wi::divmod_internal): Clear
40916         b_dividend[dividend_blocks_needed].
40918 2015-01-26  DJ Delorie  <dj@redhat.com>
40920         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
40921         volatile memory references.
40923 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
40925         PR target/49263
40926         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
40927         remove_insn.
40928         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
40929         shifts if it already fits into K08.
40931 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
40933         PR ipa/64730
40934         * ipa-inline.c (inline_small_functions): Print "unknown" even
40935         if edge->call_stmt is non-NULL, but has builtins or unknown
40936         location.
40938         PR middle-end/64421
40939         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
40940         with asterisk, skip the first character.
40942 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
40944         PR target/64806
40945         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
40946         order change.
40948 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
40950         PR target/64795
40951         * config/i386/i386.md (*movdi_internal): Also check operand 0
40952         to determine TYPE_LEA operand.
40953         (*movsi_internal): Ditto.
40955 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
40957         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
40958         OPTION_MASK_QUAD_MEMORY_ATOMIC.
40960 2015-01-26  Renlin Li  <renlin.li@arm.com>
40962         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
40963         the comment.
40964         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
40965         for higher part.
40967 2015-01-26  Richard Biener  <rguenther@suse.de>
40969         PR middle-end/64764
40970         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
40971         combining two BIT_AND_EXPR predicates.
40973 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
40975         PR bootstrap/64754
40976         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
40978 2015-01-26  Terry Guo  <terry.guo@arm.com>
40980         * config/arm/arm.c (arm_file_start): Update the assignment of
40981         Tag_ABI_HardFP_use.
40983 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
40985         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
40986         pipeline model.
40987         config/arm/arm.md: Include the new Cortex-A57 model.
40988         (generic_sched): Don't use generic_sched when tuning for
40989         Cortex-A57.
40991 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
40992             Uros Bizjak  <ubizjak@gmail.com>
40994         * config/i386/i386.c (get_builtin_code_for_version): Add
40995         support for BMI and BMI2 multiversion functions.
40997 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
40999         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
41000         (extract_bit_field): Likewise.
41001         (extract_low_bits): Likewise.
41002         (expand_mult): Likewise.
41003         (expand_mult_highpart_adjust): Likewise.
41005 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
41007         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
41008         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
41009         * config/i386/i386.c (processor_model): Add
41010         M_INTEL_COREI7_BROADWELL.
41011         (arch_names_table): Add "broadwell".
41013 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
41015         PR target/49263
41016         PR target/53987
41017         PR target/64345
41018         PR target/59533
41019         PR target/52933
41020         PR target/54236
41021         PR target/51244
41022         * config/sh/sh-protos.h
41023         (sh_extending_set_of_reg::can_use_as_unextended_reg,
41024         sh_extending_set_of_reg::use_as_unextended_reg,
41025         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
41026         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
41027         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
41028         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
41029         (sh_treg_insns): New class.
41030         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
41031         (scope_counter): New class.
41032         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
41033         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
41034         sh_extending_set_of_reg::can_use_as_unextended_reg,
41035         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
41036         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
41037         sh_split_treg_set_expr): New functions.
41038         (addsubcosts): Handle treg_set_expr.
41039         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
41040         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
41041         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
41042         (sh_insn_operands_modified_between_p): Make non-static.
41043         * config/sh/predicates.md (zero_extend_movu_operand): Allow
41044         simple_mem_operand in addition to displacement_mem_operand.
41045         (zero_extend_operand): Don't allow zero_extend_movu_operand.
41046         (treg_set_expr, treg_set_expr_not_const01,
41047         arith_reg_or_treg_set_expr): New predicates.
41048         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
41049         arith_or_int_operand instead of logical_operand.  Convert to
41050         insn_and_split.  Try to optimize constant operand in splitter.
41051         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
41052         (*tstqi_t_zero): Delete.
41053         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
41054         (tstsi_t_and_not): Delete.
41055         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
41056         Convert to insn_and_split.
41057         (unnamed split, tstsi_t_zero_extract_xor,
41058         tstsi_t_zero_extract_subreg_xor_little,
41059         tstsi_t_zero_extract_subreg_xor_big): Delete.
41060         (*tstsi_t_shift_mask): New insn_and_split.
41061         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
41062         to recombine with surrounding insns when splitting.
41063         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
41064         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
41065         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
41066         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
41067         (*cbranch_div0s: Delete.
41068         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
41069         Try to recombine with surrounding insns when splitting.  Add operand
41070         order variants.
41071         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
41072         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
41073         *addc_r_r_msb, *addc_2r_msb): Delete.
41074         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
41075         order variant.
41076         (*addc_negreg_t): New insn_and_split.
41077         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
41078         Try to recombine with surrounding insns when splitting.
41079         Add operand order variants.
41080         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
41081         insn_and_split patterns.
41082         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
41083         surrounding insns when splitting.
41084         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
41085         (*rotcl): Likewise.  Add zero_extract variant.
41086         (*ashrsi2_31): New insn_and_split.
41087         (*negc): Convert to insn_and_split.  Use treg_set_expr.
41088         (*zero_extend<mode>si2_disp_mem): Update comment.
41089         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
41090         condition.
41091         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
41092         with surrounding insns when splitting.
41093         (any_treg_expr_to_reg): New insn_and_split.
41094         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
41095         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
41096         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
41097         *zero_extract_2): New single bit zero extract patterns.
41098         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
41099         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
41100         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
41101         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
41102         set destination.
41103         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
41104         register_operand for set source.
41106 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
41108         * i386.opt (prefetch_sse): New targetsave.
41109         * i386.c (ix86_function_specific_save): Save prefetch_sse.
41110         (ix86_function_specific_restore): Restore prefetch_sse and initialize
41111         ix86_cost/ix86_tune_cost.
41113 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
41115         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
41116         Support the JIT by using 0 as the language type.
41118 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
41120         PR target/64317
41121         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
41122         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
41123         (mark_regno_live, process_bb_lives): Pass new parameter value to
41124         make_hard_regno_born.
41126 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
41128         PR rtl-optimization/63637
41129         PR rtl-optimization/60663
41130         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
41131         if elt->cost is MAX_COST for ASM_OPERANDS.
41132         (find_sets_in_insn): Fix up comment typo.
41133         (cse_insn): Don't set src_volatile for all non-volatile
41134         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
41135         or with "memory" clobber.  Set elt->cost to MAX_COST
41136         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
41137         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
41139 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
41141         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
41142         alternative 1.
41144 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
41146         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
41147         libgcc/config/i386/elf-lib.h.
41149 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
41151         PR driver/64737
41152         * gcc.c (print_configuration): Don't print a blank line at the end
41153         here...
41154         (run_attempt): ... but here unstead.
41156         PR middle-end/64734
41157         * omp-low.c (scan_sharing_clauses): Don't ignore
41158         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
41159         on target data/update constructs.
41161 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
41163         PR target/50928
41164         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
41165         (DEBUG_RELOAD): Removed define.
41166         (m32c_limit_reload_class): Enable traces with if DEBUG0.
41167         (m32c_function_arg): Added a type cast.
41168         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
41169         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
41170         * config/m32c/bitops.md (andqi3_16): Likewise.
41171         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
41172         (push_a01_l): Likewise.
41174 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
41176         PR jit/64721
41177         * main.c (main): Construct toplev instances with init_signals=true.
41178         * toplev.c (general_init): Add param "init_signals", and use it to
41179         conditionalize the calls to signal and host_hooks.extra_signals.
41180         (toplev::toplev): Add param "init_signals".
41181         (toplev::main): When invoking general_init, pass m_init_signals
41182         to control whether signal-handlers are installed.
41183         * toplev.h (toplev::toplev): Add param "init_signals".
41184         (toplev::m_init_signals): New field.
41186 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
41188         PR jit/64722
41189         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
41190         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
41191         latter may be affected by the former (e.g. on i686).
41193 2015-01-23  Martin Liska  <mliska@suse.cz>
41195         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
41196         false positive during profiledbootstrap.
41198 2015-01-23  Tom de Vries  <tom@codesourcery.com>
41200         PR libgomp/64672
41201         * lto-opts.c (lto_write_options): Output non-explicit conservative
41202         -fno-openacc.
41203         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
41204         (append_compiler_options): Pass -fopenacc through.
41206 2015-01-23  Tom de Vries  <tom@codesourcery.com>
41208         PR libgomp/64707
41209         * lto-opts.c (lto_write_options): Output non-explicit conservative
41210         -fno-openmp.
41211         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
41212         (append_compiler_options): Pass -fopenmp through.
41214 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
41216         PR debug/64511
41217         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
41218         GTY markup.
41220         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
41221         * diagnostic.def (DK_ICE_NOBT): New kind.
41222         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
41223         like DK_ICE, but never print backtrace.
41224         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
41225         (internal_error_no_backtrace): New function.
41226         * gcc.c (execute): Use internal_error_no_backtrace instead of
41227         internal_error.
41229 2015-01-22  Jeff Law  <law@redhat.com>
41231         PR target/52076
41232         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
41233         improve code density for small immediate to memory case.
41234         (insv): Better handle bitfield assignments when the field is
41235         being set to all ones.
41236         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
41237         operand predicate.
41239 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
41240             Jakub Jelinek  <jakub@redhat.com>
41242         PR middle-end/64729
41243         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
41244         for !TARGET_LIBC_PROVIDES_SSP version and
41245         -fstack-protector-{all,strong,explicit} otherwise.
41246         * config/freebsd.h (LINK_SSP_SPEC): Handle
41247         -fstack-protector-{strong,explicit}.
41249 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
41250             H.J. Lu  <hongjiu.lu@intel.com>
41252         PR ipa/64694
41253         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
41254         heap.
41256 2015-01-22  Wei Mi  <wmi@google.com>
41258         PR rtl-optimization/64557
41259         * dse.c (record_store): Call get_addr for mem_addr.
41260         (check_mem_read_rtx): Likewise.
41262 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
41264         * fold-const.c (const_binop): Add early return for non-tcc_binary.
41266 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
41268         * toplev.c (init_local_tick): Process the failure when read
41269         fails for random_seed.
41271         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
41272         'pretty_name' to avoid memory overflow.
41274 2015-01-22  Richard Biener  <rguenther@suse.de>
41276         PR middle-end/64728
41277         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
41278         abnormal coalescing on undefined SSA names.
41280 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
41282         PR target/64688
41283         PR target/64477
41284         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
41285         for alternative 3.
41286         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
41288 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
41290         PR middle-end/63325
41291         * fold-const.c (fold_checksum_tree): Don't include value of
41292         expr->decl_with_vis.symtab_node in the checksum.
41294 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41296         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
41298 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
41300         PR driver/64690
41301         * gcc.c (insert_comments): New function.
41302         (try_generate_repro): Call it.
41303         (append_text): Removed.
41305 2015-01-22  Richard Biener  <rguenther@suse.de>
41307         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
41308         with IL incompatible options.  Properly honor user optimize
41309         attributes.
41311 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
41313         PR rtl-optimization/64682
41314         * combine.c (distribute_notes): When moving a death note for
41315         a register that is set in the new I2, make sure to put it
41316         before that new I2.
41318 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
41320         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
41321         not TARGET_DEFAULT.
41323 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
41325         PR debug/64511
41326         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
41327         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
41328         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
41330         PR sanitizer/64706
41331         * doc/invoke.texi (-fsanitize=vptr): Document.
41333         PR rtl-optimization/62078
41334         * dse.c: Include cfgcleanup.h.
41335         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
41336         anything call purge_all_dead_edges and cleanup_cfg at the end
41337         of the pass.
41339 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
41341         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
41342         edges.
41344 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
41346         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
41347         decl attribute.
41349 2015-01-21  David Sherwood  <david.sherwood@arm.com>
41350             Tejas Belagod <Tejas.Belagod@arm.com>
41352         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
41353         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
41354         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
41355         Removed.
41357 2015-01-21  David Sherwood  <david.sherwood@arm.com>
41358             Tejas Belagod <Tejas.Belagod@arm.com>
41360         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
41361         (aarch64_reverse_mask): New decls.
41362         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
41363         (insn_count): New mode_attr.
41364         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
41365         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
41366         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
41367         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
41368         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
41369         (aarch64_simd_st4): New patterns.
41370         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
41371         (aarch64_reverse_mask): New functions.
41373 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
41375         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
41376         Declare.
41377         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
41378         addressing modes for BE.
41379         (aarch64_print_operand): Add 'R' specifier.
41380         (aarch64_simd_disambiguate_copy): Delete.
41381         (aarch64_simd_emit_reg_reg_move): New function.
41382         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
41383         in define_splits for structural moves.
41384         (mov<mode>): Use less restrictive predicates.
41385         (*aarch64_mov<mode>): Simplify and only allow for LE.
41386         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
41388 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
41390         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
41392 2015-01-21  Richard Henderson  <rth@redhat.com>
41394         PR target/64669
41395         * ccmp.c (used_in_cond_stmt_p): Remove.
41396         (expand_ccmp_expr): Don't use it.
41398 2015-01-21  Nick Clifton  <nickc@redhat.com>
41400         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
41401         PARALLELs.
41403 2015-01-21  Richard Biener  <rguenther@suse.de>
41405         PR middle-end/64313
41406         * tree-core.h (builtin_info, builtin_info_type): Turn from
41407         an object with two arrays into an array of an object with
41408         decl and two flags, implicit_p and declared_p.
41409         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
41410         set_builtin_decl, set_builtin_decl_implicit_p,
41411         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
41412         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
41413         * builtins.c (builtin_info): Adjust.
41414         * gimplify.c (gimplify_addr_expr): References to builtins
41415         that have been declared by the user makes them eligible for
41416         use by the compiler.  Call set_builtin_decl_implicit_p on them.
41418 2015-01-20  Jeff Law  <law@redhat.com>
41420         PR target/59946
41421         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
41422         allow pc-relative addresses in operand predicates or constraints.
41424 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
41426         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
41427         neon on aarch32 processors for stringops.
41429 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
41431         PR ipa/63576
41432         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
41434 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
41436         PR lto/45375
41437         * ipa-inline.c: Include lto-streamer.h
41438         (report_inline_failed_reason): Output source file differences and
41439         flags on optimization/target node mismatch.
41440         (can_inline_edge_p): Consider caller to be the outer inline function;
41441         be less restrictive about matching opimize and optimize_size attributes.
41442         (inline_account_function_p): Break out from ...
41443         (inline_small_functions): ... here.
41444         * ipa-inline-transform.c (clone_inlined_nodes): Use
41445         inline_account_function_p.
41446         (inline_call): Use optimize attribution; use inline_account_function_p.
41447         (inline_transform): Use opt_for_fn.
41448         * ipa-inline.h (inline_account_function_p): Declare.
41450 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
41452         PR debug/64663
41453         * dwarf2out.c (decl_piece_node): Don't put bitsize into
41454         mode if bitsize <= 0.
41455         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
41456         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
41457         sizes and positions.
41459 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
41461         * config/nios2/nios2.c (nios2_asm_file_end): Implement
41462         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
41463         needed.
41464         (TARGET_ASM_FILE_END): Define.
41466 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
41468         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
41469         (struct tune_params): Use the enum.
41470         * arm.c (arm_*_tune): Update.
41471         (arm_option_override): Update.
41473 2015-01-20  Richard Biener  <rguenther@suse.de>
41475         PR ipa/64684
41476         * ipa-reference.c (add_static_var): Inline ...
41477         (analyze_function): ... here after splitting out from ...
41478         (is_proper_for_analysis): ... this.
41480 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
41482         PR target/64149
41483         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
41484         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
41485         replace the conditional with it's true branch.
41486         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
41487         (arm_lra_p): Remove.
41489 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
41491         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
41493 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
41495         * config/tilegx/mul-tables.c: Move symtab.h include after
41496         coretypes.h include.
41497         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
41498         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
41499         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
41500         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
41501         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
41503 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
41505         PR bootstrap/64676
41506         Revert:
41507         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
41509         PR rtl-optimization/64081
41510         * loop-iv.c (def_pred_latch_p): New function.
41511         (latch_dominating_def): Allow specific cases with non-single
41512         definitions.
41513         (iv_get_reaching_def): Likewise.
41514         (check_complex_exit_p): New function.
41515         (check_simple_exit): Use check_complex_exit_p to allow certain cases
41516         with exits not executing on any iteration.
41518 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
41520         PR lto/45375
41521         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
41522         to set branch cost.
41524 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
41526         PR lto/45375
41527         * i386.c (gate): Check flag_expensive_optimizations and
41528         optimize_size.
41529         (ix86_option_override_internal): Drop optimize_size condition
41530         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
41531         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
41532         MASK_PREFER_AVX128.
41533         (ix86_avx256_split_vector_move_misalign,
41534         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
41535         * sse.md (all uses of TARGET_PREFER_AVX128): Add
41536         optimize_insn_for_speed_p check.
41538 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
41540         * config/mips/mips.h (FP_ASM_SPEC): New define.
41541         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
41542         instead.
41544 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
41546         PR target/53988
41547         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
41548         nullptr for insn when reaching the first insn.
41549         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
41550         (sh_insn_operands_modified_between_p): Add nullptr check.
41551         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
41552         sign extending mem load if the insn contains any UNSPEC or
41553         UNSPEC_VOLATILE.
41555 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
41557         * params.def (inline-unit-growth): Drop to 15%.
41558         * invoke.texi (inline-unit-growth): Document change.
41560 2015-01-19  Martin Liska  <mliska@suse.cz>
41562         PR ipa/64668
41563         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
41564         function for second argument of OBJ_TYPE_REF.
41566 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
41568         PR ipa/64218
41569         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
41570         whether function is an alias.
41572 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
41574         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
41575         cases.
41577 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
41579         PR rtl-optimization/64671
41580         * lra-remat.c (operand_to_remat): Don't consider jump and call
41581         insns.
41583 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
41585         PR target/59828
41586         * config/rs6000/default64.h: Include rs6000-cpus.def.
41587         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
41588         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
41589         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
41590         and POWER8.
41591         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
41592         POWER8.
41593         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
41594         pseudo-op to specify assembler dialect.
41596 2015-01-19  Martin Liska  <mliska@suse.cz>
41598         PR ipa/64664
41599         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
41600         Handle safe potentially removed nodes during filtering.
41602 2015-01-19  Martin Liska  <mliska@suse.cz>
41604         * doc/extend.texi (no_icf): Add new attribute description.
41605         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
41606         where the pass attempts to merge a function with no_icf attribute.
41608 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
41610         PR target/64532
41611         * doc/md.texi (ARM Options): Document register constraints.
41613 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
41614             Andrew Pinski  <apinski@cavium.com>
41616         PR target/64304
41617         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
41618         (ashl<mode>3): Don't expand if operands[2] is not constant.
41620 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41622         PR target/64448
41623         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
41624         Match xor-and-xor RTL pattern.
41626 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
41628         PR rtl-optimization/64081
41629         * loop-iv.c (def_pred_latch_p): New function.
41630         (latch_dominating_def): Allow specific cases with non-single
41631         definitions.
41632         (iv_get_reaching_def): Likewise.
41633         (check_complex_exit_p): New function.
41634         (check_simple_exit): Use check_complex_exit_p to allow certain cases
41635         with exits not executing on any iteration.
41637 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
41639         * common.opt (fgraphite): Fix a typo.
41641 2015-01-19  Felix Yang  <felix.yang@huawei.com>
41643         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
41644         pattern.
41645         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
41646         uminp, smax_nanp, smin_nanp): New builtins.
41647         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
41648         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
41649         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
41650         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
41651         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
41652         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
41653         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
41654         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
41655         vpminnms_f32): Rewrite using builtin functions.
41657 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
41659         PR libgomp/64625
41660         * omp-low.c (offload_symbol_decl): Remove variable.
41661         (get_offload_symbol_decl): Remove function.
41662         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
41663         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
41664         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
41665         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
41666         BUILT_IN_GOACC_UPDATE don't pass it at all.
41668 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
41670         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
41671         callers.
41673 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
41675         * ipa-chkp.c (chkp_produce_thunks): Add early param
41676         to split thunks production into two passes.  Keep
41677         'always_inline' function bodies after the first pass.
41678         (pass_data_ipa_chkp_early_produce_thunks): New.
41679         (pass_ipa_chkp_early_produce_thunks): New.
41680         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
41681         chkp_produce_thunks signature.
41682         (make_pass_ipa_chkp_early_produce_thunks): New.
41683         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
41684         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
41685         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
41687 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
41689         * cgraph.c (cgraph_node::dump): Dump profile flags.
41691 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
41693         PR target/64652
41694         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
41695         reg appear first in the parallel.
41697 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
41699         * ipa-reference.c (set_reference_optimization_summary,
41700         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
41701         disabled.
41702         (ignore_module_statics): New static var.
41703         (propagate_bits): If ipa-reference is disabled, do not look into local
41704         properties.
41705         (analyze_function): Disable analysis when ipa_reference is disabled.
41706         (generate_summary): Do not dump when reference is disabled;
41707         collect vars accessed from functions with ipa-reference disabled.
41708         (get_read_write_all_from_node): When ipa-reference is disabled, use the
41709         node flags.
41710         (gate): Enable for LTO.
41711         (ignore_edge_p): New function.
41712         (propagate): Skip functions w/o ipa-reference analysis.
41713         * optc-save-gen.awk: Handle optimize_debug correctly.
41714         * opth-gen.awk: Likewise.
41715         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
41716         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
41717         fira-share-save-slots, fira-share-spill-slots,
41718         fmodulo-sched-allow-regmoves, fpartial-inlining,
41719         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
41720         ftracer, ftree-parallelize-loops, fassociative-math,
41721         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
41722         Optimization
41723         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
41724         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
41725         Optimization.
41726         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
41727         Fix for IPA.
41729 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
41731         PR ipa/64378
41732         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
41733         flag correctly.
41734         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
41736 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
41738         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
41739         Remove duplicate option listings.
41741 2015-01-18  Felix Yang  <felix.yang@huawei.com>
41743         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
41744         (autofdo_source_profile::get_callsite_total_count,
41745         function_instance::get_function_instance_by_decl,
41746         string_table::get_index, string_table::get_index_by_decl,
41747         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
41748         Fix comment typos. Reformatting and minor code rearrangement.
41750 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
41752         * config/rs6000/rs6000.md (probe_stack): Delete.
41753         (probe_stack_address): New.
41755 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
41757         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
41758         to test for 32-bit ABIs, not !TARGET_POWERPC64.
41760 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
41762         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
41763         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
41764         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
41765         snafu.
41766         (rs6000_libcall_value): Use the new function.
41768 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
41770         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
41772 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
41774         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
41775         implement a more precise life analysis for it during backward scan.
41777 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
41779         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
41781 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
41783         PR rtl-optimization/52773
41784         * calls.c (emit_library_call_value): When pushing arguments use
41785         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
41786         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
41787         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
41789 2015-01-17  Jeff Law  <law@redhat.com>
41791         PR rtl-optimization/32790
41792         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
41793         not ZERO_EXTEND in SET_DESTs.
41795 2015-01-17  Alan Modra  <amodra@gmail.com>
41797         * cprop.c (do_local_cprop): Revert last change.
41799 2015-01-16  DJ Delorie  <dj@redhat.com>
41800             Nick Clifton  <nickc@redhat.com>
41802         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
41803         (addhi3_real): Likewise.  Fix [HL+0] syntax.
41804         (subqi3_real): Likewise.
41805         (subhi3_real): Likewise.
41806         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
41807         (cbranchhi4_real): Likewise.
41808         (cbranchhi4_real_inverted): Likewise.
41809         (cbranchsi4_real_lt): Likewise.
41810         (cbranchsi4_real_ge): Likewise.
41811         (cbranchsi4_real_ge): Likewise.
41812         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
41813         (sub<mode>3_virt): Likewise.
41814         (cbranchqi4_virt): Likewise.
41815         (cbranchhi4_virt): Likewise.
41816         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
41817         always use '[reg+imm]' even when imm is zero.
41818         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
41819         (rl78_general_operand): New.
41820         (rl78_nonimmediate_operand): New.
41821         (rl78_nonfar_operand): Use them.
41822         (rl78_nonfar_nonimm_operand): Likewise.
41823         (rl78_stack_based_mem): Fix.
41824         * config/rl78/constraints.md (Ibqi): New.
41825         (IBqi): New.
41826         (Wsa): New.
41827         (Wsf): New.
41828         (Cs1): Fix.
41829         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
41830         (iorqi3): Likewise.
41831         (xorqi3): Likewise.
41832         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
41834         * config/rl78/constrains (Qs8): New constraint.
41835         * config/rl78/rl78.c (rl78_flags_already_set): New function.
41836         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
41837         * config/rl78/rl78-real.md (update_Z): New attribute.
41838         Update patterns to set it.
41839         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
41840         shorter compare and branch sequence can be used.
41841         (cbranchhi4_real): Likewise.
41842         (cbranchhi4_real_inverted): Likewise.
41844         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
41845         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
41846         address space.
41847         * config/rl78/rl78.c (rl78_get_name_encoding): New.
41848         (rl78_option_override): Allow -mes0 only if C.
41849         (characterize_address): Support subregs of symbol_refs.
41850         (rl78_addr_space_address_mode): Move.  Add __near.
41851         (rl78_far_p): Likewise.
41852         (rl78_addr_space_pointer_mode): Likewise.
41853         (rl78_as_legitimate_address): Likewise.
41854         (rl78_addr_space_subset_p): Likewise.
41855         (rl78_addr_space_convert): Likewise.
41856         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
41857         symbols with -mes0.
41858         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
41859         addressing.
41860         (rl78_alloc_physical_registers_op1): Change logic to prefer
41861         symbol[BC] addressing.
41862         (frodata_section): New.
41863         (rl78_asm_init_sections): Initialize it.
41864         (rl78_select_section): Put __far readonly symbols in .frodata.
41865         (rl78_make_type_far): New.
41866         (rl78_insert_attributes): Force all readonly symbols to be
41867         __far when -mes0.
41868         (rl78_asm_out_integer): New.
41869         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
41870         * config/rl78/rl78.opt (-mes0): New.
41872         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
41873         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
41874         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
41875         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
41876         (rl78_saddr_p): New.
41877         (rl78_output_aligned_common): New.
41878         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
41879         (rl78_handle_saddr_attribute): New.
41880         (rl78_handle_naked_attribute): New.
41881         (rl78_attribute_table): Add saddr.
41882         (rl78_print_operand_1): Don't print '!' on saddr operands.
41883         (rl78_print_operand_1): Strip encodings.
41884         (rl78_sfr_p): New.
41885         (rl78_strip_name_encoding): New.
41886         (rl78_attrlist_to_encoding): New.
41887         (rl78_encode_section_info): New.
41888         (rl78_asm_init_sections): New.
41889         (rl78_select_section): New.
41890         (rl78_output_labelref): New.
41891         (rl78_output_aligned_common): New.
41892         (rl78_asm_out_integer): New.
41893         (rl78_asm_ctor_dtor): New.
41894         (rl78_asm_constructor): New.
41895         (rl78_asm_destructor): New.
41897         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
41898         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
41899         (transcode_memory_rtx): Update.
41900         (rl78_expand_epilogue): Use A_REG instead of 0.
41902 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
41904         * config/arm/arm-protos.h (struct tune_params): New field
41905         sched_autopref_queue_depth.
41906         * config/arm/arm.c (sched-int.h): Include header.
41907         (arm_first_cycle_multipass_dfa_lookahead_guard,)
41908         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
41909         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
41910         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
41911         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
41912         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
41913         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
41914         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
41915         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
41916         * config/arm/t-arm (arm.o): Update.
41917         * haifa-sched.c (update_insn_after_change): Update.
41918         (rank_for_schedule): Use auto-prefetcher model, if requested.
41919         (autopref_multipass_init): New static function.
41920         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
41921         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
41922         variable for debug dumps.
41923         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
41924         (autopref_multipass_dfa_lookahead_guard): New global function that
41925         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
41926         (init_h_i_d): Update.
41927         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
41928         * sched-int.h (enum autopref_multipass_data_status): New const enum.
41929         (autopref_multipass_data_): Structure for auto-prefetcher data.
41930         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
41931         (struct _haifa_insn_data:autopref_multipass_data): New field.
41932         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
41933         (autopref_multipass_dfa_lookahead_guard): Declare.
41935 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
41937         * rtlanal.c (get_base_term): Handle SCRATCH.
41939 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
41941         * config/aarch64/aarch64.c
41942         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
41943         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
41944         * config/arm/arm.c
41945         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
41946         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
41948 2015-01-17  Alan Modra  <amodra@gmail.com>
41950         * cprop.c (do_local_cprop): Disallow replacement of fixed
41951         hard registers.
41953 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41955         PR target/62066
41956         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
41957         early return 0.
41959 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
41961         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
41962         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
41964 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41966         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
41967         * config/arm/thumb1.md: ... Here.
41969 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
41971         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
41972         TImode for TARGET_32BIT.
41974 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
41976         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
41977         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
41978         as ...
41979         (rs6000_abi_word_mode): New function.
41981 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
41983         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
41984         instead of UNITS_PER_WORD to describe the size of stack slots.
41986 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
41988         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
41989         as rs6000_promote_function_mode.  Move comment to there.
41990         (rs6000_promote_function_mode): New function.
41992 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
41994         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
41995         -mpowerpc64 is active.
41997 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
41999         PR middle-end/64353
42000         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
42001         virtuals on start.
42003 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
42005         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
42006         introduced in revision 219724.
42008 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42009             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
42011         PR target/64263
42012         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
42013         destination is not a GP reg.
42014         (*movdi_aarch64): Likewise.
42016 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
42018         PR target/64623
42019         * config/rs6000/default64.h: Revert ISA change.
42021 2015-01-16  Richard Biener  <rguenther@suse.de>
42023         PR middle-end/64614
42024         * tree-ssa-uninit.c: Include tree-cfg.h.
42025         (MAX_SWITCH_CASES): New define.
42026         (convert_control_dep_chain_into_preds): Handle switch statements.
42027         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
42028         (normalize_one_pred_1): Do not split bit-manipulations.
42029         Record (x & CST).
42031 2015-01-16  Richard Biener  <rguenther@suse.de>
42033         PR tree-optimization/64568
42034         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
42035         complex load rewriting for TARGET_MEM_REFs.
42037 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
42039         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
42041 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
42043         PR target/64149
42044         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
42045         variable.
42046         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
42047         (aarch64_lra_p): Remove.
42049 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
42051         PR target/64363
42052         * ipa-chkp.h (chkp_instrumentable_p): New.
42053         * ipa-chkp.c: Include tree-inline.h.
42054         (chkp_instrumentable_p): New.
42055         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
42056         Fix processing of not instrumentable functions.
42057         (chkp_versioning): Use chkp_instrumentable_p. Warn about
42058         not instrumentable functions.
42059         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
42060         chkp_instrumentable_p.
42061         * tree-inline.h (copy_forbidden): New.
42062         * tree-inline.c (copy_forbidden): Not static anymore.
42064 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
42066         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
42067         ptr1, ptr2 unused.
42069 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
42071         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
42072         type OP_OUT to OP_INOUT.
42074 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
42076         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
42077         (high x) y) to y if x and y have the same base.
42079 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
42081         * config/arm/cortex-a57.md: New.
42082         * config/aarch64/aarch64.md: Include it.
42083         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
42084         * config/aarch64/aarch64-tune.md: Regenerate.
42086 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
42088         PR target/64015
42089         * ccmp.c (expand_ccmp_next): New function.
42090         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
42091         and compare insn sequence.
42092         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
42093         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
42094         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
42095         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
42096         (*ccmp_ior): Changed to ccmp_ior<mode>.
42097         (cmp<mode>): New pattern.
42098         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
42099         parameters.
42100         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
42102 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
42104         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
42105         _mm256_bsrli_epi128): New.
42106         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
42108 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
42110         * expmed.c (store_bit_field_using_insv): Improve warning message.
42111         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
42113 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
42115         PR rtl-optimization/64011
42116         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
42117         there is partial overflow.
42119 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
42121         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
42122         prototype.
42123         (nds32_expand_epilogue_v3pop): Likewise.
42124         * config/nds32/nds32.md (sibcall): Define this for sibling call
42125         optimization.
42126         (sibcall_register): Likewise.
42127         (sibcall_immediate): Likewise.
42128         (sibcall_value): Likewise.
42129         (sibcall_value_register): Likewise.
42130         (sibcall_value_immediate): Likewise.
42131         (sibcall_epilogue): Likewise.
42132         (epilogue): Pass false to indicate this is not a sibcall epilogue.
42133         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
42134         (nds32_expand_epilogue_v3pop): Likewise.
42136 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
42138         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
42139         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
42140         (return_internal): New.
42141         (return): Define this named pattern.
42142         (simple_return): Define this named pattern.
42143         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
42144         pattern instead of unspec_volatile_func_return.
42145         (nds32_expand_epilogue_v3pop): Likewise.
42146         (nds32_can_use_return_insn): New function.
42148 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
42150         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
42151         * config/nds32/nds32.md (pop25return): New.
42152         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
42153         pop25return pattern.
42155 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
42157         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
42158         -mforbid-fp-as-gp, and -mex9 options.
42160 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
42162         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
42163         remove -mgp-direct option.
42165 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
42167         * doc/invoke.texi (--param early-inlining-insns): Update default value.
42168         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
42170 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
42172         * ipa-inline.c (inline_small_functions): Work around hints
42173         cache issue.
42175 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
42177         PR target/59710
42178         * doc/invoke.texi (Option Summary): Document new Nios II
42179         -mgpopt= syntax.
42180         (Nios II Options): Likewise.
42181         * config/nios2/nios2.opt: Add -mgpopt= option support.
42182         Modify existing -mgpopt and -mno-gpopt options to be aliases.
42183         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
42184         * config/nios2/nios2.c (nios2_option_override): Adjust
42185         -mgpopt defaulting.
42186         (nios2_in_small_data_p): Return true for explicit small data
42187         sections even with -G0.
42188         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
42189         option choices.
42191 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
42193         PR ipa/64612
42194         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
42195         of comdat locals.
42196         (inline_call): Fix removal of aliases.
42198 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
42200         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
42201         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
42202         * opts.c (common_handle_option): Add -fsanitize=vptr.
42203         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
42204         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
42205         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
42206         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
42207         (ubsan_expand_vptr_ifn): New prototype.
42208         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
42209         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
42210         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
42211         expand_LOOP_VECTORIZED): Make argument nameless, remove
42212         ATTRIBUTE_UNUSED.
42213         (expand_UBSAN_VPTR): New function.
42214         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
42215         in fn spec.
42216         (UBSAN_VPTR): New internal function.
42217         * sanopt.c (tree_map_traits): Renamed to ...
42218         (sanopt_tree_map_traits): ... this.
42219         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
42220         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
42221         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
42222         (maybe_optimize_ubsan_vptr_ifn): New function.
42223         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
42224         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
42225         -fsanitize=vptr.
42226         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
42227         internal calls like pure functions for aliasing, even when they
42228         have other side-effects that prevent making them ECF_PURE.
42229         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
42230         (ubsan_expand_vptr_ifn): New function.
42232 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
42234         PR rtl-optimization/64110
42235         * stmt.c (parse_output_constraint): Process '^' and '$'.
42236         (parse_input_constraint): Ditto.
42237         * lra-constraints.c (process_alt_operands): Process the new
42238         constraints.
42239         * ira-costs.c (record_reg_classes): Process the new constraint
42240         '^'.
42241         * genoutput.c (indep_constraints): Add '^' and '$'.
42242         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
42243         * doc/md.texi: Add description of the new constraints.
42245 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
42246             Bernd Schmidt  <bernds@codesourcery.com>
42247             Cesar Philippidis  <cesar@codesourcery.com>
42248             James Norris  <jnorris@codesourcery.com>
42249             Tom de Vries  <tom@codesourcery.com>
42250             Ilmir Usmanov  <i.usmanov@samsung.com>
42251             Dmitry Bocharnikov  <dmitry.b@samsung.com>
42252             Evgeny Gavrin  <e.gavrin@samsung.com>
42253             Jakub Jelinek  <jakub@redhat.com>
42255         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
42256         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
42257         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
42258         New function types.
42259         * builtins.c: Include "gomp-constants.h".
42260         (expand_builtin_acc_on_device): New function.
42261         (expand_builtin, is_inexpensive_builtin): Handle
42262         BUILT_IN_ACC_ON_DEVICE.
42263         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
42264         New macros.
42265         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
42266         flag_openmp.
42267         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
42268         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
42269         i386/intelmic-offload.h.
42270         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
42271         to libgomp and its dependencies.
42272         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
42273         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
42274         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
42275         * config/ia64/hpux.h (LIB_SPEC): Likewise.
42276         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
42277         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
42278         * doc/generic.texi: Update for OpenACC changes.
42279         * doc/gimple.texi: Likewise.
42280         * doc/invoke.texi: Likewise.
42281         * doc/sourcebuild.texi: Likewise.
42282         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
42283         GF_OMP_FOR_KIND_OACC_LOOP.
42284         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
42285         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
42286         GF_OMP_TARGET_KIND_OACC_UPDATE,
42287         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
42288         Dump more data.
42289         * gimple.c: Update comments for OpenACC changes.
42290         * gimple.def: Likewise.
42291         * gimple.h: Likewise.
42292         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
42293         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
42294         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
42295         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
42296         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
42297         appropriate place.
42298         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
42299         * gimplify.c: Include "gomp-constants.h".
42300         Update comments for OpenACC changes.
42301         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
42302         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
42303         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
42304         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
42305         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
42306         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
42307         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
42308         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
42309         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
42310         OMP_CLAUSE_SEQ.
42311         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
42312         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
42313         OMP_CLAUSE_SET_MAP_KIND.
42314         (gimplify_oacc_cache): New function.
42315         (gimplify_omp_for): Handle OACC_LOOP.
42316         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
42317         OACC_DATA.
42318         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
42319         OACC_EXIT_DATA, OACC_UPDATE.
42320         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
42321         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
42322         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
42323         (gimplify_body): Consider flag_openacc next to flag_openmp.
42324         * lto-streamer-out.c: Include "gomp-constants.h".
42325         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
42326         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
42327         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
42328         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
42329         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
42330         (BUILT_IN_ACC_ON_DEVICE): New builtins.
42331         * omp-low.c: Include "gomp-constants.h".
42332         Update comments for OpenACC changes.
42333         (struct omp_context): Add reduction_map, gwv_below, gwv_this
42334         members.
42335         (extract_omp_for_data, use_pointer_for_field, install_var_field)
42336         (new_omp_context, delete_omp_context, scan_sharing_clauses)
42337         (create_omp_child_function, scan_omp_for, scan_omp_target)
42338         (check_omp_nesting_restrictions, lower_reduction_clauses)
42339         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
42340         Update for OpenACC changes.
42341         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
42342         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
42343         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
42344         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
42345         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
42346         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
42347         OMP_CLAUSE_MAP_*.
42348         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
42349         Handle GF_OMP_FOR_KIND_OACC_LOOP.
42350         (expand_omp_target, lower_omp_target): Handle
42351         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
42352         GF_OMP_TARGET_KIND_OACC_UPDATE,
42353         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
42354         GF_OMP_TARGET_KIND_OACC_DATA.
42355         (pass_expand_omp::execute, execute_lower_omp)
42356         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
42357         flag_openmp.
42358         (offload_symbol_decl): New variable.
42359         (oacc_get_reduction_array_id, oacc_max_threads)
42360         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
42361         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
42362         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
42363         (oacc_gimple_assign, oacc_initialize_reduction_data)
42364         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
42365         functions.
42366         (is_targetreg_ctx): Remove function.
42367         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
42368         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
42369         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
42370         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
42371         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
42372         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
42373         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
42374         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
42375         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
42376         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
42377         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
42378         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
42379         * tree-core.h: Update comments for OpenACC changes.
42380         (enum omp_clause_map_kind): Remove.
42381         (struct tree_omp_clause): Change type of map_kind member from enum
42382         omp_clause_map_kind to unsigned char.
42383         * tree-inline.c: Update comments for OpenACC changes.
42384         * tree-nested.c: Likewise.  Include "gomp-constants.h".
42385         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
42386         (convert_tramp_reference_stmt, convert_gimple_call): Update for
42387         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
42388         OMP_CLAUSE_SET_MAP_KIND.
42389         * tree-pretty-print.c: Include "gomp-constants.h".
42390         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
42391         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
42392         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
42393         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
42394         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
42395         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
42396         instead of OMP_CLAUSE_MAP_*.
42397         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
42398         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
42399         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
42400         * tree-streamer-in.c: Include "gomp-constants.h".
42401         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
42402         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
42403         * tree-streamer-out.c: Include "gomp-constants.h".
42404         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
42405         OMP_CLAUSE_MAP_*.
42406         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
42407         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
42408         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
42409         * tree.c (omp_clause_num_ops): Update accordingly.
42410         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
42411         Likewise.
42412         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
42413         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
42414         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
42415         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
42416         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
42417         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
42418         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
42419         (OMP_CLAUSE_SET_MAP_KIND): New macro.
42420         * varpool.c (varpool_node::get_create): Consider flag_openacc next
42421         to flag_openmp.
42422         * config/i386/intelmic-offload.h: New file.
42423         * config/nvptx/offload.h: Likewise.
42425 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
42427         * explow.h: Remove duplicate contents.
42428         * dojump.h: Likewise.
42430 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
42432         * arm.c (arm_xgene_tune): Add default initializer for instruction
42433         fusion.
42435 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
42437         PR ipa/64068
42438         PR ipa/64559
42439         * ipa.c (symbol_table::remove_unreachable_nodes):
42440         Do not put abstract origins into boundary.
42442 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
42444         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
42445         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
42447 2015-01-15  Steve Ellcey  <sellcey@mips.com>
42449         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
42450         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
42451         builtins.def, and chkp-builtins.def.
42453 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
42455         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
42456         ISA 2.7 (POWER8).
42458 2015-01-15  Richard Biener  <rguenther@suse.de>
42460         PR tree-optimization/61743
42461         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
42462         information on PHIs for some simple cases.
42464 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
42466         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
42467         Include xgene1.md.
42468         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
42469         * config/arm/arm-cores.def (xgene1): New entry.
42470         * config/arm/arm-tables.opt: Regenerate.
42471         * config/arm/arm-tune.md: Regenerate.
42472         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
42474 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
42476         * tree-if-conv.c: Include hash-map.h.
42477         (aggressive_if_conv): New variable.
42478         (fold_build_cond_expr): Add simplification of non-zero condition.
42479         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
42480         destination block is not always executed.
42481         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
42482         than two predecessors if AGGRESSIVE_IF_CONV is true.
42483         (if_convertible_stmt_p): Fix commentary.
42484         (all_preds_critical_p): New function.
42485         (has_pred_critical_p): New function.
42486         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
42487         BB can have more than two predecessors and all incoming edges can be
42488         critical.
42489         (predicate_bbs): Skip predication for loop exit block, use build2_loc
42490         to compute predicate for true edge.
42491         (find_phi_replacement_condition): Delete this function.
42492         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
42493         Allow interchange PHI arguments if EXTENDED is false.
42494         Change check that block containing reduction statement candidate
42495         is predecessor of phi-block since phi may have more than two arguments.
42496         (phi_args_hash_traits): New helper structure.
42497         (struct phi_args_hash_traits): New type.
42498         (phi_args_hash_traits::hash): New function.
42499         (phi_args_hash_traits::equal_keys): New function.
42500         (gen_phi_arg_condition): New function.
42501         (predicate_scalar_phi): Add handling of phi nodes with more than two
42502         arguments, delete COND and TRUE_BB arguments, insert body of
42503         find_phi_replacement_condition to predicate ordinary phi nodes.
42504         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
42505         delete call of find_phi_replacement_condition and invoke
42506         predicate_scalar_phi with two arguments.
42507         (insert_gimplified_predicates): Add assert that non-predicated block
42508         don't have statements to insert.
42509         (ifcvt_split_critical_edges): New function.
42510         (ifcvt_split_def_stmt): Likewise.
42511         (ifcvt_walk_pattern_tree): Likewise.
42512         (stmt_is_root_of_bool_pattern): Likewise.
42513         (ifcvt_repair_bool_pattern): Likewise.
42514         (ifcvt_local_dce): Likewise.
42515         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
42516         is copy of inner or outer loop force_vectorize field, invoke
42517         ifcvt_split_critical_edges, ifcvt_local_dce and
42518         ifcvt_repair_bool_pattern for aggressive if-conversion.
42520 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
42522         * config/aarch64/aarch64.md: Include xgene1.md.
42523         * config/aarch64/xgene1.md: New file.
42525 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
42527         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
42528         xgene1 (APM XGene-1) core definition.
42529         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
42530         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
42531         * doc/invoke.texi: Document -mcpu=xgene1.
42533 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
42535         * dojump.h: New header file.
42536         * explow.h: Likewise.
42537         * expr.h: Remove includes.
42538         Move expmed.c prototypes to expmed.h.
42539         Move dojump.c prototypes to dojump.h.
42540         Move alias.c prototypes to alias.h.
42541         Move explow.c prototypes to explow.h.
42542         Move calls.c prototypes to calls.h.
42543         Move emit-rtl.c prototypes to emit-rtl.h.
42544         Move varasm.c prototypes to varasm.h.
42545         Move stmt.c prototypes to stmt.h.
42546         (saved_pending_stack_adjust): Move to dojump.h.
42547         (adjust_address): Move to explow.h.
42548         (adjust_address_nv): Move to emit-rtl.h.
42549         (adjust_bitfield_address): Likewise.
42550         (adjust_bitfield_address_size): Likewise.
42551         (adjust_bitfield_address_nv): Likewise.
42552         (adjust_automodify_address_nv): Likewise.
42553         * explow.c (expr_size): Move to expr.c.
42554         (int_expr_size): Likewise.
42555         (tree_expr_size): Likewise.
42556         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42557         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
42558         * genemit.c (main): Generate includes statistics.h, real.h,
42559         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
42560         stmt.h.
42561         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
42562         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
42563         explow.h, emit-rtl.h, stmt.h.
42564         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
42565         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
42566         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
42567         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
42568         emit-rtl.h, varasm.h, stmt.h.
42569         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
42570         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
42571         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
42572         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
42573         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
42574         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
42575         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
42576         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
42577         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
42578         tm.h tree.h varasm.h vec.h wide-int.h.
42579         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42580         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
42581         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
42582         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
42583         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
42584         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
42585         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
42586         * loop-iv.c: Likewise.
42587         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
42588         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
42589         statistics.h stmt.h tree.h varasm.h wide-int.h.
42590         * lra-constraints.c: Likewise.
42591         * lra-eliminations.c: Likewise.
42592         * lra-lives.c: Likewise.
42593         * lra-remat.c: Likewise.
42594         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42595         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
42596         statistics.h stmt.h tree.h varasm.h wide-int.h.
42597         * hw-doloop.c: Likewise.
42598         * ira-color.c: Likewise.
42599         * ira-emit.c: Likewise.
42600         * loop-doloop.c: Likewise.
42601         * loop-invariant.c: Likewise.
42602         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42603         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
42604         statistics.h stmt.h tree.h varasm.h wide-int.h.
42605         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
42606         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
42607         statistics.h stmt.h tree.h varasm.h wide-int.h.
42608         * combine-stack-adj.c: Likewise.
42609         * cse.c: Likewise.
42610         * ddg.c: Likewise.
42611         * ifcvt.c: Likewise.
42612         * ira-costs.c: Likewise.
42613         * jump.c: Likewise.
42614         * lra-coalesce.c: Likewise.
42615         * lra-spills.c: Likewise.
42616         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42617         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
42618         stmt.h varasm.h wide-int.h.
42619         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42620         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
42621         varasm.h.
42622         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
42623         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
42624         statistics.h stmt.h varasm.h wide-int.h.
42625         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
42626         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
42627         varasm.h wide-int.h.
42628         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
42629         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
42630         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
42631         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
42632         statistics.h stmt.h.
42633         * config/tilepro/tilepro.c: Likewise.
42634         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
42635         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
42636         * config/pdp11/pdp11.c: Likewise.
42637         * config/xtensa/xtensa.c: Likewise.
42638         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
42639         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
42640         varasm.h.
42641         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42642         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
42643         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
42644         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42645         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
42646         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
42647         * rtl-chkp.c: Likewise.
42648         * tree-chkp-opt.c: Likewise.
42649         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
42650         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
42651         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
42652         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42653         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
42654         statistics.h stmt.h.
42655         * tree-vect-data-refs.c: Likewise.
42656         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
42657         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42658         rtl.h statistics.h stmt.h varasm.h.
42659         * internal-fn.c: Likewise.
42660         * ipa-icf-gimple.c: Likewise.
42661         * lto-section-out.c: Likewise.
42662         * tree-data-ref.c: Likewise.
42663         * tree-nested.c: Likewise.
42664         * tree-outof-ssa.c: Likewise.
42665         * tree-predcom.c: Likewise.
42666         * tree-pretty-print.c: Likewise.
42667         * tree-scalar-evolution.c: Likewise.
42668         * tree-ssa-strlen.c: Likewise.
42669         * tree-vect-loop.c: Likewise.
42670         * tree-vect-patterns.c: Likewise.
42671         * tree-vect-slp.c: Likewise.
42672         * tree-vect-stmts.c: Likewise.
42673         * tsan.c: Likewise.
42674         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42675         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
42676         stmt.h.
42677         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
42678         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42679         statistics.h stmt.h varasm.h.
42680         * loop-unroll.c: Likewise.
42681         * ubsan.c: Likewise.
42682         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
42683         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
42684         stmt.h varasm.h.
42685         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42686         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
42687         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
42688         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
42689         statistics.h stmt.h.
42690         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
42691         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
42692         statistics.h stmt.h varasm.h.
42693         * gimple-match-head.c: Likewise.
42694         * lto-cgraph.c: Likewise.
42695         * lto-section-in.c: Likewise.
42696         * lto-streamer-in.c: Likewise.
42697         * lto-streamer-out.c: Likewise.
42698         * tree-affine.c: Likewise.
42699         * tree-cfg.c: Likewise.
42700         * tree-cfgcleanup.c: Likewise.
42701         * tree-if-conv.c: Likewise.
42702         * tree-into-ssa.c: Likewise.
42703         * tree-ssa-alias.c: Likewise.
42704         * tree-ssa-copyrename.c: Likewise.
42705         * tree-ssa-dse.c: Likewise.
42706         * tree-ssa-forwprop.c: Likewise.
42707         * tree-ssa-live.c: Likewise.
42708         * tree-ssa-math-opts.c: Likewise.
42709         * tree-ssa-pre.c: Likewise.
42710         * tree-ssa-sccvn.c: Likewise.
42711         * tree-tailcall.c: Likewise.
42712         * tree-vect-generic.c: Likewise.
42713         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42714         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
42715         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42716         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
42717         * varasm.c: Likewise.
42718         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42719         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
42720         varasm.h.
42721         * init-regs.c: Likewise.
42722         * ira.c: Likewise.
42723         * omp-low.c: Likewise.
42724         * stack-ptr-mod.c: Likewise.
42725         * tree-ssa-reassoc.c: Likewise.
42726         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42727         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
42728         varasm.h.
42729         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42730         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
42731         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42732         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
42733         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42734         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
42735         * tree-ssa-phiopt.c: Likewise.
42736         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42737         fixed-value.h hashtab.h real.h statistics.h stmt.h.
42738         * config/fr30/fr30.c: Likewise.
42739         * config/frv/frv.c: Likewise.
42740         * expr.c: Likewise.
42741         * final.c: Likewise.
42742         * optabs.c: Likewise.
42743         * passes.c: Likewise.
42744         * simplify-rtx.c: Likewise.
42745         * stmt.c: Likewise.
42746         * toplev.c: Likewise.
42747         * var-tracking.c: Likewise.
42748         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42749         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42750         * lower-subreg.c: Likewise.
42751         * postreload-gcse.c: Likewise.
42752         * ree.c: Likewise.
42753         * reginfo.c: Likewise.
42754         * store-motion.c: Likewise.
42755         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42756         fixed-value.h hashtab.h real.h stmt.h varasm.h.
42757         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42758         fixed-value.h hashtab.h statistics.h stmt.h.
42759         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42760         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
42761         * except.c: Likewise.
42762         * explow.c: Likewise.
42763         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42764         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
42765         varasm.h.
42766         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42767         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
42768         * tree-ssa-structalias.c: Likewise.
42769         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42770         fixed-value.h insn-config.h real.h statistics.h.
42771         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42772         fixed-value.h insn-config.h real.h statistics.h stmt.h.
42773         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42774         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
42775         * cfgbuild.c: Likewise.
42776         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42777         fixed-value.h real.h rtl.h statistics.h stmt.h.
42778         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42779         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
42780         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42781         fixed-value.h real.h statistics.h stmt.h.
42782         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42783         fixed-value.h real.h statistics.h stmt.h varasm.h.
42784         * cprop.c: Likewise.
42785         * modulo-sched.c: Likewise.
42786         * postreload.c: Likewise.
42787         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
42788         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
42789         statistics.h stmt.h varasm.h.
42790         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
42791         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42792         rtl.h statistics.h stmt.h varasm.h.
42793         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
42794         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
42795         varasm.h.
42796         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
42797         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
42798         varasm.h.
42799         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
42800         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
42801         varasm.h.
42802         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
42803         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42804         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
42805         function.h real.h statistics.h stmt.h varasm.h.
42806         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
42807         insn-config.h real.h statistics.h stmt.h.
42808         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
42809         statistics.h stmt.h.
42810         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
42811         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
42812         statistics.h stmt.h varasm.h.
42813         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
42814         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
42815         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42816         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
42817         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
42818         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
42819         statistics.h stmt.h varasm.h.
42820         * ipa-polymorphic-call.c: Likewise.
42821         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
42822         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42823         statistics.h stmt.h.
42824         * config/c6x/c6x.c: Likewise.
42825         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
42826         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42827         statistics.h stmt.h varasm.h.
42828         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
42829         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
42830         stmt.h varasm.h.
42831         * ipa-split.c: Likewise.
42832         * tree-eh.c: Likewise.
42833         * tree-ssa-dce.c: Likewise.
42834         * tree-ssa-loop-niter.c: Likewise.
42835         * tree-vrp.c: Likewise.
42836         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
42837         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
42838         stmt.h.
42839         * config/nds32/nds32-fp-as-gp.c: Likewise.
42840         * config/nds32/nds32-intrinsic.c: Likewise.
42841         * config/nds32/nds32-isr.c: Likewise.
42842         * config/nds32/nds32-md-auxiliary.c: Likewise.
42843         * config/nds32/nds32-memory-manipulation.c: Likewise.
42844         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
42845         * config/nds32/nds32-predicates.c: Likewise.
42846         * config/nds32/nds32.c: Likewise.
42847         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
42848         fixed-value.h hashtab.h real.h statistics.h.
42849         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
42850         fixed-value.h hashtab.h real.h statistics.h stmt.h.
42851         * config/arm/arm.c: Likewise.
42852         * config/avr/avr.c: Likewise.
42853         * config/bfin/bfin.c: Likewise.
42854         * config/h8300/h8300.c: Likewise.
42855         * config/i386/i386.c: Likewise.
42856         * config/ia64/ia64.c: Likewise.
42857         * config/iq2000/iq2000.c: Likewise.
42858         * config/m32c/m32c.c: Likewise.
42859         * config/m32r/m32r.c: Likewise.
42860         * config/m68k/m68k.c: Likewise.
42861         * config/mcore/mcore.c: Likewise.
42862         * config/mep/mep.c: Likewise.
42863         * config/mips/mips.c: Likewise.
42864         * config/mn10300/mn10300.c: Likewise.
42865         * config/moxie/moxie.c: Likewise.
42866         * config/pa/pa.c: Likewise.
42867         * config/rl78/rl78.c: Likewise.
42868         * config/rx/rx.c: Likewise.
42869         * config/s390/s390.c: Likewise.
42870         * config/sh/sh.c: Likewise.
42871         * config/sparc/sparc.c: Likewise.
42872         * config/spu/spu.c: Likewise.
42873         * config/stormy16/stormy16.c: Likewise.
42874         * config/v850/v850.c: Likewise.
42875         * config/vax/vax.c: Likewise.
42876         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
42877         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42878         * config/msp430/msp430.c: Likewise.
42879         * predict.c: Likewise.
42880         * value-prof.c: Likewise.
42881         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
42882         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
42883         * config/microblaze/microblaze.c: Likewise.
42884         * config/nios2/nios2.c: Likewise.
42885         * config/rs6000/rs6000.c: Likewise.
42886         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42887         insn-config.h real.h rtl.h statistics.h stmt.h.
42888         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42889         insn-config.h real.h statistics.h stmt.h.
42890         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
42891         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
42892         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
42893         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
42894         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
42895         fixed-value.h real.h statistics.h stmt.h.
42896         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
42897         fixed-value.h statistics.h stmt.h.
42898         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
42899         stmt.h.
42901 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
42903         * gengtype.c (create_user_defined_type): Workaround
42904         -Wmaybe-uninitialized false positives.
42905         * cse.c (fold_rtx): Likewise.
42906         * loop-invariant.c (gain_for_invariant): Likewise.
42908 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
42910         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
42911         set the memory attributes in all cases but clear MEM_EXPR if need be.
42913 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
42915         PR tree-optimization/64434
42916         * cfgexpand.c (reorder_operands): New function.
42917         (expand_gimple_basic_block): Insert call of reorder_operands if
42918         optimized is true.
42920 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
42922         * config/mips/micromips.md (*swp): Remove explicit parallel.
42923         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
42924         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
42925         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
42926         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
42927         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
42928         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
42929         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
42930         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
42931         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
42932         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
42933         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
42934         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
42935         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
42936         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
42937         (mips_wrdsp): Likewise.
42938         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
42939         parallel.
42940         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
42941         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
42942         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
42943         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
42944         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
42945         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
42946         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
42947         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
42948         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
42950 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
42952         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
42953         (mips_print_operand): Support 'y' to print exact log2 in decimal
42954         of a const_int.
42955         * config/mips/mips.h (ISA_HAS_LSA): New define.
42956         (ISA_HAS_DLSA): Likewise.
42957         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
42958         * config/mips/predicates.md (const_immlsa_operand): New predicate.
42960 2015-01-15  Martin Liska  <mliska@suse.cz>
42962         PR target/64377
42963         * optc-save-gen.awk: Add support for array types.
42965 2015-01-15  Richard Biener  <rguenther@suse.de>
42967         PR middle-end/64365
42968         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
42969         for MEM_REF access functions with the same base can never partially
42970         overlap.
42972 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
42974         * common.opt: New option -fstack-protector-explicit.
42975         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
42976         (stack_protect_decl_phase): Handle stack_protect attribute for
42977         explicit stack protection requests.
42978         (expand_used_vars): Similarly.
42979         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
42980         * doc/extend.texi: Add documentation for "stack_protect" attribute.
42981         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
42983 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
42985         PR target/53988
42986         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
42987         reg-reg copies.
42988         (sh_extending_set_of_reg): New struct.
42989         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
42990         sh_remove_reg_dead_or_unused_notes): New Declarations.
42991         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
42992         sh_find_extending_set_of_reg, sh_split_tst_subregs,
42993         sh_extending_set_of_reg::use_as_extended_reg): New functions.
42994         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
42995         convert to insn_and_split and use new function sh_split_tst_subregs.
42997 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
42999         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
43000         option.
43001         (Optimization Options): Move -fuse-ld documentation to...
43002         (Link Options): ...here.
43004 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
43006         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
43007         offsets.
43008         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
43009         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
43010         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
43011         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
43012         instead of ZR for the memory operand of LL/SC.
43013         (compare_and_swap_12, sync_add<mode>): Likewise.
43014         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
43015         (sync_new_<optab>_12, sync_nand_12): Likewise.
43016         (sync_old_nand_12, sync_new_nand_12): Likewise.
43017         (sync_sub<mode>, sync_old_add<mode>): Likewise.
43018         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
43019         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
43020         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
43021         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
43022         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
43023         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
43024         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
43025         * doc/md.texi (ZC): Update description.
43027 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
43029         * builtins.c (expand_builtin_atomic_exchange): Remove error when
43030         memory model is CONSUME.
43031         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
43032         expand_builtin_atomic_store): Change invalid memory model errors to
43033         warnings.
43034         (expand_builtin_atomic_clear): Change invalid model errors to warnings
43035         and issue warning for CONSUME.
43037 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
43039         * lto-cgraph: Update function comments for
43040         lto_symtab_encoder_encode_*.
43042 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
43044         * Makefile.in (site.exp): Do not set ENABLE_LTO.
43046 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
43048         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
43049         * lto-cgraph.c (select_what_to_stream): Remove argument, use
43050         lto_stream_offload_p instead.
43051         * lto-streamer.h (select_what_to_stream): Remove argument.
43052         * passes.c (ipa_write_summaries): Likewise.
43053         * tree-pass.h (ipa_write_summaries): Likewise.
43055 2015-01-14  Richard Biener  <rguenther@suse.de>
43057         PR tree-optimization/59354
43058         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
43059         groups larger than the slp group size as having gaps.
43061 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
43063         PR middle-end/59448
43064         * builtins.c (get_memmodel): Promote consume to acquire always.
43066 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
43068         PR target/64386
43069         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
43070         V32HImode.
43072 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
43074         PR target/64393
43075         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
43076         Enable AVX512BW.
43077         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
43078         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
43079         AVX512VBMI, as it implies AVX512BW.
43081 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
43083         PR target/64387
43084         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
43085         (vec_unpacks_hi_v16sf): Ditto.
43087 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
43089         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
43090         is not available.
43092 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
43094         * doc/invoke.texi (mapcs): Mention deprecation.
43095         (mapcs-frame): Likewise.
43097 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
43099         PR target/64453
43100         * config/arm/arm.c (callee_saved_reg_p): Define.
43101         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
43102         register is callee saved instead of !call_used_regs[reg].
43103         (thumb1_compute_save_reg_mask): Likewise.
43105 2015-01-14  Hale Wang  <hale.wang@arm.com>
43107         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
43108         Cortex-M7.
43110 2015-01-14  Richard Biener  <rguenther@suse.de>
43112         PR lto/64415
43113         * tree-inline.c (insert_debug_decl_map): Check destination
43114         function MAY_HAVE_DEBUG_STMTS.
43115         (insert_init_debug_bind): Likewise.
43116         (insert_init_stmt): Remove redundant check.
43117         (remap_gimple_stmt): Drop debug stmts if the destination
43118         function has var-tracking assignments disabled.
43120 2015-01-14  Martin Liska  <mliska@suse.cz>
43122         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
43123         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
43125 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
43127         PR target/64460
43128         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
43129         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
43131 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
43133         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
43134         level from an ARCH; do not inject the default.
43135         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
43136         MIPS_ISA_LEVEL_SPEC.
43137         (MIPS_ISA_NAN2008_SPEC): Update comment.
43138         (BASE_DRIVER_SELF_SPECS): Likewise.
43139         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
43140         MIPS_DEFAULT_ISA_LEVEL_SPEC.
43141         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
43142         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
43143         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
43145 2015-01-14  Richard Biener  <rguenther@suse.de>
43147         PR tree-optimization/64493
43148         PR tree-optimization/64495
43149         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
43150         assign the proper vectorized PHI to the inner loop exit PHIs.
43152 2015-01-14  Joey Ye  <joey.ye@arm.com>
43154         * config/arm/arm.c (arm_compute_save_reg_mask):
43155         Do not save lr in case of tail call.
43156         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
43158 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
43160         * tree-vrp.c (check_array_ref): Emit more warnings
43161         for warn_array_bounds >= 2.
43162         * common.opt: New option -Warray-bounds=.
43163         * doc/invoke.texi: Document -Warray-bounds=.
43165 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
43167         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
43168         (mforbid-fp-as-gp): Remove.
43169         (mex9): Remove.
43170         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
43171         (nds32_symbol_load_store_p): Remove.
43172         (nds32_fp_as_gp_check_available): Clean up implementation.
43173         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
43174         cases.
43175         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
43176         fp-as-gp and ex9 cases.
43178 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
43180         * tree-profile.c (init_ic_make_global_vars): Drop workaround
43181         for bintuils bug 14342.
43182         (init_ic_make_global_vars): Likewise.
43183         (gimple_init_edge_profiler): Likewise.
43184         (gimple_gen_ic_func_profiler): Likewise.
43186 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
43188         * ipa-inline.c (inline_small_functions): Swap the operands in
43189         enum.
43191 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
43193         PR ipa/64481
43194         * ipa-inline-analysis.c (node_growth_cache): Remove.
43195         (initialize_growth_caches): Do not initialize it.
43196         (free_growth_caches): Do not free it.
43197         (do_estimate_growth): Rename to ...
43198         (estimate_growth): ... this one; drop growth cache code.
43199         (growth_likely_positive): Always go the heuristics way.
43200         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
43201         (reset_edge_caches): Do not reset node growth.
43202         (heap_edge_removal_hook): Do not maintain cache.
43203         (inline_small_functions): Likewise; strenghten sanity check.
43204         (ipa_inline): Do not maintain caches.
43205         * ipa-inline.h (node_growth_cache): Remove.
43206         (do_estimate_growth): Remove to ...
43207         (estimate_growth): this one; remove inline version.
43208         (reset_node_growth_cache): Remove.
43210 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
43212         PR ipa/64565
43213         * ipa-inline.c (inline_small_functions): Update callee keys after
43214         resolving speculation
43215         (inline_small_functions): Always check monotonicity of the queue.
43217 2015-01-13  Marek Polacek  <polacek@redhat.com>
43219         PR middle-end/64391
43220         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
43222 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
43224         PR rtl-optimization/64286
43225         * ree.c (combine_reaching_defs): Move part of comment earlier,
43226         remove !SCALAR_INT_MODE_P check.
43227         (add_removable_extension): Don't add vector mode
43228         extensions if all uses of the source register aren't the same
43229         vector extensions.
43231 2015-01-13  Renlin Li  <renlin.li@arm.com>
43233         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
43234         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
43236 2015-01-13  Martin Liska  <mliska@suse.cz>
43238         * ipa-icf.c (sem_function::equals_private): Call new functions
43239         cl_target_option_print_diff and cl_optimization_print_diff.
43240         * optc-save-gen.awk (cl_target_option_print_diff): New function.
43241         (cl_optimization_print_diff): Likewise.
43242         * opth-gen.awk: Likewise.
43244 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
43246         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
43247         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
43248         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
43249         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
43250         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
43251         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
43253 2015-01-13  Andrew Pinski  <apinski@cavium.com>
43255         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
43256         instead of src mode.
43258 2015-01-13  Richard Biener  <rguenther@suse.de>
43260         PR lto/64373
43261         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
43262         DECL_CONTEXT.
43264 2015-01-13  Andrew Pinski  <apinski@cavium.com>
43266         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
43267         volatile mems.
43268         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
43270 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
43272         PR middle-end/63974
43273         * cfgexpand.c (expand_computed_goto): Don't call
43274         convert_memory_address here.
43276 2015-01-13  Richard Biener  <rguenther@suse.de>
43278         PR tree-optimization/64406
43279         * tree-loop-distibution.c (pass_loop_distribution::execute):
43280         Reset the SCEV hashtable if we distributed anything.
43282 2015-01-13  Richard Biener  <rguenther@suse.de>
43284         PR tree-optimization/64404
43285         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
43286         SLP types for CSEd loads.
43288 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
43290         PR tree-optimization/64436
43291         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
43292         merge of two symbolic numbers for a bitwise OR to ...
43293         (perform_symbolic_merge): This. Also fix computation of the range and
43294         end of the symbolic number corresponding to the result of a bitwise OR.
43296 2015-01-13  Richard Biener  <rguenther@suse.de>
43298         PR tree-optimization/64568
43299         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
43300         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
43302 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
43304         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
43305         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
43307 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
43309         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
43310         target-specific symbol_ref flag.
43311         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
43312         resides in rodata section.
43313         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
43314         (nds32_encode_section_info): New function.
43316 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
43318         * config/nds32/nds32.md (call): Use pseudo instruction bal which
43319         clobbers TA_REGNUM if large code model is specified.
43320         (call_register): Likewise.
43321         (call_immediate): Likewise.
43322         (call_value): Likewise.
43323         (call_value_register): Likewise.
43324         (call_value_immediate): Likewise.
43326 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
43328         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
43329         (TARGET_CMODEL_MEDIUM): New macro.
43330         (TARGET_CMODEL_LARGE): New macro.
43331         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
43332         code model setting in assembly code.
43334 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
43336         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
43337         Remove MASK_GP_DIRECT flag.
43338         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
43339         one of the multilib default options.
43340         * config/nds32/nds32.opt (mgp-direct): Remove.
43341         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
43342         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
43344 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
43346         * config/nds32/nds32.opt (mcmodel): Add new option.
43347         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
43348         to describe code model.
43350 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
43352         PR target/64479
43353         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
43355 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
43357         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
43358         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
43359         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
43360         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
43361         __builtin_sh_set_fpscr.
43363 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
43365         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
43366         after a funtion name just to indicate it is a function.
43367         ([-fsanitize-undefined-trap-on-error]): Likewise.
43368         ([-fdbg-cnt=]): Likewise.
43369         ([-mmemcpy]): Likewise.
43370         ([-mflush-func]): Likewise.
43371         ([-msynci]): Likewise.
43373 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
43375         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
43376         example.
43378 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
43380         PR tree-optimization/64563
43381         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
43382         instead of != VR_VARYING.
43384         PR target/64513
43385         * config/i386/i386.c (ix86_expand_prologue): Add
43386         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
43388         PR tree-optimization/64454
43389         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
43390         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
43391         for signed or [0, op1 - 1] for unsigned modulo.
43392         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
43393         even if op1 does not satisfy integer_pow2p.
43395         PR other/64370
43396         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
43398 2015-01-12  Jeff Law  <law@redhat.com>
43400         PR target/64461
43401         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
43402         (trunchiqi2, truncsihi2): Similarly.
43404         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
43405         rather than calling F.
43407 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
43409         * tsan.c (instrument_expr): Use force_gimple_operand.
43410         Use may_be_nonaddressable_p instead of is_gimple_addressable.
43412 2015-01-12  Richard Biener  <rguenther@suse.de>
43414         PR tree-optimization/64530
43415         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
43416         back dr1.
43418 2015-01-12  Richard Biener  <rguenther@suse.de>
43420         PR middle-end/64357
43421         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
43422         latches properly.
43424 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
43426         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
43427         Cortex-A17 tuning parameters.
43428         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
43430 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
43432         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
43433         * config/arm/arm.c (arm_macro_fusion_p): New function.
43434         (arm_macro_fusion_pair_p): Likewise.
43435         (TARGET_SCHED_MACRO_FUSION_P): Define.
43436         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
43437         (ARM_FUSE_NOTHING): Likewise.
43438         (ARM_FUSE_MOVW_MOVT): Likewise.
43439         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
43440         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
43441         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
43442         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
43443         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
43444         arm_cortex_a5_tune): Specify fuseable_ops value.
43446 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
43448         PR bootstrap/64561
43449         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
43450         test for PIE with copy reloc.
43451         * configure: Regenerated.
43453 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
43455         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
43456         in gen_rtx_REG.
43457         (arm_tls_descseq_addr): Likewise.
43458         (arm_gen_movmemqi): Likewise.
43459         (arm_expand_epilogue_apcs_frame): Likewise.
43460         (arm_expand_epilogue): Likewise.
43461         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
43462         in gen_rtx_REG.
43464 2015-01-12  Martin Liska  <mliska@suse.cz>
43466         PR ipa/64550
43467         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
43468         volatility for correct operands.
43470 2015-01-12  Martin Liska  <mliska@suse.cz>
43472         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
43473         indication that a function is not leaf.
43474         (sem_function::compare_polymorphic_p): Likewise.
43476 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
43478         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
43479         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
43480         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
43481         fold-const.h, tree-check.h.
43483 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
43485         PR ipa/63967
43486         PR ipa/64425
43487         * ipa-inline.c (compute_uninlined_call_time,
43488         compute_inlined_call_time): Use counts for extra precision when
43489         needed possible.
43490         (big_speedup_p): Fix formating.
43491         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
43492         (relative_time_benefit): Remove.
43493         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
43494         merge guessed and read profile paths.
43495         (inline_small_functions): Count only !optimize_size functions into
43496         initial size; be more lax about sanity check when profile is used;
43497         be sure to update inlined function profile when profile is read.
43499 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
43501         PR ipa/63470
43502         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
43503         cost when edge becomes direct.
43504         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
43505         is resolved or when introducing new speculation.
43507 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
43509         PR ipa/64551
43510         PR ipa/64552
43511         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
43512         '||' to fix typo issue.
43514         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
43515         accept and return NULL.
43517 2015-01-12  Martin Liska  <mliska@suse.cz>
43519         * cgraph.c (cgraph_edge::remove_callee): Move function to header
43520         file for being inlined.
43521         (cgraph_set_edge_callee): Delete.
43522         (cgraph_edge::redirect_callee): Move function to header file
43523         for being inlined.
43524         (cgraph_edge::make_direct): Use new function.
43525         (cgraph_edge::dump_edge_flags): New function created from
43526         static dump_edge_flags function.
43527         (cgraph_node::dump): Use new function.
43528         (cgraph_edge::verify_count_and_frequency): New function created
43529         from verify_edge_count_and_frequency.
43530         (cgraph_edge::verify_corresponds_to_fndecl): New function created
43531         from verify_edge_corresponds_to_fndecl.
43532         (verify_edge_corresponds_to_fndecl): Delete.
43533         (cgraph_node::verify_node): Use new function.
43534         * cgraph.h (cgraph_edge::set_callee): New function.
43535         (cgraph_edge::dump_edge_flags): Likewise.
43536         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
43538 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
43540         * ipa-utils.c (estimate_function_body_sizes): Do not
43541         free node params when called late with early=true.
43543 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
43545         * doc/md.texi (Instruction Patterns): Rewrite text for
43546         clarity.
43547         (Example): Likewise.
43549 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
43551         * doc/invoke.texi (Option Summary): Break long lines.
43552         [(-fdiagnostics-color)]: Put long literal in @smallexample
43553         instead of inline.
43554         [(-fsanitize-recover)]: Likewise.
43555         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
43556         [(-ffast-math)]: Likewise.
43557         [(--param max-inline-insns-recursive)]: Likewise.
43558         [(--param max-inline-recursive-depth)]: Likewise.
43559         [(-mno-text-section-literals)]: Likewise.
43561 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
43563         * doc/install.texi: Update for libgomp being renamed from "GNU
43564         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
43565         Runtime Library".
43566         * doc/sourcebuild.texi: Likewise.
43568 2015-01-10  Anthony Green  <green@moxielogic.com>
43570         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
43571         mul.x availability for moxiebox configuration.
43573 2015-01-09  Anthony Green  <green@moxielogic.com>
43575         * config/moxie/moxie.md: Tabify assembly output.
43577 2015-01-09  Anthony Green  <green@moxielogic.com>
43579         * config/moxie/moxie.md (CC_REG): Correct register definition.
43581 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
43583         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
43584         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
43585         of log files.
43587 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
43589         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
43591 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
43592             Jakub Jelinek  <jakub@redhat.com>
43594         PR middle-end/64412
43595         * lto-streamer.h (lto_stream_offload_p): New declaration.
43596         * lto-streamer.c (lto_stream_offload_p): New variable.
43597         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
43598         at the same time as section_name_prefix.
43599         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
43600         if lto_stream_offload_p.
43601         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
43602         stream TREE_TARGET_OPTION if lto_stream_offload_p.
43603         (write_ts_function_decl_tree_pointers): Don't
43604         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
43605         * tree-streamer-in.c (unpack_value_fields): Don't stream
43606         TREE_TARGET_OPTION in if ACCEL_COMPILER.
43607         (lto_input_ts_function_decl_tree_pointers): Don't stream
43608         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
43609         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
43610         instead of section_name_prefix string comparisons.
43612 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
43614         PR rtl-optimization/64536
43615         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
43616         tablejumps.
43618 2015-01-09  Michael Collison  <michael.collison@linaro.org>
43620         PR tree-optimization/64322
43621         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
43622         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
43624 2015-01-09  Tom de Vries  <tom@codesourcery.com>
43626         PR rtl-optimization/64539
43627         * regcprop.c (kill_clobbered_values): Factor out of ...
43628         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
43629         instead of note_stores with kill_clobbered_value.
43631 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
43633          * ginclude/unwind-arm-common.h: Revert previous commit.
43635 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
43637         * config.gcc (arm*-*-freebsd*): New configuration.
43638         * config/arm/freebsd.h: New file.
43639         * config.host: Add extra components for arm*-*-freebsd*.
43640         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
43641         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
43643 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
43645         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
43646         for -mcpu=e6500.
43647         * config/rs6000/t-rtems: Add e6500 multilibs.
43649 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
43651         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
43652         MPC8540.
43654 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
43656         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
43657         MULTILIB_EXCEPTIONS.
43659 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
43661         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
43662         MULTILIB_EXCEPTIONS.
43664 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
43666         * config/arm/t-rtems-eabi: Rename to...
43667         * config/arm/t-rtems: ...this.
43668         * config/arm/rtems-eabi.h: Rename to...
43669         * config/arm/rtems.h: ...this.
43670         * config.gcc (arm*-*-rtems*): Reflect changes above.
43672 2015-01-09  Richard Biener  <rguenther@suse.de>
43674         PR tree-optimization/64410
43675         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
43676         on the LHS.
43677         (execute_update_addresses_taken): Deal with that.
43678         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
43679         loads/stores for complex variables.
43681 2015-01-09  Martin Liska  <mliska@suse.cz>
43683         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
43684         name comparison.
43685         (func_checker::compare_memory_operand): New function.
43686         (func_checker::compare_operand): Split case to newly
43687         added functions.
43688         (func_checker::compare_cst_or_decl): New function.
43689         (func_checker::compare_gimple_call): Identify
43690         memory operands.
43691         (func_checker::compare_gimple_assign): Likewise.
43692         * ipa-icf-gimple.h: New function.
43694 2015-01-09  Martin Liska  <mliska@suse.cz>
43696         PR ipa/64503
43697         * sreal.c (sreal::dump): Change unsigned format to signed for
43698         m_exp value.
43699         (sreal::to_double): Replace exp2 with scalbln.
43701 2015-01-09  Martin Liska  <mliska@suse.cz>
43703         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
43704         * ipa-icf.c (sem_function::equals_private): Add support for target and
43705         (sem_item_optimizer::merge_classes): Remove redundant function
43706         optimization flags comparison.
43707         * tree.h (target_opts_for_fn): New function.
43709 2015-01-09  Tom de Vries  <tom@codesourcery.com>
43711         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
43713 2015-01-09  Kito Cheng  <kito@0xlab.org>
43715         PR rtl-optimization/64348
43716         * lra-constraints.c (split_reg): Fix caller-save store/restore
43717         instruction generation.
43719 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
43721         PR gcov-profile/61790
43722         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
43723         long long.  Fallback to int64_t if host doesn't have long long and
43724         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
43726 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
43728         PR tree-optimization/63989
43729         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
43730         from 1000 to 10000.
43731         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
43732         (get_stridx): If we don't have a record for certain SSA_NAME,
43733         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
43734         constant offset, call get_stridx_plus_constant.
43735         (get_stridx_plus_constant): New function.
43736         (zero_length_string): Don't use get_stridx here.
43738         PR target/55023
43739         PR middle-end/64388
43740         * dse.c (struct insn_info): Mention frame_read set also
43741         before reload for tail calls on some targets.
43742         (scan_insn): Revert 2014-12-22 change.  Set frame_read
43743         also before reload for tail calls if
43744         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
43745         instead of add_non_frame_wild_read for non-const/memset
43746         tail calls after reload.
43748 2015-01-08  Jason Merrill  <jason@redhat.com>
43750         * ubsan.c (do_ubsan_in_current_function): New.
43751         (pass_ubsan::gate): Use it.
43752         * ubsan.h: Declare it.
43753         * convert.c (convert_to_integer): Use it.
43755 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
43757         PR target/64338
43758         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
43759         compare_code when it is unconditionally overwritten afterwards.
43760         Use ix86_reverse_condition instead of reverse_condition.  Don't
43761         change code if *reverse_condition* returned UNKNOWN and don't
43762         swap ct/cf and negate diff in that case.
43764 2015-01-08  Mike Stump  <mikestump@comcast.net>
43766         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
43767         (pass_tsan_O0::gate): Likewise.
43768         * extend.texi (Function Attributes): Add no_sanitize_thread
43769         documentation.
43771 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
43773         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
43774         for registering builtins.
43775         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
43776         add -fopenmp to the argv_obstack used when invoking
43777         compile_for_target.
43779         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
43780         add "-m32" or "-m64" to argv_obstack.
43781         (generate_host_descr_file): Likewise, when invoking host_compiler.
43782         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
43783         ld.
43785 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
43787         * config/sh/sh-mem.cc: Use constant as second operand when emitting
43788         tstsi_t insns.
43790 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
43792         PR target/55212
43793         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
43794         constant load if constant operand fits into I08.
43796 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
43798         PR sanitizer/64336
43799         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
43800         and TREE_THIS_VOLATILE for MEM_REFs.
43801         (build5_stat): Fix up initialization of TREE_READONLY and
43802         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
43804 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
43806         PR target/64533
43807         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
43808         of r for the second alternative of the destination operand.
43810 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
43812         PR target/36557
43813         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
43815 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
43817         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
43818         keywords.
43819         ([-fivar-visibility], [-fvisibility]): Likewise.
43821 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
43823         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
43824         the file where @code, @command, etc is more appropriate.
43826 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
43828         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
43829         of -mrecip= documentation.
43831 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
43833         PR target/64505
43834         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
43835         correct reload handler if -m32 -mpowerpc64 is used.
43837 2015-01-06  Tom de Vries  <tom@codesourcery.com>
43839         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
43841 2015-01-08  Christian Bruel  <christian.bruel@st.com>
43843         PR target/64507
43844         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
43846 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
43848         PR tree-optimization/63259
43849         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
43850         if optab exists for 16bit byteswap.
43852 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
43854         * opts.c (common_handle_option): Add support for
43855         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
43856         * doc/invoke.texi: Document -fno-sanitize=all,
43857         -f{,no-}sanitize-recover=all.  Document that
43858         -fsanitize=float-cast-overflow is not enabled
43859         by -fsanitize=undefined.  Fix up documentation
43860         of -f{,no-}sanitize-recover.
43862 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
43864         * config.gcc: Add Visium support.
43865         * configure.ac: Likewise.
43866         * configure: Regenerate.
43867         * doc/extend.texi (interrupt attribute): Add Visium.
43868         * doc/invoke.texi: Document Visium options.
43869         * doc/install.texi: Document Visium target.
43870         * doc/md.texi: Document Visium constraints.
43871         * common/config/visium: New directory.
43872         * config/visium: Likewise.
43874 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
43876         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
43877         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
43879 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
43881         * combine.c (combine_validate_cost): Do not count the cost of a
43882         split I2 twice.  Do not display it twice in the dump, either.
43884 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
43886         Revert parts of r219199.
43887         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
43888         <inttypes.h>.
43889         ([-Wtraditional]): Restore markup on <limits.h>.
43891 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
43893         PR c++/31397
43894         * doc/invoke.texi: Document -Wsuggest-override.
43896 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
43898         PR rtl-optimization/64287
43899         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
43900         (process_options): Disable flag_ipa_ra if profiling.
43902 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
43904         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
43906 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
43908         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
43909         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
43910         put under #if TARGET_LOOPS guard.
43912 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
43914         * config/i386/i386.c (output_387_binary_op): Use std::swap.
43916 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
43918         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
43919         * rtl.h (refers_to_regno_p): Add overload.
43920         * cse.c: Use it.
43921         * bt-load.c: Likewise.
43922         * combine.c: Likewise.
43923         * df-scan.c: Likewise.
43924         * sched-deps.c: Likewise.
43925         * config/s390/s390.c: Likewise.
43926         * config/m32r/m32r.c: Likewise.
43927         * config/rs6000/spe.md: Likewise.
43928         * config/rs6000/rs6000.c: Likewise.
43929         * config/pa/pa.c: Likewise.
43930         * config/stormy16/stormy16.c: Likewise.
43931         * config/cris/cris.c: Likewise.
43932         * config/arc/arc.md: Likewise.
43933         * config/arc/arc.c: Likewise.
43934         * config/sh/sh.md: Likewise.
43935         * config/sh/sh.c: Likewise.
43936         * config/frv/frv.c: Likewise.
43938 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
43940         PR sanitizer/64265
43941         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
43942         call as cleanup of the whole body.
43943         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
43944         * tsan.c (replace_func_exit): New function.
43945         (instrument_func_exit): Moved earlier.
43946         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
43947         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
43948         been found.
43949         (tsan_pass): Don't call instrument_func_exit.
43950         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
43951         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
43952         inlining.
43954         PR sanitizer/64344
43955         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
43956         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
43957         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
43958         if the result is integer_zerop, return NULL_TREE.
43959         * convert.c (convert_to_integer): Pass expr as ARG.
43961         PR tree-optimization/64465
43962         * tree-inline.c (redirect_all_calls): During inlining
43963         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
43964         changed the stmt to a non-throwing call.
43966 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
43968         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
43969         etc markup throughout the file.
43971 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
43973         Enable experimental TSAN support for Ada.
43974         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
43976 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
43978         PR tree-optimization/64494
43979         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
43980         clear SSA_NAME_ANTI_RANGE_P flag.
43982 2015-01-05  Marek Polacek  <polacek@redhat.com>
43984         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
43986 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
43988         Update copyright years.
43990         * gcc.c (process_command): Update copyright notice dates.
43991         * gcov-dump.c: Ditto.
43992         * gcov.c: Ditto.
43993         * doc/cpp.texi: Bump @copying's copyright year.
43994         * doc/cppinternals.texi: Ditto.
43995         * doc/gcc.texi: Ditto.
43996         * doc/gccint.texi: Ditto.
43997         * doc/gcov.texi: Ditto.
43998         * doc/install.texi: Ditto.
43999         * doc/invoke.texi: Ditto.
44001         * auto-profile.c, auto-profile.h: Fix up Copyright line.
44003 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
44005         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
44006         verb tense, etc.
44007         ([-fvtable-verify], [-fvtv-debug]): Likewise.
44008         ([-Wabi]): Likewise.
44009         ([-fmessage-length]): Likewise.
44010         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
44011         ([-Wno-discarded-qualifiers]): Likewise.
44012         ([-Wnodiscarded-array-qualifiers]): Likewise.
44013         ([-Wno-virtual-move-assign]): Likewise.
44014         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
44015         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
44016         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
44017         ([-fsanitize-undefined-trap-on-error]): Likewise.
44018         ([-floop-interchange]): Likewise.
44019         ([-ftree-coalesce-inlined-vars]): Likewise.
44020         ([-fvect-cost-model]): Likewise.
44021         ([-flto]): Likewise.
44022         ([--param]): Likewise.
44023         (Spec Files): Likewise.
44024         ([-mstrict-align]): Likewise.
44025         ([-mfix-cortex-a53-835769]): Likewise.
44026         ([-march], [-mtune]): Likewise.
44027         ([-mpic-register]): Likewise.
44028         ([-munaligned-access]): Likewise.
44029         ([-msp8]): Likewise.
44030         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
44031         (AVR Built-in Macros): Likewise.
44032         ([-mpreferred-stack-boundary]): Likewise.
44033         ([-mtune-crtl]): Likewise.
44034         ([-mashf]): Likewise.
44035         ([-mmcu=]): Likewise.
44036         ([-minrt]): Likewise.
44037         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
44038         ([-mupper-regs]): Likewise.
44039         ([-matomic-model]): Likewise.
44040         ([-mdiv]): Likewise.
44041         ([-mzdcbranch]): Likewise.
44042         ([-mdisable-callt]): Likewise.
44043         ([-msoft-float]): Likewise.
44044         ([-m8byte-align]): Likewise.
44045         ([-fstack-reuse]): Likewise.
44047 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
44049         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
44050         Fix markup, light copy-editing.
44051         ([-fauto-profile]): Rewrite to fix formatting and content
44052         problems.
44054 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
44056         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
44057         Copy-edit description.
44058         ([-fisolate-erroneous-paths-attribute]): Likewise.
44059         * common.opt (fisolate-erroneous-paths-dereference):
44060         Copy-edit description.
44061         (fisolate-erroneous-paths-attribute): Likewise.
44063 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
44065         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
44066         tidy grammar.
44068 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
44070         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
44071         ([-fvtv-debug]): Likewise.
44072         ([-Wc++-compat]): Likewise.
44073         ([-Wc++11-compat]): Likewise.
44074         ([-Wc++14-compat]): Likewise.
44075         ([-Wno-sized-deallocation]): Likewise.
44076         ([-femit-class-debug-always]): Likewise.
44077         ([-femit-struct-debug-detailed]): Likewise.
44078         ([-fno-keep-inline-dllexport]): Likewise.
44079         ([-fira-algorithm]): Likewise.
44080         ([-fira-region]): Likewise.
44081         ([-flra-remat]): Likewise.
44082         ([-fipa-ra]): Likewise.
44083         ([-fhoist-adjacent-loads]): Likewise.
44084         ([-fisolate-erroneous-paths-dereference]): Likewise.
44085         ([-fisolate-erroneous-paths-attribute]): Likewise.
44086         ([-ftree-switch-conversion]): Likewise.
44087         ([-ftree-tail-merge]): Likewise.
44088         ([-ftree-loop-if-convert]): Likewise.
44089         ([-ftree-loop-if-convert-stores]): Likewise.
44090         ([-ftree-loop-distribution]): Likewise.
44091         ([-ftree-loop-distribute-patterns]): Likewise.
44092         ([-flto-compression-level]): Likewise.
44093         ([-flto-report]): Likewise.
44094         ([-flto-report-wpa]): Likewise.
44095         ([-fuse-linker-plugin]): Likewise.
44096         ([-mfix-cortex-a53-835769]): Likewise.
44097         ([-mno-fix-cortex-a53-835769]): Likewise.
44098         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
44099         explicit listing; add a note to the discussion indicating they
44100         exist.  Reorder table to group similar options.  Add missing
44101         @opindex entries.  Add @need commands throughout the table to
44102         allow it to be split across multiple pages.
44103         ([-m8bit-idiv]): Fix @opindex.
44104         ([-mavx256-split-unaligned-load]): Likewise.
44105         ([-mavx256-split-unaligned-store]): Likewise.
44106         ([-mstack-protector-guard]): Likewise.
44107         ([-mcpu=]): Likewise.
44108         ([-mcpu]): Likewise.
44109         ([-mpointer-size=]): Likewise.
44111 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
44113         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
44114         instead of `m' constraint.  Likewise for unnamed movb comparison
44115         patterns using reg_before_reload_operand predicate.
44116         * config/pa/predicates.md (reg_before_reload_operand): Tighten
44117         predicate to reject register index and LO_SUM DLT memory forms
44118         after reload.
44120 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
44122         * doc/invoke.texi (Option Summary): Fix spelling of
44123         -fdevirtualize-at-ltrans.
44124         ([-fdevirtualize]): Fix markup.
44125         ([-fdevirtualize-speculatively]): Fix typo.
44126         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
44127         implementor-speaky.
44128         * common.opt (fdevirtualize-at-ltrans): Likewise.
44129         * ipa-devirt.c: Fix typos in comments throughout the file.
44130         (ipa_devirt): Fix typos in format strings for dump output.
44132 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
44134         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
44135         discussion of defaults, light copy-editing.
44137 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
44139         * tsan.c (instrument_expr): corrected previous checkin.
44141 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
44143         Instrument bit field and unaligned accesses for TSAN.
44144         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
44145         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
44146         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
44147         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
44148         unaligned memory regions.
44150 2015-01-01  Anthony Green  <green@moxielogic.com>
44152         * config/moxie/predicates.md (moxie_general_movsrc_operand):
44153         Restrict move source register offsets to 16 bits.
44155 Copyright (C) 2015 Free Software Foundation, Inc.
44157 Copying and distribution of this file, with or without modification,
44158 are permitted in any medium without royalty provided the copyright
44159 notice and this notice are preserved.