]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
* config/avr/avr.h (MOVE_MAX): Set value to 1.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2015-12-17 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2
3 * config/avr/avr.h (MOVE_MAX): Set value to 1.
4 (MOVE_MAX_PIECES): Define.
5 (MOVE_RATIO): Define.
6 * config/avr/avr.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P):
7 Provide target hook.
8 (avr_use_by_pieces_infrastructure_p): New function.
9
10 2015-12-17 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11
12 * config.gcc: mark *-interix* as obsolete.
13
14 2015-12-17 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15
16 * config.gcc: Mark openbsd 2.0 and 3.X as obsolete.
17
18 2015-12-17 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19
20 * config.gcc: Mark knetbsd targets as obsolete.
21
22 2015-12-17 Nathan Sidwell <nathan@acm.org>
23
24 * config/nvptx/nvptx.h (NVPTX_RETURN_REGNUM, FRAME_POINTER_REGNUM,
25 ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Renumber.
26 (REGISTER_NAMES): Update and rename.
27 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
28 (enum_reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Reformat.
29
30 2015-12-17 Richard Biener <rguenther@suse.de>
31
32 PR tree-optimization/68946
33 * tree-vect-slp.c (vect_slp_analyze_node_operations): Push
34 SLP def type to stmt operands one stmt at a time.
35
36 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
37
38 * langhooks.h (struct lang_hooks_for_types): New get_bias_field.
39 * langhooks-def.h (LANG_HOOKS_GET_TYPE_BIAS): New.
40 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Initialize the
41 get_bias_field.
42 * dwarf2out.c
43 (base_type_die): In non-strict DWARF mode, invoke the
44 get_type_bias language hook for INTEGER_TYPE nodes. If it
45 returns a bias, emit an attribute for it.
46 (subrange_type_die): Change signature to handle bias. If
47 non-strict DWARF mode, emit an attribute for it, if one passed.
48 (modified_type_die): For subrange types, invoke the
49 get_type_bias langage hook and pass the bias to
50 subrange_type_die.
51
52 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
53
54 * dwarf2out.h (DWARF2OUT_ARRAY_DESCR_INFO_MAX_DIMEN): New macro.
55 (struct array_descr_info): Use it for the dimensions array's
56 size.
57 * dwarf2out.c (gen_type_die_with_usage): Check that the array
58 descr. language hook does not return an array with more
59 dimensions that it should.
60
61 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
62
63 * langhooks.h (struct lang_hooks_for_types): Add a
64 get_fixed_point_type_info field.
65 * langhooks-def.h (LANG_HOOKS_GET_FIXED_POINT_TYPE_INFO): New
66 macro.
67 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Initialize the
68 get_fixed_point_type_info field.
69 * dwarf2out.h (enum fixed_point_scale_factor): New.
70 (struct fixed_point_type_info): New.
71 * dwarf2out.c (base_type_die): In DWARFv3 or non-strict DWARF
72 mode, get fixed-point type information using the debugging hook
73 and describe it in DWARF, if any.
74
75 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
76
77 * langhooks.h (struct lang_hooks_for_types): Add a
78 get_debug_type field.
79 * langhooks-def.h (LANG_HOOKS_GET_DEBUG_TYPE): New macro.
80 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Initialize the
81 get_debug_type field.
82 * dwarf2out.h (struct array_descr_info): Add an array-wide
83 stride field.
84 * dwarf2out.c (modified_type_die): Invoke the get_debug_type
85 language hook, process its result instead, if any.
86 (gen_descr_array_type_die): Add array-wide stride processing.
87
88 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
89
90 * debug.h (struct gcc_debug_hooks): Add a new size_function
91 hook.
92 * debug.c (do_nothing_debug_hooks): Set the size_function field
93 to no-op.
94 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
95 * sdbout.c (sdb_debug_hooks): Likewise.
96 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
97 * stor-layout.c (finalize_size_functions): Let the debug info
98 back-end know about the implementation of size functions.
99 * dwarf2out.h (dw_discr_list_ref): New typedef.
100 (enum dw_val_class): Add value classes for discriminant values
101 and discriminant lists.
102 (struct dw_discr_value): New structure.
103 (struct dw_val_node): Add discriminant values and discriminant
104 lists to the union.
105 (struct dw_loc_descr_node): Add frame_offset_rel and
106 dw_loc_frame_offset (only for checking) fields to handle DWARF
107 procedures generation.
108 (struct dw_discr_list_node): New structure.
109 * dwarf2out.c (dwarf2out_size_function): New.
110 (dwarf2_debug_hooks): Set the size_function field to
111 dwarf2out_size_function.
112 (dwarf2_lineno_debug_hooks): Set the size_function field to
113 no-op.
114 (new_loc_descr): Initialize the
115 dw_loc_frame_offset field.
116 (dwarf_proc_stack_usage_map): New.
117 (dw_val_equal_p): Handle discriminants.
118 (size_of_discr_value): New.
119 (size_of_discr_list): New.
120 (size_of_die): Handle discriminants.
121 (add_loc_descr_to_each): New.
122 (add_loc_list): New.
123 (print_discr_value): New.
124 (print_dw_val): Handle discriminants.
125 (value_format): Handle discriminants.
126 (output_discr_value): New.
127 (output_die): Handle discriminants.
128 (output_loc_operands): Handle DW_OP_call2 and DW_OP_call4.
129 (uint_loc_descriptor): New.
130 (uint_comparison_loc_list): New.
131 (loc_list_from_uint_comparison): New.
132 (add_discr_value): New.
133 (add_discr_list): New.
134 (AT_discr_list): New.
135 (loc_descr_to_next_no_op): New.
136 (free_loc_descr): New.
137 (loc_descr_without_nops): New.
138 (struct loc_descr_context): Add a dpi field.
139 (struct dwarf_procedure_info): New helper structure.
140 (new_dwarf_proc_die): New.
141 (is_handled_procedure_type): New.
142 (resolve_args_picking_1): New.
143 (resolve_args_picking): New.
144 (function_to_dwarf_procedure): New.
145 (copy_dwarf_procedure): New.
146 (copy_dwarf_procs_ref_in_attrs): New.
147 (copy_dwarf_procs_ref_in_dies): New.
148 (break_out_comdat_types): Copy DWARF procedures along with the
149 types that reference them.
150 (loc_list_from_tree): Rename into loc_list_from_tree_1. Handle
151 CALL_EXPR in the cases suitable for DWARF procedures. Handle
152 for PARM_DECL when generating a location description for a DWARF
153 procedure. Handle big unsigned INTEGER_CST nodes. Handle
154 NON_LVALUE_EXPR, EXACT_DIV_EXPR and all unsigned comparison
155 operators. Add a wrapper for loc_list_from_tree that strips
156 DW_OP_nop operations from the result.
157 (type_byte_size): New.
158 (struct vlr_context): New helper structure.
159 (field_byte_offset): Change signature to return either a
160 constant offset or a location description for dynamic ones.
161 Handle dynamic byte offsets with constant bit offsets and handle
162 fields in variant parts.
163 (add_data_member_location): Change signature to handle dynamic
164 member offsets and fields in variant parts. Update call to
165 field_byte_offset. Handle location lists. Emit a variable data
166 member location only when -fgnat-encodings=minimal.
167 (add_bound_info): Emit self-referential bounds only when
168 -fgnat-encodings=minimal.
169 (add_byte_size_attribute): Use type_byte_size in order to handle
170 dynamic type sizes. Emit variable byte size only when
171 -fgnat-encodings=minimal and when the target DWARF version
172 allows them.
173 (add_bit_offset_attribute): Change signature to handle
174 variable-length records. Update call to field_byte_offset.
175 (gen_descr_array_type_die): Update call to gen_field_die.
176 Update loc_descr_context literal.
177 (gen_type_die_for_member): Likewise.
178 (gen_subprogram_die): Update calls to get_decl_die.
179 (gen_field_die): Change signature to handle variable-length
180 records. Update calls to add_bit_offset_attribute and
181 add_data_member_location_attribute.
182 (gen_inheritance_die): Update call to
183 add_data_member_location_attribute.
184 (gen_decl_die): Change signature to handle variable-length
185 records. Update call to gen_field_die.
186 (gen_inheritance_die): Change signature to handle
187 variable-length records. Update call to
188 add_data_member_location_attribute.
189 (is_variant_part): New.
190 (analyze_discr_in_predicate): New.
191 (get_discr_value): New.
192 (analyze_variants_discr): New.
193 (gen_variant_part): New.
194 (gen_member_die): Update calls to gen_decl_die. Call instead
195 gen_variant_part for variant parts.
196 (gen_type_die_with_usage): Update calls to gen_decl_die.
197 (process_scope_var): Likewise.
198 (force_decl_die): Likewise.
199 (declare_in_namespace): Likewise.
200 (dwarf2out_decl): Likewise.
201 (prune_unused_types_walk_loc_descr): New.
202 (prune_unused_types_walk_attribs): Mark DIEs referenced by
203 location descriptions and loc. descr. lists.
204 (prune_unused_types_walk): Don't mark DWARF procedures by
205 default. Mark variant parts since nothing is supposed to
206 reference them.
207 (dwarf2out_init): Allocate dwarf_proc_stack_usage_map.
208 (dwarf2out_c_finalize): Deallocate and reset
209 dwarf_proc_stack_usage_map.
210
211 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
212
213 * common.opt (gnat_encodings): New variable
214 (dwarf_gnat_encodings): New enum type.
215 (fgnat_encodings): New option.
216 * flag-types.h (enum dwarf_gnat_encodings): New.
217
218 2015-12-17 Christian Bruel <christian.bruel@st.com>
219
220 * tree.h (TYPE_MODE_RAW): New macro.
221 * tree-streamer-out.c (pack_ts_type_common_value_fields):
222 Replace TYPE_MODE by TYPE_MODE_RAW.
223
224 2015-12-17 Jakub Jelinek <jakub@redhat.com>
225
226 PR tree-optimization/68835
227 * tree.c (get_int_cst_ext_nunits): Return
228 cst.get_precision () / HOST_BITS_PER_WIDE_INT + 1
229 for all unsigned wi::neg_p (cst) constants.
230 (build_new_int_cst): If cst.get_precision is not a multiple
231 of HOST_BITS_PER_WIDE_INT, zero extend -1 to the precision
232 % HOST_BITS_PER_WIDE_INT.
233
234 2015-12-17 Richard Biener <rguenther@suse.de>
235
236 PR tree-optimization/68951
237 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
238 Ignore strided non-group accesses.
239
240 2015-12-17 Andrew Burgess <andrew.burgess@embecosm.com>
241
242 * config/arc/arc.c (arc_loop_hazard): Don't convert the jump label
243 rtx to an rtx_insn until we confirm it's not a return rtx.
244
245 2015-12-17 Richard Biener <rguenther@suse.de>
246
247 * gimple-ssa.h (struct gimple_df): Remove modified_noreturn_calls
248 field.
249 * tree-ssa.c (delete_tree_ssa): Do not zero it.
250
251 2015-12-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
252
253 PR target/67973
254 * configure.ac (gcc_cv_as_stabs_directive): New test.
255 * configure: Regenerate.
256 * config.in: Regenerate.
257 * config/darwin.h (DBX_DEBUGGING_INFO): Wrap in
258 HAVE_AS_STABS_DIRECTIVE.
259 (PREFERRED_DEBUGGING_TYPE): Likewise.
260 * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Only include
261 DBX_DEBUG if HAVE_AS_STABS_DIRECTIVE.
262
263 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
264 attributes): Document stabs.
265
266 2015-12-16 Martin Sebor <msebor@redhat.com>
267
268 PR c/68868
269 * ginclude/stdatomic.h (atomic_init): Use atomic_store instead
270 of plain assignment.
271
272 2015-12-15 Michael Meissner <meissner@linux.vnet.ibm.com>
273
274 PR target/68805
275 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use ROTATE
276 instead of VEC_SELECT for TImode.
277
278 * config/rs6000/vsx.md (VSX_LE): Move TImode from VSX_LE to
279 VSX_LE_128, so that we use ROTATE to swap the 64-bit words instead
280 of using VEC_SELECT.
281 (VSX_LE_128): Likewise.
282 (define_peephole2): Add peephole to eliminate double xxpermdi when
283 copying TImode.
284
285 2015-12-16 John David Anglin <danglin@gcc.gnu.org>
286
287 PR target/68779
288 * config/pa/pa.md (atomic_loaddi): Honor -mdisable-fpregs.
289 (atomic_loaddi_1): Likewise.
290 (atomic_storedi): Likewise.
291 (atomic_storedi_1): Likewise.
292 (atomic_loaddf): Likewise.
293 (atomic_loaddf_1): Likewise.
294 (atomic_storedf): Likewise.
295 (atomic_storedf_1): Likewise.
296 Move all atomic patterns to end of file.
297
298 2015-12-16 Abderrazek Zaafrani <a.zaafrani@samsung.com>
299
300 * graphite-isl-ast-to-gimple.c: Include isl/schedule_node.h.
301 (set_separate_option): New.
302 (translate_isl_ast_to_gimple::set_options_for_schedule_tree): New.
303 (translate_isl_ast_to_gimple::scop_to_isl_ast): Use scop->schedule.
304 * graphite-optimize-isl.c (optimize_isl): Set scop->schedule, do not
305 free the computed schedule tree.
306 * graphite-poly.c (new_scop): Initialize scop->schedule.
307 * graphite.h: Include isl/schedule.h.
308 (struct scop): Add field schedule.
309
310 2015-12-16 Nathan Sidwell <nathan@acm.org>
311
312 * ipa-visibility.c (can_replace_by_local_alias): Make static,
313 check ASM_OUTPUT_DEF.
314 (can_replace_by_local_alias_in_vtable): Make static.
315 (function_and_variable_visibility): Reformat overlong comment.
316
317 2015-12-16 Jeff Law <law@redhat.com>
318
319 * ree.c (add_removable_extension): Use reg_overlap_mentioned_p
320 rather than testing hard register #s.
321
322 2015-12-16 Nathan Sidwell <nathan@acm.org>
323
324 * config/nvptx/nvptx.h (OUTGOING_STATIC_CHAIN_REGNUM): Remove.
325 (REGISTER_NAMES): Adjust.
326 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Avoid long line.
327 (nvptx_static_hain): Delete.
328 (write_arg_mode): Don't emit initializer if argno < 0.
329 (write_arg_type): Fix whitespace.
330 (init_frame): Initialize reg to zero if frame is zero-sized.
331 (nvptx_declare_function_name): Use write_arg_type to emit chain
332 decl.
333 (nvptx_output_call_insn): Adjust static chain emission.
334 (nvptx_goacc_reduction): Make static.
335 (TARGET_STATIC_CHAIN): Don't override.
336
337 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
338
339 * graphite-dependences.c (scop_get_dependences): Use local pointers.
340 * graphite-isl-ast-to-gimple.c
341 (translate_isl_ast_to_gimple::scop_to_isl_ast): Use scop->dependence.
342 * graphite-optimize-isl.c (optimize_isl): Same.
343 * graphite-poly.c (new_scop): Remove initialization of removed
344 members.
345 (free_scop): Same.
346 * graphite.h (struct scop): Remove individial dependence pointers and
347 add a scop::dependence to contain all the dependence.
348
349 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
350
351 * graphite-sese-to-poly.c (build_poly_sr): Use refs.
352
353 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
354 Sebastian Pop <s.pop@samsung.com>
355
356 * config.in: Regenerate.
357 * configure: Regenerate.
358 * configure.ac: Remove checks for functions that exist in isl 0.13
359 or later.
360 * graphite-isl-ast-to-gimple.c: Remove #ifdefs and code for isl 0.12.
361 * graphite-optimize-isl.c: Same.
362 * graphite-poly.c: Same.
363 * graphite-sese-to-poly.c: Same.
364 * graphite.h: Add comment for isl 0.14.
365 * toplev.c (print_version): Print isl version.
366
367 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
368
369 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use can_refer; do not
370 speculate to impossible targets.
371 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
372
373 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
374 Sebastian Pop <s.pop@samsung.com>
375
376 * graphite-dependences.c (scop_get_reads): Add more dumps.
377 (scop_get_must_writes): Same.
378 (scop_get_may_writes): Same.
379 * graphite-poly.c (new_poly_dr): Same.
380 * graphite-scop-detection.c (build_cross_bb_scalars_def): Same.
381 (gather_bbs::before_dom_children): Same.
382
383 2015-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
384
385 * config/aarch64/aarch64.c (aarch64_extend_bitfield_pattern_p):
386 New function.
387 (aarch64_rtx_costs, ZERO_EXTEND, SIGN_EXTEND cases): Use the above
388 to handle extend+shift rtxes.
389
390 2015-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
391
392 PR target/68696
393 * config/aarch64/aarch64-simd.md (*aarch64_simd_bsl<mode>_alt):
394 New pattern.
395 (aarch64_simd_bsl<mode>_internal): Update comment to reflect
396 the above.
397
398 2015-12-16 Richard Biener <rguenther@suse.de>
399
400 PR tree-optimization/68870
401 * tree-cfgcleanup.c (cleanup_control_expr_graph): Add first_p
402 parameter, if set only perform trivial constant folding.
403 Queue other blocks with conditions for later processing.
404 (cleanup_control_flow_bb): Add first_p parameter and pass it through.
405 (cleanup_tree_cfg_1): Pass true for the first iteration
406 cleanup_control_expr_graph.
407
408 2015-12-16 Nathan Sidwell <nathan@acm.org>
409
410 * config/nvptx/nvptx-protos.h (nvptx_hard_regno_mode_ok): Delete.
411 * config/nvptx/nvptx.h (struct machine_function):
412 Reimplement. Adjust all users.
413 * config/nvptx/nvptx.c (nvptx_declare_function_name): Move stack
414 and frame array generation earlier.
415 (nvptx_call_args): Reimplement.
416 (nvptx_expand_call): Adjust.
417 (nvptx_hard_reno_mode_ok): Delete.
418 (nvptx_reorg): Revert scan of hard regs.
419
420 2015-12-16 Tom de Vries <tom@codesourcery.com>
421
422 * opts.c (default_options_optimization): Set fipa-pta on by
423 default for fopenacc.
424 * passes.def: Move kernels pass group to pass_ipa_oacc.
425 * tree-pass.h (make_pass_oacc_kernels2): Remove.
426 (make_pass_ipa_oacc, make_pass_ipa_oacc_kernels): Declare.
427 * tree-ssa-loop.c (pass_oacc_kernels2, make_pass_oacc_kernels2):
428 Remove.
429 (pass_ipa_oacc, pass_ipa_oacc_kernels): New pass.
430 (make_pass_ipa_oacc, make_pass_ipa_oacc_kernels): New function.
431 * tree-ssa-structalias.c (pass_ipa_pta::clone): New function.
432
433 2015-12-16 Richard Biener <rguenther@suse.de>
434
435 PR tree-optimization/68861
436 * tree-vect-slp.c (vect_build_slp_tree): Properly handle
437 duplicate stmts when applying swapping to stmts.
438
439 2015-12-16 Kirill Yukhin <kirill.yukhin@intel.com>
440
441 * config/i386/i386-c.c (ix86_target_macros_internal): Remove
442 duplicate check (__CLZERO__).
443
444 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
445
446 * config/arm/arm_neon.h (vqrdmlahq_lane_s16): New.
447 (vqrdmlahq_lane_s32): New.
448 (vqrdmlah_lane_s16): New.
449 (vqrdmlah_lane_s32): New.
450 (vqrdmlshq_lane_s16): New.
451 (vqrdmlshq_lane_s32): New.
452 (vqrdmlsh_lane_s16): New.
453 (vqrdmlsh_lane_s32): New.
454 * config/arm/arm_neon_builtins.def: Add "vqrdmlah_lane" and
455 "vqrdmlsh_lane".
456
457 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
458
459 * config/arm/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
460 (vqrdmlahq_s16, vqrdmlahq_s32): New.
461 (vqrdmlsh_s16, vqrdmlsh_s32): New.
462 (vqrdmlahq_s16, vqrdmlshq_s32): New.
463 * config/arm/arm_neon_builtins.def: Add "vqrdmlah" and "vqrdmlsh".
464
465 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
466
467 * doc/sourcebuild.texi (ARM-specific attributes): Add
468 "arm_v8_1a_neon_ok" and "arm_v8_1a_neon_hw".
469
470 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
471
472 * config/arm/arm-c.c (arm_cpu_builtins): Define
473 __ARM_FEATURE_QRDMX. Clean up some trailing whitespace.
474
475 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
476
477 * config/arm/iterators.md (VQRDMLH_AS): New.
478 (neon_rdma_as): New.
479 * config/arm/neon.md
480 (neon_vqrdml<VQRDMLH_AS:neon_rdma_as>h<mode>): New.
481 (neon_vqrdml<VQRDMLH_AS:neon_rdma_as>h_lane<mode>): New.
482 * config/arm/unspecs.md (UNSPEC_VQRDMLAH): New.
483 (UNSPEC_VQRDMLSH): New.
484
485 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
486
487 * config/arm/t-aprofile: Make "armv8.1-a" and "armv8.1-a+crc"
488 matches for "armv8-a".
489
490 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
491
492 * config/arm/arm-arches.def: Add "armv8.1-a" and "armv8.1-a+crc".
493 * config/arm/arm-protos.h (FL2_ARCH8_1): New.
494 (FL2_FOR_ARCH8_1A): New.
495 * config/arm/arm-tables.opt: Regenerate.
496 * config/arm/arm.c (arm_arch8_1): New.
497 (arm_option_override): Set arm_arch8_1.
498 * config/arm/arm.h (TARGET_NEON_RDMA): New.
499 (arm_arch8_1): Declare.
500 * doc/invoke.texi (ARM Options, -march): Add "armv8.1-a" and
501 "armv8.1-a+crc".
502 (ARM Options, -mfpu): Fix a typo.
503
504 2015-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
505
506 PR target/68648
507 * config/arm/arm.md (*andsi_iorsi3_notsi): Try to simplify
508 the complement of operands[3] during splitting.
509
510 2015-12-16 Richard Biener <rguenther@suse.de>
511
512 PR tree-optimization/68892
513 * tree-vect-slp.c (vect_analyze_slp_cost_1): Properly compute
514 cost for permuted loads.
515
516 2015-12-16 Jakub Jelinek <jakub@redhat.com>
517
518 PR rtl-optimization/65980
519 * jump.c (rtx_renumbered_equal_p) <case LABEL_REF>: Use
520 next_nonnote_nondebug_insn instead of next_real_insn and
521 skip over CODE_LABELs too.
522
523 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
524
525 * symtab.c (symtab_node::fixup_same_cpp_alias_visibility):
526 Do not copy DECL_VIRTUAL_P.
527
528 2015-12-15 Martin Sebor <msebor@redhat.com>
529
530 PR c++/42121
531 * tree-chkp.c (chkp_find_bound_slots_1): Handle flexible array
532 members.
533 * tree.c (type_contains_placeholder_1): Avoid assuming type has
534 a non-null domain or an upper bound to handle flexible array
535 members.
536 * varasm.c (output_constructor_regular_field): Same.
537 (output_constructor): Set min_index to integer_zero_node rather
538 than null when a type has no domain to avoid crashing later.
539
540 2015-12-15 Nathan Sidwell <nathan@acm.org>
541
542 * config/nvptx/nvptx.c (write_one_arg): Rename to ...
543 (write_arg_mode): ... here. Update callers.
544 (write_arg): Rename to ...
545 (write__arg_type): ... here. Update callers.
546 (write_return_mode): New fn, broken out of ...
547 (write_return): ... here. Rename to ...
548 (write_return_type): ... here. Call it. Update callers.
549 (write_fn_proto_from_insn): Use write_arg_mode and
550 write_return_mode.
551 (init_frame): New fn.
552 (nvptx_declare_function_name): Call it for frame and varargs. Only
553 emit outgoing static chain, if it's live.
554 (nvptx_output_return): Use reg_names for return reg name.
555 (nvptx_output_call_insn): Likewise.
556 (nvptx_reorg): Mark unused hard regs too.
557
558 2015-12-15 Nathan Sidwell <nathan@acm.org>
559
560 * config/nvptx/nvptx.md (nvptx_register_operand): Don't accept and
561 then reject subregs.
562 (nvptx_reg_or_mem_operand): Likewise.
563 (nvptx_nonmemory_operand): Likewise.
564 (call_insn_operand): A regular predicate, check SYMBOL_REF_FUNCTION_P.
565 (call_insn, call_value_insn): Address is not SImode.
566 * config/nvptx/nvptx.h (FIXED_REGISTERS): Make return reg fixed.
567 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove
568 RETURN_REG class.
569 (REGNO_REG_CLASS): Alwaus ALL_REGS.
570 (PROMOTE_MODE): QI and HI are the only smaller than SI int modes.
571 (HARD_FRAME_POINTER_REGNUM): Delete.
572 (REGISTER_NAMES): Move earlier.
573 (struct nvptx_args): Remove 'off'.
574 (INIT_CUMULATIVE_ARGS): Don't initialize 'off'.
575 (ELIMINABLE_REGS): Remove HARD_FRAME_POINTER_REGNUM.
576 * config/nvptx/nvptx.c (arg_promotion): Delete.
577 (nvptx_expand_call): Remove check for funtype being an fntype.
578
579 2015-12-15 Jason Merrill <jason@redhat.com>
580
581 * hash-map.h, hash-table.h: Make copy constructors explicit.
582
583 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
584
585 * cgraphunit.c (output_in_order): Do not assemble "omp declare target
586 link" variables in ACCEL_COMPILER.
587 * gimplify.c (gimplify_adjust_omp_clauses): Do not remove mapping of
588 "omp declare target link" variables.
589 * omp-low.c (scan_sharing_clauses): Do not remove mapping of "omp
590 declare target link" variables.
591 (add_decls_addresses_to_decl_constructor): For "omp declare target
592 link" variables output address of the artificial pointer instead
593 of address of the variable. Set most significant bit of the size
594 to mark them.
595 (pass_data_omp_target_link): New pass_data.
596 (pass_omp_target_link): New class.
597 (find_link_var_op): New static function.
598 (make_pass_omp_target_link): New function.
599 * passes.def: Add pass_omp_target_link.
600 * tree-pass.h (make_pass_omp_target_link): Declare.
601 * varpool.c (symbol_table::output_variables): Do not assemble "omp
602 declare target link" variables in ACCEL_COMPILER.
603
604 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
605
606 PR middle-end/21273
607 * gensupport.c (collect_insn_data): Look for number of alternatives
608 in MATCH_SCRATCH.
609
610 2015-12-15 Nathan Sidwell <nathan@acm.org>
611
612 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Reformat.
613 (CANNOT_CHANGE_MODE_CLASS): Always return true.
614 (HARD_REGNO_MODE_OK): Reformat.
615 * config/nvptx/nvptx.md (define_expand mov<mode>): No
616 RETURN_REGNUM handling here.
617 * config/nvptx/nvptx.c (nvptx_function_value): Set ret_reg_mode
618 here.
619 (write_one_arg): No QI or HI mode args.
620 (write_fn_proto_from_insn): No argument promotion here.
621 (nvptx_output_return_insn): No return promotion here.
622 (nvptx_output_mov_insn): No RETURN_REGNUM handling needed.
623 (nvptx_output_call_insn): No return promotion here.
624
625 2015-12-15 Martin Jambor <mjambor@suse.cz>
626
627 PR ipa/68851
628 * cgraph.c (collect_callers_of_node_1): Do not collect thunks.
629 * cgraph.h (cgraph_node): Change comment of collect_callers.
630
631 2015-12-15 Jakub Jelinek <jakub@redhat.com>
632
633 PR tree-optimization/66688
634 * tree-cfgcleanup.c (cleanup_control_flow_bb): Handle
635 noreturn call followed only by debug stmts by removing
636 the debug stmts and handling it the same as if the noreturn
637 call is the last stmt.
638
639 2015-12-14 Steve Ellcey <sellcey@imgtec.com>
640
641 * config/mips/mips.c (mips_promote_function_mode): New function.
642 (TARGET_PROMOTE_FUNCTION_MODE): Define as above function.
643 (TARGET_PROMOTE_PROTOTYPES): Remove.
644
645 2015-12-14 Jason Merrill <jason@redhat.com>
646
647 PR c++/68309
648 * hash-table.h: Add copy constructor.
649 * hash-map.h: Add copy constructor.
650
651 2015-12-14 Tom de Vries <tom@codesourcery.com>
652
653 PR other/68882
654 * gimple-pretty-print.c (dump_ssaname_info_to_file): New function.
655 * gimple-pretty-print.h (dump_ssaname_info_to_file): Declare.
656 * tree-cfg.c (dump_default_def): New function.
657 (dump_function_to_file): Dump default defs for arguments, static chain,
658 and decl-by-reference.
659
660 2015-12-14 Nathan Sidwell <nathan@acm.org>
661
662 * config/nvptx/nvptx.h (PARM_BOUNDARY): Set to 32.
663 * config/nvptx/nvptx.c (PASS_IN_REG_P, RETURN_IN_REG_P): Delete.
664 (pass_in_memory, promote_arg, promote_return): New.
665 (nvptx_function_arg_boundary): Delete.
666 (nvptx_function_value): Use promote_return.
667 (nvptx_pass_by_reference): Use pass_in_memory.
668 (nvptx_return_in_memory): Use pass_in_memory.
669 (nvptx_promote_function_mode): Use promote_arg.
670 (write_arg): Adjust arg splitting logic.
671 (write_return): Check and clear ret_reg_mode, if needed.
672 (write_fn_proto, nvptx_declare_function_name): Adust write_return
673 calls.
674 (TARGET_RUNCTION_ARG_BOUNDARY,
675 TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Don't override.
676
677 2015-12-14 Jakub Jelinek <jakub@redhat.com>
678
679 PR c/68833
680 * common.opt (Wmissing-noreturn): Add Warning option.
681 * opts-common.c (control_warning_option): If opt is
682 alias_target with alias_arg, set arg to it.
683
684 2015-12-14 Segher Boessenkool <segher@kernel.crashing.org>
685
686 PR target/68865
687 PR target/68879
688 * config/rs6000/rs6000.md (cstore_si_as_di): Force all operands
689 into registers.
690
691 2015-12-14 Richard Biener <rguenther@suse.de>
692
693 Revert accidentially applied
694 PR tree-optimization/68707
695 PR tree-optimization/67323
696 * tree-vect-slp.c (vect_analyze_slp_instance): Drop SLP instances
697 if they can be vectorized using load/store-lane instructions.
698
699 2015-12-14 Richard Biener <rguenther@suse.de>
700
701 PR tree-optimization/68852
702 * tree-vectorizer.h (struct _slp_tree): Add def_type member.
703 (SLP_TREE_DEF_TYPE): New accessor.
704 * tree-vect-stmts.c (vect_is_simple_use): Remove BB vectorization
705 hack.
706 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
707 SLP_TREE_DEF_TYPE.
708 (vect_build_slp_tree): When a node is to be built up from scalars
709 do not push a NULL as child but instead set its def_type to
710 vect_external_def.
711 (vect_analyze_slp_cost_1): Check for child def-type instead
712 of NULL.
713 (vect_detect_hybrid_slp_stmts): Likewise.
714 (vect_bb_slp_scalar_cost): Likewise.
715 (vect_get_slp_defs): Likewise.
716 (vect_slp_analyze_node_operations): Likewise. Before
717 processing node push the children def-types to the underlying
718 stmts vinfo and restore it afterwards.
719 (vect_schedule_slp_instance): Likewise.
720 (vect_slp_analyze_bb_1): Do not mark stmts not in SLP instances
721 as not vectorizable.
722
723 2015-12-14 Richard Biener <rguenther@suse.de>
724
725 PR tree-optimization/68775
726 * tree-vect-slp.c (vect_build_slp_tree): Make sure to apply
727 a operand swapping even if replacing the op with scalars.
728
729 2015-12-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
730
731 * combine.c (change_zero_ext): Do not create a shift of zero length.
732
733 2015-12-14 Claudiu Zissulescu <claziss@synopsys.com>
734
735 * config/arc/arc.c (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P):
736 Provide target hook.
737 (arc_no_speculation_in_delay_slots_p): New function.
738
739 2015-12-14 Claudiu Zissulescu <claziss@synopsys.com>
740 Andrew Burgess <andrew.burgess@embecosm.com>
741
742 * config/arc/arc.c (frame_move): Set frame related flag.
743 (arc_save_restore): Emit epilogue related DWARF2 information.
744 (arc_expand_epilogue): Likewise.
745 * config/arc/arc.opt (mno-epilogue-cfi): Remove.
746 (mepilogue-cfi): Likewise.
747 * doc/invoke.texi: Remove -m[no]-epilogue-cfi documentation.
748
749 2015-12-14 Martin Jambor <mjambor@suse.cz>
750
751 PR ipa/66616
752 * ipa-cp.c (propagate_constants_accross_call): Move thuk check...
753 (call_passes_through_thunk_p): ...here.
754 (find_more_scalar_values_for_callers_subset): Perform thunk checks
755 like propagate_constants_accross_call does.
756
757 2015-12-14 Jakub Jelinek <jakub@redhat.com>
758
759 PR rtl-optimization/68730
760 * cfgrtl.c (cfg_layout_finalize): Free dominators.
761
762 2015-12-13 Alexandre Oliva <aoliva@redhat.com>
763
764 PR debug/67355
765 * var-tracking.c (reverse_op): Don't add dummy zero to reverse
766 ops that simplify back to the original value.
767 * alias.c (refs_newer_value_p): Cut off recursion for
768 expressions containing the original value.
769
770 2015-12-13 Kazu Kirata <kazu@gcc.gnu.org>
771
772 * config/m68k/m68k.md (load feeding clear byte): New peephole2.
773
774 2015-12-13 Tom de Vries <tom@codesourcery.com>
775
776 * tree-ssa-structalias.c (find_func_clobbers): Handle sizes and kinds
777 parameters of GOACC_paralllel.
778
779 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
780
781 * cgraph.c (cgraph_node::get_untransformed_body): Pass compressed
782 flag to lto_get_section_data.
783 * varpool.c (varpool_node::get_constructor): Likewise.
784 * lto-section-in.c (lto_get_section_data): Add new flag decompress.
785 (lto_free_section_data): Likewise.
786 (lto_get_raw_section_data): New function.
787 (lto_free_raw_section_data): New function.
788 (copy_function_or_variable): Copy sections w/o decompressing.
789 (lto_output_decl_state_refs): Picke compressed bit.
790 * lto-streamer.h (lto_in_decl_state): New flag compressed.
791 (lto_out_decl_state): Likewise.
792 (lto_get_section_data, lto_free_section_data): Update prototypes
793 (lto_get_raw_section_data, lto_free_raw_section_data): Declare.
794 (lto_write_raw_data): Declare.
795 (lto_begin_section): Remove FIXME.
796 (lto_write_raw_data): New function.
797 (lto_write_stream): Remove FIXME.
798 (lto_new_out_decl_state): Set compressed flag.
799
800 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
801
802 * tree.c (free_lang_data_in_type, find_decls_types_r): Also free
803 unnecesary type decls.
804 * tree.h (is_redundant_typedef): Declare.
805 * dwarf2out.c (is_redundant_typedef): Export; booleanize
806
807 2015-12-12 Eric Botcazou <ebotcazou@adacore.com>
808
809 * config/sparc/sparc.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
810 * config/sparc/sparc.c (sparc_emit_set_const64): Remove code
811 conditionalized on HOST_BITS_PER_WIDE_INT == 32.
812 (sparc_cannot_force_const_mem) <CONST_WIDE_INT>: New case.
813 <CONST_DOUBLE>: Remove VOIDmode test.
814 (epilogue_renumber) <CONST_WIDE_INT>: New case.
815 (sparc_print_operand): Remove support for CONST_DOUBLE with VOIDmode.
816 (sparc_assemble_integer): Likewise.
817 (set_extends): Likewise.
818 (sparc_rtx_costs) <CONST_INT>: Use SMALL_INT.
819 <CONST_WIDE_INT>: New case.
820 <CONST_DOUBLE>: Remove support for VOIDmode.
821 <MULT>: Remove support for CONST_DOUBLE with VOIDmode.
822 * config/sparc/predicates.md (const_zero_operand): Add const_wide_int.
823 (const_all_ones_operand): Likewise.
824 (uns_small_int_operand): Remove const_double and code conditionalized
825 on HOST_BITS_PER_WIDE_INT == 32.
826 (arith_double_operand): Likewise.
827 (arith_double_add_operand): Likewise.
828 (input_operand): Remove support for CONST_DOUBLE with DImode.
829 * config/sparc/sparc.md (DImode CONST_INT splitter): Remove code
830 conditionalized on HOST_BITS_PER_WIDE_INT == 32.
831 (DFmode CONST_DOUBLE splitter): Likewise.
832 (*adddi3_insn_sp32): Likewise.
833 (*subdi3_insn_sp32): Likewise.
834 (DImode logical splitter): Likewise.
835 (DImode CONST_DOUBLE splitter): Delete.
836
837 2015-12-12 Paolo Bonzini <bonzini@gnu.org>
838
839 PR sanitizer/68418
840 * c-family/c-ubsan.c (ubsan_instrument_shift): Disable
841 sanitization of left shifts for wrapping signed types as well.
842
843 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
844
845 PR middle-end/68215
846 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
847 Do not gimplify the result.
848 (do_unop): Adjust call to tree_vec_extract.
849 (do_binop): Likewise.
850 (do_compare): Likewise.
851 (do_plus_minus): Likewise.
852 (do_negate): Likewise.
853 (expand_vector_condition): Likewise.
854 (do_cond): Likewise.
855
856 2015-12-11 Nathan Sidwell <nathan@acm.org>
857
858 * config/nvptx/nvptx.h (RETURN_ADDR_REGNO): Delete.
859 (OUTGOING_ARG_POINTER_REGNUM): Delete.
860 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
861 (REGISTER_NAMES): Name static chain regs.
862 * config/nvptx/nvptx.c (nvptx_function_arg): Add ARG_UNUSED, merge
863 ifs.
864 (nvptx_incoming_arg): Merge ifs.
865 (nvptx_function_arg_boundary): Reimplement to avoid mixing units.
866 (nvptx_function_value): Tail call nvptx_libcall_value.
867 (nvptx_pass_by_reference): Add ARG_UNUSED.
868 (nvptx_static_chain): Use conditional op.
869 (nvptx_handle_kernel_attribute): Use VOID_TYPE_P.
870
871 2015-12-11 Jan-Benedict Glaw <jbglaw@lug-owl.de>
872 Dominique d'Humieres <dominiq@lps.ens.fr>
873
874 PR target/26427
875 PR target/33120
876 PR testsuite/35710
877 * config/darwin.c (darwin_use_anchors_for_symbol_p): Fix indention and
878 trailing whitespace.
879
880 2015-12-11 Jan Beulich <jbeulich@suse.com>
881
882 * cfgexpand.c (expand_one_var): Exit early for static and
883 external variables when adjusting stack alignment related.
884
885 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
886
887 * config/s390/s390.c (s390_rtx_costs)
888 (s390_cannot_force_const_mem, legitimate_pic_operand_p)
889 (s390_preferred_reload_class, s390_reload_symref_address)
890 (legitimate_reload_constant_p, print_operand): Wide int support.
891 * config/s390/predicates.md ("const0_operand", "constm1_operand")
892 ("consttable_operand"): Likewise.
893 ("larl_operand"): Add a comment.
894 * config/s390/s390.h (TARGET_SUPPORTS_WIDE_INT): Enable wide int
895 support.
896
897 2015-12-11 Nathan Sidwell <nathan@acm.org>
898
899 * config/nvptx/nvptx.h (TARGET_SUPPORTS_WIDE_INT): Define.
900 * config/nvptx/nvptx.c (nvptxx_assemble_integer): Return false for
901 unrecognizable RTX.
902
903 2015-12-11 Tom de Vries <tom@codesourcery.com>
904
905 * passes.def: Remove unpaired TERMINATE_PASS_LIST.
906
907 2015-12-11 Michael Matz <matz@suse.de>
908
909 * hash-map.h (hash_map::hash_map): Gather statistics only
910 when GATHER_STATISTICS is true.
911 * hash-set.h (hash_set::hash_set): Ditto.
912 * hash-table.h (hash_table::hash_table): Ditto.
913 (hash_table::create_ggc): Ditto.
914
915 2015-12-11 Martin Jambor <mjambor@suse.cz>
916
917 PR ipa/68064
918 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Add checking
919 assert that align is nonzero.
920
921 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
922
923 * config/s390/s390.c (s390_expand_setmem): Use new expanders.
924 * config/s390/s390.md ("*setmem_long")
925 ("*setmem_long_and", "*setmem_long_31z"): Fix warnings.
926 ("*setmem_long_and_31z"): New define_insn.
927 ("setmem_long_<P:mode>"): New expanders.
928 * (<modesize>): New mode attribute
929
930 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
931
932 * config/s390/s390.md ("movstr", "*movstr"): Fix warning.
933 ("movstr<P:mode>"): New indirect expanders used by "movstr".
934
935 2015-12-11 Martin Liska <mliska@suse.cz>
936 Uros Bizjak <ubizjak@gmail.com>
937
938 PR target/67484
939 * config/i386/i386.c (ix86_valid_target_attribute_tree):
940 Use ggc_strdup to copy option_strings to opts->x_ix86_arch_string and
941 opts->x_ix86_tune_string.
942
943 2015-12-11 Richard Biener <rguenther@suse.de>
944
945 * lto-streamer.h (lto_simple_header_with_strings): Remove
946 main_size field already in lto_simple_header.
947
948 2015-12-11 Ilya Enkovich <enkovich.gnu@gmail.com>
949
950 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
951 mask vectype.
952
953 2015-12-11 Ilya Enkovich <enkovich.gnu@gmail.com>
954
955 * config/i386/i386.c (ix86_get_mask_mode): Use scalar
956 modes for 32 and 16 byte boolean vectors when possible.
957
958 2015-12-11 Segher Boessenkool <segher@kernel.crashing.org>
959
960 PR rtl-optimization/67778
961 PR rtl-optimization/68634
962 * shrink-wrap.c (try_shrink_wrapping): Add a comment about why we want
963 to put the prologue earlier. When determining if an earlier block is
964 suitable, make sure it dominates every block reachable from it.
965
966 2015-12-11 Segher Boessenkool <segher@kernel.crashing.org>
967
968 PR rtl-optimization/68814
969 * rtlanal.c (set_noop_p): Use BITS_BIG_ENDIAN instead of
970 BYTES_BIG_ENDIAN.
971
972 2015-12-10 Nathan Sidwell <nathan@acm.org>
973
974 * config/nvptx/nvptx.c (nvptx_function_arg,
975 nvptx_function_incoming_arg, nvptx_function_arg_advance,
976 nvptx_strict_argument_naming, nvptx_function_arg_boundary,
977 nvptx_libcall_value, nvptx_function_value,
978 nvptx_function_value_regno_p, nvptx_pass_by_reference,
979 nvptx_return_in_memory, nvptx_promote_function_mode,
980 nvptx_static_chain): Move earlier.
981 (write_one_arg): Break out as helper fn for ...
982 (write_arg): ... this new function. Adjust all callers.
983
984 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
985
986 * lto-streamer-out.c (wrap_refs): Only wrap public decls.
987
988 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
989
990 * ipa-cp.c (ipcp_cloning_candidate_p): Use node->optimize_for_size_p.
991 (good_cloning_opportunity_p): Likewise.
992 (gather_context_independent_values): Do not return true when
993 polymorphic call context is known or when we have known aggregate
994 value of unused parameter.
995 (estimate_local_effects): Try to create clone for all context
996 when either some params are substituted or devirtualization is possible
997 or some params can be removed; use local flag instead of
998 node->will_be_removed_from_program_if_no_direct_calls_p.
999 (identify_dead_nodes): Likewise.
1000
1001 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1002
1003 * doc/invoke.texi (-Wall): Add -Wmisleading-indentation to the
1004 list.
1005 (-Wmisleading-indentation): Update documentation to reflect
1006 being enabled by -Wall in C/C++.
1007
1008 2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
1009
1010 PR rtl-optimization/68691
1011 * lra-spills.c (lra_final_code_change): Check pseudo occurrence
1012 number in non-debug insns and remove debug insns if necessary.
1013
1014 2015-12-10 Martin Sebor <msebor@redhat.com>
1015
1016 * invoke.texi (Warning Options): Update -Wall options. Clarify
1017 when some -Wextra options are enabled. Add -Wplacement-new example.
1018
1019 2015-12-10 Uros Bizjak <ubizjak@gmail.com>
1020
1021 * graphite-scop-detection.c (gather_bbs::before_dom_children):
1022 Change return type to an edge. Always return NULL.
1023
1024 2015-12-10 Jeff Law <law@redhat.com>
1025
1026 PR tree-optimization/68619
1027 * tree-ssa-dom.c (dom_opt_dom_walker::before_dom_children): Propgate
1028 return value from optimize_stmt.
1029 (dom_opt_dom_walker): Add new argument to dom_walker constructor.
1030 (pass_dominator:execute): If a block has an unreachable edge,
1031 remove all jump threads through any successor of the affected block.
1032 (record_equivalences_from_phis): Ignore alternative if the edge
1033 does not have EDGE_EXECUTABLE set.
1034 (single_incoming_edge_ignoring_loop_edges): Similarly.
1035 (optimize_stmt): If a gimple_code has a compile-time constant
1036 condition, return the edge taken for that constant value. Also
1037 change the condition to true/false as necessary.
1038 * domwalk.h (dom_walker::dom_walker): Add new argument
1039 skip_unreachable_blocks. Don't provide empty constructor body.
1040 (dom_walker::before_dom_children): Change return type.
1041 (dom_walker::bb_reachable): Declare new private method.
1042 (dom_walker::propagate_unreachable_to_edges): Likewise.
1043 (dom_walker::m_unreachable_dom): Declare new private data member.
1044 (dom_walker::m_skip_unreachable_blocks): Likewise.
1045 * domwalk.c: Include dumpfile.h.
1046 (dom_walker::dom_walker): New constructor. Initialize private data
1047 members. If needed, set EDGE_EXECUTABLE for all edges in the CFG,
1048 extracted from tree-ssa-sccvn.c.
1049 (dom_walker::bb_reachable): New method extracted from tree-ssa-sccvn.c
1050 (dom_walker::propagate_unreachable_to_edges): Likewise.
1051 (dom_walker::walk): Only call before_dom_children on reachable
1052 blocks. If before_dom_children returns an edge, then clear
1053 EDGE_EXECUTABLE for all other outgoing edges from the same block.
1054 For unreachable blocks, call propagate_unreachable_to_edges.
1055 Similarly, only call after_dom_children on reachable blocks. For
1056 unreachable blocks, conditionally clear m_unreachable_dom.
1057 * tree-ssa-sccvn.c (sccvn_dom_walker::unreachable_dom): Remove
1058 private data member.
1059 (sccvn_dom_walker::after_dom_children): Use methods from dom_walker
1060 class.
1061 (run_scc_vn): Likewise.
1062 (sccvn_dom_walker::before_dom_children): Likewise. Return the taken
1063 outgoing edge if a COND, SWITCH, or GOTO are optimized.
1064 * compare-elim.c (find_comparison_dom_walker::before_dom_children):
1065 Change return type to an edge. Always return NULL.
1066 * fwprop.c (single_def_use_dom_walker::before_dom_children): Likewise.
1067 * gimple-ssa-strength-reduction.c
1068 (find_candidates_dom_walker::before_dom_children): Likewise.
1069 * ipa-prop.c (analysis_dom_walker::before_dom_children): Likewise.
1070 (ipcp_modif_dom_walker::before_dom_children): Likewise.
1071 * tree-into-ssa.c (rewrite_dom_walker::before_dom_children): Likewise.
1072 (rewrite_update_dom_walker::before_dom_children): Likewise.
1073 (mark_def_dom_children::before_dom_children): Likewise.
1074 * tree-ssa-dse.c (dse_dom_walker::before_dom_children): Likewise.
1075 * tree-ssa-loop-im.c
1076 (invariantness_dom_walker::before_dom_children): Likewise.
1077 (move_computations_dom_walker::before_dom_walker): Likewise.
1078 * tree-ssa-phiopt.c
1079 (nontrapping_dom_walker::before_dom_children): Likewise.
1080 * tree-ssa-pre.c
1081 (eliminate_dom_walker::before_dom_children): Likewise.
1082 * tree-ssa-propagate.c
1083 (substitute_and_fold_dom_walker::before_dom_children): Likewise.
1084 * tree-ssa-strlen.c
1085 (strlen_dom_walker::before_dom_children): Likewise.
1086 * tree-ssa-uncprop.c
1087 (uncprop_dom_walker::before_dom_children): Likewise.
1088
1089 2015-12-10 Jakub Jelinek <jakub@redhat.com>
1090
1091 PR rtl-optimization/68376
1092 PR rtl-optimization/68670
1093 * ifcvt.c (noce_try_abs): For one_cmpl allow < 0, >= 0
1094 or > -1 conditions regardless of negate, and disallow
1095 all other conditions.
1096
1097 2015-12-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1098
1099 * tree-chkp.c (chkp_call_returns_bounds_p): Return true
1100 for VA_ARG call.
1101 (chkp_fixup_inlined_call): New.
1102 * tree-chkp.h (chkp_fixup_inlined_call): New.
1103 * tree-stdarg.c: Include tree-chkp.h.
1104 (expand_ifn_va_arg_1): Fixup bndret calls for removed
1105 VA_ARG calls.
1106
1107 2015-12-10 Martin Jambor <mjambor@suse.cz>
1108
1109 * tree-inline.c (duplicate_remap_omp_clause_seq): New function.
1110 (replace_locals_op): Duplicate gimple sequences in OMP clauses.
1111
1112 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1113
1114 * graphite-optimize-isl.c (scop_get_domains): Fix indentation.
1115
1116 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1117
1118 * ifcvt.c (noce_try_inverse_constants): Fix indentation.
1119
1120 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1121
1122 * regrename.c (scan_rtx_address): Fix indentation.
1123
1124 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1125
1126 * function.c (locate_and_pad_parm): Fix indentation.
1127
1128 2015-12-10 Richard Biener <rguenther@suse.de>
1129
1130 * tree-ssa-structalias.c (struct variable_info): Add
1131 is_ipa_escape_point flag.
1132 (new_var_info): Initialize to false.
1133 (find_func_aliases): Generate escape constraints for stores
1134 properly in IPA mode.
1135 (ipa_pta_execute): Compute is_ipa_escape_point for globals.
1136
1137 2015-12-10 Claudiu Zissulescu <claziss@synopsys.com>
1138
1139 * config/arc/atomic.md: Add new file.
1140
1141 2015-12-10 Claudiu Zissulescu <claziss@synopsys.com>
1142
1143 * config/arc/arc-protos.h (arc_expand_atomic_op): Prototype.
1144 (arc_split_compare_and_swap): Likewise.
1145 (arc_expand_compare_and_swap): Likewise.
1146 * config/arc/arc.c (arc_init): Check usage atomic option.
1147 (arc_pre_atomic_barrier): New function.
1148 (arc_post_atomic_barrier): Likewise.
1149 (emit_unlikely_jump): Likewise.
1150 (arc_expand_compare_and_swap_qh): Likewise.
1151 (arc_expand_compare_and_swap): Likewise.
1152 (arc_split_compare_and_swap): Likewise.
1153 (arc_expand_atomic_op): Likewise.
1154 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): New C macro.
1155 (ASM_SPEC): Enable mlock option when matomic is used.
1156 * config/arc/arc.md (UNSPEC_ARC_MEMBAR): Define.
1157 (VUNSPEC_ARC_CAS): Likewise.
1158 (VUNSPEC_ARC_LL): Likewise.
1159 (VUNSPEC_ARC_SC): Likewise.
1160 (VUNSPEC_ARC_EX): Likewise.
1161 * config/arc/arc.opt (matomic): New option.
1162 * config/arc/constraints.md (ATO): New constraint.
1163 * config/arc/predicates.md (mem_noofs_operand): New predicate.
1164 * doc/invoke.texi: Document -matomic.
1165 * config/arc/atomic.md: New file.
1166
1167 2015-12-10 Richard Biener <rguenther@suse.de>
1168
1169 PR tree-optimization/68817
1170 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Detect
1171 gaps early.
1172
1173 2015-12-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1174
1175 * tree-vect-stmts.c (vectorizable_assignment): Support
1176 useless boolean conversion.
1177
1178 2015-12-10 Alan Lawrence <alan.lawrence@arm.com>
1179
1180 * doc/install.texi: Add note against GNAT 4.8 on ARM targets.
1181
1182 2015-12-10 Jakub Jelinek <jakub@redhat.com>
1183
1184 PR tree-optimization/68785
1185 * gimple-fold.c (fold_ctor_reference): Pass return value from
1186 native_encode_expr to native_interpret_expr.
1187 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Likewise.
1188
1189 2015-12-10 Richard Biener <rguenther@suse.de>
1190
1191 PR ipa/68331
1192 * tree-ssa-structalias.c (set_uids_in_ptset): Add fndecl
1193 parameter and make vars_contains_nonlocal properly have
1194 function-scope semantics in IPA mode.
1195 (find_what_var_points_to): Add fndecl parameter.
1196 (find_what_p_points_to): Likewise.
1197 (pt_solution_includes_global): Remove IPA PTA early out.
1198 (compute_points_to_sets): Adjust.
1199 (ipa_pta_execute): Likewise. Clear final_solutions after
1200 each function.
1201
1202 2015-12-10 Tom de Vries <tom@codesourcery.com>
1203
1204 PR ada/65102
1205 * doc/include/fdl.texi: Add nodefaultgnufreedocumentationlicensenode
1206 ifdef to allow disabling default @node GNU Free Documentation License.
1207
1208 2015-12-10 Richard Biener <rguenther@suse.de>
1209
1210 * tree-ssa-structalias.c (create_function_info_for): Add missing
1211 constraint from nonlocal for DECL_RESULT.
1212
1213 2015-12-10 Richard Biener <rguenther@suse.de>
1214
1215 * tree-if-conv.c: Include params.h.
1216 (ifcvt_memrefs_wont_trap): Use PARAM_ALLOW_STORE_DATA_RACES
1217 instead of flag_tree_loop_if_convert_stores to guard cases
1218 we'd introduce store-data-races.
1219
1220 2015-12-10 Richard Biener <rguenther@suse.de>
1221
1222 PR ipa/68721
1223 * ipa-split.c (split_function): Record return value properly
1224 when the split part doesn't set it.
1225
1226 2015-12-10 Richard Biener <rguenther@suse.de>
1227
1228 PR tree-optimization/68806
1229 * tree-vect-loop.c (vect_analyze_loop_2): Properly detect
1230 reduction chains and ignore SLP reductions.
1231
1232 2015-12-10 Richard Biener <rguenther@suse.de>
1233
1234 * tree-if-conv.c (if_convertible_loop_p_1): Do not compute
1235 dependences.
1236 (if_convertible_loop_p): Adjust.
1237
1238 2015-12-10 Tom de Vries <tom@codesourcery.com>
1239
1240 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Remove
1241 invalid assert.
1242
1243 2015-12-10 Martin Liska <mliska@suse.cz>
1244
1245 * tree-vect-data-refs.c: Free an overwritten dataref.
1246
1247 2015-12-09 John David Anglin <danglin@gcc.gnu.org>
1248
1249 PR target/68729
1250 * config/pa/pa.c (pa_emit_move_sequence): Don't check that mode is
1251 consistent with modes of the input and output operands when doing
1252 reloads to and from floating point registers. Do reload for all
1253 address forms.
1254
1255 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1256
1257 PR ipa/61886
1258 PR middle-end/25140
1259 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use compare_base_decls
1260 (nonoverlapping_component_refs_of_decl_p): Update sanity check.
1261 (decl_refs_may_alias_p): Use compare_base_decls.
1262 * alias.c: Include cgraph.h
1263 (get_alias_set): Add cut-off for recursion.
1264 (rtx_equal_for_memref_p): Use rtx_equal_for_memref_p.
1265 (compare_base_decls): New function.
1266 (base_alias_check): Likewise.
1267 (memrefs_conflict_p): Likewise.
1268 (nonoverlapping_memrefs_p): Likewise.
1269 * alias.h (compare_base_decls): Declare.
1270
1271 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1272
1273 PR ipa/61886
1274 * ipa-visibility.c (function_and_variable_visibility): Fix vtable
1275 rewritting guard.
1276
1277 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1278
1279 PR ipa/61886
1280 PR middle-end/25140
1281 * ipa-reference.c (ipa_reference_get_not_read_global,
1282 ipa_reference_get_not_read_global): Fix WRT aliases.
1283 (is_improper): Break out from ...
1284 (is_proper_for_analysis): ... here; fix WRT aliases.
1285 (analyze_function, generate_summary,
1286 ipa_reference_write_optimization_summary,
1287 ipa_reference_read_optimization_summary): Use ipa_reference_var_uid.
1288 * ipa-refrence.h (ipa_reference_var_uid): New inline.
1289 * tree-ssa-alias.c: Revert my accidental previous commit.
1290 (ref_maybe_used_by_call_p_1,
1291 call_may_clobber_ref_p_1): Use ipa_reference_var_uid.
1292
1293 2015-12-09 Andreas Tobler <andreast@gcc.gnu.org>
1294
1295 * config/rs6000/freebsd64.h: Remove the redefinition of WCHAR_TYPE.
1296
1297 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
1298 Sebastian Pop <s.pop@samsung.com>
1299
1300 * graphite-optimize-isl.c: Include isl/ast_build.h
1301 (optimize_isl): Set several isl_options_set_* options.
1302
1303 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
1304 Sebastian Pop <s.pop@samsung.com>
1305
1306 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Iterate in
1307 the same order as adding data reference access functions.
1308
1309 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
1310 Sebastian Pop <s.pop@samsung.com>
1311
1312 * graphite-optimize-isl.c (optimize_isl): Improve dump message.
1313
1314 2015-12-09 Marek Polacek <polacek@redhat.com>
1315
1316 PR tree-optimization/66949
1317 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Don't call
1318 single_non_singleton_phi_for_edges to get the PHI from
1319 factor_out_conditional_conversion. Use NULL_TREE instead of NULL.
1320 (factor_out_conditional_conversion): Adjust declaration. Make it
1321 return the newly-created PHI.
1322
1323 2015-12-09 James Greenhalgh <james.greenhalgh@arm.com>
1324
1325 * config/aarch64/aarch64-protos.h
1326 (aarch64_cannot_change_mode_class): Bring back.
1327 * config/aarch64/aarch64.c
1328 (aarch64_cannot_change_mode_class): Likewise.
1329 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Likewise.
1330 * config/aarch64/aarch64.md (aarch64_movdi_<mode>low): Use
1331 zero_extract rather than truncate.
1332 (aarch64_movdi_<mode>high): Likewise.
1333
1334 2015-12-09 Jakub Jelinek <jakub@redhat.com>
1335
1336 PR tree-optimization/68786
1337 * tree-if-conv.c: Include builtins.h.
1338 (predicate_mem_writes): Put result of get_object_alignment (ref)
1339 into second argument's value.
1340 * tree-vect-stmts.c (vectorizable_mask_load_store): Put minimum
1341 pointer alignment into second argument's value.
1342 * tree-data-ref.c (get_references_in_stmt): Use value of second
1343 argument for build_aligned_type, and only the type to build
1344 a zero second argument for MEM_REF.
1345 * internal-fn.c (expand_mask_load_optab_fn,
1346 expand_mask_store_optab_fn): Likewise.
1347
1348 2015-12-09 Richard Biener <rguenther@suse.de>
1349
1350 PR tree-optimization/68583
1351 * tree-if-conv.c (if_convertible_phi_p): Drop
1352 flag_tree_loop_if_convert_stores check in favor of the
1353 existing any_mask_load_store check.
1354 (insert_gimplified_predicates): Likewise.
1355 (combine_blocks): Likewise.
1356 (tree_if_conversion): Likewise.
1357 (ifcvt_memrefs_wont_trap): Properly check
1358 flag_tree_loop_if_convert_stores in all places that can end
1359 up introducing store-data-races.
1360 (if_convertible_gimple_assign_stmt_p): Remove restriction
1361 on flag_tree_loop_if_convert_stores for stores we can if-convert
1362 without introducing store-data-races. Force versioning for
1363 all if-converted stores.
1364
1365 2015-12-09 Tom de Vries <tom@codesourcery.com>
1366
1367 PR tree-optimization/68716
1368 * tree-ssa-structalias.c (find_func_clobbers): Fix handling of
1369 BUILT_IN_GOMP_PARALLEL and BUILT_IN_GOACC_PARALLEL.
1370
1371 2015-12-09 Martin Liska <mliska@suse.cz>
1372
1373 * hash-traits.h (struct typed_delete_remove): New function.
1374 (typed_delete_remove ::remove): Likewise.
1375 * tree-ssa-loop-ivopts.c (struct iv_common_cand): Replace
1376 auto_vec with vec.
1377 (record_common_cand): Replace XNEW with operator new.
1378
1379 2015-12-09 Martin Liska <mliska@suse.cz>
1380
1381 * tree-if-conv.c (ifcvt_local_dce): Replace vec with auto_vec.
1382
1383 2015-12-09 Martin Liska <mliska@suse.cz>
1384
1385 PR ipa/68790
1386 * ipa-icf.c (sem_function::param_used_p): Return true
1387 if ipa_node_params_sum equals to NULL.
1388
1389 2015-12-09 Richard Biener <rguenther@suse.de>
1390
1391 PR tree-optimization/68583
1392 * tree-if-conv.c (ifc_dr): Make flags bool, add w_unconditionally
1393 flag and rename predicates to w_predicate, rw_predicate and
1394 base_w_predicate.
1395 (DR_WRITTEN_AT_LEAST_ONCE): Rename to ...
1396 (DR_BASE_W_UNCONDITIONALLY): ... this.
1397 (DR_W_UNCONDITIONALLY): Add.
1398 (hash_memrefs_baserefs_and_store_DRs_read): Adjust. Compute
1399 unconditionally written separately from read or written.
1400 (ifcvt_memrefs_wont_trap): Properly treat reads.
1401 (ifcvt_could_trap_p): Inline ...
1402 (if_convertible_gimple_assign_stmt_p): ... here. Refactor
1403 to avoid code duplication.
1404 (if_convertible_loop_p_1): Adjust and properly initialize
1405 predicates.
1406
1407 2015-12-09 Richard Biener <rguenther@suse.de>
1408
1409 * tree-vect-stmts.c (vectorizable_load): Set new vinfo only
1410 if it was not yet set.
1411 * tree-vectorizer.h (set_vinfo_for_stmt): Assert we don't
1412 overwrite an existing entry.
1413
1414 2015-12-09 Chung-Lin Tang <cltang@codesourcery.com>
1415
1416 * c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.
1417 * c/c-parser.c (c_parser_oacc_wait): Add add_stmt() call.
1418 * cp/parser.c (cp_parser_oacc_wait): Add finish_expr_stmt() call.
1419
1420 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1421
1422 PR ipa/61886
1423 * symtab.c (symtab_node::equal_address_to): New parameter
1424 MEMORY_ACCESSED.
1425 * cgraph.h (symtab_node::equal_address_to): Update prototype.
1426
1427 2015-12-08 DJ Delorie <dj@redhat.com>
1428
1429 * config/rx/rx.opt (-mjsr): Add.
1430 * config/rx/predicates.md (rx_call_operand): Avoid overflowing
1431 calls when -mjsr.
1432 * config/rx/rx.c (rx_function_ok_for_sibcall): Likewise for
1433 overflowing jumps.
1434 * doc/invoke.texi (-mjsr): Document it.
1435
1436 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1437
1438 PR ipa/61886
1439 * lto-streamer.h (lto_symtab_merge_decls, lto_symtab_merge_symbols,
1440 lto_symtab_prevailing_decl): MOve to lto-symtab.h.
1441 * lto-streamer-out.c (DFS::DFS_write_tree_body): Check that
1442 DECL_ABSTRACT_ORIGIN is not error_mark_node.
1443
1444 2015-12-08 David Malcolm <dmalcolm@redhat.com>
1445
1446 * tree-nested.c (convert_tramp_reference_stmt): Fix indentation.
1447
1448 2015-12-08 David Malcolm <dmalcolm@redhat.com>
1449
1450 * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Fix
1451 indentation.
1452
1453 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1454
1455 PR ipa/61886
1456 * lto-cgraph.c (compute_ltrans_boundary): Add transparent alias targets
1457 into the boundary.
1458
1459 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1460
1461 PR ipa/61886
1462 * varpool.c (varpool_node::get_availability): Recurse only on
1463 weakrefs with definition in the target.
1464 (symbol_table::remove_unreferenced_decls): Keep aliases in the boundary.
1465
1466 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1467
1468 PR ipa/61886
1469 * ipa-visibility.c (can_replace_by_local_alias): Look through
1470 transparent aliases; refuse weakrefs.
1471 (update_visibility_by_resolution_info): Skip transparent aliases in the
1472 analysis part
1473
1474 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1475
1476 PR ipa/61886
1477 * symtab.c (symtab_node::verify_base): Fix thinko in a conditional.
1478 (symtab_node::noninterposable_alias): Do not accept transparent
1479 aliases.
1480
1481 2015-12-08 Nathan Sidwell <nathan@acm.org>
1482
1483 * config/nvptx/nvptx.c (decl_chunk_size, decl_chunk_mode,
1484 decl_offset, init_part, object_size, object_finished): Replace
1485 with ...
1486 (struct init_frag): ... this new struct variable.
1487 (begin_decl_field, output_decl_chunk): Replace with ...
1488 (output_init_frag): ... this new function.
1489 (nvptx_assemble_value): Reimplement.
1490 (nvptx_assemble_integer, nvptx_output_skip): Adjust.
1491 (nvptx_assemble_decl_begin, nvptx_assemble_decl_end): Adjust.
1492 (nvptx_output_aligned_decl): Call nvptx_assemble_decl_end.
1493
1494 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
1495
1496 PR middle-end/68291
1497 PR middle-end/68292
1498 * cfgexpand.c (set_rtl): Always accept mode mismatch for SSA names
1499 with BLKmode promoted mode based on RESULT_DECLs.
1500
1501 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
1502
1503 PR target/68701
1504 * config/i386/i386.c (ix86_option_override_internal): Enable
1505 -maccumulate-outgoing-args when %ebp is fixed due to stack
1506 realignment requirements.
1507
1508 2015-12-08 Tom de Vries <tom@codesourcery.com>
1509
1510 PR tree-optimization/68640
1511 * omp-low.c (install_var_field): Clear the restrict qualifier on the var
1512 type.
1513
1514 2015-12-08 Kirill Yukhin <kirill.yukhin@intel.com>
1515
1516 * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode>_1"): Fix
1517 assembler to make source always 128bit.
1518
1519 2015-12-08 Jakub Jelinek <jakub@redhat.com>
1520
1521 PR c/48088
1522 PR c/68657
1523 * common.opt (Wframe-larger-than=): Add Warning.
1524 * opts.h (control_warning_option): Add ARG argument.
1525 * opts-common.c (cmdline_handle_error): New function.
1526 (read_cmdline_option): Use it.
1527 (control_warning_option): Likewise. Add ARG argument.
1528 If non-NULL, decode it if needed and pass through
1529 to handle_generated_option. Handle CLVC_ENUM like
1530 CLVC_BOOLEAN.
1531 * opts.c (common_handle_option): Adjust control_warning_option
1532 caller.
1533 (enable_warning_as_error): Likewise.
1534
1535 2015-12-08 Matthew Wahab <matthew.wahab@arm.com>
1536
1537 * config/aarch64/aarch64-options-extensions.def: Remove
1538 AARCH64_FL_RDMA from "fp" and "simd". Remove "pan", "lor",
1539 "rdma".
1540 * config/aarch64/aarch64.h (AARCH64_FL_PAN): Remove.
1541 (AARCH64_FL_LOR): Remove.
1542 (AARCH64_FL_RDMA): Remove.
1543 (AARCH64_FL_V8_1): New.
1544 (AARCH64_FL_FOR_AARCH8_1): Replace AARCH64_FL_PAN, AARCH64_FL_LOR
1545 and AARCH64_FL_RDMA with AARCH64_FL_V8_1.
1546 (AARCH64_ISA_RDMA): Replace AARCH64_FL_RDMA with AARCH64_FL_V8_1.
1547 * doc/invoke.texi (AArch64 -march): Rewrite initial paragraph and
1548 section on -march=native. Group descriptions of permitted
1549 architecture names together. Expand description of
1550 -march=armv8.1-a.
1551 (AArch64 -mtune): Slightly rework section on -march=native.
1552 (AArch64 -mcpu): Slightly rework section on -march=native.
1553 (AArch64 Feature Modifiers): Remove "pan", "lor" and "rdma".
1554 State that -march=armv8.1-a enables "crc" and "lse".
1555
1556 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
1557
1558 * doc/invoke.texi (SPARC options): Fix typo.
1559
1560 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
1561
1562 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
1563 (output_probe_stack_range): Rotate the loop and simplify.
1564
1565 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
1566
1567 * config/i386/i386.c (ix86_emit_swsqrtsf): Cleanup
1568 infinity filterning code.
1569
1570 2015-12-08 Ilya Enkovich <enkovich.gnu@gmail.com>
1571
1572 PR tree-optimization/68766
1573 * tree-vectorizer.c (vectorize_loops): Check for
1574 if-converted loops when debug counters are used.
1575
1576 2015-12-07 DJ Delorie <dj@redhat.com>
1577
1578 * config/rl78/constraints.md (Wfr): Change to be a non-memory
1579 constraint.
1580 * config/rl78/rl78-protos.h (rl78_one_far_p): Declare.
1581 * config/rl78/rl78.c (rl78_one_far_p): Define.
1582 * config/rl78/rl78-virt (movqi_virt): Fix far memory
1583 alternatives.
1584 (movhi_virt): Likewise.
1585 (zero_extendqihi2_virt): Likewise.
1586 (extendqihi2_virt): Likewise.
1587 (add<mode>3_virt): Likewise.
1588 (sub<mode>3_virt): Likewise.
1589 (andqi3_virt): Likewise.
1590 (iorqi3_virt): Likewise.
1591 (xorqi3_virt): Likewise.
1592 * config/rl78/rl78-real.md (bf,br): Use long forms to avoid reloc
1593 overflow in large files.
1594
1595 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
1596
1597 PR target/63668
1598 * doc/invoke.texi (SPARC options): Document -mstd-struct-return.
1599 * config/sparc/sparc.c (sparc_struct_value_rtx): Minor tweaks.
1600 * config/sparc/sparc.h (CALL_REALLY_USED_REGISTERS): Define.
1601 * config/sparc/sparc.opt (mstd-struct-return): Accept negative.
1602
1603 2015-12-07 Steve Ellcey <sellcey@imgtec.com>
1604
1605 * reorg.c (optimize_skip): Do not put frame related instructions
1606 in annulled delay slots.
1607 (steal_delay_list_from_target): Ditto.
1608 (fill_slots_from_thread): Ditto.
1609
1610 2015-12-07 Evandro Menezes <e.menezes@samsung.com>
1611
1612 * config/aarch64/aarch64-cores.def: Use the Exynos M1 sched model.
1613 * config/aarch64/aarch64.md: Include "exynos-m1.md".
1614 * config/arm/arm.md: Likewise.
1615 * config/arm/exynos-m1.md: New file.
1616
1617 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
1618
1619 * fold-const.c (operand_equal_p): Drop flag_strict_aliasing check.
1620
1621 2015-12-07 Nathan Sidwell <nathan@acm.org>
1622
1623 * config//nvptx/nvptx.c (write_return): New.
1624 (write_fn_proto, nvptx_declare_function_name): Call it.
1625
1626 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
1627
1628 PR ipa/61886
1629 * symtab.c (ultimate_transparent_alias_target): New inline function.
1630 (symbol_table::assembler_names_equal_p): New method; break out from ...
1631 (symbol_table::decl_assembler_name_equal): ... here.
1632 (symbol_table::change_decl_assembler_name): Also update names and
1633 translation links of transparent aliases.
1634 (symtab_node::dump_base): Dump transparent_alias.
1635 (symtab_node::verify_base): Implement basic transparent alias
1636 verification.
1637 (symtab_node::make_decl_local): Support localization of weakrefs;
1638 recurse to transparent aliases; set TREE_STATIC.
1639 (symtab_node::ultimate_alias_target_1): Handle visibility of
1640 transparent aliases.
1641 (symtab_node::resolve_alias): New parmaeter transparent; handle
1642 transparent aliases; recurse to aliases of aliases to fix comdat
1643 groups.
1644 (symtab_node::get_partitioning_class): Handle transparent aliases.
1645 * ipa-visibility.c (cgraph_externally_visible_p,
1646 varpool_node::externally_visible_p): Visibility of transparent alias
1647 depends on its target.
1648 (function_and_variable_visibility): Do not tweak visibility of
1649 transparent laiases.
1650 (function_and_variable_visibility): Likewise.
1651 * ipa.c (symbol_table::remove_unreachable_nodes): Clear
1652 transparent_alias flag.
1653 * alias.c (cgraph_node::create_alias, cgraph_node::get_availability):
1654 Support transparent aliases.
1655 * cgraph.h (symtab_node): Update prototype of resolve_alias;
1656 add transparent_alias flag.
1657 (symbol_table: Add assembler_names_equal_p.
1658 (symtab_node::real_symbol_p): Skip transparent aliases.
1659 * cgraphunit.c (cgraph_node::reset): Reset transparent_alias flag.
1660 (handle_alias_pairs): Set transparent_alias for weakref.
1661 (cgraph_node::assemble_thunks_and_aliases): Do not asemble transparent
1662 aliases.
1663 * lto-cgraph.c (lto_output_node): When outputting same_comdat_group
1664 skip symbols not put into boundary; stream transparent_alias.
1665 (lto_output_varpool_node): Likewise.
1666 (input_overwrite_node, input_varpool_node): Stream transparent alias.
1667 * varpool.c (ctor_for_folding, varpool_node::get_availability,
1668 varpool_node::assemble_aliases,
1669 symbol_table::remove_unreferenced_decls): Handle transparent aliase.
1670 (varpool_node::create_alias): Set transparent_alias.
1671
1672 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
1673
1674 PR middle-end/68291
1675 PR middle-end/68292
1676 * cfgexpand.c (set_rtl): Always accept PARALLELs with BLKmode for
1677 SSA names based on RESULT_DECLs.
1678 * function.c (expand_function_start): Do not create BLKmode REGs
1679 for GIMPLE registers when coalescing is enabled.
1680
1681 2015-12-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
1682
1683 * final.c (shorten_branches): Fix check for basic asm.
1684 * ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for
1685 basic asm.
1686
1687 2015-12-07 Nathan Sidwell <nathan@acm.org>
1688
1689 * config/nvptx/nvptx.c (nvptx_output_call_insn): Emit trap after no
1690 return call.
1691
1692 2015-12-07 David Malcolm <dmalcolm@redhat.com>
1693
1694 * pretty-print.c (text_info::set_range): Rename to...
1695 (text_info::set_location): ...this, converting 2nd param
1696 from source_range to a location_t.
1697 * pretty-print.h (text_info::set_location): Convert
1698 from inline function to external definition.
1699 (text_info::set_range): Delete.
1700
1701 2015-12-07 Nathan Sidwell <nathan@acm.org>
1702
1703 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Look inside
1704 complex and vector types. Cope with packed structs.
1705
1706 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
1707
1708 PR target/68627
1709 * config/i386/sse.md: Make 'v' alternative work on 'avx512f' ISA only.
1710 Force destination to 512 bits register.
1711
1712 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
1713
1714 PR target/68633
1715 * config/i386/sse.md (define_insn "kunpckhi"): Fix operands order.
1716 (define_insn "kunpcksi"): Ditto.
1717 (define_insn "kunpckdi"): Ditto.
1718
1719 2015-12-06 Kaz Kojima <kkojima@gcc.gnu.org>
1720
1721 * config/sh/sh.md (rsqrtsf2): Adjust for canonical form with unspec.
1722
1723 2015-12-06 Victoria Stepanyan <victoria.stepanyan@amd.com>
1724
1725 * common/config/i386/i386-common.c
1726 (OPTION_MASK_ISA_CLZERO_SET): New.
1727 (ix86_handle_option): Handle clzero.
1728 * config.gcc (i[34567]86-*-*): Add clzerointrin.h,
1729 (x86_64-*-*): Likewise.
1730 * config/i386/clzerointrin.h: New header.
1731 * config/i386/cpuid.h (bit_CLZERO): Define.
1732 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1733 CLZERO support.
1734 * config/i386/i386.opt (clzero): New.
1735 * config/i386/i386-c.c: Define __CLZERO__ if needed.
1736 * config/i386/i386.c (ix86_target_string): Define -mclzero option.
1737 (PTA_CLZERO): New.
1738 (ix86_option_override_internal): Handle new option.
1739 (processor_alias_table): Added PTA_CLZERO.
1740 (ix86_valid_target_attribute_inner_p): Add OPT_mclzero.
1741 (ix86_builtins): Add IX86_BUILTIN_CLZERO, IX86_BUILTIN_CLZERO.
1742 (ix86_expand_builtin): Handle IX86_BUILTIN_CLZERO and
1743 IX86_BUILTIN_CLZERO built-ins.
1744 * config/i386/i386.h (TARGET_CLZERO): New.
1745 * config/i386/i386.md (unspecv): Add UNSPEC_CLZERO.
1746 (clzero): New pattern.
1747 (clzero_<mode>): New pattern.
1748 * config/i386/x86intrin.h: Include clzerointrin.h.
1749 * doc/extend.texi: Document clzero builtins.
1750 * doc/invoke.texi: Document -mclzero option.
1751
1752 2015-12-05 Jan Hubicka <hubicka@ucw.cz>
1753
1754 * ipa-icf.c (sem_function::merge): Check that local_original exists.
1755
1756 2015-12-05 David Edelsohn <dje.gcc@gmail.com>
1757
1758 PR target/68609
1759 * config/rs6000/rs6000-protos.h (rs6000_emit_swsqrt): Rename and add
1760 bool arguement.
1761 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Rename. Add
1762 non-reciporcal path.
1763 * config/rs6000/rs6000.md (rsqrt<mode>2): Call new function name.
1764 (sqrt<mode>2): Replace define_insn with define_expand that may call
1765 rs6000_emit_swsqrt.
1766
1767 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
1768 Sebastian Pop <s.pop@samsung.com>
1769
1770 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1771 Improve debug.
1772 (get_rename_from_scev): Check that all the ops in an expression
1773 have their uses dominated by corresponding defs.
1774
1775 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
1776 Sebastian Pop <s.pop@samsung.com>
1777
1778 PR tree-optimization/68693
1779 * graphite-scop-detection.c (dot_all_sese): New
1780 (dot_all_scops_1): Renamed to dot_all_sese.
1781 (dot_all_scops): Removed.
1782 (dot_sese): New.
1783 (dot_cfg): New.
1784 (scop_detection::get_nearest_dom_with_single_entry): Check that
1785 preds are from different loop levels.
1786 (scop_detection::get_nearest_pdom_with_single_exit): Check that
1787 succs are from different loop levels.
1788 (scop_detection::print_sese): Inlined.
1789 (scop_detection::print_edge): New.
1790 (scop_detection::merge_sese): Added dumps.
1791 * graphite.h: Add declarations.
1792
1793 2015-12-04 James Greenhalgh <james.greenhalgh@arm.com>
1794
1795 * config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
1796 constraints.
1797
1798 2015-12-04 Vladimir Makarov <vmakarov@redhat.com>
1799
1800 PR rtl-optimization/68349
1801 * lra-eliminations.c (move_plus_up): New function.
1802 (lra_eliminate_regs_1): Use the function.
1803
1804 2015-12-04 Nathan Sidwell <nathan@acm.org>
1805
1806 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): New, replacing ...
1807 (init_output_initializer): ... this.
1808 (nvptx_output_aligned_decl, nvptx_asm_declare_constant_name,
1809 nvptx_declare_object_name, nvptx_assemble_undefined_decl): Use
1810 nvptx_assemble_decl_begin.
1811
1812 2015-12-04 Dmitry Vyukov <dvyukov@google.com>
1813
1814 * sancov.c: New file.
1815 * Makefile.in (OBJS): Add sancov.o.
1816 * invoke.texi (-fsanitize-coverage=trace-pc): Describe.
1817 * passes.def (sancov_pass): Add.
1818 * tree-pass.h (sancov_pass): Add.
1819 * common.opt (-fsanitize-coverage=trace-pc): Add.
1820 * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_PC): Add.
1821 * builtins.def (DEF_SANITIZER_BUILTIN): Enable for
1822 flag_sanitize_coverage.
1823
1824 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
1825
1826 PR middle-end/65958
1827 * config/arm/unspecs.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
1828 (unspecv): Add VUNSPEC_PROBE_STACK_RANGE.
1829 * config/arm/arm.md (probe_stack_range): Adjust.
1830 * config/aarch64/aarch64.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
1831 (unspecv): Add UNSPECV_PROBE_STACK_RANGE.
1832 (probe_stack_range_<PTR:mode>): Adjust.
1833
1834 2015-12-04 David Malcolm <dmalcolm@redhat.com>
1835
1836 * convert.c (convert_to_real_1): When converting from a
1837 REAL_TYPE, preserve the location of EXPR in the result.
1838 * tree.c (get_pure_location): Make non-static.
1839 (set_source_range): Return the resulting location_t.
1840 (make_location): New function.
1841 * tree.h (get_pure_location): New decl.
1842 (get_finish): New inline function.
1843 (set_source_range): Convert return type from void to location_t.
1844 (make_location): New decl.
1845
1846 2015-12-04 Jakub Jelinek <jakub@redhat.com>
1847
1848 PR c/68656
1849 * toplev.c (init_asm_output): Pass UNKNOWN_LOCATION instead of
1850 input_location to inform.
1851 (process_options): Use warning_at (UNKNOWN_LOCATION instead of
1852 warning ( and error_at (UNKNOWN_LOCATION instead of error (.
1853 Pass UNKNOWN_LOCATION instead of input_location to fatal_error.
1854
1855 2015-12-04 Jan Hubicka <hubicka@ucw.cz>
1856
1857 * ipa-inline.c (can_inline_edge_p) Use merged_comdat.
1858 * cgraphclones.c (cgraph_node::create_clone): Use merged_comdat.
1859 * cgraph.c (cgraph_node::dump): Dump merged_comdat.
1860 * ipa-icf.c (sem_function::merge): Drop merged_comdat when merging
1861 comdat and non-comdat.
1862 * cgraph.h (cgraph_node): Rename merged to merged_comdat.
1863 * ipa-inline-analysis.c (simple_edge_hints): Check both merged_comdat
1864 and icf_merged.
1865
1866 2015-12-04 Segher Boessenkool <segher@kernel.crashing.org>
1867
1868 * config/rs6000/rs6000.md (cstore<mode>4_unsigned): Use gpc_reg_operand
1869 instead of register_operand. Remove empty constraints. Use std::swap.
1870 (cstore_si_as_di, cstore<mode>4_signed_imm,
1871 cstore<mode>4_unsigned_imm, cstore<mode>4 for GPR): Use
1872 gpc_reg_operand instead of register_operand.
1873 (cstore<mode>4 for FP): Use gpc_reg_operand instead of
1874 register_operand. Remove empty constraints.
1875
1876 2015-12-04 Nick Clifton <nickc@redhat.com>
1877
1878 * config.gcc (extra_gcc_objs): Define for MSP430.
1879 * common/config/msp430/msp430-common.c (msp430_handle_option):
1880 Pass both -mmcu and -mcpu on to the back end if they are both defined.
1881 * config/msp430/msp430.c (hwmult_name): New function.
1882 (msp430_option_override): If an unrecognised MCU name is
1883 detected only warn if the user has not provided suitable
1884 -mhwmult and -mcpu options. Use msp430_warn_mcu to control
1885 warning messages. Generate warnings about conflicts between
1886 -mmcu and -mcpu and -mhwmult options.
1887 If neither -mcpu nor -mmcu have been specified but -mhwmult=
1888 f5series has the select the 430X isa.
1889 (msp430_no_hwmult): If -mmcu has not been specified and
1890 msp430_hwmult_type is AUTO then return true.
1891 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Define.
1892 (LIB_SPEC): Add hardware multiply library selection.
1893 * config/msp430/t-msp430: Delete hardware multiply multilibs.
1894 Add rule to build driver-msp430.o
1895 * config/msp430/driver-msp430.c: New file.
1896 * config/msp430/msp430.opt (warn-mcu): New option.
1897 * doc/invoke.texi: Update description of -mhwmult=auto.
1898 Document -mwarn-mcu option.
1899
1900 2015-12-04 Segher Boessenkool <segher&kernel.crashing.org>
1901
1902 * config/rs6000/rs6000.md (cstore<mode>4_signed): New expander.
1903 (cstore<mode>4): Call it.
1904
1905 2015-12-04 Jakub Jelinek <jakub@redhat.com>
1906
1907 * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
1908
1909 PR tree-optimization/68680
1910 * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
1911 BUILT_IN_ALLOCA{,_WITH_ALIGN}. Don't check for __builtin_alloca
1912 by name.
1913
1914 PR tree-optimization/68671
1915 * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
1916 blocks starting with the successor of first bb we've modified
1917 and ending with last_bb call reset_flow_sensitive_info_in_bb.
1918
1919 2015-12-04 Jeff Law <law@redhat.com>
1920
1921 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
1922 indicating if a gimple conditional was optimized to true/false.
1923 (reassociate_bb): Bubble up return value from
1924 maybe_optimize_range_tests.
1925 (do_reassoc): Similarly, but for reassociate_bb.
1926 (execute_reassoc): Return TODO_cleanup_cfg as needed.
1927
1928 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1929
1930 * config/aarch64/aarch64.c (aarch64_override_options_internal):
1931 Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
1932 * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
1933 does not affect the assembler directives.
1934
1935 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
1936
1937 * config/s390/s390.c (s390_asm_file_start): Implement hook function to
1938 emit .machine and .machinemode to the top of the assembler file.
1939 (TARGET_ASM_FILE_START): Provide target hook.
1940 (s390_asm_output_machine_for_arch): Protect with
1941 HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
1942
1943 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
1944
1945 * config/s390/s390.opt (s390_arch_string): Remove.
1946 (s390_tune_string): Likewise.
1947 (s390_cost_pointer): Add Variable.
1948 (s390_tune_flags): Add TargetVariable.
1949 (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
1950 (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
1951 (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
1952 (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
1953 (mwarn-framesize=): Save option.
1954 (mno-stack-guard, mno-stack-guard): New option.
1955 (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
1956 (mwarn-framesize=): Convert to UInteger (negative values are rejected
1957 now).
1958 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
1959 macros changeable through the GCC target pragma into a separate
1960 function.
1961 (s390_cpu_cpp_builtins): Likewise.
1962 (s390_pragma_target_parse): New function, implement GCC target pragma
1963 if enabled.
1964 (s390_register_target_pragmas): Register s390_pragma_target_parse if
1965 available.
1966 * common/config/s390/s390-common.c (s390_handle_option):
1967 Export.
1968 Move setting s390_arch_flags to s390.c.
1969 Remove s390_tune_flags.
1970 Allow 0 as argument to -mstack-size (switch to default value).
1971 Allow 0 as argument to -mstack-guard (switch off).
1972 Remove now unnecessary explicit parsing code for -mwarn-framesize.
1973 * config/s390/s390-protos.h (s390_handle_option): Export.
1974 (s390_valid_target_attribute_tree): Export.
1975 (s390_reset_previous_fndecl): Export.
1976 * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
1977 and end of HTM and VX builtins.
1978 (s390_asm_output_function_prefix): Declare hook.
1979 (s390_asm_declare_function_size): Likewise.
1980 * config/s390/s390-builtins.h (B_GROUP): Use macro.
1981 * config/s390/s390-opts.h: Add comment about processor_type usage.
1982 * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
1983 (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
1984 (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
1985 (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
1986 (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
1987 (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
1988 (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
1989 (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
1990 (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
1991 (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
1992 (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
1993 (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
1994 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
1995 * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
1996 undefined.
1997 (vec_all_nan): Rewrite as macro using statement expressions to avoid
1998 that the vector keyword needs to be defined when including the file.
1999 (vec_all_numeric): Likewise.
2000 (vec_any_nan): Likewise.
2001 (vec_any_numeric): Likewise.
2002 * config/s390/s390.c (s390_previous_fndecl): New static variable.
2003 (s390_set_current_function): New function.
2004 (s390_cost): Wrapper macro to allow defining the cost table pointer in
2005 the options file.
2006 (processor_table): Table for march= and mtune= parsing.
2007 (s390_init_builtins): Enable all builtins and types unconditionally.
2008 (s390_expand_builtin): Generate an error message if builtin is not
2009 supported by current options.
2010 Correct an error message.
2011 (s390_function_specific_restore): New function to set s390_cost.
2012 (s390_asm_output_machine_for_arch): New function for emitting .machine
2013 and .machinmode directives to the assembler file.
2014 (s390_asm_output_function_prefix): Likewise.
2015 (s390_asm_declare_function_size): Likewise.
2016 (s390_asm_output_function_label): Add mdebug output for feature testing.
2017 (s390_option_override): Move implementation into internal function.
2018 (s390_option_override_internal): Likewise.
2019 Implement option overriding based on current options.
2020 (s390_valid_target_attribute_inner_p): New function implementing target
2021 attribute logic.
2022 (s390_valid_target_attribute_tree): Likewise.
2023 (s390_valid_target_attribute_p): Likewise.
2024 (s390_reset_previous_fndecl): Likewise.
2025 (s390_set_current_function): Likewise.
2026 (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
2027 (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
2028 (TARGET_OPTION_RESTORE): Likewise.
2029 * doc/extend.texi: S390: Document target attribute and pragma.
2030 * config.in: Regenerated.
2031 * configure: Regenerated.
2032 * configure.ac: S390: Check for .machinemode and .machine in gas.
2033 S390: Check for architecture modifiers support in gas.
2034
2035 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
2036
2037 * doc/extend.texi ("simd"): Describe new flags.
2038
2039 2015-12-04 Ilya Enkovich <enkovich.gnu@gmail.com>
2040
2041 * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
2042 operand checked for alignment.
2043
2044 2015-12-04 Nathan Sidwell <nathan@acm.org>
2045
2046 * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
2047 emission too. Change 'no_arg_types' to 'prototyped'.
2048 (write_fn_proto): Use write_one_arg for stdarg, static chain &
2049 main.
2050 (nvptx_declare_function_name): Use write_one_arg for prologue copies.
2051
2052 2015-12-04 Richard Biener <rguenther@suse.de>
2053
2054 * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
2055 member and initialize it.
2056 (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
2057 if necessary.
2058 (sccvn_dom_walker::before_dom_children): If unreachable_dom
2059 is set BB is not reachable either. Set unreachable_dom
2060 if not set and BB is unreachable.
2061
2062 2015-12-04 Richard Biener <rguenther@suse.de>
2063
2064 * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
2065 query with GATHER_STATISTICS.
2066
2067 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
2068
2069 PR middle-end/65958
2070 * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
2071 fields, add keep_stack and reorder them.
2072 (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
2073 set it to false. Do not insert a stack save/restore pair if it has
2074 been set to true by the gimplification of the statements.
2075 Restore it to the saved value on exit if it is still false.
2076 (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
2077 (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case. Set
2078 either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
2079 * doc/extend.texi (Variable Length): Document new behavior.
2080 * doc/generic.texi (Blocks): Document new handling of VLAs.
2081
2082 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
2083 Tristan Gingold <gingold@adacore.com>
2084
2085 PR middle-end/65958
2086 * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
2087 Declare.
2088 * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
2089 UNSPEC_PROBE_STACK_RANGE.
2090 (blockage): New instruction.
2091 (probe_stack_range_<PTR:mode>): Likewise.
2092 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
2093 function.
2094 (aarch64_output_probe_stack_range): Likewise.
2095 (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
2096 static builtin stack checking is enabled.
2097 * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
2098 Define to 1.
2099
2100 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2101
2102 PR target/68214
2103 * config/arm/arm.md (*call_mem): Delete pattern.
2104 (*call_value_mem): Likewise.
2105 * config/arm/arm.c (output_call_mem): Delete.
2106 * config/arm/arm-protos.h (output_call_mem): Delete prototype.
2107
2108 2015-12-04 Bin Cheng <bin.cheng@arm.com>
2109
2110 * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
2111 aarch64_sync_memory_operand.
2112
2113 2015-12-04 Jakub Jelinek <jakub@redhat.com>
2114
2115 PR target/68655
2116 * config/i386/i386.c (canonicalize_vector_int_perm): New function.
2117 (expand_vec_perm_1): Use it and recurse if everything else
2118 failed. Use nd.perm instead of perm2.
2119 (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
2120 instead of gen_lowpart for the target.
2121 (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
2122 and recurse if everything else failed.
2123
2124 2015-12-04 Richard Biener <rguenther@suse.de>
2125
2126 PR middle-end/68636
2127 * builtins.c (get_pointer_alignment_1): Take care of byte to
2128 bit alignment computation overflow.
2129
2130 2015-12-04 Richard Biener <rguenther@suse.de>
2131
2132 PR middle-end/67438
2133 * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
2134 a constant with single_use.
2135
2136 2015-12-04 Bin Cheng <bin.cheng@arm.com>
2137 Jiong Wang <jiong.wang@arm.com>
2138
2139 * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
2140 address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
2141
2142 2015-12-03 Jan Hubicka <hubicka@ucw.cz>
2143
2144 * alias.c (alias_set_subset_of, alias_sets_must_conflict_p):
2145 Add short circuit for !flag_strict_aliasing
2146 (get_alias_set): Remove flag_strict_aliasing check.
2147 (new_alias_set): Likewise.
2148
2149 2015-12-03 Evandro Menezes <e.menezes@samsung.com>
2150
2151 * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
2152 * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
2153 (exynosm1_regmove_cost): Likewise.
2154 (exynosm1_vector_cost): Likewise.
2155 (exynosm1_tunings): Likewise.
2156 * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
2157 * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
2158
2159 2015-12-03 Alan Lawrence <alan.lawrence@arm.com>
2160 Richard Biener <richard.guenther@gmail.com>
2161
2162 * cfgexpand.c (pass_expand::execute): Replace call to
2163 redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
2164 * tree-ssa.c (delete_tree_ssa): Likewise.
2165 * function.c (set_cfun): Call redirect_edge_var_map_empty.
2166 * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
2167 * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
2168 (redirect_edge_var_map_empty): New.
2169 * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
2170 (redirect_edge_var_map_empty): New.
2171
2172 2015-12-03 Jeff Law <law@redhat.com>
2173
2174 PR tree-optimization/68599
2175 * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
2176 in call to loop_optimizer_init.
2177 * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
2178 optimization to drop the assumptions/infinite notations if
2179 the loop has a single exit.
2180
2181 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
2182
2183 * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
2184 the pattern cannot FAIL.
2185 (vec_store_lanes@var{m}@var{n}): Likewise.
2186 (maskload@var{m}@var{n}): Likewise.
2187 (maskstore@var{m}@var{n}): Likewise. Fix a cut-&-paste error
2188 in the name of the pattern.
2189 (rsqrt@var{m}2): Document that mode m must be a scalar or vector
2190 floating-point mode and that all operands have that mode.
2191 (fmin@var{m}3, fmax@var{m}3): Likewise. Document that the
2192 pattern cannot FAIL.
2193 (sqrt@var{m}2): Document that mode m must be a scalar or vector
2194 floating-point mode, that all operands have that mode, and that
2195 the patterns cannot FAIL. Remove previous documentation referring
2196 to @code{double} and @code{float}.
2197 (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
2198 (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
2199 (copysign@var{m}3): Likewise.
2200 (exp@var{m}2): Likewise. Explicitly state the base.
2201 (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
2202 (btrunc@var{m}2, rint@var{m}2): Likewise.
2203 (round@var{m}2): Likewise. Fix incorrect description of rounding
2204 effect.
2205 (ceil@var{m}2): As for round@var{m}2.
2206 (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
2207 the instruction must not raise an inexact condition.
2208 (scalb@var{m}3): Document previously-undocumented pattern
2209 (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
2210 (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
2211 (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
2212 (significand@var{m}2): Likewise.
2213 (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
2214 mode m and operand 0 is defined more freely. Document that @var{m}
2215 can be a scalar or vector integer mode and that the pattern is not
2216 allowed to FAIL.
2217 (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
2218 (clrsb@var{m}2): Likewise, except that the description of the
2219 mode was missing in this case.
2220
2221 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
2222
2223 * internal-fn.def (RSQRT): New function.
2224 * optabs.def (rsqrt_optab): New optab.
2225 * doc/md.texi (rsqrtM2): Document.
2226 * target.def (builtin_reciprocal): Replace gcall argument with
2227 a function decl. Restrict hook to machine functions.
2228 * doc/tm.texi: Regenerate.
2229 * targhooks.h (default_builtin_reciprocal): Update prototype.
2230 * targhooks.c (default_builtin_reciprocal): Likewise.
2231 * tree-ssa-math-opts.c: Include internal-fn.h.
2232 (internal_fn_reciprocal): New function.
2233 (pass_cse_reciprocals::execute): Call it, and build a call to an
2234 internal function on success. Only call targetm.builtin_reciprocal
2235 for machine functions.
2236 * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
2237 second argument.
2238 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
2239 Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
2240 (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
2241 machine functions.
2242 * config/aarch64/aarch64.c (use_rsqrt_p): New function.
2243 (aarch64_builtin_reciprocal): Replace gcall argument with a
2244 function decl. Use use_rsqrt_p. Remove optimize_size check.
2245 Only handle machine functions. Update call to aarch64_builtin_rsqrt.
2246 (aarch64_optab_supported_p): New function.
2247 (TARGET_OPTAB_SUPPORTED_P): Define.
2248 * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
2249 (rsqrt<mode>2): ...this.
2250 * config/i386/i386.c (use_rsqrt_p): New function.
2251 (ix86_builtin_reciprocal): Replace gcall argument with a
2252 function decl. Use use_rsqrt_p. Remove optimize_insn_for_size_p
2253 check. Only handle machine functions.
2254 (ix86_optab_supported_p): Handle rsqrt_optab.
2255 * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
2256 (rs6000_builtin_reciprocal): Replace gcall argument with a
2257 function decl. Remove optimize_insn_for_size_p check.
2258 Only handle machine functions.
2259 (rs6000_optab_supported_p): New function.
2260
2261 2015-12-03 Bernd Schmidt <bschmidt@redhat.com>
2262
2263 PR target/68471
2264 PR target/68472
2265 * config/i386/i386.c (ix86_mitigate_rop): Don't call
2266 compute_bb_for_insn again. Call df_insn_rescan_all.
2267 * config/i386/i386.md (set_got_rex64): Override modrm_class.
2268
2269 * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
2270
2271 2015-12-03 Nathan Sidwell <nathan@acm.org>
2272
2273 * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
2274 * config/nvptx/nvptx.c (enum nvptx_data_area): New.
2275 (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
2276 (nvptx_option_override): Set data ares for worker vars.
2277 (nvptx_addr_space_from_sym): Delete.
2278 (nvptx_encode_section_info): New.
2279 (section_for_sym, section_for_decl): New.
2280 (nvptx_maybe_convert_symbolic_operand): Get data area from symbol flags.
2281 (nvptx_section_from_addr_space): Delete.
2282 (nvptx_section_for_decl): Delete.
2283 (nvptx_output_aligned, nvptx_declare_object_name,
2284 nvptx_assemble_undefined_decl): Use section_for_decl, remove
2285 unnecessary checks.
2286 (nvptx_print_operand): Add 'D', adjust 'A'.
2287 (nvptx_expand_worker_addr): Adjust unspec generation.
2288 (TARGET_ENCODE_SECTION_INFO): Override.
2289 * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
2290 ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
2291 * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
2292 UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
2293 UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
2294 UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
2295 (UNSPEC_TO_GENERIC): New.
2296 (nvptx_register_or_symbolic_operand): Delete.
2297 (cvt_code, cvt_name, cvt_str): Delete.
2298 (convaddr_<cvt_name><mode> [P]): Delete.
2299 (convaddr_<mode> [P]): New.
2300
2301 2015-12-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2302
2303 PR rtl-optimization/68624
2304 * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
2305 blocks if they exist and simplify the logic choosing the order to emit
2306 them in.
2307
2308 2015-12-03 Richard Biener <rguenther@suse.de>
2309
2310 PR tree-optimization/66051
2311 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
2312 on load group size. Do not pass in vectorization_factor.
2313 (vect_transform_slp_perm_load): Do not require any permute support.
2314 (vect_build_slp_tree): Do not pass in vectorization factor.
2315 (vect_analyze_slp_instance): Do not compute vectorization
2316 factor estimate. Use vector size instead of vectorization factor
2317 estimate to split store groups for BB vectorization.
2318
2319 2015-12-03 Ilya Enkovich <enkovich.gnu@gmail.com>
2320
2321 * cfgexpand.c (expand_gimple_stmt_1): Return statement with
2322 DECL as return value is allowed to have NULL bounds.
2323
2324 2015-12-03 Tom de Vries <tom@codesourcery.com>
2325
2326 * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
2327 (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
2328 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
2329
2330 2015-12-03 Richard Biener <rguenther@suse.de>
2331
2332 PR tree-optimization/67800
2333 PR tree-optimization/68333
2334 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
2335 restriction to reduction contexts but allow SLP reductions as well.
2336 (vect_recog_sad_pattern): Likewise.
2337 (vect_recog_widen_sum_pattern): Likewise.
2338
2339 2015-12-03 Richard Biener <rguenther@suse.de>
2340
2341 PR tree-optimization/68639
2342 * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
2343 belonging to different loops.
2344 (vect_analyze_data_ref_accesses): Likewise.
2345
2346 2015-12-02 Kirill Yukhin <kirill.yukhin@intel.com>
2347
2348 * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
2349 Remove "prefix_extra".
2350 (define_insn "vec_extract_hi_<mode>_mask"): New.
2351 (define_insn "vec_extract_hi_<mode>"): Remove masking.
2352
2353 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
2354
2355 * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
2356 (propagate_pure_const): Use it; fix comments and optimize loops.
2357
2358 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
2359
2360 * ipa-pure-const.c (ignore_edge): Rename to ...
2361 (ignore_edge_for_nothrow) ... this one; also ignore eges to
2362 interposable functions or ones that can not throw.
2363 (propagate_nothrow): Fix handling of availability.
2364
2365 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
2366
2367 PR ipa/68184
2368 * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
2369
2370 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2371 Sebastian Pop <s.pop@samsung.com>
2372
2373 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle
2374 isl_ast_op_zdiv_r.
2375 (gcc_expression_from_isl_expr_op): Same.
2376
2377 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2378 Sebastian Pop <s.pop@samsung.com>
2379
2380 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
2381 that insertion point is still in the region.
2382
2383 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2384 Sebastian Pop <s.pop@samsung.com>
2385
2386 PR tree-optimization/68550
2387 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
2388 (copy_bb_and_scalar_dependences): Do not code generate loop peeled
2389 statements.
2390
2391 2015-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2392
2393 * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
2394 * configure: Regenerate.
2395 * config.in: Regenerate.
2396 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
2397 function.
2398 (rs6000_output_function_prologue): Use it instead of checking
2399 cfun->machine->r2_setup_needed. Use internal labels instead of
2400 GNU as local label extension. Handle ELFv2 large code model.
2401 (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
2402 (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
2403
2404 2015-12-02 Jakub Jelinek <jakub@redhat.com>
2405
2406 PR target/68647
2407 * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
2408 New functions.
2409 (expand_unop): Use them.
2410
2411 2015-12-02 Marek Polacek <polacek@redhat.com>
2412
2413 PR c++/68653
2414 * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
2415
2416 2015-12-02 Nathan Sidwell <nathan@acm.org>
2417
2418 * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New. Absorb
2419 SHUFFLE defines.
2420 (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
2421
2422 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2423 Sebastian Pop <s.pop@samsung.com>
2424
2425 * graphite-dependences.c (scop_get_reads): Add extra dumps.
2426 (scop_get_must_writes): Same.
2427 (scop_get_may_writes): Same.
2428 (compute_deps): Same.
2429 * graphite-sese-to-poly.c (bounds_are_valid): New.
2430 (pdr_add_data_dimensions): Call bounds_are_valid.
2431
2432 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2433 Sebastian Pop <s.pop@samsung.com>
2434
2435 * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
2436 * graphite-poly.c (apply_poly_transforms): Same.
2437 * graphite.c (gate_graphite_transforms): Same.
2438 * toplev.c (process_options): Same.
2439
2440 2015-12-02 Eric Botcazou <ebotcazou@adacore.com>
2441
2442 * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
2443 (mips_output_probe_stack_range): Rotate the loop and simplify.
2444
2445 2015-12-02 David Sherwood <david.sherwood@arm.com>
2446
2447 * config/aarch64/aarch64.md: New pattern.
2448 * config/aarch64/aarch64-simd.md: Likewise.
2449 * config/aarch64/iterators.md: New unspecs, iterators.
2450
2451 2015-12-02 Pierre-Marie de Rodat <derodat@adacore.com>
2452
2453 * dwarf2out.c (dwar2out_var_location): In addition to notes,
2454 process indirect calls whose target is compile-time known.
2455 Enhance pattern matching to get the SYMBOL_REF they embed.
2456 (gen_subprogram_die): Handle such calls.
2457 * final.c (final_scan_insn): For call instructions, invoke the
2458 var_location debug hook only after the call has been emitted.
2459
2460 2015-12-02 Tom de Vries <tom@codesourcery.com>
2461
2462 * gimplify.c (enum gimplify_omp_var_data): Add enum value
2463 GOVD_MAP_FORCE.
2464 (oacc_default_clause): Fix default for scalars in oacc kernels.
2465 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
2466
2467 2015-12-02 Tom de Vries <tom@codesourcery.com>
2468
2469 * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
2470 parameter base_pointers_restrict.
2471 (omp_target_base_pointers_restrict_p): New function.
2472 (scan_omp_target): Call scan_sharing_clauses with
2473 base_pointers_restrict arg.
2474
2475 2015-12-02 Nathan Sidwell <nathan@acm.org>
2476
2477 * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
2478 (nvptx_underlying_object_mode): Delete.
2479 * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
2480 (output_reg): New.
2481 (nvptx_declare_function_name): Use output_reg. Remove punning buffer.
2482 (nvptx_output_mov_insn): New.
2483 (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
2484 Use output_reg. Merge 't' and 'u' handling.
2485 * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
2486 (struct machine_function): Remvoe punning_buffer_size.
2487 (REGISTER_NAMES): Remove %punbuffer.
2488 * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
2489 UNSPEC_CPLX_HIGHPART): Delete.
2490 (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
2491 nvptx_output_mov_insn.
2492 (*mov<mode>_insn [SDFM): Reorder constraints to match integer moc.
2493 Use nvptx_output_mov_insn.
2494 (highpartscsf2, set_highpartscsf2, lowpartscsf2, set_lowpartscsf2):
2495 Delete.
2496 (mov<mode> [SDCM]): Delete.
2497
2498 2015-12-02 Richard Biener <rguenther@suse.de>
2499
2500 * tree.h (tree_invariant_p): Declare.
2501 * tree.c (tree_invariant_p): Export.
2502 * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
2503 create SAVE_EXPRs but reject patterns if we would need to.
2504
2505 2015-12-02 Tom de Vries <tom@codesourcery.com>
2506
2507 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
2508 (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
2509
2510 2015-12-02 Segher Boessenkool <segher@kernel.crashing.org>
2511
2512 * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
2513 (cstore<mode>4): Use it.
2514
2515 2015-12-02 Richard Biener <rguenther@suse.de>
2516
2517 PR tree-optimization/68625
2518 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
2519 cleanup_control_flow_bb.
2520 (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
2521 on all BBs, then cleanup_tree_cfg_bb and finally iterate
2522 over the worklist doing both.
2523
2524 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
2525
2526 PR tree-optimization/68432
2527 * coretypes.h (optimization_type): New enum.
2528 * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
2529 * doc/tm.texi: Regenerate.
2530 * target.def (optab_supported_p): New hook.
2531 * targhooks.h (default_optab_supported_p): Declare.
2532 * targhooks.c (default_optab_supported_p): New function.
2533 * predict.h (function_optimization_type): Declare.
2534 (bb_optimization_type): Likewise.
2535 * predict.c (function_optimization_type): New function.
2536 (bb_optimization_type): Likewise.
2537 * optabs-query.h (convert_optab_handler): Define an overload
2538 that takes an optimization type.
2539 (direct_optab_handler): Likewise.
2540 * optabs-query.c (convert_optab_handler): Likewise.
2541 (direct_optab_handler): Likewise.
2542 * internal-fn.h (direct_internal_fn_supported_p): Take an
2543 optimization_type argument.
2544 * internal-fn.c (direct_optab_supported_p): Likewise.
2545 (multi_vector_optab_supported_p): Likewise.
2546 (direct_internal_fn_supported_p): Likewise.
2547 * builtins.c (replacement_internal_fn): Update call to
2548 direct_internal_fn_supported_p.
2549 * gimple-match-head.c (build_call_internal): Likewise.
2550 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
2551 * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
2552 * tree.c (maybe_build_call_expr_loc): Likewise.
2553 * config/i386/i386.c (ix86_optab_supported_p): New function.
2554 (TARGET_OPTAB_SUPPORTED_P): Define.
2555 * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
2556 (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
2557 (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
2558 (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
2559 (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
2560 (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
2561
2562 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
2563
2564 * Makefile.in (GENSUPPORT_H): New macro.
2565 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
2566 (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
2567 (build/gencodes.o, build/genconditions.o, build/genconfig.o)
2568 (build/genconstants.o, build/genextract.o, build/genflags.o)
2569 (build/gentarget-def.o): Use it.
2570 (build/genemit.o): Likewise. Depend on internal-fn.def.
2571 * genopinit.c: Move block comment to optabs.def.
2572 (optab_tag, optab_def): Move to gensupport.h
2573 (pattern): Likewise, renaming to optab_pattern.
2574 (match_pattern): Move to gensupport.c
2575 (gen_insn): Use find_optab.
2576 (patterns, pattern_cmp): Replace pattern with optab_pattern.
2577 (main): Likewise. Use num_optabs.
2578 * optabs.def: Add comment that was previously in genopinit.c.
2579 * gensupport.h (optab_tag): Moved from genopinit.c
2580 (optab_def): Likewise, expanding commentary.
2581 (optab_pattern): Likewise, after renaming from pattern.
2582 (optabs, num_optabs, find_optab): Declare.
2583 * gensupport.c (optabs): Moved from genopinit.c.
2584 (num_optabs): New variable.
2585 (match_pattern): Moved from genopinit.c.
2586 (find_optab): New function, extracted from genopinit.c:gen_insn.
2587 * genemit.c (nofail_optabs): New variable.
2588 (emit_c_code): New function.
2589 (gen_expand): Check whether the instruction is an optab that isn't
2590 allowed to fail. Call emit_c_code.
2591 (gen_split): Call emit_c_code here too.
2592 (main): Initialize nofail_optabs. Don't emit FAIL and DONE here.
2593
2594 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2595
2596 * config/s390/predicates.md (const_mask_operand): New predicate.
2597 * config/s390/s390-builtins.def: Set a smaller bitmask
2598 for a few builtins.
2599 * config/s390/vector.md: Change predicate from immediate_operand
2600 to either const_int_operand or const_mask_operand. Add special
2601 insn conditions on patterns which have to exclude certain values.
2602 * config/s390/vx-builtins.md: Likewise.
2603
2604 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2605
2606 * config/s390/vector.md ("*vec_set<mode>"): Change shift count
2607 mode from DI to SI.
2608
2609 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2610
2611 * config/s390/s390-builtin-types.def: New builtin types added.
2612 * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
2613 * config/s390/s390.c (s390_expand_builtin): Always truncate
2614 constants to the mode in the pattern.
2615 * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
2616 respective builtin __builtin_s390_vec_splat_*.
2617
2618 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2619
2620 * config/s390/s390-builtin-types.def: Sort builtin types.
2621
2622 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2623
2624 * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
2625 condition for the RT flag.
2626
2627 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2628
2629 * config/s390/constraints.md ("jKK"): New constraint.
2630 * config/s390/s390.c (tm-constrs.h): Include for
2631 satisfies_constraint_*.
2632 (s390_legitimate_constant_p): Allow jKK constants. Use
2633 satisfies_constraint_* also for the others.
2634 (legitimate_reload_vector_constant_p): Likewise.
2635 (print_operand): Allow h output modifier on vectors.
2636 * config/s390/vector.md ("mov<mode>"): Add vrepi.
2637
2638 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2639
2640 * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
2641 letter I->K.
2642
2643 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2644
2645 * config/s390/s390.md ("bswap<mode>2"): Add support for strv and strvg.
2646 ("bswaphi2"): New pattern.
2647 New splitter for HI reg-reg bswap.
2648
2649 2015-11-27 Jiri Engelthaler <engycz@gmail.com>
2650
2651 PR driver/68029
2652 * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
2653 if it is the first parameter.
2654
2655 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
2656
2657 PR tree-optimization/68577
2658 * tree-vect-stmts.c (simple_integer_narrowing): New function.
2659 (vectorizable_call): Restrict internal function handling
2660 to NONE and NARROW cases, using simple_integer_narrowing
2661 to test for the latter. Add cost of narrowing operation
2662 and insert it where necessary.
2663
2664 2015-12-01 Andreas Tobler <andreast@gcc.gnu.org>
2665
2666 * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
2667 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
2668 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
2669
2670 2015-12-01 Nathan Sidwell <nathan@acm.org>
2671
2672 * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
2673 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
2674 ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
2675 * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
2676 (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
2677 (init_output_initializer): Call write_var_marker.
2678 (nvptx_output_aligned_decl): New.
2679 (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
2680
2681 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
2682
2683 * c-common.c (parse_optimize_options): Do not silently ignore
2684 -fstrict-aliasing changes.
2685
2686 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
2687
2688 * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
2689 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
2690 stream TYPE_ALIAS_SET.
2691 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
2692 stream TYPE_ALIAS_SET.
2693
2694 2015-12-01 Nathan Sidwell <nathan@acm.org>
2695
2696 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
2697 consider mode.
2698
2699 2015-12-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2700
2701 * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
2702 indirection for large and small code models.
2703 (adjust_vperm): Likewise.
2704
2705 2015-12-01 Julian Brown <julian@codesourcery.com>
2706 Cesar Philippidis <cesar@codesourcery.com>
2707 James Norris <James_Norris@mentor.com>
2708
2709 * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data support.
2710 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
2711 (is_gimple_omp_oacc): Add support for above.
2712 * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
2713 (omp_notice_variable): Diagnose undefined implicit uses of
2714 use_device variables in offloaded regions.
2715 (gimplify_scan_omp_clauses): Add host_data, use_device
2716 support. Diagnose undefined mapping of use_device variables in
2717 OpenACC clauses.
2718 (gimplify_omp_workshare): Add host_data support.
2719 (gimplify_expr): Likewise.
2720 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
2721 * omp-low.c (lookup_decl_in_outer_ctx)
2722 (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
2723 host_data regions.
2724 (scan_sharing_clauses): Support use_device.
2725 (check_omp_nesting_restrictions): Support host_data.
2726 (expand_omp_target): Support host_data.
2727 (lower_omp_target): Skip over outer host_data regions when looking
2728 up decls. Support use_device.
2729 (make_gimple_omp_edges): Support host_data.
2730 * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device clause.
2731
2732 2015-12-01 Marek Polacek <polacek@redhat.com>
2733
2734 PR middle-end/68582
2735 * cgraphunit.c (check_global_declaration): Only depend
2736 on TREE_THIS_VOLATILE for VAR_DECLs.
2737
2738 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
2739
2740 PR tree-optimization/68474
2741 * tree-call-cdce.c (use_internal_fn): Protect call to
2742 gen_shrink_wrap_conditions.
2743
2744 2015-12-01 Christian Bruel <christian.bruel@st.com>
2745
2746 PR target/68617
2747 * config/arm/arm.opt (unaligned_access): Save.
2748 * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
2749 * config/arm/arm.c (arm_option_override): Move unaligned_access setting.
2750 (arm_option_override_internal): ... here.
2751 * config/arm/arm.h (TARGET_32BIT_P): New macro.
2752
2753 2015-12-01 Richard Biener <rguenther@suse.de>
2754
2755 PR tree-optimization/68379
2756 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2757 always base loads on the first used DR of a group.
2758 * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
2759 Compute alignment of the first scalar element unconditionally.
2760
2761 2015-12-01 Richard Biener <rguenther@suse.de>
2762
2763 PR middle-end/68590
2764 * genmatch.c (struct capture_info): Add match_use_count.
2765 (capture_info::walk_match): Increment match_use_count.
2766 (dt_simplify::gen_1): For GENERIC, only wrap multi-use
2767 replacements in a save_expr if they occur more often than
2768 in the original expression.
2769
2770 2015-12-01 Richard Biener <rguenther@suse.de>
2771
2772 PR ipa/68470
2773 * ipa-split.c (split_function): Handle main part not returning.
2774
2775 2015-12-01 Ilya Enkovich <enkovich.gnu@gmail.com>
2776
2777 PR middle-end/68595
2778 * tree-vect-stmts.c (vect_init_vector): Cast boolean
2779 scalars to a proper value before building a vector.
2780
2781 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
2782
2783 * genattrtab.c (check_attr_test): Take an attr_desc instead of
2784 an is_const flag. Put the file_location argument first.
2785 Update recursive calls. Improve error messages.
2786 (check_attr_value): Take a file location and use it instead
2787 of attr->loc. Improve error messages. Update calls to
2788 check_attr_test.
2789 (check_defs): Update call to check_attr_value.
2790 (make_canonical): Likewise.
2791 (gen_attr): Likewise.
2792 (main): Likewise.
2793 (gen_insn_reserv): Update call to check_attr_test.
2794
2795 2015-12-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2796
2797 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
2798
2799 2015-12-01 Richard Biener <rguenther@suse.de>
2800
2801 PR middle-end/68590
2802 * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
2803
2804 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
2805
2806 * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
2807 odr_type_p): Move to ...
2808 * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
2809 odr_type_p): here; miscro-optimize.
2810
2811 2015-12-01 Bin Cheng <bin.cheng@arm.com>
2812
2813 PR tree-optimization/68529
2814 * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
2815 Compute no-overflow information for control iv.
2816 (number_of_iterations_lt, number_of_iterations_le): Add new param.
2817 (number_of_iterations_cond): Pass new argument to above functions.
2818
2819 2015-11-30 Jan Hubicka <hubicka@ucw.cz>
2820
2821 * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
2822 inlining -fno-strict-aliasing into -fstrict-aliasing body.
2823
2824 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
2825 Sebastian Pop <s.pop@samsung.com>
2826
2827 PR tree-optimization/68565
2828 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
2829 codegen_error. Fail when rhs of division operations is integer_zerop.
2830 (ternary_op_to_tree): Early return on codegen_error.
2831 (unary_op_to_tree): Same.
2832 (nary_op_to_tree): Same.
2833 (gcc_expression_from_isl_expr_op): Same.
2834 (gcc_expression_from_isl_expression): Same.
2835 (graphite_create_new_loop): On codegen_error continue generating
2836 wrong code.
2837 (graphite_create_new_loop_guard): Same.
2838 (build_iv_mapping): Same.
2839 (graphite_create_new_guard): Same.
2840
2841 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
2842 Sebastian Pop <s.pop@samsung.com>
2843
2844 * graphite-isl-ast-to-gimple.c: Fix dump messages.
2845 * graphite-scop-detection.c: Same.
2846 * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
2847
2848 2015-11-30 Cesar Philippidis <cesar@codesourcery.com>
2849
2850 * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
2851 OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
2852 (convert_local_omp_clauses): Likewise.
2853
2854 2015-11-30 Tom de Vries <tom@codesourcery.com>
2855
2856 PR tree-optimization/46032
2857 * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
2858 factored out of ...
2859 (find_func_aliases_for_call): ... here.
2860 (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
2861 BUILT_IN_GOMP_PARALLEL.
2862 (ipa_pta_execute): Same. Handle node->parallelized_function as a local
2863 function.
2864
2865 2015-11-30 Jakub Jelinek <jakub@redhat.com>
2866
2867 PR tree-optimization/68501
2868 * target.def (builtin_reciprocal): Replace the 3 arguments with
2869 a gcall * one, adjust description.
2870 * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
2871 with a gcall * one.
2872 * targhooks.c (default_builtin_reciprocal): Likewise.
2873 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
2874 targetm.builtin_reciprocal even on internal functions, adjust
2875 the arguments and allow replacing an internal function with normal
2876 built-in.
2877 * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
2878 with a gcall * one. Handle internal fns too.
2879 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
2880 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
2881 * doc/tm.texi (builtin_reciprocal): Document.
2882
2883 2015-11-30 Richard Biener <rguenther@suse.de>
2884
2885 PR tree-optimization/68592
2886 * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
2887 on the pattern def sequence.
2888
2889 2015-11-30 Nathan Sidwell <nathan@acm.org>
2890
2891 * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
2892 (write_one_arg): Reorder parms, add 'sep' param.
2893 (nvptx_write_function_decl): Rename to ...
2894 (write_fn_proto): ... here. Do name replacement. Emit linaer
2895 comment marker. Deal with both decls and defns. Simplify argument
2896 formatting.
2897 (write_function_decl_and_comment): Delete.
2898 (write_func_decl_from_insn): Rename to ...
2899 (write_fn_proto_from_insn): ... here. Don't do name replacement.
2900 (nvptx_record_fndecl): Call write_fn_proto.
2901 (nvptx_record_libfunc): Call write_fn_proto_from_insn.
2902 (nvptx_declare_function_name): Adjust for write_fn_proto changes.
2903 (nvotx_output_call_insn): Call write_fn_prot_from_insn.
2904
2905 2015-11-30 Kirill Yukhin <kirill.yukhin@intel.com>
2906
2907 * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
2908 (define_insn "*k<logic><mode>"): Use new iterator.
2909
2910 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
2911
2912 PR target/28115
2913 * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
2914 (sparc_adjust_cost): Add missing space.
2915
2916 2015-11-30 Richard Biener <rguenther@suse.de>
2917
2918 PR c/68162
2919 * dwarf2out.c (gen_type_die_with_usage): Keep variant types of arrays.
2920
2921 2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
2922
2923 * tree-if-conv.c (struct ifc_dr): Add new tree base_predicate field.
2924 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
2925 base ref, DR pairs and store base_predicate for write type DRs.
2926 (ifcvt_memrefs_wont_trap): Guard checks with
2927 -ftree-loop-if-convert-stores flag.
2928
2929 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
2930
2931 * cgraph.c (cgraph_node::make_local): No name is unique during
2932 incremental linking.
2933 * cgraph.h (can_be_discarded_p): Update comment; also common and
2934 WEAK in named sections can be discarded; when doing incremental
2935 link do not rely on resolution being the final one.
2936 * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
2937 When symbol can be discarded, do not rely on resolution info.
2938 * symtab.c (symtab_node::nonzero_address): Take into account that
2939 symbol can be discarded.
2940 * ipa-visibility.c (update_visibility_by_resolution_info): Handle
2941 definition correctly.
2942 (function_and_variable_visibility): Do not set unique_name when
2943 incrementally linking.
2944
2945 2015-11-29 Nathan Sidwell <nathan@acm.org>
2946
2947 * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
2948 const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
2949 (ctrap<mode>): Use const0_operand.
2950
2951 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
2952
2953 * ipa-devirt.c (add_type_duplicate): Remove redundant
2954 ODR violation dump.
2955
2956 2015-11-29 David Edelsohn <dje.gcc@gmail.com>
2957
2958 PR target/28115
2959 * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
2960 recog_memoized test for insn and check recog_memoized for dep_insn.
2961
2962 2015-11-28 Nathan Sidwell <nathan@acm.org>
2963
2964 * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
2965 (FRAME_POINTER_CFA_OFFSET): Define.
2966 (struct nvptx_args): Use 'tree' type.
2967 (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
2968
2969 2015-11-28 Tom de Vries <tom@codesourcery.com>
2970
2971 * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
2972
2973 2015-11-27 Jonathan Wakely <jwakely@redhat.com>
2974
2975 * doc/invoke.texi (Option Summary): Use negative form of
2976 -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
2977 sort alphabetically and re-justify.
2978
2979 2015-11-27 Vladimir Makarov <vmakarov@redhat.com>
2980
2981 PR rtl-optimization/68536
2982 * lra.c (lra_emit_add): Add code for null base.
2983 * lra-constraints.c (curr_insn_transform): Skip operators for
2984 subreg reloads.
2985
2986 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2987
2988 Revert
2989 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2990
2991 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
2992 multiple_sets.
2993 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
2994 are not modified by the final modified insns in the basic blocks.
2995
2996 2015-11-27 Nathan Sidwell <nathan@acm.org>
2997
2998 * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
2999 Don't declare.
3000 * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
3001 (nvptx_maybe_convert_symbolic_operand): Simplify.
3002 (nvptx_addr_space_from_address): Delete.
3003 (nvptx_print_operand): Adjust 'A' case.
3004
3005 2015-11-27 Richard Biener <rguenther@suse.de>
3006
3007 PR tree-optimization/68559
3008 * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
3009 peeling for gap checks ...
3010 * tree-vect-stmts.c (vectorizable_load): ... here and relax for SLP.
3011 * tree-vect-loop.c (vect_analyze_loop_2): Re-set
3012 LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
3013
3014 2015-11-27 Nathan Sidwell <nathan@acm.org>
3015
3016 * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't declare.
3017 * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
3018 (nvptx_record_fndecl): Don't return value, remove force
3019 argument. Require fndecl.
3020 (nvptx_record_libfunc): New.
3021 (nvptx_record_needed_decl): Deteermine how to record decl here.
3022 (nvptx_maybe_record_fnsym): New.
3023 (nvptx_expand_call): Don't record libfuncs here,
3024 (nvptx_maybe_convert_symbolic_operand): Use
3025 nvptx_maye_record_fnsym.
3026 (nvptx_assemble_integer): Reimplement with single switch.
3027 (nvptx_output_call_insn): Register libfuncs here.
3028 (nvptx_file_end): Adjust nvptx_record_fndecl call.
3029 * config/nvptx/nvptx.md (expand_movdi): Don't call
3030 nvptx_record_needed_decl.
3031
3032 2015-11-27 Richard Biener <rguenther@suse.de>
3033
3034 PR tree-optimization/68553
3035 * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
3036 generation for 1:1 permutations.
3037 (vect_transform_slp_perm_load): Detect 1:1 permutations.
3038
3039 2015-11-27 Bernd Schmidt <bschmidt@redhat.com>
3040
3041 * gimple.h (nonbarrier_call_p): Declare.
3042 * gimple.c (nonbarrier_call_p): New function.
3043 * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
3044 Also increment call phase for ASMs with vdef and potential barrier
3045 calls.
3046
3047 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3048
3049 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
3050 multiple_sets.
3051 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
3052 are not modified by the final modified insns in the basic blocks.
3053
3054 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3055
3056 PR rtl-optimization/68506
3057 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
3058 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
3059 blocks.
3060
3061 2015-11-27 Martin Liska <mliska@suse.cz>
3062
3063 PR c++/68312
3064 * vec.h (release_vec_vec): New function.
3065
3066 2015-11-27 Jakub Jelinek <jakub@redhat.com>
3067
3068 PR tree-optimization/68552
3069 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
3070 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
3071 or whether v0 == v1.
3072
3073 2015-11-27 Martin Liska <mliska@suse.cz>
3074
3075 * tree-ssa-uninit.c: Fix whitespaces in the source file.
3076 The change is just automatical.
3077
3078 2015-11-27 Martin Liska <mliska@suse.cz>
3079
3080 * tree-chkp.c (chkp_make_static_bounds): Release buffer
3081 used for string.
3082
3083 2015-11-27 Martin Liska <mliska@suse.cz>
3084
3085 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3086 Do not release memory for comp_alias_ddrs.
3087 * tree-vect-loop.c (destroy_loop_vec_info): Release
3088 the memory for all loop_vec_info.
3089
3090 2015-11-27 Martin Liska <mliska@suse.cz>
3091
3092 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
3093 of a local-scope vec.
3094 (struct final_warning_record): Use auto_vec instead of vec.
3095
3096 2015-11-27 Richard Biener <rguenther@suse.de>
3097
3098 PR tree-optimization/68553
3099 * tree-vect-slp.c (vect_get_mask_element): Remove.
3100 (vect_transform_slp_perm_load): Implement in a simpler way.
3101
3102 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
3103
3104 PR rtl-optimization/67753
3105 PR rtl-optimization/64164
3106 * function.c (assign_parm_setup_block): Right-shift
3107 upward-padded big-endian args when bypassing the stack slot.
3108
3109 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
3110
3111 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
3112 `-mcompact-branches='.
3113 (MIPS Options): Likewise.
3114
3115 2015-11-26 Jakub Jelinek <jakub@redhat.com>
3116
3117 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
3118
3119 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
3120
3121 * doc/install.texi (Prerequisites): Increase ISL requirement to
3122 0.14 or 0.15.
3123
3124 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3125
3126 * config/aarch64/arm_neon.h
3127 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
3128 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
3129 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
3130 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
3131 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
3132 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
3133 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
3134 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
3135 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
3136 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
3137 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
3138 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
3139
3140 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3141
3142 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
3143 (vqrdmlahq_s16, vqrdmlahq_s32): New.
3144 (vqrdmlsh_s16, vqrdmlsh_s32): New.
3145 (vqrdmlshq_s16, vqrdmlshq_s32): New.
3146
3147 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3148
3149 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
3150 ARM_FEATURE_QRDMX.
3151
3152 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
3153
3154 PR debug/53927
3155 * tree-nested.c (finalize_nesting_tree_1): Append a field to
3156 hold the frame base address.
3157 * dwarf2out.c (gen_subprogram_die): Generate for
3158 DW_AT_static_link a location description that computes the value
3159 of this field.
3160
3161 2015-11-26 Tom de Vries <tom@codesourcery.com>
3162
3163 revert:
3164 2015-11-25 Tom de Vries <tom@codesourcery.com>
3165
3166 * cfgloop.c (find_single_latch): New function, factored out of ...
3167 (flow_loops_find): ... here.
3168 (verify_loop_structure): Improve verification of loop->latch.
3169 * cfgloop.h (find_single_latch): Declare.
3170 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
3171
3172 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3173
3174 * config/aarch64/aarch64-simd-builtins.def:
3175 Add missing changes from r230962.
3176
3177 2015-11-26 Nathan Sidwell <nathan@acm.org>
3178
3179 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
3180 arg with name. Don't deal with split regs. Tweak formatting.
3181 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
3182 (nvptx_output_call_insn): Don't deal with split regs here.
3183
3184 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3185
3186 * config/aarch64/aarch64-simd-builtins.def
3187 (sqrdmlah, sqrdmlsh): New.
3188 (sqrdmlah_lane, sqrdmlsh_lane): New.
3189 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
3190
3191 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3192
3193 * config/aarch64/aarch64-simd.md
3194 (aarch64_sqmovun<mode>): Fix some white-space.
3195 (aarch64_<sur>qmovun<mode>): Likewise.
3196 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
3197 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
3198 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
3199 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
3200 (UNSPEC_SQRDMLSH): New.
3201 (SQRDMLH_AS): New.
3202 (rdma_as): New.
3203
3204 2015-11-26 Richard Biener <rguenther@suse.de>
3205
3206 PR tree-optimization/66721
3207 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
3208 iteration cost earlier. Re-do analysis without SLP when
3209 vectorization using SLP fails and without has a chance to succeed.
3210
3211 2015-11-26 Richard Biener <rguenther@suse.de>
3212
3213 * genmatch.c (dt_simplify::gen_1): For generic wrap all
3214 multi-result-use captures in a SAVE_EXPR.
3215
3216 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3217
3218 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
3219 (TARGET_SIMD_RDMA): New.
3220
3221 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3222
3223 * combine.c (subst): Do not return clobber of zero in widening mult
3224 case. Just return x unchanged if it is a no-op substitution.
3225
3226 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
3227
3228 PR target/68416
3229 * config/i386/i386.h (enum reg_class): Add
3230 bounds registers to ALL_REGS.
3231
3232 2015-11-26 Jakub Jelinek <jakub@redhat.com>
3233
3234 PR tree-optimization/68128
3235 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
3236 * gimplify.c: Include gimple-walk.h.
3237 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
3238 (omp_notice_variable): Set flags to n->value if n already
3239 exists in target region, but we need to jump to do_outer.
3240 (omp_shared_to_firstprivate_optimizable_decl_p,
3241 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
3242 functions.
3243 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
3244 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
3245 not modified in the body. Call omp_mark_stores for outer
3246 contexts on OMP_CLAUSE_SHARED clauses if they could be written
3247 in the body or on OMP_CLAUSE_LASTPRIVATE.
3248 (gimplify_adjust_omp_clauses): Add body argument, call
3249 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
3250 Set OMP_CLAUSE_SHARED_READONLY
3251 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
3252 not modified in the body. Call omp_mark_stores for outer
3253 contexts on OMP_CLAUSE_SHARED clauses if they could be written
3254 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
3255 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
3256 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
3257 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
3258 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
3259 * tree-nested.c (convert_nonlocal_omp_clauses,
3260 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
3261 non-local vars or local vars referenced from nested routines.
3262 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
3263 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
3264 TREE_READONLY, don't call use_pointer_for_field with non-NULL
3265 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
3266
3267 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
3268
3269 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
3270 about signed left shift stronger and clarify the cases when they're
3271 broken.
3272
3273 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3274 Bernd Schmidt <bschmidt@redhat.com>
3275
3276 PR rtl-optimization/67226
3277 * calls.c (store_one_arg): Take into account
3278 crtl->args.pretend_args_size when checking for overlap between
3279 arg->value and argblock + arg->locate.offset during sibcall
3280 optimization.
3281
3282 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
3283
3284 * config/aarch64/aarch64.md (cbranch<mode>4): Use
3285 aarch64_fp_compare_operand.
3286 (store_pairsf): Use aarch64_reg_or_fp_zero.
3287 (store_pairdf): Likewise.
3288 (cstore<mode>4): Use aarch64_fp_compare_operand.
3289 (cmov<mode>6): Likewise.
3290 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
3291
3292 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
3293 Sebastian Pop <s.pop@samsung.com>
3294
3295 PR tree-optimization/68453
3296 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
3297 not redirect edges already pointing to their destination.
3298 (translate_isl_ast_node_for): Split edges after loops to create
3299 basic blocks for close phi nodes. Save merge points at the end of
3300 a loop guard.
3301 (translate_isl_ast_node_if): Save merge points at the end of the
3302 if region.
3303 (add_close_phis_to_outer_loops): New.
3304 (add_close_phis_to_merge_points): New.
3305 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
3306 (copy_bb_and_scalar_dependences): Do not split basic blocks on
3307 loop close phi locations.
3308
3309 2015-11-25 Jan Hubicka <jh@suse.cz>
3310
3311 * ipa-visibility.c (cgraph_externally_visible_p,
3312 varpool_node::externally_visible_p): When doing incremental linking,
3313 hidden symbols may be still used later.
3314 (update_visibility_by_resolution_info): Do not drop weak during
3315 incremental link.
3316 (function_and_variable_visibility): Fix formating.
3317 * flag-types.h (lto_linker_output): Declare.
3318 * common.opt 9flag_incremental_link): New flag.
3319
3320 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
3321
3322 * config/rs6000/constraints.md (wb constraint): New constraint for
3323 ISA 3.0 d-form scalar addressing.
3324
3325 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
3326 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
3327 Altivec registers. Add wb constraint for Altivec registers with
3328 D-form addressing. If we have ISA 3.0 d-form support, undo
3329 secondary reload support for using FPR registers if we want to do
3330 D-form addressing.
3331 (rs6000_debug_reg_global): Likewise.
3332 (rs6000_setup_reg_addr_masks): Likewise.
3333 (rs6000_init_hard_regno_mode_ok): Likewise.
3334 (rs6000_secondary_reload): Likewise.
3335 (rs6000_preferred_reload_class): Likewise.
3336 (rs6000_secondary_reload_class): Likewise.
3337
3338 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
3339 constraint.
3340
3341 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
3342 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
3343 (f32_lm2): Likewise.
3344 (f32_li2): Likewise.
3345 (f32_sr2): Likewise.
3346 (f32_sm2): Likewise.
3347 (f32_si2): Likewise.
3348 (f64_p9): Likewise.
3349 (extendsfdf2_fpr): Likewise.
3350 (mov<mode>_hardfloat): Likewise.
3351 (mov<mode>_hardfloat32): Likewise.
3352 (mov<mode>_hardfloat64): Likewise.
3353
3354 * doc/md.texi (RS/6000 constraints): Document wb constraint.
3355 Fixup we constraint documentation.
3356
3357 2015-11-25 Tom de Vries <tom@codesourcery.com>
3358
3359 * omp-low.c (pass_expand_omp_ssa::clone): New function.
3360 * passes.def: Add pass_oacc_kernels pass group.
3361 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
3362
3363 2015-11-25 Tom de Vries <tom@codesourcery.com>
3364
3365 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
3366 Declare.
3367 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
3368 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
3369 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
3370 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
3371
3372 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
3373
3374 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
3375 TV_IPA_LTO_OUTPUT): New.
3376 * lto-compress.c: Include timevar.h
3377 (lto_end_compression, lto_end_uncompression): Add timers.
3378 * langhooks.c: Include timevar.h.
3379 (lhd_append_data): Add timer.
3380
3381 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
3382
3383 * varasm.c (default_elf_asm_output_limited_string,
3384 default_elf_asm_output_ascii): Replace fprintf by putc.
3385
3386 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
3387
3388 PR rtl-optimization/67954
3389 * lra-constraints.c (curr_insn_transform): Add check on scratch
3390 pseudo when change class to NO_REGS. Add an assert.
3391
3392 2015-11-25 Nathan Sidwell <nathan@acm.org>
3393
3394 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
3395 constraint is 'n'.
3396 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg number.
3397 (nvptx_write_function_decl): Number args from 0.
3398 (nvptx_declare_function_name): Likewise.
3399 (nvptx_function_incoming_arg): Likewise.
3400 (nvptx_output_call_insn): Correct formatting.
3401
3402 2015-11-25 David Sherwood <david.sherwood@arm.com>
3403
3404 * optabs.def: Add new optabs fmax_optab/fmin_optab.
3405 * internal-fn.def: Add new fmax/fmin internal functions.
3406 * doc/md.texi: Add fmin and fmax patterns.
3407
3408 2015-11-25 Jason Merrill <jason@redhat.com>
3409
3410 PR c++/68385
3411 * tree.c (integer_zerop, integer_onep, integer_each_onep)
3412 (integer_all_onesp, integer_minus_onep, integer_pow2p)
3413 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
3414 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
3415
3416 2015-11-25 Richard Biener <rguenther@suse.de>
3417
3418 PR middle-end/68528
3419 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
3420 on stripped operands.
3421
3422 2015-11-25 Nathan Sidwell <nathan@acm.org>
3423
3424 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
3425 (nvptx_declare_function_name): Move assignments next to register
3426 declarations, and process params here.
3427
3428 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
3429
3430 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
3431 both the symbol and the "dot" symbol for function descriptors. Fix
3432 inversion for rename of symbols with dollar sign.
3433
3434 2015-11-25 Tom de Vries <tom@codesourcery.com>
3435
3436 * cfgloop.c (find_single_latch): New function, factored out of ...
3437 (flow_loops_find): ... here.
3438 (verify_loop_structure): Improve verification of loop->latch.
3439 * cfgloop.h (find_single_latch): Declare.
3440 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
3441
3442 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3443
3444 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
3445 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
3446 (STARTFILE_SPEC): Use %(startfile_vtv).
3447 (ENDFILE_SPEC): Use %(endfile_vtv).
3448 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
3449 ENDFILE_VTV_SPEC.
3450
3451 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
3452
3453 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
3454
3455 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
3456 noce_can_store_speculate): Delete.
3457 (noce_process_if_block): Don't try to handle single MEM stores.
3458 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
3459 * alias.c (memory_must_be_modified_in_insn_p): Delete.
3460
3461 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3462
3463 PR rtl-optimization/68435
3464 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
3465 for conflicts between a, b and the set destinations.
3466
3467 2015-11-25 Richard Biener <rguenther@suse.de>
3468
3469 PR tree-optimization/68517
3470 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
3471 Properly handle zero-sized types.
3472
3473 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
3474
3475 * ipa-inline-analysis.c: Include gimplify.h
3476 (set_cond_stmt_execution_predicate,
3477 set_switch_stmt_execution_predicate): Be sure to not leak locations
3478 to function body.
3479
3480 2015-11-25 Jakub Jelinek <jakub@redhat.com>
3481
3482 PR target/67089
3483 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
3484 match_uaddsub_overflow): New functions.
3485 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
3486
3487 2015-11-25 Richard Biener <rguenther@suse.de>
3488
3489 PR tree-optimization/68492
3490 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
3491 op from scalars after operand swapping.
3492
3493 2015-11-25 Richard Biener <rguenther@suse.de>
3494
3495 PR tree-optimization/68502
3496 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
3497 check that the step is a multiple of the type size.
3498
3499 2015-11-24 Michael Collison <michael.collison@linaro.org>
3500
3501 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
3502 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
3503 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
3504
3505 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
3506
3507 * frame-header-opt.c (gate): Check for optimize > 0.
3508 (has_inlined_assembly): New function.
3509 (needs_frame_header_p): Remove is_leaf_function check,
3510 add argument type check.
3511 (callees_functions_use_frame_header): Add is_leaf_function
3512 and has_inlined_assembly calls..
3513 (set_callers_may_not_allocate_frame): New function.
3514 (frame_header_opt): Add is_leaf_function call, add
3515 set_callers_may_not_allocate_frame call.
3516 * config/mips/mips.c (mips_compute_frame_info): Add check
3517 to see if callee saved regs can be put in frame header.
3518 (mips_expand_prologue): Add check to see if step1 is zero,
3519 fix cfa restores when using frame header to store regs.
3520 (mips_can_use_return_insn): Check to see if registers are
3521 stored in frame header.
3522 * config/mips/mips.h (machine_function): Add
3523 callers_may_not_allocate_frame and
3524 use_frame_header_for_callee_saved_regs fields.
3525
3526 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
3527
3528 PR rtl-optimization/68520
3529 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
3530 its bit was already set in BB_WITH.
3531
3532 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
3533
3534 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
3535 double check that type is main variant.
3536 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
3537 variant.
3538 (verify_type_variant): Verify that variants have no
3539 TYPE_ALIAS_SET_KNOWN_P set
3540 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
3541 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
3542 only for main variants; stream TYPE_ALIAS_SET as a bit.
3543 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
3544 accordingly.
3545
3546 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
3547
3548 * tree.c (make_vector_type): Properly compute canonical type of the
3549 main variant.
3550 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
3551 a main variant.
3552
3553 2015-11-24 Nathan Sidwell <nathan@acm.org>
3554
3555 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
3556 VOIDmode, don't alter incoming mode.
3557 (nvptx_split_reg_p): Delete.
3558 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
3559 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
3560 maybe_split_mode calls.
3561 (nvptx_print_operand): Use maybe_split_mode.
3562
3563 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
3564
3565 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
3566 only for types where LTO sets them.
3567 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
3568 (make_vector_type): Likewise.
3569 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
3570 * tree.h (canonical_type_used_p): New inline.
3571 * alias.c (get_alias_set): Handle structural equality for all
3572 types that pass canonical_type_used_p.
3573 (record_component_aliases): Look through all types with
3574 record_component_aliases for possible pointers; sanity check that
3575 the alias sets match.
3576
3577 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3578
3579 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
3580
3581 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
3582
3583 * tree.c (free_node): New function.
3584 (type_hash_canon): Use it.
3585 * tree.h (free_node): Declare.
3586
3587 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
3588 Michael Meissner <meissner@linux.vnet.ibm.com>
3589
3590 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
3591 (Fv2): New mode attribute to be used when ISA 2.07 instructions
3592 are used on SF values, and ISA 2.06 instructions on DF values.
3593 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
3594 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
3595 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
3596 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
3597 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
3598 (fre<Fs>): Use <Fv2> instead of <Fv>.
3599 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
3600 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
3601 (xsrdpi<mode>): Add support for the lround function.
3602 (lround<mode>di2): Likewise.
3603 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
3604 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
3605 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
3606 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
3607
3608 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
3609 Sebastian Pop <s.pop@samsung.com>
3610
3611 PR tree-optimization/67984
3612 * graphite-isl-ast-to-gimple.c (is_constant): New.
3613 (get_rename): Call is_constant.
3614 (get_new_name): Same.
3615
3616 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
3617 Sebastian Pop <s.pop@samsung.com>
3618
3619 * graphite-dependences.c: Only include graphite.h.
3620 * graphite-isl-ast-to-gimple.c: Same.
3621 * graphite-optimize-isl.c: Same.
3622 * graphite-poly.c: Same.
3623 * graphite-scop-detection.c: Same.
3624 * graphite-sese-to-poly.c: Same.
3625 * graphite.c: Same.
3626 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
3627 * graphite-poly.h: Same.
3628 * graphite-scop-detection.h: Same.
3629 * graphite.h: New.
3630
3631 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
3632
3633 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
3634 DW_TAG_namespace for IMPORTED_DECL declarations. Call
3635 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
3636 function already takes care of checking what it can emit.
3637
3638 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
3639
3640 * doc/invoke.texi (-fpic): Add the AArch64 limit.
3641 (-fPIC): Add AArch64.
3642
3643 2015-11-24 Tom de Vries <tom@codesourcery.com>
3644
3645 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
3646 (pass_lim::execute): Allow to run outside pass_tree_loop.
3647
3648 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
3649
3650 * config/aarch64/aarch64.md (add<mode>3):
3651 Block early expansion into 2 add instructions.
3652 (add<mode>3_pluslong): New pattern to combine complex
3653 immediates into 2 additions.
3654
3655 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
3656
3657 PR target/66217
3658 PR target/67677
3659 PR target/68332
3660 * config/rs6000/predicates.md (and_operand): Check that the operand
3661 is a const_int before calling rs6000_is_valid_and_mask.
3662
3663 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3664
3665 * config/aarch64/aarch64.md (*condjump): Rename to...
3666 (condjump): ... This.
3667 (*compare_condjump<mode>): New define_insn_and_split.
3668 (*compare_cstore<mode>_insn): Likewise.
3669 (*cstore<mode>_insn): Rename to...
3670 (cstore<mode>_insn): ... This.
3671 * config/aarch64/iterators.md (CMP): Handle ne code.
3672 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
3673
3674 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
3675
3676 PR target/68497
3677 * config/i386/i386.c (output_387_binary_op): Fix assertion for
3678 -fno-checking case.
3679
3680 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3681
3682 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
3683 (val_ssa_equiv_hash_traits::remove): Likewise.
3684 (pass_uncprop::execute): Adjust.
3685
3686 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3687
3688 * hash-map-traits.h (simple_hashmap_traits ::remove): call
3689 destructors on values that are being removed.
3690 * mem-stats.h (hash_map): Pass type of values to
3691 simple_hashmap_traits.
3692 * tree-sra.c (sra_deinitialize): Remove work around for hash
3693 maps not destructing values.
3694 * genmatch.c (sinfo_hashmap_traits): Adjust.
3695 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
3696
3697 2015-11-24 Richard Biener <rguenther@suse.de>
3698 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3699
3700 PR middle-end/68375
3701 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
3702 bogus assertion.
3703
3704 2015-11-24 Jakub Jelinek <jakub@redhat.com>
3705
3706 PR target/68483
3707 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
3708 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
3709 returns false.
3710 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
3711 whenever first is nelt or above. Don't mask expected with
3712 2 * nelt - 1.
3713
3714 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
3715
3716 PR c/68337
3717 * gimple-fold.c: Include ipa-chkp.h.
3718 (gimple_fold_builtin_memory_op): Don't fold call if we
3719 are going to instrument it and it may copy pointers.
3720
3721 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
3722 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3723
3724 PR rtl-optimization/68194
3725 PR rtl-optimization/68328
3726 PR rtl-optimization/68185
3727 * ree.c (combine_reaching_defs): Reject copy_needed case if
3728 copies_list is not empty.
3729
3730 2015-11-24 Richard Biener <rguenther@suse.de>
3731
3732 PR middle-end/68221
3733 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
3734 use mem_ref_offset.
3735
3736 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
3737
3738 PR rtl-optimization/68381
3739 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
3740 is poisoned.
3741
3742 2015-11-23 Nick Clifton <nickc@redhat.com>
3743 Jeff Law <law@redhat.com>
3744
3745 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
3746 the source/dest of the target extension require a different number of
3747 hard registers.
3748 (combine_set_extension): Remove #if 0 code.
3749
3750 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
3751 Sebastian Pop <s.pop@samsung.com>
3752
3753 PR tree-optimization/68314
3754 * graphite-optimize-isl.c (optimize_isl): Do not call
3755 isl_union_map_is_equal.
3756 * graphite-poly.c (new_scop): Remove original_schedule.
3757 (free_scop): Same.
3758 * graphite-poly.h (struct scop): Same.
3759 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons):
3760 Remove.
3761 (build_pbb_scattering_polyhedrons): Add back.
3762 (build_scop_minimal_scattering): Remove.
3763 (build_scop_scattering): Add back.
3764 (build_scop_original_schedule): Remove.
3765 (build_poly_scop): Revert to only call build_scop_scattering.
3766
3767 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
3768 Sebastian Pop <s.pop@samsung.com>
3769
3770 PR tree-optimization/68493
3771 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
3772 missing early return when codegen_error is set.
3773
3774 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
3775 Sebastian Pop <s.pop@samsung.com>
3776
3777 PR tree-optimization/68279
3778 * graphite-poly.c (new_scop): Remove poly_scop_p.
3779 * graphite-poly.h (struct scop): Same.
3780 (build_poly_scop): Declare.
3781 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
3782 (cleanup_loop_iter_dom): New.
3783 (build_loop_iteration_domains): Early return when scev analysis fails.
3784 (create_pw_aff_from_tree): Same.
3785 (add_condition_to_pbb): Same.
3786 (add_conditions_to_domain): Same.
3787 (add_conditions_to_constraints): Same.
3788 (build_scop_iteration_domain): Same.
3789 (build_poly_scop): Same. Do not initialize poly_scop_p.
3790 * graphite-sese-to-poly.h: Remove.
3791 * graphite.c: Do not include graphite-sese-to-poly.h.
3792 (graphite_transform_loops): Stop before code generation when
3793 build_poly_scop fails.
3794 * sese.c (scalar_evolution_in_region): Add fixme note about scev
3795 analysis.
3796
3797 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
3798 Sebastian Pop <s.pop@samsung.com>
3799
3800 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
3801 Remove call to update_ssa.
3802 * sese.c (sese_insert_phis_for_liveouts): Same.
3803
3804 2015-11-23 Marek Polacek <polacek@redhat.com>
3805
3806 PR tree-optimization/68455
3807 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
3808 extract_range_from_multiplicative_op_1 on symbolic ranges.
3809
3810 2015-11-23 Richard Henderson <rth@redhat.com>
3811
3812 * optabs.def (uaddv4_optab, usubv4_optab): New.
3813 * internal-fn.c (expand_addsub_overflow): Use them.
3814 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
3815
3816 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
3817 to reversed operands.
3818 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
3819 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
3820 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
3821 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
3822 (*add<SWI>3_cconly_overflow_2): New.
3823 (*add<SWI>3_cc_overflow_2): New.
3824 (*addsi3_zext_cc_overflow_2): New.
3825
3826 2015-11-23 Richard Biener <rguenther@suse.de>
3827
3828 PR tree-optimization/68465
3829 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
3830 Also record equalities from multiple predecessor blocks if
3831 only one non-backedge exists.
3832
3833 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3834
3835 PR target/68363
3836 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
3837 that are not INSN_P.
3838
3839 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
3840
3841 * config/aarch64/aarch64-builtins.c
3842 (aarch64_gimple_fold_builtin): Fold FMULX.
3843
3844 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
3845
3846 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
3847 * graphite-dependences.c: Define USES_ISL. Include ISL header files
3848 after GCC header files and before graphite header files.
3849 * graphite-dependences.c: Same.
3850 * graphite-isl-ast-to-gimple.c: Same.
3851 * graphite-optimize-isl.c: Same.
3852 * graphite-poly.c: Same.
3853 * graphite-scop-detection.c: Same.
3854 * graphite-sese-to-poly.c: Same.
3855 * graphite.c: Same.
3856
3857 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
3858 Jiong Wang <jiong.wang@arm.com>
3859
3860 PR tree-optimization/68317
3861 PR tree-optimization/68326
3862 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
3863 final min and max are not infinity.
3864
3865 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3866 Richard Biener <rguenther@suse.de>
3867
3868 PR tree-optimization/68327
3869 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
3870 compute vectype for non-relevant mask producers.
3871 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
3872 relevance earlier.
3873
3874 2015-11-23 Tom de Vries <tom@codesourcery.com>
3875
3876 PR tree-optimization/68460
3877 * tree-parloops.c (gather_scalar_reductions): Also call
3878 free_stmt_vec_info_vec if simple_loop_info == NULL.
3879
3880 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
3881
3882 * opts.c (finish_options): Allow -fsanitize-recover=address for
3883 userspace sanitization.
3884 * asan.c (asan_expand_check_ifn): Redefine recover_p.
3885 * doc/invoke.texi (fsanitize-recover): Update documentation.
3886
3887 2015-11-23 Tom de Vries <tom@codesourcery.com>
3888
3889 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
3890
3891 2015-11-23 Richard Biener <rguenther@suse.de>
3892
3893 PR tree-optimization/68445
3894 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
3895 two different strides.
3896
3897 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
3898
3899 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
3900 * config/s390/s390.c (s390_check_symref_alignment): Use new
3901 symref flags, early abort on wrong alignment
3902 (s390_secondary_reload): Use new symref flags.
3903 (s390_encode_section_info): Likewise.
3904 * config/s390/predicates.md: Likewise.
3905
3906 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
3907
3908 PR target/68390
3909 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
3910 for indirect function call.
3911
3912 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
3913
3914 * config/aarch64/aarch64-simd.md
3915 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
3916 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
3917 (*aarch64_mulx_elt_to_64v2df): Likewise.
3918 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
3919 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
3920 (vmulx_lane_f64): Likewise.
3921 (vmulxq_lane_f32): Refactored & moved.
3922 (vmulxq_lane_f64): Likewise.
3923 (vmulx_laneq_f32): New.
3924 (vmulx_laneq_f64): Likewise.
3925 (vmulxq_laneq_f32): Likewise.
3926 (vmulxq_laneq_f64): Likewise.
3927 (vmulxs_lane_f32): Likewise.
3928 (vmulxs_laneq_f32): Likewise.
3929 (vmulxd_lane_f64): Likewise.
3930 (vmulxd_laneq_f64): Likewise.
3931
3932 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
3933
3934 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
3935 In LTO we do not compute TYPE_CANONICAL of pointers.
3936 (gimple_canonical_types_compatible_p): Improve coments; sanity check
3937 that pointers do not have canonical type that would make us believe
3938 they are different.
3939 * alias.c (get_alias_set): Do structural type equality on pointers;
3940 enable pointer path for LTO; also glob pointer to vector with pointer
3941 to vector element; glob pointers and references for LTO; do more strict
3942 sanity checking about build_pointer_type returning the canonical type
3943 which is also the main variant.
3944 (record_component_aliases): When component type is pointer and we
3945 do LTO; record void_type_node alias set.
3946
3947 2015-11-21 Nathan Sidwell <nathan@acm.org>
3948
3949 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
3950
3951 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
3952 leading blank line.
3953 (write_func_decl_from_insn): Likewise.
3954 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
3955 (nvptx_file_end): Likewise.
3956 (nvptx_function_end): Undent output.
3957 (nvptx_expand_call): Fix formatting.
3958 (nvptx_output_call_insn): Indent output.
3959 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
3960 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
3961
3962 2015-11-21 Jakub Jelinek <jakub@redhat.com>
3963
3964 PR debug/66432
3965 * tree-inline.c (copy_debug_stmt): If
3966 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
3967 in decl_debug_args, don't call remap_gimple_op_r on it.
3968
3969 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
3970
3971 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
3972 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
3973 Check that all record types are complete.
3974 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
3975 compare alias sets for types w/o alias sets.
3976
3977 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
3978
3979 * config/sparc/sparc.md (umulxhi_vis): Move around.
3980 (*umulxhi_sp64): Likewise.
3981 (umulxhi_v8plus): Likewise.
3982 (xmulx_vis): Likewise.
3983 (*xmulx_sp64): Likewise.
3984 (xmulx_v8plus): Likewise.
3985 (xmulxhi_vis): Likewise.
3986 (*xmulxhi_sp64): Likewise.
3987 (xmulxhi_v8plus): Likewise.
3988
3989 2015-11-20 David Malcolm <dmalcolm@redhat.com>
3990
3991 PR 62314
3992 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
3993 (class layout): Update comment
3994 (layout::print_any_fixits): New method.
3995 (layout::move_to_column): New method.
3996 (diagnostic_show_locus): Add call to layout.print_any_fixits.
3997
3998 2015-11-20 Jakub Jelinek <jakub@redhat.com>
3999
4000 PR middle-end/68221
4001 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
4002 has non-zero bias, subtract it in integer type instead of
4003 pointer plus of negated bias.
4004
4005 PR middle-end/68339
4006 * omp-low.c (expand_simd_clones): Call node->get_body () before
4007 allocating stuff in GC.
4008
4009 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
4010
4011 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
4012
4013 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
4014
4015 * config/aarch64/aarch64.md (predicated): Copy attribute from
4016 "arm.md".
4017 * config/arm/arm.md (predicated): Added description.
4018
4019 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4020
4021 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
4022 for unaligned_access.
4023 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
4024 from matching condition.
4025 (unaligned_loadhis): Likewise.
4026 (unaligned_loadhiu): Likewise.
4027 (unaligned_storesi): Likewise.
4028 (unaligned_storehi): Likewise.
4029
4030 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4031
4032 PR target/68149
4033 * config/arm/arm.md (unaligned_loaddi): Delete.
4034 (unaligned_storedi): Likewise.
4035 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
4036 unaligned DImode memory ops. Instead perform two back-to-back
4037 unaligned SImode ops.
4038
4039 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
4040 James Norris <jnorris@codesourcery.com>
4041
4042 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
4043 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
4044
4045 2015-11-20 Alan Hayward <alan.hayward@arm.com>
4046
4047 PR tree-optimization/68413
4048 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
4049 evolution base
4050 (vectorizable_reduction): Use cached base
4051
4052 2015-11-20 Tom de Vries <tom@codesourcery.com>
4053
4054 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
4055 dump-file string.
4056 (try_create_reduction_list): Same. Fix typo in dump-file string.
4057
4058 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
4059
4060 * doc/md.texi (Standard Names): Move entry for addptr3 around,
4061 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
4062 glitch in entries for cbranch4 and jump.
4063
4064 2015-11-20 Tom de Vries <tom@codesourcery.com>
4065
4066 PR tree-optimization/68373
4067 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
4068 of ...
4069 (scev_const_prop): ... here.
4070 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
4071 * tree-parloops.c (try_create_reduction_list): Call
4072 final_value_replacement_loop.
4073
4074 2015-11-20 Bin Cheng <bin.cheng@arm.com>
4075
4076 PR tree-optimization/52272
4077 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
4078 (struct iv_common_cand_hasher): New struct.
4079 (iv_common_cand_hasher::hash): New function.
4080 (iv_common_cand_hasher::equal): New function.
4081 (struct ivopts_data): New fields, iv_common_cand_tab and
4082 iv_common_cands.
4083 (tree_ssa_iv_optimize_init): Initialize above fields.
4084 (record_common_cand, common_cand_cmp): New functions.
4085 (add_iv_candidate_derived_from_uses): New function.
4086 (add_iv_candidate_for_use): Record iv_common_cands derived from
4087 iv use in hash table, instead of adding candidates directly.
4088 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
4089 (record_important_candidates): Add important candidates to iv uses'
4090 related_cands. Always keep related_cands for future use.
4091 (try_add_cand_for): Use iv uses' related_cands.
4092 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
4093 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
4094
4095 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4096
4097 * config/s390/s390.md ("bswaphi2"): New pattern.
4098
4099 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
4100
4101 * config/s390/s390.md (GPR1_REGNUM): New constant.
4102 ("*trunc<BFP:mode><DFP_ALL:mode>2")
4103 ("*trunc<DFP_ALL:mode><BFP:mode>2")
4104 ("trunc<BFP:mode><DFP_ALL:mode>2")
4105 ("trunc<DFP_ALL:mode><BFP:mode>2")
4106 ("*extend<BFP:mode><DFP_ALL:mode>2")
4107 ("*extend<DFP_ALL:mode><BFP:mode>2")
4108 ("extend<BFP:mode><DFP_ALL:mode>2")
4109 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
4110
4111 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
4112 Sebastian Pop <s.pop@samsung.com>
4113
4114 PR tree-optimization/68428
4115 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
4116 over basic blocks outside the scop.
4117
4118 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
4119 Sebastian Pop <s.pop@samsung.com>
4120
4121 PR tree-optimization/68341
4122 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
4123 gcc_unreachable and safely fail codegen.
4124 (copy_loop_close_phi_args): Do not insert merge phis in a basic
4125 block with loop phi nodes.
4126 (edge_for_new_close_phis): New.
4127 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
4128
4129 2015-11-19 Nathan Sidwell <nathan@acm.org>
4130
4131 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
4132 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
4133 (nvptx_declare_objec_name): Likewise.
4134
4135 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
4136
4137 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
4138 (get_false_edge_from_guard_bb): Move...
4139 * sese.c (get_false_edge_from_guard_bb)
4140 (get_true_edge_from_guard_bb): ... here.
4141
4142 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
4143
4144 Revert
4145 2015-11-18 Alan Modra <amodra@gmail.com>
4146
4147 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
4148 type-limits warning.
4149
4150
4151 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4152
4153 * tree.h (desired_pro_or_demotion_p): New function.
4154 * tree-vrp.c (simplify_cond_using_ranges): Call it.
4155
4156 2015-11-19 Michael Matz <matz@suse.de>
4157
4158 PR rtl-optimization/68392
4159 * fwprop.c (update_uses): Use flag_checking instead of
4160 gcc_checking_assert.
4161
4162 2015-11-19 David Malcolm <dmalcolm@redhat.com>
4163
4164 * doc/gty.texi (Support for inheritance): Fix missing
4165 parentheses in example.
4166
4167 2015-11-19 Marek Polacek <polacek@redhat.com>
4168
4169 PR tree-optimization/68431
4170 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
4171
4172 2015-11-19 Nathan Sidwell <nathan@acm.org>
4173
4174 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
4175 atomic_exchange<mode>): Input values can be immediates.
4176
4177 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
4178
4179 PR lto/61313
4180 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
4181 by the user.
4182 * configure: Regenerate.
4183
4184 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
4185
4186 PR target/68408
4187 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
4188 (DTORS_SECTION_ASM_OP): Likewise.
4189
4190 2015-11-19 Jakub Jelinek <jakub@redhat.com>
4191
4192 PR rtl-optimization/68376
4193 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
4194 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
4195
4196 2015-11-19 Richard Biener <rguenther@suse.de>
4197
4198 PR middle-end/68117
4199 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
4200 redirect_edge_var_map_destroy.
4201
4202 2015-11-19 Jakub Jelinek <jakub@redhat.com>
4203
4204 PR target/67770
4205 * config/i386/i386.md (simple_return): Disable if
4206 ix86_static_chain_on_stack is true.
4207
4208 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
4209
4210 PR bootstrap/68393
4211 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
4212 destinations.
4213
4214 2015-11-18 Jeff Law <law@redhat.com>
4215
4216 PR tree-optimization/68198
4217 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
4218 between threading a multi-way branch and a thread path that contains
4219 a multi-way branch. Disallow the case where a path contains a
4220 multi-way branch and does not thread a multi-way branch.
4221 (thread_through_all_blocks): Update comment.
4222
4223 2015-11-18 Joseph Myers <joseph@codesourcery.com>
4224
4225 PR c/65083
4226 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
4227 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
4228 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
4229 functions before defining as macros.
4230
4231 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4232
4233 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
4234 (nvptx_record_offload_symbol): Remove code compensating for lack
4235 of default dimension handling.
4236 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
4237
4238 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
4239
4240 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
4241 type to bool for early exit.
4242 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
4243 in case of error.
4244 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
4245 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
4246 predecessor dominates the other.
4247 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
4248 element is not found it returns -1.
4249 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
4250 out early when codegen fails.
4251 (graphite_regenerate_ast_isl): Remove codegen region when pending
4252 phis could not be generated.
4253
4254 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
4255
4256 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
4257 semicolon.
4258 (class translate_isl_ast_to_gimple): Indentation.
4259 (translate_pending_phi_nodes): Comment.
4260 (add_parameters_to_ivs_params): Moved from sese.c inside class
4261 translate_isl_ast_to_gimple.
4262 (get_max_schedule_dimensions): Same.
4263 (generate_isl_context): Same.
4264 (extend_schedule): Same.
4265 (generate_isl_schedule): Same.
4266 (set_options): Same.
4267 (scop_to_isl_ast): Same.
4268 (is_valid_rename): Same.
4269 (get_rename): Same.
4270 (get_rename_from_scev): Same.
4271 (get_def_bb_for_const): Same.
4272 (get_new_name): Same.
4273 (collect_all_ssa_names): Same.
4274 (copy_loop_phi_args): Same.
4275 (copy_loop_phi_nodes): Same.
4276 (copy_loop_close_phi_args): Same.
4277 (copy_loop_close_phi_nodes): Same.
4278 (copy_cond_phi_args): Same.
4279 (copy_cond_phi_nodes): Same.
4280 (graphite_copy_stmts_from_block): Same.
4281 (copy_bb_and_scalar_dependences): Same.
4282 (add_phi_arg_for_new_expr): Same.
4283 (rename_uses): Same.
4284 (set_rename): Same.
4285 (set_rename_for_each_def): Same.
4286 (gsi_insert_earliest): Same.
4287 (rename_all_uses): Same.
4288 (codegen_error_p): Same.
4289 (print_isl_ast_node): Same.
4290 (translate_isl_ast_for_loop): Call function codegen_error_p.
4291 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
4292 (translate_isl_ast_node_user): Make nb_loops const and release
4293 iv_map before exit.
4294 (get_true_edge_from_guard_bb): Move all free-functions early.
4295 (get_false_edge_from_guard_bb): Same.
4296 (bb_contains_loop_close_phi_nodes): Same.
4297 (bb_contains_loop_phi_nodes): Same.
4298 (is_loop_closed_ssa_use): Same.
4299 (number_of_phi_nodes): Same.
4300 (phi_uses_name): Same.
4301 (later_of_the_two): Same.
4302 (substitute_ssa_name):
4303 (get_edges): Same.
4304 (get_loc): Same.
4305 (get_loop_init_value): Same.
4306 (find_init_value): Same.
4307 (find_init_value_close_phi): Same.
4308 (ast_build_before_for): Same.
4309 (graphite_regenerate_ast_isl): Formatting changes.
4310 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
4311 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
4312 (set_rename): Same.
4313 (gsi_insert_earliest): Same.
4314 (collect_all_ssa_names): Same.
4315 (rename_all_uses): Same.
4316 (rename_uses): Same.
4317 (get_def_bb_for_const): Same.
4318 (copy_loop_phi_nodes): Same.
4319 (copy_loop_close_phi_args): Same.
4320 (copy_loop_close_phi_nodes): Same.
4321 (copy_cond_phi_args): Same.
4322 (copy_cond_phi_nodes): Same.
4323 (set_rename_for_each_def): Same.
4324 (graphite_copy_stmts_from_block): Same.
4325 (copy_bb_and_scalar_dependences): Same.
4326 (if_region_set_false_region): Same.
4327 (scev_analyzable_p): Same.
4328 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
4329
4330 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
4331
4332 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
4333 commit from r125920 for FreeBSD.
4334
4335 2015-11-18 Jason Merrill <jason@redhat.com>
4336
4337 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
4338 to be vecs of vecs.
4339 (add_finalizer): Split out from ggc_internal_alloc.
4340 (ggc_handle_finalizers): Run finalizers for the current depth.
4341 (init_ggc, ggc_pch_read): Reserve space for finalizers.
4342
4343 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
4344
4345 PR target/68410
4346 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
4347 from || expression.
4348
4349 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4350
4351 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
4352 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
4353 and atmega328pb.
4354 * doc/avr-mmcu.texi: Regenerate.
4355
4356 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4357
4358 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
4359 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
4360 (struct bb_sese): New struct.
4361 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
4362 (BB_GET_SESE, BB_SET_SESE): Define.
4363 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
4364 (nvptx_find_sese): New.
4365 (nvptx_neuter_pars): Find SESE regions when optimizing.
4366
4367 2015-11-18 Alan Modra <amodra@gmail.com>
4368
4369 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
4370 type-limits warning.
4371
4372 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
4373
4374 PR bootstrap/68406
4375 * hash-set.h (hash_set::traverse): Expand Key typedef.
4376
4377 2015-11-18 Martin Liska <mliska@suse.cz>
4378
4379 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
4380 options struct.
4381
4382 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4383
4384 * config/nvptx/nvptx.c (global_lock_var): New.
4385 (nvptx_global_lock_addr): New.
4386 (nvptx_lockless_update): Recomment and adjust for clarity.
4387 (nvptx_lockfull_update): New.
4388 (nvptx_reduction_update): New.
4389 (nvptx_goacc_reduction_fini): Call it.
4390
4391 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
4392
4393 * regrename.h (struct du_head): Add target_data_1 and target_data_2
4394 fields.
4395 * regrename.c (create_new_chain): Clear entire struct after allocating.
4396
4397 * config/i386/i386.opt (mmitigate-rop): New option.
4398 * doc/invoke.texi (mmitigate-rop): Document.
4399 * config/i386/i386.c: Include "regrename.h".
4400 (ix86_rop_should_change_byte_p, reg_encoded_number,
4401 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
4402 static functions.
4403 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
4404 * config/i386/i386.md (attr "modrm_class"): New.
4405 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
4406 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
4407 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
4408
4409 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
4410
4411 PR target/68405
4412 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
4413
4414 2015-11-18 Jakub Jelinek <jakub@redhat.com>
4415
4416 PR tree-optimization/68157
4417 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
4418 pow_stmt or mul_stmt from stmt's uid.
4419 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
4420
4421 2015-11-18 Martin Liska <mliska@suse.cz>
4422
4423 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
4424
4425 2015-11-18 Martin Liska <mliska@suse.cz>
4426
4427 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4428 Fix GNU coding style.
4429 (find_def_preds): Use auto_vec.
4430 (destroy_predicate_vecs): Change signature of the function.
4431 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
4432 new signature.
4433 (simplify_preds_4): Use destroy_predicate_vecs instread of
4434 just releasing preds vector.
4435 (normalize_preds): Likewise.
4436 (is_use_properly_guarded): Use new signature of
4437 destroy_predicate_vecs.
4438 (find_uninit_use): Likewise.
4439
4440 2015-11-18 Richard Biener <rguenther@suse.de>
4441
4442 PR tree-optimization/67790
4443 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
4444 IL rewrite for MINUS_EXPR reductions, rename back to ...
4445 (vect_is_simple_reduction): ... this, removing the wrapper.
4446 (vect_force_simple_reduction): Adjust.
4447 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
4448 reductions and make use if reduc_index in all places. For
4449 the final reduction of MINUS_EXPR use PLUS_EXPR.
4450
4451 2015-11-18 Alan Modra <amodra@gmail.com>
4452
4453 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
4454 to ld.
4455 * configure: Regenerate.
4456
4457 2015-11-17 Tom de Vries <tom@codesourcery.com>
4458
4459 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
4460
4461 2015-11-17 Tom de Vries <tom@codesourcery.com>
4462
4463 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
4464 uses of ssa_name with constant.
4465
4466 2015-11-17 Tom de Vries <tom@codesourcery.com>
4467
4468 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
4469 something changed.
4470
4471 2015-11-17 Tom de Vries <tom@codesourcery.com>
4472
4473 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
4474 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
4475 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
4476
4477 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
4478
4479 * regrename.c (regrename_find_superclass): New function, code moved
4480 from ...
4481 (rename_chains): ... here. Call it.
4482 * regrename.h (regrename_find_superclass): Declare.
4483
4484 * regrename.c (record_out_operands): Terminate earlyclobbered
4485 operands here.
4486
4487 PR target/66785
4488 * regrename.c (record_operand_use): Keep track of failed operands
4489 and stop appending if we see any.
4490 * regrename.h (struct operand_rr_info): Add a failed field and shrink
4491 n_chains to short.
4492
4493 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
4494
4495 PR 48568
4496 * doc/extend.texi (Common Function Attributes) [visibility]:
4497 Add cross-references to matching variable and type attributes.
4498 (Common Variable Attributes) [visibility]: Add missing entry.
4499
4500 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4501
4502 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
4503 entries that map directly to optabs.
4504
4505 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4506
4507 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
4508 entries that map directly to optabs.
4509
4510 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4511
4512 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
4513 * internal-fn.c (direct_internal_fn_array): Update accordingly.
4514 * tree-vectorizer.h (vectorizable_function): Delete.
4515 * tree-vect-stmts.c: Include internal-fn.h.
4516 (vectorizable_internal_function): New function.
4517 (vectorizable_function): Inline into...
4518 (vectorizable_call): ...here. Explicitly reject calls that read
4519 from or write to memory. Try using an internal function before
4520 falling back on the old vectorizable_function behavior.
4521
4522 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4523
4524 * target.def (builtin_vectorized_function): Take a combined_fn (in
4525 the form of an unsigned int) rather than a function decl.
4526 (builtin_md_vectorized_function): New.
4527 * targhooks.h (default_builtin_vectorized_function): Replace the
4528 fndecl argument with an unsigned int.
4529 (default_builtin_md_vectorized_function): Declare.
4530 * targhooks.c (default_builtin_vectorized_function): Replace the
4531 fndecl argument with an unsigned int.
4532 (default_builtin_md_vectorized_function): New function.
4533 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
4534 New hook.
4535 * doc/tm.texi: Regenerate.
4536 * tree-vect-stmts.c (vectorizable_function): Update call to
4537 builtin_vectorized_function, also passing internal functions.
4538 Call builtin_md_vectorized_function for target-specific builtins.
4539 * config/aarch64/aarch64-protos.h
4540 (aarch64_builtin_vectorized_function): Replace fndecl argument
4541 with an unsigned int.
4542 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
4543 (aarch64_builtin_vectorized_function): Update after above changes.
4544 Use CASE_CFN_*.
4545 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
4546 fndecl argument with an unsigned int.
4547 * config/arm/arm-builtins.c: Include case-cfn-macros.h
4548 (arm_builtin_vectorized_function): Update after above changes.
4549 Use CASE_CFN_*.
4550 * config/i386/i386.c: Include case-cfn-macros.h
4551 (ix86_veclib_handler): Take a combined_fn rather than a
4552 built_in_function.
4553 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
4554 mathfn_built_in rather than calling builtin_decl_implicit directly.
4555 (ix86_builtin_vectorized_function) Update after above changes.
4556 Use CASE_CFN_*.
4557 * config/rs6000/rs6000.c: Include case-cfn-macros.h
4558 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
4559 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
4560 than calling builtin_decl_implicit directly.
4561 (rs6000_builtin_vectorized_function): Update after above changes.
4562 Use CASE_CFN_*. Move BUILT_IN_MD to...
4563 (rs6000_builtin_md_vectorized_function): ...this new function.
4564 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
4565
4566 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4567
4568 * tree-vect-patterns.c: Include internal-fn.h.
4569 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
4570
4571 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4572
4573 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
4574 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
4575
4576 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4577
4578 * builtins.c (expand_errno_check, expand_builtin_mathfn)
4579 (expand_builtin_mathfn_2): Delete.
4580 (expand_builtin): Remove handling of functions with
4581 internal function equivalents.
4582 * internal-fn.def (SET_EDOM): New internal function.
4583 * internal-fn.h (set_edom_supported_p): Declare.
4584 * internal-fn.c (expand_SET_EDOM): New function.
4585 (set_edom_supported_p): Likewise.
4586 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
4587 Rewrite comment at head of file.
4588 (is_call_dce_candidate): Rename to...
4589 (can_test_argument_range): ...this. Don't check gimple_call_lhs
4590 or gimple_call_builtin_p here.
4591 (edom_only_function): New function.
4592 (shrink_wrap_one_built_in_call_with_conds): New function, split out
4593 from...
4594 (shrink_wrap_one_built_in_call): ...here.
4595 (can_use_internal_fn, use_internal_fn): New functions.
4596 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
4597 for calls that have an lhs.
4598 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
4599 (pass_call_cdce::execute): Skip blocks that are optimized for size.
4600 Check gimple_call_builtin_p here. Use can_use_internal_fn for
4601 calls with an lhs.
4602 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
4603 at -O and above.
4604
4605 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4606
4607 * builtins.h (called_as_built_in): Declare.
4608 * builtins.c (called_as_built_in): Make external.
4609 * internal-fn.h (expand_internal_call): Define a variant that
4610 specifies the internal function explicitly.
4611 * internal-fn.c (expand_load_lanes_optab_fn)
4612 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
4613 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
4614 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
4615 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
4616 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
4617 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
4618 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
4619 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
4620 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
4621 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
4622 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
4623 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
4624 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
4625 argument.
4626 (internal_fn_expanders): Update prototype.
4627 (expand_internal_call): Define a variant that specifies the
4628 internal function explicitly. Use it to implement the previous
4629 interface.
4630 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
4631 functions as calls to internal functions.
4632
4633 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4634
4635 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
4636 (generated_files): Likewise.
4637 (s-cfn-operators, cfn-operators.pd): New rules.
4638 (s-match): Depend on cfn-operators.pd.
4639 * gencfn-macros.c: Expand comment to describe -o behavior.
4640 (print_define_operator_list): New function.
4641 (main): Accept -o. Call print_define_operator_list.
4642 * genmatch.c (main): Add the current directory to the include path.
4643 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
4644 instead.
4645
4646 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4647
4648 * doc/match-and-simplify.texi: Document the "null" identifier.
4649 * genmatch.c (id_base::NULL_ID): New kind.
4650 (null_id): New variable.
4651 (get_operator): Add a parameter that says whether null identifiers
4652 are allowed.
4653 (contains_id): New function.
4654 (lower_for): Skip substitutions that would have a null_id in
4655 either the match or the result.
4656 (parser::parse_for): Allow the null identifier to be used.
4657 (parser::parse_operator_list): Likewise.
4658 (main): Initialize null_id.
4659
4660 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4661
4662 * match.pd: Use HYPOT and COS rather than hypot and cos.
4663 Use CASE_CFN_* macros. Guard log/exp folds with
4664 SCALAR_FLOAT_TYPE_P.
4665 * genmatch.c (internal_fn): New enum.
4666 (fn_id::fn): Change to an unsigned int.
4667 (fn_id::fn_id): Accept internal_fn too.
4668 (add_builtin): Rename to...
4669 (add_function): ...this and turn into a template.
4670 (get_operator): Only try one variation if the original name fails.
4671 Only add _EXPR if the original name was all lower case.
4672 Try converting internal and built-in function names to their
4673 CFN equivalents.
4674 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
4675 (dt_simplify::gen_1): Likewise.
4676 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
4677 and get_call_combined_fn for generic.
4678 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
4679 (decision_tree::gen): Likewise.
4680 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
4681 Use add_function rather than add_builtin. Register internal
4682 functions too.
4683 * generic-match-head.c: Include case-cfn-macros.h.
4684 * gimple-fold.c (replace_stmt_with_simplification): Use
4685 gimple_call_combined_fn to test whether we can keep an
4686 existing call.
4687 * gimple-match.h (code_helper): Replace built_in_function
4688 with combined_fn.
4689 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
4690 and case-fn-macros.h.
4691 (gimple_resimplify1): Use fold_const_call.
4692 (gimple_resimplify2, gimple_resimplify3): Likewise.
4693 (build_call_internal, build_call): New functions.
4694 (maybe_push_res_to_seq): Use them.
4695 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
4696 rather than a built-in function.
4697 * tree.h (build_call_expr_internal_loc): Declare.
4698 (maybe_build_call_expr_loc): Likewise.
4699 * tree.c (build_call_expr_internal_loc_array): New function.
4700 (maybe_build_call_expr_loc): Likewise.
4701
4702 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4703
4704 * builtins.h (mathfn_built_in): Add a variant that takes
4705 a combined_fn.
4706 * builtins.c: Include case-cfn-macros.h.
4707 (CASE_MATHFN): Use CASE_CFN_*.
4708 (CASE_MATHFN_REENT): Use CFN_ codes.
4709 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
4710 argument with a combined_fn.
4711 (mathfn_built_in): Add a variant that takes a combined_fn.
4712 (expand_builtin_int_roundingfn_2): Update callers accordingly.
4713 (fold_builtin_sincos, fold_builtin_classify): Likewise.
4714
4715 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4716
4717 * tree-vect-patterns.c: Include case-cfn-macros.h.
4718 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
4719
4720 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4721
4722 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
4723 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
4724 (pass_cse_sincos::execute): Likewise.
4725
4726 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4727
4728 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
4729 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
4730 (decrement_power, acceptable_pow_call): Likewise.
4731 (attempt_builtin_copysign): Likewise.
4732
4733 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4734
4735 * tree-vrp.c: Include case-cfn-macros.h.
4736 (extract_range_basic): Switch on combined_fn rather than handling
4737 built-in functions and internal functions separately.
4738
4739 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4740
4741 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
4742 than a built_in_function.
4743 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
4744 a function decl.
4745 (integer_valued_real_call_p): Likewise.
4746 * fold-const.c: Include case-cfn-macros.h
4747 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
4748 (negate_expr_p): Update accordingly.
4749 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
4750 a function decl.
4751 (integer_valued_real_call_p): Likewise.
4752 (tree_invalid_nonnegative_warnv_p): Update accordingly.
4753 (integer_valued_real_p): Likewise.
4754 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
4755 to tree_call_nonnegative_warnv_p.
4756 (gimple_call_integer_valued_real_p): Likewise
4757 integer_valued_real_call_p.
4758 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
4759 (backprop::process_builtin_call_use): Extend to combined_fn.
4760 (strip_sign_op_1): Likewise.
4761 (backprop::process_use): Don't check for built-in calls here.
4762 (backprop::execute): Likewise.
4763 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
4764
4765 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4766
4767 * fold-const-call.h (fold_const_call): Replace built_in_function
4768 arguments with combined_fn arguments.
4769 * fold-const-call.c: Include case-cfn-macros.h.
4770 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
4771 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
4772 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
4773 built_in_function arguments with combined_fn arguments.
4774 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
4775 (fold_builtin_3): Update calls to fold_const_call.
4776
4777 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4778
4779 * Makefile.in (HASH_TABLE_H): Add GGC_H.
4780 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
4781 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
4782 (build/gencfn-macros$(build_exeext): New rules.
4783 (genprogerr): Add cfn-macros.
4784 * hash-set.h (hash_set): Use the traits value_type as the key.
4785 * gencfn-macros.c: New file.
4786
4787 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4788
4789 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
4790 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
4791 * builtins.c (associated_internal_fn): Handle them.
4792
4793 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4794
4795 * builtins.h (associated_internal_fn): Declare.
4796 (replacement_internal_fn): Likewise.
4797 * builtins.c: Include internal-fn.h
4798 (associated_internal_fn, replacement_internal_fn): New functions.
4799 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
4800 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
4801 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
4802 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
4803 (LDEXP): New functions.
4804 * internal-fn.c: Include recog.h.
4805 (unary_direct, binary_direct): New macros.
4806 (expand_direct_optab_fn): New function.
4807 (expand_unary_optab_fn): New macro.
4808 (expand_binary_optab_fn): Likewise.
4809 (direct_unary_optab_supported_p): Likewise.
4810 (direct_binary_optab_supported_p): Likewise.
4811
4812 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4813
4814 * coretypes.h (tree_pair): New type.
4815 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
4816 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
4817 * internal-fn.h (direct_internal_fn_info): New structure.
4818 (direct_internal_fn_array): Declare.
4819 (direct_internal_fn_p, direct_internal_fn): New functions.
4820 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
4821 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
4822 (mask_store_direct, store_lanes_direct): New macros.
4823 (direct_internal_fn_array) New array.
4824 (get_multi_vector_move): Return the optab handler without asserting
4825 that it is available.
4826 (expand_LOAD_LANES): Rename to...
4827 (expand_load_lanes_optab_fn): ...this and add an optab argument.
4828 (expand_STORE_LANES): Rename to...
4829 (expand_store_lanes_optab_fn): ...this and add an optab argument.
4830 (expand_MASK_LOAD): Rename to...
4831 (expand_mask_load_optab_fn): ...this and add an optab argument.
4832 (expand_MASK_STORE): Rename to...
4833 (expand_mask_store_optab_fn): ...this and add an optab argument.
4834 (direct_internal_fn_types, direct_optab_supported_p)
4835 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
4836 (direct_internal_fn_supported_p): New functions.
4837 (direct_mask_load_optab_supported_p): New macro.
4838 (direct_load_lanes_optab_supported_p): Likewise.
4839 (direct_mask_store_optab_supported_p): Likewise.
4840 (direct_store_lanes_optab_supported_p): Likewise.
4841
4842 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4843
4844 * tree-core.h (internal_fn): Move immediately after the definition
4845 of built_in_function.
4846 (combined_fn): New enum.
4847 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
4848 (internal_fn_p, as_internal_fn): New functions.
4849 (get_call_combined_fn, combined_fn_name): Declare.
4850 * tree.c (get_call_combined_fn): New function.
4851 (combined_fn_name): Likewise.
4852 * gimple.h (gimple_call_combined_fn): Declare.
4853 * gimple.c (gimple_call_combined_fn): New function.
4854
4855 2015-11-17 Martin Sebor <msebor@redhat.com>
4856
4857 PR c++/68308
4858 * cp/init.c (build_new_1): Check for expression constness
4859 the right way.
4860
4861 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
4862
4863 PR target/53587
4864 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
4865 option list.
4866 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
4867 discussion of the Microsoft structure layout details here from
4868 its former home in extend.texi.
4869 * doc/extend.texi (x86 Variable Attributes): Replace detailed
4870 discussion with pointer to its new location. Add cross-reference
4871 to corresponding type attributes.
4872 (x86 Type Attributes): Add cross-references to command-line options
4873 and variable attributes.
4874
4875 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
4876
4877 PR middle-end/68134
4878 * targhooks.c (default_get_mask_mode): Filter out
4879 scalar modes returned by mode_for_vector.
4880
4881 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4882
4883 PR target/68143
4884 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
4885 offset from dstbase and use it appropriately in
4886 adjust_automodify_address.
4887 (arm_block_set_aligned_vect): Likewise.
4888
4889 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
4890
4891 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
4892 (MULTILIB_DIRNAMES): Adjust accordingly.
4893
4894 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
4895
4896 * config/aarch64/aarch64-cores.def (cortex-a35): New.
4897 * config/aarch64/aarch64.c (cortexa35_tunings): New.
4898 * config/aarch64/aarch64-tune.md: Regenerate.
4899 * doc/invoke.texi (-mcpu): Add Cortex-A35
4900
4901 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
4902
4903 PR target/68263
4904 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
4905 to 32 for IAMCU.
4906 * config/i386/sse.md (*mov<mode>_internal): Always enable
4907 AVX and SSE unaligned moves for IAMCU.
4908
4909 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
4910
4911 * tree-if-conv.c: Include varasm.h
4912 (ref_DR_map): Define.
4913 (baseref_DR_map): Like wise
4914 (struct ifc_dr): Add new tree predicate field.
4915 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
4916 (memrefs_read_or_written_unconditionally): Remove.
4917 (write_memrefs_written_at_least_once): Remove.
4918 (ifcvt_memrefs_wont_trap): Use hash maps to query
4919 unconditional read/written information.
4920 (if_convertible_loop_p_1): Initialize hash maps and predicates
4921 before hashing data references and delete hashmaps at the end.
4922
4923 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
4924
4925 PR 56036
4926 * doc/invoke.texi (Optimize Options): Move @end table to the right
4927 place.
4928
4929 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
4930
4931 PR 65129
4932 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
4933 return value.
4934
4935 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
4936
4937 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
4938 128-bit types, just types that fit in a single vector.
4939 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
4940
4941 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
4942
4943 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
4944 in the user documentation.
4945 (define_peephole2, define_split): Similarly.
4946
4947 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
4948
4949 * lto-streamer-out.c (write_global_references): Adjust integer type.
4950 (lto_output_decl_state_refs): Likewise.
4951
4952 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
4953
4954 * config/arm/arm-cores.def (cortex-a35): New.
4955 * config/arm/arm.c (arm_cortex_a35_tune): New.
4956 * config/arm/arm-tables.opt: Regenerate.
4957 * config/arm/arm-tune.md: Regenerate.
4958 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
4959 * config/arm/t-aprofile: Likewise.
4960 * doc/invoke.texi (-mcpu): Likewise.
4961
4962 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
4963
4964 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
4965 and qdf24xx and xgene1 to match -march=armv8-a.
4966
4967 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
4968
4969 PR rtl-optimization/68330
4970 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
4971 of LSHIFTRT by a non-zero constant integer.
4972
4973 2015-11-16 Richard Biener <rguenther@suse.de>
4974
4975 PR tree-optimization/68306
4976 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
4977 bogus copying from verify_data_ref_alignment and use continue
4978 instead of return.
4979
4980 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
4981 Kaz Kojima <kkojima@gcc.gnu.org>
4982
4983 PR target/68277
4984 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
4985 operands[2].
4986 (*addsi3): Add another insn_and_split variant for reload.
4987
4988 2015-11-16 Richard Biener <rguenther@suse.de>
4989
4990 PR middle-end/68117
4991 * cfgexpand.c (pass_expand::execute): Destroy the edge
4992 redirection var map before setting RTL CFG hooks.
4993
4994 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
4995
4996 * config/i386/sse.md (reduc_splus_v8df): Rename to...
4997 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
4998
4999 (reduc_splus_v4df): Rename to...
5000 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
5001
5002 (reduc_splus_v2df): Rename to...
5003 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
5004
5005 (reduc_splus_v16sf): Rename to...
5006 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
5007
5008 (reduc_splus_v8sf): Rename to...
5009 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
5010
5011 (reduc_splus_v4sf): Rename to...
5012 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
5013
5014 (reduc_<code>_<mode>, all 3 variants): Rename each to...
5015 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
5016
5017 (reduc_umin_v8hf): Rename to...
5018 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
5019
5020 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
5021
5022 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
5023 without additional conditions.
5024 * doc/extend.texi (@item simd): New.
5025
5026 2015-11-16 Tom de Vries <tom@codesourcery.com>
5027
5028 * passes.c (first_pass_instance): Remove variable.
5029 (execute_todo): Remove setting of first_pass_instance.
5030 * tree-pass.h (first_pass_instance): Remove declaration.
5031
5032 2015-11-16 Tom de Vries <tom@codesourcery.com>
5033
5034 * passes.def: Add arg to pass_ccp pass instantiation.
5035 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
5036 instead of first_pass_instance.
5037 (do_ssa_ccp): Add and handle param nonzero_p.
5038 (pass_ccp::pass_ccp): Initialize nonzero_p.
5039 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
5040 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
5041 (pass_ccp::nonzero_p): New private member.
5042
5043 2015-11-16 Tom de Vries <tom@codesourcery.com>
5044
5045 * passes.def: Add arg to pass_object_sizes pass instantiation.
5046 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
5047 insert_min_max_p.
5048 (pass_object_sizes::set_pass_param): New member function. Set
5049 insert_min_max_p.
5050 (pass_object_sizes::insert_min_max_p): New private member.
5051 (pass_object_sizes::execute): Use insert_min_max_p instead of
5052 first_pass_instance.
5053
5054 2015-11-16 Tom de Vries <tom@codesourcery.com>
5055
5056 * passes.def: Add arg to pass_dominator pass instantiation.
5057 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
5058 of comment.
5059 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
5060 may_peel_loop_headers_p.
5061 (pass_dominator::set_pass_param): New member function. Set
5062 may_peel_loop_headers_p.
5063 (pass_dominator::may_peel_loop_headers_p): New private member.
5064 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
5065 first_pass_instance.
5066
5067 2015-11-16 Tom de Vries <tom@codesourcery.com>
5068
5069 * passes.def: Add arg to pass_reassoc pass instantiation.
5070 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
5071 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
5072 of first_pass_instance.
5073 (execute_reassoc): Add and handle insert_powi_p parameter.
5074 (pass_reassoc::insert_powi_p): New private member.
5075 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
5076 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
5077 (pass_reassoc::execute): Call execute_reassoc with extra arg.
5078
5079 2015-11-16 Tom de Vries <tom@codesourcery.com>
5080
5081 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
5082 * gen-pass-instances.awk (handle_line): Same.
5083 * pass_manager.h (class pass_manager): Define and undefine
5084 NEXT_PASS_WITH_ARG.
5085 * passes.c (opt_pass::set_pass_param): New function.
5086 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
5087 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
5088 * tree-pass.h (gimple_opt::set_pass_param): Declare.
5089 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
5090 warn_array_bounds_p parameter.
5091 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
5092 (pass_vrp::set_pass_param): New function.
5093 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
5094 (pass_vrp::warn_array_bounds_p): New private member.
5095
5096 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
5097
5098 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
5099 (output_probe_stack_range): Rotate the loop and simplify.
5100
5101 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
5102
5103 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
5104 (output_probe_stack_range): Rotate the loop and simplify.
5105
5106 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
5107
5108 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
5109 an lea instruction when possible.
5110 (output_adjust_stack_and_probe): Rotate the loop and simplify.
5111 (ix86_emit_probe_stack_range): Adjust.
5112 (output_probe_stack_range): Rotate the loop and simplify.
5113
5114 2015-11-16 Christian Bruel <christian.bruel@st.com>
5115
5116 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
5117 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
5118 with appropriate pragma GCC target.
5119
5120 2015-11-16 Christian Bruel <christian.bruel@st.com>
5121
5122 PR target/65837
5123 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
5124 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
5125
5126 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
5127
5128 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
5129 (cortexa57_tunings): Use it.
5130
5131 2015-11-16 Christian Bruel <christian.bruel@st.com>
5132
5133 PR target/65837
5134 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
5135 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
5136 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
5137 undefine __ARM_FP.
5138 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
5139 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
5140 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
5141 * doc/extend.texi (-mfpu=): Describe attribute.
5142
5143 2015-11-16 Christian Bruel <christian.bruel@st.com>
5144
5145 PR target/65837
5146 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
5147 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
5148 arm_init_neon_builtins.
5149 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
5150 (arm_init_neon_builtins_internal)
5151 (arm_init_crypto_builtins_internal):
5152 Test and set neon_set_p, neon_crypto_set_p.
5153 (neon_set_p, neon_crypto_set_p): New static booleans.
5154
5155 2015-11-16 Christian Bruel <christian.bruel@st.com>
5156
5157 PR target/65837
5158 * config/arm/arm.c (arm_fpu_desc): Remove.
5159 (all_fpus): Make global.
5160 (arm_option_override): Use FPU TARGET accessors.
5161 (arm_declare_function_name): Likewise.
5162 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
5163 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
5164 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
5165 (TARGET_NEON): Likewise.
5166 (all_fpus): Declare extern.
5167 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
5168 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
5169
5170 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5171
5172 PR middle-end/68366
5173 * sdbout.c: Include emit-rtl.h and function.h.
5174
5175 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
5176
5177 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
5178 Remove support for FreeBSD 5 and earlier.
5179
5180 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5181
5182 * configure: Regenerate.
5183 * configure.ac: Always define ENABLE_OFFLOADING.
5184 * cgraph.c (cgraph_node::create): Adjust.
5185 * gcc.c (process_command): Likewise.
5186 * omp-low.c (create_omp_child_function): Likewise.
5187 (expand_omp_target): Likewise.
5188 * varpool.c (varpool_node::get_create): Likewise.
5189
5190 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5191
5192 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
5193 * df-scan.c (df_get_exit_block_use_set): Adjust.
5194 * except.c (expand_eh_return): Likewise.
5195
5196 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5197
5198 * config/i386/i386.h (TARGET_PECOFF): Remove define.
5199 * defaults.h (TARGET_PECOFF): New default definition.
5200 * varasm.c (handle_vtv_comdat_section): Adjust.
5201
5202 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5203
5204 * defaults.h: New definition of SDB_DEBUGGING_INFO.
5205 * doc/tm.texi: Regenerate.
5206 * doc/tm.texi.in: Adjust.
5207 * final.c (rest_of_clean_state): Remove check if
5208 SDB_DEBUGGING_INFO is defined.
5209 * function.c (number_blocks): Likewise.
5210 * output.h: Likewise.
5211 * sdbout.c: Likewise.
5212 * toplev.c (process_options): Likewise.
5213
5214 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5215
5216 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
5217 (enum sdb_masks): Likewise.
5218 * sdbout.c (plain_type_1): Likewise.
5219 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
5220
5221 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5222
5223 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
5224 internal calls - 0 if ordered simd and 1 for ordered threads simd.
5225 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
5226 argument is 1, replace it with GOMP_ordered_* call instead of removing
5227 it.
5228
5229 2015-11-13 Rich Felker <dalias@libc.org>
5230
5231 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
5232 address loading hack for FDPIC targets.
5233
5234 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
5235 Jeff Law <law@redhat.com>
5236
5237 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
5238 * common.opt (-fsplit-paths): New flag controlling path splitting.
5239 * doc/invoke.texi (fsplit-paths): Document.
5240 * opts.c (default_options_table): Add -fsplit-paths to -O2.
5241 * passes.def: Add split_paths pass.
5242 * timevar.def (TV_SPLIT_PATHS): New timevar.
5243 * tracer.c: Include "tracer.h"
5244 (ignore_bb_p): No longer static.
5245 (transform_duplicate): New function, broken out of tail_duplicate.
5246 (tail_duplicate): Use transform_duplicate.
5247 * tracer.h (ignore_bb_p): Declare
5248 (transform_duplicate): Likewise.
5249 * tree-pass.h (make_pass_split_paths): Declare.
5250 * gimple-ssa-split-paths.c: New file.
5251
5252 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
5253 Marek Polacek <polacek@redhat.com>
5254 Jason Merrill <jason@redhat.com>
5255
5256 * convert.c (maybe_fold_build1_loc): New.
5257 (maybe_fold_build2_loc): New.
5258 (convert_to_pointer_1): Split out from convert_to_pointer.
5259 (convert_to_pointer_nofold): New.
5260 (convert_to_real_1): Split out from convert_to_real.
5261 (convert_to_real_nofold): New.
5262 (convert_to_integer_1): Split out from convert_to_integer.
5263 (convert_to_integer_nofold): New.
5264 (convert_to_complex_1): Split out from convert_to_complex.
5265 (convert_to_complex_nofold): New.
5266 * convert.h: Declare new functions.
5267 * tree-complex.c (create_one_component_var): Break up line to
5268 avoid sequence point issues.
5269
5270 2015-11-13 Jason Merrill <jason@redhat.com>
5271
5272 * fold-const.c (fold_convert_const): Fold changing cv-quals on
5273 VECTOR_CST.
5274
5275 * hash-map.h (hash_map::empty): New.
5276
5277 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5278
5279 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
5280 (oacc_loop_fixed_partitions): Correct return type to bool.
5281 (oacc_loop_auto_partitions): New.
5282 (oacc_loop_partition): Take mask argument, call
5283 oacc_loop_auto_partitions.
5284 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
5285
5286 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
5287
5288 * config/rs6000/constraints.md (we constraint): New constraint for
5289 64-bit power9 vector support.
5290 (wL constraint): New constraint for the element in a vector that
5291 can be addressed by the MFVSRLD instruction.
5292
5293 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
5294 declaration.
5295 (convert_int_to_float128): Likewise.
5296 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
5297 hardware support for IEEE 128-bit floating point.
5298 (rs6000_expand_float128_convert): Likewise.
5299 (convert_float128_to_int): Likewise.
5300 (convert_int_to_float128): Likewise.
5301
5302 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
5303 ISA 3.0 hardware IEEE 128-bit floating point.
5304 (UNSPEC_IEEE128_MOVE): Likewise.
5305 (UNSPEC_IEEE128_CONVERT): Likewise.
5306 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
5307 (Ff): Add support for DImode.
5308 (Fv): Likewise.
5309 (any_fix code iterator): New and updated iterators for IEEE
5310 128-bit floating point hardware support.
5311 (any_float code iterator): Likewise.
5312 (s code attribute): Likewise.
5313 (su code attribute): Likewise.
5314 (az code attribute): Likewise.
5315 (uns code attribute): Likewise.
5316 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
5317 floating point hardware support.
5318 (abs<mode>2, FLOAT128 iterator): Likewise.
5319 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
5320 floating point hardware.
5321 (sub<mode>3, IEEE128 iterator): Likewise.
5322 (mul<mode>3, IEEE128 iterator): Likewise.
5323 (div<mode>3, IEEE128 iterator): Likewise.
5324 (copysign<mode>3, IEEE128 iterator): Likewise.
5325 (sqrt<mode>2, IEEE128 iterator): Likewise.
5326 (neg<mode>2, IEEE128 iterator): Likewise.
5327 (abs<mode>2, IEEE128 iterator): Likewise.
5328 (nabs<mode>2, IEEE128 iterator): Likewise.
5329 (fma<mode>4_hw, IEEE128 iterator): Likewise.
5330 (fms<mode>4_hw, IEEE128 iterator): Likewise.
5331 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
5332 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
5333 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
5334 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
5335 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
5336 (fix_fixuns code attribute): Likewise.
5337 (float_floatuns code attribute): Likewise.
5338 (fix<uns>_<mode>si2_hw): Likewise.
5339 (fix<uns>_<mode>di2_hw): Likewise.
5340 (float<uns>_<mode>si2_hw): Likewise.
5341 (float<uns>_<mode>di2_hw): Likewise.
5342 (xscvqp<su>wz_<mode>): Likewise.
5343 (xscvqp<su>dz_<mode>): Likewise.
5344 (xscv<su>dqp_<mode): Likewise.
5345 (ieee128_mfvsrd): Likewise.
5346 (ieee128_mfvsrwz): Likewise.
5347 (ieee128_mtvsrw): Likewise.
5348 (ieee128_mtvsrd): Likewise.
5349 (trunc<mode>df2_odd): Likewise.
5350 (cmp<mode>_h): Likewise.
5351 (128-bit GPR splitters): Don't split a 128-bit move that is a
5352 direct move between GPR and vector registers using ISA 3.0 direct
5353 move instructions.
5354 (maddld4): Add support for the ISA 3.0 integer multiply-add
5355 instruction.
5356
5357 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
5358 debugging.
5359 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
5360 constraint. Disable the VSX<->GPR direct move helpers if we have
5361 the MFVSRLD and MTVSRDD instructions.
5362 (rs6000_secondary_reload_simple_move): Add support for doing
5363 vector direct moves directly without additional scratch registers
5364 if we have ISA 3.0 instructions.
5365 (rs6000_secondary_reload_direct_move): Update comments.
5366 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
5367 instructions.
5368
5369 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
5370 direct move instructions.
5371 (vsx_movti_64bit): Likewise.
5372 (vsx_extract_<mode>): Likewise.
5373
5374 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
5375 macros for ISA 3.0 direct move instructions.
5376 (TARGET_DIRECT_MOVE_128): Likewise.
5377 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
5378 instruction.
5379
5380 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
5381 constraints. Update wa documentation to say not to use %x<n> on
5382 instructions that only take Altivec registers.
5383
5384 2015-11-13 David Malcolm <dmalcolm@redhat.com>
5385
5386 * Makefile.in (OBJS): Add gcc-rich-location.o.
5387 * diagnostic.c (diagnostic_append_note): Pass line_table to
5388 rich_location ctor.
5389 (emit_diagnostic): Likewise.
5390 (inform): Likewise.
5391 (inform_n): Likewise.
5392 (warning): Likewise.
5393 (warning_at): Likewise.
5394 (warning_n): Likewise.
5395 (pedwarn): Likewise.
5396 (permerror): Likewise.
5397 (error): Likewise.
5398 (error_n): Likewise.
5399 (error_at): Likewise.
5400 (sorry): Likewise.
5401 (fatal_error): Likewise.
5402 (internal_error): Likewise.
5403 (internal_error_no_backtrace): Likewise.
5404 (source_range::debug): Likewise.
5405 * gcc-rich-location.c: New file.
5406 * gcc-rich-location.h: New file.
5407 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
5408 (warning_at): Likewise.
5409 * gimple.h (gimple_set_block): Use set_block function.
5410 * input.c (dump_line_table_statistics): Dump stats on how many
5411 ranges were optimized vs how many needed ad-hoc table.
5412 (write_digit_row): Add "map" param; use its range_bits
5413 to calculate the per-character offset.
5414 (dump_location_info): Print the range and column bits for each
5415 ordinary map. Use the range bits to calculate the per-character
5416 offset. Pass the map as a new param to the various calls to
5417 write_digit_row. Eliminate uses of
5418 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
5419 * print-tree.c (print_node): Print any source range information.
5420 * rtl-error.c (diagnostic_for_asm): Likewise.
5421 * toplev.c (general_init): Initialize line_table's
5422 default_range_bits.
5423 * tree-cfg.c (move_block_to_fn): Likewise.
5424 (move_block_to_fn): Likewise.
5425 * tree-inline.c (copy_phis_for_bb): Likewise.
5426 * tree.c (tree_set_block): Likewise.
5427 (get_pure_location): New function.
5428 (set_source_range): New functions.
5429 (set_block): New function.
5430 (set_source_range): New functions.
5431 * tree.h (CAN_HAVE_RANGE_P): New.
5432 (EXPR_LOCATION_RANGE): New.
5433 (EXPR_HAS_RANGE): New.
5434 (get_expr_source_range): New inline function.
5435 (DECL_LOCATION_RANGE): New.
5436 (set_source_range): New decls.
5437 (get_decl_source_range): New inline function.
5438
5439 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
5440
5441 PR tree-optimization/67682
5442 * tree-vect-slp.c (vect_split_slp_store_group): New.
5443 (vect_analyze_slp_instance): During basic block SLP, recurse on
5444 subgroups if vect_build_slp_tree fails after 1st vector.
5445
5446 2015-11-13 Christian Bruel <christian.bruel@st.com>
5447
5448 PR target/65837
5449 * config/arm/arm.c (arm_option_override): Move NEON check...
5450 (arm_option_check_internal): here
5451 (arm_file_start): Move .fpu print...
5452 (arm_declare_function_name): here
5453 (arm_option_print): Dump current fpu name.
5454 * config/arm/arm.opt (arm_fpu_index): Mark Save.
5455
5456 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
5457 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5458
5459 * combine.c (subst): Don't substitute or simplify when
5460 handling register-wise widening multiply.
5461 (force_to_mode): Likewise.
5462
5463 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
5464
5465 PR tree-optimization/68264
5466 * tree-call-cdce.c (gen_one_condition): Update commentary.
5467 (gen_conditions_for_pow_int_base): Invert the sense of the tests
5468 passed to gen_one_condition.
5469 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
5470 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
5471 using EDGE_FALSE_VALUE for edges to the call block and
5472 EDGE_TRUE_VALUE for the others.
5473
5474 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5475
5476 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
5477 complex types.
5478
5479 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5480
5481 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
5482
5483 2015-11-13 Tom de Vries <tom@codesourcery.com>
5484
5485 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
5486 len_of_prefix.
5487
5488 2015-11-13 Tom de Vries <tom@codesourcery.com>
5489
5490 * gen-pass-instances.awk (handle_line): Add args_str variable.
5491
5492 2015-11-13 Martin Liska <mliska@suse.cz>
5493
5494 * graphite-poly.c (free_scop): Release scop->drs vector.
5495 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
5496 Release dom vector.
5497 (try_generate_gimple_bb): Use vNULL as a default initialization
5498 for vectors.
5499
5500 2015-11-13 Martin Liska <mliska@suse.cz>
5501
5502 PR ipa/68311
5503 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
5504 Replace array initialization (using a variable post-increment)
5505 that possible triggers multiple unsequenced modifications
5506 with a pair of pushes to a vector.
5507
5508 2015-11-13 Richard Biener <rguenther@suse.de>
5509
5510 PR tree-optimization/68306
5511 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
5512 loop related checks ...
5513 (vect_verify_datarefs_alignment): ... here.
5514 (vect_slp_analyze_and_verify_node_alignment): Compute and
5515 verify alignment of the single DR that it matters.
5516 * tree-vect-stmts.c (vectorizable_store): Add an assert.
5517 (vectorizable_load): Add a comment.
5518 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
5519 for determining load cost.
5520
5521 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
5522
5523 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
5524 mix of boolean and integer vectors in a single statement.
5525 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
5526 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
5527 determine constant type.
5528 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
5529 for loop invariants.
5530
5531 2015-11-13 Alan Hayward <alan.hayward@arm.com>
5532
5533 PR tree-optimization/66558
5534 * tree-vect-loop.c (is_integer_induction):Add.
5535 (vectorizable_reduction): Add integer induction checks.
5536
5537 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
5538
5539 Revert [ARM] Remove neon-testgen.ml and generated tests.
5540
5541 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
5542
5543 [ARM] Remove neon-testgen.ml and generated tests.
5544
5545 * config/arm/neon-testgen.ml: Remove.
5546
5547 2015-11-13 Richard Biener <rguenther@suse.de>
5548
5549 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
5550 Signal fatal failure if early checks fail.
5551 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
5552 do not bother testing further vector sizes.
5553
5554 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
5555
5556 * config/i386/predicates.md (misaligned_operand): Return true if
5557 operand is aligned to less than its natural alignmnet.
5558
5559 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
5560
5561 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
5562 (vec_cmpu@var{m}@var{n}): New item.
5563 (vcond@var{m}@var{n}): Specify comparison is signed.
5564 (vcondu@var{m}@var{n}): New item.
5565 (vcond_mask_@var{m}@var{n}): New item.
5566 (maskload@var{m}@var{n}): New item.
5567 (maskstore@var{m}@var{n}): New item.
5568
5569 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
5570
5571 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
5572 types of stored value and storage are compatible.
5573
5574 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
5575
5576 * gcc.c (POST_LINK_SPEC): Define if not already defined.
5577 (LINK_COMMAND_SPEC): Use post_link.
5578 (post_link_spec): New, initialize to POST_LINK_SPEC.
5579 (post_link): Initialize new static spec.
5580 * doc/tm.texi.in (POST_LINK_SPEC): Document.
5581 * doc/tm.texi: Regenerated.
5582
5583 2015-11-13 David Malcolm <dmalcolm@redhat.com>
5584
5585 PR driver/67613
5586 * Makefile.in (GCC_OBJS): Add spellcheck.o.
5587 (OBJS): Add spellcheck-tree.o.
5588 * gcc.c: Include "spellcheck.h".
5589 (suggest_option): New function.
5590 (driver::handle_unrecognized_options): Call suggest_option to
5591 provide a hint about misspelled options.
5592 * spellcheck.c: Update file comment.
5593 (levenshtein_distance): Convert 4-param implementation from static
5594 to extern scope. Remove note about unit tests from leading
5595 comment for const char * implementation. Move tree
5596 implementation to...
5597 * spellcheck-tree.c: New file.
5598 * spellcheck.h (levenshtein_distance): Add 4-param decl.
5599
5600 2015-11-13 David Malcolm <dmalcolm@redhat.com>
5601
5602 * Makefile.in (OBJS): Add spellcheck.o.
5603 * spellcheck.c: New file.
5604 * spellcheck.h: New file.
5605
5606 2015-11-13 James Bowman <james.bowman@ftdichip.com>
5607
5608 * config/ft32/ft32.md (*sne): New insn pattern.
5609
5610 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
5611
5612 * cprop.c (is_too_expensive): Remove.
5613 (gcse.h): Include.
5614 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
5615 is_too_expensive.
5616 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
5617 * gcse.c (is_too_expensive): Rename to ...
5618 (gcse_or_cprop_is_too_expensive): ... this.
5619 Expand warning to add required size of max-gcse-memory.
5620 (one_pre_gcse_pass): Use it.
5621 (one_code_hoisting_pass): Use it.
5622 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
5623
5624 2015-11-12 James Norris <jnorris@codesourcery.com>
5625 Joseph Myers <joseph@codesourcery.com>
5626
5627 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
5628 GF_OMP_TARGET_KIND_OACC_DECLARE.
5629 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
5630 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
5631 * gimplify.c (oacc_declare_returns): New.
5632 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
5633 (device_resident_p): New function.
5634 (oacc_default_clause): Handle device_resident clause.
5635 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
5636 (gimplify_expr): Handle OACC_DECLARE.
5637 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
5638 * omp-low.c (expand_omp_target): Handle
5639 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
5640 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
5641 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
5642 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
5643 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
5644 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
5645 GOMP_MAP_DEVICE_RESIDENT.
5646
5647 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
5648
5649 [ARM] Remove neon-testgen.ml and generated tests.
5650
5651 * config/arm/neon-testgen.ml: Remove.
5652
5653 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
5654
5655 * config/aarch64/aarch64-cores.def (qdf24xx): New.
5656 * config/aarch64/aarch64-tune.md: Regenerated.
5657 * config/arm/arm-cores.def (qdf24xx): New.
5658 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
5659 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
5660 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
5661 (ARM Options/-mtune): Likewise.
5662
5663 2015-11-12 Martin Liska <mliska@suse.cz>
5664
5665 * config/i386/i386.c (ix86_valid_target_attribute_p):
5666 Finalize options at the of the function.
5667 * gcc.c (driver_get_configure_time_options): Call newly
5668 introduced init_opts_obstack.
5669 * lto-wrapper.c (main): Likewise.
5670 * opts.c (init_opts_obstack): New function.
5671 (init_options_struct): Call newly introduced init_opts_obstack.
5672 * opts.h (init_options_struct): Declare.
5673
5674 2015-11-12 Martin Liska <mliska@suse.cz>
5675
5676 PR ipa/68035
5677 * ipa-icf.c (void sem_item::set_hash): New function.
5678 (sem_function::get_hash): Use renamed m_hash member variable.
5679 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
5680 (sem_item::update_hash_by_local_refs): Likewise.
5681 (sem_variable::get_hash): Use renamed m_hash member variable.
5682 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
5683 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
5684 (sem_item_optimizer::build_graph): As the hash value of an item
5685 is lazy initialized, force the calculation.
5686 * ipa-icf.h (set_hash): Declare new function and rename hash member
5687 variable to m_hash.
5688
5689 2015-11-12 Richard Biener <rguenther@suse.de>
5690
5691 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
5692 Rename to vect_slp_analyze_instance_dependence.
5693 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
5694 Remove WAR special-case.
5695 (vect_slp_analyze_node_dependences): Instead add more specific
5696 code here, not relying on other instances being vectorized.
5697 (vect_slp_analyze_instance_dependence): Adjust accordingly.
5698 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
5699 vertical space in dump files.
5700 (vect_print_slp_tree): Likewise.
5701 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
5702 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
5703 not vectorized stmts until after dependence analysis removed
5704 instances. Merge alignment and dependence checks.
5705 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
5706 flag on all stmts.
5707
5708 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
5709
5710 * config/aarch64/aarch64-protos.h (tune_params): Add new members
5711 "max_case_values" and "cache_line_size".
5712 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
5713 function.
5714 (aarch64_override_options_internal): Tune heuristics based on new
5715 members in "tune_params".
5716 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
5717
5718 2015-11-12 Richard Biener <rguenther@suse.de>
5719
5720 PR tree-optimization/68306
5721 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
5722 relevant and vectorizable checks here.
5723 (vect_verify_datarefs_alignment): Add relevant check here.
5724
5725 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
5726
5727 * gimplify.c (oacc_default_clause): New.
5728 (omp_notice_variable): Call it.
5729
5730 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
5731
5732 PR tree-optimization/68305
5733 * tree-vect-slp.c (vect_get_constant_vectors): Support
5734 COND_EXPR with SSA_NAME as a condition.
5735
5736 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
5737
5738 * config/visium/visium-protos.h (notice_update_cc): Delete.
5739 (print_operand): Likewise.
5740 (print_operand_address): Likewise.
5741
5742 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
5743
5744 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
5745 FUNCTION_VALUE_REGNO_P): Remove.
5746 * config/alpha/alpha-protos.h (function_value): Remove.
5747 * config/alpha/alpha.c (function_value): Rename to...
5748 (alpha_function_value_1): ... this. Make static.
5749 (alpha_function_value, alpha_libcall_value,
5750 alpha_function_value_regno_p): New functions.
5751 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5752 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5753
5754 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
5755
5756 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5757 * config/alpha/alpha.c (alpha_memory_latency): Make static.
5758 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
5759 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5760
5761 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
5762
5763 PR target/67265
5764 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
5765 assertion on the CFA register.
5766
5767 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
5768
5769 * expr.c (do_store_flag): Expand vector comparison as
5770 VEC_COND_EXPR if vector comparison is not supported by target.
5771
5772 2015-11-12 Renlin Li <renlin.li@arm.com>
5773
5774 * config/arm/arm.md (addsi3_compare_op2): Make the order of
5775 assembly pattern consistent with constraint order.
5776
5777 2015-11-12 Tom de Vries <tom@codesourcery.com>
5778
5779 * gen-pass-instances.awk (handle_line): Simplify match regexp.
5780
5781 2015-11-12 Tom de Vries <tom@codesourcery.com>
5782
5783 * gen-pass-instances.awk (handle_line): Simplify init of
5784 postfix_starts_at.
5785
5786 2015-11-12 Tom de Vries <tom@codesourcery.com>
5787
5788 * gen-pass-instances.awk (handle_line): Rename var where to
5789 call_starts_at.
5790
5791 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
5792
5793 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
5794 do not expand to rtl.
5795
5796 2015-11-12 Richard Biener <rguenther@suse.de>
5797
5798 PR tree-optimization/58497
5799 * tree-vect-generic.c: Include gimplify.h.
5800 (tree_vec_extract): Lookup constant/constructor DEFs.
5801 (do_cond): Unshare cond.
5802
5803 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
5804
5805 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
5806 combined insn if the alignment of vector mode memory operand
5807 is less than ssememalign.
5808
5809 2015-11-12 Tom de Vries <tom@codesourcery.com>
5810
5811 * gen-pass-instances.awk (handle_line): Print parentheses and
5812 pass_name explicitly.
5813
5814 2015-11-12 Tom de Vries <tom@codesourcery.com>
5815
5816 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
5817 and postfix vars.
5818
5819 2015-11-12 Tom de Vries <tom@codesourcery.com>
5820
5821 * gen-pass-instances.awk (handle_line): Add comments.
5822
5823 2015-11-12 Tom de Vries <tom@codesourcery.com>
5824
5825 * gen-pass-instances.awk (handle_line): Rename len_of_end to
5826 len_of_close.
5827
5828 2015-11-12 Tom de Vries <tom@codesourcery.com>
5829
5830 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
5831
5832 2015-11-12 Tom de Vries <tom@codesourcery.com>
5833
5834 * gen-pass-instances.awk (handle_line): Restructure using early-out.
5835
5836 2015-11-12 Tom de Vries <tom@codesourcery.com>
5837
5838 * gen-pass-instances.awk (handle_line): Unify semicolon use.
5839
5840 2015-11-12 Tom de Vries <tom@codesourcery.com>
5841
5842 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
5843
5844 2015-11-12 Tom de Vries <tom@codesourcery.com>
5845
5846 * gen-pass-instances.awk: Add emacs indent setting.
5847
5848 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5849
5850 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
5851 to match.pd.
5852 Move Convert A/(B/C) to (A/B)*C to match.pd.
5853 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
5854 Move Optimize (X & (-A)) / A where A is a power of 2, to
5855 X >> log2(A) to match.pd.
5856
5857 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
5858 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
5859 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
5860 New simplifier.
5861 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
5862
5863 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
5864
5865 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
5866 variable.
5867 (neon_vst2_lane<mode>): Likewise.
5868 (neon_vld3_lane<mode>): Likewise.
5869 (neon_vst3_lane<mode>): Likewise.
5870 (neon_vld4_lane<mode>): Likewise.
5871 (neon_vst4_lane<mode>): Likewise.
5872
5873 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
5874 Sebastian Pop <s.pop@samsung.com>
5875
5876 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
5877 New member codegen_error
5878 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
5879 early return.
5880 (translate_isl_ast_node_user): Early return in case of error.
5881 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
5882 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
5883 (add_parameters_to_ivs_params): Remove macro.
5884 (graphite_regenerate_ast_isl): Add if_region pointer to region.
5885 * graphite-poly.c (new_poly_dr): Remove macro.
5886 (print_pdr): Same.
5887 (new_gimple_poly_bb): Same.
5888 (free_gimple_poly_bb): Same.
5889 (print_scop_params): Same.
5890 * graphite-poly.h (struct poly_dr): Same.
5891 (struct poly_bb): Add new_bb.
5892 (gbb_from_bb): Remove dead code.
5893 (pbb_from_bb): Same.
5894 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
5895 (parameter_index_in_region): Same.
5896 (find_scop_parameters): Same.
5897 (build_cross_bb_scalars_def): New.
5898 (build_cross_bb_scalars_use): New.
5899 (graphite_find_cross_bb_scalar_vars): New
5900 (try_generate_gimple_bb): Reads and Writes.
5901 (build_alias_set): Move.
5902 (gather_bbs::before_dom_children): Gather bbs visited.
5903 (build_scops): call build_alias_set.
5904 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
5905 (remove_simple_copy_phi): Delete.
5906 (remove_invariant_phi): Delete.
5907 (simple_copy_phi_p): Delete.
5908 (reduction_phi_p): Delete.
5909 (isl_id_for_dr): Remove unused param.
5910 (parameter_index_in_region_1): Remove macro usage.
5911 (set_scop_parameter_dim): Same.
5912 (add_param_constraints): Same.
5913 (add_conditions_to_constraints): Same
5914 (build_scop_iteration_domain): Same.
5915 (pdr_add_alias_set): Comment.
5916 (add_scalar_version_numbers): New.
5917 (build_poly_dr): ISL id.
5918 (build_scop_drs): Move.
5919 (build_poly_sr_1): Same.
5920 (insert_stmts): Remove.
5921 (build_poly_sr): New.
5922 (new_pbb_from_pbb): Delete.
5923 (insert_out_of_ssa_copy_on_edge): Delete.
5924 (create_zero_dim_array): Delete.
5925 (scalar_close_phi_node_p): Delete.
5926 (propagate_expr_outside_region): Delete.
5927 (rewrite_close_phi_out_of_ssa): Delete.
5928 (rewrite_phi_out_of_ssa): Delete.
5929 (rewrite_degenerate_phi): Delete.
5930 (rewrite_reductions_out_of_ssa): Delete.
5931 (rewrite_cross_bb_scalar_dependence): Delete.
5932 (handle_scalar_deps_crossing_scop_limits):
5933 (rewrite_cross_bb_scalar_deps): Delete.
5934 (build_poly_scop): Remove calls to out-of-ssa functions.
5935 * graphite.c (graphite_transform_loops): Early return in case of
5936 codegen error.
5937 * sese.c (debug_rename_map_1): Delete.
5938 (debug_rename_map): Delete.
5939 (sese_record_loop): Remove macro.
5940 (build_sese_loop_nests): Same.
5941 (new_sese_info): Same.
5942 (free_sese_info): Same.
5943 (sese_insert_phis_for_liveouts):
5944 (is_loop_closed_ssa_use): New.
5945 (number_of_phi_nodes): New.
5946 (bb_contains_loop_close_phi_nodes): New.
5947 (bb_contains_loop_phi_nodes): New.
5948 (phi_uses_name): New.
5949 (is_valid_rename):
5950 (get_rename): Add old_bb and loop_phi for more precise matching of
5951 exprs.
5952 (set_rename): Pass region.
5953 (later_of_the_two): New.
5954 (gsi_insert_earliest): New.
5955 (collect_all_ssa_names): New.
5956 (substitute_ssa_name): New.
5957 (rename_all_uses): New.
5958 (get_rename_from_scev): New.
5959 (rename_uses): Pass old_bb for more precise matching of exprs.
5960 (get_def_bb_for_const): New.
5961 (get_new_name): New.
5962 (get_loc): New.
5963 (get_edges): New.
5964 (copy_loop_phi_args): New.
5965 (copy_loop_phi_nodes): New.
5966 (get_loop_init_value): New.
5967 (find_init_value): New.
5968 (find_init_value_close_phi): New.
5969 (copy_loop_close_phi_args): New.
5970 (copy_loop_close_phi_nodes): New.
5971 (add_phi_arg_for_new_expr): New.
5972 (copy_cond_phi_args): New.
5973 (copy_cond_phi_nodes): New.
5974 (copy_phi_nodes): New.
5975 (should_copy_to_new_region): New.
5976 (set_rename_for_each_def): New.
5977 (graphite_copy_stmts_from_block): Early return in case of error.
5978 (copy_bb_and_scalar_dependences): Same.
5979 * sese.h (vec_find): New.
5980 (SESE_PARAMS): Delete.
5981 (SESE_LOOPS): Delete.
5982 (SESE_LOOP_NEST): Delete.
5983 (sese_contains_loop): Remove macro usage.
5984 (sese_nb_params): Same.
5985 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
5986
5987 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5988
5989 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
5990 isl_union_map_add_map on every pbb->schedule.
5991
5992 2015-11-11 Tom de Vries <tom@codesourcery.com>
5993
5994 * tree-parloops.c (create_parallel_loop): Return void.
5995
5996 2015-11-11 Tom de Vries <tom@codesourcery.com>
5997
5998 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
5999 block only when needed.
6000
6001 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
6002
6003 * config/alpha/alpha-protos.h (print_operand): Remove.
6004 (print_operand_address): Remove.
6005 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
6006 (PRINT_OPERAND_ADDRESS): Remove.
6007 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
6008 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
6009 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
6010 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
6011 (print_operand_address): Rename to...
6012 (alpha_print_operand_address): ...this and make static.
6013 (print_operand): Rename to...
6014 (alpha_print_operand): ...this and make static.
6015 (alpha_print_operand_punct_valid_p): New static function.
6016
6017 2015-11-11 Richard Biener <rguenther@suse.de>
6018
6019 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
6020 Declare.
6021 (vect_analyze_data_refs_alignment): Make loop vect specific.
6022 (vect_verify_datarefs_alignment): Likewise.
6023 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
6024 Add missing continue.
6025 (vect_compute_data_ref_alignment): Export.
6026 (vect_compute_data_refs_alignment): Merge into...
6027 (vect_analyze_data_refs_alignment): ... this.
6028 (verify_data_ref_alignment): Split out from ...
6029 (vect_verify_datarefs_alignment): ... here.
6030 (vect_slp_analyze_and_verify_node_alignment): New function.
6031 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
6032 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
6033 misplaced checks on alignment.
6034 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
6035 alignment analysis after SLP discovery and do it per instance.
6036 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
6037 bother to re-try using different vector sizes.
6038
6039 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
6040 Cesar Philippidis <cesar@codesourcery.com>
6041
6042 * gimplify.c (enum omp_region_type): Add ORT_ACC,
6043 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
6044 (gimple_add_tmp_var): Add ORT_ACC checks.
6045 (gimplify_var_or_parm_decl): Likewise.
6046 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
6047 (omp_add_variable): Look in outer contexts for openacc and allow
6048 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
6049 (omp_notice_variable, omp_is_private, omp_check_private): Add
6050 ORT_ACC checks.
6051 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
6052 Permit private openacc reductions.
6053 (gimplify_oacc_cache): Specify ORT_ACC.
6054 (gimplify_omp_workshare): Adjust OpenACC region types.
6055 (gimplify_omp_target_update): Likewise.
6056 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
6057 (lower-rec_input_clauses): Don't handle openacc firstprivate
6058 references here.
6059 (lower_omp_target): Emit initializers for openacc firstprivate vars.
6060
6061 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
6062
6063 PR target/67265
6064 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
6065 frame pointer for stack checking if non-call exceptions aren't used.
6066 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
6067
6068 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
6069
6070 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
6071 [LA]SHIFTRT.
6072
6073 2015-11-11 Martin Liska <mliska@suse.cz>
6074 Richard Biener <rguenther@suse.de>
6075
6076 PR rtl-optimization/68287
6077 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
6078 number of elements.
6079
6080 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
6081
6082 * config/mips/mips.c (mips_breakable_sequence_p): New function.
6083 (mips_break_sequence): New function.
6084 (mips_reorg_process_insns): Use them. Use compact branches in selected
6085 situations.
6086
6087 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
6088
6089 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
6090
6091 2015-11-11 Jiong Wang <jiong.wang@arm.com>
6092 Jim Wilson <wilson@gcc.gnu.org>
6093
6094 PR target/67305
6095 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
6096 be true and eliminable registers mentioned.
6097
6098 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
6099
6100 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
6101 options.
6102 * config/arc/arc-opts.h: Add ARCv2 CPUs.
6103 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
6104 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
6105 situation, and store instructions with large offsets.
6106 (arc_secondary_reload_conv): New function.
6107 (arc_init): Add ARCv2 options.
6108 (arc_conditional_register_usage): Select the proper register usage
6109 for ARCv2 processors.
6110 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
6111 architecture.
6112 (arc_compute_function_type): Likewise.
6113 (arc_print_operand): Handle new ARCv2 punctuation characters.
6114 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
6115 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
6116 function.
6117 (arc_reorg, arc_hazard): Use it.
6118 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
6119 (ASM_SPEC): Add ARCv2 options.
6120 (TARGET_NORM): ARC HS has norm instructions by default.
6121 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
6122 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
6123 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
6124 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
6125 Likewise.
6126 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
6127 (TARGET_LP_WR_INTERLOCK): Likewise.
6128 * config/arc/arc.md
6129 (commutative_binary_mult_comparison_result_used, movsicc_insn)
6130 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
6131 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
6132 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
6133 Use it for ARCv2.
6134 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
6135 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
6136 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
6137 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
6138 (extzvsi): New pattern.
6139 * config/arc/arc.opt: New ARCv2 options.
6140 * config/arc/arcEM.md: New file.
6141 * config/arc/arcHS.md: Likewise.
6142 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
6143 values.
6144 (Cm2): A signed 9-bit integer constant constraint.
6145 (C62): An unsigned 6-bit integer constant constraint.
6146 (C16): A signed 16-bit integer constant constraint.
6147 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
6148 (short_const_int_operand): New predicate.
6149 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
6150 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
6151 -mcode-density and -mdiv-rem.
6152
6153 2015-11-11 Julia Koval <julia.koval@intel.com>
6154
6155 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
6156
6157 2015-11-11 Julia Koval <julia.koval@intel.com>
6158
6159 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
6160
6161 2015-11-11 Martin Liska <mliska@suse.cz>
6162
6163 * gimple-ssa-strength-reduction.c (create_phi_basis):
6164 Use auto_vec.
6165 * passes.c (release_dump_file_name): New function.
6166 (pass_init_dump_file): Used from this function.
6167 (pass_fini_dump_file): Likewise.
6168 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
6169 * var-tracking.c (vt_initialize): Use pool_allocator.
6170
6171 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
6172 Jiong Wang <jiong.wang@arm.com>
6173
6174 PR tree-optimization/68234
6175 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
6176 node which estimiated to be VR_VARYING initially.
6177
6178 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
6179
6180 * regname.c (scan_rtx_reg): Check the matching number of consecutive
6181 registers when tying chains.
6182 (build_def_use): Move terminated_this_insn earlier in the function.
6183
6184 2015-11-10 Mike Frysinger <vapier@gentoo.org>
6185
6186 * configure.ac: Use = with test and not ==.
6187 * configure: Regenerated.
6188
6189 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
6190
6191 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
6192 machine asserts. Update defines for 64 bit.
6193
6194 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
6195
6196 PR target/63870
6197 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
6198 lane number.
6199 (neon_vst1_lane<mode>): Likewise.
6200 (neon_vld2_lane<mode>): Likewise.
6201 (neon_vst2_lane<mode>): Likewise.
6202 (neon_vld3_lane<mode>): Likewise.
6203 (neon_vst3_lane<mode>): Likewise.
6204 (neon_vld4_lane<mode>): Likewise.
6205 (neon_vst4_lane<mode>): Likewise.
6206
6207 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
6208
6209 PR target/63870
6210 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
6211 qualifier_struct_load_store_lane_index.
6212 (arm_storestruct_lane_qualifiers) Likewise.
6213 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
6214 big-endian.
6215 (neon_vst1_lane<mode>) Likewise.
6216 (neon_vld2_lane<mode>) Likewise.
6217 (neon_vst2_lane<mode>) Likewise.
6218 (neon_vld3_lane<mode>) Likewise.
6219 (neon_vst3_lane<mode>) Likewise.
6220 (neon_vld4_lane<mode>) Likewise.
6221 (neon_vst4_lane<mode>) Likewise.
6222
6223 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
6224
6225 PR target/63870
6226 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
6227 qualifier_struct_load_store_lane_index.
6228 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6229 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
6230 argument qualifiers.
6231 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
6232 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
6233
6234 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
6235
6236 * config/nvptx/nvptx.opt (moptimize): New flag.
6237 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
6238 default.
6239 (nvptx_optimize_inner): New.
6240 (nvptx_process_pars): Call it when optimizing.
6241 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
6242
6243 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6244
6245 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
6246 Remove redundant code.
6247
6248 2015-11-10 Jeff Law <law@redhat.com>
6249
6250 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
6251 call to output_address.
6252 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
6253 Add unnamed machine_mode argument.
6254
6255 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6256
6257 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
6258 default to 64-bit.
6259
6260 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
6261
6262 * config/i386/i386.md (*movabs<mode>_1): Add explicit
6263 size directives for -masm=intel.
6264 (*movabs<mode>_2): Ditto.
6265
6266 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
6267
6268 * config/i386/i386.c (ix86_print_operand): Remove dead code that
6269 tried to avoid (%rip) for call operands.
6270
6271 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
6272
6273 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
6274 argument. Do not use RIP relative addressing when no_rip is set.
6275 (ix86_print_operand): Update call to ix86_print_operand_address_as.
6276 (ix86_print_operand_address): Ditto.
6277 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
6278 absolute movabs operand 0. Add square braces for -masm=intel.
6279 (*movabs<mode>_2): Ditto for operand 1.
6280
6281 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6282
6283 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
6284 combine_vcvtf2i pattern.
6285
6286 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6287
6288 * config/arm/arm.c (neon_valid_immediate): Remove integer
6289 CONST_DOUBLE handling. It should never occur.
6290
6291 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
6292
6293 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
6294 (ATOMIC_LDOP): Likewise.
6295 (atomic_ldop): Likewise.
6296 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
6297 (ATOMIC_LDOP): Likewise.
6298 (atomic_ldop): Likewise.
6299
6300 2015-11-10 Martin Liska <mliska@suse.cz>
6301
6302 * alloc-pool.h (allocate_raw): New function.
6303 (operator new (size_t, object_allocator<T> &a)): Use the
6304 function instead of object_allocator::allocate).
6305
6306 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6307
6308 * config/i386/sse.md (HALFMASKMODE): New attribute.
6309 (DOUBLEMASKMODE): New attribute.
6310 (vec_pack_trunc_qi): New.
6311 (vec_pack_trunc_<mode>): New.
6312 (vec_unpacks_lo_hi): New.
6313 (vec_unpacks_lo_si): New.
6314 (vec_unpacks_lo_di): New.
6315 (vec_unpacks_hi_hi): New.
6316 (vec_unpacks_hi_<mode>): New.
6317
6318 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6319
6320 * optabs.c (expand_binop_directly): Allow scalar mode for
6321 vec_pack_trunc_optab.
6322 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
6323 boolean vector producers from pattern sequence when computing VF.
6324 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
6325 vect_recog_mask_conversion_pattern.
6326 (search_type_for_mask): Choose the smallest
6327 type if different size types are mixed.
6328 (build_mask_conversion): New.
6329 (vect_recog_mask_conversion_pattern): New.
6330 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
6331 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
6332 load with pattern.
6333 (vectorizable_conversion): Support boolean vectors.
6334 (free_stmt_vec_info): Allow patterns for statements with no lhs.
6335 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
6336
6337 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6338
6339 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
6340 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
6341 Cast mask to FP mode if required.
6342 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
6343 (vcond_mask_<mode><avx512fmaskmodelower>): New.
6344 (vcond_mask_<mode><sseintvecmodelower>): New.
6345 (vcond_mask_<mode><sseintvecmodelower>): New.
6346 (vcond_mask_v2div2di): New.
6347 (vcond_mask_<mode><sseintvecmodelower>): New.
6348 (vcond_mask_<mode><sseintvecmodelower>): New.
6349
6350 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6351
6352 * optabs-query.h (get_vcond_mask_icode): New.
6353 * optabs-tree.c (expand_vec_cond_expr_p): Use
6354 get_vcond_mask_icode for VEC_COND_EXPR with mask.
6355 * optabs.c (expand_vec_cond_mask_expr): New.
6356 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
6357 * optabs.def (vcond_mask_optab): New.
6358 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
6359 generate redundant comparison for COND_EXPR.
6360 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
6361 as a condition.
6362 (vectorizable_condition): Likewise.
6363 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
6364 cond_exp with no embedded comparison.
6365 (vect_build_slp_tree_1): Likewise.
6366
6367 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6368
6369 * config/i386/sse.md (maskload<mode>): Rename to ...
6370 (maskload<mode><sseintvecmodelower>): ... this.
6371 (maskstore<mode>): Rename to ...
6372 (maskstore<mode><sseintvecmodelower>): ... this.
6373 (maskload<mode><avx512fmaskmodelower>): New.
6374 (maskstore<mode><avx512fmaskmodelower>): New.
6375
6376 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6377
6378 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
6379 (expand_MASK_STORE): Adjust to maskstore optab changes.
6380 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
6381 Adjust to maskload, maskstore optab changes.
6382 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
6383 * optabs.def (maskload_optab): Transform into convert optab.
6384 (maskstore_optab): Likewise.
6385 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
6386 can_vec_mask_load_store_p signature change.
6387 (predicate_mem_writes): Use boolean mask.
6388 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
6389 can_vec_mask_load_store_p signature change. Allow invariant masks.
6390 (vectorizable_operation): Ignore type precision for boolean vectors.
6391
6392 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6393
6394 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
6395 (const_vector_mask_from_tree): New.
6396 (const_vector_from_tree): Use const_vector_mask_from_tree
6397 for boolean vectors.
6398 * optabs-query.h (get_vec_cmp_icode): New.
6399 * optabs-tree.c (expand_vec_cmp_expr_p): New.
6400 * optabs-tree.h (expand_vec_cmp_expr_p): New.
6401 * optabs.c (vector_compare_rtx): Add OPNO arg.
6402 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
6403 (expand_vec_cmp_expr): New.
6404 * optabs.def (vec_cmp_optab): New.
6405 (vec_cmpu_optab): New.
6406 * optabs.h (expand_vec_cmp_expr): New.
6407 * tree-vect-generic.c (expand_vector_comparison): Add vector
6408 comparison optabs check.
6409 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
6410 operations for VF. Add mask type computation.
6411 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
6412 (vectorizable_comparison): New.
6413 (vect_analyze_stmt): Add vectorizable_comparison.
6414 (vect_transform_stmt): Likewise.
6415 (vect_init_vector): Support boolean vector invariants.
6416 (vect_get_vec_def_for_operand): Add VECTYPE arg.
6417 (vectorizable_condition): Directly provide vectype for invariants
6418 used in comparison.
6419 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
6420 (enum vect_var_kind): Add vect_mask_var.
6421 (enum stmt_vec_info_type): Add comparison_vec_info_type.
6422 (vectorizable_comparison): New.
6423 (vect_get_vec_def_for_operand): Add VECTYPE arg.
6424 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
6425 (vect_create_destination_var): Likewise.
6426 * tree-vect-patterns.c (check_bool_pattern): Check fails
6427 if we can vectorize comparison directly.
6428 (search_type_for_mask): New.
6429 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
6430 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
6431 comparison statements.
6432 (vect_get_constant_vectors): Support boolean vector constants.
6433 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
6434 (ix86_expand_int_vec_cmp): New.
6435 (ix86_expand_fp_vec_cmp): New.
6436 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
6437 op_true and op_false.
6438 (ix86_int_cmp_code_to_pcmp_immediate): New.
6439 (ix86_fp_cmp_code_to_pcmp_immediate): New.
6440 (ix86_cmp_code_to_pcmp_immediate): New.
6441 (ix86_expand_mask_vec_cmp): New.
6442 (ix86_expand_fp_vec_cmp): New.
6443 (ix86_expand_int_sse_cmp): New.
6444 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
6445 (ix86_expand_int_vec_cmp): New.
6446 (ix86_get_mask_mode): New.
6447 (TARGET_VECTORIZE_GET_MASK_MODE): New.
6448 * config/i386/sse.md (avx512fmaskmodelower): New.
6449 (vec_cmp<mode><avx512fmaskmodelower>): New.
6450 (vec_cmp<mode><sseintvecmodelower>): New.
6451 (vec_cmpv2div2di): New.
6452 (vec_cmpu<mode><avx512fmaskmodelower>): New.
6453 (vec_cmpu<mode><sseintvecmodelower>): New.
6454 (vec_cmpuv2div2di): New.
6455
6456 2015-11-10 Richard Biener <rguenther@suse.de>
6457
6458 PR tree-optimization/68240
6459 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
6460 properly.
6461 (visit_phi): For PHIs with just a single executable edge
6462 take its value directly.
6463 (expressions_equal_p): Handle VN_TOP properly.
6464
6465 2015-11-10 Richard Biener <rguenther@suse.de>
6466
6467 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
6468 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
6469 conservatively.
6470
6471 2015-11-10 Richard Biener <rguenther@suse.de>
6472
6473 PR tree-optimization/56118
6474 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
6475 cost favor vectorized version.
6476
6477 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6478
6479 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
6480 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
6481 (neg_not_op): New code attribute.
6482
6483 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6484
6485 * ifcvt.c (noce_try_inverse_constants): New function.
6486 (noce_process_if_block): Call it.
6487 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
6488 * optabs.def (negcc_optab, notcc_optab): Declare.
6489 * optabs.c (emit_conditional_neg_or_complement): New function.
6490 * doc/tm.texi (Standard Names): Document negcc, notcc names.
6491
6492 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6493
6494 PR rtl-optimization/68236
6495 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
6496 if insn_queue doesn't exist.
6497 (haifa_sched_finish): Reset insn_queue to NULL.
6498
6499 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
6500
6501 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
6502 (build_def_use): Initialize terminated_this_insn.
6503 (find_best_rename_reg): Pick and check register from the tied chain.
6504 (regrename_do_replace): Mark head as renamed.
6505 (struct du_head *terminated_this_insn). New static variable.
6506 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
6507 * regrename.h (struct du_head): Add tied_chain, renamed members.
6508
6509 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6510
6511 PR bootstrap/68256
6512 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
6513 Return false.
6514
6515 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
6516
6517 PR target/57845
6518 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
6519 not promote the mode for aggregate types.
6520
6521 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6522
6523 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
6524 * omp-low.c (build_oacc_routine_dims): New.
6525
6526 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
6527
6528 * config/rs6000/constraints.md (wF constraint): New constraints
6529 for power9/toc fusion.
6530 (wG constraint): Likewise.
6531
6532 * config/rs6000/predicates.md (u6bit_cint_operand): New
6533 predicate, recognize 0..63.
6534 (upper16_cint_operand): New predicate for power9 and toc fusion.
6535 (fpr_reg_operand): Likewise.
6536 (toc_fusion_or_p9_reg_operand): Likewise.
6537 (toc_fusion_mem_raw): Likewise.
6538 (toc_fusion_mem_wrapped): Likewise.
6539 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
6540 address range.
6541 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
6542 instead.
6543 (fusion_addis_mem_combo_load): Add support for power9 fusion of
6544 floating point loads, floating point stores, and gpr stores.
6545 (fusion_addis_mem_combo_store): Likewise.
6546 (fusion_offsettable_mem_operand): Likewise.
6547
6548 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
6549 (emit_fusion_load_store): Likewise.
6550 (fusion_p9_p): Likewise.
6551 (expand_fusion_p9_load): Likewise.
6552 (expand_fusion_p9_store): Likewise.
6553 (emit_fusion_p9_load): Likewise.
6554 (emit_fusion_p9_store): Likewise.
6555 (fusion_wrap_memory_address): Likewise.
6556
6557 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
6558 elements for power9 fusion.
6559 (rs6000_debug_print_mode): Rework debug information to print more
6560 information about fusion.
6561 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
6562 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
6563 offsettable memory address.
6564 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
6565 (emit_fusion_gpr_load): Move most of the code from
6566 emit_fusion_gpr_load into emit_fusion-addis that handles both
6567 power8 and power9 fusion.
6568 (emit_fusion_addis): Likewise.
6569 (emit_fusion_load_store): Likewise.
6570 (fusion_wrap_memory_address): Add support for TOC fusion.
6571 (fusion_split_address): Likewise.
6572 (fusion_p9_p): Add support for power9 fusion.
6573 (expand_fusion_p9_load): Likewise.
6574 (expand_fusion_p9_store): Likewise.
6575 (emit_fusion_p9_load): Likewise.
6576 (emit_fusion_p9_store): Likewise.
6577
6578 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
6579 new instructions in ISA 3.0.
6580 (TARGET_CTZ): Likewise.
6581 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
6582 (TARGET_TOC_FUSION_FP): Likewise.
6583
6584 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
6585 fusion unspecs.
6586 (UNSPEC_FUSION_ADDIS): Likewise.
6587 (QHSI mode iterator): New iterator for power9 fusion.
6588 (GPR_FUSION): Likewise.
6589 (FPR_FUSION): Likewise.
6590 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
6591 (umod<mode>3): Likewise.
6592 (divmod peephole): Likewise.
6593 (udivmod peephole): Likewise.
6594 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
6595 instructions.
6596 (ctz<mode>2_h): Likewise.
6597 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
6598 (ashdi3_extswsli_dot): Likewise.
6599 (ashdi3_extswsli_dot2): Likewise.
6600 (power9 fusion splitter): New power9/toc fusion support.
6601 (toc_fusionload_<mode>): Likewise.
6602 (toc_fusionload_di): Likewise.
6603 (fusion_gpr_load_<mode>): Update predicate function.
6604 (power9 fusion peephole2s): New power9/toc fusion support.
6605 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
6606 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
6607 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
6608 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
6609 (fusion_p9_<mode>_constant): Likewise.
6610
6611 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
6612
6613 * optabs.c (prepare_libcall_arg): New function.
6614 (expand_fixed_convert): Add call to prepare_libcall_arg.
6615
6616 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
6617
6618 * sched-int.h (dump_rgn_dependencies_dot): Declare
6619 * sched-rgn.c (dump_rgn_dependencies_dot): New function
6620 * print-rtl.h (print_insn): Add prototype
6621
6622 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
6623 * common.opt (-fsched-verbose): Set default value to 1.
6624 * invoke.texi (-fsched-verbose): Update the option's description.
6625
6626 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
6627
6628 * config/visium/visium.h (PRINT_OPERAND): Delete.
6629 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
6630 (PRINT_OPERAND_ADDRESS): Likewise.
6631 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
6632 to...
6633 (visium_print_operand_punct_valid_p): ...this. New function.
6634 (TARGET_PRINT_OPERAND): Define to...
6635 (print_operand): Rename to...
6636 (visium_print_operand): ...this.
6637 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
6638 (visium_output_address): Rename to...
6639 (visium_print_operand_address): ...this.
6640 (print_operand_address): Delete.
6641
6642 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
6643
6644 PR middle-end/68259
6645 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
6646 Check that the type of the first operand is an aggregate type.
6647
6648 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6649
6650 * omp-low.c: Fix some OpenACC comment typos.
6651 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
6652 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
6653 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
6654
6655 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
6656
6657 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
6658
6659 2015-11-09 Jeff Law <law@redhat.com>
6660
6661 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
6662 being in gimple/ssa form. Remove redundant check for SSA_NAME.
6663 Fix comment typo.
6664
6665 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
6666 Peter Bergner <bergner@vnet.ibm.com>
6667
6668 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
6669 ISA 3.0 (power9).
6670 (-mpower9-vector): Likewise.
6671 (-mpower9-dform): Likewise.
6672 (-mpower9-minmax): Likewise.
6673 (-mtoc-fusion): Likewise.
6674 (-mmodulo): Likewise.
6675 (-mfloat128-hardware): Likewise.
6676
6677 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
6678 mask for ISA 3.0 (power9).
6679 (POWERPC_MASKS): Add new ISA 3.0 switches.
6680 (power9 cpu): Add power9 cpu.
6681
6682 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
6683 (ASM_CPU_SPEC): Likewise.
6684 (EXTRA_SPECS): Likewise.
6685
6686 * config/rs6000/rs6000-opts.h (enum processor_type): Add
6687 PROCESSOR_POWER9.
6688
6689 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
6690 (rs6000_debug_reg_global): Add support for power9 fusion.
6691 (rs6000_setup_reg_addr_masks): Cache mode size.
6692 (rs6000_option_override_internal): Until real power9 tuning is
6693 added, use -mtune=power8 for -mcpu=power9.
6694 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
6695 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
6696 of Altivec registers.
6697 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
6698 (rs6000_loop_align): Add support for power9 cpu.
6699 (rs6000_file_start): Likewise.
6700 (rs6000_adjust_cost): Likewise.
6701 (rs6000_issue_rate): Likewise.
6702 (insn_must_be_first_in_group): Likewise.
6703 (insn_must_be_last_in_group): Likewise.
6704 (force_new_group): Likewise.
6705 (rs6000_register_move_cost): Likewise.
6706 (rs6000_opt_masks): Likewise.
6707
6708 * config/rs6000/rs6000.md (cpu attribute): Add power9.
6709 * config/rs6000/rs6000-tables.opt: Regenerate.
6710
6711 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
6712 _ARCH_PWR9 if power9 support is available.
6713
6714 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
6715 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
6716
6717 * configure.ac: Determine if the assembler supports the ISA 3.0
6718 instructions.
6719 * config.in (HAVE_AS_POWER9): Likewise.
6720 * configure: Regenerate.
6721
6722 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
6723 switches.
6724
6725 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6726
6727 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
6728 Remove integer CONST_DOUBLE handling. It should never occur.
6729
6730 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6731
6732 PR target/68129
6733 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
6734 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
6735 Delete VOIDmode case. Assert that mode is not VOIDmode.
6736 * config/aarch64/predicates.md (const0_operand): Remove const_double
6737 match.
6738
6739 2015-11-09 Martin Liska <mliska@suse.cz>
6740
6741 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
6742 body_info release function.
6743 * ipa-prop.c (ipa_release_body_info): New function.
6744 (ipa_analyze_node): Call the function.
6745 (ipa_node_params::~ipa_node_params): Release known_csts.
6746 * ipa-prop.h (ipa_release_body_info): Declare.
6747
6748 2015-11-09 Martin Liska <mliska@suse.cz>
6749
6750 * gcc.c (record_temp_file): Release name string.
6751 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
6752 * lra-lives.c (free_live_range_list): Utilize
6753 lra_live_range_pool for allocation and deallocation.
6754 (create_live_range): Likewise.
6755 (copy_live_range): Likewise.
6756 (lra_merge_live_ranges): Likewise.
6757 (remove_some_program_points_and_update_live_ranges): Likewise.
6758 (lra_create_live_ranges_1): Release point_freq_vec that can
6759 be not freed from previous iteration of the function.
6760 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
6761 * tree-sra.c (sra_deinitialize): Release all vectors in
6762 base_access_vec.
6763 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
6764 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
6765 Release edge_info for a removed edge.
6766 (thread_through_all_blocks): Free region vector.
6767 * tree-ssa.h (free_dom_edge_info): Declare function extern.
6768
6769 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
6770
6771 * optabs.c (expand_vec_cond_expr): Always get sign from type.
6772 * tree.c (wide_int_to_tree): Support negative values for boolean.
6773 (build_nonstandard_boolean_type): Use signed type for booleans.
6774
6775 2015-11-09 Richard Biener <rguenther@suse.de>
6776
6777 PR tree-optimization/68248
6778 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
6779
6780 2015-11-09 Richard Biener <rguenther@suse.de>
6781
6782 PR tree-optimization/56118
6783 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
6784 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
6785 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
6786 function.
6787 (vect_slp_analyze_data_ref_dependences): Instead of computing
6788 all dependences of the region DRs just analyze the code motions
6789 SLP vectorization will perform. Remove SLP instances that
6790 cannot have their store/load motions applied.
6791 (vect_analyze_data_refs): Allow DRs without a vectype
6792 in BB vectorization.
6793
6794 2015-11-09 Julian Brown <julian@codesourcery.com>
6795
6796 * final.c (output_asm_insn): Pass VOIDmode to output_address.
6797 (output_address): Add MODE argument. Pass to print_operand_address
6798 hook.
6799 * targhooks.c (default_print_operand_address): Add MODE argument.
6800 * targhooks.h (default_print_operand_address): Update prototype.
6801 * output.h (output_address): Update prototype.
6802 * target.def (print_operand_address): Add MODE argument.
6803 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
6804 output_address.
6805 (print_operand): Pass access mode to output_address.
6806 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
6807 argument.
6808 (mcore_print_operand): Update calls to mcore_print_operand_address.
6809 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
6810 output_address.
6811 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
6812 output_address.
6813 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
6814 global.
6815 (tilegx_print_operand): Don't set above global. Update calls to
6816 output_address.
6817 (tilegx_print_operand_address): Add MODE argument. Use instead of
6818 output_memory_reference_mode global.
6819 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
6820 (frv_print_operand): Pass mode to frv_print_operand_address calls.
6821 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
6822 output_address.
6823 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
6824 (cris_print_operand): Pass mode to output_address calls.
6825 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
6826 * config/aarch64/aarch64.h (aarch64_print_operand)
6827 (aarch64_print_operand_address): Remove prototypes.
6828 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
6829 global.
6830 (aarch64_print_operand): Make static. Update calls to output_address.
6831 (aarch64_print_operand_address): Add MODE argument. Use instead of
6832 aarch64_memory_reference_mode global.
6833 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
6834 hooks.
6835 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6836 Delete macro definitions.
6837 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
6838 * config/xtensa/xtensa.c (print_operand): Pass mode in
6839 output_address calls.
6840 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
6841 argument.
6842 (h83000_print_operand): Update calls to h8300_print_operand_address
6843 and output_address.
6844 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
6845 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
6846 global.
6847 (tilepro_print_operand): Pass mode to output_address.
6848 (tilepro_print_operand_address): Add MODE argument. Use instead of
6849 output_memory_reference_mode.
6850 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
6851 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
6852 to output_address calls.
6853 (nvptx_print_operand_address): Add MODE argument.
6854 * config/alpha/alpha.c (print_operand): Pass mode argument in
6855 output_address calls.
6856 * config/m68k/m68k.c (print_operand): Pass mode argument in
6857 output_address call.
6858 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
6859 (avr_print_operand): Update calls to avr_print_operand_address.
6860 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
6861 argument. Update calls to output_address.
6862 (sparc_print_operand): Pass mode to output_address.
6863 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
6864 argument.
6865 (iq2000_print_operand): Pass mode in output_address calls.
6866 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
6867 MODE argument.
6868 (xstormy16_print_operand): Pass mode to
6869 xstormy16_print_operand_address calls.
6870 * config/mips/mips.c (mips_print_operand): Update calls to
6871 output_address.
6872 (mips_print_operand_address): Add MODE argument.
6873 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
6874 to output_address.
6875 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
6876 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
6877 output_address.
6878 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
6879 (rx_print_operand): Update calls to output_address,
6880 rx_print_operand_address.
6881 * config/nds32/nds32.c (nds32_print_operand): Update calls to
6882 output_address.
6883 (nds32_print_operand_address): Add MODE argument.
6884 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
6885 output_address calls.
6886 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
6887 output_address call.
6888 (c6x_print_address_operand): Update calls to output_address.
6889 (c6x_print_operand_address): Pass mode to above.
6890 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
6891 (v850_print_operand): Pass mode to v850_print_operand_address,
6892 output_address.
6893 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
6894 (mmix_print_operand): Pass mode in output_address calls.
6895 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
6896 (sh_print_operand): Pass mem mode to output_address,
6897 sh_print_operand_address.
6898 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
6899 (cr16_print_operand): Pass mode to output_address,
6900 cr16_print_operand_address.
6901 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
6902 output_address.
6903 * config/microblaze/microblaze.c (print_operand): Pass mode to
6904 output_address.
6905 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
6906 output_address.
6907 (nios2_print_operand_address): Add MODE argument. Update call to
6908 nios2_print_operand_address.
6909 * config/s390/s390.c (print_operand): Pass mode to output_address.
6910 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
6911 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
6912 output_address.
6913 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
6914 Use instead of output_memory_reference_mode.
6915 (output_memory_reference_mode): Delete global.
6916 (arm_print_operand): Pass mem mode to output_address.
6917 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
6918 (m32r_print_operand): Pass mode to output_address.
6919 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
6920 argument.
6921 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
6922 * config/i386/i386.c (ix86_print_operand): Pass mode to
6923 output_address calls.
6924 (ix86_print_operand_address): Add MODE argument.
6925
6926 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
6927
6928 PR middle-end/68251
6929 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
6930 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
6931 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
6932 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
6933
6934 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6935
6936 PR rtl-optimization/67749
6937 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
6938 case before emitting the two blocks. Instead modify the register
6939 in the corresponding final insn of the basic block.
6940
6941 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6942
6943 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
6944 assembler syntax.
6945 Support Solaris ld.
6946 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
6947
6948 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
6949 HAVE_INITFINI_ARRAY_SUPPORT.
6950 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
6951
6952 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
6953 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
6954 Don't check HAVE_AS_SPARC_NOBITS.
6955 Heed SECTION_NOTYPE.
6956
6957 * configure: Regenerate.
6958 * config.in: Regenerate.
6959
6960 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
6961
6962 PR middle-end/68253
6963 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
6964
6965 2015-11-09 Richard Henderson <rth@redhat.com>
6966
6967 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
6968 __SEG_GS, __SEG_TLS.
6969 (ix86_register_pragmas): Register address spaces __seg_fs,
6970 __seg_gs, __seg_tls.
6971 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
6972 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
6973 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
6974 * config/i386/i386.c (ix86_decompose_address): Likewise.
6975 (ix86_legitimate_address_p): Likewise.
6976 (memory_address_length): Likewise. Check mem address space too.
6977 (ix86_print_operand): Use ix86_print_operand_address_as.
6978 (ix86_print_operand_address_as): Rename from
6979 ix86_print_operand_address, add new addr_space_t parameter.
6980 Validate that either the parameter or the ix86_address segment
6981 is default address space. Handle ADDR_SPACE_SEG_TLS.
6982 (ix86_print_operand_address): New.
6983 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
6984 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
6985 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
6986 (ix86_addr_space_zero_address_valid): New.
6987 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
6988 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
6989 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
6990 * config/i386/predicates.md (address_no_seg_operand): Likewise.
6991 (vsib_address_operand): Likewise.
6992 (address_mpx_no_base_operand): Likewise.
6993 (address_mpx_no_index_operand): Likewise.
6994 * doc/extend.texi (x86 Named Address Spaces): New section.
6995
6996 * config/i386/i386.c (ix86_check_no_addr_space): New.
6997 (decide_alg): Add have_as parameter.
6998 (alg_usable_p): Likewise; disable rep algorithms if set.
6999 (ix86_expand_set_or_movmem): Notice if either MEM has a
7000 non-default address space.
7001 (ix86_expand_strlen): Likewise.
7002 * config/i386/i386.md (strmov, strset): Likewise.
7003 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
7004 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
7005 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
7006 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
7007 *cmpstrnqi_1, *strlenqi_1): Likewise.
7008
7009 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
7010 (*movabs<mode>_2): Likewise.
7011
7012 * dwarf2out.c (modified_type_die): Pass the address space number
7013 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
7014 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
7015 * targhooks.c (default_addr_space_debug): New.
7016 * targhooks.h (default_addr_space_debug): Declare.
7017 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
7018 * doc/tm.texi: Rebuild.
7019
7020 * gimple.c (check_loadstore): Return false when 0 is a valid address.
7021 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
7022 null when 0 is valid in the source address space.
7023 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
7024 * targhooks.c (default_addr_space_zero_address_valid): New.
7025 * targhooks.h (default_addr_space_zero_address_valid): Declare.
7026 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
7027 * doc/tm.texi: Rebuild.
7028
7029 * cselib.c (add_mem_for_addr): Compare address spaces when
7030 matching memories.
7031 (cselib_lookup_mem): Likewise.
7032 * fold-const.c (operand_equal_p): Check address spaces of
7033 pointer types before checking integer constants.
7034
7035 PR tree-opt/66768
7036 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
7037 the correct type for the base.
7038
7039 2015-11-09 Jeff Law <law@redhat.com>
7040
7041 * tree-into-ssa.c (names_to_release): No longer static.
7042 * tree-into-ssa.h (names_to_release): Declare.
7043 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
7044 (release_free_names_and_compact_live_names): New function extracted
7045 from pass_release_ssa_names::execute.
7046 (pass_release_ssa_names::execute): Use it.
7047
7048 2015-11-09 Alan Modra <amodra@gmail.com>
7049
7050 * gensupport.c (add_mnemonic_string): Make len param a size_t.
7051 (gen_mnemonic_setattr): Make "size" var a size_t. Use
7052 obstack_blank_fast to shrink obstack. Cast obstack_next_free
7053 return value.
7054
7055 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
7056
7057 PR rtl-optimization/68182
7058 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
7059 branch with only one successor just like unconditional branches.
7060
7061 2015-11-08 Jeff Law <law@redhat.com>
7062
7063 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
7064 non-FSM path has no edges marked with EDGE_DFS_BACK.
7065 (ssa_redirect_edges): No longer call mark_loop_for_removal.
7066 (thread_single_edge, def_split_header_continue_p): Remove.
7067 (bb_ends_with_multiway_branch): Likewise.
7068 (thread_through_loop_header): Remove cases of threading from
7069 latch through the header. Simplify knowing we won't thread
7070 the latch.
7071 (thread_through_all_blocks): Simplify knowing that only the FSM
7072 threader needs to handle backedges.
7073
7074 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
7075
7076 * doc/extend.texi (type attributes): Document scalar_storage_order.
7077 (Structure-Packing Pragmas): Rename into...
7078 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
7079 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
7080 (Warnings): Document -Wno-scalar-storage-order.
7081 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
7082 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
7083 extract_bit_field and store_bit_field.
7084 (initialize_argument_information): Adjust call to store_expr.
7085 (load_register_parameters): Adjust call to extract_bit_field.
7086 * expmed.c (check_reverse_storage_order_support): New function.
7087 (check_reverse_float_storage_order_support): Likewise.
7088 (flip_storage_order): Likewise.
7089 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
7090 of the value if it is true. Pass REVERSE to recursive call after
7091 adjusting the target offset.
7092 Do not use extraction or movstrict instruction if REVERSE is true.
7093 Pass REVERSE to store_fixed_bit_field.
7094 (store_bit_field): Add REVERSE parameter and pass to it to above.
7095 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
7096 store_split_bit_field and store_fixed_bit_field_1.
7097 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
7098 order of the value if it is true and adjust the target offset.
7099 (store_split_bit_field): Add REVERSE parameter and pass it to
7100 store_fixed_bit_field. Adjust the target offset if it is true.
7101 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
7102 of the value if it is true. Pass REVERSE to recursive call after
7103 adjusting the target offset.
7104 Do not use extraction or subreg instruction if REVERSE is true.
7105 Pass REVERSE to extract_fixed_bit_field.
7106 (extract_bit_field): Add REVERSE parameter and pass to it to above.
7107 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
7108 extract_split_bit_field and extract_fixed_bit_field_1.
7109 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
7110 order of the value if it is true and adjust the target offset.
7111 (extract_split_bit_field): Add REVERSE parameter and pass it to
7112 extract_fixed_bit_field. Adjust the target offset if it is true.
7113 * expmed.h (flip_storage_order): Declare.
7114 (store_bit_field): Adjust prototype.
7115 (extract_bit_field): Likewise.
7116 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
7117 (emit_group_store): Adjust call to store_bit_field.
7118 (copy_blkmode_from_reg): Likewise.
7119 (copy_blkmode_to_reg): Likewise.
7120 (write_complex_part): Likewise.
7121 (read_complex_part): Likewise.
7122 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
7123 that it isn't true if the target is a register.
7124 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
7125 and flip the storage order of the value.
7126 <BIT_IOR_EXPR>: Flip the storage order of the value.
7127 (get_bit_range): Adjust call to get_inner_reference.
7128 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
7129 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
7130 with reverse storage order.
7131 (store_expr_with_bounds): Add REVERSE parameter and pass it to
7132 recursive calls and call to store_bit_field. Force the value into a
7133 register if it is true and then flip the storage order of the value.
7134 (store_expr): Add REVERSE parameter and pass it to above.
7135 (categorize_ctor_elements_1): Adjust call to
7136 initializer_constant_valid_p.
7137 (store_constructor_field): Add REVERSE parameter and pass it to
7138 recursive calls and call to store_field.
7139 (store_constructor): Add REVERSE parameter and pass it to calls to
7140 store_constructor_field and store_expr. Set it to true for an
7141 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
7142 (store_field): Add REVERSE parameter and pass it to recursive calls
7143 and calls to store_expr and store_bit_field. Temporarily flip the
7144 storage order of the value with record type and integral mode and
7145 adjust the shift if it is true.
7146 (get_inner_reference): Add PREVERSEP parameter and set it to true
7147 upon encoutering a reference with reverse storage order.
7148 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
7149 (expand_constructor): Adjust call to store_constructor.
7150 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
7151 of the union type to store_expr in the MEM case and assert that it
7152 isn't set in the REG case. Adjust call to store_field.
7153 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
7154 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
7155 get_inner_reference and extract_bit_field. Temporarily flip the
7156 storage order of the value with record type and integral mode and
7157 adjust the shift if it is true. Flip the storage order of the value
7158 at the end if it is true.
7159 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
7160 get_inner_reference. Do not fetch an inner reference if it is true.
7161 * expr.h (store_expr_with_bounds): Ajust prototype.
7162 (store_expr): Likewise.
7163 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
7164 REF_REVERSE_STORAGE_ORDER on the reference according to it.
7165 (optimize_bit_field_compare): Deal with reverse storage order.
7166 Adjust calls to get_inner_reference and make_bit_field_ref.
7167 (decode_field_reference): Add PREVERSEP parameter and adjust call to
7168 get_inner_reference.
7169 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
7170 to decode_field_reference and make_bit_field_ref.
7171 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
7172 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
7173 (fold_comparison): Adjust call to get_inner_reference.
7174 (split_address_to_core_and_offset): Adjust call to
7175 get_inner_reference.
7176 * gimple-expr.c (useless_type_conversion_p): Return false for array
7177 types with different TYPE_REVERSE_STORAGE_ORDER flag.
7178 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
7179 REF_REVERSE_STORAGE_ORDER flag.
7180 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
7181 * output.h (assemble_real): Adjust prototype.
7182 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
7183 * stor-layout.c (finish_record_layout): Propagate the
7184 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
7185 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
7186 (TYPE_SATURATING): Adjust.
7187 (REF_REVERSE_STORAGE_ORDER): Document.
7188 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
7189 set it to true upon encoutering a reference with reverse storage order.
7190 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
7191 * tree-inline.c (remap_gimple_op_r): Propagate the
7192 REF_REVERSE_STORAGE_ORDER flag.
7193 (copy_tree_body_r): Likewise.
7194 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
7195 store_expr.
7196 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
7197 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
7198 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
7199 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
7200 REF_REVERSE_STORAGE_ORDER flag.
7201 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
7202 (gimple_canonical_types_compatible_p): Likewise.
7203 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
7204 (TYPE_SATURATING): Adjust.
7205 (REF_REVERSE_STORAGE_ORDER): New flag.
7206 (reverse_storage_order_for_component_p): New inline predicate.
7207 (storage_order_barrier_p): Likewise.
7208 (get_inner_reference): Adjust prototype.
7209 * varasm.c: Include expmed.h.
7210 (assemble_variable_contents): Adjust call to output_constant.
7211 (assemble_real): Add REVERSE parameter. Flip the storage
7212 order of the value if REVERSE is true.
7213 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
7214 (assemble_constant_contents): Adjust call to output_constant.
7215 (output_constant_pool_2): Adjust call to assemble_real.
7216 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
7217 TYPE_REVERSE_STORAGE_ORDER.
7218 (initializer_constant_valid_p): Add REVERSE parameter.
7219 (output_constant): Add REVERSE parameter.
7220 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
7221 <REAL_TYPE>: Adjust call to assemble_real.
7222 <COMPLEX_TYPE>: Pass it to recursive calls.
7223 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
7224 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
7225 (struct oc_local_state): Add REVERSE field.
7226 (output_constructor_array_range): Adjust calls to output_constant.
7227 (output_constructor_regular_field): Likewise.
7228 (output_constructor_bitfield): Adjust call to output_constructor.
7229 Flip the storage order of the value if REVERSE is true.
7230 (output_constructor): Add REVERSE parameter. Set it to true for an
7231 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
7232 output_constructor_bitfield.
7233 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
7234 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
7235 * builtins.c (get_object_alignment_2): Likewise.
7236 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
7237 and get_ref_base_and_extent.
7238 * dbxout.c (dbxout_expand_expr): Likewise.
7239 * dwarf2out.c (add_var_loc_to_decl): Likewise.
7240 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
7241 (loc_list_from_tree): Likewise.
7242 (fortran_common): Likewise.
7243 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
7244 get_ref_base_and_extent.
7245 (get_base_constructor): Likewise.
7246 (fold_const_aggregate_ref_1): Likewise.
7247 * gimple-laddress.c (pass_laddress::execute): Adjust call to
7248 get_inner_reference.
7249 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
7250 get_inner_reference and bail out on reverse storage order.
7251 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
7252 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
7253 build_ref_for_offset.
7254 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
7255 get_ref_base_and_extent.
7256 (ipa_polymorphic_call_context): Likewise.
7257 (extr_type_from_vtbl_ptr_store): Likewise.
7258 (check_stmt_for_type_change): Likewise.
7259 (get_dynamic_type): Likewise.
7260 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
7261 get_ref_base_and_extent.
7262 (compute_complex_assign_jump_func): Likewise.
7263 (get_ancestor_addr_info): Likewise.
7264 (compute_known_type_jump_func): Likewise.
7265 (determine_known_aggregate_parts): Likewise.
7266 (ipa_get_adjustment_candidate): Likewise.
7267 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
7268 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
7269 (build_ref_for_offset): Adjust prototype.
7270 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
7271 get_inner_reference.
7272 * tree-affine.c (tree_to_aff_combination): Adjust call to
7273 get_inner_reference.
7274 (get_inner_reference_aff): Likewise.
7275 * tree-data-ref.c (split_constant_offset_1): Likewise.
7276 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
7277 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
7278 get_inner_reference.
7279 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
7280 (dump_access): Print new fields.
7281 (create_access): Adjust call to get_ref_base_and_extent and set the
7282 REVERSE flag according to the result.
7283 (completely_scalarize_record): Set the REVERSE flag.
7284 (scalarize_elem): Add REVERSE parameter.
7285 (build_access_from_expr_1): Preserve storage order barriers.
7286 (build_accesses_from_assign): Likewise.
7287 (build_ref_for_offset): Add REVERSE parameter and set the
7288 REF_REVERSE_STORAGE_ORDER flag accordingly.
7289 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
7290 the REF_REVERSE_STORAGE_ORDER flag if there are components.
7291 (analyze_access_subtree): Likewise.
7292 (create_artificial_child_access): Set the REVERSE flag.
7293 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
7294 (turn_representatives_into_adjustments): Propagate REVERSE flag.
7295 (ipa_sra_check_caller): Adjust call to get_inner_reference.
7296 * tree-ssa-alias.c (ao_ref_base): Adjust call to
7297 get_ref_base_and_extent.
7298 (aliasing_component_refs_p): Likewise.
7299 (stmt_kills_ref_p_1): Likewise.
7300 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
7301 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
7302 Return true if reverse storage order.
7303 <BIT_FIELD_REF>: Likewise.
7304 <COMPONENT_REF>: Likewise.
7305 <ARRAY_REF>: Likewise.
7306 <ARRAY_RANGE_REF>: Likewise.
7307 (split_address_cost): Likewise. Bail out if reverse storage order.
7308 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
7309 get_inner_reference. Bail out if reverse storage order.
7310 (bswap_replace): Adjust call to get_inner_reference.
7311 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
7312 the REF_REVERSE_STORAGE_ORDER flag.
7313 <BIT_FIELD_REF>: Likewise.
7314 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
7315 barriers.
7316 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
7317 to the REF_REVERSE_STORAGE_ORDER flag.
7318 <BIT_FIELD_REF>: Likewise.
7319 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
7320 (contains_storage_order_barrier_p): New predicate.
7321 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
7322 Punt on storage order barriers if necessary.
7323 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
7324 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
7325 call to get_ref_base_and_extent.
7326 (do_structure_copy): Likewise.
7327 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
7328 get_inner_reference.
7329 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
7330 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
7331 * ubsan.c (instrument_bool_enum_load): Likewise.
7332 (instrument_object_size): Likewise.
7333 * var-tracking.c (track_expr_p): Adjust call to
7334 get_ref_base_and_extent.
7335 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
7336 get_inner_reference.
7337 * config/s390/s390.c (s390_expand_atomic): Adjust call to
7338 store_bit_field.
7339 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
7340 extract_bit_field.
7341 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
7342
7343 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
7344
7345 * config/sparc/sparc.opt (mfix-at697f): Add final period.
7346
7347 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
7348
7349 PR rtl-optimization/67864
7350 * common/config/i386/i386-common.c (ix86_option_optimization_table)
7351 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
7352 at -Os and up.
7353
7354 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7355
7356 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
7357 internal functions.
7358
7359 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7360
7361 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
7362 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
7363
7364 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7365
7366 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
7367 * internal-fn.c: Don't undef it here.
7368 * tree-core.h: Likewise.
7369
7370 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7371
7372 * builtins.c (fold_builtin_nan): Delete.
7373 (fold_builtin_memcmp): Remove case where both arguments are constant.
7374 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
7375 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
7376 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
7377 * fold-const-call.c: Include fold-const.h.
7378 (host_size_t_cst_p): New function.
7379 (build_cmp_result, fold_const_builtin_nan): Likewise.
7380 (fold_const_call_1): New function, split out from...
7381 (fold_const_call): ...here (for all three interfaces). Handle
7382 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
7383
7384 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7385
7386 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
7387 (fold_builtin_1): Don't call them.
7388 * fold-const-call.c: Include tm.h.
7389 (fold_const_call_ss): New variant for integer-to-integer folds.
7390 (fold_const_call): Call it.
7391
7392 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7393
7394 * builtins.c (fold_builtin_classify): Move constant cases to...
7395 * fold-const-call.c (fold_const_call_ss): ...here.
7396
7397 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7398
7399 * builtins.h (c_getstr): Move to...
7400 * fold-const.h (c_getstr): ...here.
7401 * builtins.c (c_getstr): Move to...
7402 * fold-const.c (c_getstr): ...here.
7403
7404 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7405
7406 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
7407 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
7408
7409 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7410
7411 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
7412 the dominance info; free it if we can't.
7413 (pass_call_cdce::execute): Don't free the dominance info here.
7414
7415 2015-11-06 Jeff Law <law@redhat.com>
7416
7417 * tree-ssa-threadedge.c (dummy_simplify): Remove.
7418 (thread_around_empty_blocks): Remove backedge_seen_p argument.
7419 If we thread to a backedge, then return false. Update recursive
7420 call to eliminate backedge_seen_p argument.
7421 (thread_through_normal_block): Remove backedge_seen_p argument.
7422 Remove backedge_seen_p argument from calls to
7423 thread_around_empty_blocks. Remove checks on backedge_seen_p.
7424 If we thread to a backedge, then return 0.
7425 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
7426 pass it to thread_through_normal_block or thread_through_empty_blocks.
7427 For joiner handling, if we see a backedge, do not try normal
7428 threading.
7429
7430 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7431
7432 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
7433 * graphite-poly.c (new_scop): Initialize original_schedule.
7434 (free_scop): Free original_schedule.
7435 * graphite-poly.h (struct scop): Add field original_schedule.
7436 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
7437 (build_poly_scop): Call build_scop_original_schedule.
7438
7439 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7440
7441 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
7442 (build_pbb_minimal_scattering_polyhedrons): New.
7443 (build_scop_scattering): Remove.
7444 (build_scop_minimal_scattering): New.
7445 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
7446 (build_poly_scop): Call build_scop_minimal_scattering.
7447
7448 2015-11-06 Jeff Law <law@redhat.com>
7449
7450 * cfg-flags.def (IGNORE): New edge flag.
7451 * tree-vrp.c (identify_jump_threads): Mark and clear edges
7452 scheduled for removal with EDGE_IGNORE around call into
7453 jump threader. Do no thread across edges with EDGE_IGNORE,
7454 but do allow threading across those with EDGE_DFS_BACK.
7455
7456 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
7457
7458 * doc/md.texi (multi-alternative constraints): Don't document
7459 alternatives inherently tied to reload for the user documentation.
7460
7461 2015-11-06 Michael Collison <michael.collison@linaro.org>
7462 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7463
7464 Revert:
7465 2015-08-01 Michael Collison <michael.collison@linaro.org
7466 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7467
7468 * config/arm/arm.md (*arm_smin_cmp): New pattern.
7469 (*arm_umin_cmp): Likewise.
7470
7471 2015-11-06 Jakub Jelinek <jakub@redhat.com>
7472
7473 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
7474 * omp-low.c (check_omp_nesting_restrictions): Update for the
7475 various new OpenMP 4.5 nesting restrictions, clarified
7476 nesting glossary, closely nested region relationship clarified
7477 to mean explicit or implicit parallel regions (target/teams),
7478 use %</%> or %qs where appropriate.
7479
7480 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
7481 Sebastian Pop <s.pop@samsung.com>
7482
7483 * graphite-scop-detection.c (loop_is_valid_scop): Call
7484 optimize_loop_nest_for_speed_p.
7485
7486 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
7487 Sebastian Pop <s.pop@samsung.com>
7488
7489 * graphite-optimize-isl.c (optimize_isl): Call
7490 isl_options_set_schedule_maximize_band_depth.
7491
7492 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
7493 Sebastian Pop <s.pop@samsung.com>
7494
7495 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
7496 and exit edges should not be a part of irreducible loop.
7497 (scop_detection::can_represent_loop_1): Loops should not be
7498 irreducible.
7499 (scop_detection::harmful_stmt_in_region): All the basic block
7500 should belong to reducible loops.
7501
7502 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
7503
7504 * config/aarch64/aarch64-simd-builtins.def: Update builtins
7505 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
7506 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
7507 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
7508 (aarch64_tbx4v8qi): Rename to...
7509 aarch64_tbx4<mode>): ... this.
7510 (aarch64_qtbl3<mode>): New pattern.
7511 (aarch64_qtbx3<mode>): New pattern.
7512 (aarch64_qtbl4<mode>): New pattern.
7513 (aarch64_qtbx4<mode>): New pattern.
7514 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
7515 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
7516 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
7517 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
7518 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
7519 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
7520 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
7521 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
7522 functions.
7523
7524 2015-11-06 Mike Stump <mikestump@comcast.net>
7525
7526 PR debug/66728
7527 * dwarf2out.c (get_full_len): Return a value based upon the actual
7528 precision needed for the value.
7529 (add_const_value_attribute): Use a maximal wide-int for
7530 CONST_WIDE_INTs, not VOIDmode.
7531 (output_die): Don't ever output NULL with printf.
7532
7533 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
7534 BLKmode nor VOIDmode values.
7535
7536 2015-11-06 David Malcolm <dmalcolm@redhat.com>
7537
7538 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
7539 and "range2".
7540 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
7541 * diagnostic-core.h (warning_at_rich_loc): New declaration.
7542 (error_at_rich_loc): New declaration.
7543 (permerror_at_rich_loc): New declaration.
7544 (inform_at_rich_loc): New declaration.
7545 * diagnostic-show-locus.c (adjust_line): Delete.
7546 (struct point_state): New struct.
7547 (class colorizer): New class.
7548 (class layout_point): New class.
7549 (class layout_range): New class.
7550 (struct line_bounds): New.
7551 (class layout): New class.
7552 (colorizer::colorizer): New ctor.
7553 (colorizer::~colorizer): New dtor.
7554 (layout::layout): New ctor.
7555 (layout::print_source_line): New method.
7556 (layout::print_annotation_line): New method.
7557 (layout::get_state_at_point): New method.
7558 (layout::get_x_bound_for_row): New method.
7559 (diagnostic_show_locus): Reimplement in terms of class layout.
7560 (diagnostic_print_caret_line): Delete.
7561 * diagnostic.c (diagnostic_initialize): Replace
7562 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
7563 (diagnostic_set_info_translated): Convert param from location_t
7564 to rich_location *. Eliminate calls to set_location on the
7565 message in favor of storing the rich_location ptr there.
7566 (diagnostic_set_info): Convert param from location_t to
7567 rich_location *.
7568 (diagnostic_build_prefix): Break out array into...
7569 (diagnostic_kind_color): New variable.
7570 (diagnostic_get_color_for_kind): New function.
7571 (diagnostic_report_diagnostic): Colorize the option_text
7572 using the color for the severity.
7573 (diagnostic_append_note): Update for change in signature of
7574 diagnostic_set_info.
7575 (diagnostic_append_note_at_rich_loc): New function.
7576 (emit_diagnostic): Update for change in signature of
7577 diagnostic_set_info.
7578 (inform): Likewise.
7579 (inform_at_rich_loc): New function.
7580 (inform_n): Update for change in signature of diagnostic_set_info.
7581 (warning): Likewise.
7582 (warning_at): Likewise.
7583 (warning_at_rich_loc): New function.
7584 (warning_n): Update for change in signature of diagnostic_set_info.
7585 (pedwarn): Likewise.
7586 (permerror): Likewise.
7587 (permerror_at_rich_loc): New function.
7588 (error): Update for change in signature of diagnostic_set_info.
7589 (error_n): Likewise.
7590 (error_at): Likewise.
7591 (error_at_rich_loc): New function.
7592 (sorry): Update for change in signature of diagnostic_set_info.
7593 (fatal_error): Likewise.
7594 (internal_error): Likewise.
7595 (internal_error_no_backtrace): Likewise.
7596 (source_range::debug): New function.
7597 * diagnostic.h (struct diagnostic_info): Eliminate field
7598 "override_column". Add field "richloc".
7599 (struct diagnostic_context): Add field "colorize_source_p".
7600 (diagnostic_override_column): Delete.
7601 (diagnostic_set_info): Convert param from location_t to
7602 rich_location *.
7603 (diagnostic_set_info_translated): Likewise.
7604 (diagnostic_append_note_at_rich_loc): New function.
7605 (diagnostic_num_locations): New function.
7606 (diagnostic_expand_location): Get the location from the
7607 rich_location.
7608 (diagnostic_print_caret_line): Delete.
7609 (diagnostic_get_color_for_kind): New declaration.
7610 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
7611 (error_cb): Update for change in signature of "error" callback.
7612 (fatal_at): Likewise.
7613 (warning_at): Likewise.
7614 * input.c (linemap_client_expand_location_to_spelling_point): New.
7615 * pretty-print.c (text_info::set_range): New method.
7616 (text_info::get_location): New method.
7617 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
7618 (struct text_info): Eliminate "locations" array in favor of
7619 "m_richloc", a rich_location *.
7620 (textinfo::set_location): Add a "caret_p" param, and reimplement
7621 in terms of a call to set_range.
7622 (textinfo::get_location): Eliminate inline implementation in favor of
7623 an out-of-line reimplementation.
7624 (textinfo::set_range): New method.
7625 * rtl-error.c (diagnostic_for_asm): Update for change in signature
7626 of diagnostic_set_info.
7627 * tree-diagnostic.c (default_tree_printer): Update for new
7628 "caret_p" param for textinfo::set_location.
7629 * tree-pretty-print.c (percent_K_format): Likewise.
7630
7631 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7632
7633 Properly apply.
7634 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7635 * config/aarch64/aarch64.c
7636 (aarch64_can_use_per_function_literal_pools_p): New.
7637 (aarch64_use_blocks_for_constant_p): Adjust declaration
7638 and use aarch64_can_use_function_literal_pools_p.
7639 (aarch64_select_rtx_section): Update.
7640
7641 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7642
7643 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
7644 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
7645 (arm_output_multireg_pop): Likewise.
7646 (output_move_double): Likewise.
7647 (output_move_quad): Likewise.
7648 (output_return_instruction): Likewise.
7649 (arm_print_operand): Remove support for %( and %. print modifiers.
7650 (arm_output_shift): Make unified asm.
7651 (arm_declare_function_name): Likewise.
7652 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
7653 (ASM_APP_OFF): Adjust.
7654 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
7655 (ASM_OUTPUT_REG_POP): Likewise.
7656 * config/arm/arm.md: Adjust uses of %., %(, %)
7657 * config/arm/sync.md: Likewise.
7658 * config/arm/thumb2.md: Likewise.
7659 * config/arm/ldmstm.md: Regenerate.
7660 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
7661 * doc/invoke.texi (masm-unified-syntax): Update documentation.
7662
7663 2015-11-06 David Malcolm <dmalcolm@redhat.com>
7664
7665 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
7666
7667 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
7668
7669 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
7670 add OEP_MATCH_SIDE_EFFECTS.
7671 * fold-const.c (operand_equal_p): Update documentation; handle
7672 OEP_MATCH_SIDE_EFFECTS.
7673 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
7674 OEP_MATCH_SIDE_EFFECTS.
7675
7676 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
7677 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
7678
7679 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
7680 * config/aarch64/aarch64-protos.h: Declare.
7681 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
7682 frsqrts.
7683 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
7684 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
7685 code when applicable.
7686 * config/aarch64/aarch64.md: Added enum entries.
7687 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
7688
7689 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
7690
7691 PR ipa/68057
7692 PR ipa/68220
7693 * ipa-polymorphic-call.c
7694 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
7695 issue when offset is out of range.
7696 (contains_type_p): Fix out of range check, clear dynamic flag.
7697
7698 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
7699
7700 * config.gcc (e6500): Fix cpu_is_64bit typo.
7701
7702 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
7703
7704 * tree-sra.c (completely_scalarize): Properly handle negative array
7705 indices using offset_int.
7706
7707 2015-11-06 Richard Biener <rguenther@suse.de>
7708
7709 * alloc-pool.h (object_allocator::allocate): Default-initialize
7710 object.
7711
7712 2015-11-06 Richard Biener <rguenther@suse.de>
7713
7714 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
7715 * lra.c (init_reg_info): Truncate copy_vec instead of
7716 re-allocating a new one and leaking the old.
7717 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
7718 bb_infos vec.
7719 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
7720 * postreload-gcse.c (free_mem): Free modify_mem_list and
7721 canon_modify_mem_list.
7722
7723 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
7724
7725 PR tree-optimization/68145
7726 * tree-vect-stmts.c (vectorizable_operation): Fix
7727 determination for booleans.
7728
7729 2015-11-06 Tom de Vries <tom@codesourcery.com>
7730
7731 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
7732 cond_jump, instead of split after last nondebug insn before cond_jump.
7733 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
7734 returning.
7735
7736 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7737
7738 PR target/68088
7739 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
7740 subregs from accumulator and make sure it's a register.
7741
7742 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
7743
7744 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
7745 low part to scalar.
7746 (reduc_uplus_<mode>): Remove.
7747 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
7748 loongson_extract_lo_<mode>.
7749 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
7750 reduc_smax_<mode>, reduc_smax_<mode>, use vec
7751 loongson_extract_lo_<mode>.
7752 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
7753
7754 2015-11-06 Richard Biener <rguenther@suse.de>
7755
7756 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
7757 members.
7758 (vect_stmt_in_region_p): Declare.
7759 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
7760 (destroy_bb_vec_info): Likewise.
7761 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
7762 (vect_get_and_check_slp_defs): Likewise.
7763 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
7764 (vect_slp_bb): Likewise.
7765 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
7766 in terms of vect_stmt_in_region_p.
7767 (vect_pattern_recog): Iterate over the BB region.
7768 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
7769 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
7770 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
7771 * config/i386/i386.c: Include gimple-iterator.h.
7772 * config/aarch64/aarch64.c: Likewise.
7773
7774 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
7775
7776 PR rtl-optimization/67753
7777 PR rtl-optimization/64164
7778 * function.c (assign_parm_setup_block): Avoid allocating a
7779 stack slot if we don't have an ABI-reserved one. Emit the
7780 copy to target_reg in the conversion seq if the copy from
7781 entry_parm is in it too. Don't use the conversion seq to copy
7782 a PARALLEL to a REG or a CONCAT.
7783
7784 2015-11-06 Richard Biener <rguenther@suse.de>
7785
7786 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
7787 equal_keys.
7788
7789 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
7790 Thomas Schwinge <thomas@codesourcery.com>
7791 James Norris <jnorris@codesourcery.com>
7792
7793
7794 * gimplify.c (gimplify_scan_omp_clauses): Add support for
7795 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
7796 (gimplify_adjust_omp_clauses): Likewise.
7797 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
7798 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
7799 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
7800 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
7801 (omp_clause_code_name): Likewise.
7802 (walk_tree_1): Handle OMP_CLAUSE_TILE.
7803 * tree.h (OMP_TILE_LIST): New macro.
7804
7805 2015-11-05 Martin Sebor <msebor@redhat.com>
7806
7807 PR c++/67942
7808 * doc/invoke.texi (-Wplacement-new): Document new option.
7809
7810 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
7811
7812 PR tree-optimization/65963
7813 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
7814 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
7815
7816 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
7817
7818 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
7819 (noce_convert_multiple_sets): Likewise.
7820 (noce_process_if_block): Call them.
7821
7822 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
7823
7824 * gimple-fold.c: Include omp-low.h.
7825 (fold_internal_goacc_dim): New.
7826 (gimple_fold_call): Call it.
7827
7828 2015-11-05 Jakub Jelinek <jakub@redhat.com>
7829 Ilya Verbin <ilya.verbin@intel.com>
7830
7831 * builtin-types.def
7832 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
7833 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
7834 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
7835 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
7836 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
7837 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
7838 (struct cgraph_simd_clone_arg): Adjust comment.
7839 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
7840 to GOMP_target_ext. Add num_teams and thread_limit arguments.
7841 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
7842 to GOMP_target_data_ext.
7843 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
7844 to GOMP_target_update_ext.
7845 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
7846 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
7847 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
7848 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
7849 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
7850 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
7851 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
7852 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
7853 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
7854 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
7855 * tree-core.h (enum omp_clause_schedule_kind): Add
7856 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
7857 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
7858 OMP_CLAUSE_SCHEDULE_LAST value.
7859 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
7860 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
7861 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
7862 OMP_FOR_CHECK. Remove comment.
7863 * tree-pretty-print.c (dump_omp_clause): Handle
7864 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
7865 Simplify. Print schedule clause modifiers.
7866 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
7867 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
7868 cases.
7869 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
7870 (omp_default_clause): Tweak for
7871 private/firstprivate/is_device_ptr variables on target
7872 construct and use_device_ptr on target data.
7873 (omp_check_private): Likewise.
7874 (omp_notice_variable): For references check whether what it refers
7875 to has mappable type, rather than the reference itself.
7876 (omp_is_private): Diagnose linear iteration variables on non-simd
7877 constructs.
7878 (omp_no_lastprivate): Return true only for Fortran.
7879 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
7880 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
7881 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
7882 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
7883 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
7884 lastprivate and linear when combined with distribute. Gimplify
7885 variable low-bound for array reduction. Look through
7886 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
7887 reductions.
7888 (gimplify_adjust_omp_clauses_1): For implicit references to
7889 variables with reference type and when not ref to scalar or
7890 ref to pointer, map what they refer to using tofrom and
7891 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
7892 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
7893 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
7894 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
7895 Diagnose the same var on both firstprivate and lastprivate on
7896 distribute construct.
7897 (gimplify_omp_for): Fix up handling of predetermined
7898 lastprivate or linear iter vars when combined with distribute.
7899 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
7900 functions.
7901 (gimplify_omp_workshare): Call optimize_target_teams.
7902 * omp-low.c (struct omp_region): Add sched_modifiers field.
7903 (struct omp_for_data): Likewise.
7904 (omp_any_child_fn_dumped): New variable.
7905 (extract_omp_for_data): Fill in sched_modifiers, and mask out
7906 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
7907 from sched_kind.
7908 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
7909 bits of OMP_CLAUSE_SCHED_KIND.
7910 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
7911 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
7912 for array section reductions.
7913 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
7914 for distribute parallel for, if there are lastprivate clauses on the
7915 for.
7916 (lower_rec_input_clauses): Handle non-zero low-bound on array
7917 section reductions.
7918 (lower_reduction_clauses): Likewise.
7919 (lower_send_clauses): Look through POINTER_PLUS_EXPR
7920 for array section reductions.
7921 (expand_parallel_call): Use nonmonotonic entrypoints for
7922 nonmonotonic: dynamic/guided.
7923 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
7924 child_fn if current_function_decl has assembler name set, but child_fn
7925 does not. Dump the header and IL of the child function when not in SSA
7926 form.
7927 (expand_omp_target): Likewise. Pass num_teams and thread_limit
7928 arguments to BUILT_IN_GOMP_TARGET.
7929 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
7930 Initialize the extra _looptemp_ clause to fd->loop.n2.
7931 (expand_omp_for): Use nonmonotonic entrypoints for
7932 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
7933 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
7934 again if we have dumped any child functions.
7935 (lower_omp_for_lastprivate): Determine the right count variable
7936 for distribute simd, or distribute parallel for{, simd}.
7937 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
7938 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
7939 support.
7940 (simd_clone_clauses_extract): Handle variable step
7941 for references and arguments passed by reference.
7942 (simd_clone_mangle): Mangle ref/uval/val variable steps.
7943 (simd_clone_adjust_argument_types): Handle
7944 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
7945 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
7946 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
7947 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
7948 (simd_clone_linear_addend): New function.
7949 (simd_clone_adjust): Handle variable step like similarly
7950 to constant step, use simd_clone_linear_addend to determine
7951 the actual step at runtime.
7952
7953 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
7954
7955 * target.def (goacc.dim_limit): New hook.
7956 * targhooks.h (default_goacc_dim_limit): Declare.
7957 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
7958 * doc/tm.texi: Rebuilt.
7959 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
7960 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
7961 (default_goacc_dim_limit): New.
7962 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
7963 (nvptx_goacc_dim_limit) New.
7964 (TARGET_GOACC_DIM_LIMIT): Override.
7965 * tree-vrp.c: Include omp-low.h, target.h.
7966 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
7967 IFN_GOACC_DIM_POS.
7968
7969 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
7970
7971 * tree-vect-generic.c (do_compare): Use -1 for true
7972 result instead of 1.
7973
7974 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7975
7976 * config/aarch64/aarch64.c
7977 (aarch64_can_use_per_function_literal_pools_p): New.
7978 (aarch64_use_blocks_for_constant_p): Adjust declaration
7979 and use aarch64_can_use_function_literal_pools_p.
7980 (aarch64_select_rtx_section): Update.
7981
7982 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
7983
7984 * targhooks.c (default_get_mask_mode): Use BLKmode in
7985 case target doesn't support required vector mode.
7986 * stor-layout.c (layout_type); Check for BLKmode.
7987
7988 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
7989 Sebastian Pop <s.pop@samsung.com>
7990
7991 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
7992 Remove use of parameter_rename_map.
7993 (copy_def): Remove.
7994 (copy_internal_parameters): Remove.
7995 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
7996 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
7997 (free_sese_info): Do not free parameter_rename_map.
7998 (set_rename): Do not use parameter_rename_map.
7999 (rename_uses): Update call to set_rename.
8000 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
8001 * sese.h (parameter_rename_map_t): Remove.
8002 (struct sese_info_t): Remove field parameter_rename_map.
8003
8004 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
8005 Sebastian Pop <s.pop@samsung.com>
8006
8007 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
8008 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
8009 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
8010 anonymous namespace.
8011 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
8012 (isl_id_for_pbb): Use a buffer of size 10.
8013 (isl_id_for_ssa_name): Same.
8014 * sese.c (set_rename): Add more dumps.
8015
8016 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8017
8018 * omp-low.c (struct omp_context): Remove reduction_map field.
8019 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
8020 (new_omp_context, delete_omp_context, scan_omp_target): Remove
8021 reduction_map handling.
8022 (lower_omp_target): Remove obsolete openacc reduction handling.
8023
8024 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8025
8026 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
8027
8028 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8029 Cesar Philippidis <cesar@codesourcery.com>
8030
8031 * config/nvptx/nvptx.c: Include gimple headers.
8032 (worker_red_size, worker_red_align, worker_red_name,
8033 worker_red_sym): New.
8034 (nvptx_option_override): Initialize worker reduction buffer.
8035 (nvptx_file_end): Write out worker reduction buffer var.
8036 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
8037 nvptx_expand_cmp_swap): New builtin expanders.
8038 (enum nvptx_builtins): New.
8039 (nvptx_builtin_decls): New.
8040 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
8041 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
8042 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
8043 nvptx_lockless_update): New helpers.
8044 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
8045 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
8046 (nvptx_goacc_reduction): New.
8047 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
8048 TARGET_BUILTIN_DECL): Override.
8049 (TARGET_GOACC_REDUCTION): Override.
8050
8051 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8052 Cesar Philippidis <cesar@codesourcery.com>
8053
8054 * internal-fn.def (GOACC_REDUCTION): New.
8055 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
8056 * internal-fn.c (expand_GOACC_REDUCTION): New.
8057 * target.def (goacc.reduction): New OpenACC hook.
8058 * targhooks.h (default_goacc_reduction): Declare.
8059 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
8060 * doc/tm.texi: Rebuilt.
8061 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
8062 scan_sharing_clauses): Remove oacc reduction handling here.
8063 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
8064 (oacc_lower_reduction_var_helper): Delete.
8065 (lower_oacc_reductions): New.
8066 (lower_reduction_clauses): Don't handle OpenACC reductions here.
8067 (lower_oacc_head_tail): Call lower_oacc_reductions.
8068 (oacc_gimple_assign, oacc_init_reduction_array,
8069 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
8070 oacc_process_reduction_data): Delete.
8071 (lower_omp_target): Remove old OpenACC reduction handling. Insert
8072 dummy OpenACC gang reduction for reductions at outer level.
8073 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
8074 (default_goacc_reduction): New.
8075 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
8076
8077 2015-11-04 Martin Liska <mliska@suse.cz>
8078
8079 * cgraphunit.c (cgraph_node::expand_thunk): Call
8080 allocate_struct_function before init_function_start.
8081 (cgraph_node::expand): Use push_cfun and pop_cfun.
8082 * config/i386/i386.c (ix86_code_end): Call
8083 allocate_struct_function before init_function_start.
8084 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
8085 * function.c (init_function_start): Move preamble to all
8086 callers.
8087 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
8088 (execute_one_pass): Handle newly added TODO_discard_function.
8089 (execute_pass_list_1): Terminate if cfun equals to NULL.
8090 (execute_pass_list): Do not push and pop cfun, expect that
8091 cfun is set.
8092 * tree-pass.h (TODO_discard_function): Define.
8093
8094 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
8095
8096 * cfganal.c (inverted_post_order_compute): Remove conditional
8097 compilation, use flag_checking.
8098 * config.in: Regenerate.
8099 * configure: Regenerate.
8100 * configure.ac: Remove ENABLE_CHECKING.
8101 * genconditions.c: Do not #undef ENABLE_CHECKING.
8102 * sese.h (bb_in_region): Comment out broken check.
8103 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
8104 conditional compilation, use flag_checking.
8105
8106 2015-11-04 Tom de Vries <tom@codesourcery.com>
8107
8108 PR tree-optimization/67742
8109 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
8110 field.
8111 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
8112 (create_variable_info_for_1): Add and handle handle_param parameter.
8113 Add restrict handling.
8114 (create_variable_info_for): Call create_variable_info_for_1 with extra
8115 arg.
8116 (make_param_constraints): Drop restrict_name parameter. Ignore
8117 vi->only_restrict_pointers.
8118 (intra_create_variable_infos): Call create_variable_info_for_1 with
8119 extra arg. Remove restrict handling. Call make_param_constraints with
8120 one fewer arg.
8121
8122 2015-11-04 Tom de Vries <tom@codesourcery.com>
8123
8124 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
8125 variable.
8126
8127 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8128
8129 * config/arm/coff.h: Remove.
8130
8131 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
8132
8133 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
8134 check for aggregate types and beef up comment for mode check.
8135
8136 2015-11-03 Richard Biener <rguenther@suse.de>
8137
8138 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
8139 data references here.
8140 * tree-vect-loop.c: Include cgraph.h.
8141 (vect_analyze_loop_2): Collect data references here.
8142 * tree-vect-slp.c (find_bb_location): Inline ...
8143 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
8144 Factor in vect_slp_transform_bb.
8145 (vect_slp_transform_bb): Removed.
8146 (vect_slp_analyze_bb_1): Collect data references here.
8147 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
8148 vect_slp_bb.
8149 * tree-vectorizer.h (vect_slp_bb): Declare.
8150 (vect_slp_analyze_bb): Remove.
8151 (vect_slp_transform_bb): Remove.
8152 (find_bb_location): Remove.
8153 (vect_analyze_data_refs): Remove stmt count reference parameter.
8154
8155 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
8156
8157 * multiple_target.c (create_dispatcher_calls): Add target check
8158 on ifunc.
8159 (create_target_clone): Change assembler name for versioned declarations.
8160
8161 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
8162 Chung-Lin Tang <cltang@codesourcery.com>
8163
8164 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
8165 * omp-low.c (check_omp_nesting_restrictions): Allow
8166 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
8167 contexts.
8168
8169 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
8170
8171 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
8172 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
8173 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
8174 builtin.
8175 (vmulxq_f32): Likewise.
8176 (vmulx_f64): New.
8177 (vmulxq_f64): Rewrite to call fmulx builtin.
8178 (vmulxs_f32): Likewise.
8179 (vmulxd_f64): Likewise.
8180 (vmulx_lane_f32): Remove.
8181 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
8182
8183 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
8184
8185 * config/aarch64/aarch64.md (*movhf_aarch64): Use
8186 aarch64_reg_or_fp_zero for second operand.
8187
8188 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
8189
8190 * gimple-expr.c: Include hash-set.h and rtl.h.
8191 (mark_addressable_queue): New var.
8192 (mark_addressable): Factor actual marking into...
8193 (mark_addressable_1): ... this. Queue it up during expand.
8194 (mark_addressable_2): New.
8195 (flush_mark_addressable_queue): New.
8196 * gimple-expr.h (flush_mark_addressable_queue): Declare.
8197 * cfgexpand.c: Include gimple-expr.h.
8198 (pass_expand::execute): Flush mark_addressable queue.
8199
8200 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
8201
8202 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
8203 bb_no_side_effects_p tests...
8204 (tree_ssa_ifcombine_bb): ... here.
8205
8206 PR tree-optimization/68083
8207 * tree-ssa-ifcombine.c: Include tree-ssa.h.
8208 (bb_no_side_effects_p): Test for undefined uses too.
8209 * tree-ssa.c (gimple_uses_undefined_value_p): New.
8210 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
8211
8212 2015-11-02 Jeff Law <law@redhat.com>
8213
8214 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
8215 cases where the loop latch edge is in the middle of an FSM path.
8216
8217 2015-11-03 Tom de Vries <tom@codesourcery.com>
8218
8219 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
8220 (make_param_constraints): ... this. Add and handle restrict_name
8221 parameter. Handle is_full_var case.
8222 (intra_create_variable_infos): Use make_param_constraints.
8223
8224 2015-11-03 Tom de Vries <tom@codesourcery.com>
8225
8226 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
8227 make_copy_constraint call with make_constraint_from call.
8228
8229 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
8230
8231 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
8232 PIE executables.
8233
8234 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
8235
8236 * builtins.h (fold_fma): Move to fold-const-call.h.
8237 * builtins.c: Include fold-const-call.h.
8238 (mathfn_built_in_2): New function, split out from...
8239 (mathfn_built_in_1): ...here.
8240 (do_real_to_int_conversion, fold_const_builtin_pow)
8241 (fold_const_builtin_logb, fold_const_builtin_significand)
8242 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
8243 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
8244 (fold_builtin_sincos): Use fold_const_call to handle constants.
8245 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
8246 checks for ERROR_MARK. Use fold_const_call to handle constant
8247 folds for math functions.
8248 (fold_fma): Move to fold-const-call.c.
8249 * fold-const.c: Include fold-const-call.h.
8250 * Makefile.in (OBJS): Add fold-const-call.o.
8251 (PLUGIN_HEADERS): Add fold-const-call.h.
8252 * realmpfr.h (real_from_mpfr): Allow the format to be specified
8253 directly.
8254 * realmpfr.c (real_from_mpfr): Likewise.
8255 * fold-const-call.h, fold-const-call.c: New files.
8256
8257 2015-11-02 Julian Brown <julian@codesourcery.com>
8258
8259 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
8260 brackets and semicolon.
8261
8262 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
8263
8264 Revert:
8265 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
8266
8267 PR tree-optimization/65963
8268 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
8269 LSHIFT_EXPRs as equivalent MULT_EXPRs.
8270
8271 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
8272
8273 PR middle-end/68166
8274 * fold-const.c: Include "md5.h".
8275
8276 2015-11-01 Jeff Law <law@redhat.com>
8277
8278 * vmsdbgout.c: Revert unused header file reduction patch.
8279
8280 * config/mcore/mcore.c: Include regs.h.
8281
8282 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
8283
8284 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
8285
8286 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
8287
8288 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
8289 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
8290 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
8291
8292 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
8293
8294 * ggc-common.c: Restore needed header for checking=release.
8295
8296 2015-10-31 Tom de Vries <tom@codesourcery.com>
8297
8298 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
8299
8300 2015-10-31 Tom de Vries <tom@codesourcery.com>
8301
8302 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
8303 existing varinfo for arguments.
8304
8305 2015-10-31 Tom de Vries <tom@codesourcery.com>
8306
8307 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
8308 create_function_info_for. Dump constraints generated during
8309 create_function_info_for. Move intra_create_variable_infos call and
8310 function-return-values-escape bit to ...
8311 (create_function_info_for): ... here, and merge
8312 intra_create_variable_infos call with argument loop. Add and handle
8313 nonlocal_p parameter.
8314
8315 2015-10-31 Tom de Vries <tom@codesourcery.com>
8316
8317 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
8318 updating is alap, and seperated from preceding code. Make sure
8319 insert_vi_for_tree is seperated from surrounding code.
8320
8321 2015-10-31 Tom de Vries <tom@codesourcery.com>
8322
8323 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
8324
8325 2015-10-30 Jeff Law <law@redhat.com>
8326 Nathan Sidwell <nathan@acm.org>
8327
8328 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
8329 args.
8330 (MOVE_MAX): Set to 8.
8331
8332 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
8333
8334 * cgraph.c: Include context.h for offloading.
8335 * varpool.c: Include context.h and omp-low.h.
8336
8337 2015-10-30 Anatoly Sokolov <aesok@post.ru>
8338
8339 * rtl.h (contains_symbol_ref_p): Declare.
8340 (SYMBOL_REF_P): Define.
8341 * rtlanal.c (contains_symbol_ref_p: New function.
8342 * lra-constraints.c (contains_symbol_ref_p): Remove.
8343 * var-tracking.c (contains_symbol_ref): Remove.
8344 (track_expr_p): Use contains_symbol_ref_p instead of
8345 contains_symbol_ref.
8346
8347 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
8348
8349 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
8350 * fold-const.c (get_array_ctor_element_at_index): New.
8351 (fold): Remove binary-search through CONSTRUCTOR, call previous.
8352
8353 * fold-const.h (get_array_ctor_element_at_index): New.
8354
8355 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
8356
8357 * Makefile.in (OBJS): Add multiple_target.o.
8358 * attrib.c (make_attribute): Moved from config/i386/i386.c
8359 * config/i386/i386.c (make_attribute): Deleted.
8360 * multiple_target.c (create_dispatcher_calls): New.
8361 (get_attr_len): Ditto.
8362 (get_attr_str): Ditto.
8363 (separate_attrs): Ditto.
8364 (is_valid_asm_symbol): Ditto.
8365 (create_new_asm_name): Ditto.
8366 (create_target_clone): Ditto.
8367 (expand_target_clones): Ditto.
8368 (ipa_target_clone): Ditto.
8369 (ipa_dispatcher_calls): Ditto.
8370 * passes.def (pass_target_clone): Two new ipa passes.
8371 * tree-pass.h (make_pass_target_clone): Ditto.
8372 * doc/extend.texi (target_clones): New attribute description.
8373
8374 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
8375
8376 PR rtl-optimization/68106
8377 * lra-remat.c (input_regno_present_p): Process hard regs
8378 explicitly present in machine description insns.
8379 (call_used_input_regno_present_p): Ditto.
8380 (calculate_gen_cands): Ditto.
8381 (do_remat): Ditto.
8382
8383 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
8384
8385 * config/arm/neon-testgen.ml: Fix comment typo.
8386
8387 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8388
8389 * rtlanal.c (reg_set_p): Expand function comment.
8390
8391 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
8392
8393 * alias.c: Remove unused headers.
8394 * asan.c: Likewise.
8395 * attribs.c: Likewise.
8396 * auto-inc-dec.c: Likewise.
8397 * auto-profile.c: Likewise.
8398 * bb-reorder.c: Likewise.
8399 * bitmap.c: Likewise.
8400 * bt-load.c: Likewise.
8401 * builtins.c: Likewise.
8402 * caller-save.c: Likewise.
8403 * calls.c: Likewise.
8404 * ccmp.c: Likewise.
8405 * cfg.c: Likewise.
8406 * cfganal.c: Likewise.
8407 * cfgbuild.c: Likewise.
8408 * cfgcleanup.c: Likewise.
8409 * cfgexpand.c: Likewise.
8410 * cfghooks.c: Likewise.
8411 * cfgloop.c: Likewise.
8412 * cfgloopanal.c: Likewise.
8413 * cfgloopmanip.c: Likewise.
8414 * cfgrtl.c: Likewise.
8415 * cgraph.c: Likewise.
8416 * cgraphbuild.c: Likewise.
8417 * cgraphclones.c: Likewise.
8418 * cgraphunit.c: Likewise.
8419 * cilk-common.c: Likewise.
8420 * combine-stack-adj.c: Likewise.
8421 * combine.c: Likewise.
8422 * compare-elim.c: Likewise.
8423 * convert.c: Likewise.
8424 * coverage.c: Likewise.
8425 * cppbuiltin.c: Likewise.
8426 * cprop.c: Likewise.
8427 * cse.c: Likewise.
8428 * cselib.c: Likewise.
8429 * data-streamer-in.c: Likewise.
8430 * data-streamer-out.c: Likewise.
8431 * data-streamer.c: Likewise.
8432 * dbxout.c: Likewise.
8433 * dce.c: Likewise.
8434 * ddg.c: Likewise.
8435 * debug.c: Likewise.
8436 * df-core.c: Likewise.
8437 * df-problems.c: Likewise.
8438 * df-scan.c: Likewise.
8439 * dfp.c: Likewise.
8440 * dojump.c: Likewise.
8441 * dominance.c: Likewise.
8442 * domwalk.c: Likewise.
8443 * double-int.c: Likewise.
8444 * dse.c: Likewise.
8445 * dumpfile.c: Likewise.
8446 * dwarf2asm.c: Likewise.
8447 * dwarf2cfi.c: Likewise.
8448 * dwarf2out.c: Likewise.
8449 * emit-rtl.c: Likewise.
8450 * except.c: Likewise.
8451 * explow.c: Likewise.
8452 * expmed.c: Likewise.
8453 * expr.c: Likewise.
8454 * final.c: Likewise.
8455 * fixed-value.c: Likewise.
8456 * fold-const.c: Likewise.
8457 * function.c: Likewise.
8458 * fwprop.c: Likewise.
8459 * gcse.c: Likewise.
8460 * generic-match-head.c: Likewise.
8461 * ggc-common.c: Likewise.
8462 * gimple-builder.c: Likewise.
8463 * gimple-expr.c: Likewise.
8464 * gimple-fold.c: Likewise.
8465 * gimple-iterator.c: Likewise.
8466 * gimple-low.c: Likewise.
8467 * gimple-match-head.c: Likewise.
8468 * gimple-pretty-print.c: Likewise.
8469 * gimple-ssa-isolate-paths.c: Likewise.
8470 * gimple-ssa-strength-reduction.c: Likewise.
8471 * gimple-streamer-in.c: Likewise.
8472 * gimple-streamer-out.c: Likewise.
8473 * gimple-walk.c: Likewise.
8474 * gimple.c: Likewise.
8475 * gimplify-me.c: Likewise.
8476 * gimplify.c: Likewise.
8477 * godump.c: Likewise.
8478 * graph.c: Likewise.
8479 * graphds.c: Likewise.
8480 * haifa-sched.c: Likewise.
8481 * hw-doloop.c: Likewise.
8482 * ifcvt.c: Likewise.
8483 * init-regs.c: Likewise.
8484 * internal-fn.c: Likewise.
8485 * ipa-chkp.c: Likewise.
8486 * ipa-comdats.c: Likewise.
8487 * ipa-cp.c: Likewise.
8488 * ipa-devirt.c: Likewise.
8489 * ipa-icf-gimple.c: Likewise.
8490 * ipa-icf.c: Likewise.
8491 * ipa-inline-analysis.c: Likewise.
8492 * ipa-inline-transform.c: Likewise.
8493 * ipa-inline.c: Likewise.
8494 * ipa-polymorphic-call.c: Likewise.
8495 * ipa-profile.c: Likewise.
8496 * ipa-prop.c: Likewise.
8497 * ipa-pure-const.c: Likewise.
8498 * ipa-ref.c: Likewise.
8499 * ipa-reference.c: Likewise.
8500 * ipa-split.c: Likewise.
8501 * ipa-utils.c: Likewise.
8502 * ipa-visibility.c: Likewise.
8503 * ipa.c: Likewise.
8504 * ira-build.c: Likewise.
8505 * ira-color.c: Likewise.
8506 * ira-conflicts.c: Likewise.
8507 * ira-costs.c: Likewise.
8508 * ira-emit.c: Likewise.
8509 * ira-lives.c: Likewise.
8510 * ira.c: Likewise.
8511 * jump.c: Likewise.
8512 * langhooks.c: Likewise.
8513 * lcm.c: Likewise.
8514 * lists.c: Likewise.
8515 * loop-doloop.c: Likewise.
8516 * loop-init.c: Likewise.
8517 * loop-invariant.c: Likewise.
8518 * loop-iv.c: Likewise.
8519 * loop-unroll.c: Likewise.
8520 * lower-subreg.c: Likewise.
8521 * lra-assigns.c: Likewise.
8522 * lra-coalesce.c: Likewise.
8523 * lra-constraints.c: Likewise.
8524 * lra-eliminations.c: Likewise.
8525 * lra-lives.c: Likewise.
8526 * lra-remat.c: Likewise.
8527 * lra-spills.c: Likewise.
8528 * lra.c: Likewise.
8529 * lto-cgraph.c: Likewise.
8530 * lto-compress.c: Likewise.
8531 * lto-opts.c: Likewise.
8532 * lto-section-in.c: Likewise.
8533 * lto-section-out.c: Likewise.
8534 * lto-streamer-in.c: Likewise.
8535 * lto-streamer-out.c: Likewise.
8536 * lto-streamer.c: Likewise.
8537 * mcf.c: Likewise.
8538 * mode-switching.c: Likewise.
8539 * modulo-sched.c: Likewise.
8540 * optabs.c: Likewise.
8541 * opts-global.c: Likewise.
8542 * passes.c: Likewise.
8543 * plugin.c: Likewise.
8544 * postreload-gcse.c: Likewise.
8545 * postreload.c: Likewise.
8546 * predict.c: Likewise.
8547 * print-tree.c: Likewise.
8548 * profile.c: Likewise.
8549 * real.c: Likewise.
8550 * realmpfr.c: Likewise.
8551 * recog.c: Likewise.
8552 * ree.c: Likewise.
8553 * reg-stack.c: Likewise.
8554 * regcprop.c: Likewise.
8555 * reginfo.c: Likewise.
8556 * regrename.c: Likewise.
8557 * regstat.c: Likewise.
8558 * reload.c: Likewise.
8559 * reload1.c: Likewise.
8560 * reorg.c: Likewise.
8561 * resource.c: Likewise.
8562 * rtl-chkp.c: Likewise.
8563 * rtl-error.c: Likewise.
8564 * rtlanal.c: Likewise.
8565 * rtlhooks.c: Likewise.
8566 * sanopt.c: Likewise.
8567 * sched-deps.c: Likewise.
8568 * sched-ebb.c: Likewise.
8569 * sched-rgn.c: Likewise.
8570 * sdbout.c: Likewise.
8571 * sel-sched-dump.c: Likewise.
8572 * sel-sched-ir.c: Likewise.
8573 * sel-sched.c: Likewise.
8574 * sese.c: Likewise.
8575 * shrink-wrap.c: Likewise.
8576 * simplify-rtx.c: Likewise.
8577 * stack-ptr-mod.c: Likewise.
8578 * statistics.c: Likewise.
8579 * stmt.c: Likewise.
8580 * stor-layout.c: Likewise.
8581 * store-motion.c: Likewise.
8582 * stringpool.c: Likewise.
8583 * symtab.c: Likewise.
8584 * target-globals.c: Likewise.
8585 * targhooks.c: Likewise.
8586 * toplev.c: Likewise.
8587 * tracer.c: Likewise.
8588 * trans-mem.c: Likewise.
8589 * tree-affine.c: Likewise.
8590 * tree-call-cdce.c: Likewise.
8591 * tree-cfg.c: Likewise.
8592 * tree-cfgcleanup.c: Likewise.
8593 * tree-chkp-opt.c: Likewise.
8594 * tree-chkp.c: Likewise.
8595 * tree-chrec.c: Likewise.
8596 * tree-complex.c: Likewise.
8597 * tree-data-ref.c: Likewise.
8598 * tree-dfa.c: Likewise.
8599 * tree-diagnostic.c: Likewise.
8600 * tree-dump.c: Likewise.
8601 * tree-eh.c: Likewise.
8602 * tree-emutls.c: Likewise.
8603 * tree-if-conv.c: Likewise.
8604 * tree-inline.c: Likewise.
8605 * tree-into-ssa.c: Likewise.
8606 * tree-iterator.c: Likewise.
8607 * tree-loop-distribution.c: Likewise.
8608 * tree-nested.c: Likewise.
8609 * tree-nrv.c: Likewise.
8610 * tree-object-size.c: Likewise.
8611 * tree-outof-ssa.c: Likewise.
8612 * tree-parloops.c: Likewise.
8613 * tree-phinodes.c: Likewise.
8614 * tree-predcom.c: Likewise.
8615 * tree-pretty-print.c: Likewise.
8616 * tree-profile.c: Likewise.
8617 * tree-scalar-evolution.c: Likewise.
8618 * tree-sra.c: Likewise.
8619 * tree-ssa-address.c: Likewise.
8620 * tree-ssa-alias.c: Likewise.
8621 * tree-ssa-ccp.c: Likewise.
8622 * tree-ssa-coalesce.c: Likewise.
8623 * tree-ssa-copy.c: Likewise.
8624 * tree-ssa-dce.c: Likewise.
8625 * tree-ssa-dse.c: Likewise.
8626 * tree-ssa-forwprop.c: Likewise.
8627 * tree-ssa-ifcombine.c: Likewise.
8628 * tree-ssa-live.c: Likewise.
8629 * tree-ssa-loop-ch.c: Likewise.
8630 * tree-ssa-loop-im.c: Likewise.
8631 * tree-ssa-loop-ivcanon.c: Likewise.
8632 * tree-ssa-loop-ivopts.c: Likewise.
8633 * tree-ssa-loop-manip.c: Likewise.
8634 * tree-ssa-loop-niter.c: Likewise.
8635 * tree-ssa-loop-prefetch.c: Likewise.
8636 * tree-ssa-loop-unswitch.c: Likewise.
8637 * tree-ssa-loop.c: Likewise.
8638 * tree-ssa-math-opts.c: Likewise.
8639 * tree-ssa-operands.c: Likewise.
8640 * tree-ssa-phiopt.c: Likewise.
8641 * tree-ssa-phiprop.c: Likewise.
8642 * tree-ssa-pre.c: Likewise.
8643 * tree-ssa-propagate.c: Likewise.
8644 * tree-ssa-reassoc.c: Likewise.
8645 * tree-ssa-scopedtables.c: Likewise.
8646 * tree-ssa-sink.c: Likewise.
8647 * tree-ssa-strlen.c: Likewise.
8648 * tree-ssa-structalias.c: Likewise.
8649 * tree-ssa-tail-merge.c: Likewise.
8650 * tree-ssa-ter.c: Likewise.
8651 * tree-ssa-threadupdate.c: Likewise.
8652 * tree-ssa-uncprop.c: Likewise.
8653 * tree-ssa-uninit.c: Likewise.
8654 * tree-ssa.c: Likewise.
8655 * tree-ssanames.c: Likewise.
8656 * tree-stdarg.c: Likewise.
8657 * tree-streamer-in.c: Likewise.
8658 * tree-streamer-out.c: Likewise.
8659 * tree-streamer.c: Likewise.
8660 * tree-switch-conversion.c: Likewise.
8661 * tree-tailcall.c: Likewise.
8662 * tree-vect-data-refs.c: Likewise.
8663 * tree-vect-generic.c: Likewise.
8664 * tree-vect-loop-manip.c: Likewise.
8665 * tree-vect-loop.c: Likewise.
8666 * tree-vect-patterns.c: Likewise.
8667 * tree-vect-slp.c: Likewise.
8668 * tree-vect-stmts.c: Likewise.
8669 * tree-vectorizer.c: Likewise.
8670 * tree-vrp.c: Likewise.
8671 * tree.c: Likewise.
8672 * tsan.c: Likewise.
8673 * ubsan.c: Likewise.
8674 * value-prof.c: Likewise.
8675 * var-tracking.c: Likewise.
8676 * varasm.c: Likewise.
8677 * varpool.c: Likewise.
8678 * vmsdbgout.c: Likewise.
8679 * vtable-verify.c: Likewise.
8680 * web.c: Likewise.
8681 * wide-int-print.cc: Likewise.
8682 * wide-int.cc: Likewise.
8683 * xcoffout.c: Likewise.
8684
8685 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
8686
8687 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
8688 between pass numbering and execution order.
8689
8690 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8691
8692 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
8693 check for dependencies.
8694
8695 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
8696
8697 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
8698 CDI_DOMINATORS.
8699
8700 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
8701
8702 * real.h (format_helper): New.
8703 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
8704 (real_from_target, real_nan, real_2expN, real_value_truncate)
8705 (significand_size, real_from_string2, exact_real_inverse)
8706 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
8707 (real_round, real_isinteger, real_from_integer): Replace
8708 machine_mode arguments with format_helper arguments.
8709 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
8710 (real_from_integer, real_nan, real_2expN, real_convert)
8711 (real_value_truncate, exact_real_truncate, real_to_target)
8712 (real_from_target, significand_size, real_powi, real_trunc)
8713 (real_floor, real_ceil, real_round, real_isinteger): Replace
8714 machine_mode arguments with format_helper arguments.
8715 (real_to_target_fmt, real_from_target_fmt): Delete.
8716 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
8717 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
8718 argument with real_format.
8719 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
8720
8721 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
8722
8723 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
8724 (fixed_to_decimal, fixed_convert_from_real)
8725 (real_convert_from_fixed): Fix mode arguments to real_2expN.
8726
8727 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
8728
8729 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
8730 SCALAR_FLOAT_MODE_P.
8731
8732 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
8733
8734 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
8735 (completely_scalarize): Comment zero-length arrays.
8736 (get_access_replacement): Correct comment re. precondition.
8737
8738 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8739
8740 * config/i386/i386.c (get_builtin_code_for_version): Set priority
8741 for PROCESSOR_ZNVER1.
8742 (enum processor_model): Add M_AMDFAM17H_znver1.
8743 (struct arch_names_table): Likewise.
8744 * doc/extend.texi: ADD znver1.
8745
8746 2015-10-30 Richard Biener <rguenther@suse.de>
8747
8748 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
8749 fold () on single RHSs. Allow CONSTRUCTORS with trailing
8750 zeros to be folded to VECTOR_CSTs.
8751 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
8752 * fold-const.c (fold): Use build_vector_from_ctor.
8753
8754 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
8755
8756 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
8757 "mov %0.h[0], %1.h[0] to "neon_move".
8758 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
8759 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
8760 "mov_imm".
8761 (*cmovsi_insn_uxtw): Likewise.
8762
8763 2015-10-30 Tom de Vries <tom@codesourcery.com>
8764
8765 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
8766 unsigned, and initialize, and use initial value instead of hardcoded
8767 constant. Add generic constraints dumping section. Don't dump global
8768 initializers constraints dumping section if empty. Don't update
8769 variable from if unused.
8770
8771 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
8772
8773 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
8774 flag_checking and/or CHECKING_P to eliminate conditional compilation
8775 on ENABLE_CHECKING.
8776 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
8777 * config/bfin/bfin.c (hwloop_optimize): Likewise.
8778 * config/i386/i386.c (ix86_print_operand_address): Likewise.
8779 (output_387_binary_op): Likewise.
8780 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
8781 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
8782 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
8783 Likewise.
8784 * config/rs6000/rs6000.h: Likewise.
8785 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
8786
8787 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
8788
8789 * config/sh/sh.opt (mfdpic): Add missing period.
8790
8791 2015-08-29 Anatoly Sokolov <aesok@post.ru>
8792
8793 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8794 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
8795 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8796 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
8797 mcore_base_register_rtx_p, mcore_legitimate_index_p,
8798 mcore_legitimate_address_p): New functions.
8799 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
8800
8801 2015-10-29 Jeff Law <law@redhat.com>
8802
8803 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
8804 method.
8805 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
8806 * tree-ssa-threadedge.c
8807 (record_temporary_equivalences_from_stmts_at_dest): Remove
8808 backedge_seen argument and associated code which invalidated
8809 equivalences based on the value of that argument.
8810 (thread_through_normal_block): Corresponding changes.
8811
8812 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
8813
8814 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
8815 function earlier in the file.
8816 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
8817 df_regs_ever_live_p.
8818
8819 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
8820
8821 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
8822 by ignoring it.
8823
8824 2015-10-29 Richard Henderson <rth@redhat.com>
8825
8826 PR target/68124
8827 PR rtl-opt/67609
8828 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
8829 sse check to the exact conditions of PR 67609.
8830
8831 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
8832
8833 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
8834 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
8835 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
8836 of the traditional names that TFmode uses for handling IEEE
8837 extended double. If -mfloat128, add KFmode functions for all of
8838 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
8839 make TFmode use the same emulation functions as KFmode.
8840 (init_float128_ibm): Likewise.
8841 (init_float128_ieee): Likewise.
8842 (rs6000_generate_compare): For IEEE 128-bit floating point
8843 comparisons, call the unordered comparison function instead of the
8844 ordered comparison function.
8845 (rs6000_expand_float128_convert): Deal with operands that are
8846 memory operands. Restructure the code to use a switch statement on
8847 the mode. Add support for TFmode defaulting to either IBM extended
8848 double or IEEE 128-bit floating point. If the underlying types are
8849 the same, use a move instead of a conversion function.
8850 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
8851 use for IEEE 128-bit floating point constants with -mfloat128.
8852 (rs6000_c_mode_for_suffix): Likewise.
8853 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
8854 128-bit floating point with IBM extended double floating point.
8855 (rs6000_invalid_binary_op): Likewise.
8856 (rs6000_gen_le_vsx_permute): On little endian systems generate a
8857 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
8858 types that can go in vector registers.
8859 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
8860 point types that can go in vector registers on little endian
8861 PowerPC systems.
8862 (mark_swaps_for_removal): Likewise.
8863 (rs6000_analyze_swaps): Likewise.
8864 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
8865
8866 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
8867 rework IEEE 128-bit floating point insns to deal with TFmode being
8868 either IBM extended double or IEEE 128-bit floating point.
8869 (IFKF): Likewise.
8870 (IBM128): Update iterator to add condition that the mode is IBM
8871 extended double.
8872 (IEEE128): New iterator for IEEE 128-bit floating point.
8873 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
8874 (FLOAT128): Likewise.
8875 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
8876 iterator.
8877 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
8878 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
8879 instead of hard coding TFmode or KFmode.
8880 (negtf2_internal): Likewise.
8881 (neg<mode>2_internal): Likewise.
8882 (abs<mode>2): Likewise.
8883 (abstf2_internal): Likewise.
8884 (abs<mode>2_internal): Likewise.
8885 (ieee_128bit_neg<mode>2): Likewise.
8886 (ieee_128bit_neg<mode>2_internal): Likewise.
8887 (ieee_128bit_abs<mode>2): Likewise.
8888 (ieee_128bit_abs<mode>2_internal): Likewise.
8889 (ieee_128bit_nabs<mode>2): Likewise.
8890 (ieee_128bit_nabs<mode>2_internal): Likewise.
8891 (extendiftf2): Add explicit conversions between 128-bit floating
8892 point types. Drop the old conversions that had become unwieldy.
8893 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
8894 (extendifkf2): Likewise.
8895 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
8896 (extendtfkf2): Likewise.
8897 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
8898 (trunciftf2): Likewise.
8899 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
8900 (truncifkf2): Likewise.
8901 (float<SDI:mode><IFKF:mode>2): Likewise.
8902 (trunckftf2): Likewise.
8903 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
8904 (trunctfif2): Likewise.
8905 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
8906 (extenddftf2): Rework 128-bit floating point conversions to
8907 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
8908 KFmode expanders into one function.
8909 (extenddf<mode>2): Likewise.
8910 (extenddftf2_fprs): Likewise.
8911 (extenddf<mode>2_fprs): Likewise.
8912 (extenddftf2_vsx): Likewise.
8913 (extenddf<mode>2_vsx): Likewise.
8914 (extendsftf2): Likewise.
8915 (extendsf<mode>2): Likewise.
8916 (trunctfdf2): Likewise.
8917 (trunc<mode>df2): Likewise.
8918 (trunctfdf2_internal1): Likewise.
8919 (trunc<mode>df2_internal1): Likewise.
8920 (trunctfdf2_internal2): Likewise.
8921 (trunc<mode>df2_internal2): Likewise.
8922 (trunctfsf2): Likewise.
8923 (trunc<mode>sf2): Likewise.
8924 (trunctfsf2_fprs): Likewise.
8925 (trunc<mode>sf2_fprs): Likewise.
8926 (floatsit2f): Likewise.
8927 (floatsi<mode>2): Likewise.
8928 (fix_trunc_helper): Likewise.
8929 (fix_trunc_helper<mode>): Likewise.
8930 (fix_trunctfsi2): Likewise.
8931 (fix_trunc<mode>si2): Likewise.
8932 (fix_trunctfsi2_fprs): Likewise.
8933 (fix_trunc<mode>si2_fprs): Likewise.
8934 (fix_trunctfsi2_internal): Likewise.
8935 (fix_trunc<mode>si2_internal): Likewise.
8936 (fix_trunctfdi2): Likewise.
8937 (fix_trunc<mode>di2): Likewise.
8938 (fixuns_trunctf<mode>2): Likewise.
8939 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
8940 (floatditf2): Likewise.
8941 (floatdi<mode>2): Likewise.
8942 (floatuns<mode>tf2): Likewise.
8943 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
8944 (cmptf_internal1): Use a mode iterator to add support for both
8945 types (IFmode, TFmode) that support IBM extended double.
8946 (cmp<mode>_internal1): Likewise.
8947 (cmptf_internal2): Likewise.
8948 (cmp<mode>_internal2): Likewise.
8949
8950 * doc/extend.texi (Floating Types): Document __ibm128 and
8951 __float128 on PowerPC.
8952
8953 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
8954 -mfloat128 and -mno-float128.
8955
8956 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
8957
8958 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
8959 floating point modes that can go in vector registers.
8960 (MODES_TIEABLE_P): Move tests for vector modes before tests for
8961 scalar floating point, so that IEEE 128-bit floating point that
8962 can go in vector registers bind with vectors and not FP.
8963 (struct rs6000_args): Add libcall field.
8964
8965 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
8966 and -mfloat128-software switches. Replace them with a binary
8967 -mfloat128 switch.
8968 (-mfloat128): Likewise.
8969
8970 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
8971 128-bit floating point types in GPRs, even if the appropriate
8972 option enabling the type was not used.
8973 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
8974 debugging.
8975 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
8976 pre-decrement on IEEE 128-bit floating point values.
8977 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
8978 is IEEE 128-bit floating point.
8979 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
8980 128-bit floating point types that can go in vector registers.
8981 (rs6000_option_override_internal): Change -mfloat128-none and
8982 -mfloat128-software to -mfloat128, and move code to be near other
8983 VSX option handling.
8984 (rs6000_option_override_internal): Disable -mfloat128 if we don't
8985 have the Altivec ABI.
8986 (rs6000_init_builtins): Don't make TFmode use either IFmode or
8987 KFmode floating point nodes. Instead, have three separate nodes.
8988 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
8989 eventually moving the long double default to IEEE 128-bit floating
8990 point.
8991 (rs6000_opt_masks): Add -mfloat128.
8992 (struct rs6000_opt_var): Fix typo in comment.
8993 (init_cumulative_args): Initialize libcall field in
8994 CUMULATIVE_ARGS.
8995 (rs6000_function_arg): Treat library functions as if they had
8996 prototypes to prevent IEEE 128-bit support functions from passing
8997 arguments in both GPRs and vector registers.
8998 (rs6000_arg_partial_bytes): Likewise.
8999
9000 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
9001 an option that can be turned on via -mcpu=<xxx>.
9002
9003 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
9004 longer used.
9005
9006 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
9007 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
9008 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
9009 double is IBM extended double.
9010
9011 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
9012 SUBREGs.
9013
9014 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
9015
9016 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
9017 * genconditions.c: Define CHECKING_P in the generated code.
9018 * genextract.c: Use flag_checking in insn_extract.
9019 * gengtype.c (main): Remove conditional compilation.
9020 * gengtype.h: Likewise.
9021
9022 2015-10-29 Jeff Law <law@redhat.com>
9023
9024 PR tree-optimization/67892
9025 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
9026 in comment.
9027 (thread_through_normal_block): If we have seen a backedge, then
9028 do nothing. No longer call find_jump_threads_backwards here.
9029 (thread_across_edge): Use find_jump_threads_backwards to find
9030 jump threads if the old style threader was not successful.
9031 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
9032 gsi_last_nondebug_bb. Return NULL if the block does not end
9033 with a control statement.
9034 (find_jump_threads_backwards): Setup code moved here from
9035 tree-ssa-threadedge.c::thread_through_normal_block. Accept
9036 single edge argument instead of name & block.
9037 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
9038 prototype.
9039
9040 2015-10-29 Tom de Vries <tom@codesourcery.com>
9041
9042 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
9043 types.
9044
9045 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
9046
9047 * omp-low.c (lower_omp_target): Remove unreachable code & merge
9048 ifs.
9049
9050 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
9051
9052 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
9053
9054 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
9055
9056 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
9057 guard_bb0 and use guard_bb throughout.
9058
9059 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
9060
9061 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
9062 unnecessary label.
9063
9064 2015-10-29 Richard Biener <rguenther@suse.de>
9065
9066 PR middle-end/68142
9067 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
9068 overflow.
9069
9070 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
9071
9072 * alias.c: Reorder #include statements and remove duplicates.
9073 * asan.c: Likewise.
9074 * attribs.c: Likewise.
9075 * auto-inc-dec.c: Likewise.
9076 * auto-profile.c: Likewise.
9077 * bb-reorder.c: Likewise.
9078 * bt-load.c: Likewise.
9079 * builtins.c: Likewise.
9080 * caller-save.c: Likewise.
9081 * calls.c: Likewise.
9082 * ccmp.c: Likewise.
9083 * cfg.c: Likewise.
9084 * cfganal.c: Likewise.
9085 * cfgbuild.c: Likewise.
9086 * cfgcleanup.c: Likewise.
9087 * cfgexpand.c: Likewise.
9088 * cfghooks.c: Likewise.
9089 * cfgloop.c: Likewise.
9090 * cfgloopanal.c: Likewise.
9091 * cfgloopmanip.c: Likewise.
9092 * cfgrtl.c: Likewise.
9093 * cgraph.c: Likewise.
9094 * cgraphbuild.c: Likewise.
9095 * cgraphclones.c: Likewise.
9096 * cgraphunit.c: Likewise.
9097 * cilk-common.c: Likewise.
9098 * combine-stack-adj.c: Likewise.
9099 * combine.c: Likewise.
9100 * compare-elim.c: Likewise.
9101 * convert.c: Likewise.
9102 * coverage.c: Likewise.
9103 * cppbuiltin.c: Likewise.
9104 * cprop.c: Likewise.
9105 * cse.c: Likewise.
9106 * cselib.c: Likewise.
9107 * data-streamer-in.c: Likewise.
9108 * data-streamer-out.c: Likewise.
9109 * data-streamer.c: Likewise.
9110 * dbxout.c: Likewise.
9111 * dce.c: Likewise.
9112 * ddg.c: Likewise.
9113 * debug.c: Likewise.
9114 * df-core.c: Likewise.
9115 * df-problems.c: Likewise.
9116 * df-scan.c: Likewise.
9117 * dfp.c: Likewise.
9118 * dojump.c: Likewise.
9119 * dominance.c: Likewise.
9120 * double-int.c: Likewise.
9121 * dse.c: Likewise.
9122 * dumpfile.c: Likewise.
9123 * dwarf2asm.c: Likewise.
9124 * dwarf2cfi.c: Likewise.
9125 * dwarf2out.c: Likewise.
9126 * emit-rtl.c: Likewise.
9127 * except.c: Likewise.
9128 * explow.c: Likewise.
9129 * expmed.c: Likewise.
9130 * expr.c: Likewise.
9131 * final.c: Likewise.
9132 * fixed-value.c: Likewise.
9133 * fold-const.c: Likewise.
9134 * function.c: Likewise.
9135 * fwprop.c: Likewise.
9136 * gcse.c: Likewise.
9137 * generic-match-head.c: Likewise.
9138 * ggc-common.c: Likewise.
9139 * gimple-builder.c: Likewise.
9140 * gimple-expr.c: Likewise.
9141 * gimple-fold.c: Likewise.
9142 * gimple-iterator.c: Likewise.
9143 * gimple-low.c: Likewise.
9144 * gimple-match-head.c: Likewise.
9145 * gimple-pretty-print.c: Likewise.
9146 * gimple-ssa-isolate-paths.c: Likewise.
9147 * gimple-ssa-strength-reduction.c: Likewise.
9148 * gimple-streamer-in.c: Likewise.
9149 * gimple-streamer-out.c: Likewise.
9150 * gimple-walk.c: Likewise.
9151 * gimple.c: Likewise.
9152 * gimplify-me.c: Likewise.
9153 * gimplify.c: Likewise.
9154 * godump.c: Likewise.
9155 * graph.c: Likewise.
9156 * graphite-poly.c: Likewise.
9157 * haifa-sched.c: Likewise.
9158 * hw-doloop.c: Likewise.
9159 * ifcvt.c: Likewise.
9160 * incpath.c: Likewise.
9161 * init-regs.c: Likewise.
9162 * internal-fn.c: Likewise.
9163 * ipa-chkp.c: Likewise.
9164 * ipa-comdats.c: Likewise.
9165 * ipa-cp.c: Likewise.
9166 * ipa-devirt.c: Likewise.
9167 * ipa-icf-gimple.c: Likewise.
9168 * ipa-icf.c: Likewise.
9169 * ipa-inline-analysis.c: Likewise.
9170 * ipa-inline-transform.c: Likewise.
9171 * ipa-inline.c: Likewise.
9172 * ipa-polymorphic-call.c: Likewise.
9173 * ipa-profile.c: Likewise.
9174 * ipa-prop.c: Likewise.
9175 * ipa-pure-const.c: Likewise.
9176 * ipa-ref.c: Likewise.
9177 * ipa-reference.c: Likewise.
9178 * ipa-split.c: Likewise.
9179 * ipa-utils.c: Likewise.
9180 * ipa-visibility.c: Likewise.
9181 * ipa.c: Likewise.
9182 * ira-build.c: Likewise.
9183 * ira-color.c: Likewise.
9184 * ira-conflicts.c: Likewise.
9185 * ira-costs.c: Likewise.
9186 * ira-emit.c: Likewise.
9187 * ira-lives.c: Likewise.
9188 * ira.c: Likewise.
9189 * jump.c: Likewise.
9190 * langhooks.c: Likewise.
9191 * lcm.c: Likewise.
9192 * lists.c: Likewise.
9193 * loop-doloop.c: Likewise.
9194 * loop-init.c: Likewise.
9195 * loop-invariant.c: Likewise.
9196 * loop-iv.c: Likewise.
9197 * loop-unroll.c: Likewise.
9198 * lower-subreg.c: Likewise.
9199 * lra-assigns.c: Likewise.
9200 * lra-coalesce.c: Likewise.
9201 * lra-constraints.c: Likewise.
9202 * lra-eliminations.c: Likewise.
9203 * lra-lives.c: Likewise.
9204 * lra-remat.c: Likewise.
9205 * lra-spills.c: Likewise.
9206 * lra.c: Likewise.
9207 * lto-cgraph.c: Likewise.
9208 * lto-compress.c: Likewise.
9209 * lto-opts.c: Likewise.
9210 * lto-section-in.c: Likewise.
9211 * lto-section-out.c: Likewise.
9212 * lto-streamer-in.c: Likewise.
9213 * lto-streamer-out.c: Likewise.
9214 * lto-streamer.c: Likewise.
9215 * mode-switching.c: Likewise.
9216 * modulo-sched.c: Likewise.
9217 * omp-low.c: Likewise.
9218 * optabs.c: Likewise.
9219 * opts-global.c: Likewise.
9220 * passes.c: Likewise.
9221 * plugin.c: Likewise.
9222 * postreload-gcse.c: Likewise.
9223 * postreload.c: Likewise.
9224 * predict.c: Likewise.
9225 * print-tree.c: Likewise.
9226 * profile.c: Likewise.
9227 * real.c: Likewise.
9228 * realmpfr.c: Likewise.
9229 * recog.c: Likewise.
9230 * ree.c: Likewise.
9231 * reg-stack.c: Likewise.
9232 * regcprop.c: Likewise.
9233 * reginfo.c: Likewise.
9234 * regrename.c: Likewise.
9235 * regstat.c: Likewise.
9236 * reload.c: Likewise.
9237 * reload1.c: Likewise.
9238 * reorg.c: Likewise.
9239 * resource.c: Likewise.
9240 * rtl-chkp.c: Likewise.
9241 * rtl-error.c: Likewise.
9242 * rtlanal.c: Likewise.
9243 * rtlhooks.c: Likewise.
9244 * sanopt.c: Likewise.
9245 * sched-deps.c: Likewise.
9246 * sched-ebb.c: Likewise.
9247 * sched-rgn.c: Likewise.
9248 * sese.c: Likewise.
9249 * shrink-wrap.c: Likewise.
9250 * simplify-rtx.c: Likewise.
9251 * stack-ptr-mod.c: Likewise.
9252 * statistics.c: Likewise.
9253 * stmt.c: Likewise.
9254 * stor-layout.c: Likewise.
9255 * store-motion.c: Likewise.
9256 * stringpool.c: Likewise.
9257 * symtab.c: Likewise.
9258 * target-globals.c: Likewise.
9259 * targhooks.c: Likewise.
9260 * toplev.c: Likewise.
9261 * tracer.c: Likewise.
9262 * trans-mem.c: Likewise.
9263 * tree-affine.c: Likewise.
9264 * tree-call-cdce.c: Likewise.
9265 * tree-cfg.c: Likewise.
9266 * tree-cfgcleanup.c: Likewise.
9267 * tree-chkp-opt.c: Likewise.
9268 * tree-chkp.c: Likewise.
9269 * tree-chrec.c: Likewise.
9270 * tree-complex.c: Likewise.
9271 * tree-data-ref.c: Likewise.
9272 * tree-dfa.c: Likewise.
9273 * tree-diagnostic.c: Likewise.
9274 * tree-dump.c: Likewise.
9275 * tree-eh.c: Likewise.
9276 * tree-emutls.c: Likewise.
9277 * tree-if-conv.c: Likewise.
9278 * tree-inline.c: Likewise.
9279 * tree-into-ssa.c: Likewise.
9280 * tree-iterator.c: Likewise.
9281 * tree-loop-distribution.c: Likewise.
9282 * tree-nested.c: Likewise.
9283 * tree-nrv.c: Likewise.
9284 * tree-object-size.c: Likewise.
9285 * tree-outof-ssa.c: Likewise.
9286 * tree-parloops.c: Likewise.
9287 * tree-phinodes.c: Likewise.
9288 * tree-predcom.c: Likewise.
9289 * tree-pretty-print.c: Likewise.
9290 * tree-profile.c: Likewise.
9291 * tree-scalar-evolution.c: Likewise.
9292 * tree-sra.c: Likewise.
9293 * tree-ssa-address.c: Likewise.
9294 * tree-ssa-alias.c: Likewise.
9295 * tree-ssa-ccp.c: Likewise.
9296 * tree-ssa-coalesce.c: Likewise.
9297 * tree-ssa-copy.c: Likewise.
9298 * tree-ssa-dce.c: Likewise.
9299 * tree-ssa-dom.c: Likewise.
9300 * tree-ssa-dse.c: Likewise.
9301 * tree-ssa-forwprop.c: Likewise.
9302 * tree-ssa-ifcombine.c: Likewise.
9303 * tree-ssa-live.c: Likewise.
9304 * tree-ssa-loop-ch.c: Likewise.
9305 * tree-ssa-loop-im.c: Likewise.
9306 * tree-ssa-loop-ivcanon.c: Likewise.
9307 * tree-ssa-loop-ivopts.c: Likewise.
9308 * tree-ssa-loop-manip.c: Likewise.
9309 * tree-ssa-loop-niter.c: Likewise.
9310 * tree-ssa-loop-prefetch.c: Likewise.
9311 * tree-ssa-loop-unswitch.c: Likewise.
9312 * tree-ssa-loop.c: Likewise.
9313 * tree-ssa-math-opts.c: Likewise.
9314 * tree-ssa-operands.c: Likewise.
9315 * tree-ssa-phiopt.c: Likewise.
9316 * tree-ssa-phiprop.c: Likewise.
9317 * tree-ssa-pre.c: Likewise.
9318 * tree-ssa-propagate.c: Likewise.
9319 * tree-ssa-reassoc.c: Likewise.
9320 * tree-ssa-sccvn.c: Likewise.
9321 * tree-ssa-scopedtables.c: Likewise.
9322 * tree-ssa-sink.c: Likewise.
9323 * tree-ssa-strlen.c: Likewise.
9324 * tree-ssa-structalias.c: Likewise.
9325 * tree-ssa-tail-merge.c: Likewise.
9326 * tree-ssa-ter.c: Likewise.
9327 * tree-ssa-threadedge.c: Likewise.
9328 * tree-ssa-threadupdate.c: Likewise.
9329 * tree-ssa-uncprop.c: Likewise.
9330 * tree-ssa-uninit.c: Likewise.
9331 * tree-ssa.c: Likewise.
9332 * tree-ssanames.c: Likewise.
9333 * tree-stdarg.c: Likewise.
9334 * tree-streamer-in.c: Likewise.
9335 * tree-streamer-out.c: Likewise.
9336 * tree-streamer.c: Likewise.
9337 * tree-switch-conversion.c: Likewise.
9338 * tree-tailcall.c: Likewise.
9339 * tree-vect-data-refs.c: Likewise.
9340 * tree-vect-generic.c: Likewise.
9341 * tree-vect-loop-manip.c: Likewise.
9342 * tree-vect-loop.c: Likewise.
9343 * tree-vect-patterns.c: Likewise.
9344 * tree-vect-slp.c: Likewise.
9345 * tree-vect-stmts.c: Likewise.
9346 * tree-vectorizer.c: Likewise.
9347 * tree-vrp.c: Likewise.
9348 * tree.c: Likewise.
9349 * tsan.c: Likewise.
9350 * ubsan.c: Likewise.
9351 * value-prof.c: Likewise.
9352 * var-tracking.c: Likewise.
9353 * varasm.c: Likewise.
9354 * varpool.c: Likewise.
9355 * vtable-verify.c: Likewise.
9356 * web.c: Likewise.
9357 * wide-int-print.cc: Likewise.
9358 * wide-int.cc: Likewise.
9359 * xcoffout.c: Likewise.
9360
9361 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
9362
9363 * Makefile.in (NO_PIE_CFLAGS): New.
9364 (NO_PIE_FLAG): Likewise.
9365 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
9366 (NO_PIE_FLAG_FOR_BUILD): Likewise.
9367 (BUILD_NO_PIE_CFLAGS): Likewise.
9368 (BUILD_NO_PIE_FLAG): Likewise.
9369 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
9370 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
9371 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
9372 $(BUILD_NO_PIE_CFLAGS).
9373 (BUILD_CXXFLAGS): Likewise.
9374 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
9375 $(BUILD_NO_PIE_FLAG).
9376 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
9377 (BUILD_NO_PIE_FLAG): Likewise.
9378 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
9379 (NO_PIE_FLAG_FOR_BUILD): Likewise.
9380 * configure: Regenerated.
9381
9382 2015-10-29 Richard Biener <rguenther@suse.de>
9383
9384 PR middle-end/56956
9385 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
9386 unsigned conditonal negation to ABS_EXPR.
9387
9388 2015-10-29 Richard Biener <rguenther@suse.de>
9389
9390 * gimple-match-head.c (gimple_simplify): Remove premature checking
9391 of builtin_decl_implicit of function calls we simplify.
9392
9393 2015-10-29 Bin Cheng <bin.cheng@arm.com>
9394
9395 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
9396 (get_computation_cost_at): Ditto.
9397 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
9398 and inv_expr_id.
9399
9400 2015-10-28 Tom de Vries <tom@codesourcery.com>
9401
9402 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
9403 superfluous code.
9404
9405 2015-10-28 Jason Merrill <jason@redhat.com>
9406
9407 * Makefile.in (TAGS): Include libcpp and libiberty.
9408
9409 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
9410
9411 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
9412 (extract_omp_for_data): Remove OpenACC special handling of
9413 chunking.
9414
9415 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
9416 (struct parallel): Update comment.
9417 (nvptx_reorg): Likewise.
9418 (nvptx_neuter): Cleanup whitespace.
9419
9420 2015-10-28 Richard Henderson <rth@redhat.com>
9421
9422 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
9423
9424 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9425
9426 PR target/67839
9427 * config/avr/predicates.md (low_io_address_operand): Don't
9428 consider MODE when computing upper bound.
9429 (io_address_operand): Likewise.
9430
9431 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
9432
9433 * fold-const.c (operand_equal_p): Do not verify that types are
9434 compatible for MEM_REFs.
9435
9436 2015-10-28 Richard Biener <rguenther@suse.de>
9437
9438 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
9439 in simplifying VEC_COND_EXPR conditions.
9440
9441 2015-10-28 Tom de Vries <tom@codesourcery.com>
9442
9443 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
9444 into vi_next of a full_var.
9445
9446 2015-10-28 Tom de Vries <tom@codesourcery.com>
9447
9448 * tree-ssa-structalias.c (new_var_info, make_heapvar)
9449 (make_constraint_from_restrict, make_constraint_from_global_restrict)
9450 (create_function_info_for, create_variable_info_for_1)
9451 (create_variable_info_for): Add and handle add_id parameter.
9452 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
9453 (init_base_vars): Add extra argument to calls to new_var_info.
9454 (get_vi_for_tree): Add extra argument to call to
9455 create_variable_info_for.
9456 (process_constraint, do_deref, process_all_all_constraints): Add extra
9457 argument to calls to new_scalar_tmp_constraint_exp.
9458 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
9459 argument to calls to make_heapvar.
9460 (make_restrict_var_constraints): Add extra argument to call to
9461 make_constraint_from_global_restrict.
9462 (intra_create_variable_infos): Add extra argument to call to
9463 create_variable_info_for_1.
9464 (ipa_pta_execute): Add extra argument to call to
9465 create_function_info_for.
9466
9467 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9468
9469 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
9470 (sibcall_value): Likewise.
9471
9472 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
9473
9474 * config/nvptx/nvptx.h (struct machine_function): Add
9475 axis_predicate.
9476 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
9477 nvptx_expand_oacc_join): Declare.
9478 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
9479 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
9480 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
9481 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
9482 UNSPECV_JOINING, UNSPECV_JOIN): New.
9483 (BITS, BITD): New mode iterators.
9484 (br_true_uni, br_false_uni): New.
9485 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
9486 (oacc_dim_size, oacc_dim_pos): New.
9487 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
9488 (oacc_fork, oacc_join): New.
9489 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
9490 (worker_load<mode>, worker_store<mode>): New.
9491 (nvptx_barsync): New.
9492 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
9493 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
9494 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
9495 worker_bcast_sym): New.
9496 (nvptx_option_override): Initialize worker broadcast buffer.
9497 (nvptx_emit_forking, nvptx_emit_joining): New.
9498 (nvptx_init_axis_predicate): New.
9499 (nvptx_declare_function_name): Init axis predicates.
9500 (nvptx_expand_call): Add fork/join markers around routine call.
9501 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
9502 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
9503 (nvptx_gen_vcast): New.
9504 (struct wcast_data_t): New.
9505 (enum propagate_mask): New.
9506 (nvptx_gen_wcast): New.
9507 (nvptx_print_operand): Add 'S' case.
9508 (struct parallel): New.
9509 (parallel::parallel, parallel::~parallel): New.
9510 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
9511 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
9512 nvptx_find_par, nvptx_discover_pars): New.
9513 (nvptx_propagate): New.
9514 (vprop_gen, nvptx_vpropagate): New.
9515 (wprop_gen, nvptx_wpropagate): New.
9516 (nvptx_wsync): New.
9517 (nvptx_single, nvptx_skip_par): New.
9518 (nvptx_process_pars, nvptx_neuter_pars): New.
9519 (ntptx_reorg): Split blocks, generate parallel structure, apply
9520 neutering.
9521 (nvptx_cannot_copy_insn_p): New.
9522 (nvptx_file_end): Emit worker broadcast decl.
9523 (nvptx_goacc_fork_join): New.
9524 (TARGET_CANNOT_COPY_INSN_P): Override.
9525 (TARGET_GOACC_FORK_JOIN): Override.
9526
9527 2015-10-28 Richard Biener <rguenther@suse.de>
9528
9529 * fold-const.c (negate_expr_p): Adjust the division case to
9530 properly avoid introducing undefined overflow.
9531 (fold_negate_expr): Likewise.
9532
9533 2015-10-28 Richard Biener <rguenther@suse.de>
9534
9535 PR tree-optimization/65962
9536 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9537 Avoid creating loop carried dependences also for outer loops
9538 of the loop a use to replace is in.
9539
9540 2015-10-28 Richard Biener <rguenther@suse.de>
9541
9542 * common.opt (fchecking): New flag controlling flag_checking.
9543 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
9544 * timevar.c (timer::print): Adjust output.
9545 * doc/invoke.texi (fchecking): Document.
9546
9547 2015-10-28 Richard Biener <rguenther@suse.de>
9548
9549 PR middle-end/68067
9550 * fold-const.c (negate_expr_p): We cannot negate plus or minus
9551 if overflow is not wrapping. Likewise multiplication unless
9552 one operand is constant and not power of two.
9553 (fold_negate_expr): Adjust accordingly.
9554
9555 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9556
9557 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
9558 fields.
9559 (is_oacc_parallel, is_oacc_kernels): New.
9560 (enclosing_target_ctx): May return NULL.
9561 (ctx_in_oacc_kernels_region): New.
9562 (check_oacc_kernel_gwv): New.
9563 (oacc_loop_or_target_p): Delete.
9564 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
9565 operands. Strip reductions fro kernels.
9566 (scan_omp_target): Don't calculate gwv mask.
9567 (lower_oacc_head_mark, lower_oacc_loop_marker,
9568 lower_oacc_head_tail): New.
9569 (struct oacc_collapse): New.
9570 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
9571 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
9572 Remove OpenACC handling.
9573 (expand_oacc_for): New.
9574 (expand_omp_for): Call expand_oacc_for.
9575 (lower_omp_for): Call lower_oacc_head_tail.
9576
9577 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
9578
9579 * attribs.c (check_attribute_tables): New function, broken out from...
9580 (init_attributes): Use it.
9581 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
9582 gcc_checking_assert and checking_* functions to eliminate
9583 ENABLE_CHECKING conditionals.
9584 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
9585 (pass_expand::execute): Likewise.
9586 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
9587 * cgraphunit.c (mark_functions_to_output): Likewise.
9588 (cgraph_node::expand_thunk): Likewise.
9589 (symbol_table::compile): Likewise.
9590 * ddg.c (add_cross_iteration_register_deps): Likewise.
9591 (create_ddg_all_sccs): Likewise.
9592 * df-core.c (df_finish_pass, df_analyze): Likewise.
9593 * diagnostic-core.h: Likewise.
9594 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
9595 * dominance.c (calculate_dominance_info): Likewise.
9596 * dwarf2out.c (add_AT_die_ref): Likewise.
9597 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
9598 (loc_list_from_tree, gen_lexical_block_die): Likewise.
9599 gen_type_die_with_usage, gen_type_die): Likewise.
9600 (dwarf2out_decl): Likewise.
9601 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
9602 * except.c (duplicate_eh_regions): Likewise.
9603 * fwprop.c (register_active_defs, update_df_init): Likewise.
9604 (fwprop_init, fwprop_done): Likewise.
9605 (update_uses): Likewise.
9606 * ggc-page.c (ggc_grow): Likewise.
9607 * gimplify.c (gimplify_body): Likewise.
9608 (gimplify_hasher::equal): Likewise.
9609 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
9610 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
9611 Likewise.
9612 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
9613 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
9614 * hash-table.h (::find_empty_slot_for_expand): Likewise.
9615 * ifcvt.c (if_convert): Likewise.
9616 * ipa-cp.c (ipcp_propagate_stage): Likewise.
9617 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
9618 (odr_type_p, odr_types_equivalent_p): Likewise.
9619 (add_type_duplicate, get_odr_type): Likewise.
9620 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
9621 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
9622 (sem_item_optimizer::verify_classes): Likewise.
9623 (sem_item_optimizer::traverse_congruence_split): Likewise.
9624 (sem_item_optimizer::checking_verify_classes): New.
9625 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
9626 method.
9627 * cfgrtl.c (commit_edge_insertions): Likewise.
9628 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
9629 (rtl_flow_call_edges_add): Likewise.
9630 * cgraph.c (symbol_table::create_edge): Likewise.
9631 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
9632 * cgraph.h (symtab_node): Likewise.
9633 (symtab_node::checking_verify_symtab_nodes): Define.
9634 (cgraph_node::checking_verify_cgraph_nodes): Define.
9635 * cfghooks.h (checking_verify_flow_info): Define.
9636 * cfgloop.h (checking_verify_loop_structure): Define.
9637 * dominance.h (checking_verify_dominators): Define.
9638 * et-forest.c: Fix comment.
9639 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
9640 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
9641 ENABLE_CHECKING conditionals.
9642 * ipa-inline-transform.c (save_inline_function_body): Likewise.
9643 * ipa-inline.c (inline_small_functions): Likewise.
9644 (early_inliner): Likewise.
9645 * ipa-inline.h (estimate_edge_growth): Likewise.
9646 * ipa-visibility.c (function_and_variable_visibility): Likewise.
9647 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
9648 (ipa_single_use): Likewise.
9649 * ira-int.h: Likewise.
9650 * ira.c (ira): Likewise.
9651 * loop-doloop.c (doloop_optimize_loops): Likewise.
9652 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
9653 * loop-invariant.c (move_loop_invariants): Likewise.
9654 * lra-assigns.c (lra_assign): Likewise.
9655 * lra-constraints.c (lra_constraints): Likewise.
9656 * lra-eliminations.c (lra_eliminate): Likewise.
9657 * lra-int.h (struct lra_reg): Likewise.
9658 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
9659 (lra_create_live_ranges_1): Likewise.
9660 * lra-remat.c (create_remat_bb_data): Likewise.
9661 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
9662 (lra): Likewise.
9663 (check_rtl): Always define. Remove incorrect guard around
9664 extract_constrain_insn call.
9665 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
9666 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
9667 ENABLE_CHECKING conditionals.
9668 * lto-streamer-out.c (DFS::DFS): Likewise.
9669 (lto_output): Likewise.
9670 * lto-streamer.c (lto_streamer_init): Likewise.
9671 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
9672 expand_omp_target, execute_expand_omp): Likewise.
9673 (lower_omp_target): Likewise.
9674 * passes.c (execute_function_todo): Likewise.
9675 (execute_todo, execute_one_pass): Likewise.
9676 (verify_curr_properties): Always define.
9677 * predict.c (tree_estimate_probability: Use flag_checking,
9678 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
9679 ENABLE_CHECKING conditionals.
9680 (propagate_freq): Likewise.
9681 * pretty-print.c (pp_format): Likewise.
9682 * real.c (real_to_decimal_for_mode): Likewise.
9683 * recog.c (split_all_insns): Likewise.
9684 * regcprop.c (kill_value_one_regno): Likewise.
9685 (copy_value): Likewise.
9686 (validate_value_data): Define unconditionally.
9687 * reload.c: Fix comment.
9688 * timevar.c: Include options.h
9689 * tree-ssa.h (checking_verify_ssa): Define.
9690 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
9691 * sched-deps.c (CHECK): Remove unused macro.
9692 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
9693 gcc_checking_assert and checking_* functions to eliminate
9694 ENABLE_CHECKING conditionals.
9695 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
9696 * sel-sched.c (struct moveop_static_params): Likewise.
9697 (find_best_reg_for_expr, move_cond_jump): Likewise.
9698 (move_op_orig_expr_not_found): Likewise.
9699 (code_motion_process_successors, move_op): Likewise.
9700 * ssa-iterators.h (first_readonly_imm_use): Likewise.
9701 (next_readonly_imm_use): Likewise.
9702 * store-motion.c (compute_store_table): Likewise.
9703 * symbol-summary.h (function_summary::function_summary): Likewise.
9704 * target.h (cumulative_args_t): Likewise.
9705 (get_cumulative_args, pack_cumulative_args): Likewise.
9706 * timevar.c: (timer::print): Likewise.
9707 * trans-mem.c (ipa_tm_execute): Likewise.
9708 * tree-cfg.c (move_stmt_op): Likewise.
9709 (move_sese_region_to_fn): Likewise.
9710 (gimple_flow_call_edges_add): Likewise.
9711 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
9712 Likewise.
9713 * tree-eh.c (remove_unreachable_handlers): Likewise.
9714 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
9715 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
9716 * tree-into-ssa.c (update_ssa): Likewise.
9717 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
9718 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
9719 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
9720 * tree-predcom.c (suitable_component_p): Likewise.
9721 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
9722 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
9723 * tree-ssa-live.c (verify_live_on_entry): Likewise.
9724 * tree-ssa-live.h (register_ssa_partition): Likewise.
9725 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
9726 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
9727 (tree_transform_and_unroll_loop): Likewise.
9728 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9729 * tree-ssa-operands.c (get_expr_operands): Likewise.
9730 * tree-ssa-propagate.c (replace_exp_1): Likewise.
9731 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
9732 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
9733 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
9734 * tree-ssanames.c (release_ssa_name_fn): Likewise.
9735 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
9736 * tree-vect-loop-manip.c
9737 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
9738 (slpeel_checking_verify_cfg_after_peeling): Likewise.
9739 (vect_do_peeling_for_loop_bound): Likewise.
9740 (vect_do_peeling_for_alignment): Likewise.
9741 * tree-vrp.c (supports_overflow_infinity): Likewise.
9742 (set_value_range): Likewise.
9743 * tree.c (free_lang_data_in_cgraph): Likewise.
9744 * value-prof.c (gimple_remove_histogram_value): Likewise.
9745 (free_hist): Likewise.
9746 * var-tracking.c (canonicalize_values_star): Likewise.
9747 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
9748
9749 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9750
9751 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
9752 IFN_GOACC_LOOP): New.
9753 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
9754 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
9755 IFN_UNIQUE_OACC_TAIL_MARK.
9756 (enum ifn_goacc_loop_kind): New.
9757 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
9758 IFN_UNIQUE_OACC_JOIN cases.
9759 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
9760 (expand_GOACC_LOOP): New.
9761 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
9762 * omp-low.c: Include gimple-pretty-print.h.
9763 (struct oacc_loop): New.
9764 (enum oacc_loop_flags): New.
9765 (oacc_thread_numbers): New.
9766 (oacc_xform_loop): New.
9767 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
9768 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
9769 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
9770 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
9771 oacc_loop_discovery): New.
9772 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
9773 oacc_loop_process): New.
9774 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
9775 (execute_oacc_device_lower): Discover & process loops. Process
9776 internal fns.
9777 * target.def (goacc.fork_join): Change sense of hook, clarify
9778 documentation.
9779 * doc/tm.texi: Regenerated.
9780
9781 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9782
9783 * target-insns.def (oacc_fork, oacc_join): Define.
9784 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
9785 (goacc.fork_join): New GOACC hook.
9786 * targhooks.h (default_goacc_fork_join): Declare.
9787 * omp-low.c (default_goacc_forkjoin): New.
9788 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
9789 * doc/tm.texi: Regenerate.
9790
9791 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9792
9793 * omp-low.c (oacc_init_rediction_array): New.
9794 (oacc_initialize_reduction_data): Initialize array.
9795
9796 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9797
9798 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
9799
9800 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9801
9802 * internal-fn.c (expand_UNIQUE): New.
9803 * internal-fn.h (enum ifn_unique_kind): New.
9804 * internal-fn.def (IFN_UNIQUE): New.
9805 * target-insns.def (unique): Define.
9806 * gimple.h (gimple_call_internal_unique_p): New.
9807 * gimple.c (gimple_call_same_target_p): Check internal fn
9808 uniqueness.
9809 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
9810 * tree-ssa-threadedge.c
9811 (record_temporary_equivalences_from_stmts): Likewise.
9812 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
9813
9814 2015-10-27 Richard Henderson <rth@redhat.com>
9815
9816 PR rtl-opt/67609
9817 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
9818 narrowing subregs on SSE and MMX registers.
9819 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
9820 appear to be sub-words of multi-register pseudos must be rejected.
9821 * doc/tm.texi: Regenerate.
9822
9823 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9824
9825 PR target/68102
9826 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
9827 operands[0] is a reg before taking its REGNO in split condition.
9828 (*movdi_aarch64): Likewise.
9829
9830 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9831
9832 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
9833 Handle floating point inner modes properly.
9834
9835 2015-10-27 Alan Hayward <alan.hayward@arm.com>
9836
9837 * tree-vect-looop.c
9838 (vectorizable_live_operation): Change iterator.
9839
9840 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
9841 Aditya Kumar <aditya.k7@samsung.com>
9842
9843 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
9844 function to schedule based on isl_schedule_node.
9845 (get_schedule_map_st): New schedule optimizer based on
9846 isl_schedule_node.
9847 (scop_get_domains): New. Return the isl_union_set containing the
9848 domains of all the pbbs.
9849 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
9850
9851 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
9852
9853 PR target/67215
9854 * calls.c (prepare_call_address): Don't handle -fno-plt here.
9855 * config/i386/i386.c (ix86_expand_call): Generate indirect call
9856 via GOT for -fno-plt. Support indirect call via GOT for x32.
9857 * config/i386/predicates.md (sibcall_memory_operand): Allow
9858 GOT memory operand.
9859
9860 2015-10-27 Richard Biener <rguenther@suse.de>
9861
9862 PR tree-optimization/68104
9863 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
9864 strided access check ...
9865 (vect_compute_data_refs_alignment): ... here.
9866
9867 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
9868 Joseph Myers <joseph@codesourcery.com>
9869 Mark Shinwell <shinwell@codesourcery.com>
9870 Andrew Stubbs <ams@codesourcery.com>
9871 Rich Felker <dalias@libc.org>
9872
9873 * config.gcc: Handle --enable-fdpic.
9874 * config/sh/constraints.md (Ccl): New constraint.
9875 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
9876 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
9877 __SH_FDPIC__.
9878 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
9879 library functions.
9880 * config/sh/sh-protos.h (function_symbol_result): New struct.
9881 (function_symbol): Return function_symbol_result.
9882 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
9883 declarations.
9884 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
9885 target hook.
9886 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
9887 (sh_option_override): Force -fPIC if FDPIC is in effect.
9888 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
9889 UNSPEC_GOTOFFFUNCDESC cases.
9890 (prepare_move_operands): Use FDPIC initial GOT register for
9891 TLS-related GOT access; inhibit cross-section address offset constants
9892 for FDPIC.
9893 (sh_assemble_integer): New function.
9894 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
9895 PC-relative call sites.
9896 (expand_ashiftrt): Adapt invocation of function_symbol.
9897 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
9898 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
9899 UNSPEC_GOTOFFFUNCDESC.
9900 (legitimize_pic_address): Resolve function symbols to function
9901 descriptors for FDPIC. Do not use GOT-relative addressing for local
9902 data that may be read-only on FDPIC.
9903 (sh_emit_storesi, sh_emit_storehi): New functions.
9904 (sh_trampoline_init): Generate FDPIC trampolines.
9905 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
9906 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
9907 (sh_output_mi_thunk): Generate FDPIC call.
9908 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
9909 FDPIC, generate call site labels to use PC-relative addressing rather
9910 than GOT-relative addressing.
9911 (sh_conditional_register_usage): Make PIC register fixed and call used
9912 when FDPIC is in effect.
9913 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
9914 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
9915 sh_get_fdpic_reg_initial_val): New functions.
9916 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
9917 Handle -mfdpic.
9918 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
9919 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
9920 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
9921 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
9922 FDPIC_SELF_SPECS.
9923 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
9924 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
9925 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
9926 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
9927 constants.
9928 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
9929 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
9930 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
9931 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
9932 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
9933 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
9934 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
9935 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
9936 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
9937 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
9938 block_move_real, block_lump_real, block_move_real_i4,
9939 block_lump_real_i4): Add support for FDPIC calls.
9940 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
9941 call_value_pop): Adjust for new function_symbol signature.
9942 * config/sh/sh.opt (-mfdpic): New option.
9943 * doc/install.texi (Options specification): Document --enable-fdpic.
9944 * doc/invoke.texi (SH Options): Document -mfdpic.
9945
9946
9947 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
9948
9949 PR tree-optimization/65963
9950 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
9951 LSHIFT_EXPRs as equivalent MULT_EXPRs.
9952
9953 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9954
9955 PR target/67929
9956 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
9957 * config/arm/constraints.md (Dp): Update callsite.
9958 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
9959
9960 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9961
9962 * builtins.c (fold_builtin_load_exponent): Rename to...
9963 (fold_const_builtin_load_exponent): ...this and only handle
9964 constant arguments.
9965 (fold_builtin_2): Update accordingly.
9966 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
9967
9968 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9969
9970 * builtins.c (fold_builtin_logb): Rename to...
9971 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
9972 (fold_builtin_significand): Rename to...
9973 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
9974 (fold_builtin_1): Update accordingly.
9975
9976 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9977
9978 * builtins.c (fold_builtin_fmin_fmax): Delete.
9979 (fold_builtin_2): Handle constant fmin and fmax arguments here.
9980 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
9981
9982 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
9983
9984 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
9985 for register extension into sign and zero register extension.
9986 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
9987 for sign and zero register extension.
9988 (cortexa57_addrcost_table): Likewise.
9989 (xgene1_addrcost_table): Likewise.
9990
9991 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9992
9993 * fold-const.c (fold_minmax): Delete.
9994 (fold_binary_loc): Don't call it.
9995 * match.pd: Add rules previously handled by fold_minmax.
9996
9997 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9998
9999 * builtins.c (fold_builtin_fma): Remove constant handling.
10000 (fold_builtin_3): Handle constant fma arguments here.
10001
10002 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10003
10004 * builtins.c (fold_builtin_fabs): Remove constant handling.
10005 (fold_builtin_abs): Likewise.
10006
10007 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10008
10009 * builtins.c (fold_builtin_copysign): Delete.
10010 (fold_builtin_2): Handle constant copysign arguments here.
10011 * match.pd: Add rules previously handled by fold_builtin_copysign.
10012
10013 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10014
10015 * builtins.c (fold_builtin_signbit): Delete.
10016 (fold_builtin_2): Handle constant signbit arguments here.
10017 * match.pd: Add rules previously handled by fold_builtin_signbit.
10018
10019 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10020
10021 * match.pd: Handle sqrt(x) cmp 0 specially.
10022
10023 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
10024
10025 * tree-vect-generic.c (expand_vector_operations_1): Check
10026 optab type before using it.
10027
10028 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10029
10030 * config/aarch64/aarch64-protos.h
10031 (struct tune_params): Add autoprefetcher_model field.
10032 * config/aarch64/aarch64.c: Include params.h
10033 (generic_tunings): Specify autoprefetcher_model value.
10034 (cortexa53_tunings): Likewise.
10035 (cortexa57_tunings): Likewise.
10036 (cortexa72_tunings): Likewise.
10037 (thunderx_tunings): Likewise.
10038 (xgene1_tunings): Likewise.
10039 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
10040 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
10041 (aarch64_override_options_internal): Set
10042 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
10043
10044 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10045
10046 * builtins.c (fold_builtin_exponent): Delete.
10047 (fold_builtin_2): Handle constant expN arguments here.
10048 * match.pd: Fold expN(logN(x)) -> x.
10049
10050 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10051
10052 * builtins.c (fold_builtin_powi): Delete.
10053 (fold_builtin_2): Handle constant powi arguments here.
10054 * match.pd: Add rules previously handled by fold_builtin_powi.
10055
10056 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10057
10058 * builtins.c (fold_builtin_pow): Delete in favor of...
10059 (fold_const_builtin_pow): ...this new function. Only handle constant
10060 arguments.
10061 (fold_builtin_2): Update accordingly.
10062 * match.pd: Add rules previously handled by fold_builtin_pow.
10063
10064 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10065
10066 * builtins.c (fold_builtin_hypot): Delete.
10067 (fold_builtin_2): Handle constant hypot arguments here.
10068 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
10069 hypot(x, x) to fabs(x)*sqrt(2).
10070
10071 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10072
10073 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
10074 instead of make_ssa_name if not yet in SSA form.
10075
10076 2015-10-27 Richard Biener <rguenther@suse.de>
10077
10078 * cfg.c (free_edge): Add function argument and use it instead of cfun.
10079 (clear_edges): Likewise.
10080 * cfg.h (clear_edges): Adjust prototype.
10081 * cfgexpand.c (pass_expand::execute): Adjust.
10082 * cfgloop.c (release_recorded_exits): Add function argument and use
10083 it instead of cfun.
10084 * cfgloop.h (release_recorded_exits): Adjust prototype.
10085 (loops_state_satisfies_p): Add overload with function argument.
10086 (loops_state_set): Likewise.
10087 (loops_state_clear): Likewise.
10088 (struct loop_iterator): Add function argument to constructor
10089 and iterator and use it instead of cfun.
10090 (FOR_EACH_LOOP_FN): New macro.
10091 (loop_optimizer_finalize): Add overload with function argument.
10092 * loop-init.c (loop_optimizer_init): Adjust.
10093 (fix_loop_structure): Likewise.
10094 (loop_optimizer_finaliz): Add function argument and use it
10095 instead of cfun.
10096 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
10097 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
10098 * cgraph.c (release_function_body): Do not push/pop cfun.
10099 * final.c (rest_of_clean_state): Adjust.
10100 * graphite.c (graphite_finalize): Likewise.
10101 * tree-ssa-copy.c (fini_copy_prop): Likewise.
10102 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
10103 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
10104 (tree_unroll_loops_completely): Likewise.
10105 (pass_complete_unrolli::execute): Likewise.
10106 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
10107 Add function argument and use it instead of cfun.
10108 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
10109 Adjust prototype.
10110 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
10111 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
10112 instead of cfun.
10113 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
10114 * tree-ssanames.c (fini_ssanames): Add function argument and use it
10115 instead of cfun.
10116 * tree-ssanames.c (fini_ssanames): Adjust prototype.
10117 * tree-vrp.c (execute_vrp): Adjust.
10118 * value-prof.c (free_histograms): Add function argument and use it
10119 instead of cfun.
10120 * value-prof.h (free_histograms): Adjust prototype.
10121
10122 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
10123
10124 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
10125 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
10126 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
10127
10128 2015-10-27 Tom de Vries <tom@codesourcery.com>
10129
10130 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
10131 field_type.
10132
10133 2015-10-27 Bin Cheng <bin.cheng@arm.com>
10134
10135 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
10136 (inv_can_prop_to_addr_use): New function.
10137 (record_use): Call can_prop_to_addr_uses, set the new field.
10138 (get_inv_cost): Count cost if inv can't be propagated into its
10139 address uses.
10140
10141 2015-10-26 Doug Evans <dje@google.com>
10142
10143 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
10144
10145 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
10146
10147 * match.pd (fold_widened_comparison): Apply simplifications to all
10148 integral types.
10149
10150 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
10151
10152 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
10153 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
10154 * doc/tm.texi: Regenerated.
10155 * reorg.c (dbr_schedule): Use new hook.
10156 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
10157
10158 2015-10-26 Jeff Law <law@redhat.com>
10159
10160 PR tree-optimization/68013
10161 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10162 Make sure the first block in the path is in VISITED_BBs.
10163
10164 2015-10-26 Richard Biener <rguenther@suse.de>
10165 Dominik Vogt <vogt@linux.vnet.ibm.com>
10166
10167 PR middle-end/67443
10168 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
10169 Properly prune ref->ref for accesses outside of ref.
10170
10171 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
10172
10173 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
10174 new statements to be inserted if inplace. Allow calls to have
10175 nonempty sequences.
10176
10177 2015-10-26 Richard Biener <rguenther@suse.de>
10178
10179 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
10180 (do_valueize): New function.
10181 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
10182 replace_uses_by.
10183 * tree-ssa-threadedge.c: Remove builtins.h include, include
10184 gimple-fold.h
10185 (fold_assignment_stmt): Remove.
10186 (threadedge_valueize): New function.
10187 (record_temporary_equivalences_from_stmts): Use
10188 gimple_fold_stmt_to_constant_1, note additional cleanup
10189 opportunities.
10190
10191 2015-10-26 Richard Biener <rguenther@suse.de>
10192
10193 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
10194 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
10195
10196 2015-10-26 Alan Hayward <alan.hayward@arm.com>
10197
10198 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
10199 VEC_COND_EXPR types.
10200
10201 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10202
10203 * auto-inc-dec.c (insert_move_insn_before): Delete.
10204 (attempt_change): Remember to cost the simple move in the
10205 FORM_PRE_ADD and FORM_POST_ADD cases.
10206
10207 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
10208
10209 PR target/68091
10210 * config/sh/sh.c (sh_vector_mode_supported_p): Use
10211 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
10212
10213 2015-10-26 Tom de Vries <tom@codesourcery.com>
10214
10215 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
10216 factored out of ...
10217 (intra_create_variable_infos): ... here.
10218
10219 2015-10-26 Tom de Vries <tom@codesourcery.com>
10220
10221 * tree-ssa-structalias.c (intra_create_variable_infos): Add
10222 restrict_pointer_p and recursive_restrict_p variables.
10223
10224 2015-10-26 Tom de Vries <tom@codesourcery.com>
10225
10226 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
10227 get_vi_for_tree call.
10228
10229 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10230
10231 PR middle-end/67989
10232 * optabs.c (expand_atomic_compare_and_swap): Handle case when
10233 ptarget_oval or ptarget_bool are const0_rtx.
10234
10235 2015-10-26 Christian Bruel <christian.bruel@st.com>
10236
10237 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
10238 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
10239 * cp/method.c (implicitly_declare_fn): Likewise.
10240 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
10241 * java/class.c (add_method_1): Likewise.
10242
10243 2015-10-26 Richard Biener <rguenther@suse.de>
10244
10245 * alloc-pool.h (base_pool_allocator): Use placement new.
10246 (base_pool_allocator::remove): Likewise. Compute size outside of
10247 flag_checking.
10248
10249 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
10250
10251 * builtins.c (do_real_to_int_conversion): New function.
10252 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
10253 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
10254 arguments here.
10255 * match.pd: Add rules previously handled by fold_fixed_mathfn
10256 and fold_builtin_int_roundingfn.
10257
10258 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
10259
10260 * match.pd: Use macros to define built-in operator lists.
10261
10262 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
10263 Richard Biener <rguenther@suse.de>
10264
10265 * genmatch.c (dt_simplify::gen): Skip captures that are
10266 part of the result.
10267 (parser::parse_expr): Allow captures in results too.
10268 * builtins.c (fold_builtin_cexp): Delete.
10269 (fold_builtin_1): Handle constant cexp arguments here.
10270 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
10271
10272 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
10273
10274 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
10275 conditional compilation.
10276 (base_pool_allocator::remove): Use flag_checking.
10277
10278 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
10279
10280 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
10281
10282 PR middle-end/68079
10283 * dojump.c (do_compare_and_jump): Canonicalize both function and
10284 method types.
10285
10286 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
10287
10288 PR target/68084
10289 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
10290 for =@ccae.
10291
10292 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10293
10294 PR ipa/pr67600
10295 * ipa-polymorphic-call.c
10296 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
10297 instance offset with offset of outer type.
10298
10299 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10300
10301 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
10302
10303 2015-10-23 Caroline Tice <cmtice@google.com>
10304
10305 (from Richard Biener
10306 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
10307 call to iterative_hash_host_wide_int.
10308
10309 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
10310
10311 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
10312 Define as yes.
10313
10314 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
10315
10316 * tree-vect-generic.c (expand_vector_operations_1): Check
10317 optab exists before use it.
10318
10319 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
10320
10321 * tree-vect-generic.c (expand_vector_condition): Avoid
10322 uninitialized variable warning.
10323
10324 2015-10-23 Jeff Law <law@redhat.com>
10325
10326 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
10327 here. Instead...
10328 (execute_todo): Call it here.
10329 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
10330 statistics
10331 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
10332
10333 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
10334 Szabolcs Nagy <szabolcs.nagy@arm.com>
10335
10336 * config.gcc (enable_secureplt): Add *-linux*-musl*.
10337
10338 2015-10-23 Jeff Law <law@redhat.com>
10339
10340 PR tree-optimization/67830
10341 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
10342 Explicitly verify the mask has no bits outside the type of
10343 the innermost operands.
10344
10345 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
10346 Szabolcs Nagy <szabolcs.nagy@arm.com>
10347
10348 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
10349 (MUSL_DYNAMIC_LINKER64): Define.
10350 (GNU_USER_DYNAMIC_LINKER32): Update.
10351 (GNU_USER_DYNAMIC_LINKER64): Update.
10352 (CHOOSE_DYNAMIC_LINKER): Update.
10353
10354 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
10355 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
10356 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
10357 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
10358 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
10359 (CHOOSE_DYNAMIC_LINKER): Update.
10360 (INCLUDE_DEFAULTS): Redefine.
10361
10362 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
10363
10364 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10365
10366 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
10367 comparing addresses.
10368
10369 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10370
10371 * fold-const.c (operand_equal_p): Handle matching of vector
10372 constructors.
10373
10374 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
10375
10376 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
10377
10378 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
10379 Andrew Pinski <apinski@cavium.com>
10380
10381 PR rtl-optimization/67736
10382 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
10383 of gen_lowpart.
10384
10385 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
10386
10387 PR middle-end/68066
10388 * tree.c (build_truth_vector_type): Support BLK mode
10389 returned for boolean vector.
10390
10391 2015-10-23 Alan Hayward <alan.hayward@arm.com>
10392
10393 PR tree-optimization/65947
10394 * tree-vect-loop.c
10395 (vect_is_simple_reduction_1): Find condition reductions.
10396 (vect_model_reduction_cost): Add condition reduction costs.
10397 (get_initial_def_for_reduction): Add condition reduction initial var.
10398 (vect_create_epilog_for_reduction): Add condition reduction epilog.
10399 (vectorizable_reduction): Condition reduction support.
10400 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
10401 * doc/sourcebuild.texi (Vector-specific attributes): Document
10402 vect_max_reduc
10403
10404 2015-10-23 Richard Biener <rguenther@suse.de>
10405
10406 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
10407 and builtins.def.
10408
10409 2015-10-23 Richard Biener <rguenther@suse.de>
10410 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10411
10412 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
10413 into (A ^ B) - B to match.pd
10414 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
10415
10416 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
10417 New simplifier.
10418 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
10419 New simplifier.
10420 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
10421 New simplifier.
10422 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
10423 New simplifier.
10424 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
10425 INTEGER_CST@1)): New simplifier.
10426
10427 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
10428
10429 * builtins.c (integer_valued_real_p): Move to fold-const.c.
10430 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
10431 (fold_builtin_ceil, fold_builtin_round): Delete.
10432 (fold_builtin_1): Handle constant trunc, floor, ceil and round
10433 arguments here.
10434 * convert.c (convert_to_real): Remove narrowing of rounding
10435 functions.
10436 * fold-const.h (integer_valued_real_unary_p)
10437 (integer_valued_real_binary_p, integer_valued_real_call_p)
10438 (integer_valued_real_single_p, integer_valued_real_p): Declare.
10439 * fold-const.c (tree_single_nonnegative_warnv_p): Move
10440 name_registered_for_update_p check to SSA_NAME case statement.
10441 Don't call tree_simple_nonnegative_warnv_p for SSA names.
10442 (integer_valued_real_unary_p, integer_valued_real_binary_p)
10443 (integer_valued_real_call_p, integer_valued_real_single_p)
10444 (integer_valued_real_invalid_p): New functions.
10445 (integer_valued_real_p): Move from fold-const.c and rework
10446 to call the functions above. Handle SSA names.
10447 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
10448 * gimple-fold.c (gimple_assign_integer_valued_real_p)
10449 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
10450 (gimple_stmt_integer_valued_real_p): New functions.
10451 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
10452 Fold f(x)->x for the same f if x is known to be integer-valued.
10453 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
10454 the result. Canonicalize floor(x) as trunc(x) if x is
10455 nonnegative.
10456
10457 2015-10-23 Tom de Vries <tom@codesourcery.com>
10458
10459 * tree-ssa-structalias.c (intra_create_variable_infos): Use
10460 make_constraint_from.
10461
10462 2015-10-23 Tom de Vries <tom@codesourcery.com>
10463
10464 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
10465 setting of is_full_var in case of a single field.
10466
10467 2015-10-22 Martin Sebor <msebor@redhat.com>
10468
10469 PR driver/68043
10470 * config/i386/i386.opt: Add missing periods to the ends of sentences.
10471 * config/msp430/msp430.opt: Same.
10472
10473 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
10474
10475 * doc/extend.exp (Global Register Variables): Rewrite.
10476
10477 2015-10-22 Jeff Law <law@redhat.com>
10478
10479 * genattrtab.c (main): If we do not have any annul-true or annul-false
10480 slots, then write out a dummy eligible_for_annul_true or
10481 eligible_for_annul_false as needed.
10482
10483 2015-10-22 Nick Clifton <nickc@redhat.com>
10484
10485 * config/msp430/msp430.opt: Add -msilicon-errata and
10486 -msilicon-errata-warn.
10487 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
10488 assembler.
10489 * doc/invoke.texi: Document new options.
10490
10491 2015-10-22 Richard Biener <rguenther@suse.de>
10492
10493 PR tree-optimization/58497
10494 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
10495 (expand_vector_operations_1): Use it. Lower operations on
10496 all uniform vectors to scalar operations if the HW supports it.
10497
10498 2015-10-22 Richard Biener <rguenther@suse.de>
10499
10500 PR tree-optimization/19049
10501 PR tree-optimization/65962
10502 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
10503 to strided accesses if single-element interleaving doesn't work.
10504
10505 2015-10-22 Richard Biener <rguenther@suse.de>
10506
10507 PR middle-end/68046
10508 PR middle-end/61893
10509 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
10510 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
10511 (expand_unop): Likewise.
10512
10513 2015-10-22 Richard Biener <rguenther@suse.de>
10514
10515 * fold-const.c (fold_addr_of_array_ref_difference): Properly
10516 convert operands before folding a MINUS_EXPR.
10517 (fold_binary_loc): Move simplification of MINUS_EXPR on
10518 converted POINTER_PLUS_EXPRs ...
10519 * match.pd: ... here.
10520
10521 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
10522
10523 * builtins.c (fold_builtin_tan): Delete.
10524 (fold_builtin_1): Handle constant tan arguments here.
10525 * match.pd: Simplify (tan (atan x)) to x.
10526
10527 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
10528
10529 * builtins.c (fold_builtin_cproj): Delete.
10530 (fold_builtin_1): Handle constant arguments here.
10531 (build_complex_cproj): Move and rename to...
10532 * tree.c: (build_complex_inf): ...this.
10533 * tree.h (build_complex_inf): Declare.
10534 * match.pd: Fold cproj(x)->x if x has no infinity.
10535 Use build_complex_inf for existing cproj rules.
10536
10537 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10538
10539 PR target/68015
10540 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
10541 already have a comparison result.
10542
10543 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10544
10545 PR target/63304
10546 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
10547 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
10548 (aarch64_classify_address): Likewise.
10549 (aarch64_secondary_reload): Likewise.
10550 (aarch64_override_options_after_change_1): Adjust.
10551 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
10552 Use aarch64_nopcrelative_literal_loads.
10553 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
10554 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
10555 Declare.
10556
10557 2015-10-21 Martin Sebor <msebor@redhat.com>
10558
10559 PR driver/68043
10560 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
10561 (print_filtered_help): Reference aliased option's name and encourage
10562 readers to use it in preference to the alias if the former is not
10563 documented. Mention when using an option is diagnosed.
10564 * gcc.c (display_help): End each sentence with a period.
10565
10566 * common.opt: End each sentence that describes an option with
10567 a period.
10568 * config/aarch64/aarch64.opt: Same.
10569 * config/alpha/alpha.opt: Same.
10570 * config/arc/arc.opt: Same.
10571 * config/arm/arm.opt: Same.
10572 * config/avr/avr.opt: Same.
10573 * config/bfin/bfin.opt: Same.
10574 * config/c6x/c6x.opt: Same.
10575 * config/cr16/cr16.opt: Same.
10576 * config/cris/cris.opt: Same.
10577 * config/cris/linux.opt: Same.
10578 * config/darwin.opt: Same.
10579 * config/epiphany/epiphany.opt: Same.
10580 * config/fr30/fr30.opt: Same.
10581 * config/frv/frv.opt: Same.
10582 * config/ft32/ft32.opt: Same.
10583 * config/g.opt: Same.
10584 * config/h8300/h8300.opt: Same.
10585 * config/i386/cygming.opt: Same.
10586 * config/i386/djgpp.opt: Same.
10587 * config/i386/i386.opt: Same.
10588 * config/i386/interix.opt: Same.
10589 * config/i386/mingw-w64.opt: Same.
10590 * config/i386/mingw.opt: Same.
10591 * config/ia64/ia64.opt: Same.
10592 * config/ia64/ilp32.opt: Same.
10593 * config/iq2000/iq2000.opt: Same.
10594 * config/linux.opt: Same.
10595 * config/lm32/lm32.opt: Same.
10596 * config/lynx.opt: Same.
10597 * config/m32c/m32c.opt: Same.
10598 * config/m32r/m32r.opt: Same.
10599 * config/m68k/ieee.opt: Same.
10600 * config/m68k/m68k.opt: Same.
10601 * config/mcore/mcore.opt: Same.
10602 * config/mep/mep.opt: Same.
10603 * config/microblaze/microblaze.opt: Same.
10604 * config/mips/mips.opt: Same.
10605 * config/mmix/mmix.opt: Same.
10606 * config/mn10300/mn10300.opt: Same.
10607 * config/moxie/moxie.opt: Same.
10608 * config/msp430/msp430.opt: Same.
10609 * config/nios2/elf.opt: Same.
10610 * config/nios2/nios2.opt: Same.
10611 * config/nvptx/nvptx.opt: Same.
10612 * config/pa/pa-hpux.opt: Same.
10613 * config/pa/pa-hpux1010.opt: Same.
10614 * config/pa/pa-hpux1111.opt: Same.
10615 * config/pa/pa-hpux1131.opt: Same.
10616 * config/pa/pa.opt: Same.
10617 * config/pa/pa64-hpux.opt: Same.
10618 * config/pdp11/pdp11.opt: Same.
10619 * config/rl78/rl78.opt: Same.
10620 * config/rs6000/476.opt: Same.
10621 * config/rs6000/aix64.opt: Same.
10622 * config/rs6000/darwin.opt: Same.
10623 * config/rs6000/linux64.opt: Same.
10624 * config/rs6000/rs6000.opt: Same.
10625 * config/rs6000/sysv4.opt: Same.
10626 * config/s390/s390.opt: Same.
10627 * config/s390/tpf.opt: Same.
10628 * config/sh/sh.opt: Same.
10629 * config/sol2.opt: Same.
10630 * config/sparc/long-double-switch.opt: Same.
10631 * config/sparc/sparc.opt: Same.
10632 * config/spu/spu.opt: Same.
10633 * config/stormy16/stormy16.opt: Same.
10634 * config/tilegx/tilegx.opt: Same.
10635 * config/tilepro/tilepro.opt: Same.
10636 * config/v850/v850.opt: Same.
10637 * config/vax/vax.opt: Same.
10638 * config/visium/visium.opt: Same.
10639 * config/vms/vms.opt: Same.
10640 * config/vxworks.opt: Same.
10641 * config/xtensa/xtensa.opt: Same.
10642
10643 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10644 Sebastian Pop <s.pop@samsung.com>
10645
10646 * graphite-scop-detection.c (parameter_index_in_region): Update call to
10647 invariant_in_sese_p_rec.
10648 * graphite-sese-to-poly.c (extract_affine): Same.
10649 * sese.c (invariant_in_sese_p_rec): Pass in an extra
10650 parameter has_vdefs.
10651 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
10652 variable depends on virtual definitions in the current region.
10653 * sese.h (invariant_in_sese_p_rec): Update declaration.
10654
10655 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10656 Sebastian Pop <s.pop@samsung.com>
10657
10658 * graphite-scop-detection.c (build_scops): Do not handle scops
10659 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
10660 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
10661
10662 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
10663
10664 * config.in: Regenerate.
10665 * configure: Regenerate.
10666 * configure.ac (CHECKING_P): Define.
10667 * system.h: Use CHECKING_P.
10668
10669 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10670
10671 PR ipa/67056
10672 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
10673 is negative we don't know the type.
10674 (check_stmt_for_type_change): Skip constructors of non-polymorphic
10675 types as those won't help devirutalization.
10676
10677 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10678
10679 * fold-const.c (operand_equal_p): Add code matching empty constructors.
10680
10681 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
10682
10683 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
10684 comments.
10685 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
10686 Add comments on sign of the result.
10687 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
10688 Recurse on operand #1 instead of operand #0.
10689 <CEIL_MOD_EXPR>: Do not recurse.
10690 <ROUND_MOD_EXPR>: Likewise.
10691
10692 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10693
10694 * cfgrtl.c (pass_free_cfg::execute): Adjust.
10695 * final.c (dbr_sequence_length): Always define.
10696 (shorten_branches): Adjust.
10697 * genattr-common.c (main): Always define DELAY_SLOTS.
10698 * genattr.c (main): Unconditionally declare functions and define
10699 macros related to delay slots.
10700 * genattrtab.c (write_eligible_delay): Adjust.
10701 (main): Always write out delay slot functions.
10702 * opts.c (default_options_table): Adjust.
10703 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
10704 (redirect_with_delay_list_safe_p): Likewise.
10705 (fill_simple_delay_slots): Likewise.
10706 (fill_slots_from_thread): Likewise.
10707 (make_return_insns): Likewise.
10708 (dbr_schedule): Likewise.
10709 (rest_of_handle_delay_slots): Likewise.
10710 (pass_delay_slots::gate): Likewise.
10711 * toplev.c (process_options): Likewise.
10712
10713 2015-10-21 Richard Henderson <rth@redhat.com>
10714
10715 * targhooks.c (default_addr_space_pointer_mode): Remove check
10716 for generic address space.
10717 (default_addr_space_address_mode): Likewise.
10718 (default_addr_space_valid_pointer_mode): Likewise.
10719 (default_addr_space_legitimate_address_p): Likewise.
10720 (default_addr_space_legitimize_address): Likewise.
10721 * target.def (addr_space.pointer_mode): Update documentation
10722 of default behavior.
10723 (addr_space.address_mode): Likewise.
10724 * tm.texi: Update.
10725
10726 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
10727 address spaces.
10728
10729 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
10730
10731 * builtins.c (fold_builtin_cabs): Delete.
10732 (fold_builtin_1): Update accordingly. Handle constant arguments here.
10733 * match.pd: Add rules previously handled by fold_builtin_cabs.
10734
10735 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
10736
10737 * fold-const.h (fold_strip_sign_ops): Delete.
10738 * fold-const.c (fold_strip_sign_ops): Likewise.
10739 (fold_unary_loc, fold_binary_loc): Remove calls to it.
10740 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
10741 (fold_builtin_ccos): Delete.
10742 (fold_builtin_pow): Don't call fold_strip_sign_ops.
10743 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
10744 Remove fndecl argument.
10745 (fold_builtin_1): Update calls accordingly. Handle constant
10746 cos, cosh, ccos and ccosh here.
10747
10748 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
10749
10750 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
10751 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
10752 * common.opt (fssa-backprop): New option.
10753 * fold-const.h (negate_mathfn_p): Declare.
10754 * fold-const.c (negate_mathfn_p): Make public.
10755 * timevar.def (TV_TREE_BACKPROP): New.
10756 * tree-pass.h (make_pass_backprop): Declare.
10757 * passes.def (pass_backprop): Add.
10758 * gimple-ssa-backprop.c: New file.
10759
10760 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10761 Sebastian Pop <s.pop@samsung.com>
10762
10763 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
10764 Do not call create_empty_if_region_on_edge when cond_expr is true.
10765 (translate_isl_ast_node_for): Check whether a guard has been generated.
10766
10767 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10768
10769 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
10770 (operator=): Removed.
10771 (dr_info): Make alias_set number the last argument with default
10772 value of invalid_alias_set.
10773 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
10774 of dr_info.
10775 (rewrite_reductions_out_of_ssa): Iterate only through the
10776 basic blocks which are inside region.
10777 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
10778 * sese.h (struct sese_l): Removed assignment operator.
10779 (split_region_for_bb): Removed dead code.
10780
10781 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10782
10783 * graphite-poly.h (struct dr_info): Removed conversion constructor.
10784 (struct scop): Renamed scop::region to scop::scop_info
10785 (scop_set_region): Same.
10786 (SCOP_REGION): Removed
10787 (SCOP_CONTEXT): Removed.
10788 (POLY_SCOP_P): Removed.
10789 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
10790 Rename scop->region to scop->scop_info.
10791 (add_parameters_to_ivs_params): Same.
10792 (graphite_regenerate_ast_isl): Same.
10793 * graphite-poly.c (new_scop): Same.
10794 (free_scop): Same.
10795 (print_scop_params): Same.
10796 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
10797 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
10798 (dot_all_scops_1): Rename scop->region to scop->scop_info.
10799 (scop_detection::nb_pbbs_in_loops): Same.
10800 (find_scop_parameters): Same.
10801 (try_generate_gimple_bb): Same.
10802 (gather_bbs::before_dom_children): Same.
10803 (gather_bbs::after_dom_children): Same.
10804 (build_scops): Same.
10805 * graphite-sese-to-poly.c (build_scop_scattering): Same.
10806 (extract_affine_chrec): Same.
10807 (extract_affine): Same.
10808 (set_scop_parameter_dim): Same.
10809 (build_loop_iteration_domains): Same.
10810 (create_pw_aff_from_tree): Same.
10811 (add_param_constraints): Same.
10812 (build_scop_iteration_domain): Same.
10813 (build_scop_drs): Same.
10814 (analyze_drs_in_stmts): Same.
10815 (insert_out_of_ssa_copy_on_edge): Same.
10816 (rewrite_close_phi_out_of_ssa):Same.
10817 (rewrite_reductions_out_of_ssa):Same.
10818 (handle_scalar_deps_crossing_scop_limits):Same.
10819 (rewrite_cross_bb_scalar_deps):Same.
10820 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
10821 (build_poly_scop):Same.
10822 (build_alias_set): Use pointer to dr_info.
10823 * graphite.c (print_graphite_scop_statistics):
10824 (graphite_transform_loops):
10825 * sese.h (struct sese_l): Remove conversion constructor.
10826
10827 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10828
10829 PR middle-end/67966
10830 * tree.c (verify_type): Verify that TYPE_MODE match
10831 between TYPE_CANONICAL and type.
10832 * expr.c (store_expr_with_bounds): Revert my previous change.
10833 * expmed.c (store_bit_field_1): Revert prevoius change.
10834 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
10835 to match for all types.
10836
10837 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
10838
10839 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
10840 nesting.
10841
10842 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
10843
10844 * doc/tm.texi: Regenerated.
10845 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
10846 * stor-layout.c (layout_type): Use mode to get vector mask size.
10847 * target.def (get_mask_mode): New.
10848 * targhooks.c (default_get_mask_mode): New.
10849 * targhooks.h (default_get_mask_mode): New.
10850 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
10851 for boolean vector.
10852 * tree.c (MAX_BOOL_CACHED_PREC): New.
10853 (nonstandard_boolean_type_cache): New.
10854 (build_nonstandard_boolean_type): New.
10855 (make_vector_type): Vector mask has no canonical type.
10856 (build_truth_vector_type): New.
10857 (build_same_sized_truth_vector_type): New.
10858 (truth_type_for): Support vector masks.
10859 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
10860 (build_truth_vector_type): New.
10861 (build_same_sized_truth_vector_type): New.
10862 (build_nonstandard_boolean_type): New.
10863 * tree-cfg.c (verify_gimple_comparison) Require boolean
10864 vector type for vector comparison.
10865 (verify_gimple_assign_ternary): Likewise.
10866 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
10867 condition operand.
10868 * tree-vect-stmts.c (vectorizable_condition): Use boolean
10869 vector type for vector comparison.
10870 * tree-vect-generic.c (elem_op_func): Add new operand to hold
10871 vector type.
10872 (do_unop): Adjust to modified function type.
10873 (do_binop): Likewise.
10874 (do_plus_minus): Likewise.
10875 (do_negate); Likewise.
10876 (expand_vector_piecewise): Likewise.
10877 (do_cond): Likewise.
10878 (do_compare): Use comparison instead of condition.
10879 (expand_vector_divmod): Use boolean vector type for comparison.
10880 (expand_vector_operations_1): Skip scalar mask operations.
10881
10882 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
10883
10884 * omp-low.c (simd_clone_create): Set in_other_partition
10885 for created clones.
10886
10887 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
10888
10889 * doc/extend.exp (Local Register Variables): Rewrite.
10890
10891 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
10892
10893 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
10894 and x*x in cases where the operands are sign ops. Extend these
10895 rules to handle copysign as a sign op (including for cos, cosh
10896 and pow, which already treated negate and abs as sign ops).
10897
10898 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
10899
10900 PR target/68018
10901 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
10902 for 64-bit MS_ABI targets also when default incoming stack boundary
10903 is overriden.
10904
10905 2015-10-21 Richard Biener <rguenther@suse.de>
10906
10907 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
10908 cond stmts, enhanced and split out from ...
10909 (vn_phi_eq): ... here.
10910
10911 2015-10-21 Richard Biener <rguenther@suse.de>
10912
10913 PR middle-end/68031
10914 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
10915 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
10916 (tree_single_nonnegative_warnv_p): ... here. For SSA names
10917 make sure they are not registered for update.
10918
10919 2015-10-21 Richard Biener <rguenther@suse.de>
10920
10921 PR tree-optimization/68026
10922 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
10923 unsigned VARYING values.
10924
10925 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
10926
10927 * asan.c (asan_emit_stack_protection): Don't pass local stack to
10928 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
10929 NULL and use local stack than.
10930 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
10931 in addition to __asan_init.
10932 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
10933 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
10934 * asan.h (asan_intercepted_p): Handle new string builtins.
10935 * ubsan.c (ubsan_use_new_style_p): New function.
10936 (ubsan_instrument_float_cast): If location is unknown, assign
10937 input_location to loc. Propagate loc to ubsan_create_data if
10938 ubsan_use_new_style_p returned true.
10939
10940 2015-10-21 Jeff Law <law@redhat.com>
10941
10942 * Makefile.in (OBJS): Remove sched-vis.c
10943 * sched-vis.c: Removed. Code moved into...
10944 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
10945 * rtl.h: Remove prototypes for functions now living in print-rtl.c
10946 * print-rtl.h Add prototypes for new functions in print-rtl.c.
10947 * auto-inc-dec.c: Include print-rtl.h
10948 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
10949 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
10950
10951 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
10952 ATTRIBUTE_UNUSED.
10953
10954 2015-10-21 Richard Biener <rguenther@suse.de>
10955 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10956
10957 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
10958 to match.pd.
10959 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
10960 about signed left shift stronger and clarify the cases when they're
10961 broken.
10962 Move (a * (1 << b)) is (a << b) to match.pd.
10963 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
10964 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
10965 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
10966
10967 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
10968 New simplifier.
10969 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
10970 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
10971 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
10972 : New simplifier.
10973 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
10974 New simplifier.
10975 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
10976
10977 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
10978 Szabolcs Nagy <szabolcs.nagy@arm.com>
10979 Alan Modra <amodra@gmail.com>
10980
10981 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
10982 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
10983 (LINK_SPEC): Add %(link_secure_plt).
10984 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
10985 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
10986
10987 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
10988 Szabolcs Nagy <szabolcs.nagy@arm.com>
10989
10990 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
10991 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
10992
10993 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10994
10995 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
10996 New function.
10997 (fusion_load_store): Use it.
10998 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
10999 ldp and stp in VD modes.
11000 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
11001 (store_pair<mode>, VD): Likewise.
11002
11003 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
11004
11005 PR rtl-optimization/67609
11006 * lra-splill.c (lra_final_code_change): Don't remove all
11007 sub-registers.
11008
11009 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11010
11011 * simplify-rtx.c (simplify_binary_operation): If either operand was
11012 a constant pool reference use them if all other simplifications failed.
11013
11014 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11015
11016 * config/aarch64/aarch64.md
11017 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
11018 * config/aarch64/aarch64-simd.md
11019 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
11020 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
11021 (aarch64_fpconst_pow_of_2): New function.
11022 (aarch64_vec_fpconst_pow_of_2): Likewise.
11023 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
11024 prototype.
11025 (aarch64_vec_fpconst_pow_of_2): Likewise.
11026 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
11027 (aarch64_fp_vec_pow2): Likewise.
11028
11029 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
11030
11031 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
11032 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
11033 * config/alpha/alpha.c (alpha_function_arg_advance): Update
11034 ALPHA_ARG_SIZE usage.
11035 (alpha_arg_partial_bytes): Ditto.
11036
11037 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
11038
11039 PR target/66810
11040 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
11041 error_mark_node decls.
11042
11043 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
11044
11045 PR target/67963
11046 PR target/67985
11047 * common/config/i386/i386-common.c (ix86_handle_option): Remove
11048 OPT_miamcu handling.
11049 * config/i386/i386.c (PTA_NO_80387): New macro.
11050 (processor_alias_table): Add PTA_NO_80387 to lakemont.
11051 (ix86_option_override_internal): Update MASK_80387 from
11052 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
11053 SSE math only if 80387 is supported. Don't change
11054 MASK_FLOAT_RETURNS.
11055 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
11056 80387 is supported.
11057 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
11058 if TARGET_80387 is true and TARGET_IAMCU is false.
11059 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
11060 is true and TARGET_IAMCU_P is false.
11061
11062 2015-10-20 Richard Biener <rguenther@suse.de>
11063
11064 PR tree-optimization/68017
11065 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
11066
11067 2015-10-20 Martin Liska <mliska@suse.cz>
11068
11069 * cgraphclones.c (cgraph_node::create_virtual_clone):
11070 Verify cgraph_node.local.versionable instead of calling
11071 tree_versionable_function_p.
11072 * ipa-cp.c (determine_versionability): Save the information
11073 to ipa_node_params summary.
11074 (ipcp_versionable_function_p): Use it.
11075 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
11076 (ipcp_generate_summary): Do not compute cgraph_node
11077 versionability.
11078 * ipa-inline-analysis.c (inline_generate_summary): Compute
11079 versionability for all cgraph nodes.
11080 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
11081 ipa_node_params::versionability.
11082 * ipa-prop.h (struct ipa_node_params): Declare it.
11083
11084 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11085
11086 PR other/67868
11087 * varasm.c (assemble_variable): Move special vtv handling to..
11088 (handle_vtv_comdat_sections): .. here. New function.
11089 (output_object_block): Handle vtv sections.
11090
11091 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
11092
11093 PR target/66912
11094 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
11095
11096 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
11097
11098 * doc/extend.texi: Update documentation WRT inline functions.
11099
11100 2015-10-20 Alan Modra <amodra@gmail.com>
11101
11102 PR go/66870
11103 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
11104 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
11105 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
11106
11107 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
11108
11109 PR rtl-optimization/66790
11110 * df.h (DF_MIR): New macro.
11111 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
11112 (DF_MIR_INFO_BB): New macro.
11113 (DF_MIR_IN, DF_MIR_OUT): New macros.
11114 (struct df_mir_bb_info): New.
11115 (df_mir): New macro.
11116 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
11117 declarations.
11118 (df_mir_get_bb_info): New.
11119 * df-problems.c (struct df_mir_problem_data): New.
11120 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
11121 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
11122 df_mir_confluence_0, df_mir_confluence_n,
11123 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
11124 df_mir_bottom_dump, df_mir_verify_solution_start,
11125 df_mir_verify_solution_end): New.
11126 (problem_MIR): New.
11127 (df_mir_add_problem, df_mir_simulate_one_insn): New.
11128 * timevar.def (TV_DF_MIR): New.
11129 * ree.c: Include bitmap.h
11130 (add_removable_extension): Add an INIT_REGS parameter. Use it
11131 to skip zero-extensions that may get an uninitialized register.
11132 (find_removable_extensions): Compute must-initialized registers
11133 using the MIR dataflow problem. Update the call to
11134 add_removable_extension.
11135 (find_and_remove_re): Call df_mir_add_problem.
11136
11137 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
11138
11139 * common/config/mn10300/mn10300-common.c
11140 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
11141 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
11142
11143 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
11144
11145 * doc/extend.texi (Explicit Register Variables): Simplify and
11146 avoid unnecessary and confusion abbreviations. Update cross
11147 references.
11148 doc/implement-c.tex: Update cross reference.
11149
11150 2015-10-19 Jeff Law <law@redhat.com>
11151
11152 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
11153 that create irreducible loops unless the path elimiantes a multiway
11154 branch.
11155
11156 2015-10-19 Richard Biener <rguenther@suse.de>
11157
11158 PR tree-optimization/67975
11159 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
11160 * tree-cfg.c (extract_true_false_controlled_edges): Split out
11161 core worker from ...
11162 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
11163 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
11164 instead of block number for PHIs with two or one args.
11165 (vn_phi_eq): Compare edge predicates of PHIs that are in different
11166 blocks.
11167
11168 2015-10-19 Richard Biener <rguenther@suse.de>
11169
11170 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
11171 (gimple_stmt_nonnegative_warnv_p): Use it.
11172 * match.pd (CPROJ): New operator list.
11173 (cproj (complex ...)): Move simplifications from ...
11174 * builtins.c (fold_builtin_cproj): ... here.
11175
11176 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
11177
11178 * config/i386/i386.c (ix86_expand_vector_move): Use
11179 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
11180 alignment.
11181
11182 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
11183
11184 * doc/invoke.texi: Replace @optindex with @opindex.
11185
11186 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
11187
11188 PR target/67995
11189 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
11190 arch= is set, clear all bits in x_ix86_isa_flags, except for
11191 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
11192
11193 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
11194
11195 PR middle-end/68002
11196 * common.opt (fkeep-static-functions): New option.
11197 * doc/invoke.texi: Document it.
11198 * cgraphunit.c (cgraph_node::finalize_function): Use it.
11199
11200 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11201
11202 * sched-int.h (struct autopref_multipass_data_): Remove offset
11203 field. Add min_offset, max_offset, multi_mem_insn_p fields.
11204 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
11205 (autopref_multipass_init): Use it. Handle PARALLEL sets.
11206 (autopref_rank_data): New function.
11207 (autopref_rank_for_schedule): Use it.
11208 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
11209
11210 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
11211
11212 PR other/65800
11213 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
11214
11215 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11216
11217 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
11218 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
11219 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
11220 (STANDARD_STARTFILE_PREFIX_1): New.
11221 (STANDARD_STARTFILE_PREFIX_2): New.
11222
11223 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11224
11225 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
11226 (darwin_driver_init): Note a version-min when provided on the c/l.
11227 * config/darwin.h (%darwin_minversion): Remove.
11228 * config/i386/darwin.h: Likewise.
11229 * config/rs6000/darwin.h: Likewise.
11230 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
11231 rather than an arbitrary constant.
11232
11233 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11234
11235 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
11236 PPC, detect conflicts between -arch and multilib settings. Detect
11237 and warn about conflicts between multiple -arch definitions.
11238
11239 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11240
11241 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
11242
11243 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11244
11245 * lra-constraints.c (add_next_usage_insn): Change argument type
11246 from rtx to rtx_insn *.
11247
11248 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
11249
11250 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
11251 for Lakemont.
11252
11253 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
11254
11255 * config/tilepro/gen-mul-tables.cc: Adjust include files.
11256 * config/tilegx/mul-tables.c: Regenerate.
11257 * config/tilepro/mul-tables.c: Regenerate.
11258
11259 * config/tilegx/tilegx-c.c: Adjust include files.
11260 * config/tilegx/tilegx.c: Likewise.
11261 * config/tilepro/tilepro-c.c: Likewise.
11262 * config/tilepro/tilepro.c: Likewise.
11263 * config/aarch64/aarch64-builtins.c: Likewise.
11264 * config/aarch64/aarch64.c: Likewise.
11265 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
11266 * config/alpha/alpha.c: Likewise.
11267 * config/arc/arc.c: Likewise.
11268 * config/arm/aarch-common.c: Likewise.
11269 * config/arm/arm-builtins.c: Likewise.
11270 * config/arm/arm-c.c: Likewise.
11271 * config/arm/arm.c: Likewise.
11272 * config/avr/avr-c.c: Likewise.
11273 * config/avr/avr-devices.c: Likewise.
11274 * config/avr/avr-log.c: Likewise.
11275 * config/avr/avr.c: Likewise.
11276 * config/bfin/bfin.c: Likewise.
11277 * config/c6x/c6x.c: Likewise.
11278 * config/cr16/cr16.c: Likewise.
11279 * config/cris/cris.c: Likewise.
11280 * config/darwin-c.c: Likewise.
11281 * config/darwin-driver.c: Likewise.
11282 * config/darwin.c: Likewise.
11283 * config/default-c.c: Likewise.
11284 * config/epiphany/epiphany.c: Likewise.
11285 * config/epiphany/mode-switch-use.c: Likewise.
11286 * config/epiphany/resolve-sw-modes.c: Likewise.
11287 * config/fr30/fr30.c: Likewise.
11288 * config/frv/frv.c: Likewise.
11289 * config/ft32/ft32.c: Likewise.
11290 * config/glibc-c.c: Likewise.
11291 * config/h8300/h8300.c: Likewise.
11292 * config/i386/host-cygwin.c: Likewise.
11293 * config/i386/host-mingw32.c: Likewise.
11294 * config/i386/i386-c.c: Likewise.
11295 * config/i386/i386.c: Likewise.
11296 * config/i386/msformat-c.c: Likewise.
11297 * config/i386/winnt-cxx.c: Likewise.
11298 * config/i386/winnt-stubs.c: Likewise.
11299 * config/i386/winnt.c: Likewise.
11300 * config/ia64/ia64-c.c: Likewise.
11301 * config/ia64/ia64.c: Likewise.
11302 * config/iq2000/iq2000.c: Likewise.
11303 * config/lm32/lm32.c: Likewise.
11304 * config/m32c/m32c-pragma.c: Likewise.
11305 * config/m32c/m32c.c: Likewise.
11306 * config/m32r/m32r.c: Likewise.
11307 * config/mcore/mcore.c: Likewise.
11308 * config/mep/mep-pragma.c: Likewise.
11309 * config/mep/mep.c: Likewise.
11310 * config/microblaze/microblaze-c.c: Likewise.
11311 * config/microblaze/microblaze.c: Likewise.
11312 * config/mips/mips-tables.opt
11313 * config/mips/mips.c: Likewise.
11314 * config/mmix/mmix.c: Likewise.
11315 * config/mn10300/mn10300.c: Likewise.
11316 * config/moxie/moxie.c: Likewise.
11317 * config/msp430/msp430-c.c: Likewise.
11318 * config/msp430/msp430.c: Likewise.
11319 * config/nds32/nds32-cost.c: Likewise.
11320 * config/nds32/nds32-fp-as-gp.c: Likewise.
11321 * config/nds32/nds32-intrinsic.c: Likewise.
11322 * config/nds32/nds32-isr.c: Likewise.
11323 * config/nds32/nds32-md-auxiliary.c: Likewise.
11324 * config/nds32/nds32-memory-manipulation.c: Likewise.
11325 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11326 * config/nds32/nds32-predicates.c: Likewise.
11327 * config/nds32/nds32.c: Likewise.
11328 * config/nios2/nios2.c: Likewise.
11329 * config/nvptx/mkoffload.c: Likewise.
11330 * config/nvptx/nvptx.c: Likewise.
11331 * config/pa/pa.c: Likewise.
11332 * config/pdp11/pdp11.c: Likewise.
11333 * config/rl78/rl78-c.c: Likewise.
11334 * config/rl78/rl78.c: Likewise.
11335 * config/rs6000/host-darwin.c: Likewise.
11336 * config/rs6000/rs6000-c.c: Likewise.
11337 * config/rs6000/rs6000-linux.c: Likewise.
11338 * config/rs6000/rs6000.c: Likewise.
11339 * config/rx/rx.c: Likewise.
11340 * config/s390/s390-c.c: Likewise.
11341 * config/s390/s390.c: Likewise.
11342 * config/sh/sh-c.c: Likewise.
11343 * config/sh/sh-mem.cc: Likewise.
11344 * config/sh/sh.c: Likewise.
11345 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
11346 * config/sh/sh_treg_combine.cc: Likewise.
11347 * config/sol2-c.c: Likewise.
11348 * config/sol2-cxx.c: Likewise.
11349 * config/sol2-stubs.c: Likewise.
11350 * config/sol2.c: Likewise.
11351 * config/sparc/sparc-c.c: Likewise.
11352 * config/sparc/sparc.c: Likewise.
11353 * config/spu/spu-c.c: Likewise.
11354 * config/spu/spu.c: Likewise.
11355 * config/stormy16/stormy16.c: Likewise.
11356 * config/v850/v850-c.c: Likewise.
11357 * config/v850/v850.c: Likewise.
11358 * config/vax/vax.c: Likewise.
11359 * config/visium/visium.c: Likewise.
11360 * config/vms/vms-c.c: Likewise.
11361 * config/vms/vms.c: Likewise.
11362 * config/vxworks.c: Likewise.
11363 * config/winnt-c.c: Likewise.
11364 * config/xtensa/xtensa.c: Likewise.
11365
11366 2015-10-16 Christian Bruel <christian.bruel@st.com>
11367
11368 PR target/67745
11369 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
11370 (FUNCTION_BOUNDARY_P): New macro:
11371 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
11372 New hook.
11373 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
11374 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
11375 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
11376 * function.c (allocate_struct_function): Call
11377 relayout_function hook.
11378 * passes.c (rest_of_decl_compilation): Likewise.
11379
11380 2015-10-16 Christian Bruel <christian.bruel@st.com>
11381
11382 PR target/67745
11383 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
11384 * config/arm/arm.c (arm_option_override_internal): Call
11385 arm_override_options_after_change_1.
11386 (arm_override_options_after_change): New function.
11387 (arm_override_options_after_change_1): Likewise.
11388 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
11389
11390 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11391
11392 Revert:
11393 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
11394 empty constructors.
11395
11396 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
11397
11398 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
11399 argument is an ADDR_EXPR.
11400
11401 2015-10-16 Richard Biener <rguenther@suse.de>
11402
11403 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
11404 and get rid of force_gimple_operand_gsi.
11405 (gimple_fold_builtin_memory_chk): Likewise.
11406 (gimple_fold_builtin_stxcpy_chk): Likewise.
11407 (rewrite_to_defined_overflow): Likewise.
11408 (gimple_convert_to_ptrofftype): New function.
11409 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
11410
11411 2015-10-16 Richard Biener <rguenther@suse.de>
11412
11413 * tree-nested.h (build_addr): Adjust prototype.
11414 * tree-nested.c (build_addr): Remove context argument and use
11415 mark_addressable.
11416 (get_static_chain): Adjust calls to build_addr.
11417 (convert_nl_goto_reference): Likewise.
11418 (convert_tramp_reference_op): Likewise.
11419 (finalize_nesting_tree_1): Likewise.
11420 * value-prof.c (gimple_ic): Likewise.
11421 * gimple-low.c (lower_builtin_setjmp): Likewise.
11422 * tree-parloops.c (take_address_of): Likewise.
11423 (create_call_for_reduction_1): Likewise.
11424 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
11425 (gimple_gen_ic_func_profiler): Likewise.
11426
11427 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11428
11429 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
11430 empty constructors.
11431
11432 2015-10-16 Michael Collison <michael.collison@linaro.org>
11433 Andrew Pinski <andrew.pinski@caviumnetworks.com>
11434
11435 * match.pd ((x < y) && (x < z) -> x < min (y,z),
11436 (x > y) and (x > z) -> x > max (y,z))
11437
11438 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
11439 Szabolcs Nagy <szabolcs.nagy@arm.com>
11440
11441 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
11442 (DYNAMIC_LINKER): Renamed to ...
11443 (GLIBC_DYNAMIC_LINKER): This.
11444 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
11445
11446 2015-10-15 Marek Polacek <polacek@redhat.com>
11447
11448 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
11449 gimple_call_builtin instead of is_gimple_call.
11450
11451 2015-10-15 Richard Biener <rguenther@suse.de>
11452
11453 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
11454
11455 2015-10-15 Richard Biener <rguenther@suse.de>
11456
11457 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
11458 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
11459 * tree-vect-loop.c (get_initial_def_for_induction): Drop
11460 use of force_gimple_operand in favor of gimple_build.
11461 Use vect_get_new_ssa_name.
11462 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
11463 (vectorizable_mask_load_store): Likewise.
11464 (vectorizable_call): Likewise.
11465 (vectorizable_store): Likewise.
11466 (vectorizable_load): Likewise.
11467 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
11468
11469 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
11470
11471 PR tree-optimization/67945
11472 * tree-pass.h (PROP_gimple_opt_math): New property flag.
11473 * generic-match-head.c (canonicalize_math_p): New function.
11474 * gimple-match-head.c: Include tree-pass.h.
11475 (canonicalize_math_p): New function.
11476 * match.pd: Group math built-in rules into simplifications
11477 and canonicalizations. Guard the latter with canonicalize_math_p.
11478 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
11479 PROP_gimple_opt_math property.
11480
11481 2015-10-15 Marek Polacek <polacek@redhat.com>
11482
11483 PR tree-optimization/67953
11484 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
11485
11486 2015-10-15 Jiong Wang <jiong.wang@arm.com>
11487
11488 * config.gcc: Recognize "." in architecture base name for AArch64.
11489
11490 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
11491
11492 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
11493 ROUND_UP macro.
11494 * config/mips/mips.c (mips_setup_incoming_varargs): Use
11495 ROUND_DOWN to calculate off.
11496 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
11497 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
11498 rounded_size.
11499
11500 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
11501
11502 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
11503
11504 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
11505 Torvald Riegel <triegel@redhat.com>
11506
11507 PR target/67281
11508 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
11509 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
11510 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
11511 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
11512 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
11513 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
11514 trechkpt, treclaim, tsr, ttest): New define_expands.
11515 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
11516 __TM_FENCE__ for htm.
11517 * doc/extend.texi: Update documentation for htm builtins.
11518
11519 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
11520
11521 PR target/67967
11522 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
11523 REG_CFA_EXPRESSION to aligned SSE stores.
11524
11525 2015-10-14 Jeff Law <law@redhat.com>
11526
11527 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
11528 num_threaded_edges for successful FSM threads too.
11529
11530 2015-10-14 Richard Biener <rguenther@suse.de>
11531
11532 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
11533 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
11534 (vect_get_vec_def_for_operand): Remove unused parameter.
11535 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
11536 (vect_create_epilog_for_reduction): Likewise.
11537 (vectorizable_reduction): Likewise.
11538 (vectorizable_live_operation): Likewise.
11539 * tree-vect-patterns.c (type_conversion_p): Likewise.
11540 (vect_recog_vector_vector_shift_pattern): Likewise.
11541 (check_bool_pattern): Likewise.
11542 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
11543 (vect_analyze_slp_cost_1): Likewise.
11544 * tree-vect-stmts.c (process_use): Likewise.
11545 (vect_get_vec_def_for_operand): Do not handle reductions.
11546 (vect_get_vec_defs): Adjust.
11547 (vectorizable_mask_load_store): Likewise.
11548 (vectorizable_call): Likewise.
11549 (vectorizable_simd_clone_call): Likewise.
11550 (vect_get_loop_based_defs): Likewise.
11551 (vectorizable_conversion): Likewise.
11552 (vectorizable_assignment): Likewise.
11553 (vectorizable_shift): Likewise.
11554 (vectorizable_operation): Likewise.
11555 (vectorizable_store): Likewise.
11556 (vectorizable_load): Likewise.
11557 (vect_is_simple_cond): Likewise.
11558 (vectorizable_condition): Likewise.
11559 (vect_is_simple_use): Remove unused parameters.
11560 (vect_is_simple_use_1): Adjust and rename.
11561
11562 2015-10-14 Richard Biener <rguenther@suse.de>
11563
11564 PR tree-optimization/67915
11565 * match.pd: Handle comparisons of addresses of STRING_CSTs.
11566 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
11567 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
11568 stmt folding in favor of GIMPLE one.
11569
11570 2015-10-14 Marek Polacek <polacek@redhat.com>
11571
11572 PR tree-optimization/67815
11573 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
11574 (reassociate_bb): Call it.
11575
11576 2015-10-14 Richard Biener <rguenther@suse.de>
11577
11578 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
11579 Reset info at start.
11580 (vect_analyze_group_access_1): Add debug print.
11581 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
11582 (vect_compute_single_scalar_iteration_cost): ... to this.
11583 (vect_analyze_loop_2): Adjust.
11584 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
11585 * tree-vectorizer.h: ... here.
11586 (add_stmt_info_to_vec): Remove.
11587 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
11588
11589 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
11590
11591 * targhooks.c (default_target_option_pragma_parse): Do not warn if
11592 called on behalf of "#pragma GCC pop_options".
11593
11594 2015-10-14 Tom de Vries <tom@codesourcery.com>
11595
11596 * cfganal.c (verify_no_unreachable_blocks): New function.
11597 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
11598 verify_no_unreachable_blocks.
11599 cfganal.h (verify_no_unreachable_blocks): Declare.
11600
11601 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
11602
11603 * common.opt: Add flag_checking.
11604 * system.h (CHECKING_P): Define.
11605
11606 2015-10-13 Jakub Jelinek <jakub@redhat.com>
11607 Aldy Hernandez <aldyh@redhat.com>
11608 Ilya Verbin <ilya.verbin@intel.com>
11609
11610 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
11611 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
11612 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
11613 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
11614 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
11615 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
11616 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
11617 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
11618 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
11619 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
11620 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
11621 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
11622 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
11623 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
11624 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
11625 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
11626 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
11627 (struct cgraph_simd_clone_arg): Adjust comment.
11628 * coretypes.h (struct gomp_ordered): New forward decl.
11629 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
11630 set critical clauses to it.
11631 (gimple_build_omp_ordered): Return gomp_ordered * instead of
11632 gimple *. Add CLAUSES argument, set ordered clauses to it.
11633 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
11634 GIMPLE_OMP_ORDERED.
11635 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
11636 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
11637 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
11638 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
11639 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
11640 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
11641 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
11642 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
11643 renumber
11644 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
11645 (gomp_critical): Add clauses field.
11646 (gomp_ordered): New struct.
11647 (is_a_helper <gomp_ordered *>::test): New inline.
11648 (gimple_build_omp_critical): Add CLAUSES argument.
11649 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
11650 instead of gimple *.
11651 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
11652 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
11653 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
11654 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
11655 inline functions.
11656 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
11657 (dump_gimple_omp_target): Handle enter data and exit data.
11658 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
11659 (dump_gimple_omp_critical): Print clauses.
11660 (dump_gimple_omp_ordered): New function.
11661 (dump_gimple_omp_task): Handle taskloop.
11662 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
11663 GIMPLE_OMP_ORDERED.
11664 * gimple-walk.c (walk_gimple_op): Walk clauses on
11665 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
11666 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
11667 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
11668 (struct gimplify_omp_ctx): Add loop_iter_var,
11669 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
11670 and target_firstprivatize_array_bases fields.
11671 (delete_omp_context): Release loop_iter_var.
11672 (gimplify_bind_expr): Handle ORT_NONE.
11673 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
11674 ORT_COMBINED_TARGET.
11675 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
11676 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
11677 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
11678 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
11679 ctx->target_map_scalars_firstprivate.
11680 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
11681 data sharing clauses. For data sharing clause with VLA decl
11682 on omp target/target data don't add firstprivate for the pointer.
11683 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
11684 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
11685 the addition of ORT_COMBINED_TARGET.
11686 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
11687 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
11688 pointers as zero length array sections and
11689 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
11690 data sharing.
11691 (omp_check_private): Handle omp_member_access_dummy_var vars.
11692 (find_decl_expr): New function.
11693 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
11694 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
11695 Handle OMP_CLAUSE_GANG separately. Handle
11696 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
11697 clauses. Diagnose linear clause on combined
11698 distribute {, parallel for} simd construct, unless it is the loop
11699 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
11700 Handle map clauses with COMPONENT_REF. Initialize
11701 ctx->target_map_scalars_firstprivate,
11702 ctx->target_firstprivatize_array_bases and
11703 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
11704 linear clause even to target region if combined. Remove
11705 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
11706 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
11707 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
11708 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
11709 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
11710 For linear clause on worksharing loop combined with parallel add
11711 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
11712 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
11713 omp_member_access_dummy_var vars. Add lastprivate clause to outer
11714 taskloop if needed.
11715 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
11716 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
11717 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
11718 GOMP_MAP_POINTER.
11719 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
11720 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
11721 in target body. Handle removal of struct mapping if struct is not
11722 seen in target body. Remove GOMP_MAP_STRUCT map clause on
11723 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
11724 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
11725 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
11726 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
11727 clause appear together. Handle
11728 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
11729 clause if it has map-type-modifier always. Handle
11730 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
11731 clauses.
11732 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
11733 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
11734 callers.
11735 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
11736 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
11737 iterators in doacross loops.
11738 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
11739 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
11740 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
11741 for the addition of ORT_COMBINED_TARGET.
11742 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
11743 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
11744 and OMP_TARGET_EXIT_DATA.
11745 (gimplify_omp_ordered): New function.
11746 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
11747 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
11748 Gimplify clauses on OMP_CRITICAL.
11749 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
11750 expand_GOMP_SIMD_ORDERED_END): New functions.
11751 * internal-fn.def (GOMP_SIMD_ORDERED_START,
11752 GOMP_SIMD_ORDERED_END): New internal functions.
11753 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
11754 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
11755 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
11756 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
11757 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
11758 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
11759 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
11760 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
11761 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
11762 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
11763 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
11764 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
11765 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
11766 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
11767 adjust type.
11768 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
11769 GOMP_target_data_41, adjust type.
11770 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
11771 GOMP_target_update_41, adjust type.
11772 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
11773 field.
11774 (struct omp_for_data): Add ordered and simd_schedule fields.
11775 (omp_member_access_dummy_var, unshare_and_remap_1,
11776 unshare_and_remap, is_taskloop_ctx): New functions.
11777 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
11778 (extract_omp_for_data): Handle taskloops and doacross loops
11779 and simd schedule modifier.
11780 (omp_adjust_chunk_size): New function.
11781 (get_ws_args_for): Use it.
11782 (lookup_sfield): Change first argument to splay_tree_key,
11783 add overload with first argument tree.
11784 (maybe_lookup_field): Likewise.
11785 (use_pointer_for_field): Handle omp_member_access_dummy_var.
11786 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
11787 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
11788 (build_outer_var_ref): Add LASTPRIVATE argument, handle
11789 taskloops and omp_member_access_dummy_var vars.
11790 (build_sender_ref): Change first argument to splay_tree_key,
11791 add overload with first argument tree.
11792 (install_var_field): For mask & 8 use &DECL_UID as key instead
11793 of the tree itself.
11794 (fixup_child_record_type): Const qualify *.omp_data_i.
11795 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
11796 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
11797 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
11798 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
11799 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
11800 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
11801 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
11802 kinds.
11803 (add_taskreg_looptemp_clauses): New function.
11804 (scan_omp_parallel): Use it.
11805 (scan_omp_task): Likewise.
11806 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
11807 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
11808 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
11809 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
11810 sandwiched taskloop constructs. Type check
11811 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
11812 region. Diagnose depend(source) or depend(sink:...) on
11813 target constructs or task/taskloop.
11814 (handle_simd_reference): Use get_name.
11815 (lower_rec_input_clauses): Likewise. Ignore all
11816 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
11817 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
11818 before passing it to omp_clause_{default,copy}_ctor. Handle
11819 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
11820 lastprivate_firstprivate flag for linear that needs copyin and
11821 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
11822 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
11823 on taskloop lookup decl in outer context. Pass true to
11824 build_outer_var_ref lastprivate argument. Handle
11825 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
11826 outside of outer taskloop for.
11827 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
11828 OMP_CLAUSE_DECL.
11829 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
11830 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
11831 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
11832 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
11833 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
11834 abstract origin. Handle omp_member_access_dummy_var vars.
11835 (expand_parallel_call): Use expand_omp_build_assign.
11836 (expand_task_call): Handle taskloop construct expansion. Add
11837 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
11838 integers. Add priority argument to GOMP_task* calls. Or in
11839 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
11840 GOMP_task call.
11841 (expand_omp_build_assign): Add prototype. Add AFTER
11842 argument, if true emit statements after *GSI_P and continue linking.
11843 (expand_omp_taskreg): Adjust expand_task_call caller.
11844 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
11845 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
11846 zero_iter2_bb and first_zero_iter2 arguments, handle computation
11847 of counts even for ordered loops.
11848 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
11849 (expand_omp_ordered_source, expand_omp_ordered_sink,
11850 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
11851 functions.
11852 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
11853 clauses on worksharing loop. Handle DOACROSS loop expansion.
11854 (expand_omp_for_static_nochunk): Handle linear clauses on
11855 worksharing loop. Adjust expand_omp_for_init_counts
11856 callers.
11857 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
11858 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
11859 expand_omp_for_init_counts callers.
11860 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
11861 functions.
11862 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
11863 Handle doacross loops.
11864 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
11865 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
11866 GOMP_target_{41,update_41,enter_exit_data} libcalls.
11867 (expand_omp): Don't expand ordered depend constructs here, record
11868 ord_stmt instead for later expand_omp_for_generic.
11869 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
11870 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
11871 clause as stand-alone directive.
11872 (lower_omp_ordered_clauses): New function.
11873 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
11874 don't lower anything.
11875 (lower_omp_for_lastprivate): Use last _looptemp_ clause
11876 on taskloop for comparison.
11877 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
11878 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
11879 expansion for linear adjustments.
11880 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
11881 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
11882 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
11883 to tree * pointing to the stmt's clauses.
11884 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
11885 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
11886 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
11887 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
11888 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
11889 clauses. Always use short kind and 8-bit align shift.
11890 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
11891 (struct lower_omp_regimplify_operands_data): New type.
11892 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
11893 New functions.
11894 (lower_omp_1): Use lower_omp_regimplify_operands instead of
11895 gimple_regimplify_operands.
11896 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
11897 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
11898 clause as stand-alone directive.
11899 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
11900 (simd_clone_mangle): Mangle the various linear kinds
11901 per the new ABI.
11902 (simd_clone_adjust_argument_types): Handle
11903 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
11904 (simd_clone_init_simd_arrays): Don't do anything for uval.
11905 (simd_clone_adjust): Handle
11906 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
11907 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
11908 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
11909 * omp-low.h (omp_member_access_dummy_var): New prototype.
11910 * passes.def (pass_simduid_cleanup): Schedule another copy of the
11911 pass after all optimizations.
11912 * tree.c (omp_clause_code_name): Add entries for
11913 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
11914 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
11915 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
11916 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
11917 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
11918 OMP_CLAUSE_REDUCTION 5 arguments. Handle
11919 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
11920 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
11921 clauses.
11922 * tree-core.h (enum omp_clause_linear_kind): New.
11923 (struct tree_omp_clause): Change type of map_kind
11924 from unsigned char to unsigned int. Add subcode.if_modifier
11925 and subcode.linear_kind fields.
11926 (enum omp_clause_code): Add
11927 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
11928 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
11929 (OMP_CLAUSE_REDUCTION): Document
11930 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
11931 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
11932 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
11933 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
11934 operand.
11935 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
11936 operand.
11937 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
11938 codes.
11939 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
11940 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
11941 char.
11942 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
11943 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
11944 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
11945 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
11946 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
11947 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
11948 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
11949 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
11950 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
11951 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
11952 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
11953 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
11954 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
11955 * tree-inline.c (remap_gimple_stmt): Handle clauses on
11956 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
11957 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
11958 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
11959 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
11960 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
11961 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
11962 (convert_local_omp_clauses): Likewise.
11963 * tree-pretty-print.c (dump_omp_clause): Handle
11964 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
11965 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
11966 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
11967 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
11968 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
11969 GOMP_MAP_FORCE_DEALLOC. Handle
11970 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
11971 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
11972 and clauses on OMP_ORDERED and OMP_CRITICAL.
11973 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
11974 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
11975 (vectorize_loops): Adjust comments.
11976 (pass_simduid_cleanup::execute): Likewise.
11977 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
11978 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
11979 * wide-int.h (wi::gcd): New.
11980
11981 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
11982
11983 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
11984 (ix86_function_arg_advance): Ditto.
11985 (ix86_function_arg): Ditto.
11986 (ix86_gimplify_va_arg): Ditto.
11987 (ix86_class_max_nregs): Ditto.
11988 (inline_memory_move_cost): Ditto.
11989 (ix86_set_reg_reg_cost): Ditto.
11990 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
11991
11992 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
11993
11994 PR middle-end/67912
11995 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
11996
11997 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
11998
11999 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
12000 ROUND_UP macro and UNITS_PER_WORD * 2.
12001 * config/sparc/sparc.c (sparc_compute_frame_size):
12002 Use ROUND_UP and ROUND_DOWN macros where applicable.
12003 (function_arg_record_value, function_arg_record_value_1)
12004 (function_arg_record_value_1): Ditto.
12005 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
12006 alignment to double-word.
12007 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
12008 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
12009 rounded_size.
12010
12011 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
12012
12013 * rtl.h (print_insn): Fix prototype.
12014
12015 2015-10-13 Tom de Vries <tom@codesourcery.com>
12016
12017 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
12018 -1. Add assert that returned entry matches phi argument.
12019 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
12020 free_stmt_vec_info_vec ...
12021 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
12022 with -1.
12023
12024 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
12025
12026 PR tree-optimization/67909, 67947
12027 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
12028 really skip the inner loop.
12029
12030 2015-10-13 Jeff Law <law@redhat.com>
12031
12032 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12033 Allow single block jump threading paths.
12034
12035 2015-10-13 Tom de Vries <tom@codesourcery.com>
12036
12037 PR tree-optimization/67476
12038 * doc/invoke.texi (@item parloops-schedule): New item.
12039 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
12040 * tree-parloops.c: Include params-enum.h.
12041 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
12042
12043 2015-10-13 Tom de Vries <tom@codesourcery.com>
12044
12045 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
12046 * params-enum.h: New file.
12047 * opts.c (handle_param): Handle case that param arg is a string.
12048 * params-list.h: Handle DEFPARAMENUM5 in params.def.
12049 * params.c (find_param): New function, factored out of ...
12050 (set_param_value): ... here.
12051 (param_string_value_p): New function.
12052 * params.h (struct param_info): Add value_names field.
12053 (find_param, param_string_value_p): Declare.
12054
12055 2015-10-13 Tom de Vries <tom@codesourcery.com>
12056
12057 PR tree-optimization/67476
12058 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
12059
12060 2015-10-13 Richard Biener <rguenther@suse.de>
12061
12062 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
12063 the data dependence vector.
12064 (vect_peeling_hash_insert): Get the peeling hash table as argument.
12065 (vect_peeling_hash_get_lowest_cost): Likewise.
12066 (vect_enhance_data_refs_alignment): Adjust.
12067 (struct _vect_peel_info, struct _vect_peel_extended_info,
12068 struct peel_info_hasher): Move from ...
12069 * tree-vectorizer.h: ... here.
12070 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
12071 (LOOP_VINFO_PEELING_HTAB): Likewise.
12072 (struct _loop_vec_info): Remove min_profitable_iters and
12073 peeling_htab members.
12074 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
12075 here.
12076 (destroy_loop_vec_info): Adjust.
12077 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
12078 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
12079 to estimate alias versioning cost.
12080 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
12081
12082 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
12083
12084 * real.h (real_isinteger): Declare.
12085 * real.c (real_isinteger): New function.
12086 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
12087 if y is an even integer.
12088
12089 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12090
12091 revert:
12092 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12093 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
12094 counts when these are more informative.
12095
12096 2015-10-12 Jeff Law <law@redhat.com>
12097
12098 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
12099 (fsm_find_control_stmt_paths): Change name of first argument to
12100 more accurately relfect what it really is. Handle simplification
12101 of GIMPLE_COND after finding a thread path for NAME.
12102 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
12103 nontrivial conditions to be handled by FSM threader.
12104 (thread_through_normal_block): Extract the name to looup via
12105 FSM threader from COND_EXPR.
12106
12107 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
12108 restriction that traced SSA_NAME is a user variable.
12109
12110 2015-10-12 Tom de Vries <tom@codesourcery.com>
12111
12112 PR tree-optimization/67476
12113 * omp-low.c (expand_omp_for_generic): Add missing phis.
12114
12115 2015-10-12 Tom de Vries <tom@codesourcery.com>
12116
12117 PR tree-optimization/67476
12118 * omp-low.c (expand_omp_for_generic): Handle simple latch.
12119
12120 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
12121
12122 * config/aarch64/aarch64-simd-builtins.def: Update builtins
12123 tables: add tbl3 and tbx4.
12124 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
12125 (aarch64_tbx4v8qi): New.
12126 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
12127 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
12128 Rewrite using builtin functions.
12129 * config/aarch64/iterators.md (UNSPEC_TBX): New.
12130
12131 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
12132
12133 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
12134 ROUND_UP macro.
12135 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
12136 Use ROUND_UP and ROUND_DOWN macros where applicable.
12137 (rs6000_darwin64_record_arg_flush): Ditto.
12138 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
12139 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
12140 rounded_size.
12141
12142 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
12143
12144 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
12145 (AARCH64_ROUND_DOWN): Ditto.
12146 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
12147
12148 2015-10-12 Richard Biener <rguenther@suse.de>
12149
12150 PR ipa/67783
12151 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
12152 code that analyzes IVs on each stmt but in a cheaper way avoiding
12153 quadratic behavior.
12154
12155 2015-10-12 Nick Clifton <nickc@redhat.com>
12156
12157 * config/msp430/msp430.c (msp430_mcu_names): Rename to
12158 msp430_mcu_data, add fields for ISA and hardware multiply
12159 support. Import latest data from the devices.csv file.
12160 (msp430_override_option): Use the data from the new array.
12161 (msp430_use_f5_series_hwmult): Likewise.
12162 (use_32bit_hwmult): Likewise.
12163 (msp430_no_hwmult): Likewise.
12164 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
12165 MCU names.
12166 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
12167 not recognised then no hardware multiply support is assumed and
12168 that only the MSP430 ISA is allowed.
12169
12170 2015-10-12 Richard Biener <rguenther@suse.de>
12171
12172 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
12173 related code ...
12174 (vect_analyze_loop_2): ... here.
12175
12176 2015-10-11 Jason Merrill <jason@redhat.com>
12177
12178 PR c++/67557
12179 * expr.c (store_field): Call store_constructor directly when
12180 storing a CONSTRUCTOR into a target smaller than its type.
12181 Guard against unsafe bitwise copy.
12182
12183 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12184
12185 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
12186 counts when these are more informative.
12187
12188 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12189
12190 * tree-profile.c (tree_profiling): Do not clear
12191 pure/const when not instrumenting.
12192 (pass tree_profile): Add dump of symtab.
12193
12194 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12195
12196 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
12197 addresses.
12198 (fold_addr_of_array_ref_difference): Likewise.
12199
12200 2015-10-11 Jeff Law <law@redhat.com>
12201
12202 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
12203 tree-ssa-threadbackward.c.
12204 (fsm_find_control_statement_thread_paths): Likewise.
12205 (thread_through_normal_block): Break out FSM bits and move them
12206 into a new function in tree-ssa-threadbackward.c. Call new function
12207 instead.
12208 Minimize header file usage.
12209 * tree-ssa-threadbackward.h: New file.
12210 * tree-ssa-threadbackward.c: Likewise.
12211 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
12212
12213 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
12214
12215 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
12216
12217 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
12218
12219 PR rtl-optimization/67864
12220 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
12221 fallthrough edges for conditional jumps. Don't sort candidate
12222 edges if not optimizing for speed.
12223
12224 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12225
12226 * defaults.h (REVERSE_CONDITION): New default definition.
12227 * jump.c (reversed_comparison_code_parts): Adjust.
12228
12229 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12230
12231 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
12232 check HARD_FRAME_POINTER_IS_ARG_POINTER.
12233
12234 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12235
12236 * defaults.h (FRAME_ADDR_RTX): New default definition.
12237 * builtins.c (expand_builtin_return_addr): Adjust.
12238
12239 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12240
12241 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
12242 * builtins.c (expand_builtin_return_addr): Adjust.
12243
12244 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12245
12246 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
12247 * builtins.c (expand_builtin_return_addr): Adjust.
12248 * doc/tm.texi: Likewise.
12249 * doc/tm.texi.in: Likewise.
12250 * except.c (expand_builtin_unwind_init): Likewise.
12251
12252 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12253
12254 * builtins.c (expand_builtin_return_addr): Adjust.
12255 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
12256
12257 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
12258
12259 * tree.c (type_with_interoperable_signedness): New.
12260 (gimple_canonical_types_compatible_p): Use it.
12261 * tree.h (type_with_interoperable_signedness): Declare
12262
12263 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
12264
12265 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
12266 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
12267 when OEP_ADDRESS_OF is se.
12268
12269 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
12270 Sebastian Pop <s.pop@samsung.com>
12271
12272 * graphite-dependences.c (scop_get_dependences): Add dump of the
12273 data dependence graph.
12274 * graphite-poly.c (print_isl_union_map): New.
12275 (debug_isl_union_map): New.
12276 * graphite-poly.h (print_isl_union_map): Declare.
12277 (debug_isl_union_map): Declare.
12278
12279 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
12280 Sebastian Pop <s.pop@samsung.com>
12281
12282 * graphite-poly.c (print_iteration_domain): Remove verbosity.
12283 Remove OpenScop formatting.
12284 (print_iteration_domains): Same.
12285 (debug_iteration_domain): Same.
12286 (debug_iteration_domains): Same.
12287 (print_pdr): Same.
12288 (debug_pdr): Same.
12289 (dump_gbb_cases): Same.
12290 (dump_gbb_conditions): Same.
12291 (print_pdrs): Same.
12292 (debug_pdrs): Same.
12293 (print_pbb_body): Same.
12294 (print_pbb): Same.
12295 (print_scop_params): Same.
12296 (print_scop_context): Same.
12297 (print_scop): Same.
12298 (debug_pbb_domain): Same.
12299 (debug_pbb): Same.
12300 (debug_scop_context): Same.
12301 (debug_scop): Same.
12302 (debug_scop_params): Same.
12303 * graphite-poly.h: Same.
12304 * graphite.c (graphite_transform_loops): Same.
12305
12306 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12307
12308 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
12309 call that isn't needed.
12310
12311 2015-10-09 Jeff Law <law@redhat.com>
12312
12313 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
12314 rather than moving each name to the freelist individually.
12315
12316 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
12317
12318 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
12319 * frame-header-opt.c: New file.
12320 * config/mips/mips-proto.h (mips_register_frame_header_opt):
12321 Add prototype.
12322 * config/mips/mips.c (mips_compute_frame_info): Check
12323 optimize_call_stack flag.
12324 (mips_option_override): Register new frame_header_opt pass.
12325 (mips_frame_info, mips_int_mask, mips_shadow_set,
12326 machine_function): Move these types to...
12327 * config/mips/mips.h: here.
12328 (machine_function): Add does_not_use_frame_header and
12329 optimize_call_stack fields.
12330 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
12331 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
12332 Document new flags.
12333 * config/mips/mips.opt (mframe-header-opt): Add new option.
12334
12335 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
12336
12337 * config/i386/i386.c
12338 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
12339 ROUND_DOWN where applicable.
12340
12341 2015-10-09 Jeff Law <law@redhat.com>
12342
12343 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
12344 correct statement.
12345
12346 2015-10-09 Renlin Li <renlin.li@arm.com>
12347
12348 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
12349 operands[0] and operands[2].
12350 (neon_vtrn<mode>_insn): Likewise.
12351 (neon_vzip<mode>_insn): Likewise.
12352
12353 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
12354
12355 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
12356 ((X & C2) << C1): Expand to...
12357 (X {&,^,|} C2 << C1): ...This.
12358 ((X & C2) >> C1): Expand to...
12359 (X {&,^,|} C2 >> C1): ...This.
12360
12361 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
12362
12363 PR target/67895
12364 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
12365 Adjust embedded rounding/SAE specifier position.
12366 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
12367 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
12368 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
12369 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
12370 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
12371 Likewise.
12372 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
12373
12374 2015-10-09 Martin Jambor <mjambor@suse.cz>
12375
12376 tree-optimization/67794
12377 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
12378 between types of state,ents but accept original definitions as a
12379 parameter.
12380 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
12381 iterate over definitions.
12382
12383 2015-10-09 James Norris <jnorris@codesourcery.com>
12384
12385 * config/rs6000/rs6000.c (rs6000_offload_options): New.
12386 (TARGET_OFFLOAD_OPTIONS): New.
12387
12388 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
12389
12390 PR middle-end/67891
12391 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
12392
12393 PR middle-end/67766
12394 * function.c (expand_function_end): Move return value
12395 promotion past the handling of PARALLELs and CONCATs.
12396
12397 PR rtl-optimization/67828
12398 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
12399 (tree_may_unswitch_on): Don't unswitch on expressions
12400 involving undefined values.
12401
12402 2015-10-09 Richard Biener <rguenther@suse.de>
12403
12404 * genmatch.c (print_operand): Fix formatting.
12405 (dt_node::append_simplify): Warn for multiple simplifiers
12406 that match the same pattern.
12407 * match.pd (log (exp @0)): Remove duplicates.
12408
12409 2015-10-09 Richard Biener <rguenth@suse.de>
12410
12411 PR target/67366
12412 * gimple-fold.c (optabs-query.h): Include
12413 (gimple_fold_builtin_memory_op): Allow unaligned stores
12414 when movmisalign_optabs are available.
12415
12416 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12417
12418 PR target/67366
12419 * config/arm/arm.md (movmisalign<mode>): New.
12420 * config/arm/iterators.md (HSI): New.
12421
12422 2015-10-09 Richard Biener <rguenther@suse.de>
12423
12424 PR tree-optimization/67891
12425 * gimple-match.h (gimple_simplified_result_is_gimple_val):
12426 New helper.
12427 (gimple_resimplify1): Declare.
12428 (gimple_resimplify2): Likewise.
12429 (gimple_resimplify3): Likewise.
12430 * gimple-match-head.c (gimple_resimplify1): Export.
12431 (gimple_resimplify2): Likewise.
12432 (gimple_resimplify3): Likewise.
12433 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
12434 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
12435 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
12436 to avoid creating stmts without VN info.
12437
12438 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
12439
12440 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
12441 of availability.
12442
12443 2015-10-08 Jeff Law <law@redhat.com>
12444
12445 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
12446 and release_ssa_name in two places.
12447 (gimple_stringop_fixed_value): Similarly.
12448
12449 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
12450 release_defs.
12451
12452 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
12453 unlink_stmt_vdef and release_ssa_name_fn.
12454
12455 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
12456 release_defs.
12457
12458 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
12459
12460 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
12461 SSE register save area to 16 bytes only if the incoming stack
12462 boundary is no less than 16 bytes.
12463
12464 2015-10-08 Jeff Law <law@redhat.com>
12465
12466 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
12467 release_ssa_name. Fix typo in comment.
12468
12469 2015-10-08 Nathan Sidwell <nathan@acm.org>
12470
12471 * config/nvptx/nvptx.h (struct machine_function): Add comment.
12472 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
12473 may return pointer as well as in memory.
12474 (nvptx_output_return): Likewise.
12475
12476 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
12477
12478 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
12479 (fold_builtin_1): Update accordingly. Handle constant arguments here.
12480 * match.pd: Add rules previously handled by fold_builtin_sqrt
12481 and fold_builtin_cbrt.
12482
12483 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
12484
12485 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
12486 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
12487 * fold-const.h (tree_unary_nonnegative_warnv_p)
12488 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
12489 (tree_expr_nonnegative_warnv_p): Add depth parameters.
12490 * fold-const.c: Include gimple-fold.h and params.h.
12491 (tree_ssa_name_nonnegative_warnv_p): New function.
12492 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
12493 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
12494 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
12495 Add a depth parameter and increment it for recursive calls to
12496 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
12497 to handle SSA names.
12498 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
12499 (gimple_stmt_nonnegative_warnv_p): Declare.
12500 * tree-vrp.c (remove_range_assertions): Remove assert that condition
12501 cannot be proven false.
12502 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
12503 (gimple_stmt_nonnegative_warnv_p): Move to...
12504 * gimple-fold.c: ...here. Add depth parameters and pass them
12505 down to the tree routines. Accept statements that aren't
12506 assignments or calls but just return false for them.
12507 (gimple_val_nonnegative_real_p): Delete.
12508 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
12509 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
12510 Check HONOR_NANs first.
12511
12512 2015-10-08 Martin Jambor <mjambor@suse.cz>
12513
12514 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
12515 unnecessary MIN.
12516
12517 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
12518
12519 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
12520 in the tail of outer-loop.
12521
12522 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
12523
12524 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
12525 return UI_NONE.
12526
12527 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
12528
12529 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
12530 "cfghooks.h", add prototypes for introduced new functions.
12531 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
12532 checks on ability of loop unswitching to tree_unswitch_single_loop;
12533 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
12534 on innermost loop check.
12535 (tree_unswitch_single_loop): Add all required checks on ability of
12536 loop unswitching under zero recursive level guard.
12537 (tree_unswitch_outer_loop): New function.
12538 (find_loop_guard): Likewise.
12539 (empty_bb_without_guard_p): Likewise.
12540 (used_outside_loop_p): Likewise.
12541 (get_vop_from_header): Likewise.
12542 (hoist_guard): Likewise.
12543 (check_exit_phi): Likewise.
12544
12545 2015-10-08 Marek Polacek <polacek@redhat.com>
12546
12547 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
12548 ops element.
12549
12550 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12551
12552 PR c/65345
12553 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
12554 create_tmp_var_raw instead of create_tmp_var.
12555
12556 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
12557
12558 * expr.c (store_expr_with_bounds): Handle aggregate moves from
12559 BLKmode.
12560 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
12561 to define gimple type system; compare aggregates only by size.
12562
12563 2015-10-07 Jeff Law <law@redhat.com>
12564
12565 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
12566 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
12567 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
12568 unnecessarily.
12569
12570 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
12571 Sebastian Pop <s.pop@samsung.com>
12572
12573 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
12574 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
12575 (generate_isl_schedule): Same.
12576 * graphite-optimize-isl.c (scop_get_domains): Same.
12577 (apply_schedule_map_to_scop): Same.
12578 * graphite-poly.c (print_iteration_domains): Same.
12579 (remove_gbbs_in_scop): Same.
12580 (new_scop): Same.
12581 (free_scop): Same.
12582 (print_scop): Same.
12583 * graphite-poly.h (struct scop): Rename bbs to pbbs.
12584 (SCOP_BBS): Remove.
12585 * graphite-scop-detection.c (compare_bb_depths): Remove.
12586 (graphite_sort_dominated_info): Remove.
12587 (try_generate_gimple_bb): Move out of scop_detection.
12588 (all_non_dominated_preds_marked_p): Remove.
12589 (build_scop_bbs_1): Remove.
12590 (build_scop_bbs): Remove.
12591 (nb_pbbs_in_loops): Do not use SCOP_BBS.
12592 (find_scop_parameters): Same.
12593 (sese_dom_walker): Rename gather_bbs.
12594 (before_dom_children): Call try_generate_gimple_bb and collect gbb
12595 and pbb.
12596 (build_scops): Call gather_bbs.
12597 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
12598 (add_conditions_to_constraints): Same.
12599 (build_scop_iteration_domain): Same.
12600 (build_scop_drs): Same.
12601 (new_pbb_from_pbb): Same.
12602 * sese.c (new_sese_info): Create bbs.
12603 * sese.h (struct sese_info_t): Add bbs.
12604
12605 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
12606
12607 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
12608 encoding in 64-bit mode.
12609
12610 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
12611
12612 PR target/66697
12613 * config/i386/i386.c (ix86_option_override_internal): Always use
12614 8-byte minimum stack boundary in 64-bit mode.
12615 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
12616 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
12617 Add a REG_CFA_EXPRESSION note if needed.
12618 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
12619 (ix86_handle_force_align_arg_pointer_attribute): New.
12620 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
12621 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
12622 with ix86_handle_force_align_arg_pointer_attribute.
12623 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
12624
12625 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
12626 Sebastian Pop <s.pop@samsung.com>
12627
12628 * graphite-scop-detection.c (parameter_index_in_region): Remove
12629 use of SESE_ADD_PARAMS.
12630 (find_scop_parameters): Same.
12631 * sese.c (new_sese_info): Same.
12632 * sese.h (struct sese_info_t): Remove add_params.
12633 (SESE_ADD_PARAMS): Remove.
12634
12635 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
12636 Sebastian Pop <s.pop@samsung.com>
12637
12638 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
12639 an sese_info_p.
12640 (copy_def): Same.
12641 (copy_internal_parameters): Same.
12642 (translate_isl_ast_to_gimple): Use an sese_l.
12643 (build_iv_mapping): Same.
12644 * graphite-poly.c (new_sese): Rename new_sese_info.
12645 (free_sese): Rename free_sese_info.
12646 * graphite-poly.h (struct scop): Use an sese_info_p.
12647 (scop_set_region): Same.
12648 * graphite-scop-detection.c (struct sese_l): Moved...
12649 (get_entry_bb): Moved...
12650 (get_exit_bb): Moved...
12651 (parameter_index_in_region_1): Use an sese_info_p.
12652 (parameter_index_in_region): Same.
12653 (scan_tree_for_params): Same.
12654 (find_params_in_bb): Same.
12655 (sese_dom_walker): Use an sese_l.
12656 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
12657 (reduction_phi_p): Same.
12658 (parameter_index_in_region_1): Use an sese_info_p.
12659 (propagate_expr_outside_region): Use an sese_l.
12660 * graphite.c: Replace uses of SCOP_REGION.
12661 * sese.c (sese_record_loop): Use an sese_info_p.
12662 (build_sese_loop_nests): Same.
12663 (sese_build_liveouts_use): Same.
12664 (sese_build_liveouts_bb): Same.
12665 (sese_build_liveouts_bb): Same.
12666 (sese_bad_liveouts_use): Same.
12667 (sese_reset_debug_liveouts_bb): Same.
12668 (sese_build_liveouts): Same.
12669 (new_sese): Renamed new_sese_info.
12670 (free_sese): Renamed free_sese_info.
12671 (set_rename): Use an sese_info_p.
12672 (graphite_copy_stmts_from_block): Same.
12673 (copy_bb_and_scalar_dependences): Same.
12674 (outermost_loop_in_sese_1): Use an sese_l.
12675 (outermost_loop_in_sese): Same.
12676 (if_region_set_false_region): Use an sese_info_p.
12677 (move_sese_in_condition): Same.
12678 (scalar_evolution_in_region): Use an sese_l.
12679 * sese.h (struct sese_l): ... here.
12680 (SESE_ENTRY): Remove.
12681 (SESE_ENTRY_BB): Remove.
12682 (SESE_EXIT): Remove.
12683 (SESE_EXIT_BB): Remove.
12684 (sese_contains_loop): Use an sese_info_p.
12685 (sese_nb_params): Same.
12686 (bb_in_sese_p): Use an sese_l.
12687 (stmt_in_sese_p): Same.
12688 (defined_in_sese_p): Same.
12689 (loop_in_sese_p): Same.
12690 (sese_loop_depth): Same.
12691 (struct ifsese_s): Use an sese_info_p.
12692 (gbb_loop_at_index): Use an sese_l.
12693 (nb_common_loops): Same.
12694 (scev_analyzable_p): Same.
12695
12696 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
12697
12698 * config/i386/i386.c (ix86_conditional_register_usage): Use
12699 CALL_USED_REGISTERS_MASK.
12700 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
12701
12702 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
12703
12704 PR bootstrap/67385
12705 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
12706 * configure: Regenerated.
12707
12708 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
12709
12710 PR target/67850
12711 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
12712 (ix86_set_current_function): This.
12713 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
12714
12715 2015-10-07 Richard Biener <rguenther@suse.de>
12716
12717 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
12718 (vinfo_for_stmt): Adjust.
12719 (set_vinfo_for_stmt): Likewise.
12720 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
12721 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
12722 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
12723 of inner loop.
12724 (vect_analyze_loop_1): Remove.
12725 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
12726 inner loop when vectorizing an outer loop by splitting out from ...
12727 (vect_analyze_loop_form): ... here.
12728
12729 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12730
12731 PR c/65345
12732 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
12733 Use create_tmp_var_raw instead of create_tmp_var.
12734
12735 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
12736
12737 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
12738 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
12739 * real.c (CACHED_FRACTION): New helper macro.
12740 (dconst_third_ptr): Use it.
12741 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
12742 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
12743 dconst_sixth.
12744 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
12745
12746 2015-10-06 Jeff Law <law@redhat.com>
12747
12748 PR tree-optimization/67816
12749 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
12750 from remove_jump_threads_starting_at. Accept an edge rather than
12751 a basic block.
12752 * tree-ssa-threadupdate.c (removed_edges): New hash table.
12753 (remove_jump_threads_including): Note edges that get removed from
12754 the CFG for later pruning of jump threading paths including them.
12755 (thread_through_all_blocks): Remove paths which include edges that
12756 have been removed.
12757 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
12758 on each outgoing edges when optimizing away a control statement.
12759
12760 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12761
12762 * reorg.c (emit_delay_sequence): Store list of delay slot insns
12763 in a vector instead of rtx_insn_list.
12764 (add_to_delay_list): Likewise.
12765 (delete_from_delay_slot): Likewise.
12766 (optimize_skip): Likewise.
12767 (redirect_with_delay_list_safe_p): Likewise.
12768 (check_annul_list_true_false): Likewise.
12769 (steal_delay_list_from_target): Likewise.
12770 (steal_delay_list_from_fallthrough): Likewise.
12771 (redundant_insn): Likewise.
12772 (fill_simple_delay_slots): Likewise.
12773 (fill_slots_from_thread): Likewise.
12774 (fill_eager_delay_slots): Likewise.
12775 (relax_delay_slots): Likewise.
12776
12777 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
12778
12779 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
12780 For -mgpopt=local, also exclude unintialized common symbols.
12781 * doc/invoke.texi (Nios II Options): Document the change.
12782
12783 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
12784
12785 * config/aarch64/iterators.md (vwcore): Add missing cases for
12786 V4HF/V8HF modes.
12787
12788 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
12789 Sebastian Pop <s.pop@samsung.com>
12790
12791 * graphite-poly.c (new_scop): Initialize drs.
12792 * graphite-poly.h (struct dr_info): New.
12793 (struct scop): Add drs.
12794 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
12795 (pdr_add_memory_accesses): Same.
12796 (build_poly_dr): Same.
12797 (build_alias_set): Same.
12798 (build_scop_drs): Same.
12799 (build_pbb_drs): Remove.
12800 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
12801 * tree-data-ref.h (data_reference): Remove alias_set.
12802
12803 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
12804 Sebastian Pop <s.pop@samsung.com>
12805
12806 * graphite-poly.c (free_data_refs_aux): Remove.
12807 (free_gimple_poly_bb): Do not call free_data_refs_aux.
12808 * graphite-poly.h (struct base_alias_pair): Remove.
12809 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
12810 base_alias_pair and dr->aux.
12811 (build_alias_set): Same.
12812 * tree-data-ref.c (create_data_ref): Initialize alias_set.
12813 * tree-data-ref.h (data_reference): Add alias_set.
12814
12815 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
12816 Sebastian Pop <s.pop@samsung.com>
12817
12818 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
12819 Do not set PDR_BASE_OBJECT_SET.
12820 * graphite-poly.h (poly_dr): Same.
12821 (PDR_BASE_OBJECT_SET): Remove.
12822 (new_poly_dr): Update decl.
12823 * graphite-sese-to-poly.c (build_poly_dr): Update call to
12824 new_poly_dr.
12825 (write_alias_graph_to_ascii_dimacs): Remove.
12826 (write_alias_graph_to_ascii_dot): Remove.
12827 (write_alias_graph_to_ascii_ecc): Remove.
12828 (dr_same_base_object_p): Remove.
12829 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
12830 code.
12831 (build_base_obj_set_for_drs): Remove.
12832 (dump_alias_graphs): Remove.
12833 (build_scop_drs): Remove dead code.
12834
12835 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
12836 Peter Bergner <bergner@vnet.ibm.com>
12837
12838 PR target/67808
12839 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
12840 allow registers, but provide insns for the combiner to create for
12841 loads from memory. Separate VSX code from non-VSX code. For
12842 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
12843 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
12844 so that registers come before memory operations. Drop support from
12845 converting DFmode to TFmode, if the DFmode value is in a GPR
12846 register.
12847 (extenddftf2_fprs): Likewise.
12848 (extenddftf2_internal): Likewise.
12849 (extenddftf2_vsx): Likewise.
12850 (extendsftf2): In the expander, only allow registers, but provide
12851 insns for the combiner to create for stores and loads.
12852
12853 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12854
12855 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
12856 from the decl parameter.
12857
12858 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
12859
12860 PR 67861
12861 * gimple-fold.c (gimple_fold_builtin): Add break after
12862 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
12863
12864 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
12865
12866 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
12867 to scop->isl_context.
12868
12869 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
12870
12871 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
12872 (output_probe_stack_range): Rotate the loop and simplify.
12873 (thumb1_expand_prologue): Tweak sorry message.
12874 * config/arm/arm.md (probe_stack): Use bare string.
12875
12876 2015-10-06 Nick Clifton <nickc@redhat.com>
12877
12878 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
12879
12880 2015-10-06 Nick Clifton <nickc@redhat.com>
12881
12882 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
12883 (ATTR_PERSIST): New constant.
12884 (msp430_data_attr): New function - verifies an attribute that only
12885 applies to variables.
12886 (msp430_attributes): Add noinit and persistent attributes.
12887 (noinit_section): New variable.
12888 (presis_section): New variable.
12889 (TARGET_ASM_INIT_SECTIONS): Define.
12890 (msp430_init_sections): New function - initialises the noinit and
12891 persist section variables.
12892 (msp430_select_section): Add support for noinit and persist
12893 attributes.
12894 (msp430_section_type_flags): Likewise.
12895 * doc/extend.texi: Document the reent, critical, wakeup, noinit
12896 and persistent attributes.
12897
12898 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
12899 Sebastian Pop <s.pop@samsung.com>
12900
12901 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
12902 (no_violations): Remove.
12903 (subtract_commutative_associative_deps): Remove.
12904 (compute_deps): Do not call subtract_commutative_associative_deps.
12905 (transform_is_safe): Remove.
12906 (graphite_legal_transform): Remove.
12907 * graphite-poly.h (graphite_legal_transform): Remove.
12908
12909 2015-10-05 Aditya Kumar <hiraditya@msn.com>
12910
12911 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
12912 which are in this region are passed so gcc_assert and remove redundant
12913 computation.
12914 * sese.c (sese_build_liveouts): Pass only those bbs which are not
12915 in region.
12916 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
12917 gcc_assert on that and remove unnecessary computation.
12918 (sese_build_liveouts_use): Same.
12919
12920 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
12921
12922 * graphite-dependences.c (scop_get_reads): Renamed scop->context
12923 to scop->param_context.
12924 (scop_get_must_writes): Same.
12925 (scop_get_may_writes): Same.
12926 (scop_get_original_schedule): Same.
12927 (scop_get_transformed_schedule): Same.
12928 (subtract_commutative_associative_deps): Same.
12929 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
12930 (generate_isl_context): Same.
12931 (generate_isl_schedule): Same.
12932 (scop_to_isl_ast): Same.
12933 (graphite_regenerate_ast_isl): Same.
12934 * graphite-optimize-isl.c (scop_get_domains): Same.
12935 (optimize_isl): Renamed scop->context to scop->param_context.
12936 * graphite-poly.c (new_poly_bb): Change the type of argument to
12937 gimple_poly_bb_p.
12938 (new_scop): Renamed scop->context to scop->param_context.
12939 (free_scop): Same.
12940 (print_scop_context): Same.
12941 * graphite-poly.h (new_poly_dr): Change the type of argument from
12942 void* to data_reference_p.
12943 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
12944 (new_poly_bb): Change the type of argument from void* to
12945 gimple_poly_bb_p.
12946 (pbb_set_black_box): Same.
12947 (struct scop): Rename context to param_context, ctx to isl_context.
12948 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
12949 Move declarations closer to assignment.
12950 (find_params_in_bb): Same.
12951 (find_scop_parameters): Same.
12952 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
12953 Global to be used for statement IDs.
12954 (isl_id_for_pbb): Use ssa_name_version_typesize.
12955 (simple_copy_phi_p): Move declarations closer to assignment.
12956 (build_pbb_scattering_polyhedrons): Same.
12957 (build_scop_scattering): Same.
12958 (isl_id_for_ssa_name): Same.
12959 (extract_affine_name): Same.
12960 (extract_affine_int): Same.
12961 (extract_affine): Same.
12962 (set_scop_parameter_dim): Use renamed member.
12963 (build_loop_iteration_domains): Same.
12964 (add_param_constraints): Same.
12965 (build_scop_iteration_domain): Same.
12966 (pdr_add_data_dimensions): Same.
12967 (build_poly_dr): Same.
12968 (build_scop_drs): Move declarations closer to assignment.
12969 (analyze_drs_in_stmts): Same.
12970 (insert_out_of_ssa_copy): Same.
12971 (insert_out_of_ssa_copy_on_edge): Same.
12972 (propagate_expr_outside_region): Same.
12973 (rewrite_phi_out_of_ssa): Same.
12974 (rewrite_degenerate_phi): Same.
12975 (rewrite_reductions_out_of_ssa): Same.
12976 (rewrite_cross_bb_scalar_dependence): Same.
12977 (handle_scalar_deps_crossing_scop_limits): Same.
12978 (rewrite_cross_bb_scalar_deps): Same.
12979 * graphite.c (graphite_transform_loops): Use renamed member.
12980
12981 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
12982
12983 PR c/65345
12984 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
12985 create_tmp_var_raw instead of create_tmp_var.
12986
12987 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12988
12989 PR c/65345
12990 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
12991 Use create_tmp_var_raw instead of create_tmp_var.
12992
12993 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
12994
12995 PR target/67849
12996 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
12997 split for upper-bank registers when target does not support
12998 AVX512VL.
12999 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
13000 split when target does not support AVX512VL.
13001
13002 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
13003
13004 PR c/65345
13005 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
13006 Adjust to use create_tmp_var_raw instead of create_tmp_var.
13007
13008 2015-10-06 Nick Clifton <nickc@redhat.com>
13009
13010 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
13011 multiplication.
13012
13013 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
13014
13015 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
13016 (case ${target}): Add znver1.
13017 * config/i386/cpuid.h(bit_CLZERO): Define.
13018 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
13019 -march=native recognize znver1 processors.
13020 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13021 znver1, clzero def_and_undef.
13022 * config/i386/i386.c (struct processor_costs znver1_cost): New.
13023 (m_znver1): New definition.
13024 (m_AMD_MULTIPLE): Includes m_znver1.
13025 (processor_target_table): Add znver1 entry.
13026 (ix86_target_string) : Add clzero entry.
13027 (static const char *const cpu_names): Add znver1 entry.
13028 (ix86_option_override_internal): Add znver1 instruction sets.
13029 (PTA_CLZERO) : New definition.
13030 (ix86_option_override_internal): Handle new clzerooption.
13031 (ix86_issue_rate): Add znver1.
13032 (ix86_adjust_cost): Add znver1.
13033 (ia32_multipass_dfa_lookahead): Add znver1.
13034 (has_dispatch): Add znver1.
13035 * config/i386/i386.h (TARGET_znver1): New definition.
13036 (TARGET_CLZERO): Define.
13037 (TARGET_CLZERO_P): Define.
13038 (struct ix86_size_cost): Add TARGET_ZNVER1.
13039 (enum processor_type): Add PROCESSOR_znver1.
13040 * config/i386/i386.md (define_attr "cpu"): Add znver1.
13041 (set_attr znver1_decode): New definitions for znver1.
13042 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
13043 (mclzero): New.
13044 * config/i386/mmx.md (set_attr znver1_decode): New definitions
13045 for znver1.
13046 * config/i386/sse.md (set_attr znver1_decode): Likewise.
13047 * config/i386/x86-tune.def: Add znver1 tunings.
13048 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
13049 * doc/invoke.texi: Add details about znver1
13050
13051 2015-10-06 Richard Biener <rguenther@suse.de>
13052
13053 PR tree-optimization/67859
13054 * tree-ssa-pre.c (create_expression_by_pieces): Properly
13055 discard not inserted stmts.
13056
13057 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
13058
13059 * doc/extend.texi (Template Instantiation): Reorder options and
13060 de-emphasize -frepo.
13061 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
13062 example instead of -frepo.
13063
13064 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
13065
13066 PR c/65345
13067 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
13068 use create_tmp_var_raw rather than create_tmp_var.
13069
13070 2015-10-06 Richard Biener <rguenther@suse.de>
13071
13072 * tree-vectorizer.h (vec_info): New base class for...
13073 (_loop_vec_info): ... this and ...
13074 (_bb_vec_info): ... this.
13075 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
13076 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
13077 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
13078 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
13079 vect_destroy_datarefs): Adjust interface to take a vec_info *
13080 rather than both a loop_vec_info and a bb_vec_info argument.
13081 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
13082 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
13083 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
13084 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
13085 accordingly.
13086 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
13087 (destroy_loop_vec_info, vect_analyze_loop_2,
13088 vect_is_simple_reduction_1, get_initial_def_for_induction,
13089 vect_create_epilog_for_reduction, vectorizable_reduction,
13090 vectorizable_live_operation, vect_transform_loop): Adjust.
13091 * tree-vect-patterns.c (type_conversion_p,
13092 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
13093 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
13094 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
13095 check_bool_pattern, vect_recog_bool_pattern,
13096 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
13097 * tree-vect-slp.c (vect_get_and_check_slp_defs,
13098 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
13099 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
13100 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
13101 (new_bb_vec_info): Initialize base classs.
13102 * tree-vect-stmts.c (record_stmt_cost, process_use,
13103 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
13104 vectorizable_mask_load_store, vectorizable_call,
13105 vectorizable_simd_clone_call, vectorizable_conversion,
13106 vectorizable_assignment, vectorizable_shift,
13107 vectorizable_operation, vectorizable_store,
13108 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
13109 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
13110 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
13111
13112 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
13113
13114 PR c/65345
13115 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
13116 create_tmp_var_raw rather than create_tmp_var.
13117
13118 2015-10-05 Marek Polacek <polacek@redhat.com>
13119
13120 * tree-ssa-loop-im.c
13121 (move_computations_dom_walker::before_dom_children): Don't set
13122 SSA_NAME_ANTI_RANGE_P.
13123 * tree-ssa-phiopt.c (value_replacement): Likewise.
13124
13125 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13126 Sebastian Pop <s.pop@samsung.com>
13127
13128 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
13129
13130 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13131 Sebastian Pop <s.pop@samsung.com>
13132
13133 * graphite-poly.c (new_gimple_poly_bb): ... here.
13134 (free_data_refs_aux): ... here.
13135 (free_gimple_poly_bb): ... here.
13136 (remove_gbbs_in_scop): ... here.
13137 (new_scop): Call new_sese.
13138 (free_scop): Call remove_gbbs_in_scop and free_sese.
13139 * graphite-poly.h (base_alias_pair): ... here.
13140 (new_gimple_poly_bb): Declare.
13141 (free_gimple_poly_bb): Declare.
13142 * graphite-scop-detection.c (parameter_index_in_region_1):
13143 (parameter_index_in_region): ... here.
13144 (scan_tree_for_params): ... here.
13145 (find_params_in_bb): ... here.
13146 (find_scop_parameters): ... here.
13147 (build_scops): Call find_scop_parameters.
13148 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
13149 (free_scops): Move...
13150 (single_pred_cond_non_loop_exit): Move...
13151 (sese_dom_walker::before_dom_children): Move...
13152 (sese_dom_walker::after_dom_children): Move...
13153 (build_poly_scop): Move...
13154 * graphite-sese-to-poly.h (base_alias_pair): Move...
13155 * graphite.c (free_scops): ... here.
13156
13157 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13158 Sebastian Pop <s.pop@samsung.com>
13159
13160 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
13161 (trivially_empty_bb_p): Move...
13162 (same_close_phi_node): Move...
13163 (new_gimple_poly_bb): Move...
13164 (compare_bb_depths): Move...
13165 (graphite_sort_dominated_info): Move...
13166 (remove_duplicate_close_phi): Move...
13167 (make_close_phi_nodes_unique): Move...
13168 (canonicalize_loop_closed_ssa): Move...
13169 (canonicalize_loop_closed_ssa_form): Move...
13170 (loop_ivs_can_be_represented): Move...
13171 (single_pred_cond_non_loop_exit): Move...
13172 (graphite_can_represent_init): Move...
13173 (graphite_can_represent_scev): Move...
13174 (stmt_has_simple_data_refs_p): Move...
13175 (stmt_has_side_effects): Move...
13176 (graphite_can_represent_stmt): Move...
13177 (scop_detection): ... here.
13178 (sese_dom_walker): ... and here.
13179 (build_scops): Call all moved functions.
13180 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
13181 (all_non_dominated_preds_marked_p): Move...
13182 (build_scop_bbs_1): Move...
13183 (build_scop_bbs): Move...
13184 (set_scop_parameter_dim): Move...
13185 (nb_pbbs_in_loops): Move...
13186 (build_poly_scop): Do not call all the moved functions.
13187
13188 2015-10-05 Martin Jambor <mjambor@suse.cz>
13189 Jan Hubicka <hubicka@ucw.cz>
13190
13191 * ipa-cp.c (ipcp_alignment_lattice): New type.
13192 (ipcp_param_lattices): Use the above to represent alignment.
13193 (ipcp_alignment_lattice::print): New function.
13194 (print_all_lattices): Use it to print alignment information.
13195 (ipcp_alignment_lattice::top_p): New function.
13196 (ipcp_alignment_lattice::bottom_p): Likewise.
13197 (ipcp_alignment_lattice::set_to_bottom): Likewise.
13198 (ipcp_alignment_lattice::meet_with_1): Likewise.
13199 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
13200 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
13201 (initialize_node_lattices): Likewise.
13202 (propagate_alignment_accross_jump_function): Work with the new class
13203 for alignment lattices.
13204 (propagate_constants_accross_call): Pass only the alignment lattice to
13205 propagate_alignment_accross_jump_function.
13206 (ipcp_store_alignment_results): Work with the new class for alignment
13207 lattices.
13208
13209 2015-10-05 Marek Polacek <polacek@redhat.com>
13210
13211 PR tree-optimization/67821
13212 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
13213
13214 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
13215
13216 PR other/65021
13217 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
13218 function to...
13219 (mkoffload_cleanup): ... this. Adjust all users.
13220 (maybe_unlink): Look at save_temps and verbose flags instead of
13221 debug flag.
13222 (main): Parse "-save-temps" flag.
13223 (generate_target_descr_file, generate_target_offloadend_file)
13224 (generate_host_descr_file, prepare_target_image): Pass it on.
13225 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
13226 (mkoffload_cleanup): New function.
13227 (maybe_unlink): Look at save_temps and verbose flags instead of
13228 debug flag.
13229 (main): Instead of calling utils_cleanup, register atexit handler
13230 for mkoffload_cleanup.
13231 (main): Parse "-save-temps" flag.
13232 (compile_native, main): Pass it on.
13233 * lto-wrapper.c (compile_offload_image): Likewise.
13234
13235 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13236
13237 * gimple.h (gimple_op_ptr): Require a non const gimple *.
13238 (gimple_assign_lhs_ptr): Likewise.
13239 (gimple_assign_rhs1_ptr): Likewise.
13240 (gimple_assign_rhs2_ptr): Likewise.
13241 (gimple_assign_rhs3_ptr): Likewise.
13242 (gimple_call_lhs_ptr): Likewise.
13243 (gimple_call_fn_ptr): Likewise.
13244 (gimple_call_chain_ptr): Likewise.
13245 (gimple_call_arg_ptr): Likewise.
13246 (gimple_cond_lhs_ptr): Likewise.
13247 (gimple_cond_rhs_ptr): Likewise.
13248 (gimple_switch_index_ptr): Likewise.
13249 (gimple_return_retval_ptr): Likewise.
13250
13251 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13252
13253 * gimple.h (gimple_asm_input_op_ptr): Remove.
13254 (gimple_asm_output_op_ptr): Likewise.
13255
13256 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13257
13258 * gimple.h (gimple_location_ptr): Remove.
13259 * tree-vrp.c (check_all_array_refs): Adjust.
13260
13261 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13262
13263 * tree-ssa-operands.c (build_uses): store tree * instead of
13264 tree.
13265 (finalize_ssa_uses): Adjust.
13266 (append_use): Likewise.
13267 (verify_ssa_operands): Likewise.
13268
13269 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13270
13271 * real.h (build_real_truncate): Declare.
13272 * tree.c (build_real_truncate): New function.
13273 (strip_float_extensions): Use it.
13274 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
13275 (fold_builtin_hypot, fold_builtin_pow): Likewise.
13276 * match.pd: Likewise.
13277
13278 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
13279 Jiong Wang <jiong.wang@arm.com>
13280
13281 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
13282
13283 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13284
13285 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
13286 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
13287 (aarch64_print_operand, aarch64_float_const_representable_p)
13288 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
13289 instead of REAL_VALUE_FROM_CONST_DOUBLE.
13290 * config/arc/arc.c (arc_print_operand): Likewise.
13291 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
13292 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
13293 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
13294 Likewise.
13295 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
13296 (consttable_16): Likewise.
13297 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
13298 * config/avr/avr.c (avr_print_operand): Likewise.
13299 * config/bfin/bfin.md: Likewise (in a define_split).
13300 * config/c6x/c6x.md: Likewise (in a define_split).
13301 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
13302 (cr16_print_operand): Likewise.
13303 * config/cris/cris.c (cris_print_operand): Likewise.
13304 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
13305 * config/fr30/fr30.c (fr30_print_operand): Likewise.
13306 (fr30_const_double_is_zero): Likewise.
13307 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
13308 * config/frv/frv.md: Likewise (in a define_split).
13309 * config/frv/predicates.md (int_2word_operand): Likewise.
13310 * config/h8300/h8300.c (h8300_print_operand): Likewise.
13311 * config/i386/i386.c (standard_80387_constant_p): Likewise.
13312 (ix86_print_operand, ix86_split_to_parts): Likewise.
13313 * config/i386/i386.md: Likewise (in a define_split).
13314 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
13315 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
13316 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
13317 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
13318 (print_operand): Likewise.
13319 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
13320 * config/mep/mep.md: Likewise (in define_split).
13321 * config/microblaze/microblaze.c (microblaze_const_double_ok)
13322 (print_operand): Likewise.
13323 * config/mips/mips.md (consttable_float): Likewise.
13324 * config/mmix/mmix.c (mmix_intval): Likewise.
13325 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
13326 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
13327 * config/pa/pa.c (pa_singlemove_string): Likewise.
13328 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
13329 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
13330 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
13331 (output_toc): Likewise.
13332 * config/rs6000/rs6000.md: Likewise (in define_splits).
13333 * config/rx/rx.c (rx_print_operand): Likewise.
13334 * config/s390/s390.c (s390_output_pool_entry): Likewise.
13335 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
13336 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
13337 (and also in define_splits).
13338 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
13339 (fp_high_losum_p): Likewise.
13340 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
13341 (*movsf_high): Likewise.
13342 * config/spu/spu.c (const_double_to_hwint): Likewise.
13343 * config/v850/v850.c (const_double_split): Likewise.
13344 * config/vax/vax.c (vax_float_literal): Likewise.
13345 * config/visium/visium.c (visium_expand_copysign): Likewise.
13346 * config/visium/visium.md: Likewise (in define_split).
13347 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
13348 * config/xtensa/xtensa.c (print_operand): Likewise.
13349 (xtensa_output_literal): Likewise.
13350 * cprop.c (implicit_set_cond_p): Likewise.
13351 * dwarf2out.c (insert_float): Likewise.
13352 * expmed.c (expand_mult, make_tree): Likewise.
13353 * expr.c (compress_float_constant): Likewise.
13354 * rtlanal.c (split_double): Likewise.
13355 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
13356 (simplify_const_unary_operation, simplify_binary_operation_1)
13357 (simplify_const_binary_operation): Likewise.
13358 (simplify_const_relational_operation): Likewise.
13359 * varasm.c (output_constant_pool_2): Likewise.
13360
13361 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13362
13363 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
13364 instead of CONST_DOUBLE_FROM_REAL_VALUE.
13365 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
13366 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
13367 instead of CONST_DOUBLE_FROM_REAL_VALUE.
13368 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
13369 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
13370 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
13371 (ix86_emit_swsqrtsf): Likewise.
13372 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
13373 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
13374 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
13375 * config/pa/pa.c (pa_expand_builtin): Likewise.
13376 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
13377 (rs6000_scale_v2df): Likewise.
13378 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
13379 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
13380 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
13381 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
13382 (vec_ctul): Likewise.
13383 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
13384 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
13385 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
13386 * cse.c (fold_rtx): Likewise.
13387 * emit-rtl.c (immed_double_const): Likewise (in comments).
13388 (init_emit_once): Likewise.
13389 * expr.c (compress_float_constant, expand_expr_real_1)
13390 (const_vector_from_tree): Likewise.
13391 * optabs.c (expand_float, expand_fix): Likewise.
13392 * reg-stack.c (reg_to_stack): Likewise.
13393 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
13394 (simplify_const_unary_operation, simplify_binary_operation_1)
13395 (simplify_const_binary_operation, simplify_relational_operation)
13396 (simplify_immed_subreg): Likewise.
13397
13398 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13399
13400 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
13401 * doc/tm.texi: Regenerate.
13402 * real.h (REAL_ARITHMETIC): Delete.
13403 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
13404 (ix86_expand_round_sse4): Use real_arithmetic instead of
13405 REAL_ARITHMETIC.
13406 * config/i386/sse.md (round<mode>2): Likewise.
13407 * rtl.h (rtx_to_tree_code): Likewise (in comment).
13408 * explow.c (rtx_to_tree_code): Likewise (in comment).
13409 * match.pd: Likewise.
13410 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13411 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
13412 (expand_pow_as_sqrts): Likewise.
13413 * tree-pretty-print.c (dump_generic_node): Remove code that
13414 was conditional on REAL_ARITHMETIC being undefined.
13415
13416 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13417
13418 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
13419 * doc/tm.texi: Regenerate.
13420 * real.h (real_less): Declare.
13421 (REAL_VALUES_LESS): Delete.
13422 * real.c (real_less): New function.
13423 (real_compare): Use it.
13424 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
13425 of REAL_VALUES_LESS.
13426 * config/microblaze/microblaze.c (microblaze_const_double_ok):
13427 Likewise.
13428 * fold-const.c (fold_convert_const_int_from_real): Likewise.
13429 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
13430 (simplify_const_relational_operation): Likewise.
13431 * tree-call-cdce.c (check_pow): Likewise.
13432 (gen_conditions_for_pow_cst_base): Likewise.
13433
13434 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13435
13436 * real.h (REAL_VALUES_IDENTICAL): Delete.
13437 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
13438 instead of REAL_VALUES_IDENTICAL.
13439 * fold-const.c (operand_equal_p): Likewise.
13440 * ipa-icf.c (sem_variable::equals): Likewise.
13441 * tree-complex.c (some_nonzerop): Likewise.
13442 (expand_complex_multiplication): Likewise.
13443 * tree.c (simple_cst_equal): Likewise.
13444 * varasm.c (compare_constant): Likewise.
13445
13446 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13447
13448 * real.h (real_equal): Declare.
13449 (REAL_VALUES_EQUAL): Delete.
13450 * real.c (real_equal): New function.
13451 (real_compare): Use it.
13452 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
13453 * doc/tm.texi: Regenerate.
13454 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
13455 real_equal instead of REAL_VALUES_EQUAL.
13456 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
13457 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
13458 (fp_const_from_val): Likewise.
13459 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
13460 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
13461 (floating_exact_log2): Likewise.
13462 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
13463 * config/vax/vax.c (vax_float_literal): Likewise.
13464 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
13465 * cprop.c (implicit_set_cond_p): Likewise.
13466 * expmed.c (expand_mult): Likewise.
13467 * fold-const.c (const_binop): Likewise.
13468 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13469 (simplify_const_binary_operation): Likewise.
13470 (simplify_const_relational_operation): Likewise.
13471 * tree-call-cdce.c (check_pow): Likewise.
13472 (gen_conditions_for_pow_cst_base): Likewise.
13473 * tree-inline.c (estimate_num_insns): Likewise.
13474 * tree-ssa-dom.c (record_equality): Likewise.
13475 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
13476 (gimple_expand_builtin_pow): Likewise.
13477 (pass_optimize_widening_mul::execute): Likewise.
13478 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
13479 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
13480 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
13481
13482 2015-10-05 Richard Biener <rguenther@suse.de>
13483
13484 PR ipa/67783
13485 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
13486 consider loop header PHI defs as IVs.
13487
13488 2015-10-05 Richard Biener <rguenther@suse.de>
13489
13490 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
13491 call handling ...
13492 (create_expression_by_pieces): ... here and build GIMPLE
13493 calls directly. Use gimple_build API and avoid force_gimple_operand.
13494 (insert_into_preds_of_block): Simplify.
13495 (do_regular_insertion): Add comment.
13496
13497 2015-10-04 Jason Merrill <jason@redhat.com>
13498
13499 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
13500
13501 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
13502
13503 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
13504 check for general register.
13505 (ix86_emit_save_regs): Ditto.
13506 (ix86_emit_save_regs_using_mov): Ditto.
13507 (ix86_emit_restore_regs_using_pop): Ditto.
13508 (ix86_emit_restore_regs_using_mov): Ditto.
13509
13510 2015-10-03 Marek Polacek <polacek@redhat.com>
13511
13512 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
13513 (insn-dfatab.o): Likewise.
13514
13515 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
13516
13517 * config.gcc (xtensa*-*-uclinux*): New configuration.
13518 * config/xtensa/uclinux.h: New file.
13519 * config/xtensa/uclinux.opt: New file.
13520
13521 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
13522
13523 * doc/cpp.texi (Standard Predefined Macros): Document value of
13524 __cplusplus for C++14.
13525
13526 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
13527
13528 * gcc.c (process_command): Use spec_machine rather than
13529 spec_host_machine to build tooldir_prefix2.
13530
13531 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
13532 Bernd Schmidt <bernds@codesourcery.com>
13533
13534 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
13535 (Token, Stmt): Remove structs.
13536 (decls, vars, fns): Remove variables.
13537 (alloc_comment, append_stmt, is_keyword): Remove macros.
13538 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
13539 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
13540 (parse_init, parse_file): Remove functions.
13541 (read_file): Accept a pointer to a length and store into it.
13542 (process): Don't try to parse the input file, just write it out as
13543 a string, but looking for maps. Also write out the length.
13544 (main): Don't use "-S" to compile PTX code.
13545
13546 2015-10-02 Jeff Law <law@redhat.com>
13547
13548 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
13549 fixups.
13550
13551 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
13552
13553 PR target/67822
13554 * config/nvptx/mkoffload.c (main): Scan the argument vector for
13555 -fopenmp, and skip generating an offloading image if specified.
13556
13557 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
13558
13559 * system.h (ROUND_UP): New macro definition.
13560 (ROUND_DOWN): Ditto.
13561 * ggc-page.c (ROUND_UP): Remove local macro definition.
13562 (PAGE_ALIGN): Implement using ROUND_UP macro.
13563
13564 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
13565 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
13566 to align values.
13567 (ix86_compute_frame_layout): Ditto.
13568 (ix86_expand_prologue): Ditto.
13569 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
13570 to round down values.
13571 (expand_set_or_movmem_via_rep): Ditto.
13572
13573 2015-10-02 Marek Polacek <polacek@redhat.com>
13574
13575 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
13576
13577 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
13578
13579 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
13580 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
13581 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
13582 (free_gimple_bb): Renamed free_gimple_poly_bb.
13583 (try_generate_gimple_bb): Hoist loop invariant code.
13584 (analyze_drs_in_stmts): Same.
13585 (build_scop_drs): Call renamed functions.
13586 (new_pbb_from_pbb): Same.
13587 (scop_ivs_can_be_represented): Delete as functionality now moved to
13588 graphite-scop-detection.c
13589 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
13590
13591 2015-10-02 Aditya Kumar <hiraditya@msn.com>
13592
13593 * graphite-scop-detection.c (stmt_has_side_effects): New function
13594 outlined from stmt_simple_for_scop_p.
13595 (graphite_can_represent_stmt): Same.
13596 (stmt_simple_for_scop_p): Moved code out of this function for better
13597 readability.
13598
13599 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
13600
13601 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
13602 F_AVX512IFMA.
13603 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
13604
13605 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13606
13607 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
13608
13609 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
13610
13611 PR rtl-optimization/67756
13612 * lra-constraints.c (match_reload): Add a new parameter. Use it
13613 for creating a pseudo with the same value.
13614 (curr_insn_transform): Pass a new argument to match_reload.
13615
13616 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
13617
13618 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
13619 (expand_vec_perm_even_odd_1): Handle V64QImode.
13620 (ix86_expand_vec_perm_const_1): Try expansion with
13621 expand_vec_perm_even_odd_trunc as well.
13622 * config/i386/sse.md (VI124_AVX512F): Rename to ...
13623 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
13624 to V54QI.
13625 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
13626 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
13627 to V32HI and V16SI.
13628 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
13629 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
13630 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
13631 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
13632 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
13633 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
13634
13635 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
13636
13637 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
13638 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
13639
13640 2015-10-02 Jason Merrill <jason@redhat.com>
13641
13642 PR c/59218
13643 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
13644 (diagnose_tm_1_op): Also diagnose volatile accesses in
13645 transaction_safe function.
13646
13647 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
13648
13649 * system.h (malloc.h): Don't include obsolete header.
13650
13651 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13652
13653 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
13654 (TLS_SECTION_ASM_FLAG): Delete.
13655
13656 2015-10-02 Marek Polacek <polacek@redhat.com>
13657
13658 PR c/64249
13659 * doc/invoke.texi: Document -Wduplicated-cond.
13660 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
13661 (insn-dfatab.o): Likewise.
13662 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
13663 warning.
13664
13665 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
13666
13667 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
13668 sequences.
13669
13670 2015-10-02 Renlin Li <renlin.li@arm.com>
13671
13672 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
13673
13674 2015-10-02 Renlin Li <renlin.li@arm.com>
13675
13676 PR target/66776
13677 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
13678
13679 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13680
13681 PR rtl-optimization/67786
13682 PR rtl-optimization/67787
13683 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
13684 it modifies a reg used in the condition calculation.
13685
13686 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
13687
13688 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
13689 alternatives for reads from memory and moves from general-purpose
13690 registers.
13691 (*aarch64_combinez_be<mode>): Likewise.
13692
13693 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
13694
13695 PR target/51726
13696 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
13697 selectany within this function without need to keep attribute.
13698 (i386_pe_encode_section_info): Remove selectany-code.
13699
13700 2015-10-02 Richard Biener <rguenther@suse.de>
13701
13702 * tree-ssa-sccvn.c (has_VN_INFO): New function.
13703 (free_scc_vn): Use it.
13704 (visit_use): Remove dead code and refactor to use gassign
13705 and use less indentation.
13706
13707 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
13708
13709 PR target/67788
13710 PR target/67789
13711 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
13712 (rs6000_cannot_copy_insn_p): New function.
13713 * config/rs6000/rs6000.md (cannot_copy): New attribute.
13714 (load_toc_v4_PIC_1_normal): Set cannot_copy.
13715 (load_toc_v4_PIC_1_476): Ditto.
13716
13717 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
13718
13719 * graphite-scop-detection.c (struct sese_l): New conversion constructor
13720 so that this type can be pushed into a vec.
13721 (class scop_builder): use sese_l to collect scops.
13722 (get_scops): New getter function.
13723 (remove_intersecting_scops): Use sese_l instead of scops_p.
13724 (intersects): Same.
13725 (add_scop): Same.
13726 (subsumes): Same.
13727 (remove_subscops): Same.
13728 (build_scops): Add scops to vec<scops_p> once all the scops have been
13729 detected.
13730
13731 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
13732
13733 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
13734 Renamed type from gimple_bb_p to gimple_poly_bb_p.
13735 (translate_isl_ast_node_user): Same.
13736 * graphite-poly.c (new_poly_bb): Same.
13737 * graphite-poly.h (gbb_from_bb): Same.
13738 * sese.h: Same.
13739 * graphite-sese-to-poly.c (new_gimple_bb):
13740 gimple_bb_p -> gimple_poly_bb_p
13741 (build_scop_scattering): Same.
13742 (find_params_in_bb): Same.
13743 (add_conditions_to_domain): Same.
13744 (sese_dom_walker::before_dom_children): Same.
13745 (analyze_drs_in_stmts): Same.
13746 (new_pbb_from_pbb): Same.
13747 (free_data_refs_aux): New pointer to type base_alias_pair.
13748 * graphite-sese-to-poly.h: Same.
13749 * sese.c (if_region_set_false_region): Fixed Indentation.
13750 (move_sese_in_condition): Same.
13751
13752 2015-10-01 Sebastian Pop <s.pop@samsung.com>
13753 Aditya Kumar <aditya.k7@samsung.com>
13754
13755 PR tree-optimization/66980
13756 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
13757 when data reference analysis has failed.
13758
13759 2015-10-01 Sebastian Pop <s.pop@samsung.com>
13760 Aditya Kumar <aditya.k7@samsung.com>
13761
13762 PR tree-optimization/67754
13763 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
13764 scev analysis on the same loop nest as analyze_drs_in_stmts.
13765 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
13766 renamed...
13767 (try_generate_gimple_bb): Call outermost_loop_in_sese.
13768 (analyze_drs_in_stmts): Same.
13769 * sese.c (outermost_loop_in_sese): ...here.
13770
13771 2015-10-01 Sebastian Pop <s.pop@samsung.com>
13772 Aditya Kumar <aditya.k7@samsung.com>
13773
13774 PR tree-optimization/67754
13775 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
13776 recursion on the inner loops.
13777
13778 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13779
13780 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
13781 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
13782 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
13783 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
13784 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
13785
13786 2015-10-01 Marek Polacek <polacek@redhat.com>
13787
13788 PR c/65345
13789 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
13790 create_tmp_var_raw rather than create_tmp_var.
13791
13792 2015-10-01 Marek Polacek <polacek@redhat.com>
13793
13794 PR tree-optimization/67769
13795 * tree-ssa-phiopt.c (conditional_replacement): Call
13796 reset_flow_sensitive_info_in_bb.
13797 (minmax_replacement): Likewise.
13798 (abs_replacement): Likewise.
13799
13800 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
13801
13802 * builtins.c: Don't include gomp-constants.h.
13803 (fold_builtin_1): Don't fold acc_on_device here.
13804 * gimple-fold.c: Include gomp-constants.h.
13805 (gimple_fold_builtin_acc_on_device): New.
13806 (gimple_fold_builtin): Call it.
13807
13808 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
13809
13810 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
13811 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
13812
13813 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
13814
13815 * config/arm/aarch-common-protos.h
13816 (aarch_accumulator_forwarding): New.
13817 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
13818 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
13819 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
13820 * config/arm/cortex-a53.md: Rewrite.
13821
13822 2015-10-01 Richard Biener <rguenther@suse.de>
13823
13824 * gimple-match.h (mprts_hook): Declare.
13825 * gimple-match.head.c (mprts_hook): Define.
13826 (maybe_push_res_to_seq): Use new hook.
13827 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
13828 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
13829 (vn_ssa_aux::has_constants): Remove.
13830 * tree-ssa-sccvn.c: Include gimple-match.h.
13831 (VN_INFO_GET): Assert we don't re-use SSA names.
13832 (vn_get_expr_for): Remove.
13833 (expr_has_constants): Likewise.
13834 (stmt_has_constants): Likewise.
13835 (simplify_binary_expression): Likewise.
13836 (simplify_unary_expression): Likewise.
13837 (vn_lookup_simplify_result): New hook.
13838 (visit_copy): Adjust.
13839 (visit_reference_op_call): Likewise.
13840 (visit_phi): Likewise.
13841 (visit_use): Likewise.
13842 (process_scc): Likewise.
13843 (init_scc_vn): Likewise.
13844 (visit_reference_op_load): Likewise. Use match-and-simplify and
13845 a gimple seq for inserted expressions.
13846 (try_to_simplify): Remove GENERIC stmt combining code.
13847 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
13848 * tree-ssa-pre.c (eliminate_insert): Adjust.
13849 (eliminate_dom_walker::before_dom_children): Likewise.
13850
13851 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
13852
13853 * doc/invoke.texi (Optimization Options): Add
13854 -freorder-blocks-algorithm=.
13855 (Optimize Options) <-O>: Add -freorder-blocks.
13856 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
13857 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
13858 <-freorder-blocks>: Also enabled at levels -O and -Os.
13859 <-freorder-blocks-algorithm=>: Document new option.
13860
13861 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
13862
13863 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
13864 with flag_reorder_blocks_algorithm.
13865 * common.opt (freorder-blocks-algorithm=): New flag.
13866 (reorder_blocks_algorithm): New enum.
13867 * flag-types.h (reorder_blocks_algorithm): New enum.
13868 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
13869 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
13870
13871 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
13872
13873 * bb-reorder.c: Add intro comment.
13874 (reorder_basic_blocks_software_trace_cache): Print a header to
13875 the dump file.
13876 (edge_order): New function.
13877 (reorder_basic_blocks_simple): New function.
13878 (reorder_basic_blocks): Choose between the STC and the simple
13879 algorithms (always choose the former).
13880
13881 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
13882
13883 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
13884 function, factored out from ...
13885 (reorder_basic_blocks): ... here.
13886
13887 2015-10-01 Tom de Vries <tom@codesourcery.com>
13888
13889 * tree-cfg.c (dump_function_to_file): Dump function attributes using
13890 __attribute__(()) string. Move dumping of function attributes to before
13891 function name.
13892
13893 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
13894
13895 PR target/66870
13896 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
13897 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
13898 based on gold linker version.
13899 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
13900 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
13901 * configure, config.in: Regenerate.
13902
13903 2015-10-01 Alan Modra <amodra@gmail.com>
13904
13905 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
13906 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
13907 (rs6000_output_mi_thunk): Likewise.
13908
13909 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
13910
13911 * config/nvptx/mkoffload.c (process): Change offload data format.
13912
13913 2015-09-30 Jeff Law <law@redhat.com>
13914
13915 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
13916 with constant conditions.
13917 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
13918 (remove_ctrl_stmt_and_useless_edges): No longer static.
13919 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
13920 (remove_ctrl_stmt_and_useless_edges): Likewise.
13921
13922 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
13923 Cesar Philippidis <cesar@codesourcery.com>
13924
13925 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
13926 (TARGET_GOACC_VALIDATE_DIMS): Override.
13927 * target.def (TARGET_GOACC): New target hook prefix.
13928 (validate_dims): New hook.
13929 * targhooks.h (default_goacc_validate_dims): New.
13930 * omp-low.c (oacc_validate_dims): New.
13931 (execute_oacc_device_lower): New.
13932 (default_goacc_validate_dims): New.
13933 (pass_data_oacc_device_lower): New.
13934 (pass_oacc_device_lower): New pass.
13935 (make_pass_oacc_device_lower): New.
13936 * tree-pass.h (make_pass_oacc_device_lower): Declare.
13937 * passes.def (pass_oacc_device_lower): Add it.
13938 * doc/tm.texi: Rebuilt.
13939 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
13940 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
13941
13942 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
13943
13944 PR rtl-optimization/67037
13945 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
13946
13947 2015-09-30 Bernd Schmidt <bernds@redhat.com>
13948
13949 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
13950 * passes.c: Include tree-ssanames.h.
13951 (execute_function_todo): Flush the pending free SSA_NAMEs after
13952 eliminating unreachable basic blocks.
13953 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
13954 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
13955 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
13956 (flush_ssanames_freelist): New function.
13957 (release_ssaname_fn): Put released names on the queue.
13958 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
13959 * tree-ssanames.h (flush_ssanames_freelist): Declare.
13960
13961 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
13962
13963 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
13964 (generate_target_descr_file, generate_target_offloadend_file)
13965 (generate_host_descr_file, prepare_target_image): Pass it on.
13966 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
13967 (compile_native, main): Pass it on.
13968 * lto-wrapper.c (compile_offload_image): Likewise.
13969
13970 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
13971 Ilya Verbin <ilya.verbin@intel.com>
13972 Andrey Turetskiy <andrey.turetskiy@intel.com>
13973
13974 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
13975 (prepare_target_image, main): Refactor argv building to use
13976 obstacks.
13977
13978 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13979
13980 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
13981 * config/spu/spu.c (spu_expand_atomic_op): New function.
13982 * config/spu/spu.md (AINT): New mode iterator.
13983 (ATOMIC): New code iterator.
13984 (atomic_name, atomic_pred): New code predicates.
13985 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
13986 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
13987 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
13988 "atomic_<atomic_name>_fetch<mode>"): Likewise.
13989
13990 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
13991
13992 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
13993 debug insns.
13994 (scalar_chain::convert_reg): Likewise.
13995
13996 2015-09-30 Richard Biener <rguenther@suse.de>
13997
13998 * builtins.c: Add comment that no new simplifications should
13999 be added here.
14000
14001 2015-09-30 Marek Polacek <polacek@redhat.com>
14002
14003 PR tree-optimization/67690
14004 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
14005 reset_flow_sensitive_info_in_bb.
14006 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
14007 * tree-ssanames.c: Include "gimple-iterator.h".
14008 (reset_flow_sensitive_info_in_bb): New function.
14009 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
14010
14011 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14012
14013 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
14014 variable, replacing it with...
14015 (offload_abi): ... this new variable. Adjust all users.
14016 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
14017
14018 2015-09-30 Matthias Klose <doko@ubuntu.com>
14019
14020 * configure.ac: Remove extraneous ;;.
14021 * configure: Regenerate.
14022
14023 2015-09-29 James Bowman <james.bowman@ftdichip.com>
14024
14025 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
14026 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
14027 predicate, disallow register for operand 2.
14028
14029 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
14030
14031 * graphite-dependences.c (scop_get_dependences): Moved in down
14032 in order to be visible to its caller.
14033 * graphite-poly.h: Removed compute_deps, and extend_schedule.
14034
14035 2015-09-29 Sebastian Pop <s.pop@samsung.com>
14036 Aditya Kumar <aditya.k7@samsung.com>
14037
14038 PR tree-optimization/67754
14039 * graphite-optimize-isl.c (optimize_isl): Call
14040 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
14041
14042 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14043
14044 * builtins.c (expand_builtin_acc_on_device): Delete.
14045 (expand_builtin): Don't call it.
14046 (fold_builtin_1): Fold acc_on_device.
14047
14048 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
14049
14050 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
14051 (ix86_nsaved_sseregs): Likewise.
14052
14053 2015-09-29 Jeff Law <law@redhat.com>
14054
14055 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
14056 computation of unused value.
14057
14058 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
14059 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
14060 inline macro expansion.
14061
14062 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
14063
14064 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
14065 (gen_shl_sext): Likewise.
14066 * config/sh/sh.md (divsi3): Likewise.
14067 (imm->ext_dest_operand splitter): Likewise.
14068
14069 2015-09-29 Sebastian Pop <s.pop@samsung.com>
14070 Aditya Kumar <aditya.k7@samsung.com>
14071
14072 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
14073 (nb_data_writes_in_bb): Remove.
14074 (split_pbb): Remove.
14075 (split_reduction_stmt): Remove.
14076 (is_reduction_operation_p): Remove.
14077 (phi_contains_arg): Remove.
14078 (follow_ssa_with_commutative_ops): Remove.
14079 (detect_commutative_reduction_arg): Remove.
14080 (detect_commutative_reduction_assign): Remove.
14081 (follow_inital_value_to_phi): Remove.
14082 (edge_initial_value_for_loop_phi): Remove.
14083 (initial_value_for_loop_phi): Remove.
14084 (used_outside_reduction): Remove.
14085 (detect_commutative_reduction): Remove.
14086 (translate_scalar_reduction_to_array_for_stmt): Remove.
14087 (remove_phi): Remove.
14088 (dr_indices_valid_in_loop): Remove.
14089 (close_phi_written_to_memory): Remove.
14090 (translate_scalar_reduction_to_array): Remove.
14091 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
14092 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
14093 (rewrite_commutative_reductions_out_of_ssa): Remove.
14094 (build_poly_scop): Remove call to
14095 rewrite_commutative_reductions_out_of_ssa.
14096
14097 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
14098
14099 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
14100 Add new insn types for vector load and store pairs.
14101 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
14102 types "neon_ldp{,_q}".
14103 * config/arm/cortex-a57.md (neon_load_c): Add insn types
14104 "neon_ldp{,_q}".
14105 (neon_store_complex): Add insn types "neon_stp{,_q}".
14106 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
14107 "neon_{ldp,stp}_q".
14108
14109 2015-09-29 Jeff Law <law@redhat.com>
14110
14111 * config/rx/constraints.md (Int08): Fix undefined left shift
14112 behaviour.
14113 (Sint08, Sint16, Sint24): Likewise.
14114 * config/rx/rx.c (rx_get_stack_layout): Likewise.
14115
14116 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
14117 behaviour.
14118
14119 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
14120 left shift behaviour.
14121 * config/msp430/constraints.md ('L' constraint): Similarly.
14122 ('Ys' constraint): Similarly.
14123
14124 2015-09-29 Richard Biener <rguenther@suse.de>
14125
14126 PR tree-optimization/67170
14127 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
14128 the translate function pointer parameter to get the
14129 bool whether to disambiguate only by reference.
14130 (walk_non_aliased_vuses): Likewise.
14131 * tree-ssa-alias.c (maybe_skip_until): Adjust.
14132 (get_continuation_for_phi_1): Likewise.
14133 (get_continuation_for_phi): Likewise.
14134 (walk_non_aliased_vuses): Likewise.
14135 * tree-ssa-sccvn.c (const_parms): New bitmap.
14136 (vn_reference_lookup_3): Adjust for interface change.
14137 Disambiguate parameters pointing to readonly memory.
14138 (free_scc_vn): Free const_parms.
14139 (run_scc_vn): Initialize const_parms from a fn spec attribute.
14140
14141 2015-09-29 Richard Biener <rguenther@suse.de>
14142
14143 PR tree-optimization/67741
14144 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
14145 builtin calls with correct signature.
14146
14147 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
14148
14149 PR target/65105
14150 * config/i386/i386.c: Include dbgcnt.h.
14151 (has_non_address_hard_reg): New.
14152 (convertible_comparison_p): New.
14153 (scalar_to_vector_candidate_p): New.
14154 (remove_non_convertible_regs): New.
14155 (scalar_chain): New.
14156 (scalar_chain::scalar_chain): New.
14157 (scalar_chain::~scalar_chain): New.
14158 (scalar_chain::add_to_queue): New.
14159 (scalar_chain::mark_dual_mode_def): New.
14160 (scalar_chain::analyze_register_chain): New.
14161 (scalar_chain::add_insn): New.
14162 (scalar_chain::build): New.
14163 (scalar_chain::compute_convert_gain): New.
14164 (scalar_chain::replace_with_subreg): New.
14165 (scalar_chain::replace_with_subreg_in_insn): New.
14166 (scalar_chain::emit_conversion_insns): New.
14167 (scalar_chain::make_vector_copies): New.
14168 (scalar_chain::convert_reg): New.
14169 (scalar_chain::convert_op): New.
14170 (scalar_chain::convert_insn): New.
14171 (scalar_chain::convert): New.
14172 (convert_scalars_to_vector): New.
14173 (pass_data_stv): New.
14174 (pass_stv): New.
14175 (make_pass_stv): New.
14176 (ix86_option_override): Created and register stv pass.
14177 (flag_opts): Add -mstv.
14178 (ix86_option_override_internal): Likewise.
14179 * config/i386/i386.md (SWIM1248x): New.
14180 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
14181 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
14182 (*anddi3_doubleword): New.
14183 (*zext<mode>_doubleword): New.
14184 (*zextsi_doubleword): New.
14185 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
14186 (*<code>di3_doubleword): New.
14187 * config/i386/i386.opt (mstv): New.
14188 * dbgcnt.def (stv_conversion): New.
14189
14190 2015-09-29 Tom de Vries <tom@codesourcery.com>
14191
14192 * tree-cfg.c (dump_function_to_file): Dump function attributes.
14193
14194 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
14195
14196 PR target/67716
14197 * config/sh/sh.c (sh_override_options_after_change): New.
14198 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
14199 (sh_option_override): Move align_loops, align_jumps and
14200 align_functions handling into sh_override_options_after_change.
14201
14202 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
14203
14204 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
14205 (nvptx_record_offload_symbol): Record function execution geometry.
14206 * config/nvptx/mkoffload.c (process): Include launch geometry in
14207 function data.
14208 * omp-low.c (oacc_launch_pack): New.
14209 (replace_oacc_fn_attrib): New.
14210 (set_oacc_fn_attrib): New.
14211 (get_oacc_fn_attrib): New.
14212 (expand_omp_target): Create keyed varargs for GOACC_parallel call
14213 generation.
14214 * omp-low.h (get_oacc_fn_attrib): Declare.
14215 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
14216 (DEF_FUNCTION_TYPE_VAR_11): Delete.
14217 * tree.h (OMP_CLAUSE_EXPR): New.
14218 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
14219
14220 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
14221 Sebastian Pop <s.pop@samsung.com>
14222
14223 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
14224
14225 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
14226 Sebastian Pop <s.pop@samsung.com>
14227
14228 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
14229 * graphite-scop-detection.c (struct sese_l): New type.
14230 (get_entry_bb): API for getting entry bb of SESE.
14231 (get_exit_bb): API for getting exit bb of SESE.
14232 (class debug_printer): New type. Simple printer in debug mode.
14233 (trivially_empty_bb_p): New. Return true when BB is empty or
14234 contains only debug instructions.
14235 (graphite_can_represent_expr): Call scalar_evoution_in_region
14236 instead of analyze_scalar_evolution. Pass in scop instead of only
14237 the scop entry.
14238 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
14239 scop entry.
14240 (stmt_simple_for_scop_p): Same.
14241 (harmful_stmt_in_bb): Same.
14242 (graphite_can_represent_loop): Deleted.
14243 (struct scopdet_info): Deleted.
14244 (scopdet_basic_block_info): Deleted.
14245 (build_scops_1): Deleted.
14246 (bb_in_sd_region): Deleted.
14247 (find_single_entry_edge): Deleted.
14248 (find_single_exit_edge): Deleted.
14249 (create_single_entry_edge): Deleted.
14250 (sd_region_without_exit): Deleted.
14251 (create_single_exit_edge): Deleted.
14252 (unmark_exit_edges): Deleted.
14253 (mark_exit_edges): Deleted.
14254 (create_sese_edges): Deleted.
14255 (build_graphite_scops): Deleted.
14256 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
14257 (build_scops): Use the new scop_builder to build scops.
14258 (dot_all_scops_1): Use the new pretty printer. Print loop father
14259 as well.
14260 (loop_body_is_valid_scop): New. Return true if loop body is a
14261 valid scop.
14262 (class scop_builder): New. Builds SCoPs for polyhedral
14263 optimizations.
14264 (scop_builder): New constructor.
14265 (static sese_l invalid_sese): sese_l with invalid edges.
14266 (get_sese): Get an sese (from a loop) if possible, invalid_sese
14267 otherwise.
14268 (get_nearest_dom_with_single_entry): Get nearest dominator of a
14269 basic_block with single entry. Return NULL if we get to the
14270 beginning of a function.
14271 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
14272 a basic_block with single exit. Return NULL if we get to the
14273 beginning of a function.
14274 (print_sese): Pretty-print SESE.
14275 (merge_sese): Merge two SESEs if possible and return the new SESE.
14276 (build_scop_depth): Start building the SCoP within a loop nest.
14277 (build_scop_breadth): Start building the SCoP at a single loop
14278 depth. Merge adjacent SESEs if valid.
14279 (can_represent_loop_1): Returns true if Graphite can represent
14280 loop inside SCoP. Helper for can_represent_loop.
14281 (can_represent_loop): Returns true if Graphite can represent LOOP
14282 and all its nested loops in SCoP.
14283 (loop_is_valid_scop): Returns true if LOOP and all its nests
14284 constitute a valid SCoP.
14285 (region_has_one_loop): Returns true of a region has only one loop.
14286 (add_scop): Add SCoP to the list of valid scops. Removes an
14287 already existing scop if it intersects with or subsumed by this one.
14288 (harmful_stmt_in_region): Returns true if SCoP has any statment
14289 which cannot be represented by Graphite.
14290 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
14291 (remove_subscops): Remove any SCoP from the list of already found
14292 SCoPs, if subsumed by S1.
14293 (intersects): Return true if region bounded by SCoPs S1 and S2
14294 intersect.
14295 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
14296 * graphite.c (print_graphite_scop_statistics):
14297 (print_graphite_statistics): Print SCoP info while debugging.
14298 (graphite_initialize): Early exit in case number of loops in a
14299 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
14300 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
14301 (graphite_finalize):
14302 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
14303 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
14304 (recompute_all_dominators): Recalculate POST_DOMINATORS.
14305 * tree-cfg.c (print_loops): Print the function name while printing
14306 loops.
14307
14308 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
14309 Sebastian Pop <s.pop@samsung.com>
14310
14311 PR tree-optimization/67700
14312 * graphite-sese-to-poly.c (parameter_index_in_region): Call
14313 invariant_in_sese_p_rec.
14314 (extract_affine): Same.
14315 (rewrite_cross_bb_scalar_deps): Call update_ssa.
14316 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
14317 * sese.h (invariant_in_sese_p_rec): Declare.
14318
14319 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
14320
14321 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
14322
14323 2015-09-28 Jiong Wang <jiong.wang@arm.com>
14324
14325 Revert:
14326 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14327 Jiong Wang <jiong.wang@arm.com>
14328
14329 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
14330 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
14331 (REG_CLASS_NAMES): Likewise.
14332 (REG_CLASS_CONTENTS): Likewise.
14333 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
14334 (aarch64_register_move_cost): Likewise.
14335 (aarch64_load_symref_appropriately): Invoke the new added pattern if
14336 possible.
14337 * config/aarch64/constraints.md (Uc0): New constraint.
14338
14339 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
14340
14341 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
14342
14343 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
14344
14345 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
14346 SECTION_EXCLUDE in XO mapping class.
14347
14348 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
14349
14350 PR target/54236
14351 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
14352 and handle ne and eq codes.
14353 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
14354 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
14355 CONST_INT_P. Use reverse_condition.
14356 (sh_split_treg_set_expr): Likewise.
14357
14358 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
14359
14360 * config/arm/types.md (type): Add rotate_imm.
14361 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
14362 ROR immediate case.
14363 (*rorsi3_insn_uxtw): Likewise.
14364 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
14365 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
14366 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
14367
14368 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14369
14370 PR rtl-optimization/67481
14371 * ifcvt.c (contains_ccmode_rtx_p): New function.
14372 (insn_valid_noce_process_p): Use it.
14373
14374 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14375
14376 PR rtl-optimization/67456
14377 PR rtl-optimization/67464
14378 PR rtl-optimization/67465
14379 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
14380 move in the mode of x. Handle combination of complex and simple
14381 block pairs as well as the case when one is empty.
14382
14383 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14384
14385 * doc/gimple.texi: Update references to gimple_statement_base.
14386 * gdbhooks.py: Likewise.
14387 * gimple.h: Likewise.
14388
14389 2015-09-28 Daniel Cederman <cederman@gaisler.com>
14390
14391 * config/sparc/driver-sparc.c: map LEON to leon3
14392
14393 2015-09-28 Daniel Cederman <cederman@gaisler.com>
14394
14395 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
14396 and make it inverse to change default
14397 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
14398 supervisor mode
14399 * doc/invoke.texi: Document change of default
14400
14401 2015-09-28 Daniel Cederman <cederman@gaisler.com>
14402
14403 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
14404 true on %f0 for a target without FPU.
14405 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
14406 without FPU.
14407 (untyped_return): Do not load %f0 for a target without FPU.
14408
14409 2015-09-28 Andrew Pinski <apinski@cavium.com>
14410
14411 * config/aarch64/aarch64.md (prefetch):
14412 Change the predicate of operand 0 to register_operand.
14413
14414 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
14415
14416 * config/i386/predicates.md (register_sse4nonimm_operand): New
14417 predicate.
14418 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
14419 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
14420 Use register_sse4nonimm_operand as operand 0 predicate.
14421 (*vec_extractv8hi_sse2): Remove insn pattern.
14422 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
14423 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
14424
14425 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
14426 Kaz Kojima <kkojima@gcc.gnu.org>
14427
14428 PR target/67391
14429 * config/sh/sh-protos.h (sh_lra_p): Declare.
14430 * config/sh/sh.c (sh_lra_p): Make non-static.
14431 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
14432 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
14433 Expand into addsi3_scr if operands[2] if needed.
14434 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
14435 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
14436 (addsi3_scr, *addsi3): New insn_and_split patterns.
14437
14438 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
14439
14440 PR rtl-optimization/64164
14441 PR tree-optimization/67312
14442 PR middle-end/67340
14443 PR middle-end/67490
14444 PR bootstrap/67597
14445 * cfgexpand.c (parm_in_stack_slot_p): Remove.
14446 (ssa_default_def_partition): Remove.
14447 (get_rtl_for_parm_ssa_default_def): Remove.
14448 (set_rtl): Check that RTL assignments match expectations.
14449 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
14450 default def location for params and results. Record SSA names
14451 or types in REG and MEM attrs, respectively.
14452 (set_parm_rtl): New.
14453 (expand_one_ssa_partition): Drop logic that assigned MEMs with
14454 unassigned addresses.
14455 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
14456 deferred stack alloc vars.
14457 (expand_used_vars): Skip partitions holding parm default defs.
14458 Move adjust_one_expanded_partition_var loop...
14459 (pass_expand::execute): ... here. Drop redundant assert.
14460 Adjust comments before the final loop over all ssa names.
14461 Require assigned rtl of parms and results to match exactly.
14462 Reset its attributes to match them, not any other variables in
14463 the same partition.
14464 (expand_debug_expr): Use entry value for PARM's default defs
14465 only iff they have zero nondebug uses.
14466 * cfgexpand.h (parm_in_stack_slot_p): Remove.
14467 (get_rtl_for_parm_ssa_default_def): Remove.
14468 (set_parm_rtl): Declare.
14469 * doc/invoke.texi: Improve wording.
14470 * explow.c (promote_decl_mode): Fix promote_function_mode for
14471 result decls not by reference.
14472 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
14473 bypass TYPE_MODE to get the actual vector mode.
14474 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
14475 2015-08-19's changes as follows. Drop include of
14476 basic-block.h and df.h.
14477 (rtl_for_parm): Remove.
14478 (maybe_reset_rtl_for_parm): Remove.
14479 (parm_in_unassigned_mem_p): Remove.
14480 (use_register_for_decl): Add logic for RESULT_DECLs matching
14481 assign_parms' behavior.
14482 (split_complex_args): Revert.
14483 (assign_parms_augmented_arg_list): Revert. Add comment
14484 referencing the logic above.
14485 (assign_parm_adjust_stack_rtl): Revert.
14486 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
14487 of SET_DECL_RTL. Set up a REG if the parm demands so.
14488 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
14489 calls into a single set_parm_rtl. Set up a temporary RTL
14490 temporarily for expand_assignment.
14491 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
14492 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
14493 (assign_bounds): Revert.
14494 (assign_parms): Revert. Use set_parm_rtl.
14495 (allocate_struct_function): Relayout result and parms of
14496 non-abstruct functions.
14497 (expand_function_start): Revert. Use set_parm_rtl. If the
14498 result is not a hard reg, create a pseudo from the promoted
14499 mode of the default def. Promote static chain mode.
14500 * tree-outof-ssa.c (remove_ssa_form): Drop unused
14501 partition_has_default_def. Set up
14502 partitions_for_parm_default_defs.
14503 (finish_out_of_ssa): Remove partition_has_default_def.
14504 Release partitions_for_parm_default_defs.
14505 * tree-outof-ssa.h (struct ssaexpand): Remove
14506 partition_has_default_def. Add
14507 partitions_for_parm_default_defs.
14508 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
14509 stor-layout.h.
14510 (build_ssa_conflict_graph): Fix conflict-detection of default
14511 defs of even unused default defs of params and results.
14512 (for_all_parms): New.
14513 (create_default_def): New.
14514 (register_default_def): New.
14515 (coalesce_with_default): New.
14516 (create_outofssa_var_map): Create default defs for all parms
14517 and results, and register their partitions. Add GIMPLE_RETURN
14518 operands as coalesce candidates with results. Add default
14519 defs of each parm or result as coalesce candidates with its
14520 other defs. Mark each result def, and each default def of
14521 parms, as used_in_copy.
14522 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
14523 with the ssa names, even anonymous ones. Drop
14524 parm_in_stack_slot_p calls. Require same signedness and
14525 alignment.
14526 (coalesce_ssa_name): Add coalesce candidates for all defs of
14527 each parm and result, even unused ones.
14528 (parm_default_def_partition_arg): New type.
14529 (set_parm_default_def_partition): New.
14530 (get_parm_default_def_partitions): New.
14531 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
14532 * tree-ssa-live.c (partition_view_init): Regard unused defs of
14533 parms and results as used.
14534 (verify_live_on_entry): Don't error out just because they're
14535 not live.
14536
14537 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
14538
14539 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
14540 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
14541 (output_fde): Don't output length for debug_frame on AIX.
14542 (output_call_frame_info): Don't output length for debug_frame on AIX.
14543 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
14544 HAVE_XCOFF_DWARF_EXTRAS.
14545 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
14546 HAVE_XCOFF_DWARF_EXTRAS.
14547 (output_compilation_unit_header): Don't output length on AIX.
14548 (output_pubnames): Don't output length on AIX.
14549 (output_aranges): Delete argument. Compute length locally. Don't
14550 output length on AIX.
14551 (output_line_info): Don't output length on AIX.
14552 (dwarf2out_finish): Don't compute aranges_length.
14553 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
14554 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
14555 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
14556 symbol decoration for AIX.
14557 (rs6000_xcoff_debug_unwind_info): New.
14558 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
14559 for SECTION_DEBUG.
14560 (rs6000_xcoff_declare_function_name): Emit different
14561 .function pseudo-op when DWARF2_DEBUG. Don't call
14562 xcoffout_declare_function for DWARF2_DEBUG.
14563 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
14564 Redefine.
14565 * config/rs6000/aix71.h: New.
14566 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
14567 locations support.
14568 * configure: Regenerate.
14569 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
14570 DWARF support.
14571
14572 2015-09-26 Jeff Law <law@redhat.com>
14573
14574 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
14575 behaviour.
14576 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
14577 behaviour.
14578
14579 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
14580 behaviour
14581
14582 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
14583 undefined behaviour.
14584
14585 * config/cris/cris.md (asrandb): Fix left shift undefined
14586 behaviour.
14587 (asrandw): Likewise.
14588
14589 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
14590
14591 PR target/61578
14592 * lra-constarints.c (match_reload): Check presence of the input pseudo
14593 in the output operand.
14594
14595 2015-09-25 Tobias Burnus <burnus@net-b.de>
14596
14597 * doc/invoke.texi (-fsanitize): Minor wording tweak.
14598
14599 2015-09-25 Tobias Burnus <burnus@net-b.de>
14600
14601 * doc/invoke.texi (-fsanitize): Update URLs.
14602
14603 2015-09-25 Teresa Johnson <tejohnson@google.com>
14604
14605 * opts.c (finish_options): Unset -freorder-blocks-and-partition
14606 if not using profile.
14607
14608 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
14609
14610 PR pretty-print/67567
14611 * pretty-print.c (pp_string): Add gcc_checking_assert.
14612 * pretty-print.h (output_buffer_append_r): Likewise.
14613
14614 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
14615
14616 PR target/67675
14617 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
14618 addr2 individually. Don't emit logical or insn if one is known to
14619 be aligned approriately.
14620 (sh_expand_cmpnstr): Likewise.
14621
14622 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
14623
14624 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
14625 __builtin_aarch64_fp[sc]r arguments into a register.
14626
14627 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
14628
14629 * config.gcc (x86_archs): Replace lakemount with lakemont.
14630 (with_cpu): Likewise.
14631 (with_arch): Likewise.
14632 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
14633 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
14634 __tune_lakemount__ with __tune_lakemont__.
14635 * config/i386/i386.c (lakemount_cost): Renamed to ...
14636 (lakemont_cost): This.
14637 (m_LAKEMOUNT): Renamed to ...
14638 (m_LAKEMONT): This.
14639 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
14640 (processor_target_table): Replace "lakemount" with "lakemont".
14641 (processor_alias_table): Likewise.
14642 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
14643 PROCESSOR_LAKEMONT.
14644 (ix86_adjust_cost): Likewise.
14645 (ia32_multipass_dfa_lookahead): Likewise.
14646 * config/i386/i386.h (processor_type): Likewise.
14647 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
14648 * doc/invoke.texi: Replace lakemount with lakemont. Replace
14649 Lakemount with Lakemont.
14650
14651 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
14652
14653 * config.gcc (x86_archs): Replace iamcu with lakemount.
14654 (with_cpu): Likewise.
14655 (with_arch): Likewise.
14656 * doc/invoke.texi: Likewise.
14657 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
14658 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
14659 __tune_iamcu__ with __tune_lakemount__.
14660 * config/i386/i386.c (iamcu_cost): Renamed to ...
14661 (lakemount_cost): This.
14662 (m_IAMCU): Renamed to ...
14663 (m_LAKEMOUNT): This.
14664 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
14665 (processor_target_table): Replace "iamcu" with "lakemount".
14666 (processor_alias_table): Likewise.
14667 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
14668 PROCESSOR_LAKEMOUNT.
14669 (ix86_adjust_cost): Likewise.
14670 (ia32_multipass_dfa_lookahead): Likewise.
14671 * config/i386/i386.h (processor_type): Likewise.
14672 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
14673
14674 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
14675
14676 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
14677 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
14678 Declare.
14679 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
14680 (pa_expand_compare_and_swap_loop): New.
14681 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
14682 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
14683 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
14684 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
14685 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
14686 Revise.
14687
14688 2015-09-24 Michael Collison <michael.collison@linaro.org>
14689
14690 PR other/57195
14691 * read-md.c (read_name): Allow mode iterators inside angle
14692 brackets in rtl expressions.
14693
14694 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
14695
14696 PR target/61578
14697 * ira-color.c (update_allocno_cost): Add parameter.
14698 (update_costs_from_allocno): Decrease conflict cost. Pass the new
14699 parameter.
14700
14701 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
14702
14703 PR driver/67640
14704 * opts-common.c (prune_options): Discard all -fdiagnostics-color
14705 but the last one, which is moved to the front to be processed
14706 first.
14707 * opts.c (enable_warning_as_error): Reject options that do not
14708 control warnings.
14709
14710 2015-09-24 Jiong Wang <jiong.wang@arm.com>
14711
14712 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
14713
14714 2015-09-24 Jiong Wang <jiong.wang@arm.com>
14715
14716 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
14717 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
14718 (aarch64_cannot_force_const_mem): Likewise.
14719 (aarch64_classify_address): Likewise.
14720 (aarch64_classify_symbolic_expression): Likewise.
14721 (aarch64_print_operand): Likewise.
14722 (aarch64_classify_symbol): Likewise.
14723 (aarch64_mov_operand_p): Likewise.
14724 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
14725 (aarch64_mov_operand): Likewise.
14726
14727 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
14728
14729 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
14730 for info->spe_gp_size.
14731
14732 2015-09-24 Richard Biener <rguenther@suse.de>
14733
14734 PR lto/67699
14735 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
14736 abstract origins.
14737
14738 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
14739
14740 * tree-object-size.c (plus_stmt_object_size)
14741 (cond_expr_object_size): Change the formal parameters from gimple
14742 to gimple *.
14743 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
14744 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
14745 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
14746
14747 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14748
14749 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
14750 Check for ld -type pie on Solaris 11.x and 12.
14751 * configure: Regenerate.
14752 * config.in: Regenerate.
14753
14754 * gcc.c (LD_PIE_SPEC): Allow redefinition.
14755
14756 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
14757 (STARTFILE_SPEC): Use it.
14758 (ENDFILE_CRTEND_SPEC): Define.
14759 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
14760 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
14761 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
14762 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
14763 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
14764 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
14765 (ENDFILE_ARCH_SPEC): Define.
14766 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
14767
14768 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14769
14770 * configure.ac (gcc_cv_solaris_crts): New test.
14771 * configure. Regenerate.
14772 * config.in: Regenerate.
14773 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
14774 HAVE_SOLARIS_CRTS variant.
14775
14776 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14777
14778 * tree-inline.h (count_insns_seq): Delete prototype.
14779 (estimate_num_insns_seq): Define prototype.
14780 * tree-inline.c (count_insns_seq): Delete.
14781 (estimate_num_insns_seq): Remove static qualifier.
14782 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
14783 with estimate_num_insns_seq.
14784
14785 2015-09-24 Richard Biener <rguenther@suse.de>
14786
14787 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
14788 members.
14789 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
14790 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
14791 offset.
14792 (ao_ref_init_from_vn_reference): Record clique and base in the
14793 built base.
14794 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
14795
14796 2015-09-24 Richard Biener <rguenther@suse.de>
14797
14798 PR tree-optimization/48885
14799 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
14800 as not including any restrict tags from other pointers.
14801
14802 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
14803
14804 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
14805 character when appending to offload_targets.
14806
14807 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
14808 offload targets by commas, not colons.
14809 * config.in: Regenerate.
14810 * configure: Likewise.
14811 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
14812 instead of setting up the default offload targets here...
14813 (process_command): ..., do it here.
14814 libgomp/
14815 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
14816 targets are separated by commas.
14817 * config.h.in: Regenerate.
14818
14819 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
14820 Nathan Sidwell <nathan@codesourcery.com>
14821
14822 * omp-low.h (omp_reduction_init_op): Declare.
14823 * omp-low.c (omp_reduction_init_op): New, broken out of ...
14824 (omp_reduction_init): ... here. Call it.
14825 * tree-parloops.c (initialize_reductions): Use
14826 omp_reduction_init_op.
14827
14828 2015-09-23 Richard Biener <rguenther@suse.de>
14829
14830 PR middle-end/67662
14831 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
14832 undefined overflow unless they will cancel out.
14833
14834 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
14835
14836 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
14837 insn emit.
14838
14839 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
14840
14841 PR c/49655
14842 * opts.h (write_langs): Declare.
14843 * opts-global.c (write_langs): Make it extern.
14844
14845 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
14846
14847 PR target/67391
14848 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
14849 overlapping regs when matching the pattern.
14850
14851 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
14852
14853 * config/aarch64/aarch64-simd.md
14854 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
14855 (aarch64_float_truncate_hi_v4sf_le): New.
14856 (aarch64_float_truncate_hi_v4sf_be): Likewise.
14857
14858 2015-09-23 Richard Biener <rguenther@suse.de>
14859
14860 * tree-ssa-structalias.c (intra_create_variable_infos): Build
14861 representatives for all restrict qualified pointer destinations.
14862
14863 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
14864
14865 * config/i386/i386.md (define_code_attr mshift): New.
14866 (define_mode_iterator SWI1248_AVX512BW): Rename ...
14867 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
14868 only.
14869 (define_insn "*k<logic><mode>"): Use new iterator name.
14870 (define_insn "*<mshift><mode>3"): New.
14871
14872 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
14873
14874 PR middle-end/67649
14875 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
14876 mark the block as accessible.
14877
14878 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
14879
14880 * function.c (thread_prologue_and_epilogue_insns): Delete
14881 orig_entry_edge argument to try_shrink_wrapping.
14882 * shrink-wrap.c (can_get_prologue): New function.
14883 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
14884 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
14885 can_get_prologue where needed. Remove code that finds a single
14886 edge for the prologue. Remove code that tests if any reg clobbered
14887 by the prologue is live on the prologue edge. Remove code that finds
14888 the new prologue edge after duplicating blocks. Make a new prologue
14889 block and edge.
14890 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
14891
14892 2015-09-22 Jeff Law <law@redhat.com>
14893
14894 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
14895 behavior.
14896
14897 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
14898
14899 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
14900 -Wtemplates, -Wnamespaces): Document.
14901
14902 2015-09-22 Tom de Vries <tom@codesourcery.com>
14903
14904 PR tree-optimization/67671
14905 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
14906 pointer references as restrict.
14907
14908 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
14909
14910 * config/nios2/nios2.c (nios2_legitimize_address): When handling
14911 'reg + reloc' cases, allow first operand to be non-REG, and use
14912 force_reg() to enforce address pattern.
14913
14914 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
14915
14916 PR target/67480
14917 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
14918 (define_mode_iterator VI12_AVX_AVX512F): New.
14919 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
14920 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
14921 (define_insn "*<code><mode>3"): ... Into new pattern using
14922 VI12_AVX_AVX512F iterators without masking.
14923
14924 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
14925
14926 * config.gcc: Support "skylake-avx512".
14927 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14928 PROCESSOR_SKYLAKE_AVX512.
14929 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
14930 (processor_target_table): Add "skylake-avx512".
14931 (PTA_SKYLAKE_AVX512): Define.
14932 (ix86_option_override_internal): Add "skylake_avx512".
14933 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
14934 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
14935 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
14936 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
14937 * doc/invoke.texi (skylake-avx512): New.
14938
14939 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
14940
14941 * config/i386/i386.md (define_insn "kunpckhi"): Fix
14942 operand in pattern.
14943 (define_insn "kunpcksi"): Ditto.
14944 (define_insn "kunpckdi"): Ditto.
14945
14946 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
14947
14948 * config/i386/i386.md (define_split not/xor SWI1248x): Use
14949 iterator instead of fixed modes.
14950
14951 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
14952
14953 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
14954 Adjust declaration.
14955 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
14956 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
14957 out_result. Update to support update-fetch operations.
14958 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
14959 Adjust for change to aarch64_gen_atomic_ldop.
14960 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
14961 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
14962 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
14963 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
14964 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
14965
14966 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
14967
14968 * config/aarch64/aarch64-protos.h
14969 (aarch64_atomic_ldop_supported_p): Declare.
14970 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
14971 (enum aarch64_atomic_load_op_code): New.
14972 (aarch64_emit_atomic_load_op): New.
14973 (aarch64_gen_atomic_ldop): Update to support load-operate
14974 patterns.
14975 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
14976 to an expander.
14977 (aarch64_atomic_<atomic_optab><mode>): New.
14978 (aarch64_atomic_<atomic_optab><mode>_lse): New.
14979 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
14980 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
14981 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
14982
14983 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
14984
14985 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
14986 (UNSPECV_ATOMIC_LDOP_OR): New.
14987 (UNSPECV_ATOMIC_LDOP_BIC): New.
14988 (UNSPECV_ATOMIC_LDOP_XOR): New.
14989 (UNSPECV_ATOMIC_LDOP_PLUS): New.
14990 (ATOMIC_LDOP): New.
14991 (atomic_ldop): New.
14992 (aarch64_atomic_load<atomic_ldop><mode>): New.
14993
14994 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
14995
14996 * config/aarch64/aarch64.md
14997 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
14998 pattern.
14999
15000 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15001
15002 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
15003 Declare.
15004 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
15005 (aarch64_gen_atomic_ldop): New.
15006 (aarch64_split_atomic_op): Fix whitespace and add a comment.
15007 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
15008 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
15009 (atomic_exchange<mode>): Replace with an expander.
15010 (aarch64_atomic_exchange<mode>): New.
15011 (aarch64_atomic_exchange<mode>_lse): New.
15012 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
15013 (aarch64_atomic_swp<mode>): New.
15014
15015 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
15016
15017 * tree-inline.c (expand_call_inline): Use inform for extra note.
15018 Do not give a note with UNKNOWN_LOCATION.
15019 Replace input_location with gimple_location (stmt).
15020 Use true/false instead of TRUE/FALSE.
15021
15022 2015-09-22 Tom de Vries <tom@codesourcery.com>
15023
15024 PR tree-optimization/67666
15025 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
15026 with single field non-conservative.
15027
15028 2015-09-21 David S. Miller <davem@davemloft.net>
15029
15030 PR/67622
15031 Revert:
15032 2015-09-11 David S. Miller <davem@davemloft.net>
15033
15034 * config/sparc/constraints.md: Make "U" constraint a real register
15035 constraint.
15036 * config/sparc/sparc.c (TARGET_LRA_P): Define.
15037 (D_MODES, DF_MODES): Add missing cast.
15038 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
15039 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
15040 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
15041 cost to 8.
15042 * config/sparc/sparc.h (PROMOTE_MODE): Define.
15043 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
15044 provide these insn when flag_pic.
15045
15046 2015-09-17 David S. Miller <davem@davemloft.net>
15047
15048 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
15049 Declare.
15050 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
15051 function.
15052 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
15053 (HARD_REGNO_CALLER_SAVE_MODE): Define.
15054 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
15055 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
15056 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
15057 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
15058 provide when flag_pic.
15059
15060 2015-09-21 Jeff Law <law@redhat.com>
15061
15062 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
15063 behavior.
15064
15065 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15066
15067 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
15068
15069 2015-09-21 Richard Biener <rguenther@suse.de>
15070
15071 * passes.c (rest_of_decl_compilation): Do not call
15072 dwarf2out_early_global_decl for aliases.
15073
15074 2015-09-21 Richard Biener <rguenther@suse.de>
15075
15076 PR debug/67664
15077 * dwarf2out.c (add_location_or_const_value_attribute): Remove
15078 attribute parameter. Early exit if either DW_AT_const_value
15079 or DW_AT_location are present already.
15080 (gen_variable_die): Adjust caller.
15081 (dwarf2out_late_global_decl): Likewise.
15082
15083 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
15084
15085 PR target/67657
15086 * config/sh/sh.c (sh_remove_overlapping_post_inc,
15087 sh_peephole_emit_move_insn): Add new functions.
15088 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
15089 sh_peephole_emit_move_insn): Declere them.
15090 * config/sh/sh.md: Use them in various peephole2 patterns.
15091
15092 2015-09-21 Richard Biener <rguenther@suse.de>
15093
15094 PR middle-end/67651
15095 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
15096 address with -fno-delete-null-pointer-checks.
15097
15098 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
15099
15100 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
15101 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
15102 (reduc_uplus_v16qi): Remove.
15103
15104 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
15105 (reduc_<VEC_reduc_name>_v2df): Remove.
15106 (reduc_<VEC_reduc_name>_v4sf): Remove.
15107 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
15108
15109 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
15110 gen_ function by removing * prefix.
15111 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
15112
15113 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
15114
15115 PR middle-end/60832
15116 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
15117 Print i_bound without converting it to a tree.
15118
15119 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
15120
15121 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
15122 operands[4] operands[5] swap with std::swap, removed tmp variable.
15123 (arm_evpc_neon_vzip): Replaced in0/in1 and
15124 out0/out1 swaps with std::swap, removed x variable.
15125 (arm_evpc_neon_vtrn): Replaced in0/int1 and
15126 out0/out1 swaos with std::swap, removed x variable.
15127 (arm_expand_vec_perm_const_1): Replaced
15128 d->op0/d->op1 swap with std::swap, removed x variable.
15129 (arm_evpc_neon_vuzp): Replaced in0/in1 and
15130 out0/out1 swaps with std::swap, removed x variable.
15131
15132 2015-09-21 Jonathan Yong <10walls@gmail.com>
15133
15134 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
15135 sysroot/usr/lib/32api for additional win32 libraries,
15136 fixes failing Cygwin bootstrapping.
15137
15138 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
15139
15140 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
15141
15142 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
15143
15144 PR target/67126
15145 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
15146 (*mov_t_msb_neg): Rewrite negc pattern.
15147
15148 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15149
15150 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
15151 immediate generation code.
15152
15153 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15154
15155 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
15156 redundant immediate generation code.
15157
15158 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15159
15160 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
15161 (AARCH64_NUM_BITMASKS): Remove.
15162 (aarch64_bitmasks_cmp): Remove.
15163 (aarch64_build_bitmask_table): Remove.
15164
15165 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15166
15167 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
15168 slow immediate matching loops with a faster algorithm.
15169
15170 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15171
15172 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
15173 faster algorithm.
15174
15175 2015-09-20 Jeff Law <law@redhat.com>
15176
15177 PR tree-optimization/47679
15178 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
15179 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
15180 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
15181 (thread_through_normal_block): Use record_temporary_equivalences.
15182
15183 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
15184
15185 * coretypes.h (gimple): Change typedef to be a forward declaration.
15186 * gimple.h (gimple_statement_base): rename to gimple.
15187 * (all functions and types using gimple): Adjust.
15188 * *.[ch]: Likewise.
15189
15190 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
15191 David Edelsohn <dje.gcc@gmail.com>
15192
15193 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
15194 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15195 (EH_FRAME_THROUGH_COLLECT2): Define.
15196 (EH_TABLES_CAN_BE_READ_ONLY): Define.
15197 (ASM_OUTPUT_DWARF_PCREL): Define.
15198 (ASM_OUTPUT_DWARF_DATAREL): Define.
15199
15200 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
15201
15202 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
15203 of TARGET_ELF32.
15204
15205 2015-09-18 Jeff Law <law@redhat.com>
15206
15207 PR tree-optimization/47679
15208 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
15209 it here ...
15210 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
15211 object. Update constructor.
15212 (pass_dominator::execute): Corresponding chagnes to declaration
15213 and initialization of avail_exprs_stack. Update constructor call
15214 for dom_opt_dom_walker object.
15215 (lookup_avail_expr, record_cond): Accept additional argument. Pass
15216 it down to children as needed.
15217 (record_equivalences_from_incoming_edge): Likewise.
15218 (eliminate_redundant_computations): Likewise.
15219 (record_equivalences_from_stmt): Likewise.
15220 (simplify_stmt_for_jump_threading): Likewise.
15221 (record_temporary_equivalences): Likewise.
15222 (optimize_stmt): Likewise.
15223 (dom_opt_dom_walker::thread_across_edge): Update access to
15224 avail_exprs_stack object and pass it to children as needed.
15225 (dom_opt_dom_walker::before_dom_children): Similarly.
15226 (dom_opt_dom_walker::after_dom_children): Similarly.
15227 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
15228 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
15229 Add avail_expr_stack argument. Pass it to children as needed.
15230 (dummy_simplify): Likewise.
15231 (simplify_control_stmt_condition): Likewise.
15232 (thread_around_empty_blocks): Likewise.
15233 (thread_through_normal_block): Likewise.
15234 (thread_across_edge): Likewise.
15235 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
15236 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
15237
15238 PR tree-optimization/47679
15239 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
15240 it here ...
15241 (dom_opt_dom_walker): New private member holding the const_and_copies
15242 object. Update constructor.
15243 (pass_dominator::execute): Corresponding changes to declaration
15244 and initialization of const_and_copies. Update constructor call
15245 for the dom_opt_dom_walker object.
15246 (record_temporary_equivalences): Accept const_and_copies argument
15247 pass it down to children as needed.
15248 (record_equality): Likewise.
15249 (record_equivalences_from_incoming_edge): Likewise.
15250 (cprop_into_successor_phis, optimize_stmt): Likewise.
15251 (eliminate_redundant_computations): Likewise.
15252 (dom_opt_dom_walker::thread_across_edge): Update access to
15253 const_and_copies object and pass it to children as needed.
15254 (dom_opt_dom_walker::before_dom_children): Similarly.
15255 (dom_opt_dom_walker::after_dom_children): Similarly.
15256
15257 PR tree-optimization/47679
15258 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
15259 it into the avail_exprs_stack class.
15260 (pass_dominator::execute): Corresponding changes to declaration
15261 and initialization of avail_exprs. Pass avail_exprs to
15262 dump_dominator_optimization_stats.
15263 (record_cond): Extract avail_exprs from avail_exprs_stack.
15264 (lookup_avail_expr): Similarly.
15265 (htab_staticstics): Remove unnecessary prototype. Move to earlier
15266 position in file.
15267 (dump_dominator_optimization_stats): Make static and prototype.
15268 Add argument for the hash table to dump.
15269 (debug_dominator_optimization_stats): Remove.
15270 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
15271 prototype.
15272 (debug_dominator_optimization_stats): Similarly.
15273 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
15274 "void" in prototype for pop_to_marker method. Add accessor method
15275 for the underlying avail_exprs table.
15276
15277 * tree-ssa-threadedge.c: Remove trailing whitespace.
15278
15279 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
15280
15281 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
15282 unsigned.
15283 (pa_ldil_cint_p): Likewise.
15284 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
15285 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
15286 Update callers.
15287 * config/pa/pa.md: Likewise.
15288
15289 2015-09-18 David Malcolm <dmalcolm@redhat.com>
15290
15291 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
15292 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
15293 (diagnostic_show_locus): Likewise.
15294 (diagnostic_print_caret_line): Likewise.
15295 * diagnostic-show-locus.c: New file.
15296
15297 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
15298
15299 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
15300 "back" parameter. Declare label in #if block.
15301
15302 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
15303
15304 PR middle-end/67619
15305 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
15306 the address to a register.
15307
15308 2015-09-18 Jeff Law <law@redhat.com>
15309
15310 PR tree-optimization/47679
15311 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
15312 * tree-ssa-dom.c: Remove unnecessary header includes.
15313 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
15314 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
15315 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
15316 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
15317 (pass_phi_only_cprop::execute): Likewise.
15318 (make_pass_phi_only_cprop): Likewise.
15319 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
15320 uses of file scoped statics by passing the required objects
15321 as parameters wherever needed.
15322
15323 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
15324 David Edelsohn <dje.gcc@gmail.com>
15325
15326 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
15327 EH_FRAME_THROUGH_COLLECT2.
15328 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
15329 DW_EH_PE_datarel.
15330 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
15331 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
15332 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
15333 * except.c (switch_to_exception_section): Use a read-only section
15334 even if EH_FRAME_SECTION_NAME is undefined.
15335 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
15336 * collect2.c (write_c_file_stat): Provide dbase on AIX.
15337 (scan_prog_file): Don't export __dso_handle nor
15338 __gcc_unwind_dbase.
15339 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15340 (EH_TABLES_CAN_BE_READ_ONLY): Define.
15341 (ASM_OUTPUT_DWARF_PCREL): Define.
15342 (ASM_OUTPUT_DWARF_DATAREL): Define.
15343 (EH_FRAME_THROUGH_COLLECT2): Define.
15344 (EH_FRAME_IN_DATA_SECTION): Delete.
15345 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
15346 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
15347 Declare.
15348 (rs6000_asm_output_dwarf_datarel): Declare.
15349 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
15350 (rs6000_aix_asm_output_dwarf_datarel): New.
15351 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
15352 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
15353 (EH_FRAME_THROUGH_COLLECT2): Define.
15354 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
15355 (EH_FRAME_THROUGH_COLLECT2): Define.
15356 (EH_TABLES_CAN_BE_READ_ONLY): Define.
15357 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
15358 (EH_FRAME_THROUGH_COLLECT2): New.
15359 (ASM_OUTPUT_DWARF_DATAREL): New.
15360 * doc/tm.texi: Regenerate.
15361
15362 2015-09-18 Richard Biener <rguenther@suse.de>
15363
15364 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
15365 we're in early phase.
15366 (schedule_generic_params_dies_gen): Likewise.
15367 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
15368 work as possible, retaining unhandled cases.
15369 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
15370 clear out generic_type_instances at the end.
15371 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
15372 (dwarf2out_early_finish): ... here. Do most of
15373 gen_remaining_tmpl_value_param_die_attribute here.
15374
15375 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
15376
15377 PR tree-optimization/67283
15378 * tree-sra.c (type_consists_of_records_p): Rename to...
15379 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15380 (completely_scalarize_record): Rename to...
15381 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
15382 (scalarize_elem): New.
15383 (analyze_all_variable_accesses): Follow renamings.
15384
15385 2015-09-18 Richard Biener <rguenther@suse.de>
15386
15387 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
15388 in early-dwarf.
15389
15390 2015-09-18 Richard Biener <rguenther@suse.de>
15391
15392 PR tree-optimization/66142
15393 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
15394 treat MEM[&x] and x the same.
15395 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
15396 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
15397 when we simplified sth.
15398 (vn_reference_maybe_forwprop_address): Likewise.
15399 (valueize_refs_1): When we simplified through
15400 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
15401 set valueized_anything to true.
15402 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
15403 one ref kills the other instead of just a offset-based test.
15404 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
15405 for the operand_equal_p test to compare bases and also compare
15406 sizes.
15407
15408 2015-09-17 Christian Bruel <christian.bruel@st.com>
15409
15410 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
15411
15412 2015-09-17 Richard Henderson <rth@redhat.com>
15413
15414 PR libstdc++/65913
15415 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
15416 pointers that encode the alignment of the object.
15417
15418 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
15419
15420 PR rtl-optimization/66790
15421 * df-problems.c (LIVE): Amend documentation.
15422
15423 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
15424
15425 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
15426 and optabs-tree.o.
15427 (GTFILES): Replace optabs.c with optabs-libfunc.c.
15428 * genopinit.c (main): Add an include guard to insn-opinit.h.
15429 Protect the rtx_code parts with NUM_RTX_CODE.
15430 * optabs.h: Split parts out to...
15431 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
15432 * optabs.c: Split parts out to...
15433 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
15434 * cilk-common.c: Include optabs-query.h rather than optabs.h.
15435 * fold-const.c: Likewise.
15436 * target-globals.c: Likewise.
15437 * tree-if-conv.c: Likewise.
15438 * tree-ssa-forwprop.c: Likewise.
15439 * tree-ssa-loop-prefetch.c: Likewise.
15440 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
15441 Remove unncessary include files.
15442 * tree-ssa-phiopt.c: Likewise.
15443 * tree-ssa-reassoc.c: Likewise.
15444 * tree-switch-conversion.c: Likewise.
15445 * tree-vect-data-refs.c: Likewise.
15446 * tree-vect-generic.c: Likewise.
15447 * tree-vect-loop.c: Likewise.
15448 * tree-vect-patterns.c: Likewise.
15449 * tree-vect-slp.c: Likewise.
15450 * tree-vect-stmts.c: Likewise.
15451 * tree-vrp.c: Likewise.
15452 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
15453 rather than optabs.h.
15454 * expr.c: Include optabs-tree.h.
15455 * function.c: Likewise.
15456
15457 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
15458
15459 PR middle-end/65958
15460 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
15461 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
15462 * config/arm/arm.c: Include common/common-target.h.
15463 (use_return_insn): Return 0 if the static chain register was saved
15464 above a non-APCS frame.
15465 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
15466 (struct scratch_reg): New.
15467 (get_scratch_register_on_entry): New function.
15468 (release_scratch_register_on_entry): Likewise.
15469 (arm_emit_probe_stack_range): Likewise.
15470 (output_probe_stack_range): Likewise.
15471 (arm_expand_prologue): Factor out code dealing with the IP register
15472 for nested function and adjust it for stack checking.
15473 Invoke arm_emit_probe_stack_range if static builtin stack checking
15474 is enabled.
15475 (thumb1_expand_prologue): Sorry out if static builtin stack checking
15476 is enabled.
15477 (arm_expand_epilogue): Add the saved static chain register, if any, to
15478 the amount of pre-pushed registers to pop.
15479 (arm_frame_pointer_required): Return true if static stack checking is
15480 enabled and we want to catch the exception with the EABI unwinder.
15481 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
15482 (UNSPEC_PROBE_STACK_RANGE): Likewise.
15483 * config/arm/arm.md (probe_stack): New insn.
15484 (probe_stack_range): Likewise.
15485
15486 2015-09-17 Richard Biener <rguenther@suse.de>
15487
15488 * genmatch.c (parser::parse_expr): Improve error message
15489 for mis-placed flags.
15490
15491 2015-09-17 Richard Biener <rguenther@suse.de>
15492
15493 * passes.c (rest_of_decl_compilation): Always call early_global_decl
15494 debug hook when we created a varpool node.
15495 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
15496 dwarf2out_early_global_decl, when not just add location or
15497 value attributes to existing DIEs.
15498
15499 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
15500
15501 * config/aarch64/aarch64.md (copysigndf3): New.
15502 (copysignsf3): Likewise.
15503
15504 2015-09-17 David S. Miller <davem@davemloft.net>
15505
15506 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
15507 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
15508 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
15509 (HARD_REGNO_CALLER_SAVE_MODE): Define.
15510 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
15511 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
15512 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
15513 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
15514 provide when flag_pic.
15515
15516 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
15517
15518 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
15519 object_allocator change.
15520
15521 2015-09-17 Bin Cheng <bin.cheng@arm.com>
15522
15523 PR tree-optimization/66388
15524 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
15525 (dump_iv): Dump no_overflow information.
15526 (alloc_iv): Initialize new field for struct iv.
15527 (mark_bivs): Count number of no_overflow bivs.
15528 (find_deriving_biv_for_expr, record_biv_for_address_use): New
15529 functions.
15530 (idx_find_step): Call new functions above.
15531 (add_candidate_1, add_candidate): New paramter.
15532 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
15533 (get_computation_aff): Simplify convertion of cand for BIV.
15534 (get_computation_cost_at): Step cand's base if necessary.
15535
15536 2015-09-17 Bin Cheng <bin.cheng@arm.com>
15537
15538 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
15539 parameter.
15540 (tree_simplify_using_condition): Ditto.
15541 (simplify_using_initial_conditions): Ditto.
15542 (loop_exits_before_overflow): Pass new argument to function
15543 simplify_using_initial_conditions. Remove case for type conversions
15544 simplification.
15545 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
15546 parameter.
15547 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
15548 in iv base using loop initial conditions.
15549
15550 2015-09-16 Jeff Law <law@redhat.com>
15551
15552 PR tree-optimization/47679
15553 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
15554 (free_all_edge_infos): Use it.
15555 (allocate_edge_info): Free preexisting edge info data.
15556 (pass_dominator::execute): Set up initial edge info structures.
15557 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
15558 thread_across_edge.
15559 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
15560 If non-null, then push/pop markers appropriately.
15561 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
15562 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
15563 thread-across_edge.
15564
15565 2015-09-16 James Bowman <james.bowman@ftdichip.com>
15566
15567 * config/ft32/ft32.c: Fix the memory address space predicate.
15568
15569 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
15570
15571 PR target/67573
15572 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
15573 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
15574
15575 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
15576
15577 * toplev.h (check_global_declaration): Remove declaration.
15578 * toplev.c (check_global_declaration): Move to ...
15579 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
15580 (analyze_functions): Update call.
15581
15582 2015-09-16 David S. Miller <davem@davemloft.net>
15583
15584 * lra-constraints.c (simplify_operand_subreg): Do not assume that
15585 lowpart of a SUBREG has offset zero.
15586
15587 2015-09-16 Jeff Law <law@redhat.com>
15588
15589 PR tree-optimization/47679
15590 * tree-ssa-dom.c (enum expr_kind): Moved from here to
15591 tree-ssa-scopedtables.h.
15592 (struct hashable_expr, class expr_hash_elt): Likewise.
15593 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
15594 Move associated methods into tree-ssa-scopedtables.c.
15595 (avail_expr_hash, initialize_expr_from_cond): Similarly.
15596 (hashable_expr_equal_p, add_expr_commutative): Likewise.
15597 (add_hashable_expr): Likewise.
15598 (record_cond): Delete element directly.
15599 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
15600 private copy ctor and assignment operator methods.
15601 (expr_elt_hasher): Inline trivial methods.
15602 (initialize_expr_from_cond): Prototype.
15603 * tree-ssa-scopedtables.c: Add necessary includes, functions and
15604 methods that were previously in tree-ssa-dom.c. Improve various
15605 comments.
15606
15607 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
15608
15609 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
15610
15611 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
15612
15613 PR bootstrap/67587
15614 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
15615 fixup_partitions.
15616
15617 2015-09-16 Richard Biener <rguenther@suse.de>
15618
15619 PR middle-end/67253
15620 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
15621 location of possibly shared trees.
15622
15623 2015-09-16 Richard Biener <rguenther@suse.de>
15624
15625 PR middle-end/67271
15626 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
15627
15628 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
15629
15630 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
15631 offset and size computations instead of HOST_WIDE_INT.
15632
15633 2015-09-16 Richard Biener <rguenther@suse.de>
15634
15635 PR middle-end/67442
15636 * fold-const.c (extract_muldiv_1): Properly extend multiplication
15637 result before builting a tree via wide_int_to_tree.
15638
15639 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
15640
15641 * Makefile.in: Add memory-block.cc
15642 (pool_allocator::initialize): Use fixed block size.
15643 (pool_allocator::release): Use memory_block_pool.
15644 (pool_allocator::allocate): Likewise.
15645 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
15646 object pools.
15647 * cfg.c (initialize_original_copy_tables): Likewise.
15648 * cselib.c (elt_list_pool, elt_loc_list_pool,
15649 cselib_val_pool): Likewise.
15650 * df-problems.c (df_chain_alloc): Likewise.
15651 * df-scan.c (df_scan_alloc): Likewise.
15652 * dse.c (cse_store_info_pool, rtx_store_info_pool,
15653 read_info_type_pool, insn_info_type_pool, bb_info_pool,
15654 group_info_pool, deferred_change_pool): Likewise.
15655 * et-forest.c (et_nodes, et_occurrences): Likewise.
15656 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
15657 ipcp_agg_lattice_pool): Likewise.
15658 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
15659 * ipa-profile.c (histogram_pool): Likewise.
15660 * ipa-prop.c (ipa_refdesc_pool): Likewise.
15661 * ira-build.c (live_range_pool, allocno_pool, object_pool,
15662 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
15663 * ira-color.c (update_cost_record_pool): Likewise.
15664 * lra-lives.c (lra_live_range_pool): Likewise.
15665 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
15666 * memory-block.cc: New file.
15667 * memory-block.h: New file.
15668 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
15669 * sched-deps.c (sched_deps_init): Likewise.
15670 * sel-sched-ir.c (sched_lists_pool): Likewise.
15671 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
15672 * tree-sra.c (access_pool): Likewise.
15673 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
15674 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
15675 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
15676 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
15677 * tree-ssa-strlen.c (strinfo_pool): Likewise.
15678 * tree-ssa-structalias.c (variable_info_pool): Likewise.
15679 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
15680 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
15681
15682 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
15683
15684 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
15685 definition.
15686 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
15687 call0 ABI.
15688
15689 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
15690
15691 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
15692 to pass TLS call argument, according to current ABI.
15693 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
15694 callx0 for TLS call, according to current ABI.
15695
15696 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
15697
15698 * tree-eh.c (lower_try_finally_dup_block): Clear location information
15699 on stack restore statements.
15700 (decide_copy_try_finally): Do not consider a stack restore statement as
15701 coming from sources.
15702
15703 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
15704
15705 * config/alpha/alpha.c (alpha_expand_block_clear): Use
15706 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
15707
15708 2015-09-15 Jeff Law <law@redhat.com>
15709
15710 PR tree-optimization/47679
15711 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
15712 methods and private members.
15713 (avail_exprs_stack): Similarly. Change type of global
15714 from a pair of expr_hash_elt_t to the new class.
15715 (expr_elt_hasher::hash): Corresponding changes.
15716 (expr_elt_hasher::equal): Similarly.
15717 (avail_expr_hash): Similarly.
15718 (pass_dominator::execute): Similarly.
15719 (dom_opt_dom_walker::thread_across_edge): Similarly.
15720 (record_cond): Similarly.
15721 (dom_opt_dom_walker::before_dom_children): Similarly.
15722 (dom_opt_dom_walker::after_dom_children): Similarly.
15723 (lookup_avail_expr): Likewise.
15724 (initialize_hash_element): Now a expr_hash_elt constructor.
15725 (initialize_hash_element_from_expr): Similarly.
15726 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
15727 (free_expr_hash_elt): Call dtor for the element.
15728 (remove_local_expressions_from_table): Now the "pop_to_marker"
15729 method in the available_exprs_stack class.
15730 (avail_expr_stack::record_expr): Method factored out.
15731 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
15732 Fix formatting.
15733 (hashable_expr_equal_p): Fix formatting.
15734
15735 2015-09-15 David Malcolm <dmalcolm@redhat.com>
15736
15737 * input.h (location_get_source_line): Drop "expanded_location"
15738 param in favor of a file and line number.
15739 * input.c (location_get_source_line): Likewise.
15740 (dump_location_info): Update for change in signature of
15741 location_get_source_line.
15742 * diagnostic.c (diagnostic_print_caret_line): Likewise.
15743
15744 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
15745
15746 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
15747 Bump to 4KB for SJLJ exceptions.
15748 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
15749 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
15750 * doc/tm.texi: Regenerate.
15751
15752 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15753
15754 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
15755 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
15756 Update prototype.
15757
15758 2015-09-15 Richard Biener <rguenther@suse.de>
15759
15760 PR tree-optimization/67470
15761 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
15762 structure for PHI hoisting by inserting a forwarder block
15763 if appropriate.
15764
15765 2015-09-15 Christian Bruel <christian.bruel@st.com>
15766
15767 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
15768 (arm_option_print): New function.
15769
15770 2015-09-15 Christian Bruel <christian.bruel@st.com>
15771
15772 PR target/52144
15773 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
15774 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
15775 Remove flags parameter.
15776 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
15777 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
15778 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
15779 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
15780 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
15781 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
15782 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
15783 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
15784
15785 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15786
15787 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
15788
15789 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
15790 AARCH64_VALID_SIMD_DREG_MODE.
15791
15792 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15793
15794 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
15795 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
15796 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
15797 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
15798 aarch64_ld4_lane<mode>): Combine together, making...
15799 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
15800 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
15801 aarch64_st4_lane<mode>): Combine together, making...
15802 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
15803 * config/aarch64/iterators.md (nregs): Add comment.
15804
15805 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15806
15807 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
15808 Change operand mode from <V_TWO_ELEM> to BLK.
15809 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
15810 (aarch64_vec_store_lanesoi_lane<mode): Likewise
15811 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15812 (aarch64_ld2_lane<mode>): Likewise.
15813 (aarch64_st2_lane<VQ:mode>): Likewise.
15814 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
15815
15816 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15817
15818 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
15819 Change operand mode from <V_FOUR_ELEM> to BLK.
15820 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
15821 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
15822 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15823 (aarch64_ld4_lane<mode>): Likewise.
15824 (aarch64_st4_lane<mode>): Likewise.
15825 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
15826
15827 2015-09-15 Richard Biener <rguenther@suse.de>
15828
15829 PR middle-end/67563
15830 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
15831 transfer EH info from old to new stmt.
15832 (replace_call_with_value): Likewise.
15833 (replace_call_with_call_and_fold): Likewise.
15834 (gimple_fold_builtin_memory_op): Likewise.
15835 (gimple_fold_builtin_memset): Likewise.
15836 (gimple_fold_builtin_stpcpy): Likewise.
15837 (gimple_fold_call): Likewise.
15838
15839 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15840
15841 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
15842 comment.
15843 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
15844 (aarch64_simd_intEI_type_node): Likewise.
15845 (aarch64_simd_builtin_std_type): Remove EImode case.
15846 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
15847 * config/aarch64/aarch64-modes.def: Remove EImode.
15848
15849 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15850
15851 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
15852 Change operand mode from <V_THREE_ELEM> to BLK.
15853 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
15854 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
15855 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15856 (aarch64_ld3_lane<mode>): Likewise.
15857 (aarch64_st3_lane<mode>): Likewise.
15858 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
15859
15860 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15861
15862 * config/aarch64/aarch64-simd.md
15863 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
15864 Change all TImode operands to BLKmode.
15865 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
15866 Change all EImode operands to BLKmode.
15867 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
15868 Change all OImode operands to BLKmode.
15869
15870 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
15871 and call set_mem_size.
15872 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
15873
15874 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
15875
15876 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15877
15878 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
15879 to...
15880 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
15881
15882 (vec_store_lanesci_lane<mode>): Rename to...
15883 (aarch64_vec_store_lanesci_lane<mode>): ...this.
15884
15885 (vec_store_lanesxi_lane<mode>): Rename to...
15886 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
15887
15888 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
15889 aarch64_st4_lane<mode>): Follow renaming.
15890
15891 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15892
15893 * config/s390/s390.c (s390_const_operand_ok): Add missing
15894 brackets.
15895
15896 2015-09-15 Richard Biener <rguenther@suse.de>
15897
15898 PR lto/67568
15899 * lto-streamer.h (lto_location_cache::current_sysp): Properly
15900 initialize.
15901 * lto-streamer-out.c (clear_line_info): Likewise.
15902
15903 2015-09-15 Richard Biener <rguenther@suse.de>
15904
15905 * doc/match-and-simplify.texi: Fix wording.
15906
15907 2015-09-15 Bin Cheng <bin.cheng@arm.com>
15908
15909 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
15910 unnecessary type conversion in op1.
15911
15912 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
15913
15914 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
15915 (dup_block_and_redirect): Delete function.
15916 (can_dup_for_shrink_wrapping): New function.
15917 (fix_fake_fallthrough_edge): New function.
15918 (try_shrink_wrapping): Rewrite function.
15919 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
15920
15921 2015-09-14 Rich Felker <dalias@libc.org>
15922
15923 * configure.ac: Change target pattern for sh TLS support
15924 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
15925 * configure: Regenerate.
15926
15927 2015-09-14 Jeff Law <law@redhat.com>
15928
15929 PR tree-optimization/47679
15930 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
15931 type rather than void *.
15932
15933 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
15934
15935 PR fortran/67460
15936 * diagnostic.c (diagnostic_initialize): Do not set
15937 some_warnings_are_errors.
15938 (diagnostic_finish): Use DK_WERROR count instead.
15939 (diagnostic_report_diagnostic): Do not set
15940 some_warnings_are_errors.
15941 * diagnostic.h (struct diagnostic_context): Remove
15942 some_warnings_are_errors.
15943
15944 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
15945
15946 * config/sparc/predicates.md (const_all_ones_operand): Use
15947 CONSTM1_RTX to simplify definition.
15948
15949 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
15950
15951 PR target/67061
15952 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
15953 Handle call insns.
15954
15955 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
15956
15957 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
15958 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
15959 OPT_fshow_column to handled saved option cases.
15960 (append_compiler_options): Do not skip the above added options.
15961
15962 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15963
15964 PR target/63304
15965 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
15966 nopcrelative_literal_loads.
15967 (aarch64_classify_address): Likewise.
15968 (aarch64_constant_pool_reload_icode): Define.
15969 (aarch64_secondary_reload): Handle secondary reloads for
15970 literal pools.
15971 (aarch64_override_options): Handle nopcrelative_literal_loads.
15972 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
15973 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
15974 Define.
15975 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
15976 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
15977 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
15978 predicate.
15979 * doc/invoke.texi (mpc-relative-literal-loads): Document.
15980
15981 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
15982
15983 PR middle-end/67401
15984 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
15985 sync_compare_and_swap_optab libcall to target_oval.
15986
15987 2015-09-14 Marek Polacek <polacek@redhat.com>
15988
15989 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
15990 value.
15991 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
15992
15993 2015-09-11 Mark Wielaard <mjw@redhat.com>
15994
15995 PR c/28901
15996 * toplev.c (check_global_declaration): Check and use
15997 warn_unused_const_variable.
15998 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
15999 (-Wunused-variable): Remove non-constant. For C implies
16000 -Wunused-const-variable.
16001 (-Wunused-const-variable): New.
16002
16003 2015-09-14 Richard Biener <rguenther@suse.de>
16004
16005 * doc/match-and-simplify.texi: Update for changed syntax
16006 of inner ifs and the new switch expression.
16007
16008 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
16009
16010 * config/i386/haswell.md: New file describing Haswell pipeline.
16011 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
16012 haswell-like processors.
16013 (ix86_reassociation_width): Increase reassociation width for 64-bit
16014 Haswell processor family.
16015 * config/i386/i386.md: Introduce haswell cpu and include new md file.
16016
16017 2015-09-14 Richard Biener <rguenther@suse.de>
16018
16019 * doc/match-and-simplify.texi: Fixup some formatting issues
16020 and document the 's' flag.
16021
16022 2015-09-13 Olivier Hainque <hainque@adacore.com>
16023 Eric Botcazou <ebotcazou@adacore.com>
16024
16025 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
16026 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
16027 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
16028 (TARGET_CPU_gr5): Likewise.
16029 (TARGET_CPU_gr6): Likewise.
16030 (MULTILIB_DEFAULTS): Likewise.
16031 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
16032 for mcpu=gr5 and mcpu=gr6.
16033 (MULTILIB_DIRNAMES): Adjust accordingly.
16034
16035 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16036
16037 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
16038 (mem_ref_p): Likewise.
16039 (outermost_indep_loop): Adjust.
16040 (mem_ref_in_stmt): Likewise.
16041 (determine_max_movement): Likewise.
16042 (mem_ref_alloc): Likewise.
16043 (record_mem_ref_loc): Likewise.
16044 (set_ref_stored_in_loop): Likewise.
16045 (mark_ref_stored): Likewise.
16046 (gather_mem_refs_stmt): Likewise.
16047 (mem_refs_may_alias_p): Likewise.
16048 (for_all_locs_in_loop): Likewise.
16049 (struct rewrite_mem_ref_loc): Likewise.
16050 (rewrite_mem_refs): Likewise.
16051 (struct first_mem_ref_loc_1): Likewise.
16052 (first_mem_ref_loc): Likewise.
16053 (struct sm_set_flag_if_changed): Likewise.
16054 (execute_sm_if_changed_flag_set): Likewise.
16055 (execute_sm): Likewise.
16056 (hoist_memory_references):
16057 (struct ref_always_accessed): Likewise.
16058 (ref_always_accessed_p): Likewise.
16059 (refs_independent_p): Likewise.
16060 (record_dep_loop): Likewise.
16061 (ref_indep_loop_p_1): Likewise.
16062 (ref_indep_loop_p_2): Likewise.
16063 (ref_indep_loop_p): Likewise.
16064 (can_sm_ref_p): Likewise.
16065 (find_refs_for_sm): Likewise.
16066 (tree_ssa_lim_finalize): Likewise.
16067
16068 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16069
16070 * dwarf2out.c (dw_attr_ref): Remove typedef.
16071 (dw_line_info_ref): Likewise.
16072 (pubname_ref): Likewise.
16073 (dw_ranges_ref): Likewise.
16074 (dw_ranges_by_label_ref): Likewise.
16075 (comdat_type_node_ref): Likewise.
16076 (get_AT): Adjust.
16077 (get_AT_low_pc): Likewise.
16078 (get_AT_hi_pc): Likewise.
16079 (get_AT_string): Likewise.
16080 (get_AT_flag): Likewise.
16081 (get_AT_unsigned): Likewise.
16082 (get_AT_ref): Likewise.
16083 (get_AT_file): Likewise.
16084 (remove_AT): Likewise.
16085 (print_die): Likewise.
16086 (check_die): Likewise.
16087 (die_checksum): Likewise.
16088 (attr_checksum_ordered): Likewise.
16089 (struct checksum_attributes): Likewise.
16090 (collect_checksum_attributes): Likewise.
16091 (die_checksum_ordered): Likewise.
16092 (same_die_p): Likewise.
16093 (is_declaration_die): Likewise.
16094 (clone_die): Likewise.
16095 (clone_as_declaration): Likewise.
16096 (copy_declaration_context): Likewise.
16097 (break_out_comdat_types): Likewise.
16098 (copy_decls_walk): Likewise.
16099 (output_location_lists): Likewise.
16100 (external_ref_hasher::hash): Likewise.
16101 (optimize_external_refs_1): Likewise.
16102 (build_abbrev_table): Likewise.
16103 (size_of_die): Likewise.
16104 (unmark_all_dies): Likewise.
16105 (size_of_pubnames): Likewise.
16106 (output_die_abbrevs): Likewise.
16107 (output_die): Likewise.
16108 (output_pubnames): Likewise.
16109 (add_ranges_num): Likewise.
16110 (add_ranges_by_labels): Likewise.
16111 (add_high_low_attributes): Likewise.
16112 (gen_producer_string): Likewise.
16113 (dwarf2out_set_name): Likewise.
16114 (new_line_info_table): Likewise.
16115 (prune_unused_types_walk_attribs): Likewise.
16116 (prune_unused_types_update_strings): Likewise.
16117 (prune_unused_types): Likewise.
16118 (resolve_addr): Likewise.
16119 (optimize_location_lists_1): Likewise.
16120 (index_location_lists): Likewise.
16121 (dwarf2out_finish): Likewise.
16122
16123 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16124
16125 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
16126
16127 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16128
16129 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
16130 (dump_asserts_for): Adjust.
16131 (register_new_assert_for): Likewise.
16132 (process_assert_insertions): Likewise.
16133 (insert_range_assertions): Likewise.
16134
16135 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16136
16137 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
16138 and remove typedef.
16139 (new_temp_expr_table): Adjust.
16140 (free_temp_expr_table): Likewise.
16141 (version_to_be_replaced_p): Likewise.
16142 (make_dependent_on_partition): Likewise.
16143 (add_to_partition_kill_list): Likewise.
16144 (remove_from_partition_kill_list): Likewise.
16145 (add_dependence): Likewise.
16146 (finished_with_expr): Likewise.
16147 (process_replaceable): Likewise.
16148 (kill_expr): Likewise.
16149 (kill_virtual_exprs): Likewise.
16150 (mark_replaceable): Likewise.
16151 (find_replaceable_in_bb): Likewise.
16152 (find_replaceable_exprs): Likewise.
16153 (debug_ter): Likewise.
16154
16155 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16156
16157 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
16158 (struct btr_user): Rename from btr_user_s.
16159 (struct btr_def): Rename from btr_def_s.
16160 (find_btr_def_group): Adjust.
16161 (add_btr_def): Likewise.
16162 (new_btr_user): Likewise.
16163 (note_other_use_this_block): Likewise.
16164 (compute_defs_uses_and_gen): Likewise.
16165 (link_btr_uses): Likewise.
16166 (build_btr_def_use_webs): Likewise.
16167 (block_at_edge_of_live_range_p): Likewise.
16168 (btr_def_live_range): Likewise.
16169 (combine_btr_defs): Likewise.
16170 (move_btr_def): Likewise.
16171 (migrate_btr_def): Likewise.
16172 (migrate_btr_defs): Likewise.
16173
16174 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16175
16176 * var-tracking.c (shared_hash_def): Rename to shared_hash.
16177 (shared_hash): Remove typedef.
16178 (struct dataflow_set): Adjust.
16179 (shared_hash_unshare): Likewise.
16180 (dataflow_set_merge): Likewise.
16181 (vt_initialize): Likewise.
16182 (vt_finalize): Likewise.
16183
16184 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16185
16186 * var-tracking.c (struct location_chain): Rename from
16187 location_chain_def.
16188 (struct variable_part): Adjust.
16189 (variable_htab_free): Likewise.
16190 (unshare_variable): Likewise.
16191 (get_init_value): Likewise.
16192 (get_addr_from_local_cache): Likewise.
16193 (drop_overlapping_mem_locs): Likewise.
16194 (val_reset): Likewise.
16195 (struct variable_union_info): Likewise.
16196 (variable_union): Likewise.
16197 (find_loc_in_1pdv): Likewise.
16198 (insert_into_intersection): Likewise.
16199 (intersect_loc_chains): Likewise.
16200 (canonicalize_loc_order_check): Likewise.
16201 (canonicalize_values_mark): Likewise.
16202 (canonicalize_values_star): Likewise.
16203 (canonicalize_vars_star): Likewise.
16204 (variable_merge_over_cur): Likewise.
16205 (remove_duplicate_values): Likewise.
16206 (variable_post_merge_new_vals): Likewise.
16207 (variable_post_merge_perm_vals): Likewise.
16208 (find_mem_expr_in_1pdv): Likewise.
16209 (dataflow_set_preserve_mem_locs): Likewise.
16210 (dataflow_set_remove_mem_locs): Likewise.
16211 (variable_part_different_p): Likewise.
16212 (onepart_variable_different_p): Likewise.
16213 (find_src_set_src): Likewise.
16214 (dump_var): Likewise.
16215 (set_slot_part): Likewise.
16216 (clobber_slot_part): Likewise.
16217 (delete_slot_part): Likewise.
16218 (vt_expand_var_loc_chain): Likewise.
16219 (emit_note_insn_var_location): Likewise.
16220 (vt_finalize): Likewise.
16221
16222 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16223
16224 * dse.c (store_info_t): Remove typedef.
16225 (group_info_t): Likewise.
16226 (const_group_info_t): Likewise.
16227 (deferred_change_t): Likewise.
16228 (get_group_info): Adjust.
16229 (free_store_info): Likewise.
16230 (canon_address): Likewise.
16231 (clear_rhs_from_active_local_stores): Likewise.
16232 (record_store): Likewise.
16233 (replace_read): Likewise.
16234 (check_mem_read_rtx): Likewise.
16235 (scan_insn): Likewise.
16236 (remove_useless_values): Likewise.
16237 (dse_step1): Likewise.
16238 (dse_step2_init): Likewise.
16239 (dse_step2_nospill): Likewise.
16240 (scan_stores_nospill): Likewise.
16241 (scan_reads_nospill): Likewise.
16242 (dse_step3_exit_block_scan): Likewise.
16243 (dse_step3): Likewise.
16244 (dse_step5_nospill): Likewise.
16245 (dse_step6): Likewise.
16246
16247 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16248
16249 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
16250 (alias_set_entry): Remove typedef.
16251 (alias_set_subset_of): Adjust.
16252 (alias_sets_conflict_p): Likewise.
16253 (init_alias_set_entry): Likewise.
16254 (get_alias_set): Likewise.
16255 (new_alias_set): Likewise.
16256 (record_alias_subset): Likewise.
16257
16258 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
16259
16260 * doc/install.texi (Downloading the source): Mark up
16261 contrib/download_prerequisites properly and drop leading "./".
16262
16263 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16264
16265 * config/arc/arc.h: Remove define of STRUCT_VALUE.
16266 * config/lm32/lm32.h: Likewise.
16267 * config/mep/mep.h: Likewise.
16268 * config/visium/visium.h: Likewise.
16269 * system.h: Poison STRUCT_VALUE macro.
16270
16271 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
16272
16273 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
16274 CONSTANT_P operands.
16275
16276 2015-09-11 David S. Miller <davem@davemloft.net>
16277
16278 * config/sparc/constraints.md: Make "U" constraint a real register
16279 constraint.
16280 * config/sparc/sparc.c (TARGET_LRA_P): Define.
16281 (D_MODES, DF_MODES): Add missing cast.
16282 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
16283 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
16284 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
16285 cost to 8.
16286 * config/sparc/sparc.h (PROMOTE_MODE): Define.
16287 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
16288 provide these insn when flag_pic.
16289
16290 2015-09-11 Jeff Law <law@redhat.com>
16291
16292 PR tree-optimization/47679
16293 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
16294 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
16295 member with m_. Update inline member functions as necessary. Add
16296 toplevel comment.
16297 * tree-ssa-scopedtables.c: Update const_and_copies's member
16298 functions to use m_ prefix to access the stack.
16299
16300 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
16301
16302 * graphite-optimize-isl.c (disable_tiling): Remove.
16303 (get_schedule_for_band): Do not use disable_tiling.
16304 (get_prevector_map): Delete function.
16305 (enable_polly_vector): Remove.
16306 (get_schedule_for_band_list): Remove dead code.
16307
16308 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
16309
16310 * graphite-optimize-isl.c (get_tile_map): Refactor.
16311 (get_schedule_for_band): Same.
16312 (getScheduleForBand): Same.
16313 (get_prevector_map): Same.
16314 (get_schedule_for_band_list): Same.
16315 (get_schedule_map): Same.
16316 (get_single_map): Same.
16317 (apply_schedule_map_to_scop): Same.
16318 (optimize_isl): Same.
16319
16320 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16321
16322 PR target/63304
16323 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
16324 (movtf): Delete.
16325 * config/aarch64/iterators.md (GPF_TF_F16): New.
16326 (GPF_F16): Delete.
16327
16328 2015-09-10 Nathan Sidwell <nathan@acm.org>
16329
16330 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
16331 (nvptx_reorg): Adjust comments.
16332
16333 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
16334
16335 PR bootstrap/67363
16336 * configure.ac: Check if setenv and unsetenv are declared.
16337 * configure: Rebuild.
16338 * config.in: Rebuild.
16339 * system.h: Declare setenv and unsetenv if not declared.
16340
16341 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16342
16343 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
16344 commentary to simplify permute mask adjustment equation.
16345 (special_handling_values): Add SH_VPERM.
16346 (const_load_sequence_p): New function.
16347 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
16348 the mask loaded from the constant pool.
16349 (adjust_vperm): New function.
16350 (handle_special_swappables): Call adjust_vperm.
16351 (dump_swap_insn_table): Handle SH_VPERM.
16352
16353 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
16354
16355 * shrink-wrap.c (requires_stack_frame_p): Remove static.
16356 * shrink-wrap.h (requires_stack_frame_p): Put back.
16357
16358 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
16359
16360 * reload1.c (elimination_costs_in_insn): Locally turn
16361 -Wmaybe-uninitialized into a warning.
16362
16363 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
16364
16365 * shrink-wrap.c (requires_stack_frame_p): Make static.
16366 (prepare_shrink_wrap): Likewise.
16367 (dup_block_and_redirect): Likewise.
16368 * shrink-wrap.h: Remove declarations of those functions.
16369
16370 2015-09-10 Mark Wielaard <mjw@redhat.com>
16371
16372 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
16373
16374 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
16375
16376 PR target/67506
16377 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
16378 missing simplify_gen_subreg.
16379
16380 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16381
16382 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
16383 the vector element is bigger than 64 bit.
16384
16385 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16386
16387 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
16388 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
16389
16390 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16391
16392 * config/s390/s390.c: Add V1TImode to constant pool modes.
16393
16394 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16395
16396 PR target/67439
16397 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
16398 predicate. Set predicable_short_it attr to "no".
16399
16400 2015-09-10 Jiong Wang <jiong.wang@arm.com>
16401
16402 PR rtl-optimization/67421
16403 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
16404 left wide shift tranformation.
16405
16406 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
16407
16408 * common/config/arc/arc-common.c: Remove references to A5.
16409 * config/arc/arc-opts.h: Likewise.
16410 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
16411 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
16412 * config/arc/t-arc-newlib: Likewise.
16413
16414 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
16415
16416 * config/arc/arc.md (length): Fix attribute length for conditional
16417 executed instructions with long immediate.
16418
16419 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16420
16421 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
16422 type for second alternative.
16423
16424 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
16425
16426 * doc/invoke.texi (Downloading GCC): Mention
16427 contrib/download_prerequisites script.
16428
16429 2015-09-10 Jakub Jelinek <jakub@redhat.com>
16430
16431 PR c++/67523
16432 * gimplify.c (gimplify_omp_for): If inner stmt is not found
16433 for combined loop, assert seen_error () and return GS_ERROR.
16434
16435 PR middle-end/67521
16436 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
16437 if decl is already in outer->variables.
16438
16439 PR middle-end/67517
16440 * gimplify.c (gimplify_scan_omp_clauses): Instead of
16441 asserting that decl is not specified in octx->variables,
16442 break out of the loop if it is.
16443
16444 PR c++/67514
16445 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
16446 iterator is not explicitly determined, but is defined inside
16447 of the combined workshare region, handle it like if it has
16448 DECL_EXPR in OMP_FOR_PRE_BODY.
16449
16450 2015-09-09 Nathan Sidwell <nathan@acm.org>
16451
16452 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
16453 (*cmp<mode>): Add assembler spacing.
16454 (setcc_int<mode>, set_cc_float<mode>): Likewise.
16455 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
16456 level.
16457 (write_func_decl_from_insn): Refactor argument loops & comma emission.
16458 (nvptx_expand_call): Likewise.
16459 (nvptx_output_call_insn): Likewise.
16460 (nvptx_reorg_subreg): Add spacing.
16461
16462 2015-09-09 Marek Polacek <polacek@redhat.com>
16463
16464 PR middle-end/67512
16465 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
16466 for comparisons.
16467
16468 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
16469
16470 PR c++/53184
16471 * doc/invoke.texi ([Wsubobject-linkage]): Document.
16472
16473 2015-09-09 Tom de Vries <tom@codesourcery.com>
16474
16475 * params-list.h: Add missing copyright notice.
16476
16477 2015-09-09 Nathan Sidwell <nathan@acm.org>
16478
16479 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
16480 sel_truesi, not andsi.
16481
16482 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16483
16484 * config/arm/arm.md (*subsi3_compare0): Rename to...
16485 (subsi3_compare0): ... This.
16486 (modsi3): New define_expand.
16487 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
16488 when operand is power of 2.
16489
16490 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16491
16492 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
16493 (*neg<mode>2_compare0): Rename to...
16494 (neg<mode>2_compare0): ... This.
16495 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
16496 Move check for speed inside the if-then-elses. Reflect
16497 CSNEG sequence in MOD by power of 2 case.
16498
16499 2015-09-09 Alan Modra <amodra@gmail.com>
16500
16501 PR target/67378
16502 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
16503 reload replacement for PRE_MODIFY address reg.
16504
16505 2015-09-09 Sebastian Pop <s.pop@samsung.com>
16506
16507 PR tree-optimization/53852
16508 * config.in: Regenerate.
16509 * configure: Regenerate.
16510 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
16511 * graphite-optimize-isl.c (optimize_isl): Stop computation when
16512 PARAM_MAX_ISL_OPERATIONS is reached.
16513 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
16514 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
16515 result equal to isl_stat_ok as the status now can be isl_error_quota.
16516 (subtract_commutative_associative_deps): Same.
16517 (compute_deps): Same.
16518
16519 2015-09-08 Aditya Kumar <hiraditya@msn.com>
16520 Sebastian Pop <s.pop@samsung.com>
16521
16522 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
16523 Return the parameter if it was saved in corresponding
16524 parameter_rename_map of the region.
16525 (copy_def): Copy def from sese region to the newly created region.
16526 (copy_internal_parameters): Copy all the internal parameters defined
16527 within a region to the newly created region.
16528 (graphite_regenerate_ast_isl): Copy parameters to the new region before
16529 translating isl to gimple.
16530 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
16531 the loop-nest does not have any data-references.
16532 (build_graphite_scops): Create a scop only when there is at least one
16533 loop inside it.
16534 (contains_only_close_phi_nodes): Deleted.
16535 (print_graphite_scop_statistics): Deleted
16536 (print_graphite_statistics): Deleted
16537 (limit_scops): Deleted.
16538 (build_scops): Removed call to limit_scops.
16539 * sese.c (new_sese): Construct.
16540 (free_sese): Destruct.
16541 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
16542 added.
16543 (set_rename): Pass sese region so that parameters inside the region can
16544 be added to its parameter_rename_map.
16545 (rename_uses): Pass sese region.
16546 (graphite_copy_stmts_from_block): Do not copy parameters that have been
16547 generated in the header of the scop. For each SSA_NAME in the
16548 parameter_rename_map rename its usage.
16549 (invariant_in_sese_p_rec): Return false if tree t is defined outside
16550 sese region.
16551 (scalar_evolution_in_region): If the tree t is invariant just return t.
16552 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
16553 struct sese to keep track of all the parameters which need renaming.
16554 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
16555 any data-refs.
16556 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
16557
16558 2015-09-08 Tom de Vries <tom@codesourcery.com>
16559
16560 * Makefile.in (generated_files): Add params.list.
16561 (params.list, s-params.list): Add rule.
16562 * params.h (enum compiler_param): Include params-list.h. Move define
16563 DEFPARAM, include params.def and undef DEFPARAM ...
16564 * params-list.h: ... here. New file.
16565
16566 2015-09-08 David Malcolm <dmalcolm@redhat.com>
16567
16568 * pretty-print.h (printer_fn): Fix typo in comment.
16569
16570 2015-09-07 Jeff Law <law@redhat.com>
16571
16572 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
16573
16574 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16575
16576 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
16577 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
16578 (arm_neon_fp16_hw): New.
16579
16580 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16581
16582 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
16583 UNITS_PER_WORD >= 4.
16584
16585 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16586
16587 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
16588 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
16589 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
16590 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
16591 (aarch64_float_extend_lo_v2df): Rename to...
16592 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
16593
16594 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
16595 (float_extend_lo): Add v4sf.
16596
16597 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
16598 * config/aarch64/iterators.md (VQ_HSF): New iterator.
16599 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
16600 (Vwide): New mode_attr.
16601
16602 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16603
16604 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
16605 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
16606 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
16607 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
16608 V4HF and V8HF variants to iterator.
16609
16610 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
16611
16612 * config/aarch64/iterators.md (VDQF_F16): New.
16613 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
16614
16615 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16616
16617 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
16618 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
16619 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
16620 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
16621 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
16622 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
16623 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
16624 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
16625 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
16626 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
16627 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
16628 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
16629 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
16630 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
16631 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
16632 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
16633 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
16634 vld1q_dup_f16): New.
16635
16636 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16637
16638 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
16639 Reparameterize to...
16640 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
16641 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
16642 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
16643
16644 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
16645 v8hf variant.
16646 (float_truncate_lo_): Use BUILTIN_VDF iterator.
16647
16648 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
16649
16650 * config/aarch64/iterators.md (VDF, Vdtype): New.
16651 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
16652
16653 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16654
16655 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
16656 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
16657 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
16658 Add __builtin_aarch64_simd_hf.
16659 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
16660 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
16661 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
16662 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
16663 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
16664 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
16665 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
16666 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
16667 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
16668
16669 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
16670 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
16671 (VDC, Vdbl): Add V4HF.
16672
16673 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16674
16675 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
16676 V4HFmode and V8HFmode.
16677 (aarch64_split_simd_move): Add case for V8HFmode.
16678 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
16679 (aarch64_simd_builtin_std_type): Handle HFmode.
16680 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
16681
16682 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
16683 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
16684 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
16685
16686 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
16687 Float16x8_t.
16688
16689 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
16690 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
16691 New typedefs.
16692 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
16693 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
16694 vst1q_lane_f16): New.
16695 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
16696 (VALLDI_F16, VALL_F16): New.
16697 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
16698 Add cases for V4HF and V8HF.
16699 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
16700
16701 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16702
16703 * config/arm/arm-builtins.c (VAR11, VAR12): New.
16704 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
16705 vld4_dup): Add v4hf variant.
16706 (vget_high, vget_low): Add v8hf variant.
16707 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
16708 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
16709 v4hf and v8hf variants.
16710
16711 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
16712 (VDX): Add V4HF.
16713 (V_DOUBLE): Add case for V4HF.
16714 (VQX): Add V8HF.
16715 (V_HALF): Add case for V8HF.
16716 (VDQX): Add V4HF, V8HF.
16717 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
16718 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
16719
16720 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
16721 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
16722 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
16723 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
16724 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
16725 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
16726 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
16727 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
16728 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
16729
16730 (neon_vcreate, neon_vreinterpretv8qi<mode>,
16731 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
16732 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
16733 Change VDX to VD_RE.
16734
16735 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
16736 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
16737 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
16738
16739 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
16740 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
16741 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
16742 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
16743 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
16744 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
16745 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
16746 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
16747 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
16748
16749 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16750
16751 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
16752 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
16753 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
16754 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
16755 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
16756 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
16757 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
16758 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
16759 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
16760 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
16761 New.
16762
16763 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16764
16765 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
16766
16767 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
16768
16769 * config/arm/arm-builtins.c (v8hf_UP): New.
16770 (arm_init_simd_builtin_types): Initialise Float16x8_t.
16771
16772 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
16773
16774 * config/arm/arm_neon.h (float16x8_t): New typedef.
16775
16776 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16777
16778 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
16779 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
16780 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
16781 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
16782 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
16783 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
16784 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
16785 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
16786 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
16787 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
16788
16789 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
16790
16791 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
16792 non-alphanumeric characters in the symbol name.
16793
16794 2015-09-07 Marek Polacek <polacek@redhat.com>
16795
16796 PR inline-asm/67448
16797 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
16798 a memory input.
16799
16800 2015-09-07 Marek Polacek <polacek@redhat.com>
16801
16802 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
16803
16804 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
16805
16806 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
16807 not warn.
16808
16809 2015-09-04 Jakub Jelinek <jakub@redhat.com>
16810
16811 PR middle-end/67452
16812 * tree-ssa-live.c: Include cfgloop.h.
16813 (remove_unused_locals): Clear loop->simduid if simduid is about
16814 to be removed from cfun->local_decls.
16815
16816 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16817
16818 PR target/65210
16819 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
16820 attribute as well.
16821
16822 2015-09-04 Tom de Vries <tom@codesourcery.com>
16823
16824 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
16825
16826 2015-09-04 Jeff Law <law@redhat.com>
16827
16828 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
16829 unnecessary constructor. It's now trivial and implemented inside...
16830 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
16831 constructor. Add comments to various methods. Remove unused
16832 private fields.
16833 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
16834 * tree-vrp.c (identify_jump_threads): Likewise.
16835 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
16836 indentation issues.
16837 (thread_across_edge): Similarly.
16838 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
16839 arguments in constructor call.
16840
16841 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
16842
16843 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
16844 temp path contains a '-'.
16845
16846 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
16847 Petr Murzin <petr.murzin@intel.com>
16848 Kirill Yukhin <kirill.yukhin@intel.com>
16849
16850 * config/i386/i386-builtin-types.def
16851 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
16852 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
16853 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
16854 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
16855 * config/i386/i386.c
16856 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
16857 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
16858 IX86_BUILTIN_SCATTERALTDIV16SI.
16859 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
16860 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
16861 __builtin_ia32_scatteraltdiv8si.
16862 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
16863 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
16864 IX86_BUILTIN_SCATTERALTDIV16SI.
16865 (ix86_vectorize_builtin_scatter): New.
16866 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
16867 ix86_vectorize_builtin_scatter.
16868
16869 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
16870 Petr Murzin <petr.murzin@intel.com>
16871 Kirill Yukhin <kirill.yukhin@intel.com>
16872
16873 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
16874 * doc/tm.texi: Regenerate.
16875 * target.def: Add scatter builtin.
16876 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
16877 for loads/stores in case of gather/scatter accordingly.
16878 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
16879 STMT_VINFO_GATHER_P(S).
16880 (vect_check_gather): Rename to ...
16881 (vect_check_gather_scatter): this.
16882 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
16883 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
16884 (vect_check_gather_scatter): Use it instead of vect_check_gather.
16885 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
16886 variable and new checkings for it accordingly.
16887 * tree-vect-stmts.c
16888 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
16889 STMT_VINFO_GATHER_P(S).
16890 (vect_check_gather_scatter): Use it instead of vect_check_gather.
16891 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
16892
16893 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
16894
16895 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
16896 define_insn.
16897 (mulv16qi3): New define_expand.
16898
16899 2015-09-03 Martin Sebor <msebor@redhat.com>
16900
16901 PR c/66516
16902 * doc/extend.texi (Other Builtins): Document when the address
16903 of a built-in function can be taken.
16904
16905 2015-09-03 Richard Biener <rguenther@suse.de>
16906
16907 * dwarf2out.c (flush_limbo_die_list): Split out from ...
16908 (dwarf2out_early_finish): ... here.
16909 (dwarf2out_finish): Do not call dwarf2out_early_finish but
16910 flush_limbo_die_list. Assert we have no deferred asm names.
16911
16912 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16913
16914 * optabs.c (expand_binop): Don't create a broadcast vector with a
16915 source element wider than the inner mode.
16916
16917 2015-09-03 Richard Biener <rguenther@suse.de>
16918
16919 * varasm.c (output_constant): Use fold_convert instead of
16920 wide_int_to_tree.
16921
16922 2015-09-03 Tom de Vries <tom@codesourcery.com>
16923
16924 PR tree-optimization/65637
16925 * omp-low.c (expand_omp_for_static_chunk): Handle case that
16926 fin_bb has 2 predecessors.
16927
16928 2015-09-03 Tom de Vries <tom@codesourcery.com>
16929
16930 PR tree-optimization/65637
16931 * omp-low.c (find_phi_with_arg_on_edge): New function.
16932 (expand_omp_for_static_chunk): Fix inner loop phi.
16933
16934 2015-09-03 Tom de Vries <tom@codesourcery.com>
16935
16936 PR tree-optimization/65637
16937 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
16938 that head is NULL.
16939
16940 2015-09-03 Tom de Vries <tom@codesourcery.com>
16941
16942 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
16943
16944 2015-09-03 Tom de Vries <tom@codesourcery.com>
16945
16946 * doc/invoke.texi (parloops-chunk-size): Add item.
16947 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
16948 * tree-parloops.c: Include params.h.
16949 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
16950 param parloops-chunk-size is used.
16951
16952 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16953
16954 PR middle-end/67351
16955 * fold-const.c (fold_binary_loc) : Move
16956 Transform (x >> c) << c into x & (-1<<c) or
16957 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
16958 types using simplify and match.
16959 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
16960 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
16961
16962 2015-09-03 Richard Biener <rguenther@suse.de>
16963
16964 PR ipa/66705
16965 * tree-ssa-structalias.c (ctor_for_analysis): New function.
16966 (create_variable_info_for_1): Use ctor_for_analysis instead
16967 of get_constructor.
16968 (create_variable_info_for): Likewise.
16969
16970 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
16971
16972 PR ipa/67280
16973 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
16974 in new callgraph edge.
16975
16976 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
16977
16978 PR target/59810
16979 PR target/63652
16980 PR target/63653
16981 * config/aarch64/aarch64-simd.md
16982 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
16983 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
16984 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
16985 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
16986
16987 2015-09-02 Alan Modra <amodra@gmail.com>
16988
16989 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
16990 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
16991 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
16992
16993 2015-09-02 Alan Modra <amodra@gmail.com>
16994
16995 PR target/67417
16996 * config/rs6000/predicates.md (current_file_function_operand): Don't
16997 return true for weak symbols.
16998 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
16999
17000 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
17001 Andrew Bennett <andrew.bennett@imgtec.com>
17002
17003 * config/mips/mips-opts.h (mips_cb_setting): New enum.
17004 * config/mips/mips-protos.h: Add definitions for
17005 mips_output_jump and mips_output_equal_conditional_branch
17006 * config/mips/mips.c (MIPS_JR): Change to support the
17007 JIC instruction.
17008 (mips_emit_compare): Add support for the MIPS R6 conditional
17009 compact branches.
17010 (mips_process_sync_loop): Likewise.
17011 (mips_output_order_conditional_branch): Likewise.
17012 (mips16_build_call_stub): Change MIPS_CALL to
17013 mips_output_jump.
17014 (mips_print_operand_punctuation): Update 's' case to only
17015 apply to micromips r2.
17016 (mips_adjust_insn_length): Add support for forbidden slot
17017 hazards.
17018 (mips_avoid_hazard): Likewise.
17019 (mips_reorg_process_insns): Likewise.
17020 (mips_output_jump): New function.
17021 (mips_output_equal_conditional_branch): Likewise.
17022 (mips_output_conditional_branch): Use jrc/bc if compact
17023 branch support is enabled. Ensure the forbidden slots
17024 between the two branch instructions is filled with a nop.
17025 (mips_option_override): Add support to process the compact
17026 branch option and set the correct defaults. Prevent
17027 non-explict relocs being using for MIPS R6.
17028 (mips_trampoline_init): Add compact branch support.
17029 (mips_mult_zero_zero_cost): Allow zero initialisation of
17030 accumulators with TARGET_DSP.
17031 * config/mips/mips.h (TARGET_CB_NEVER): New define.
17032 (TARGET_CB_MAYBE): New define.
17033 (TARGET_CB_ALWAYS): New define.
17034 (ISA_HAS_DELAY_SLOTS): New define.
17035 (ISA_HAS_COMPACT_BRANCHES): New define.
17036 (ISA_HAS_JRC): New define.
17037 (MIPS_BRANCH_C): New define.
17038 (MIPS_CALL): Removed.
17039 (MICROMIPS_J): Removed.
17040 * config/mips/mips.md (compact_form): New attr.
17041 (hazard): Add support for forbidden slots.
17042 (define_delay): Add support for compact branches.
17043 (*branch_order<mode>): Likewise.
17044 (*branch_order<mode>_inverted): Likewise.
17045 (*branch_equality<mode>): Likewise.
17046 (*branch_equality<mode>_inverted): Likewise.
17047 (*jump_absolute): Likewise.
17048 (*jump_pic): Likewise.
17049 (indirect_jump): Use mips_output_jump to produce assembly output.
17050 (tablejump_<mode>"): Likewise.
17051 (*<optab>"): Likewise.
17052 (<optab>_internal): Likewise.
17053 (sibcall_internal): Likewise.
17054 (sibcall_value_internal): Likewise.
17055 (sibcall_value_multiple_internal): Likewise.
17056 (call_internal): Likewise.
17057 (call_split): Likewise.
17058 (call_internal_direct): Likewise.
17059 (call_direct_split): Likewise.
17060 (call_value_internal): Likewise.
17061 (call_value_split): Likewise.
17062 (call_value_internal_direct): Likewise.
17063 (call_value_direct_split): Likewise.
17064 (call_value_multiple_internal): Likewise.
17065 (call_value_multiple_split): Likewise.
17066 (mips_get_fcsr_mips16_<mode>): Likewise.
17067 (mips_set_fcsr_mips16_<mode>): Likewise.
17068 (tls_get_tp_mips16_<mode>): Likewise.
17069 * config/mips/mips.opt: Add -mcompact-branches option.
17070 * config/mips/predicates.md (order_operator): Ensure the
17071 conditional compact branches are only used if the ISA them.
17072 * doc/invoke.texi: Document -mcompact-branches option.
17073
17074 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
17075
17076 PR target/61578
17077 * lra-lives.c (process_bb_lives): Process move pseudos with the
17078 same value for copies and preferences
17079 * lra-constraints.c (match_reload): Create match reload pseudo
17080 with the same value from single dying input pseudo.
17081
17082 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
17083
17084 PR target/67405
17085 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
17086
17087 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
17088
17089 * trans-mem.c: Add contributed-by.
17090 * trans-mem.h: Same.
17091
17092 2015-09-01 Richard Biener <rguenther@suse.de>
17093
17094 * expr.c (expand_expr_real_1): For expanding TERed defs
17095 set the current location to that of the def if not UNKNOWN.
17096
17097 2015-09-01 David Sherwood <david.sherwood@arm.com>
17098
17099 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
17100
17101 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17102
17103 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
17104 then_cost, else_cost fields. Change branch_cost field to unsigned int.
17105 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
17106 Include rtl-iter.h.
17107 (noce_simple_bbs): New function.
17108 (noce_try_move): Bail if basic blocks are not simple.
17109 (noce_try_store_flag): Likewise.
17110 (noce_try_store_flag_constants): Likewise.
17111 (noce_try_addcc): Likewise.
17112 (noce_try_store_flag_mask): Likewise.
17113 (noce_try_cmove): Likewise.
17114 (noce_try_minmax): Likewise.
17115 (noce_try_abs): Likewise.
17116 (noce_try_sign_mask): Likewise.
17117 (noce_try_bitop): Likewise.
17118 (bbs_ok_for_cmove_arith): New function.
17119 (noce_emit_all_but_last): Likewise.
17120 (noce_emit_insn): Likewise.
17121 (noce_emit_bb): Likewise.
17122 (noce_try_cmove_arith): Handle non-simple basic blocks.
17123 (insn_valid_noce_process_p): New function.
17124 (contains_mem_rtx_p): Likewise.
17125 (bb_valid_for_noce_process_p): Likewise.
17126 (noce_process_if_block): Allow non-simple basic blocks
17127 where appropriate.
17128
17129 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
17130
17131 * tree-ssa-dom.c (record_equivalences_from_phis,
17132 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
17133 (lookup_avail_expr): Likewise, and remove comment and unused temp.
17134
17135 2015-09-01 Nick Clifton <nickc@redhat.com>
17136
17137 * config/msp430/msp430.opt (mcpu): Fix typo.
17138
17139 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17140
17141 * config/aarch64/aarch64.c (aarch64_set_current_function):
17142 Re-layout any vector parameters have non-simd layout.
17143 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
17144 Delete.
17145 (aarch64_simd_expand_args): Delete call to the above.
17146
17147 2015-08-31 Mike Frysinger <vapier@gentoo.org>
17148
17149 * doc/invoke.texi (asan-stack): Add space before option.
17150
17151 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
17152
17153 * tree.h (zerop): New function.
17154 * tree.c (zerop): Likewise.
17155 (element_precision): Handle expressions.
17156 * match.pd (define_predicates): Add zerop.
17157 (x <= +Inf): Fix comment.
17158 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
17159 * fold-const.c (fold_binary_loc): ... here. Remove.
17160
17161 2015-08-31 Richard Biener <rguenther@suse.de>
17162
17163 PR middle-end/67381
17164 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
17165
17166 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
17167
17168 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
17169 (CEXPI): New operator list.
17170 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
17171 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
17172 Converted from ...
17173 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
17174
17175 2015-08-31 Tom de Vries <tom@codesourcery.com>
17176
17177 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
17178 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
17179 parameter.
17180 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
17181 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
17182 (rewrite_into_loop_closed_ssa): ... here.
17183 (replace_uses_in_dominated_bbs): Remove function.
17184 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
17185 rewrite_into_loop_closed_ssa_1.
17186
17187 2015-08-31 Michael Matz <matz@suse.de>
17188
17189 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
17190 enter entry and exit blocks for reverse post order.
17191
17192 2015-08-31 Richard Biener <rguenther@suse.de>
17193
17194 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
17195 (lto_location_cache::current_sysp): Likewise.
17196 (output_block::current_sysp): Likewise.
17197 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
17198 (lto_location_cache::apply_location_cache): Properly record
17199 system header locations.
17200 (lto_location_cache::input_location): Input whether a file
17201 is a system header.
17202 * lto-streamer-out.c (lto_output_location): Stream whether a file
17203 is a system header.
17204
17205 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17206
17207 PR bootstrap/67363
17208 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
17209
17210 2015-08-31 Tom de Vries <tom@codesourcery.com>
17211
17212 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
17213 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
17214 Improve function header comments.
17215
17216 2015-08-30 Michael Collison <michael.collison@linaro.org>
17217
17218 PR other/67320
17219 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
17220 standard names
17221
17222 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17223
17224 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
17225 special_handling bitfield.
17226 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
17227 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
17228 that represents a general xxpermdi.
17229 (insn_is_swappable_p): Add handling for vec_concat of two
17230 doublewords, which maps to a specific xxpermdi.
17231 (adjust_xxpermdi): New function.
17232 (adjust_concat): Likewise.
17233 (handle_special_swappables): Call adjust_xxpermdi and
17234 adjust_concat.
17235 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
17236
17237 2015-08-30 Rich Felker <dalias@libc.org>
17238
17239 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
17240 case instead of sh[123456ble]-*-*.
17241
17242 2015-08-29 Anatoly Sokolov <aesok@post.ru>
17243
17244 * ira.c (print_unform_and_important_classes,
17245 print_translated_classes): Remove reg_class_names static array.
17246 (print_unform_and_important_classes): Rename to ...
17247 (print_uniform_and_important_classes): ... this.
17248 (ira_debug_allocno_classes): Update accordingly.
17249
17250 2015-08-29 Tom de Vries <tom@codesourcery.com>
17251
17252 PR tree-optimization/46193
17253 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
17254 clause.
17255
17256 2015-08-28 Jeff Law <law@redhat.com>
17257
17258 PR lto/66752
17259 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17260 unable to find X NE 0 in the tables, return X as the simplified
17261 condition.
17262 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17263 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
17264 to VISISTED_BBS.
17265 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17266 after removing the control flow statement and unnecessary edges.
17267
17268 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
17269
17270 Revert:
17271 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
17272
17273 PR tree-optimization/67283
17274 * tree-sra.c (type_consists_of_records_p): Rename to...
17275 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
17276
17277 (completely_scalarize_record): Rename to...
17278 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
17279 code to:
17280 (scalarize_elem): New.
17281
17282 2015-08-28 Jiong Wang <jiong.wang@arm.com>
17283
17284 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
17285 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
17286 (aarch64_symbol_type): Likewise.
17287 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17288 Likewise.
17289 (aarch64_expand_mov_immediate): Likewise.
17290 (aarch64_print_operand): Likewise.
17291 (aarch64_classify_tls_symbol): Likewise.
17292
17293 2015-08-28 Richard Biener <rguenther@suse.de>
17294
17295 * cgraphunit.c (symbol_table::compile): Move early debug generation
17296 and finish...
17297 (symbol_table::finalize_compilation_unit): ... back here and
17298 add a !seen_error () guard.
17299
17300 2015-08-27 Sebastian Pop <s.pop@samsung.com>
17301
17302 * toplev.c (process_options): Do not use flag_loop_block,
17303 flag_loop_interchange, and flag_loop_strip_mine. Add check for
17304 flag_loop_optimize_isl.
17305
17306 2015-08-27 Sebastian Pop <s.pop@samsung.com>
17307
17308 * Makefile.in (OBJS): Remove graphite-blocking.o and
17309 graphite-interchange.o.
17310 * common.opt (floop-strip-mine, floop-interchange, floop-block):
17311 Alias of floop-nest-optimize.
17312 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
17313 Document as alias of -floop-nest-optimize.
17314 * graphite-blocking.c: Remove.
17315 * graphite-interchange.c: Remove.
17316 * graphite-optimize-isl.c: Include dumpfile.h.
17317 (getScheduleForBand): Add dump for tiled loops. Use
17318 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
17319 * graphite-poly.c (scop_max_loop_depth): Remove.
17320 (print_scattering_function_1): Remove.
17321 (print_scattering_function): Remove.
17322 (print_scattering_functions): Remove.
17323 (debug_scattering_function): Remove.
17324 (debug_scattering_functions): Remove.
17325 (apply_poly_transforms): Remove use of flag_loop_block,
17326 flag_loop_strip_mine, and flag_loop_interchange.
17327 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
17328 PBB_ORIGINAL.
17329 (print_pdr_access_layout): Remove.
17330 (print_pdr): Print ISL representation.
17331 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
17332 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
17333 (free_scop): Same.
17334 (openscop_print_pbb_domain): Remove.
17335 (print_pbb): Remove call to print_scattering_function.
17336 (openscop_print_scop_context): Remove.
17337 (print_scop_context): Do not print matrices anymore.
17338 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
17339 SCOP_TRANSFORMED_SCHEDULE.
17340 (print_isl_set): Add printing of a new line.
17341 (print_isl_map): Same.
17342 (print_isl_aff): Same.
17343 (print_isl_constraint): Same.
17344 (loop_to_lst): Remove.
17345 (scop_to_lst): Remove.
17346 (lst_indent_to): Remove.
17347 (print_lst): Remove.
17348 (debug_lst): Remove.
17349 (dot_lst_1): Remove.
17350 (dot_lst): Remove.
17351 (reverse_loop_at_level): Remove.
17352 (reverse_loop_for_pbbs): Remove.
17353 * graphite-poly.h (pdr_dim_iter_domain): Remove.
17354 (pdr_nb_params): Remove.
17355 (pdr_alias_set_dim): Remove.
17356 (pdr_subscript_dim): Remove.
17357 (pdr_iterator_dim): Remove.
17358 (pdr_parameter_dim): Remove.
17359 (same_pdr_p): Remove.
17360 (struct poly_scattering): Remove.
17361 (struct poly_bb): Remove _original, _transformed, _saved.
17362 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
17363 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
17364 (PBB_NB_LOCAL_VARIABLES): Remove.
17365 (PBB_NB_SCATTERING_TRANSFORM): Remove.
17366 (schedule_to_scattering): Remove.
17367 (number_of_write_pdrs): Remove.
17368 (pbb_dim_iter_domain): Remove.
17369 (pbb_nb_params): Remove.
17370 (pbb_nb_scattering_orig): Remove.
17371 (pbb_nb_scattering_transform): Remove.
17372 (pbb_nb_dynamic_scattering_transform): Remove.
17373 (pbb_nb_local_vars): Remove.
17374 (pbb_iterator_dim): Remove.
17375 (pbb_parameter_dim): Remove.
17376 (psco_scattering_dim): Remove.
17377 (psct_scattering_dim): Remove.
17378 (psct_local_var_dim): Remove.
17379 (psco_iterator_dim): Remove.
17380 (psct_iterator_dim): Remove.
17381 (psco_parameter_dim): Remove.
17382 (psct_parameter_dim): Remove.
17383 (psct_dynamic_dim): Remove.
17384 (psct_static_dim): Remove.
17385 (psct_add_local_variable): Remove.
17386 (new_lst_loop): Remove.
17387 (new_lst_stmt): Remove.
17388 (free_lst): Remove.
17389 (copy_lst): Remove.
17390 (lst_add_loop_under_loop): Remove.
17391 (lst_depth): Remove.
17392 (lst_dewey_number): Remove.
17393 (lst_dewey_number_at_depth): Remove.
17394 (lst_pred): Remove.
17395 (lst_succ): Remove.
17396 (lst_find_pbb): Remove.
17397 (find_lst_loop): Remove.
17398 (lst_find_first_pbb): Remove.
17399 (lst_empty_p): Remove.
17400 (lst_find_last_pbb): Remove.
17401 (lst_contains_p): Remove.
17402 (lst_contains_pbb): Remove.
17403 (lst_create_nest): Remove.
17404 (lst_remove_from_sequence): Remove.
17405 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
17406 (lst_niter_for_loop): Remove.
17407 (pbb_update_scattering): Remove.
17408 (lst_update_scattering_under): Remove.
17409 (lst_update_scattering): Remove.
17410 (lst_insert_in_sequence): Remove.
17411 (lst_replace): Remove.
17412 (lst_substitute_3): Remove.
17413 (lst_distribute_lst): Remove.
17414 (lst_remove_all_before_including_pbb): Remove.
17415 (lst_remove_all_before_excluding_pbb): Remove.
17416 (struct scop): Remove original_schedule, transformed_schedule, and
17417 saved_schedule.
17418 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
17419 (SCOP_SAVED_SCHEDULE): Remove.
17420 (poly_scattering_new): Remove.
17421 (poly_scattering_free): Remove.
17422 (poly_scattering_copy): Remove.
17423 (store_scattering_pbb): Remove.
17424 (store_lst_schedule): Remove.
17425 (restore_lst_schedule): Remove.
17426 (store_scattering): Remove.
17427 (restore_scattering_pbb): Remove.
17428 (restore_scattering): Remove.
17429 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
17430 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
17431 compute the scattering polyhedron dimension from the dimension of
17432 pbb->domain.
17433 (build_scop_scattering): Update call to
17434 build_pbb_scattering_polyhedrons.
17435 (build_poly_scop): Remove call to scop_to_lst.
17436 * graphite.c (graphite_transform_loops): Add call to print_scop.
17437 (gate_graphite_transforms): Remove use of flag_loop_block,
17438 flag_loop_interchange, and flag_loop_strip_mine.
17439
17440 2015-08-27 Sebastian Pop <s.pop@samsung.com>
17441
17442 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
17443 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
17444 -floop-nest-optimize.
17445 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
17446 (generate_luj_sepclass): Remove.
17447 (generate_luj_options): Remove.
17448 (set_options): Remove opt_luj.
17449 (scop_to_isl_ast): Remove opt_luj.
17450 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
17451 flag_loop_unroll_jam.
17452 (getPrevectorMap_full): Remove.
17453 (getScheduleForBandList): Remove map_sepcl.
17454 (getScheduleMap): Same.
17455 (apply_schedule_map_to_scop): Remove sepcl.
17456 (optimize_isl): Same.
17457 * graphite-poly.c (apply_poly_transforms): Remove check for
17458 flag_loop_unroll_jam.
17459 (new_poly_bb): Remove map_sepclass.
17460 * graphite-poly.h (struct poly_bb): Same.
17461 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
17462 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
17463 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
17464 * toplev.c (process_options): Remove flag_loop_unroll_jam.
17465
17466 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
17467
17468 PR target/67317
17469 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
17470 (addqi3_cc): Ditto.
17471 (UNSPEC_ADD_CARRY): Remove.
17472 (addqi3_cconly_overflow): New expander.
17473 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
17474 Adjust for changed add<mode>3_carry.
17475 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
17476 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
17477 (<plusminus_insn><mode>3_carry): Remove expander.
17478 (*<plusminus_insn><mode>3_carry): Split insn pattern to
17479 add<mode>3_carry and sub<mode>3_carry.
17480 (plusminus_carry_mnemonic): Remove code attribute.
17481 (add<mode>3_carry): Canonicalize insn pattern.
17482 (*addsi3_carry_zext): Ditto.
17483 (sub<mode>3_carry): Ditto.
17484 (*subsi3_carry_zext): Ditto.
17485 (adcx<mode>3): Remove insn pattern.
17486 (addcarry<mode>): New insn pattern.
17487 (subborrow<mode>): Ditto.
17488 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
17489 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
17490 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
17491 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
17492 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
17493 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
17494 Rewrite expander to not clobber carry flag chains.
17495
17496 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
17497
17498 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
17499 instead of a rotate.
17500
17501 2015-08-27 Marek Polacek <polacek@redhat.com>
17502
17503 PR middle-end/67005
17504 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
17505 an entry into an irreducible region.
17506
17507 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17508
17509 * configure: Regenerate.
17510
17511 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
17512
17513 PR tree-optimization/67283
17514 * tree-sra.c (type_consists_of_records_p): Rename to...
17515 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
17516
17517 (completely_scalarize_record): Rename to...
17518 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
17519 (scalarize_elem): New.
17520
17521 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
17522
17523 * tree-sra.c (completely_scalarize_var): Rename to...
17524 (create_total_scalarization_access): ... Here. Drop call to
17525 completely_scalarize_record.
17526
17527 (analyze_all_variable_accesses): Replace completely_scalarize_var
17528 with create_total_scalarization_access and completely_scalarize_record.
17529
17530 2015-08-27 Alan Modra <amodra@gmail.com>
17531
17532 PR target/67356
17533 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
17534 for operand 1.
17535
17536 2015-08-27 Richard Biener <rguenther@suse.de>
17537
17538 * passes.c (rest_of_decl_compilation): Guard early_global_decl
17539 call with !seen_error ().
17540 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
17541 early debug generation and finish...
17542 (symbol_table::compile): ... here to put it after a !seen_error ()
17543 guard.
17544
17545 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17546
17547 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
17548 Solaris 12+.
17549
17550 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17551 Andre Vieira <andre.simoesdiasvieira@arm.com>
17552
17553 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
17554 (*cb<optab><mode>1): Likewise.
17555 (*tb<optab><mode>1): Likewise.
17556 (*cb<optab><mode>1): Likewise.
17557 * config/aarch64/iterators.md (inv_cb): New code attribute.
17558 (inv_tb): Likewise.
17559 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
17560 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
17561
17562 2015-08-27 Richard Biener <rguenther@suse.de>
17563
17564 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
17565
17566 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
17567
17568 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
17569 trap to fix ICE.
17570
17571 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
17572
17573 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
17574 Add declaration.
17575
17576 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
17577 comment.
17578 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
17579 floating point in VSX registers.
17580 (rs6000_output_move_128bit): Always print out the set insn if we
17581 can't generate an appropriate 128-bit move.
17582 (rs6000_generate_compare): Add support for IEEE 128-bit floating
17583 point in VSX registers comparisons.
17584 (rs6000_expand_float128_convert): Likewise.
17585
17586 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
17587 predicate for only GPR hard registers.
17588
17589 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
17590 modes to iterators. Add new iterators for moving 128-bit values in
17591 scalar FPR registers and VSX registers.
17592 (FMOVE128): Likewise.
17593 (FMOVE128_FPR): Likewise.
17594 (FMOVE128_GPR): Likewise.
17595 (FMOVE128_VSX): Likewise.
17596 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
17597 in VSX registers.
17598 (IFKF): Likewise.
17599 (IBM128): Likewise.
17600 (TFIFKF): Likewise.
17601 (RELOAD): Add IEEE 128-bit floating point modes.
17602 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
17603 floating point in VSX registers modes.
17604 (signbit<mode>2, IBM128 iterator): Likewise.
17605 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
17606 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
17607 (negtf2): Likewise.
17608 (neg<mode>2, TFIFKF iterator): Likewise.
17609 (negtf2_internal): Likewise.
17610 (abstf2): Likewise.
17611 (abs<mode>2, TFIFKF iterator): Likewise.
17612 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
17613 VSX insn support for negate, absolute value, and negative absolute
17614 value.
17615 (ieee_128bit_vsx_neg<mode>2): Likewise.
17616 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
17617 (ieee_128bit_vsx_abs<mode>2): Likewise.
17618 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
17619 (ieee_128bit_vsx_nabs<mode>2): Likewise.
17620 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
17621 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
17622 floating point in VSX registers.
17623 (unpack<mode>_dm): Likewise.
17624 (unpack<mode>_nodm): Likewise.
17625 (pack<mode>): Likewise.
17626 (unpackv1ti): Likewise.
17627 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
17628 (packv1ti): Likewise.
17629 (pack<mode>, FMOVE128_VSX iterator): Likewise.
17630 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
17631 registers.
17632 (extenddftf2_internal): Likewise.
17633 (trunctfdf2): Likewise.
17634 (trunctfdf2_internal2): Likewise.
17635 (fix_trunc_helper): Likewise.
17636 (fix_trunctfdi2"): Likewise.
17637 (floatditf2): Likewise.
17638 (floatuns<mode>tf2): Likewise.
17639 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
17640 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
17641 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
17642 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
17643 (float<SDI:mode><IFKF:mode>2): Likewise.
17644 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
17645
17646 2015-08-26 Renlin Li <renlin.li@arm.com>
17647
17648 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
17649
17650 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
17651 Jiong Wang <jiong.wang@arm.com>
17652
17653 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
17654 (tlsie_tiny_<mode>): New define_insn.
17655 (tlsie_tiny_sidi): Likewise.
17656 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
17657 SYMBOL_TINY_TLSIE.
17658 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
17659 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
17660 SYMBOL_TINY_TLSIE.
17661 (aarch64_expand_mov_immediate): Likewise.
17662 (aarch64_print_operand): Likewise.
17663 (arch64_classify_tls_symbol): Likewise.
17664
17665 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
17666
17667 * config/arm/arm-arches.def: Replace single value flags with
17668 an initializer built from ARM_FSET_MAKE_CPU1.
17669 * config/arm/arm-cores.def: Likewise.
17670 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
17671 derivation from the ARM_CORE macro definition, use the given value
17672 instead.
17673 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
17674 ARM_ARCH macro definition, use the given value instead.
17675
17676 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
17677
17678 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
17679 feature set.
17680 (struct builtin_description): Replace field mask with field
17681 features.
17682 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
17683 (IWMMXT2_BUILTIN): Likewise.
17684 (IWMMXT2_BUILTIN2): Likewise.
17685 (FP_BUILTIN): Likewise.
17686 (CRC32_BUILTIN): Likewise.
17687 (CRYPTO_BUILTIN): Likewise.
17688 (iwmmx_mbuiltin): Likewise.
17689 (iwmmx2_mbuiltin): Likewise.
17690 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
17691 struct builtin_description.
17692
17693 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
17694
17695 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
17696 (struct builtin_description): Change type of mask to unsigned
17697 long.
17698 * config/arm/arm-protos.h (insn_flags): Declare as type
17699 arm_feature_set.
17700 (tune_flags): Likewise.
17701 * config/arm/arm.c (feature_count): New.
17702 (insn_flags): Define as type arm_feature_set.
17703 (tune_flags): Likewise.
17704 (struct processors): Define field flags as type arm_feature_set.
17705 (all_cores): Update for change to struct processors.
17706 (all_architectures): Likewise.
17707 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
17708 macros.
17709 (arm_option_override_internal): Likewise.
17710 (arm_option_override): Likewise.
17711
17712 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
17713 Jiong Wang <jiong.wang@arm.com>
17714
17715 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
17716 tls size for tiny, small, large memory model.
17717 (aarch64_load_symref_appropriately): Support new symbol types.
17718 (aarch64_expand_mov_immediate): Likewise.
17719 (aarch64_print_operand): Likewise.
17720 (aarch64_classify_tls_symbol): Likewise.
17721 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
17722 (aarch64_symbol_type): Likewise.
17723 * config/aarch64/aarch64.md (tlsle): Deleted.
17724 (tlsle12_<mode>): New define_insn.
17725 (tlsle24_<mode>): Likewise.
17726 (tlsle32_<mode>): Likewise.
17727 (tlsle48_<mode>): Likewise.
17728 * doc/sourcebuild.texi (AArch64-specific attributes): Document
17729 "aarch64_tlsle32".
17730
17731 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
17732
17733 * config/arm/arm-protos.h (FL_NONE): New.
17734 (FL_ANY): New.
17735 (arm_feature_set): New.
17736 (ARM_FSET_MAKE): New.
17737 (ARM_FSET_MAKE_CPU1): New.
17738 (ARM_FSET_MAKE_CPU2): New.
17739 (ARM_FSET_CPU1): New.
17740 (ARM_FSET_CPU2): New.
17741 (ARM_FSET_EMPTY): New.
17742 (ARM_FSET_ANY): New.
17743 (ARM_FSET_HAS_CPU1): New.
17744 (ARM_FSET_HAS_CPU2): New.
17745 (ARM_FSET_HAS_CPU): New.
17746 (ARM_FSET_ADD_CPU1): New.
17747 (ARM_FSET_ADD_CPU2): New.
17748 (ARM_FSET_DEL_CPU1): New.
17749 (ARM_FSET_DEL_CPU2): New.
17750 (ARM_FSET_UNION): New.
17751 (ARM_FSET_INTER): New.
17752 (ARM_FSET_XOR): New.
17753 (ARM_FSET_EXCLUDE): New.
17754 (AFM_FSET_IS_EMPTY): New.
17755 (ARM_FSET_CPU_SUBSET): New.
17756
17757 2015-08-26 Jiong Wang <jiong.wang@arm.com>
17758
17759 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
17760 SYMBOL_TLSLE to SYMBOL_TLSLE24.
17761 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17762 Likewise.
17763 (aarch64_expand_mov_immediate): Likewise.
17764 (aarch64_print_operand): Likewise.
17765 (aarch64_classify_symbol): Likewise.
17766
17767 2015-08-26 Jiong Wang <jiong.wang@arm.com>
17768
17769 * config/aarch64/aarch64.opt (mtls-size): New entry.
17770 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
17771 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
17772 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
17773
17774 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
17775
17776 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
17777 ARM_CORE entry. Fix some white-space.
17778 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
17779 ARM_CORE definition.
17780
17781 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17782
17783 * fold-const.c (fold_binary_loc) : Move Optimize
17784 root(x)*root(y) as root(x*y) to match.pd.
17785 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
17786 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
17787 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
17788 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
17789 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
17790 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
17791 (mult (exps:s @0) (exps:s @1)) : New simplifier.
17792 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
17793 (rdiv @0 (exps:s @1)) : New simplifier.
17794
17795 2015-08-25 Joseph Myers <joseph@codesourcery.com>
17796
17797 * gcc.c (driver::finalize): Only assign to extra_specs if
17798 [EXTRA_SPECS].
17799
17800 2015-08-25 Marek Polacek <polacek@redhat.com>
17801
17802 PR middle-end/67330
17803 * varasm.c (declare_weak): Return after giving an error.
17804
17805 2015-08-25 David Malcolm <dmalcolm@redhat.com>
17806
17807 * gcc-main.c (main): Add params to driver ctor.
17808 * gcc.c (class env_manager): New.
17809 (env): New global.
17810 (env_manager::init): New.
17811 (env_manager::get): New.
17812 (env_manager::xput): New.
17813 (env_manager::restore): New.
17814 Poison getenv and putenv.
17815 (DEFAULT_TARGET_SYSTEM_ROOT): New.
17816 (target_system_root): Update initialization to use
17817 DEFAULT_TARGET_SYSTEM_ROOT.
17818 (struct spec_list): Add field "default_ptr".
17819 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
17820 (init_spec): Likewise.
17821 (set_spec): Clear field "default_ptr".
17822 (read_specs): Free "spec" and "buffer".
17823 (xputenv): Reimplement in terms of env_manager.
17824 (process_command): Replace ::getenv calls with calls to the
17825 env_manager singleton.
17826 (process_brace_body): Free string in three places.
17827 (driver::driver): New.
17828 (driver::~driver): New.
17829 (used_arg): Convert from a function to...
17830 (class used_arg_t): ...this class, and...
17831 (used_arg): ...this new global instance.
17832 (used_arg_t::finalize): New function.
17833 (getenv_spec_function): Add "const" to local "value". Replace
17834 ::getenv call with call to the env_manager singleton.
17835 (path_prefix_reset): New function.
17836 (driver::finalize): New function.
17837 * gcc.h (driver::driver): New.
17838 (driver::~driver): New.
17839 (driver::finalize): New.
17840
17841 2015-08-25 Nathan Sidwell <nathan@acm.org>
17842
17843 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
17844 target doesn't have one.
17845
17846 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
17847
17848 PR target/67346
17849 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
17850
17851 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
17852
17853 PR target/67344
17854 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
17855 a define_insn, remove second alternative.
17856
17857 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
17858 Joseph Myers <joseph@codesourcery.com>
17859
17860 * gcc.c (struct switchstr): Expand comment.
17861
17862 2015-08-25 Nathan Sidwell <nathan@acm.org>
17863
17864 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
17865 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
17866
17867 2015-08-25 Richard Biener <rguenther@suse.de>
17868
17869 PR middle-end/67306
17870 * genmatch.c (expr::gen_transform): Verify the result of
17871 builtin_decl_implicit.
17872 (dt_simplify::gen_1): Likewise.
17873
17874 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
17875
17876 * config/arm/constraints.md: Also list Cs and US ARM-specific
17877 constraints as used.
17878
17879 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
17880
17881 PR target/66609
17882 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
17883 UNSPEC_PCREL.
17884 (nonpic_symbol_mentioned_p): Likewise.
17885 (sh_delegitimize_address): Likewise.
17886 (sh_function_ok_for_sibcall): Take into account weak symbols.
17887 (sh_expand_sym_label2reg): New.
17888 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
17889 * config/sh/sh.md (UNSPEC_PCREL): New enum.
17890 (call_pcrel): Use sh_expand_sym_label2reg.
17891 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
17892 (symPCREL_label2reg) New expand.
17893
17894 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
17895
17896 * graphite-poly.c: Change type of region from void* to sese.
17897 * graphite-poly.h (struct scop): Changing the type of scop::region
17898 from void* to sese. Change accessor macro accordingly.
17899 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
17900
17901 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
17902
17903 * graphite-scop-detection.c (stmt_simple_for_scop_p):
17904 Constrain only on INTEGER_TYPE.
17905
17906 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17907
17908 PR target/67211
17909 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
17910 -mefficient-unaligned-vsx on ISA 2.7.
17911
17912 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
17913 option to a masked option.
17914
17915 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
17916 logic for -mefficient-unaligned-vsx so that it is set via an arch
17917 ISA option, instead of being set if -mtune=power8 is set. Move
17918 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
17919 near other default option handling.
17920
17921 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
17922
17923 * genflags.c (gen_macro): Delete.
17924 (gen_proto): Don't create GEN.*CALL.* macros.
17925 * gensupport.h (get_file_location): Declare.
17926 * gensupport.c (rtx_locs): New variable.
17927 (read_md_rtx): Record rtx locations.
17928 (get_file_location): New function.
17929 * target-insns.def (call, call_pop, call_value, call_value_pop)
17930 (sibcall, sibcall_value): New patterns.
17931 * gentarget-def.c (parse_argument): New function.
17932 (def_target_insn): Use it. Handle optional operands. Raise an
17933 error if an .md pattern has the wrong number of operands for the
17934 pattern name. Remove the names of unused operands from the prototype.
17935 * builtins.c (expand_builtin_apply): Use targetm functions
17936 instead of HAVE_call_value and GEN_CALL_VALUE.
17937 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
17938 and sibcall_value_pop.
17939 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
17940 of GEN_CALL.
17941 * config/alpha/alpha.md (untyped_call): Likewise.
17942 * config/iq2000/iq2000.md (untyped_call): Likewise.
17943 * config/m68k/m68k.md (untyped_call): Likewise.
17944 * config/mips/mips.md (untyped_call): Likewise.
17945 * config/pa/pa.md (untyped_call): Likewise.
17946 * config/rs6000/rs6000.md (untyped_call): Likewise.
17947 * config/sparc/sparc.md (untyped_call): Likewise.
17948 * config/tilegx/tilegx.md (untyped_call): Likewise.
17949 * config/tilepro/tilepro.md (untyped_call): Likewise.
17950 * config/visium/visium.md (untyped_call): Likewise.
17951 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
17952 gen_call_value instead of GEN_CALL_VALUE.
17953 * config/arm/arm.md (untyped_call): Likewise.
17954 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
17955 GEN_CALL.
17956
17957 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
17958
17959 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
17960 (have_cbranchcc4): New variable.
17961 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
17962 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
17963 (if_convert): Initialize have_cbranchcc4.
17964
17965 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
17966
17967 * builtins.c (expand_cmpstrn): Rename to...
17968 (expand_cmpstrn_or_cmpmem): ...this.
17969 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
17970 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
17971 Remove mode argument.
17972 (expand_builtin): Update accordingly.
17973
17974 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
17975
17976 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
17977 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
17978 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
17979 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
17980 Add predicates for operands 0 and 3.
17981 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
17982 operand.
17983 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
17984 immediate_operand to nonmemory_operand.
17985
17986 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
17987
17988 * df-scan.c (df_insn_info_init_fields): New function, split out
17989 from...
17990 (df_insn_create_insn_record): ...here.
17991 (df_insn_info_free_fields): New function, split out from...
17992 (df_insn_info_delete): ...here.
17993 (df_insn_rescan): Use the new functions instead of freeing and
17994 reallocating the df_insn_info.
17995
17996 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17997
17998 * doc/install.texi (Binaries): Remove links no longer valid.
17999
18000 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
18001
18002 * config/nvptx/mkoffload.c (process): Replace
18003 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
18004
18005 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
18006
18007 PR target/67329
18008 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
18009
18010 2015-08-24 Renlin Li <renlin.li@arm.com>
18011
18012 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
18013 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
18014 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
18015 * config/arm/constraints.md ("j"): Add check for high code.
18016
18017 2015-08-24 Tom de Vries <tom@codesourcery.com>
18018
18019 PR tree-optimization/65468
18020 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
18021 chunk_size is one.
18022
18023 2015-08-24 Nathan Sidwell <nathan@acm.org>
18024
18025 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
18026 change to nvptx_type_from_mode call. Use arg_promotion for both
18027 split and non-split args.
18028
18029 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18030
18031 * target-insns.def (movstr): New pattern.
18032 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
18033 (expand_movstr): Use targetm rather than HAVE_movstr/
18034 CODE_FOR_movstr.
18035
18036 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18037
18038 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
18039 cast syntax.
18040
18041 2015-08-24 Andrew Pinski <apinski@cavium.com>
18042
18043 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
18044 AARCH64_EXTRA_TUNING_OPTION.
18045 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
18046 New enum.
18047 (aarch64_extra_tuning_flags): Base the shifted value on the index
18048 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
18049 * config/aarch64/aarch64.c: Remove the last argument to
18050 AARCH64_EXTRA_TUNING_OPTION.
18051
18052 2015-08-23 Nathan Sidwell <nathan@acm.org>
18053
18054 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
18055 decls.
18056 (nvptx_declare_function_name): Insert formatting tabs for
18057 consistency.
18058
18059 2015-08-23 Tom de Vries <tom@codesourcery.com>
18060
18061 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
18062 parm_decl, rather than generating a dummy default def in cfun.
18063 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
18064 ssa_name from cfun and child_fn do not share a stmt as def stmt.
18065 (move_stmt_op): Handle PARM_DECl.
18066 (gather_ssa_name_hash_map_from): New function.
18067 (move_sese_region_to_fn): Add default defs for function params, and add
18068 them to vars_map. Release copied ssa names.
18069 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
18070
18071 2015-08-23 Tom de Vries <tom@codesourcery.com>
18072
18073 * doc/sourcebuild.texi: Rename vect_no_int_max with
18074 vect_no_int_min_max. Update description.
18075
18076 2015-08-22 Andrew Pinski <apinski@cavium.com>
18077
18078 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
18079 * config/aarch64/aarch64-protos.h
18080 (aarch64_fusion_pairs_index): New enum.
18081 (aarch64_fusion_pairs): Base the shifted value on the index instead
18082 Rewrite AARCH64_FUSE_ALL to be based on the end index.
18083 of the argument to AARCH64_FUSION_PAIR.
18084 * config/aarch64/aarch64.c: Remove the last argument to
18085 AARCH64_FUSION_PAIR.
18086
18087 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
18088
18089 * dominance.c (new_zero_array): Define.
18090 (dom_info): Redefine as class with proper encapsulation.
18091 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
18092 Add new members.
18093 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
18094 allocations/deallocations. Pass function as parameter (instead of
18095 using cfun).
18096 (dom_info::get_idom): Define accessor method.
18097 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
18098 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
18099 (calculate_dominance_info): Adjust to use dom_info class.
18100 (verify_dominators): Likewise.
18101
18102 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
18103
18104 * print-rtl.c (print_rtx): Check the correct range for
18105 flag_dump_unnumbered_links to behave as documented.
18106
18107 PR rtl-optimization/67227
18108 PR rtl-optimization/64164
18109 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
18110 (nonoverlapping_memrefs_p): Test offsets and sizes when given
18111 identical gimple_reg exprs.
18112
18113 2015-08-21 Nathan Sidwell <nathan@acm.org>
18114
18115 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
18116 expansion.
18117 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
18118 crtl->stack_alignment_needed to determine alignment.
18119 (nvptx_get_drap_rtx): New.
18120 (TARGET_GET_DRAP_RTX): Override.
18121 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
18122
18123 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18124
18125 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
18126
18127 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18128
18129 * configure.ac: Remove uwin* cases.
18130 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
18131 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
18132 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
18133 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
18134 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
18135 i[34567]86-*-uwin*, powerpc-*-beos*.
18136
18137 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
18138
18139 * gencodes.c (gencodes): Print the comma for the preceding
18140 enum value rather than the current one. Use aliased enum values
18141 rather than #defines for compiled-out patterns.
18142 (main): Update accordingly. Replace LAST_INSN_CODE with
18143 NUM_INSN_CODES.
18144 * lra.c (insn_code_data): Update accordingly.
18145 (finish_insn_code_data_once, get_static_insn_data): Likewise.
18146 * recog.h (target_recog): Likewise.
18147 (preprocess_insn_constraints): Change parameter to unsigned int.
18148 * recog.c (preprocess_insn_constraints): Likewise.
18149 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
18150 * tree-vect-stmts.c (vectorizable_operation): Simplify.
18151
18152 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
18153
18154 PR rtl-optimization/61657
18155 * loop-iv.c (iv_number_of_iterations): Declare up and down as
18156 unsigned. Remove superflous uint64_t cast.
18157
18158 2014-08-21 Felix Yang <felix.yang@huawei.com>
18159 Jiji Jiang <jiangjiji@huawei.com>
18160
18161 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
18162 argument and get builtin function code directly from CALL.
18163 (gimple_stringop_fixed_value): Modified accordingly.
18164 (gimple_stringops_transform, gimple_stringops_values_to_profile):
18165 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
18166
18167 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
18168
18169 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
18170
18171 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18172
18173 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
18174 to match.pd.
18175 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
18176 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
18177 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
18178 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
18179 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
18180 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
18181 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
18182 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
18183 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
18184 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
18185
18186 * match.pd (SIN ) : New Operator.
18187 (TAN) : New Operator.
18188 (mult (SQRT@1 @0) @1) : New simplifier.
18189 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
18190 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
18191 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
18192 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
18193 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
18194 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
18195 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
18196 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
18197 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
18198 (rdiv @0 (POW:s @1 @2)) : New simplifier.
18199
18200 2015-08-21 Bin Cheng <bin.cheng@arm.com>
18201
18202 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
18203 loop if EXPR is simplified to const value.
18204
18205 2015-08-21 Yury Gribov <y.gribov@samsung.com>
18206
18207 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
18208 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
18209
18210 2015-08-21 Richard Biener <rguenther@suse.de>
18211
18212 PR middle-end/67285
18213 * gimple-fold.c (replace_stmt_with_simplification): Assert
18214 seq is empty when replacing a call with itself but different
18215 arguments.
18216 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
18217 a call require that it is const.
18218
18219 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18220
18221 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
18222 * builtins.c (get_object_alignment_2): Adjust.
18223 * varasm.c (align_variable): Likewise.
18224 (get_variable_align): Likewise.
18225 (build_constant_desc): Likewise.
18226 (force_const_mem): Likewise.
18227 * doc/tm.texi.in: Likewise.
18228 * doc/tm.texi: Regenerate.
18229
18230 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18231
18232 * genconfig.c (main): Always define HAVE_cc0.
18233 * recog.c (rest_of_handle_peephole2): Adjust.
18234
18235 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18236
18237 * reorg.c (relax_delay_slots): Don't use #if to check value of
18238 HAVE_cc0.
18239
18240 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18241
18242 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
18243 * targhooks.c (default_have_conditional_execution): Adjust.
18244
18245 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
18246
18247 * rtl.h (rtvec_all_equal_p): Declare.
18248 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
18249 * rtl.c (rtvec_all_equal_p): New function.
18250 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
18251 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
18252 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
18253 * config/arm/arm.c (neon_vdup_constant): Likewise.
18254 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
18255 * config/tilegx/constraints.md (W, Y): Likewise.
18256 * config/tilepro/constraints.md (W, Y): Likewise.
18257 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
18258 (classify_immediate): Use unwrap_const_vec_duplicate.
18259 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
18260 (reg_or_v2s8bit_operand): Likewise.
18261 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
18262 (reg_or_v4s8bit_operand): Likewise.
18263
18264 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18265
18266 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
18267 (vec_shasigma_be): New #define.
18268 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
18269 (VPMSUMH): Likewise.
18270 (VPMSUMW): Likewise.
18271 (VPMSUMD): Likewise.
18272 (VPMSUM): New BU_P8V_OVERLOAD_2.
18273 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
18274 entries for VEC_MADD and VEC_VPMSUM.
18275
18276 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
18277
18278 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
18279 Multiply argument avr_n_flash by 64 to match unit of "KiB".
18280 (avr_pgm_check_var_decl): Same.
18281
18282 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
18283
18284 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
18285 initialization of HFmode scalar type (float16_t) to...
18286 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
18287 code.
18288
18289 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
18290
18291 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
18292 having an -mfp16-format.
18293
18294 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
18295
18296 * config/i386/predicates.md (vector_all_ones_operand): Use
18297 CONSTM1_RTX to simplify definition.
18298
18299 2015-08-20 Richard Biener <rguenther@suse.de>
18300
18301 * toplev.c (compile_file): Remove loop calling late_global_decl
18302 on all symbols.
18303 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
18304 on decls we assembled.
18305
18306 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
18307
18308 * common/config/aarch64/aarch64-common.c
18309 (AARCH64_CPU_NAME_LENGTH): Delete.
18310 (aarch64_option_extension): New.
18311 (all_extensions): Likewise.
18312 (processor_name_to_arch): Likewise.
18313 (arch_to_arch_name): Likewise.
18314 (all_cores): New.
18315 (all_architectures): Likewise.
18316 (aarch64_get_extension_string_for_isa_flags): Likewise.
18317 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
18318 architecture names.
18319 * config/aarch64/aarch64-protos.h
18320 (aarch64_get_extension_string_for_isa_flags): New.
18321 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
18322 (aarch64_option_print): Get the string to print from
18323 aarch64_get_extension_string_for_isa_flags.
18324 (aarch64_declare_function_name): Likewise.
18325 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
18326 (MCPU_TO_MARCH_SPEC): This.
18327 (ASM_CPU_SPEC): Use it.
18328 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
18329 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
18330 (EXTRA_SPEC_FUNCTIONS): Use it.
18331
18332 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
18333
18334 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
18335 expansion when !ISA_HAS_LWL_LWR.
18336 (mips_block_move_straight): Update the size of elements copied to
18337 account for alignment when !ISA_HAS_LWL_LWR.
18338 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
18339
18340 2015-08-19 Jiong Wang <jiong.wang@arm.com>
18341
18342 * expr.c (expand_expr_real_2): Check gimple statement during
18343 LSHIFT_EXPR expand.
18344
18345 2015-08-19 Magnus Granberg <zorry@gentoo.org>
18346
18347 * common.opt (fstack-protector): Initialize to -1.
18348 (fstack-protector-all): Likewise.
18349 (fstack-protector-strong): Likewise.
18350 (fstack-protector-explicit): Likewise.
18351 * configure.ac: Add --enable-default-ssp.
18352 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
18353 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
18354 -1.
18355 * doc/install.texi: Document --enable-default-ssp.
18356 * config.in: Regenerated.
18357 * configure: Likewise.
18358
18359 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
18360
18361 PR rtl-optimization/64164
18362 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
18363 (parm_in_stack_slot_p): ... this. Disregard mode, what
18364 matters is whether the parm will live in a pseudo or a stack
18365 slot.
18366 (expand_one_ssa_partition): Deal with params without a default
18367 def. Disregard mode.
18368 * cfgexpand.h: Renamed function declaration.
18369 * tree-ssa-coalesce.c: Adjust.
18370 * function.c (split_complex_args): Allocate stack slot for
18371 unassigned parms before splitting.
18372 (parm_in_unassigned_mem_p): New. Use it instead of
18373 parm_maybe_byref_p throughout this file.
18374 (assign_parm_setup_block): Use it. Accept pseudos in the
18375 expand-assigned rtl.
18376 (assign_parm_setup_reg): Drop BLKmode requirement.
18377 (assign_parm_setup_stack): Allocate and fill in the address of
18378 unassigned MEM parms.
18379
18380 2015-08-19 David Sherwood <david.sherwood@arm.com>
18381
18382 * genmodes.c (emit_mode_unit_size_inline): New function.
18383 (emit_mode_unit_precision_inline): New function.
18384 (emit_insn_modes_h): Emit new #define. Emit new functions.
18385 (emit_mode_unit_size): New function.
18386 (emit_mode_unit_precision): New function.
18387 (emit_mode_adjustments): Add mode_unit_size adjustments.
18388 (emit_insn_modes_c): Emit new arrays.
18389 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
18390 use new inline methods.
18391
18392 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18393
18394 * config/aarch64/aarch64.c (bit_count): Delete prototype
18395 and definition.
18396 (aarch64_print_operand): Use popcount_hwi instead of the above.
18397
18398 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18399
18400 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
18401 comment.
18402
18403 2015-08-19 Marek Polacek <polacek@redhat.com>
18404
18405 PR middle-end/67133
18406 * gimple-ssa-isolate-paths.c
18407 (insert_trap_and_remove_trailing_statements): Rename to ...
18408 (insert_trap): ... this. Don't remove trailing statements; split
18409 block instead.
18410 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
18411
18412 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
18413
18414 PR other/67042
18415 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
18416 conditionalize the whole on __GNUC__. Add fallback code
18417 depending neither on undefined nor implementation-defined behaviour.
18418
18419 2015-08-19 Jiong Wang <jiong.wang@arm.com>
18420
18421 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
18422 whitespaces with tab.
18423
18424 2015-08-19 Florian Weimer <fweimer@redhat.com>
18425
18426 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
18427 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
18428 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
18429 Move Name_Ids instantiation to the Prj.Proc package, to avoid
18430 trampolines.
18431
18432 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18433
18434 * config/arm/arm.c (bounds_check): Use %wd print format
18435 for HOST_WIDE_INT arguments.
18436
18437 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
18438
18439 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
18440 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
18441 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
18442 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
18443 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
18444 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
18445 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
18446 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
18447 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
18448 typedefs.
18449
18450 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
18451
18452 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
18453 function.c, graphite-scop-detection.c, haifa-sched.c,
18454 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
18455 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
18456 varasm.c: Remove typedefs of structs.
18457
18458 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
18459
18460 * config/rs6000/altivec.h (vec_adde): New define.
18461 (vec_addec): Likewise.
18462 (vec_double): Likewise.
18463 (vec_bperm): Likewise.
18464 (vec_gb): Likewise.
18465 * config/rs6000/rs6000-builtin.def (ADDE): New
18466 BU_ALTIVEC_OVERLOAD_3.
18467 (ADDEC): Likewise.
18468 (DOUBLE): New BU_VSX_OVERLOAD_1.
18469 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
18470 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
18471 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
18472 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
18473 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
18474 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
18475 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
18476 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
18477 and P8V_BUILTIN_VEC_VBPERMQ.
18478
18479 2015-08-18 Jason Merrill <jason@redhat.com>
18480
18481 * print-tree.c (print_node): Handle TREE_BINFO.
18482
18483 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18484
18485 PR middle-end/36757
18486 * builtins.c (expand_builtin_signbit): Add asserts to make sure
18487 we can expand BUILT_IN_SIGNBIT inline.
18488 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
18489 * doc/extend.texi: Document the type-generic __builtin_signbit.
18490
18491 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
18492
18493 PR rtl-optimization/67218
18494 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
18495 (simplify_unary_operation_1): Use it.
18496
18497 2015-08-18 Marek Polacek <polacek@redhat.com>
18498
18499 PR middle-end/67222
18500 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
18501 if the call isn't valid.
18502 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
18503 gimple_call_builtin_p.
18504 (call_may_clobber_ref_p_1): Likewise.
18505 (stmt_kills_ref_p): Likewise.
18506
18507 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
18508
18509 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
18510 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
18511 (mips_hard_regno_scratch_ok): Likewise.
18512 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
18513 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
18514
18515 2015-08-18 Bin Cheng <bin.cheng@arm.com>
18516
18517 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
18518 (determine_value_range): Call refine_value_range_using_guard for
18519 each loop initial condition to improve value range.
18520
18521 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
18522
18523 * config/i386/i386.c: Remove include of fibheap.h.
18524
18525 2015-08-17 Richard Biener <rguenther@suse.de>
18526
18527 PR tree-optimization/67221
18528 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
18529 (sccvn_dom_walker::before_dom_children): Mark backedges of
18530 non-executable blocks as not executable.
18531
18532 2015-08-17 David Sherwood <david.sherwood@arm.com>
18533
18534 * config/arm/arm.c (neon_element_bits): Replace call to
18535 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
18536 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
18537 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
18538 (neon_vdup_lane<mode>): Likewise.
18539 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
18540 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
18541 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
18542 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
18543 * config/spu/spu.c (arith_immediate_p): Likewise.
18544 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
18545 * expr.c (expand_expr_real_2): Likewise.
18546 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
18547 * simplify-rtx.c (simplify_immed_subreg): Likewise.
18548 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
18549 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
18550 New variable.
18551 * fold-const.c (fold_binary_loc): Replace call to
18552 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
18553 GET_MODE_UNIT_PRECISION (m).
18554
18555 2015-08-17 Mike Stump <mikestump@comcast.net>
18556
18557 * config/arm/arm.c (arm_block_move_unaligned_straight):
18558 Emit normal move instead of unaligned load when source or destination
18559 are appropriately aligned.
18560
18561 2015-08-17 Richard Biener <rguenther@suse.de>
18562 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18563
18564 PR middle-end/16107
18565 * match.pd (div (coss (op @0) : New simplifier.
18566
18567 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
18568
18569 PR rtl-optimization/64164
18570 PR bootstrap/66978
18571 PR middle-end/66983
18572 PR rtl-optimization/67000
18573 PR middle-end/67034
18574 PR middle-end/67035
18575 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18576 * tree-ssa-copyrename.c: Removed.
18577 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18578 -ftree-coalesce-vars.
18579 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18580 * common.opt (ftree-copyrename): Ignore.
18581 (ftree-coalesce-inlined-vars): Likewise.
18582 * doc/invoke.texi: Remove the ignored options above.
18583 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18584 * tree-ssa-coalesce.h: ... here.
18585 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18586 headers required by it.
18587 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18588 across variables when flag_tree_coalesce_vars. Check register
18589 use and promoted modes to allow coalescing. Do not coalesce
18590 maybe-byref parms with SSA_NAMEs of other variables, or
18591 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
18592 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18593 with its member functions to tree-ssa-coalesce.c.
18594 (var_map_base_init): Likewise. Renamed to
18595 compute_samebase_partition_bases.
18596 (partition_view_normal): Drop want_bases parameter.
18597 (partition_view_bitmap): Likewise.
18598 * tree-ssa-live.h: Adjust declarations.
18599 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
18600 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18601 default defs at the entry point.
18602 (dump_part_var_map): New.
18603 (compute_optimized_partition_bases): New, called by...
18604 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18605 of compute_samebase_partition_bases. Adjust.
18606 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18607 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
18608 (ssa_default_def_partition): New.
18609 (get_rtl_for_parm_ssa_default_def): New.
18610 (align_local_variable, add_stack_var): Support anonymous SSA
18611 names.
18612 (defer_stack_allocation): Likewise. Declare earlier.
18613 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18614 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18615 Do no record deferred-allocation marker in
18616 SA.partition_to_pseudo.
18617 (expand_stack_vars): Adjust check for the marker in it.
18618 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18619 redundant MEM attr setting.
18620 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18621 from...
18622 (expand_one_stack_var): ... this. New wrapper to check and
18623 skip already expanded SSA partitions.
18624 (record_alignment_for_reg_var): New, factored out of...
18625 (expand_one_var): ... this.
18626 (expand_one_ssa_partition): New.
18627 (adjust_one_expanded_partition_var): New.
18628 (expand_one_register_var): Check and skip already expanded SSA
18629 partitions.
18630 (expand_used_vars): Don't create DECLs for anonymous SSA
18631 names. Expand all SSA partitions, then adjust all SSA names.
18632 (pass::execute): Replace the loops that set
18633 SA.partition_to_pseudo from partition leaders and cleared
18634 DECL_RTL for multi-location variables, and that which used to
18635 rename vars and set attrs, with one that clears DECL_RTL and
18636 checks that PARMs and RESULTs default_defs match DECL_RTL.
18637 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18638 * emit-rtl.c: Include stor-layout.h.
18639 (set_reg_attrs_for_parm): Handle NULL decl.
18640 (set_reg_attrs_for_decl_rtl): Take mode from expression if
18641 it's not a DECL.
18642 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
18643 rather than its possibly-NULL DECL.
18644 * explow.c (promote_ssa_mode): New.
18645 * explow.h (promote_ssa_mode): Declare.
18646 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18647 (read_complex_part): Export.
18648 * expr.h (read_complex_part): Declare.
18649 * cfgexpand.h (parm_maybe_byref_p): Declare.
18650 * function.c: Include cfgexpand.h.
18651 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18652 (use_register_for_parm_decl): Wrapper for the above to
18653 special-case the result_ptr.
18654 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18655 (split_complex_args): Take assign_parm_data_all argument.
18656 Pass it to rtl_for_parm. Set up rtl and context for split
18657 args. Reset complex parm before fetching its default decl
18658 rtl.
18659 (assign_parms_unsplit_complex): Use the default-def complex
18660 parm rtl if it matches the components.
18661 (assign_parms_augmented_arg_list): Adjust.
18662 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18663 multiple locations. Recognize split complex args.
18664 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18665 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18666 (assign_parm_setup_block): Prefer SSA-assigned location, and
18667 fill in its address if the memory location of a maybe-byref
18668 parm was not assigned by cfgexpand.
18669 (assign_parm_setup_reg): Likewise. Adjust its mode as
18670 needed. Use entry_parm for equiv if stack_parm is NULL. Make
18671 sure passed_pointer parms don't need conversion. Copy address
18672 or value as needed.
18673 (assign_parm_setup_stack): Prefer SSA-assigned location.
18674 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18675 rtl before testing for pointer bounds. Special-case result_ptr.
18676 (expand_function_start): Maybe reset DECL_RTL of result.
18677 Prefer SSA-assigned location for result and static chain.
18678 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
18679 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
18680 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18681 anonymous SSA names. Use promote_ssa_mode.
18682 (get_temp_reg): Likewise.
18683 (remove_ssa_form): Adjust.
18684 * stor-layout.c (layout_decl): Don't set mem attributes of
18685 non-MEMs.
18686 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18687 and get its reg_usage for reg invalidation.
18688 (compute_bb_dataflow): Pass it insn.
18689 (emit_notes_in_bb): Likewise.
18690
18691 2015-08-14 Marek Polacek <polacek@redhat.com>
18692
18693 * tree-core.h (tree_base): Fix typo.
18694
18695 2015-08-14 Marek Polacek <polacek@redhat.com>
18696
18697 PR middle-end/67133
18698 * gimple.c (infer_nonnull_range_by_attribute): Check that the
18699 nonnull argument position is not outside function arguments.
18700
18701 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
18702
18703 PR target/67143
18704 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
18705 'lconst_atomic' with 'const_atomic'.
18706 (atomic_fetch_<optab><mode>): Likewise.
18707 (atomic_<optab>_fetch<mode>): Likewise.
18708 * config/aarch64/iterators.md (lconst-atomic): Move below
18709 'const_atomic'.
18710 (const_atomic): New.
18711
18712 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
18713 Bernd Schmidt <bernds@codesourcery.com>
18714
18715 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
18716 debug options.
18717 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
18718 (DWARF2_DEBUGGING_INFO): Don't define.
18719 * debug.h (dwarf2_lineno_debug_hooks): Declare.
18720 * toplev.c (process_options): Add a case for it.
18721 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
18722 (dwarf2out_init): Skip most initializations if
18723 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
18724 case.
18725 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
18726 DWARF2_LINENO_DEBUGGING_INFO.
18727 * opts.c (set_debug_level): Likewise.
18728
18729 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
18730
18731 * config/arm/types.md (is_neon_type): Add missing types.
18732
18733 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
18734
18735 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
18736 for skylake.
18737 * config/i386/i386.c (PTA_SKYLAKE): New macros.
18738 (processor_alias_table): Add skylake description.
18739 (enum processor_model): Add skylake processor.
18740 (arch_names_table): Add skylake record.
18741 * doc/invoke.texi: Add skylake item.
18742
18743 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
18744
18745 * ira-int.h: Include recog.h.
18746 * ira-build.c: Don't include recog.h.
18747 * ira-color.c: Likewise.
18748 * ira-conflicts.c: Likewise.
18749 * ira-costs.c: Likewise.
18750 * ira-emit.c: Likewise.
18751 * ira-lives.c: Likewise.
18752 * ira.c: Likewise.
18753 * sched-deps.c: Likewise.
18754 * sel-sched.c: Likewise.
18755 * target-globals.c: Likewise.
18756
18757 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
18758
18759 PR bootstrap/55035
18760 * reload1.c (elimination_costs_in_insn): Make it obvious to the
18761 compiler that the n_dups and n_operands loop bounds are invariant.
18762
18763 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18764
18765 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
18766 expressions in A and B.
18767
18768 2015-08-13 Richard Biener <rguenther@suse.de>
18769
18770 * tree.c (nonnull_arg_p): Move from ...
18771 * tree-vrp.c (nonnull_arg_p): ... here.
18772 * tree.h (nonnull_arg_p): Declare.
18773 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
18774 here, register ptr != 0 for nonnull_arg_p pointer arguments.
18775 Properly initialize static chain and by-reference result pointer.
18776 (run_scc_vn): Adjust.
18777
18778 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
18779
18780 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
18781 TUNE_I6400.
18782
18783 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
18784
18785 * config/aarch64/aarch64-protos.h
18786 (aarch64_gen_atomic_cas): Declare.
18787 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
18788 Choose appropriate instruction pattern for the target.
18789 (aarch64_gen_atomic_cas): New.
18790 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
18791 (atomic_compare_and_swap<mode>_1): Rename to
18792 aarch64_compare_and_swap<mode>. Fix some indentation.
18793 (aarch64_compare_and_swap<mode>_lse): New.
18794 (aarch64_atomic_cas<mode>): New.
18795
18796 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
18797
18798 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
18799 (TARGET_LSE): New.
18800
18801 2015-08-13 Richard Biener <rguenther@suse.de>
18802
18803 PR tree-optimization/67191
18804 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
18805 assert we value-numbered last stmts operand because it can validly
18806 trigger for unreachable code.
18807
18808 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18809
18810 PR rtl-optimization/67103
18811 * ifcvt.c (noce_try_store_flag_constants): Move
18812 x = (-(test != 0) & (b - a)) + a transformation to...
18813 (noce_try_cmove): ... Here. Try it if normal conditional
18814 move fails.
18815
18816 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
18817
18818 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
18819 pseudo-processors.
18820 * config/mips/mips.md (processor): Remove w32 and w64.
18821
18822 2015-08-13 Richard Biener <rguenther@suse.de>
18823
18824 PR tree-optimization/66502
18825 PR tree-optimization/67167
18826 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
18827 backedge arguments.
18828 (vn_phi_lookup): Adjust.
18829 (vn_phi_insert): Likewise.
18830 (visit_phi): Prefer to value-number to another PHI node
18831 over value-numbering to a PHI argument.
18832 (init_scc_vn): Mark DFS back edges.
18833
18834 2015-08-13 Richard Biener <rguenther@suse.de>
18835
18836 * gimple.h (gcall::code_): New constant static member.
18837 (gcond::code_): Likewise.
18838 * gimple.c (gcall::code_): Define.
18839 (gcond::code_): Likewise.
18840 (is_a_helper <const gcond *>): Add.
18841 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
18842 and forward to a new gcall overload with less checking and a
18843 cheaper way to access the operand.
18844 (gimple_call_lhs_ptr): Likewise.
18845 (gimple_call_set_lhs): Likewise.
18846 (gimple_call_internal_p): Likewise.
18847 (gimple_call_with_bounds_p): Likewise.
18848 (gimple_call_set_with_bounds): Likewise.
18849 (gimple_call_internal_fn): Likewise.
18850 (gimple_call_set_ctrl_altering): Likewise.
18851 (gimple_call_ctrl_altering_p): Likewise.
18852 (gimple_call_fntype): Likewise.
18853 (gimple_call_fn): Likewise.
18854 (gimple_call_fn_ptr): Likewise.
18855 (gimple_call_set_fndecl): Likewise.
18856 (gimple_call_fndecl): Likewise.
18857 (gimple_call_chain): Likewise.
18858 (gimple_call_num_args): Likewise.
18859 (gimple_call_arg): Likewise.
18860 (gimple_call_arg_ptr): Likewise.
18861 (gimple_call_set_arg): Likewise.
18862 (gimple_call_noreturn_p): Likewise.
18863 (gimple_cond_code): Likewise.
18864 (gimple_cond_lhs): Likewise.
18865 (gimple_cond_rhs): Likewise.
18866 (gimple_has_lhs): Reduce checking.
18867
18868 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18869
18870 PR middle-end/25529
18871 * match.pd (div (mult @0 @1) @1) : New simplifier.
18872
18873 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
18874
18875 PR target/67071
18876 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
18877 predicate to allow construction of vector constants using the
18878 VSLDOI vector shift instruction.
18879
18880 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
18881 declaration.
18882
18883 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
18884 the number of bytes to be shifted left and filled in with either
18885 all zero or all one bits.
18886 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
18887 methods exist.
18888 (output_vec_const_move): On power8, generate XXLORC to generate
18889 a vector constant with all 1's. Do a split if we need to use a
18890 VSLDOI instruction.
18891
18892 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
18893 properly test for the MSB.
18894
18895 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
18896 vector constants that can be created with VSLDOI.
18897
18898 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
18899
18900 revert:
18901 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
18902 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
18903 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
18904 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
18905 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
18906 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18907 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
18908 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
18909 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
18910
18911 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
18912
18913 * config/xtensa/constraints.md (define_constraint "Y"): New
18914 constraint.
18915 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
18916 * config/xtensa/linux.h (ASM_SPEC): Likewise.
18917 * config/xtensa/predicates.md (move_operand): Match constants
18918 and symbols in the presence of TARGET_AUTO_LITPOOLS.
18919 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
18920 immediate references to TLS data.
18921 (xtensa_emit_move_sequence): Don't force constants to memory in
18922 the presence of TARGET_AUTO_LITPOOLS.
18923 (print_operand): Add 'y' format, same as default, but capable of
18924 printing SF mode constants as well.
18925 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
18926 (movsf_internal): Add movi pattern that loads literal.
18927 (movsf, movdf): Don't force constants to memory in the presence
18928 of TARGET_AUTO_LITPOOLS.
18929 (movdf_internal): Add 'Y' constraint.
18930 * config/xtensa/xtensa.opt (mauto-litpools): New option.
18931 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
18932
18933 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
18934
18935 * config/arm/arm-fpus.def: Replace booleans with feature flags.
18936 Update comment.
18937 * config/arm/arm.c (ARM_FPU): Update macro.
18938 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
18939 (TARGET_FP16): Likewise.
18940 (TARGET_CRYPTO): Likewise.
18941 (TARGET_NEON): Likewise.
18942 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
18943 field features.
18944
18945 2015-08-12 Tom de Vries <tom@codesourcery.com>
18946
18947 PR other/67092
18948 PR other/67098
18949 * doc/install.texi: Remove --with_host_libstdcxx item. Update
18950 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
18951 accordingly. Mention default for --with-stage1-ldflags.
18952
18953 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
18954
18955 * config/arm/arm.h (arm_fpu_feature_set): New.
18956 (ARM_FPU_FSET_HAS): New.
18957 (FPU_FL_NONE): New.
18958 (FPU_FL_NEON): New.
18959 (FPU_FL_FP16): New.
18960 (FPU_FL_CRYPTO): New.
18961
18962 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18963
18964 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
18965 after -mcmodel=large -fPIC sorry.
18966
18967 2015-08-12 Richard Biener <rguenther@suse.de>
18968
18969 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
18970 comparison operand order and commutative ternary op operand order.
18971 (sccvn_dom_walker::cond_stack): New state to track temporary
18972 expressions.
18973 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
18974 no longer valid.
18975 (sccvn_dom_walker::record_cond): Add a single temporary conditional
18976 expression.
18977 (sccvn_dom_walker::record_conds): Add a temporary conditional
18978 expressions and all related expressions also true/false.
18979 (sccvn_dom_walker::before_dom_children): Record temporary
18980 expressions based on the controlling condition of a single
18981 predecessor. When trying to simplify a conditional statement
18982 lookup expressions we might have inserted earlier.
18983
18984 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
18985
18986 PR target/67127
18987 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
18988 to ARM core registers.
18989
18990 2015-08-12 Nathan Sidwell <nathan@acm.org>
18991
18992 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
18993 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
18994
18995 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
18996
18997 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
18998 line with comments.
18999 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
19000
19001 2015-08-12 Richard Biener <rguenther@suse.de>
19002
19003 * gimple.h (remove_pointer): New trait.
19004 (GIMPLE_CHECK2): New inline template function.
19005 (gassign::code_): New constant static member.
19006 (is_a_helper<const gassign *>): Add.
19007 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
19008 and forward to a new gassign overload with less checking and a
19009 cheaper way to access the operand.
19010 (gimple_assign_lhs_ptr): Likewise.
19011 (gimple_assign_set_lhs): Likewise.
19012 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
19013 Likewise.
19014 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
19015 Likewise.
19016 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
19017 Likewise.
19018 (gimple_assign_rhs_code): Likewise.
19019 * gimple.c (gassign::code_): Define.
19020
19021 2015-08-12 Richard Biener <rguenther@suse.de>
19022
19023 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19024 Eliminate edges marked as not executable by SCCVN.
19025 * tree-ssa-sccvn.c: Include gimple-iterator.h.
19026 (cond_dom_walker): Rename to sccvn_dom_walker.
19027 (sccvn_dom_walker::before_dom_children): Value-number defs
19028 of all stmts.
19029 (run_scc_vn): Remove loop value-numbering all SSA names.
19030 Drop not visited SSA names to varying.
19031
19032 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
19033
19034 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
19035 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
19036 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
19037 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
19038 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19039 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19040 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
19041 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
19042 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
19043
19044 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
19045
19046 PR target/66954
19047 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
19048 to enum feature_priority and feature_list.
19049 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
19050 and isa_names_table.
19051
19052 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
19053
19054 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
19055 vect_induction_def.
19056
19057 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
19058
19059 PR c/66098
19060 PR c/66711
19061 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
19062 account when deciding what was the command-line status.
19063
19064 2015-08-11 Nathan Sidwell <nathan@acm.org>
19065
19066 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
19067
19068 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
19069 we're not the only contributor to target phi.
19070
19071 2015-08-11 Jiong Wang <jiong.wang@arm.com>
19072
19073 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
19074 FIXED_REG0.
19075
19076 2015-08-11 Tom de Vries <tom@codesourcery.com>
19077
19078 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
19079
19080 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
19081
19082 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
19083 with CPU_SLM.
19084 * config/i386/i386.md (cpu): Remove knl.
19085
19086 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
19087
19088 PR libgomp/65742
19089 PR middle-end/66332
19090 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
19091 open-coded sequence.
19092 * omp-low.c (oacc_process_reduction_data): Remove handline of
19093 GOMP_DEVICE_HOST_NONSHM.
19094
19095 * lto-streamer-in.c (lto_input_mode_table): Adjust to
19096 GET_MODE_INNER changes.
19097
19098 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
19099 Ilya Verbin <ilya.verbin@intel.com>
19100
19101 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
19102
19103 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
19104
19105 * doc/options.texi (EnabledBy): Document that the argument must be
19106 a Common option.
19107 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
19108 Not enabled by -Wall.
19109 * optc-gen.awk: Give nicer error messages. Detect if the argument
19110 of EnabledBy is not a Common option.
19111 * common.opt (Wnull-dereference): Not enabled by -Wall.
19112 * opt-functions.awk (lang_enabled_by): Nicer error messages.
19113
19114 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
19115
19116 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
19117 model == 0x4f as Broadwell.
19118
19119 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
19120
19121 PR rtl-optimization/67028
19122 * combine.c (simplify_comparison): Fix comment. Rearrange code.
19123 Add test to see if a const_int fits in the new mode.
19124
19125 2015-08-07 DJ Delorie <dj@redhat.com>
19126
19127 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
19128
19129 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
19130
19131 PR rtl-optimization/67029
19132 * ira-color.c: Include "recog.h" before including "ira-int.h".
19133 * target-globals.c: Likewise.
19134 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
19135 adds an alternative_mask argument and use it instead of
19136 preferred_alternatives.
19137 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
19138 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
19139 * sched-deps.c: Include "ira-int.h" after including "ira.h".
19140 (sched_analyze_insn): Update call to
19141 ira_implicitly_set_insn_hard_regs.
19142 * sel-sched.c: Include "ira-int.h" after including "ira.h".
19143 (implicit_clobber_conflict_p): Update call to
19144 ira_implicitly_set_insn_hard_regs.
19145
19146 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
19147
19148 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
19149
19150 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
19151
19152 PR target/67002
19153 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
19154 currently_expanding_to_rtl is set.
19155
19156 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
19157
19158 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
19159 * configure: Regenerate.
19160
19161 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19162 Jiong Wang <jiong.wang@arm.com>
19163
19164 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
19165 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
19166 (REG_CLASS_NAMES): Likewise.
19167 (REG_CLASS_CONTENTS): Likewise.
19168 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
19169 (aarch64_register_move_cost): Likewise.
19170 (aarch64_load_symref_appropriately): Invoke the new added pattern if
19171 possible.
19172 * config/aarch64/constraints.md (Uc0): New constraint.
19173
19174 2015-08-06 Jiong Wang <jiong.wang@arm.com>
19175
19176 * config/aarch64/constraints.md (Usf): Add the test of
19177 aarch64_is_noplt_call_p.
19178
19179 2015-08-06 Jiong Wang <jiong.wang@arm.com>
19180
19181 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
19182 declaration.
19183 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
19184 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
19185 (call_symbol): Likewise.
19186
19187 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
19188
19189 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
19190 for vectorizing multiplication patterns.
19191 * tree-vectorizer.h: Adjust the number of patterns.
19192
19193 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
19194
19195 * config/i386/sse.md (*vec_concatv2df): Declare added
19196 alternatives as sselog type.
19197
19198 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19199
19200 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
19201 all GPRs.
19202
19203 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19204
19205 * config/s390/s390.c (s390_expand_tbegin): Expand either
19206 tbegin_1_z13 or tbegin_1 depending on VX flag.
19207 * config/s390/s390.md ("tbegin_1_z13"): New expander.
19208
19209 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19210
19211 * config/s390/s390.opt: Clarify description for -mzvector
19212 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
19213 -mzvector.
19214
19215 2015-08-06 Richard Biener <rguenther@suse.de>
19216
19217 * gimple.h (gimple_call_set_fn): Access op member directly.
19218 (gimple_call_chain_ptr): Likewise.
19219 (gimple_call_set_chain): Likewise.
19220 (gimple_cond_lhs_ptr): Likewise.
19221 (gimple_cond_set_lhs): Likewise.
19222 (gimple_cond_rhs_ptr): Likewise.
19223 (gimple_cond_set_rhs): Likewise.
19224 (gimple_cond_true_label): Likewise.
19225 (gimple_cond_set_true_label): Likewise.
19226 (gimple_cond_set_false_label): Likewise.
19227 (gimple_cond_false_label): Likewise.
19228 (gimple_label_label): Likewise.
19229 (gimple_label_set_label): Likewise.
19230 (gimple_goto_set_dest): Likewise.
19231 (gimple_asm_input_op): Likewise.
19232 (gimple_asm_input_op_ptr): Likewise.
19233 (gimple_asm_set_input_op): Likewise.
19234 (gimple_asm_output_op): Likewise.
19235 (gimple_asm_output_op_ptr): Likewise.
19236 (gimple_asm_set_output_op): Likewise.
19237 (gimple_asm_clobber_op): Likewise.
19238 (gimple_asm_set_clobber_op): Likewise.
19239 (gimple_asm_label_op): Likewise.
19240 (gimple_asm_set_label_op): Likewise.
19241 (gimple_switch_index): Likewise.
19242 (gimple_switch_index_ptr): Likewise.
19243 (gimple_return_retval_ptr): Likewise.
19244 (gimple_return_retval): Likewise.
19245 (gimple_return_set_retval): Likewise.
19246 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
19247 (gimple_switch_label): Likewise.
19248 (gimple_switch_set_label): Likewise.
19249
19250 2015-08-06 Richard Biener <rguenther@suse.de>
19251
19252 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
19253 bool comparison canonicalization and restrict to integers.
19254
19255 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
19256
19257 * coretypes.h (enum symbol_visibility): Relocate here.
19258 * flag-types.h (enum symbol_visibility): Remove.
19259 * tree-core.h (enum symbol_visibility): Remove.
19260
19261 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
19262
19263 PR target/66870
19264 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
19265 for no_split_stack function attribute along with
19266 flag_split_stack.
19267 (rs6000_expand_split_stack_prologue): Likewise.
19268
19269 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
19270 Jeff Law <law@redhat.com>
19271
19272 PR c/16351
19273 * doc/invoke.texi (Wnull-dereference): New.
19274 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
19275 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
19276 Warn for potential NULL dereferences.
19277 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
19278 * ubsan.c (instrument_nonnull_arg): Call
19279 infer_nonnull_range_by_attribute.
19280 (instrument_nonnull_return): Likewise.
19281 * common.opt (Wnull-dereference); New.
19282 * gimple.c (infer_nonnull_range): Remove bool arguments.
19283 (infer_nonnull_range_by_dereference): New.
19284 (infer_nonnull_range_by_attribute): New.
19285 * gimple.h: Update declarations.
19286
19287 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19288
19289 * gensupport.c (sequence_num): Replace with...
19290 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
19291 ...these new variables.
19292 (init_rtx_reader_args_cb): Update accordingly.
19293 (get_num_code_insns): Likewise.
19294 (read_md_rtx): Rework to use a while loop and get_c_test.
19295 Use the new counters. Remove redundant DEFINE_SUBST case.
19296 * genoutput.c (gen_split): Delete.
19297 (main): Don't call it.
19298
19299 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19300
19301 * gensupport.h (get_c_test): Declare.
19302 * gensupport.c (get_c_test): New function.
19303 * genconditions.c (main): Use it.
19304 * genrecog.c (validate_pattern): Likewise.
19305 (match_pattern_1): Likewise. Remove c_test argument.
19306 (match_pattern): Update accordingly and remove c_test argument.
19307 (main): Update accordingly.
19308
19309 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19310
19311 * gensupport.h (get_num_insn_codes): Declare.
19312 * gensupport.c (get_num_insn_codes): New function.
19313 * genattrtab.c (optimize_attrs): Rename max_insn_code to
19314 num_insn_codes.
19315 (main): Likewise. Use get_num_insn_codes.
19316 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
19317
19318 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19319
19320 PR middle-end/66311
19321 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
19322 is zero- rather than sign-extended.
19323
19324 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19325
19326 * target-insns.def (can_extend): Delete.
19327
19328 2015-08-05 Richard Biener <rguenther@suse.de>
19329
19330 PR tree-optimization/67121
19331 * tree-if-conv.c (combine_blocks): Clear range-info produced
19332 by stmts no longer executed conditionally.
19333
19334 2015-08-05 Nick Clifton <nickc@redhat.com>
19335
19336 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
19337 to allow identical far pointers to remain.
19338
19339 2015-08-05 Richard Biener <rguenther@suse.de>
19340
19341 PR middle-end/67120
19342 * match.pd: Compare address bases with == if they are decls
19343 or SSA names, not operand_equal_p. Otherwise fail.
19344
19345 2015-08-05 Richard Biener <rguenther@suse.de>
19346
19347 PR tree-optimization/67055
19348 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
19349 NULL gimple_block.
19350
19351 * g++.dg/torture/pr67055.C: New testcase.
19352
19353 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
19354
19355 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
19356 noavx512vl.
19357 (define_attr "enabled"): Handle avx521vl and noavx512vl.
19358 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
19359 AVX-512 alternative out of SSE.
19360 (define_insn "*vec_concatv2df"): Ditto.
19361
19362 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
19363
19364 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
19365 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
19366 CODE_FOR_avx_ptestv4di.
19367 * config/i386/sse.md (define_mode_iterator V_AVX): New.
19368 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
19369 (define_insn "avx_ptest256"): Merge this ...
19370 (define_insn "sse4_1_ptest"): And this ...
19371 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
19372
19373 2015-08-05 Richard Biener <rguenther@suse.de>
19374
19375 PR tree-optimization/67109
19376 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
19377 against too big groups. Print whether this is a load or store
19378 group. Rename from ...
19379 (vect_analyze_group_access): ... this which is now a wrapper
19380 dissolving an invalid group.
19381 (vect_analyze_data_ref_accesses): Print whether this is a load
19382 or store group.
19383
19384 2015-08-05 Richard Biener <rguenther@suse.de>
19385
19386 PR middle-end/67107
19387 * match.pd: Guard const_binop result checking against NULL_TREE
19388 result.
19389
19390 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
19391
19392 * cse.c (cse_insn): Restoring old behaviour for src_eqv
19393 when dest and value in the REG_EQUAL are same and dest
19394 is STRICT_LOW_PART.
19395
19396 2015-08-04 Anatoly Sokolov <aesok@post.ru>
19397
19398 * config/moxie/moxie.h (PRINT_OPERAND,
19399 PRINT_OPERAND_ADDRESS): Remove macros.
19400 * config/moxie/moxie-protos.h (moxie_print_operand,
19401 moxie_print_operand_address): Remove declaration.
19402 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
19403 TARGET_PRINT_OPERAND_ADDRESS): Define.
19404 (moxie_print_operand, moxie_print_operand_address): Make static.
19405
19406 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
19407
19408 PR target/66731
19409 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
19410 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
19411
19412 2015-08-04 Richard Biener <rguenther@suse.de>
19413
19414 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
19415 generated code.
19416 (dt_operand::gen_gimple_expr): Adjust.
19417
19418 2015-08-04 Richard Biener <rguenther@suse.de>
19419
19420 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
19421 bool compares on RHS.
19422 * match.pd: Add X ==/!= !X is false/true pattern.
19423
19424 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
19425
19426 * config/aarch64/aarch64.c: Change inner loop statement cost
19427 to be consistent with other targets.
19428
19429 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
19430
19431 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
19432 targets.
19433
19434 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
19435
19436 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
19437 (machine_function): Remove pseudos field.
19438
19439 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19440
19441 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
19442 Exit early and use target_option_current_node if processing current
19443 pragma.
19444
19445 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19446
19447 * doc/extend.texi (AArch64 Function Attributes): New node.
19448 (AArch64 Pragmas): Likewise.
19449
19450 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19451
19452 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
19453 Initialize simd builtins if TARGET_SIMD.
19454 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
19455 Make sure that the builtins are initialized only once no matter how
19456 many times the function is called.
19457 (aarch64_init_builtins): Unconditionally initialize crc builtins.
19458 (aarch64_relayout_simd_param): New function.
19459 (aarch64_simd_expand_args): Use above during argument expansion.
19460 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
19461 simd builtins if TARGET_SIMD.
19462 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
19463 prototype.
19464 (aarch64_relayout_simd_types): Likewise.
19465
19466 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19467
19468 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
19469 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
19470 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
19471 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
19472 static keyword.
19473 (aarch64_reset_previous_fndecl): New function.
19474 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
19475 the string.
19476 * config/aarch64/aarch64-c.c: New file.
19477 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
19478 Push and pop options at beginning and end. Remove ifdef
19479 __ARM_FEATURE_CRC32.
19480 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
19481 Add pragma +nothing+simd and +nothing+crypto where appropriate.
19482 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
19483 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
19484 Define prototype.
19485 (aarch64_register_pragmas): Likewise.
19486 (aarch64_reset_previous_fndecl): Likewise.
19487 (aarch64_process_target_attr): Likewise.
19488 (aarch64_override_options_internal): Likewise.
19489
19490 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19491
19492 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
19493 New function.
19494 (aarch64_can_inline_p): Likewise.
19495 (TARGET_CAN_INLINE_P): Define.
19496
19497 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19498
19499 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
19500 Remove static. Handle OPT_mgeneral_regs_only,
19501 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
19502 OPT_momit_leaf_frame_pointer.
19503 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
19504 (aarch64_attr_opt_type): New enum.
19505 (aarch64_attribute_info): New struct.
19506 (aarch64_handle_attr_arch): New function.
19507 (aarch64_handle_attr_cpu): Likewise.
19508 (aarch64_handle_attr_tune): Likewise.
19509 (aarch64_handle_attr_isa_flags): Likewise.
19510 (aarch64_attributes): New table.
19511 (aarch64_process_one_target_attr): New function.
19512 (num_occurences_in_str): Likewise.
19513 (aarch64_process_target_attr): Likewise.
19514 (aarch64_option_valid_attribute_p): Likewise.
19515 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
19516 * config/aarch64/aarch64-protos.h: Include input.h
19517 (aarch64_handle_option): Declare prototype.
19518
19519 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19520
19521 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
19522 * config/aarch64/aarch64.c: Include target-globals.h
19523 (aarch64_previous_fndecl): New variable.
19524 (aarch64_set_current_function): New function.
19525 (TARGET_SET_CURRENT_FUNCTION): Define.
19526
19527 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19528
19529 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
19530 (explicit_arch): Likewise.
19531 (x_aarch64_isa_flags): Likewise.
19532 (mgeneral-regs-only): Mark as Save.
19533 (mfix-cortex-a53-835769): Likewise.
19534 (mcmodel=): Likewise.
19535 (mstrict-align): Likewise.
19536 (momit-leaf-frame-pointer): Likewise.
19537 (mtls-dialect): Likewise.
19538 (master=): Likewise.
19539 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
19540 (aarch64_isa_flags): Remove extern declaration.
19541 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
19542 to indicate success or failure.
19543 (aarch64_validate_march): Likewise.
19544 (aarch64_validate_mtune): Likewise.
19545 (aarch64_isa_flags): Delete.
19546 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
19547 instead of aarch64_isa_flags.
19548 (aarch64_get_tune_cpu): New function.
19549 (aarch64_get_arch): Likewise.
19550 (aarch64_override_options): Use above and set up explicit_tune_core
19551 and explicit_arch.
19552 (aarch64_print_extension): Move earlier in file. Add isa_flags
19553 argument and use that instead of the global aarch64_isa_flags.
19554 (aarch64_option_save): New function.
19555 (aarch64_option_restore): Likewise.
19556 (aarch64_option_print): Likewise.
19557 (aarch64_declare_function_name): Likewise.
19558 (aarch64_start_file): Delete.
19559 (TARGET_ASM_FILE_START): Do not define.
19560 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
19561 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
19562 Declare prototype.
19563
19564 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19565
19566 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
19567 flag_omit_leaf_frame_pointer to 2.
19568
19569 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19570
19571 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
19572 define to 0 or 1.
19573 (TARGET_FIX_ERR_A53_835769): New macro.
19574 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
19575 handling of opts->x_aarch64_fix_a53_err835769.
19576 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
19577 than aarch64_fix_a53_err835769.
19578 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
19579 * config/aarch64/aarch64-linux.h: Likewise.
19580
19581 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
19582
19583 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
19584 ix86_expand_int_movcc as boolean.
19585
19586 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19587
19588 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
19589 (aarch64_cpu_string): Likewise.
19590 (aarch64_tune_string): Likewise.
19591 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
19592 (aarch64_parse_extension): Return aarch64_parse_opt_result.
19593 Add extra argument to put result into.
19594 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
19595 (aarch64_parse_cpu): Add arguments to put results into. Return
19596 aarch64_parse_opt_result.
19597 (aarch64_parse_tune): Likewise.
19598 (aarch64_override_options_after_change_1): New function.
19599 (aarch64_override_options_internal): New function.
19600 (aarch64_validate_mcpu): Likewise.
19601 (aarch64_validate_march): Likewise.
19602 (aarch64_validate_mtune): Likewise.
19603 (aarch64_override_options): Update to reflect above changes.
19604 Move some logic into aarch64_override_options_internal.
19605 Initialize target_option_default_node and target_option_current_node.
19606 (aarch64_override_options_after_change): Move logic into
19607 aarch64_override_options_after_change_1 and call it with global_options.
19608 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
19609 flag values from that.
19610
19611 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19612
19613 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
19614 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
19615 * config/aarch64/aarch64.c (struct processor): Add arch field.
19616 (all_architectures): Handle above, move above all_cores.
19617 (all_cores): Handle above.
19618 (aarch64_parse_arch): Handle above changes.
19619 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
19620 above. Update comments.
19621 (armv8.1-a): Likewise.
19622 * config/aarch64/aarch64-cores.def: Update according to above.
19623 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
19624 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
19625 aarch64_arch_driver_info.
19626
19627 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19628
19629 * config/aarch64/aarch64.c (struct processor): Add ident field.
19630 Rename core sched_core.
19631 (all_cores): Handle above changes.
19632 (all_architectures): Likewise.
19633 (aarch64_parse_arch): Likewise.
19634 (aarch64_override_options): Likewise.
19635
19636 2015-08-04 Richard Biener <rguenther@suse.de>
19637
19638 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
19639 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
19640 comparisons embedded in [VEC_]COND_EXPRs.
19641
19642 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
19643
19644 * tree-if-conv.c: Fix various typos in comments.
19645 * tree-vect-stmts.c: Likewise.
19646
19647 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
19648
19649 PR tree-optimization/67043
19650 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
19651 preheader after hoisting invariant in it.
19652 (find_defs): Force recomputation of all luids.
19653
19654 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
19655
19656 * config/rs6000/htm.md (tabort.): Restrict the source operand to
19657 using a base register.
19658
19659 2015-08-03 David Malcolm <dmalcolm@redhat.com>
19660
19661 * main.c (main): Pass in NULL for toplev's external_timer.
19662 * timevar.c: Include coretypes.h.
19663 (class timer::named_items): New.
19664 (timer::named_items::named_items): New.
19665 (timer::named_items::~named_items): New.
19666 (timer::named_items::push): New.
19667 (timer::named_items::pop): New.
19668 (timer::named_items::print): New.
19669 (timer::timer): Initialize field "m_jit_client_items".
19670 (timer::~timer): New.
19671 (timer::push): Move bulk of implementation to...
19672 (timer::push_internal): ...here. New function.
19673 (timer::pop): Move bulk of implementation to...
19674 (timer::pop_internal): ...here. New function.
19675 (timer::push_client_item): New.
19676 (timer::pop_client_item): New.
19677 (timer::print_row): New function, taken from timer::print.
19678 (timer::print): Print "GCC items" header if we also have client
19679 items. Move row-printing to timer::print_row. Print any client
19680 items.
19681 (timer::get_topmost_item_name): New method.
19682 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
19683 (TV_JIT_CLIENT_CODE): New.
19684 * timevar.h (timer::push_client_item): New declaration.
19685 (timer::pop_client_item): New declaration.
19686 (timer::get_topmost_item_name): New method.
19687 (timer::push_internal): New declaration.
19688 (timer::pop_internal): New declaration.
19689 (timer::print_row): New declaration.
19690 (timer::named_items): New declaration.
19691 (timer::m_jit_client_items): New field.
19692 (timer): Add friend class named_items.
19693 (auto_timevar::auto_timevar): Add timer param.
19694 (auto_timevar::~auto_timevar): Use field "m_timer".
19695 (auto_timevar::m_timer): New field.
19696 * toplev.c (initialize_rtl): Add g_timer as param when
19697 constructing auto_timevar instance.
19698 (toplev::toplev): Add "external_timer" param, and use it to
19699 initialize the "g_timer" global if non-NULL.
19700 (toplev::~toplev): If this created "g_timer", delete it.
19701 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
19702 with "external_timer" timer *.
19703
19704 2015-08-03 Alexander Basov <coohpt@gmail.com>
19705
19706 PR middle-end/64744
19707 PR middle-end/48470
19708 PR middle-end/43404
19709 * cfgexpand.c (expand_one_var): Add check if stack is going to
19710 be used in naked function.
19711 * expr.c (expand_expr_addr_expr_1): Remove excess checking
19712 whether expression should not reside in MEM.
19713 * function.c (use_register_for_decl): Do not use registers for
19714 non-register things (volatile, float, BLKMode) in naked functions.
19715
19716 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
19717
19718 PR target/67060
19719 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
19720 Adjust splits to match new pattern.
19721
19722 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
19723
19724 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
19725 (VEC_M): Likewise.
19726 (VEC_N): Likewise.
19727 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
19728 point in VSX registers.
19729
19730 * config/rs6000/constraints.md (wb constraint): Document unused
19731 w<x> constraint.
19732 (we constraint): Likewise.
19733 (wo constraint): Likewise.
19734 (wp constraint): New constraint for IEEE 128-bit floating point in
19735 VSX registers.
19736 (wq constraint): Likewise.
19737
19738 * config/rs6000/predicates.md (easy_fp_constant): Add support for
19739 IEEE 128-bit floating point in VSX registers.
19740 (easy_scalar_constant): Likewise.
19741
19742 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
19743 constraints (wp, wq) for IEEE 128-bit floating point in VSX
19744 registers.
19745 (rs6000_init_hard_regno_mode_ok): Likewise.
19746
19747 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
19748 floating point in VSX registers.
19749 (VSX_L): Likewise.
19750 (VSX_M): Likewise.
19751 (VSX_M2): Likewise.
19752 (VSm): Likewise.
19753 (VSs): Likewise.
19754 (VSr): Likewise.
19755 (VSa): Likewise.
19756 (VSv): Likewise.
19757 (vsx_le_permute_<mode>): Add support to properly swap bytes for
19758 IEEE 128-bit floating point in VSX registers on little endian.
19759 (vsx_le_undo_permute_<mode>): Likewise.
19760 (vsx_le_perm_load_<mode>): Likewise.
19761 (vsx_le_perm_store_<mode>): Likewise.
19762 (splitters for IEEE 128-bit fp moves): Likewise.
19763
19764 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
19765 wq constraints.
19766
19767 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
19768 floating point in VSX registers.
19769 (VM2): Likewise.
19770
19771 * doc/md.text (Machine Constraints): Document wp and wq
19772 constraints on PowerPC.
19773
19774 2015-08-03 Jeff Law <law@redhat.com>
19775
19776 PR middle-end/66314
19777 PR gcov-profile/66899
19778 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
19779 iterate over the jump threading paths when an element in the
19780 jump threading paths array is eliminated.
19781
19782 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
19783
19784 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
19785
19786 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
19787
19788 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
19789 is_use_properly_guarded the variable def_preds. Free its
19790 contents before returning.
19791 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
19792 (is_use_properly_guarded): Replace local variable def_preds with
19793 a parameter. Adjust accordingly. Only update *def_preds if it's
19794 the empty vector.
19795
19796 2015-08-03 Richard Biener <rguenther@suse.de>
19797
19798 * genmatch.c (simplify::for_subst_vec): New member.
19799 (binary_ok): New helper for for lowering.
19800 (lower_for): Delay substituting operators into result expressions
19801 if we can merge the results eventually again.
19802 (capture_info::walk_result): Adjust for user_id appearing as
19803 result expression operator.
19804 (expr::gen_transform): Likewise.
19805 (dt_simplify::gen_1): Likewise.
19806 (dt_simplify::gen): Pass not substituted operators to tail
19807 functions or initialize local variable with it.
19808 (decision_tree::gen): Adjust function signature.
19809 * match.pd: Fix tests against global code and add default
19810 cases to switch stmts.
19811
19812 2015-08-03 Richard Biener <rguenther@suse.de>
19813
19814 * genmatch.c (dt_simplify::gen): Create captures array
19815 with an initializer.
19816
19817 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19818
19819 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
19820 the host compiler is affected by placement new aliasing bug.
19821 * configure: Regenerate.
19822 * Makefile.in (ALIASING_FLAGS): New variable.
19823 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
19824
19825 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19826
19827 PR target/66731
19828 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
19829 (negmulsf3_vfp): Likewise.
19830 (muldf3negdf_vfp): Disable for -frounding-math.
19831 (mulsf3negsf_vfp): Likewise.
19832 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
19833 fix MULT cost with -frounding-math.
19834
19835 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19836
19837 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
19838 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
19839 explicit. Prefer to add the flag whenever possible.
19840 (noce_process_if_block): Try noce_try_store_flag_constants before
19841 noce_try_cmove.
19842
19843 2015-08-03 Richard Biener <rguenther@suse.de>
19844
19845 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
19846 New hash-map to record equivalent transforms.
19847 (dt_node::analyze): Populate the equivalent transforms hash-map.
19848 (dt_simplify::info): Add reference to hash-map entry.
19849 (dt_simplify::gen): If we have split out a function for the
19850 transform, generate a call to it.
19851 (sinfo_hashmap_traits::hash): New function.
19852 (compare_op): New helper function for ...
19853 (sinfo_hashmap_traits::equal_keys): ... this new function.
19854 (decision_tree::gen): Split out common equivalent transforms
19855 into functions.
19856
19857 2015-08-03 Richard Biener <rguenther@suse.de>
19858
19859 * gimple-fold.c (fold_gimple_assign): Remove folding of
19860 the comparison in COND_EXPRs.
19861
19862 2015-08-03 Richard Biener <rguenther@suse.de>
19863
19864 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
19865 on the rhs of assignments first simplify the embedded
19866 GENERIC condition.
19867
19868 2015-08-03 Richard Biener <rguenther@suse.de>
19869
19870 PR tree-optimization/66917
19871 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
19872 field.
19873 (DR_VECT_AUX): New macro.
19874 (set_dr_misalignment): Adjust.
19875 (dr_misalignment): Likewise.
19876 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19877 Compute whether the base is at least element aligned.
19878 * tree-vect-stmts.c (ensure_base_align): Adjust.
19879 (vectorizable_store): If the base is not element aligned
19880 preserve alignment of the original access if misalignment is unknown.
19881 (vectorizable_load): Likewise.
19882
19883 2015-08-02 Martin Sebor <msebor@redhat.com>
19884
19885 * doc/invoke.texi (Wframe-address): Document it.
19886 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
19887 Clarify possible effects of calling the functions with non-zero
19888 arguments and mention -Wframe-address.
19889 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
19890
19891 2015-08-01 Michael Collison <michael.collison@linaro.org
19892 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19893
19894 * config/arm/arm.md (*arm_smin_cmp): New pattern.
19895 (*arm_umin_cmp): Likewise.
19896
19897 2015-08-01 Caroline Tice <cmtice@google.com>
19898
19899 PR 66521
19900 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
19901 global variables.
19902 (vtbl_find_mangled_name): New function.
19903 (vtbl_register_mangled_name): New function.
19904 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
19905 mangled name in mangled name vectors.
19906 (find_or_create_vtbl_map_node): Ditto.
19907 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
19908 update recursion_depth on function entry; pass it to every recursive
19909 call; automatically exit if depth > 25 (give up looking at that point).
19910 (verify_bb_vtables): Initialize recursion_depth and pass it to
19911 var_is_used_for_virtual_call_p.
19912 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
19913 global variable decls.
19914 (vtbl_register_mangled_name): New extern function decl.
19915
19916 2015-08-01 Tom de Vries <tom@codesourcery.com>
19917
19918 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
19919 function.
19920 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
19921 Declare.
19922 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
19923 operation_no_trapping_overflow. Allow non-overflow operations.
19924 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
19925 operations.
19926
19927 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
19928
19929 PR target/67049
19930 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
19931
19932 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19933
19934 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
19935 Enable for TARGET_32BIT.
19936 (*if_move_neg): Likewise.
19937
19938 2015-07-31 Nick Clifton <nickc@redhat.com>
19939
19940 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
19941 Returns true for __model__.
19942 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
19943
19944 2015-07-31 Alan Modra <amodra@gmail.com>
19945
19946 PR target/66870
19947 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
19948 (rs6000_emit_prologue): Set it.
19949 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
19950
19951 2015-07-31 Richard Biener <rguenther@suse.de>
19952
19953 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
19954 -> X == (C1 ^ C2) which is already implemented in match.pd.
19955 Remove redundant dispatching to fold_relational_const.
19956 Move unordered self and NaN compares ...
19957 * match.pd: ... as patterns here. Remove some stray captures
19958 and add a comment.
19959
19960 2015-07-31 Petr Murzin <petr.murzin@intel.com>
19961
19962 * config/i386/i386.c
19963 (bdesc_special_args): Convert mask type from signed to unsigned for
19964 masked builtins.
19965 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
19966 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
19967 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
19968 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
19969 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
19970 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
19971 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
19972 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
19973 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
19974 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
19975 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
19976 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
19977 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
19978 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
19979 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
19980 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
19981 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
19982 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
19983 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
19984 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
19985 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
19986 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
19987 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
19988 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
19989 * config/i386/i386-builtin-types.def
19990 (V16QI_FTYPE_V16SI): Remove.
19991 (V8DF_FTYPE_V8SI): Ditto.
19992 (V8HI_FTYPE_V8DI): Ditto.
19993 (V8SI_FTYPE_V8DI): Ditto.
19994 (V8SF_FTYPE_V8DF): Ditto.
19995 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
19996 (V16HI_FTYPE_V16SI): Ditto.
19997 (V16SF_FTYPE_V16HI): Ditto.
19998 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
19999 (V16SF_FTYPE_V16SI): Ditto.
20000 (V4DI_FTYPE_V4DI): Ditto.
20001 (V16SI_FTYPE_V16SF): Ditto.
20002 (V16SF_FTYPE_FLOAT): Ditto.
20003 (V8DF_FTYPE_DOUBLE): Ditto.
20004 (V8DI_FTYPE_INT64): Ditto.
20005 (V8DI_FTYPE_V4DI): Ditto.
20006 (V16QI_FTYPE_V8DI): Ditto.
20007 (UINT_FTYPE_V4SF): Ditto.
20008 (UINT64_FTYPE_V4SF): Ditto.
20009 (UINT_FTYPE_V2DF): Ditto.
20010 (UINT64_FTYPE_V2DF): Ditto.
20011 (V16SI_FTYPE_V16SI): Ditto.
20012 (V8DI_FTYPE_V8DI): Ditto.
20013 (V16SI_FTYPE_PV4SI): Ditto.
20014 (V16SF_FTYPE_PV4SF): Ditto.
20015 (V8DI_FTYPE_PV2DI): Ditto.
20016 (V8DF_FTYPE_PV2DF): Ditto.
20017 (V4DI_FTYPE_PV2DI): Ditto.
20018 (V4DF_FTYPE_PV2DF): Ditto.
20019 (V16SI_FTYPE_PV2SI): Ditto.
20020 (V16SF_FTYPE_PV2SF): Ditto.
20021 (V8DI_FTYPE_PV4DI): Ditto.
20022 (V8DF_FTYPE_PV4DF): Ditto.
20023 (V8SF_FTYPE_FLOAT): Ditto.
20024 (V4SF_FTYPE_FLOAT): Ditto.
20025 (V4DF_FTYPE_DOUBLE): Ditto.
20026 (V8SF_FTYPE_PV4SF): Ditto.
20027 (V8SI_FTYPE_PV4SI): Ditto.
20028 (V4SI_FTYPE_PV2SI): Ditto.
20029 (V8SF_FTYPE_PV2SF): Ditto.
20030 (V8SI_FTYPE_PV2SI): Ditto.
20031 (V16SF_FTYPE_PV8SF): Ditto.
20032 (V16SI_FTYPE_PV8SI): Ditto.
20033 (V8DI_FTYPE_V8SF): Ditto.
20034 (V4DI_FTYPE_V4SF): Ditto.
20035 (V2DI_FTYPE_V4SF): Ditto.
20036 (V64QI_FTYPE_QI): Ditto.
20037 (V32HI_FTYPE_HI): Ditto.
20038 (V8UHI_FTYPE_V8UHI): Ditto.
20039 (V16UHI_FTYPE_V16UHI): Ditto.
20040 (V32UHI_FTYPE_V32UHI): Ditto.
20041 (V2UDI_FTYPE_V2UDI): Ditto.
20042 (V4UDI_FTYPE_V4UDI): Ditto.
20043 (V8UDI_FTYPE_V8UDI): Ditto.
20044 (V4USI_FTYPE_V4USI): Ditto.
20045 (V8USI_FTYPE_V8USI): Ditto.
20046 (V16USI_FTYPE_V16USI): Ditto.
20047 (V2DF_FTYPE_V2DF_UINT64): Ditto.
20048 (V2DI_FTYPE_V2DF_V2DF): Ditto.
20049 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
20050 (V8DF_FTYPE_V8DF_V8DI): Ditto.
20051 (V4SF_FTYPE_V4SF_UINT64): Ditto.
20052 (V4SI_FTYPE_V4SF_V4SF): Ditto.
20053 (V16SF_FTYPE_V16SF_V16SI): Ditto.
20054 (V64QI_FTYPE_V32HI_V32HI): Ditto.
20055 (V32HI_FTYPE_V16SI_V16SI): Ditto.
20056 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
20057 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
20058 (V32HI_FTYPE_V64QI_V64QI): Ditto.
20059 (V32HI_FTYPE_V32HI_V32HI): Ditto.
20060 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
20061 (V16SI_FTYPE_V16SI_V4SI): Ditto.
20062 (V16SI_FTYPE_V16SI_V16SI): Ditto.
20063 (V16SI_FTYPE_V32HI_V32HI): Ditto.
20064 (V16SI_FTYPE_V16SI_SI): Ditto.
20065 (V8DI_FTYPE_V8DI_V8DI): Ditto.
20066 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
20067 (V8DI_FTYPE_V16SI_V16SI): Ditto.
20068 (V8DI_FTYPE_V8DI_V2DI): Ditto.
20069 (QI_FTYPE_QI): Ditto.
20070 (SI_FTYPE_SI): Ditto.
20071 (DI_FTYPE_DI): Ditto.
20072 (QI_FTYPE_QI_QI): Ditto.
20073 (QI_FTYPE_QI_INT): Ditto.
20074 (HI_FTYPE_HI_INT): Ditto.
20075 (SI_FTYPE_SI_INT): Ditto.
20076 (DI_FTYPE_DI_INT): Ditto.
20077 (HI_FTYPE_V16QI_V16QI): Ditto.
20078 (SI_FTYPE_V32QI_V32QI): Ditto.
20079 (DI_FTYPE_V64QI_V64QI): Ditto.
20080 (QI_FTYPE_V8HI_V8HI): Ditto.
20081 (HI_FTYPE_V16HI_V16HI): Ditto.
20082 (SI_FTYPE_V32HI_V32HI): Ditto.
20083 (QI_FTYPE_V4SI_V4SI): Ditto.
20084 (QI_FTYPE_V8SI_V8SI): Ditto.
20085 (QI_FTYPE_V2DI_V2DI): Ditto.
20086 (QI_FTYPE_V4DI_V4DI): Ditto.
20087 (QI_FTYPE_V8DI_V8DI): Ditto.
20088 (HI_FTYPE_V16SI_V16SI): Ditto.
20089 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
20090 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
20091 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
20092 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
20093 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
20094 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
20095 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
20096 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
20097 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
20098 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
20099 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
20100 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
20101 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
20102 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
20103 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
20104 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
20105 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
20106 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
20107 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
20108 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
20109 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
20110 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
20111 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
20112 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
20113 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
20114 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
20115 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
20116 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
20117 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
20118 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
20119 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
20120 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
20121 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
20122 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
20123 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
20124 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
20125 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
20126 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
20127 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
20128 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
20129 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
20130 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
20131 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
20132 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
20133 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
20134 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
20135 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
20136 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
20137 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
20138 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
20139 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
20140 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
20141 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
20142 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
20143 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
20144 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
20145 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
20146 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
20147 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
20148 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
20149 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
20150 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
20151 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
20152 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
20153 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
20154 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
20155 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
20156 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
20157 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
20158 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
20159 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
20160 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
20161 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
20162 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
20163 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
20164 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
20165 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
20166 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
20167 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
20168 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
20169 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
20170 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
20171 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
20172 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
20173 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
20174 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
20175 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
20176 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
20177 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
20178 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
20179 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
20180 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
20181 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
20182 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
20183 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
20184 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
20185 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
20186 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
20187 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
20188 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
20189 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
20190 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
20191 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
20192 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
20193 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
20194 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
20195 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
20196 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
20197 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
20198 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
20199 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
20200 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
20201 (HI_FTYPE_HI): Ditto.
20202 (HI_FTYPE_V16QI): Ditto.
20203 (SI_FTYPE_V32QI): Ditto.
20204 (DI_FTYPE_V64QI): Ditto.
20205 (QI_FTYPE_V8HI): Ditto.
20206 (HI_FTYPE_V16HI): Ditto.
20207 (SI_FTYPE_V32HI): Ditto.
20208 (QI_FTYPE_V4SI): Ditto.
20209 (QI_FTYPE_V8SI): Ditto.
20210 (HI_FTYPE_V16SI): Ditto.
20211 (QI_FTYPE_V2DI): Ditto.
20212 (QI_FTYPE_V4DI): Ditto.
20213 (QI_FTYPE_V8DI): Ditto.
20214 (V16QI_FTYPE_HI): Ditto.
20215 (V32QI_FTYPE_SI): Ditto.
20216 (V64QI_FTYPE_DI): Ditto.
20217 (V8HI_FTYPE_QI): Ditto.
20218 (V16HI_FTYPE_HI): Ditto.
20219 (V32HI_FTYPE_SI): Ditto.
20220 (V4SI_FTYPE_QI): Ditto.
20221 (V4SI_FTYPE_HI): Ditto.
20222 (V8SI_FTYPE_QI): Ditto.
20223 (V8SI_FTYPE_HI): Ditto.
20224 (V2DI_FTYPE_QI): Ditto.
20225 (V4DI_FTYPE_QI): Ditto.
20226 (HI_FTYPE_HI_HI): Ditto.
20227 (SI_FTYPE_SI_SI): Ditto.
20228 (DI_FTYPE_DI_DI): Ditto.
20229 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
20230 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
20231 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
20232 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
20233 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
20234 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
20235 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
20236 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
20237 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
20238 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
20239 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
20240 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
20241 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
20242 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
20243 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
20244 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
20245 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
20246 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
20247 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
20248 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
20249 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
20250 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
20251 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
20252 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
20253 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
20254 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
20255 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
20256 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
20257 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
20258 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
20259 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
20260 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
20261 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
20262 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
20263 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
20264 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
20265 (V16SI_FTYPE_HI): Ditto.
20266 (V8DI_FTYPE_QI): Ditto.
20267 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
20268 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
20269 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
20270 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
20271 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
20272 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
20273 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
20274 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
20275 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
20276 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
20277 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
20278 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
20279 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
20280 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
20281 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
20282 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
20283 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
20284 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
20285 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
20286 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
20287 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
20288 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
20289 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
20290 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
20291 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
20292 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
20293 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
20294 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
20295 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
20296 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
20297 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
20298 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
20299 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
20300 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
20301 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
20302 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
20303 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
20304 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
20305 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
20306 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
20307 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
20308 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
20309 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
20310 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
20311 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
20312 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
20313 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
20314 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
20315 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
20316 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
20317 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
20318 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
20319 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
20320 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
20321 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
20322 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
20323 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
20324 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
20325 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
20326 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
20327 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
20328 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
20329 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
20330 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
20331 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
20332 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
20333 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
20334 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
20335 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
20336 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
20337 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
20338 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
20339 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
20340 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
20341 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
20342 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
20343 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
20344 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
20345 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
20346 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
20347 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
20348 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
20349 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
20350 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
20351 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
20352 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
20353 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
20354 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
20355 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
20356 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
20357 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
20358 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
20359 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
20360 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
20361 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
20362 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
20363 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
20364 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
20365 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
20366 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
20367 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
20368 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
20369 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
20370 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
20371 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
20372 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
20373 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
20374 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
20375 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
20376 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
20377 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
20378 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
20379 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
20380 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
20381 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
20382 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
20383 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
20384 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
20385 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
20386 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
20387 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
20388 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
20389 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
20390 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
20391 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
20392 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
20393 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
20394 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
20395 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
20396 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
20397 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
20398 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
20399 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
20400 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
20401 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
20402 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
20403 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
20404 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
20405 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
20406 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
20407 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
20408 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
20409 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
20410 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
20411 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
20412 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
20413 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
20414 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
20415 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
20416 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
20417 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
20418 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
20419 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
20420 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
20421 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
20422 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
20423 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
20424 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
20425 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
20426 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
20427 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
20428 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
20429 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
20430 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
20431 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
20432 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
20433 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
20434 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
20435 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
20436 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
20437 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
20438 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
20439 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
20440 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
20441 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
20442 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
20443 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
20444 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
20445 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
20446 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
20447 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
20448 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
20449 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
20450 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
20451 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
20452 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
20453 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
20454 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
20455 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
20456 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
20457 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
20458 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
20459 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
20460 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
20461 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
20462 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
20463 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
20464 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
20465 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
20466 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
20467 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
20468 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
20469 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
20470 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
20471 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
20472 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
20473 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
20474 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
20475 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
20476 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
20477 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
20478 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
20479 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
20480 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
20481 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
20482 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
20483 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
20484 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
20485 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
20486 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
20487 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
20488 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
20489 (QI_FTYPE_V8DF_INT_QI): Ditto.
20490 (QI_FTYPE_V4DF_INT_QI): Ditto.
20491 (QI_FTYPE_V2DF_INT_QI): Ditto.
20492 (HI_FTYPE_V16SF_INT_HI): Ditto.
20493 (QI_FTYPE_V8SF_INT_QI): Ditto.
20494 (QI_FTYPE_V4SF_INT_QI): Ditto.
20495 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
20496
20497 2015-07-31 Richard Biener <rguenther@suse.de>
20498
20499 * gimple-fold.c (fold_gimple_assign): Remove folding of
20500 GIMPLE_BINARY_RHS.
20501
20502 2015-07-31 Tom de Vries <tom@codesourcery.com>
20503
20504 PR tree-optimization/66846
20505 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
20506 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
20507 (expand_omp_target) [ENABLE_CHECKING]: Same.
20508 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
20509 cfun if !LOOPS_NEED_FIXUP.
20510 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
20511 that omp_for already has its own loop struct.
20512 * tree-parloops.c (create_phi_for_local_result)
20513 (create_call_for_reduction): Handle simple latch bb.
20514 (create_parallel_loop): Add simple latch bb to preserve
20515 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
20516 (gen_parallel_loop): Remove call to cancel_loop_tree.
20517 (parallelize_loops): Skip loops that are inner loops of parallelized
20518 loops.
20519 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
20520 verify_loop_structure.
20521
20522 2015-07-30 Anatoly Sokolov <aesok@post.ru>
20523
20524 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
20525 * config/v850/v850.md (RV_REGNUM): New constants.
20526 * config/v850/v850.c (v850_libcall_value): New functions.
20527 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
20528 (TARGET_LIBCALL_VALUE): Define.
20529
20530 2015-07-30 Anatoly Sokolov <aesok@post.ru>
20531
20532 * rtl.h (lowpart_subreg): Move in file.
20533 * loop-iv.c (lowpart_subreg): Move to...
20534 * simplify-rtx.c (lowpart_subreg): ...here.
20535 (simplify_binary_operation_1): Use lowpart_subreg instead of
20536 simplify_gen_subreg.
20537 * expr.c (expand_expr_real_2): Ditto.
20538 * emit-rtl.c (gen_lowpart_common): Ditto.
20539 * combine.c (gen_lowpart_for_combine): Ditto.
20540 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
20541 expand_debug_source_expr): Ditto.
20542
20543 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
20544
20545 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
20546 (expand_builtin_atomic_clear): Remove support for atomic_clear
20547 pattern.
20548
20549 2015-07-30 Richard Biener <rguenther@suse.de>
20550
20551 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
20552 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
20553 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
20554 redundant operand canonicalization.
20555
20556 2015-07-30 David Sherwood <david.sherwood@arm.com>
20557
20558 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
20559 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
20560 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
20561 * config/arm/arm.c (neon_valid_immediate): Likewise.
20562 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
20563 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
20564 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
20565 (expand_vec_perm_vpshufb2_vpermq): Likewise.
20566 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
20567 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
20568 * config/i386/sse.md
20569 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
20570 (*ssse3_palignr<mode>_perm): Likewise.
20571 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
20572 * config/spu/spu.c (arith_immediate_p): Likewise.
20573 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
20574 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
20575
20576 2015-07-30 Richard Biener <rguenther@suse.de>
20577
20578 * genmatch.c (decision_tree::gen_gimple): Merge with ...
20579 (decision_tree::gen_generic): ... this into ...
20580 (decision_tree::gen): ... this.
20581 (main): Adjust callers.
20582
20583 2015-07-30 Richard Biener <rguenther@suse.de>
20584
20585 * genmatch.c (verbose): New global.
20586 (warning_at): Add overload with source_location.
20587 (capture_info::capture_info): Add bool whether generating gimple
20588 or generic. Add gimple member.
20589 (capture_info::cinfo): Add capture member.
20590 (capture_info::walk_match): Record capture. Warn on
20591 non-captured leafs.
20592 (capture_info::walk_c_expr): Add more fragments captures cannot
20593 escape through. Warn on escaped captures.
20594 (dt_simplify::gen_1): Warn on operands we force to have no
20595 side-effects.
20596 (main): Initialize verbose.
20597 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
20598
20599 2015-07-30 Richard Biener <rguenther@suse.de>
20600
20601 PR middle-end/67053
20602 * match.pd: Allow both operands to independently have conversion
20603 when simplifying compares of addresses.
20604
20605 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
20606
20607 PR target/66217
20608 PR target/67045
20609 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
20610 around those cases that need one.
20611
20612 2015-07-29 Aditya Kumar <hiraditya@msn.com>
20613
20614 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
20615
20616 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
20617
20618 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
20619 New. Copied from config/i386/gnu-user.h.
20620 (ASM_COMMENT_START): Likewise.
20621 (DBX_REGISTER_NUMBER): Likewise.
20622
20623 2015-07-29 Richard Biener <rguenther@suse.de>
20624
20625 * gimple-fold.c (fold_gimple_cond): Remove.
20626 (fold_stmt_1): Do not call it.
20627
20628 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
20629
20630 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
20631 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
20632
20633 * config/aarch64/aarch64-modes.def: Add HFmode.
20634
20635 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
20636 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
20637
20638 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
20639 aarch64_promoted_type): New.
20640
20641 (aarch64_float_const_representable_p): Disable HFmode.
20642 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
20643 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
20644 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
20645
20646 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
20647 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
20648
20649 * config/aarch64/iterators.md (GPF_F16): New.
20650
20651 2015-07-29 Richard Biener <rguenther@suse.de>
20652
20653 * match.pd: Merge address comparison patterns and make them
20654 handle some more cases.
20655
20656 2015-07-29 Richard Biener <rguenther@suse.de>
20657
20658 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
20659 (parser::parse_capture): Add bool argument on whether to reject
20660 unknown captures.
20661 (parser::parse_expr): Adjust.
20662 (parser::parse_op): Likewise.
20663 (parser::parse_pattern): Likewise.
20664
20665 2015-07-29 Richard Biener <rguenther@suse.de>
20666
20667 * gimple-fold.c (has_use_on_stmt): New function.
20668 (replace_stmt_with_simplification): Use it to allow
20669 abnormals originally referenced in the stmt.
20670 (fold_stmt_1): Canonicalize operand order.
20671
20672 2015-07-28 David Sherwood <david.sherwood@arm.com>
20673
20674 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
20675 GET_MODE_INNER unconditionally.
20676 * config/spu/spu.c (arith_immediate_p): Likewise.
20677 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
20678 * expmed.c (synth_mult): Remove check for VOIDmode result from
20679 GET_MODE_INNER.
20680 (expand_mult_const): Likewise.
20681 * fold-const.c (fold_binary_loc): Replace call to element_precision
20682 with call to GET_MODE_PRECISION.
20683 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
20684 m->name.
20685 (emit_mode_inner): Likewise.
20686 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
20687 result check.
20688 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
20689 (GET_MODE_UNIT_PRECISION): Likewise.
20690 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
20691 * simplify-rtx.c (simplify_immed_subreg): Likewise.
20692 * stor-layout.c (bitwise_type_for_mode): Update assert.
20693 (element_precision): Remove.
20694
20695 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20696
20697 * target-insns.def (reload_load_address): New targetm instruction
20698 pattern.
20699 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
20700
20701 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20702
20703 * target-insns.def (atomic_test_and_set): New targetm instruction
20704 pattern.
20705 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
20706 HAVE_*/gen_* interface.
20707
20708 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20709
20710 * target-insns.def (can_extend, ptr_extend): New targetm instruction
20711 patterns.
20712 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
20713 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
20714 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
20715 * rtlanal.c (nonzero_bits1): Likewise.
20716 (num_sign_bit_copies1): Likewise.
20717
20718 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20719
20720 * target-insns.def (eh_return): New targetm instruction pattern.
20721 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
20722 interface.
20723 * function.c (thread_prologue_and_epilogue_insns): Remove
20724 preprocessor condition.
20725
20726 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20727
20728 * target-insns.def (indirect_jump): New targetm instruction pattern.
20729 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
20730 interface.
20731
20732 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20733
20734 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
20735 instead of nonimmediate_operand. Remove C condiition.
20736
20737 2015-07-28 Richard Biener <rguenther@suse.de>
20738
20739 * match.pd: Add more simplification of address comparisons.
20740
20741 2015-07-28 Richard Biener <rguenther@suse.de>
20742
20743 * match.pd: Re-order two cases in comparison with max/min
20744 value simplification to make it apply for bools.
20745
20746 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20747
20748 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
20749 Handle simple SIGN_EXTEND or ZERO_EXTEND.
20750 (aarch64_rtx_costs): Properly strip extend or extract before
20751 passing down to rtx costs again.
20752
20753 2015-07-28 Nick Clifton <nickc@redhat.com>
20754
20755 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
20756 Optimizes the case where -mes0 is active and a constant symbolic
20757 address is used.
20758 * config/rl78/rl78-protos.h: Prototype the new function.
20759 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
20760
20761 2015-07-28 Tom de Vries <tom@codesourcery.com>
20762
20763 * tree-parloops.c (reduc_stmt_res): New function.
20764 (initialize_reductions, add_field_for_reduction)
20765 (create_phi_for_local_result, create_loads_for_reductions)
20766 (create_stores_for_reduction, build_new_reduction): Handle case that
20767 reduc_stmt is a phi.
20768 (gather_scalar_reductions): Allow double_reduc reductions.
20769
20770 2015-07-28 Richard Biener <rguenther@suse.de>
20771
20772 * fold-const.c (fold_comparison): Remove equality folding
20773 of decl addresses ...
20774 * match.pd: ... here and merge with existing pattern.
20775
20776 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
20777
20778 PR tree-optimization/66828
20779 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
20780 from int64_t to uint64_t.
20781
20782 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
20783
20784 * opts-common.c (read_cmdline_option): List DriverOnly enum values
20785 as valid only in the error message of the driver, not in the
20786 messages of the language compilers.
20787
20788 2015-07-27 Tom de Vries <tom@codesourcery.com>
20789
20790 * tree-parloops.c (gather_scalar_reductions): Simplify function
20791 structure.
20792
20793 2015-07-27 Marek Polacek <polacek@redhat.com>
20794
20795 * ipa-devirt.c (types_same_for_odr): Fix typo.
20796
20797 2015-07-27 Jason Merrill <jason@redhat.com>
20798
20799 PR debug/66468
20800 * dwarf2out.c (gen_inlined_subroutine_die): Check
20801 cgraph_function_possibly_inlined_p.
20802
20803 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
20804
20805 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
20806 Place integer variant first.
20807 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20808
20809 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
20810
20811 PR/63870
20812 * config/arm/arm-builtins.c (enum arm_builtins):
20813 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
20814 (ARM_BUILTIN_NEON_BASE): Rename macro to....
20815 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
20816 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
20817 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
20818
20819 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
20820
20821 PR/63870
20822 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
20823 Add qualifier_lane_index.
20824 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
20825 (arm_getlane_qualifiers): Use qualifier_lane_index.
20826 (arm_lanemac_qualifiers): Rename to...
20827 (arm_mac_n_qualifiers): ...this.
20828 (LANEMAC_QUALIFIERS): Rename to...
20829 (MAC_N_QUALIFIERS): ...this.
20830 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
20831 (arm_setlane_qualifiers): Use qualifier_lane_index.
20832 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
20833 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
20834 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
20835 (arm_expand_neon_builtin): Handle qualifier_lane_index.
20836
20837 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
20838 * config/arm/arm.c (bounds_check): Likewise, improve error message.
20839 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
20840 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
20841 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
20842 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
20843 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
20844 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
20845 qualifiers to TERNOP_IMM.
20846 (vdup_lane): Change qualifiers to GETLANE.
20847 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
20848 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
20849 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
20850 vqdmlsl_n): Change qualifiers to MAC_N.
20851
20852 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
20853 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
20854 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
20855 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
20856 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
20857 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
20858 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
20859 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
20860 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
20861 Remove call to neon_lane_bounds.
20862
20863 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
20864
20865 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
20866 Place integer variant first.
20867
20868 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
20869
20870 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
20871 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
20872 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
20873 for armv6kz targets.
20874 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
20875 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
20876 (FL_FOR_ARCH6ZK): Remove.
20877 (FL_FOR_ARCH6KZ): New.
20878 (arm_arch6zk): New declaration.
20879 * config/arm/arm-tables.opt: Regenerate.
20880 * config/arm/arm.c (arm_arch6kz): New.
20881 (arm_option_override): Set arm_arch6kz.
20882 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
20883 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
20884 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
20885
20886 2015-07-27 Marek Polacek <polacek@redhat.com>
20887
20888 PR c++/66555
20889 PR c/54979
20890 * doc/invoke.texi: Document -Wtautological-compare.
20891
20892 2015-07-27 Richard Biener <rguenther@suse.de>
20893
20894 * genmatch.c (decision_tree::gen_gimple): Split out large
20895 subtrees into separate functions.
20896 (decision_tree::gen_generic): Likewise.
20897
20898 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
20899
20900 * config/alpha/alpha.c: Use SUBREG_P predicate.
20901 * config/alpha/predicates.md: Ditto.
20902
20903 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
20904
20905 * config.host (s390*-*-*): Include driver-native.c only when
20906 building with s390* as host *and* target.
20907
20908 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
20909
20910 PR target/66930
20911 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
20912 T bit register modified_between_p check.
20913
20914 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
20915
20916 * config/i386/i386.c: Use SUBREG_P predicate.
20917 * config/i386/i386.md: Ditto.
20918 * config/i386/sse.md: Ditto.
20919 * config/i386/predicates.md: Ditto.
20920
20921 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
20922
20923 PR target/67004
20924 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
20925 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
20926
20927 2015-07-25 Sebastian Pop <s.pop@samsung.com>
20928
20929 * Makefile.in: Remove use of TREEBROWSER.
20930 * config.in: Regenerated.
20931 * configure: Regenerated.
20932 * configure.ac: Remove definition of TREEBROWSER.
20933 * tree-browser.c: Removed.
20934 * tree-browser.def: Removed.
20935
20936 2015-07-25 Sebastian Pop <s.pop@samsung.com>
20937
20938 * graphite-scop-detection.c: Include gimple-pretty-print.h.
20939 (stmt_simple_for_scop_p): Print when a stmt is not handled in
20940 Graphite.
20941 (scopdet_basic_block_info): Print when a loop or bb cannot be
20942 represented in Graphite.
20943
20944 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
20945
20946 PR target/66648
20947 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
20948 execution guard when min_size is less than size_needed.
20949
20950 2015-07-25 Sebastian Pop <s.pop@samsung.com>
20951
20952 * doc/install.texi: Document supported versions of ISL.
20953
20954 2015-07-25 Jeff Law <law@redhat.com>
20955
20956 Revert:
20957 PR lto/66752
20958 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
20959 unable to find X NE 0 in the tables, return X as the simplified
20960 condition.
20961 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
20962 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
20963 to VISISTED_BBS. */
20964 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
20965 after removing the control flow statement and unnecessary edges.
20966
20967 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
20968
20969 Revert:
20970 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
20971
20972 PR rtl-optimization/64164
20973 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
20974 * tree-ssa-copyrename.c: Removed.
20975 * opts.c (default_options_table): Drop -ftree-copyrename. Add
20976 -ftree-coalesce-vars.
20977 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
20978 * common.opt (ftree-copyrename): Ignore.
20979 (ftree-coalesce-inlined-vars): Likewise.
20980 * doc/invoke.texi: Remove the ignored options above.
20981 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
20982 * tree-ssa-coalesce.h: ... here.
20983 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
20984 headers required by it.
20985 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
20986 across variables when flag_tree_coalesce_vars. Check register
20987 use and promoted modes to allow coalescing. Moved to
20988 tree-ssa-coalesce.c.
20989 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
20990 with its member functions to tree-ssa-coalesce.c.
20991 (var_map_base_init): Likewise. Renamed to
20992 compute_samebase_partition_bases.
20993 (partition_view_normal): Drop want_bases parameter.
20994 (partition_view_bitmap): Likewise.
20995 * tree-ssa-live.h: Adjust declarations.
20996 * tree-ssa-coalesce.c: Include explow.h.
20997 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
20998 default defs at the entry point.
20999 (dump_part_var_map): New.
21000 (compute_optimized_partition_bases): New, called by...
21001 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21002 of compute_samebase_partition_bases. Adjust.
21003 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21004 * cfgexpand.c (leader_merge): New.
21005 (get_rtl_for_parm_ssa_default_def): New.
21006 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21007 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21008 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
21009 redundant MEM attr setting.
21010 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
21011 from...
21012 (expand_one_stack_var): ... this. New wrapper to check and
21013 skip already expanded SSA partitions.
21014 (record_alignment_for_reg_var): New, factored out of...
21015 (expand_one_var): ... this.
21016 (expand_one_ssa_partition): New.
21017 (adjust_one_expanded_partition_var): New.
21018 (expand_one_register_var): Check and skip already expanded SSA
21019 partitions.
21020 (expand_used_vars): Don't create DECLs for anonymous SSA
21021 names. Expand all SSA partitions, then adjust all SSA names.
21022 (pass::execute): Replace the loops that set
21023 SA.partition_to_pseudo from partition leaders and cleared
21024 DECL_RTL for multi-location variables, and that which used to
21025 rename vars and set attrs, with one that clears DECL_RTL and
21026 checks that PARMs and RESULTs default_defs match DECL_RTL.
21027 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21028 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21029 * explow.c (promote_ssa_mode): New.
21030 * explow.h (promote_ssa_mode): Declare.
21031 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21032 * function.c: Include cfgexpand.h.
21033 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21034 (use_register_for_parm_decl): Wrapper for the above to
21035 special-case the result_ptr.
21036 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21037 (split_complex_args): Take assign_parm_data_all argument.
21038 Pass it to rtl_for_parm. Set up rtl and context for split
21039 args.
21040 (assign_parms_augmented_arg_list): Adjust.
21041 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21042 multiple locations. Recognize split complex args.
21043 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21044 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
21045 (assign_parm_setup_block): Prefer SSA-assigned location.
21046 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
21047 if stack_parm is NULL.
21048 (assign_parm_setup_stack): Prefer SSA-assigned location.
21049 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
21050 rtl before testing for pointer bounds. Special-case result_ptr.
21051 (expand_function_start): Maybe reset DECL_RTL of result.
21052 Prefer SSA-assigned location for result and static chain.
21053 Factor out DECL_RESULT and SET_DECL_RTL.
21054 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21055 anonymous SSA names. Use promote_ssa_mode.
21056 (get_temp_reg): Likewise.
21057 (remove_ssa_form): Adjust.
21058 * stor-layout.c (layout_decl): Don't set mem attributes of
21059 non-MEMs.
21060 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21061 and get its reg_usage for reg invalidation.
21062 (compute_bb_dataflow): Pass it insn.
21063 (emit_notes_in_bb): Likewise.
21064
21065 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
21066
21067 * config/i386/i386.c (ix86_va_start): Remove
21068 unneeded !TARGET_64BIT check.
21069 (ix86_gimplify_va_arg): Ditto.
21070
21071 2015-07-24 Tom de Vries <tom@codesourcery.com>
21072
21073 * graphite-sese-to-poly.c (build_poly_scop): Always call
21074 rewrite_commutative_reductions_out_of_ssa.
21075
21076 2015-07-24 Tom de Vries <tom@codesourcery.com>
21077
21078 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
21079 flag_associative_math to FLOAT_TYPE_P. Honour
21080 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
21081
21082 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
21083
21084 PR c++/64079
21085 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
21086 and "%qD" in warning_at instead of "%q+D" in warning.
21087
21088 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
21089
21090 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
21091 (ix86_function_abi): Cleanup.
21092
21093 2015-07-24 Michael Darling <darlingm@gmail.com>
21094
21095 PR other/66259
21096 * acinclude.m4: Reflects renaming of configure.in to configure.ac
21097 * configure: Likewise
21098 * configure.ac: Likewise
21099 * doc/install.texi: Likewise
21100 * doc/tm.texi: Likewise
21101 * doc/tm.texi.in: Likewise
21102
21103 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21104
21105 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
21106 manually swapping values.
21107 * cse.c (fold_rtx): Likewise.
21108 * lra-eliminations.c (form_sum): Likewise.
21109
21110 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
21111
21112 PR target/64003
21113 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
21114 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
21115 (*jcc_1, *jcc_2, jump, simple_return_internal)
21116 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
21117 Set length_nobnd attribute instead of length attribute.
21118 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
21119 (length_nobnd): Remove attribute.
21120 (length): Remove length_nobnd processing.
21121
21122 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
21123
21124 * gimplify.c (omp_default_clause): New function. Reorganize flow
21125 for clarity. Broken out of ...
21126 (omp_notice_variable): ... here.
21127
21128 2015-07-24 Gary Funck <gary@intrepid.com>
21129
21130 PR middle-end/66984
21131 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
21132 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
21133
21134 2015-07-24 Tom de Vries <tom@codesourcery.com>
21135
21136 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
21137 exit-first loop transform.
21138
21139 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
21140
21141 PR 66714
21142 * tree-cfg.c (struct replace_decls_d): New struct.
21143 (replace_block_vars_by_duplicates_1): New function.
21144 (replace_block_vars_by_duplicates): Use it to replace the decls
21145 in the value exprs by duplicates.
21146
21147 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
21148
21149 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
21150 -shared, -symbolic, -rdynamic.
21151
21152 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
21153
21154 PR target/65711
21155 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
21156 -dynamic-linker within %{!static %{!shared, and -rdynamic within
21157 %{!static.
21158
21159 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
21160
21161 PR ipa/66566
21162 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
21163 edge summary is available.
21164
21165 2015-07-24 Richard Biener <rguenther@suse.de>
21166
21167 * genmatch.c (struct dt_node): Add statistic fields.
21168 (dt_node::analyze): New method.
21169 (decision_tree::gen_gimple): Call analyze on the root node
21170 and print statistics to stderr.
21171 (decision_tree::gen_generic): Likewise.
21172
21173 2015-07-24 Richard Biener <rguenther@suse.de>
21174
21175 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
21176 against the highest or lowest possible integer ...
21177 * match.pd: ... as patterns here.
21178
21179 2015-07-24 Richard Biener <rguenther@suse.de>
21180
21181 * genmatch.c (struct capture_info): Add same_as field.
21182 (capture_info::capture_info): Initialize same_as.
21183 (capture_info::walk_match): Compute same_as.
21184 (capture_info::walk_result): Compute stuff for the leader.
21185 (capture_info::walk_c_expr): Likewise.
21186 (dt_simplify::gen_1): Only look at leaders when deciding
21187 to force no side-effects or emit side-effects of omitted operands.
21188
21189 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21190
21191 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
21192 reg note to the GPR -> FPR save instructions.
21193
21194 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21195
21196 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
21197 cheaper.
21198 (s390_expand_insv): Don't generate risbg pattern for constant zero
21199 sources.
21200 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
21201 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
21202 splitters.
21203
21204 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21205
21206 * config/s390/s390.c (s390_reorg): Clean up handling of processors
21207 with
21208 -mtune=
21209 (s390_issue_rate): Likewise.
21210 (s390_sched_reorder): Likewise.
21211 (s390_sched_variable_issue): Likewise.
21212 (s390_loop_unroll_adjust): Likewise.
21213 (s390_option_override): Likewise.
21214
21215 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21216
21217 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
21218 processor capabilities with -march=native.
21219 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
21220 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
21221 (S390_TARGET_BITS_STRING): Macro to simplify specs.
21222
21223 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21224
21225 * config/s390/s390.c (s390_issue_rate): Handle
21226 PROCESSOR_2094_Z9_EC.
21227 (s390_option_override): Likewise.
21228 (s390_adjust_priority): Likewise.
21229
21230 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21231
21232 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
21233 when cross compiling.
21234
21235 2015-07-24 Richard Biener <rguenther@suse.de>
21236
21237 * fold-const.c (maybe_canonicalize_comparison_1): Move
21238 A code CST canonicalization ...
21239 * match.pd: ... to a pattern here.
21240
21241 2015-07-24 Jiong Wang <jiong.wang@arm.com>
21242
21243 Revert:
21244 2015-07-22 Jiong Wang <jiong.wang@arm.com>
21245 PR target/63521
21246 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
21247 (HONOR_REG_ALLOC_ORDER): Define.
21248
21249 2015-07-24 Richard Biener <rguenther@suse.de>
21250
21251 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
21252 * fold-const.c (fold_comparison): Move parameter does not
21253 alias &local simplification ...
21254 * match.pd: ... as a pattern here.
21255
21256 2015-07-24 Richard Biener <rguenther@suse.de>
21257
21258 * gimple-fold.c (replace_stmt_with_simplification): Special-case
21259 valueizing call operands.
21260 * gimple-match-head.c (maybe_push_res_to_seq): Take
21261 number of call arguments from ops array.
21262 (do_valueize): New function.
21263 (gimple_simplify): Return true if valueization changed
21264 any operand even if the result didn't simplify further.
21265
21266 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
21267
21268 PR middle-end/25530
21269 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
21270
21271 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
21272
21273 PR middle-end/25529
21274 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
21275
21276 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
21277
21278 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
21279 instruction.
21280
21281 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
21282
21283 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
21284 clean up.
21285
21286 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
21287
21288 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
21289 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
21290 targets here.
21291 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
21292 ms_va_list_type_node initialization.
21293
21294 2015-07-23 Jeff Law <law@redhat.com>
21295
21296 PR lto/66752
21297 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
21298 unable to find X NE 0 in the tables, return X as the simplified
21299 condition.
21300 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
21301 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
21302 to VISISTED_BBS. */
21303 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
21304 after removing the control flow statement and unnecessary edges.
21305
21306 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
21307
21308 * tree-pass.h (get_current_pass_name): Removed.
21309
21310 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
21311
21312 PR rtl-optimization/64164
21313 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21314 * tree-ssa-copyrename.c: Removed.
21315 * opts.c (default_options_table): Drop -ftree-copyrename. Add
21316 -ftree-coalesce-vars.
21317 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21318 * common.opt (ftree-copyrename): Ignore.
21319 (ftree-coalesce-inlined-vars): Likewise.
21320 * doc/invoke.texi: Remove the ignored options above.
21321 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21322 * tree-ssa-coalesce.h: ... here.
21323 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21324 headers required by it.
21325 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21326 across variables when flag_tree_coalesce_vars. Check register
21327 use and promoted modes to allow coalescing. Moved to
21328 tree-ssa-coalesce.c.
21329 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21330 with its member functions to tree-ssa-coalesce.c.
21331 (var_map_base_init): Likewise. Renamed to
21332 compute_samebase_partition_bases.
21333 (partition_view_normal): Drop want_bases parameter.
21334 (partition_view_bitmap): Likewise.
21335 * tree-ssa-live.h: Adjust declarations.
21336 * tree-ssa-coalesce.c: Include explow.h.
21337 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21338 default defs at the entry point.
21339 (dump_part_var_map): New.
21340 (compute_optimized_partition_bases): New, called by...
21341 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21342 of compute_samebase_partition_bases. Adjust.
21343 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21344 * cfgexpand.c (leader_merge): New.
21345 (get_rtl_for_parm_ssa_default_def): New.
21346 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21347 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21348 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
21349 redundant MEM attr setting.
21350 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
21351 from...
21352 (expand_one_stack_var): ... this. New wrapper to check and
21353 skip already expanded SSA partitions.
21354 (record_alignment_for_reg_var): New, factored out of...
21355 (expand_one_var): ... this.
21356 (expand_one_ssa_partition): New.
21357 (adjust_one_expanded_partition_var): New.
21358 (expand_one_register_var): Check and skip already expanded SSA
21359 partitions.
21360 (expand_used_vars): Don't create DECLs for anonymous SSA
21361 names. Expand all SSA partitions, then adjust all SSA names.
21362 (pass::execute): Replace the loops that set
21363 SA.partition_to_pseudo from partition leaders and cleared
21364 DECL_RTL for multi-location variables, and that which used to
21365 rename vars and set attrs, with one that clears DECL_RTL and
21366 checks that PARMs and RESULTs default_defs match DECL_RTL.
21367 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21368 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21369 * explow.c (promote_ssa_mode): New.
21370 * explow.h (promote_ssa_mode): Declare.
21371 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21372 * function.c: Include cfgexpand.h.
21373 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21374 (use_register_for_parm_decl): Wrapper for the above to
21375 special-case the result_ptr.
21376 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21377 (split_complex_args): Take assign_parm_data_all argument.
21378 Pass it to rtl_for_parm. Set up rtl and context for split
21379 args.
21380 (assign_parms_augmented_arg_list): Adjust.
21381 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21382 multiple locations. Recognize split complex args.
21383 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21384 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
21385 (assign_parm_setup_block): Prefer SSA-assigned location.
21386 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
21387 if stack_parm is NULL.
21388 (assign_parm_setup_stack): Prefer SSA-assigned location.
21389 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
21390 rtl before testing for pointer bounds. Special-case result_ptr.
21391 (expand_function_start): Maybe reset DECL_RTL of result.
21392 Prefer SSA-assigned location for result and static chain.
21393 Factor out DECL_RESULT and SET_DECL_RTL.
21394 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21395 anonymous SSA names. Use promote_ssa_mode.
21396 (get_temp_reg): Likewise.
21397 (remove_ssa_form): Adjust.
21398 * stor-layout.c (layout_decl): Don't set mem attributes of
21399 non-MEMs.
21400 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21401 and get its reg_usage for reg invalidation.
21402 (compute_bb_dataflow): Pass it insn.
21403 (emit_notes_in_bb): Likewise.
21404
21405 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
21406
21407 PR target/66217
21408 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
21409 prototype.
21410 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
21411 (rs6000_emit_2insn_and): Handle dot forms.
21412 * config/rs6000/rs6000.md (and<mode>3): Adjust.
21413 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
21414 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
21415
21416 2015-07-23 Richard Biener <rguenther@suse.de>
21417
21418 * generic-match-head.c: Include cgraph.h.
21419 * gimple-match-head.c: Likewise.
21420 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
21421 SSA names.
21422 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
21423 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
21424 pattern.
21425
21426 2015-07-23 Richard Biener <rguenther@suse.de>
21427
21428 * gimple-fold.c (fold_gimple_cond): Do not require folding
21429 results to pass valid_gimple_rhs_p.
21430 * tree-cfg.h (fold_cond_expr_cond): Remove.
21431 * tree-cfg.c (fold_cond_expr_cond): Likewise.
21432 (make_edges): Do not call it.
21433 * tree-inline.c (tree_function_versioning): Likewise.
21434
21435 2015-07-23 Tom de Vries <tom@codesourcery.com>
21436
21437 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
21438 vect_force_simple_reduction.
21439 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
21440 (vect_is_simple_reduction_1): Add and handle
21441 need_wrapping_integral_overflow parameter.
21442 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
21443 need_wrapping_integral_overflow parameter.
21444 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
21445 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
21446 decl.
21447
21448 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
21449
21450 PR tree-optimization/66926,66951
21451 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
21452 INNER_LOOP and fix up condition for renaming virtual operands.
21453
21454 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21455
21456 * combine.c (try_combine): Use std::swap instead of manually
21457 swapping.
21458
21459 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
21460
21461 * config/mips/i6400.md: New file.
21462 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
21463 (mips64r6): Likewise.
21464 (i6400): Define.
21465 * config/mips/mips-tables.opt: Regenerate.
21466 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
21467 (mips_issue_rate): Add support for i6400.
21468 (mips_multipass_dfa_lookahead): Likewise.
21469 * config/mips/mips.h (TUNE_I6400): Define.
21470 * config/mips/mips.md: Include i6400.md.
21471 (processor): Add i6400.
21472 * doc/invoke.texi (-march=@var{arch}): Add i6400.
21473
21474 2015-07-23 Richard Biener <rguenther@suse.de>
21475
21476 PR middle-end/66916
21477 * match.pd: Guard widen and sign-change comparison simplification
21478 with single_use.
21479
21480 2015-07-23 Richard Biener <rguenther@suse.de>
21481
21482 PR tree-optimization/66945
21483 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
21484 ::before_dom_children): Force the propagators idea of
21485 non-executable edges to materialize, not what the folder
21486 chooses.
21487
21488 2015-07-23 Richard Biener <rguenther@suse.de>
21489
21490 * gimple.h (gimple_cond_make_false): Use 0 != 0.
21491 (gimple_cond_make_true): Use 1 != 0.
21492
21493 2015-07-22 DJ Delorie <dj@redhat.com>
21494
21495 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
21496 slashes.
21497
21498 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
21499 (ashrhi3): Likewise.
21500 (lshrhi3): Likewise.
21501 (movhi): Take advantage of zero-extend to load small constants.
21502 (movpsi): Likewise.
21503 (and<mode>3): Likewise.
21504 (zero_extendqihi2): Likewise.
21505 (zero_extendqisi2): New.
21506 * config/msp430/constraints.md (N,O): New.
21507 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
21508
21509 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
21510
21511 PR target/66954
21512 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
21513 to enum feature_priority and feature_list.
21514 (fold_builtin_cpu): Add F_AES to enum processor_features
21515 and isa_names_table.
21516
21517 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
21518
21519 PR driver/66737
21520 * config/i386/linux-common.h (MPX_SPEC): Use linker option
21521 for 64bit target only.
21522
21523 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
21524
21525 * config/nvptx/nvptx.c: Expand some comments.
21526
21527 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
21528
21529 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
21530 (cortex_a53_advsimd): ...This.
21531
21532 2015-07-22 Richard Biener <rguenther@suse.de>
21533
21534 * genmatch.c (expr::gen_transform): Clarify error message
21535 and display location.
21536
21537 2015-07-22 Richard Biener <rguenther@suse.de>
21538
21539 * genmatch.c (struct operand): Add location member.
21540 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
21541 constructors.
21542 (struct simplify): Remove match_location and result_location
21543 members.
21544 (elsehwere): Adjust.
21545
21546 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
21547
21548 * config/mips/m5100.md: New file.
21549 * config/mips/mips-cpus.def (m5100, m5101): Define.
21550 * config/mips/mips-tables.opt: Regenerate.
21551 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
21552 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
21553 -march=m5101 to -mips32r5.
21554 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
21555 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
21556 !-msoft-float.
21557 * config/mips/mips.md: Include m5100.md.
21558 (processor): Add m5100.
21559 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
21560
21561 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
21562
21563 * config/mips/mips-cpus.def (interaptiv): Define.
21564 * config/mips/mips-tables.opt: Regenerate.
21565 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
21566 -mips32r2.
21567 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
21568 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
21569
21570 2015-07-22 Jiong Wang <jiong.wang@arm.com>
21571
21572 PR target/63521
21573 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
21574 (HONOR_REG_ALLOC_ORDER): Define.
21575
21576 2015-07-22 Richard Biener <rguenther@suse.de>
21577
21578 PR tree-optimization/66952
21579 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
21580 blocks we end up executing unconditionally reset all SSA
21581 info such as range and alignment.
21582 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
21583 * tree-ssanames.c (reset_flow_sensitive_info): New function.
21584
21585 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
21586
21587 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
21588 typo in attribute.
21589
21590 2015-07-22 Richard Biener <rguenther@suse.de>
21591
21592 * genmatch.c (parser::parse_result): Properly handle
21593 match with result operands and conditions.
21594
21595 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
21596
21597 PR target/63870
21598 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
21599 Add qualifier_struct_load_store_lane_index.
21600 (aarch64_types_loadstruct_lane_qualifiers): Use
21601 qualifier_struct_load_store_lane_index for lane index argument for
21602 last argument.
21603 (aarch64_types_storestruct_lane_qualifiers): Ditto.
21604 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
21605 (aarch64_simd_expand_args): Add new argument describing mode of
21606 builtin. Check lane bounds for arguments with
21607 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
21608 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
21609 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
21610 (aarch64_simd_expand_builtin): Handle arguments with
21611 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
21612 aarch64_simd_expand_args.
21613 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
21614 vst[234]_lane with BUILTIN_VALLDIF.
21615 * config/aarch64/aarch64-simd.md:
21616 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
21617 endianness reversal on lane index.
21618 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
21619 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
21620 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
21621 (vec_store_lanesci_lane<mode>): Ditto.
21622 (vec_store_lanesxi_lane<mode>): Ditto.
21623 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
21624 reversal of lane index.
21625 (aarch64_ld3_lane<mode>): Ditto.
21626 (aarch64_ld4_lane<mode>): Ditto.
21627 (aarch64_st2_lane<mode>): Ditto.
21628 (aarch64_st3_lane<mode>): Ditto.
21629 (aarch64_st4_lane<mode>): Ditto.
21630 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
21631 to qmode. Add new mode parameter. Update uses.
21632 (__LD3_LANE_FUNC): Ditto.
21633 (__LD4_LANE_FUNC): Ditto.
21634 (__ST2_LANE_FUNC): Ditto.
21635 (__ST3_LANE_FUNC): Ditto.
21636 (__ST4_LANE_FUNC): Ditto.
21637
21638 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
21639
21640 * doc/invoke.texi (Language Independent Options): Rename node to
21641 Diagnostic Message Formatting Options.
21642
21643 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
21644
21645 PR ipa/66424.
21646 * lra-remat.c (operand_to_remat): Prevent using insns with input
21647 subregs processed separately by IRA.
21648
21649 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
21650
21651 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
21652 straight loops.
21653 (single_imm_use): Check for iterator node.
21654 (num_imm_uses): Likewise.
21655 * tree-ssa-operands.c (has_zero_uses_1): Delete.
21656 (single_imm_use_1): Check for iterator node.
21657
21658 2015-07-21 Mike Frysinger <vapier@gentoo.org>
21659 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21660
21661 * configure.ac: Add check for new options in isl-0.15.
21662 * config.in, configure: Rebuilt.
21663 * graphite-blocking.c: Include <isl/constraint.h>
21664 * graphite-interchange.c, graphite-poly.c: Likewise.
21665 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
21666 * graphite.c: Likewise.
21667 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
21668 <isl/union_set.h>.
21669 * graphite-dependences.c: Include <isl/constraint.h>.
21670 (max_number_of_out_dimensions): Returns isl_stat.
21671 (extend_schedule_1): Likewise
21672 (extend_schedule): Corresponding changes.
21673 * graphite-optimize-isl.c: Include <isl/constraint.h> and
21674 <isl/union_set.h>.
21675 (getSingleMap): Change return type of isl_stat.
21676 (optimize_isl): Conditionally use
21677 isl_options_set_schedule_serialize_sccs.
21678 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
21679 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
21680
21681 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
21682
21683 PR target/66956
21684 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
21685 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
21686
21687 2015-07-21 Richard Biener <rguenther@suse.de>
21688
21689 PR tree-optimization/66948
21690 * genmatch.c (capture_info::walk_match): Also recurse to
21691 captures. Properly compute expr state from captures of
21692 captures.
21693 * match.pd: Add single-use guards to
21694 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
21695
21696 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
21697
21698 * config/nvptx/mkoffload.c (process): Add static destructor call.
21699
21700 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21701
21702 PR middle-end/66915
21703 * match.pd (A - B -> A + (-B)): Don't allow folding
21704 when type if a fixed-point type.
21705
21706 2015-07-20 DJ Delorie <dj@redhat.com>
21707
21708 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
21709 (iorqi3_real): Likewise for set1.
21710
21711 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
21712
21713 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
21714 for !TARGET_64BIT.
21715
21716 2015-07-20 Aditya Kumar <hiraditya@msn.com>
21717
21718 * graphite-isl-ast-to-gimple.c:
21719 Refactor so that each function can access 'region'. This will help
21720 maintain a parameter rename_map within a region.
21721
21722 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
21723
21724 * config/rs6000/rs6000.md (*lt0_disi): New.
21725
21726 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
21727
21728 PR target/66217
21729 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
21730 "available letters" comment.
21731 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
21732 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
21733 and_2rld_operand): Delete.
21734 (and_operand): Adjust.
21735 (rotate_mask_operator): New.
21736 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
21737 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
21738 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
21739 extract_ME): Delete.
21740 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
21741 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
21742 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
21743 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
21744 rs6000_emit_2insn_and): New.
21745 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
21746 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
21747 includes_rldic_lshift_p, includes_rldicr_lshift_p,
21748 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
21749 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
21750 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
21751 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
21752 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
21753 rs6000_emit_2insn_and): New.
21754 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
21755 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
21756 handling.
21757 <NOT>: Don't fall through to next case.
21758 <AND>: Handle the various rotate-and-mask cases directly.
21759 <IOR>: Always cost as one insn.
21760 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
21761 (and<mode>3): Adjust expander for the new patterns.
21762 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
21763 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
21764 (*and<mode>3_imm_dot_shifted): New.
21765 (*and<mode>3_mask): Delete, rewrite as ...
21766 (and<mode>3_mask): ... New.
21767 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
21768 (andsi3_internal0_nomc): Delete.
21769 (*andsi3_internal6): Delete.
21770 (*and<mode>3_2insn): New.
21771 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
21772 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
21773 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
21774 *insvdi_internal3): Delete.
21775 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
21776 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
21777 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
21778 *ior<mode>_mask): New.
21779 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
21780 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
21781 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
21782 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
21783 Delete.
21784 (ashr<mode>3): Delete expander.
21785 (*ashr<mode>3): Rename to ...
21786 (ashr<mode>3): ... This.
21787 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
21788 (*rotldi3_internal4, *rotldi3_internal5 and split,
21789 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
21790 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
21791 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
21792 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
21793 (splitter for loading a mask): Adjust.
21794 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
21795
21796 2015-07-20 Marek Polacek <polacek@redhat.com>
21797
21798 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
21799 output_add_clobbers, output_added_clobbers_hard_reg_p,
21800 gen_rtx_scratch): Remove declarations.
21801
21802 2015-07-20 Marek Polacek <polacek@redhat.com>
21803
21804 PR c++/55095
21805 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
21806
21807 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21808
21809 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
21810 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
21811
21812 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21813
21814 * combine.c (combine_simplify_rtx): Move simplification step
21815 before various transformations/substitutions.
21816
21817 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
21818
21819 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
21820 (struct int_traits): Likewise.
21821
21822 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21823
21824 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
21825 function to vmsdbgout_function_decl.
21826
21827 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
21828
21829 PR target/66922
21830 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
21831 from misaligned positions.
21832 (ix86_expand_pinsr): Reject insertions to misaligned positions.
21833
21834 2015-07-18 Sebastian Pop <s.pop@samsung.com>
21835
21836 PR middle-end/46851
21837 PR middle-end/60340
21838 * Makefile.in: Removed omega.o.
21839 * common.opt: Document flag fcheck-data-deps as deprecated.
21840 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
21841 its associated params: omega-max-vars, omega-max-geqs,
21842 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
21843 omega-max-keys, omega-eliminate-redundant-constraints.
21844 * doc/loop.texi: Remove all the section on Omega.
21845 * graphite-blocking.c: Include missing params.h: it used to be
21846 included through tree-data-ref.h and omega.h.
21847 * graphite-isl-ast-to-gimple.c: Same.
21848 * graphite-optimize-isl.c: Same.
21849 * graphite-sese-to-poly.c: Same.
21850 * graphite.c: Same.
21851 * omega.c: Remove.
21852 * omega.h: Remove.
21853 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
21854 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
21855 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
21856 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
21857 * passes.def: Remove pass_check_data_deps.
21858 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
21859 (dump_conflict_function): Same.
21860 (dump_subscript): Same.
21861 (print_direction_vector): Same.
21862 (print_dir_vectors): Same.
21863 (print_lambda_vector): Same.
21864 (print_dist_vectors): Same.
21865 (dump_data_dependence_relation): Same.
21866 (dump_data_dependence_relations): Same.
21867 (dump_dist_dir_vectors): Same.
21868 (dump_ddrs): Same.
21869 (init_omega_eq_with_af): Removed.
21870 (omega_extract_distance_vectors): Removed.
21871 (omega_setup_subscript): Removed.
21872 (init_omega_for_ddr_1): Removed.
21873 (init_omega_for_ddr): Removed.
21874 (ddr_consistent_p): Removed.
21875 (compute_affine_dependence): Do not use omega to check data
21876 dependences.
21877 (compute_data_dependences_for_bb): Removed.
21878 (analyze_all_data_dependences): Removed.
21879 (tree_check_data_deps): Removed.
21880 * tree-data-ref.h: Do not include omega.h.
21881 (compute_data_dependences_for_bb): Removed.
21882 (tree_check_data_deps): Removed.
21883 * tree-ssa-loop.c (pass_check_data_deps): Removed.
21884 (make_pass_check_data_deps): Removed.
21885 * tree-ssa-phiopt.c: Include params.h.
21886 * tree-vect-data-refs.c: Same.
21887 * tree-vect-slp.c: Same.
21888
21889 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
21890
21891 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
21892 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
21893 (mem->fpreg splitters): Ditto.
21894 (general_operand->nonimmediate_operand splitter): Use explicit modes.
21895 Disable DFmode for TARGET_64BIT.
21896
21897 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
21898
21899 PR target/66906
21900 * config/i386/i386.c (ix86_expand_prologue): Replicate static
21901 chain on the stack.
21902
21903 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
21904
21905 * config/nvptx/mkoffload.c (process): Constify host data.
21906 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
21907 Constify host data.
21908 (generate_host_descr_file): Likewise.
21909
21910 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
21911 Sebastian Pop <s.pop@samsung.com>
21912
21913 PR middle-end/61929
21914 * graphite-dependences.c (add_pdr_constraints): Renamed
21915 pdr->extent to pdr->subscript_sizes.
21916 * graphite-interchange.c (build_linearized_memory_access): Add
21917 back all gcc_assert's that the "isl_int to isl_val conversion"
21918 patch has removed. Refactored.
21919 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
21920 * graphite-poly.c (new_poly_dr): Same.
21921 (free_poly_dr): Same.
21922 * graphite-poly.h (struct poly_dr): Same.
21923 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
21924 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
21925 * graphite-scop-detection.h: Fix space.
21926 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
21927 back all gcc_assert's removed by a previous patch.
21928 (wrap): Remove the_isl_ctx global variable that the same patch has
21929 added.
21930 (build_loop_iteration_domains): Same.
21931 (add_param_constraints): Same.
21932 (pdr_add_data_dimensions): Same. Refactored.
21933 (build_poly_dr): Renamed extent to subscript_sizes.
21934
21935 2015-07-17 Marek Polacek <polacek@redhat.com>
21936
21937 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
21938 * match.pd: ... here.
21939
21940 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
21941
21942 * config/nvptx/mkoffload.c (process): Constify target data.
21943 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
21944 Constify target data.
21945 (generate_target_offloadend_file): Likewise.
21946
21947 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
21948
21949 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
21950 to allow renaming of PHI arguments on edges incoming from outer
21951 loop header, add corresponding check before start PHI iterator.
21952 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
21953 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
21954 with true force_vectorize. Set-up dominator for outer loop too.
21955 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
21956 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
21957 was marked with force_vectorize and has restricted cfg.
21958 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
21959 inner loop.
21960 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
21961 do peeling for outer loops.
21962
21963 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
21964 Matthias Klose <doko@ubuntu.com>
21965
21966 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
21967 build-sysroot, sysroot from the `Miscenalleous configure options' to
21968 the `Directories' section and strip trailing `/' from with_sysroot.
21969 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
21970 * configure: Regenerated.
21971
21972 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
21973
21974 PR target/66824
21975 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
21976 (TARGET_HARD_DF_REGS): Ditto.
21977 (TARGET_HARD_XF_REGS): Ditto.
21978 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
21979 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
21980 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
21981 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
21982 (*movsf_internal): Add alternatives 16 and 17. Enable
21983 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
21984
21985 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
21986
21987 PR rtl-optimization/66891
21988 * calls.c (expand_call): Wrap precompute_register_parameters with
21989 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
21990
21991 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
21992
21993 * config/nvptx/mkoffload.c (process): Constify mapping variables.
21994 Define target data struct and initialize it.
21995
21996 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
21997
21998 PR rtl-optimization/66626
21999 * ira.h (emit-rtl.h): Include.
22000 (non_spilled_static_chain_regno_p): New.
22001 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
22002 unless it is non spilled static chain pseudo.
22003 (assign_hard_rego): Spill memory profitable allocno unless it is
22004 non spilled static chain pseudo.
22005 (allocno_spill_priority_compare): Put non spilled static chain
22006 pseudo at the end of sorted array.
22007 (improve_allocation): Do nothing if we have static chain and
22008 non-local goto.
22009 (allocno__priority_compare_func): Put non spilled static chain
22010 pseudo at the beginning of sorted array.
22011 (move_spill_restore): Ignore non spilled static chain pseudo.
22012 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
22013 to non spilled static chain pseudo.
22014 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
22015 pseudo at the beginning of sorted array.
22016 (spill_for): Spill non spilled static chain pseudo last.
22017 * lra-constraints.c (lra_constraints): Remove static chain pseudo
22018 check for equivalence.
22019
22020 2015-07-16 Martin Liska <mliska@suse.cz>
22021
22022 PR ipa/66896.
22023 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
22024 dst_ctx if it does not exist.
22025
22026 2015-07-16 Martin Liska <mliska@suse.cz>
22027
22028 * hash-set.h (remove): New function.
22029 (iterator): New iteration class for hash_set.
22030
22031 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22032
22033 * genattrtab.c (make_canonical): Add a file_location parameter.
22034 Use fatal_at rather than fatal.
22035 (get_attr_value): Likewise. Update call to make_canonical.
22036 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
22037 (make_internal_attr): Update calls accordingly.
22038
22039 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22040
22041 * read-md.h (message_with_line, error_with_line): Delete.
22042 * read-md.c (message_with_line, error_with_line): Delete.
22043 * gensupport.h: Include read-md.h.
22044 (md_rtx_info): New structure.
22045 (read_md_rtx): Use it. Return a bool success value.
22046 * gensupport.c (read_md_rtx): Likewise.
22047 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
22048 (main): Update after interface changes.
22049 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
22050 (main): Update after interface changes.
22051 * genattrtab.c (insn_code_number): Delete.
22052 (optimize_attrs): Add a max_insn_code parameter and use it instead
22053 of insn_code_number.
22054 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
22055 Use *_at rather than *_with_line functions.
22056 (gen_insn): Likewise.
22057 (gen_delay): Likewise.
22058 (gen_insn_reserv): Likewise.
22059 (gen_bypass): Take an md_rtx_info rather than an rtx.
22060 (main): Update after interface changes. Use a local max_insn_code
22061 variable instead of insn_code_number.
22062 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
22063 an rtx. Use fatal_at rather than fatal.
22064 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
22065 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
22066 (gen_absence_set, gen_final_absence_set, gen_automaton)
22067 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
22068 (main): Update after interface changes.
22069 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
22070 and code number.
22071 (main): Update after interface changes.
22072 * genconditions.c (main): Use new read_md_rtx interface.
22073 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
22074 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
22075 (main): Update after interface changes.
22076 * genemit.c (insn_code_number, insn_index_number): Delete.
22077 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
22078 Use fatal_at rather than fatal.
22079 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
22080 rather than fatal.
22081 (gen_split): Likewise.
22082 (main): Update after interface changes.
22083 * genextract.c (line_no): Delete.
22084 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
22085 Update call to walk_rtx.
22086 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
22087 rather than message_with_line.
22088 (walk_rtx): Add an md_rtx_info argument. Update call to
22089 VEC_safe_set_locstr.
22090 (main): Update after interface changes.
22091 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
22092 and lineno. Use error_at rather than separate message_with_line
22093 calls and have_error assignments.
22094 (main): Update after interface changes.
22095 * genmddump.c (main): Use new read_md_rtx interface.
22096 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
22097 (main): Update after interface changes.
22098 * genoutput.c (next_code_number): Delete.
22099 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
22100 (gen_peephole, gen_expand, gen_split): Likewise.
22101 (note_constraint): Likewise. Use *_at rather than *_with_line
22102 functions.
22103 (main): Update after interface changes.
22104 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
22105 rtx and lineno.
22106 (main): Update after interface changes.
22107 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
22108 than an rtx and lineno.
22109 (process_define_constraint): Likewise.
22110 (process_define_register_constraint): Likewise.
22111 (main): Update after interface changes.
22112 * genrecog.c (next_insn_code, pattern_lineno): Delete.
22113 (validate_pattern): Replace top-level rtx with an md_rtx_info.
22114 Use *_at rather than *_with_line functions.
22115 (match_pattern_2): Likewise.
22116 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
22117 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
22118 Use *_at rather than *_with_line functions.
22119 * gentarget-def.c (add_insn): New function.
22120 (main): Use it. Use new read_md_rtx interface.
22121
22122 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22123
22124 * gensupport.h (compute_test_codes): Take a file_location rather
22125 than a line number.
22126 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
22127 rather than *_with_line functions.
22128 (process_define_predicate): Update call to compute_test_codes.
22129 * genpreds.c (validate_exp): Take a file_location rather than a
22130 line number. Use *_at functions rather than *_with_line functions.
22131 (process_define_predicate): Update call to validate_exp.
22132 (constraint_data): Replace lineno field with a file_location.
22133 (add_constraint): Take a file_location rather than a line number.
22134 Use *_at functions rather than *_with_line functions. Fix error
22135 message for address constraints. Update after changes to
22136 validate_exp, constraint_data and compute_test_codes.
22137 (process_define_constraint): Update accordingly.
22138 (process_define_register_constraint): Likewise.
22139
22140 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22141
22142 * genoutput.c (data): Use a file_location to record the source
22143 position.
22144 (nothing): Delete.
22145 (idata, idata_end): Remove initialization.
22146 (constraint_data): Replace lineno with a file_location.
22147 (output_insn_data): Update after changes to data.
22148 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
22149 (scan_operands): Likewise, using *_at rather than *_with_line
22150 functions.
22151 (process_template): Likewise.
22152 (validate_insn_alternatives): Likewise.
22153 (validate_insn_operands): Likewise.
22154 (validate_optab_operands): Likewise.
22155 (init_insn_for_nothing): Initialize idata and idata_end.
22156 (note_constraint): Update after changes to constraint_data,
22157 using at rather than with_line functions.
22158 (mdep_constraint_len): Take a file_location rather than a
22159 line number. Use at rather than with_line functions.
22160
22161 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22162
22163 * read-md.h (fatal_at): Declare.
22164 * read-md.c (fatal_at): New function.
22165 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
22166 to record the source position.
22167 (check_attr_test): Take a file_location instead of a line number.
22168 Use fatal_at instead of fatal.
22169 (check_attr_value): Update after above changes, using "at"
22170 rather than "with_line" reporting functions.
22171 (convert_set_attr_alternative): Likewise.
22172 (gen_attr): Likewise.
22173 (check_defs): Likewise. Don't assign to read_md_filename.
22174 (gen_insn): Update initialization after above changes.
22175 (gen_delay): Likewise.
22176 (write_insn_cases): Print the filename for a define_peephole.
22177 (gen_insn_reserv): Take a line number as argument and update
22178 the call to check_attr_test.
22179 (main): Pass a line number to gen_insn_reserv.
22180
22181 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22182
22183 * read-md.h (file_location): New structure.
22184 (directive_handler_t): Take a file_location rather than a line number.
22185 (message_at, error_at): Declare.
22186 (read_skip_construct): Delete.
22187 * read-md.c (message_with_line_1): Replace with...
22188 (message_at_1): ...this new function.
22189 (message_at, error_at): New functions.
22190 (message_with_line, error_with_line): Update to use message_at_1.
22191 (handle_enum): Take a file_location rather than a line number
22192 and use error_at for error reporting.
22193 (handle_include): Likewise.
22194 (read_skip_construct): Likewise. Make static.
22195 (handle_file): Update after above changes. Pass a file_location
22196 rather than a line number to handle_directive.
22197 * gensupport.c (queue_elem): Replace separate filename and lineno
22198 with a file_location.
22199 (queue_pattern): Replace filename and lineno arguments with a
22200 file_location. Update after change to queue_elem.
22201 (process_define_predicate): Replace lineno argument with a
22202 file_location and use error_at for error reporting. Update
22203 after above changes.
22204 (process_rtx): Likewise.
22205 (subst_pattern_match): Likewise.
22206 (get_alternatives_number): Likewise.
22207 (alter_predicate_for_insn): Likewise.
22208 (rtx_handle_directive): Likewise.
22209 (is_predicable): Update after above changes, using error_at rather
22210 than error_with_line.
22211 (has_subst_attribute): Likewise.
22212 (identify_predicable_attribute): Likewise.
22213 (alter_attrs_for_subst_insn): Likewise.
22214 (process_one_cond_exec): Likewise.
22215 (process_substs_on_one_elem): Likewise.
22216 (process_define_subst): Likewise.
22217 (check_define_attr_duplicates): Likewise.
22218 (read_md_rtx): Update after change to queue_elem.
22219
22220 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22221
22222 * genoutput.c (next_index_number): Delete.
22223 (data): Remove index_number.
22224 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
22225 (main): Remove manipulation of next_index_number.
22226
22227 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22228
22229 * genattrtab.c (check_attr_value): Remove handling of null attrs.
22230 (make_canonical): Likewise.
22231
22232 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
22233
22234 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
22235 instead of adjust_address_nv.
22236 (restore_stack_nonlocal): Likewise.
22237 (nonlocal_goto): Likewise.
22238
22239 2015-07-16 Tom de Vries <tom@codesourcery.com>
22240
22241 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
22242 not have a corresponding loop header phi.
22243
22244 2015-07-16 Tom de Vries <tom@codesourcery.com>
22245
22246 * tree-parloops.c (create_loads_for_reductions): Handle case that
22247 reduction is unused.
22248
22249 2015-07-16 Richard Biener <rguenther@suse.de>
22250
22251 PR tree-optimization/66894
22252 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
22253 about deriving NE_EXPR from truncated values.
22254
22255 2015-07-16 Martin Liska <mliska@suse.cz>
22256
22257 * alloc-pool.h
22258 (object_allocator): Add new class.
22259 (pool_allocator::initialize): Use the underlying class.
22260 (pool_allocator::allocate): Likewise.
22261 (pool_allocator::remove): Likewise.
22262 (operator new): A new generic allocator.
22263 * asan.c (struct asan_mem_ref): Remove unused members.
22264 (asan_mem_ref_new): Replace new operator with
22265 object_allocator::allocate.
22266 (free_mem_ref_resources): Change deallocation.
22267 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
22268 with object_allocator.
22269 * config/sh/sh.c (add_constant): Replace new operator with
22270 object_allocator::allocate.
22271 (sh_reorg): Change call to a release method.
22272 * cselib.c (struct elt_list): Remove unused members.
22273 (new_elt_list): Replace new operator with
22274 object_allocator::allocate.
22275 (new_elt_loc_list): Likewise.
22276 (new_cselib_val): Likewise.
22277 (unchain_one_elt_list): Change delete operator with remove method.
22278 (unchain_one_elt_loc_list): Likewise.
22279 (unchain_one_value): Likewise.
22280 (cselib_finish): Release newly added static allocators.
22281 * cselib.h (struct cselib_val): Remove unused members.
22282 (struct elt_loc_list): Likewise.
22283 * df-problems.c (df_chain_alloc): Replace pool_allocator with
22284 object_allocator.
22285 * df-scan.c (struct df_scan_problem_data): Likewise.
22286 (df_scan_alloc): Likewise.
22287 * df.h (struct dataflow): Likewise.
22288 * dse.c (struct read_info_type): Likewise.
22289 (struct insn_info_type): Likewise.
22290 (struct dse_bb_info_type): Likewise.
22291 (struct group_info): Likewise.
22292 (struct deferred_change): Likewise.
22293 (get_group_info): Likewise.
22294 (delete_dead_store_insn): Likewise.
22295 (free_read_records): Likewise.
22296 (replace_read): Likewise.
22297 (check_mem_read_rtx): Likewise.
22298 (scan_insn): Likewise.
22299 (dse_step1): Likewise.
22300 (dse_step7): Likewise.
22301 * et-forest.c (struct et_occ): Remove unused members.
22302 (et_new_occ): Use allocate instead of new operator.
22303 (et_new_tree): Likewise.
22304 (et_free_tree): Call release method explicitly.
22305 (et_free_tree_force): Likewise.
22306 (et_free_pools): Likewise.
22307 (et_split): Use remove instead of delete operator.
22308 * et-forest.h (struct et_node): Remove unused members.
22309 * ipa-cp.c: Change pool_allocator to object_allocator.
22310 * ipa-inline-analysis.c: Likewise.
22311 * ipa-profile.c: Likewise.
22312 * ipa-prop.c: Likewise.
22313 * ipa-prop.h: Likewise.
22314 * ira-build.c (initiate_cost_vectors): Cast return value.
22315 (ira_allocate_cost_vector): Likewise.
22316 * ira-color.c (struct update_cost_record): Remove unused members.
22317 * lra-int.h (struct lra_live_range): Likewise.
22318 (struct lra_copy): Likewise.
22319 (struct lra_insn_reg): Likewise.
22320 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
22321 * lra.c (new_insn_reg): Replace new operator with allocate method.
22322 (free_insn_regs): Same for operator delete.
22323 (finish_insn_regs): Release new static allocator.
22324 (finish_insn_recog_data): Likewise.
22325 (lra_free_copies): Replace delete operator with remove method.
22326 (lra_create_copy): Replace operator new with allocate method.
22327 (invalidate_insn_data_regno_info): Same for remove method.
22328 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
22329 (free_debug_insn_changes): Replace delete operator with remove method.
22330 (replace_oldest_value_reg): Replace operator new with allocate method.
22331 (pass_cprop_hardreg::execute): Release new static variable.
22332 * sched-deps.c (sched_deps_init): Change pool_allocator to
22333 object_allocator.
22334 * sel-sched-ir.c: Likewise.
22335 * sel-sched-ir.h: Likewise.
22336 * stmt.c (expand_case): Likewise.
22337 (expand_sjlj_dispatch_table): Likewise.
22338 * tree-sra.c (struct access): Remove unused members.
22339 (struct assign_link): Likewise.
22340 (sra_deinitialize): Release newly added static pools.
22341 (create_access_1):Replace operator new with allocate method.
22342 (build_accesses_from_assign): Likewise.
22343 (create_artificial_child_access): Likewise.
22344 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
22345 pool_allocator to object_allocator.
22346 * tree-ssa-pre.c: Likewise.
22347 * tree-ssa-reassoc.c: Likewise.
22348 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
22349 * tree-ssa-strlen.c: Likewise.
22350 * tree-ssa-structalias.c: Likewise.
22351 * var-tracking.c (onepart_pool_allocate): New function.
22352 (unshare_variable): Use the newly added function.
22353 (variable_merge_over_cur): Likewise.
22354 (variable_from_dropped): Likewise.
22355 (variable_was_changed): Likewise.
22356 (set_slot_part): Likewise.
22357 (emit_notes_for_differences_1): Likewise.
22358 (vt_finalize): Release newly added static pools.
22359
22360 2015-07-16 Martin Jambor <mjambor@suse.cz>
22361
22362 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
22363 all uses. Fix two typos in its general comment.
22364 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
22365
22366 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
22367
22368 * config/i386/linux-common.h (LINK_MPX): New.
22369 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
22370 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
22371 indicating '-z bndplt' support by linker.
22372 * configure: Regenerate.
22373 * config.in: Regenerate.
22374
22375 2015-07-16 Richard Biener <rguenther@suse.de>
22376
22377 * fold-const.c (fold_widened_comparison): Remove.
22378 (fold_sign_changed_comparison): Likewise.
22379 (fold_comparison): Move widened and sign-changed comparison
22380 simplification ...
22381 * match.pd: ... to patterns here.
22382 * generic-match-head.c: Include target.h.
22383 * gimple-match-head.c: Likewise.
22384
22385 2015-07-16 Richard Biener <rguenther@suse.de>
22386
22387 * tree-ssa-dom.c (dom_valueize): New function.
22388 (record_temporary_equivalences): Also record equivalences
22389 for dominating stmts that have uses of equivalences we are
22390 about to record.
22391
22392 2015-07-16 Bin Cheng <bin.cheng@arm.com>
22393
22394 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
22395 add_autoinc_candidates.
22396 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
22397 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
22398 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
22399 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
22400 Call new function.
22401 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
22402 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
22403 Remove parameter struct iv*. Call add_autoinc_candidates here.
22404 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
22405 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
22406 Call new function.
22407 (find_iv_candidates): Call new functions.
22408
22409 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
22410
22411 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
22412 uninitialized-variable warning.
22413
22414 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
22415
22416 PR target/65249
22417 * config/sh/sh.md (movdi): Split simple reg move to two movsi
22418 when the destination is R0.
22419
22420 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
22421
22422 PR target/66866
22423 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
22424 * config/i386/i386.c (ix86_expand_pextr): New function.
22425 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
22426 for non-lowpart subregs.
22427 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
22428 (insv<mode>): Use SWI248 mode iterator.
22429 (insv<mode>_1): Ditto.
22430
22431 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
22432 Sebastian Pop <s.pop@samsung.com>
22433
22434 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
22435 iterator to use_stmt.
22436
22437 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
22438 Sebastian Pop <s.pop@samsung.com>
22439
22440 * graphite-scop-detection.c (build_scops_1): Discard scops for
22441 which entry==exit.
22442
22443 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
22444 Sebastian Pop <s.pop@samsung.com>
22445
22446 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
22447 case of a return statement in scop.
22448
22449 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
22450 Sebastian Pop <s.pop@samsung.com>
22451
22452 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
22453 INTEGER_TYPE parameters.
22454 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
22455 VECTOR_CST in scan_tree_for_params.
22456 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
22457
22458 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
22459
22460 * gimple-pretty-print.h: Don't include pretty-print.h.
22461 * tree-streamer.h: Don't include lto-streamer.h.
22462 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
22463 * gimple-streamer-in.c: Remove redundant includes.
22464 * gimple-streamer-out.c: Likewise.
22465 * ipa-devirt.c: Likewise.
22466 * ipa-icf.c: Likewise.
22467 * ipa-inline-analysis.c: Likewise.
22468 * ipa-polymorphic-call.c: Likewise.
22469 * ipa-profile.c: Likewise.
22470 * ipa-prop.c: Likewise.
22471 * ipa-pure-const.c: Likewise.
22472 * lto-cgraph.c: Likewise.
22473 * lto-streamer-in.c: Likewise.
22474 * lto-streamer-out.c: Likewise.
22475 * lto-streamer.c: Likewise.
22476 * tree-streamer-in.c: Likewise.
22477 * tree-streamer-out.c: Likewise.
22478 * tree-streamer.c: Likewise.
22479
22480 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
22481
22482 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
22483 include input.h.
22484 * opts.c: Remove multiline #include comment.
22485
22486 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
22487
22488 * config/nvptx/mkoffload.c (process): Add C++ protection to
22489 emitted code.
22490
22491 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
22492
22493 PR target/66854
22494 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
22495 null before IEEE 128-bit floating point support patch.
22496
22497 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22498
22499 * simplify-rtx.c (simplify_ternary_operation): Add simplification
22500 for (!c) != {0,...,0} ? a : b for vector modes.
22501
22502 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
22503 Martin Jambor <mjambor@suse.cz>
22504
22505 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
22506 struct func_body_info* instead of struct ipa_node_params*, expecting
22507 fbi->info to be filled in. Replace throughout. Adjust call to
22508 ipa_load_from_parm_agg.
22509 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
22510 instead of struct ipa_node_params*. Adjust calls to other functions
22511 so that they pass either fbi or fbi->info.
22512 (set_switch_stmt_execution_predicate): Likewise.
22513 (will_be_nonconstant_predicate): Likewise.
22514 (compute_bb_predicates): Likewise.
22515 (estimate_function_body_sizes): Move asserts earlier. Fill in
22516 struct func_body_info, replace parms_info with fbi.info. Adjust
22517 calls to functions that now accept struct func_body_info.
22518 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
22519 (struct func_body_info): Likewise.
22520 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
22521 remove static. Adjust callers.
22522 (ipa_load_from_parm_agg): Remove.
22523 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
22524 (func_body_info): Likewise.
22525 (ipa_load_from_parm_agg): Adjust prototype.
22526
22527 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22528
22529 * gensupport.c (rtx_handle_directive): Adjust.
22530 * read-rtl.c (apply_iterators): Take vector to add rtxs to
22531 instead of expr list rtx.
22532 (add_define_attr_for_define_subst): Likewise.
22533 (add_define_subst_attr): Likewise.
22534 (read_subst_mapping): Likewise.
22535 (read_rtx): Likewise.
22536 * rtl.h (read_rtx): Adjust.
22537
22538 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22539
22540 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
22541
22542 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
22543
22544 PR target/58066
22545 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
22546 (*tls_local_dynamic_base_64_<mode>): Ditto.
22547 (*tls_local_dynamic_base_64_largepic): Ditto.
22548 (tls_global_dynamic_64_<mode>): Update expander pattern.
22549 (tls_local_dynamic_base_64_<mode>): Ditto.
22550
22551 2015-07-15 Richard Biener <rguenther@suse.de>
22552
22553 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
22554 and bool_var == 1 -> bool_var simplifications ...
22555 * match.pd: ... to patterns here. Factor out negate_expr_p
22556 cases from the A - B -> A + (-B) patterns as negate_expr_p
22557 predicate and add a -(A + B) -> (-B) - A pattern.
22558
22559 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
22560
22561 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
22562
22563 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
22564 Robert Suchanek <robert.suchanek@imgtec.com>
22565
22566 * config/mips/mips.c (mips_int_mask): New enum.
22567 (mips_shadow_set): Likewise.
22568 (int_mask): New variable.
22569 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
22570 (machine_function): Add int_mask and use_shadow_register_set.
22571 (mips_attribute_table): Add attribute handlers for interrupt and
22572 use_shadow_register_set.
22573 (mips_interrupt_mask): New static function.
22574 (mips_handle_interrupt_attr): Likewise.
22575 (mips_handle_use_shadow_register_set_attr): Likewise.
22576 (mips_use_shadow_register_set): Change return type to enum
22577 mips_shadow_set. Add argument handling for use_shadow_register_set
22578 attribute.
22579 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
22580 compare with mips_shadow_set enum.
22581 (mips_compute_frame_info): Add interrupt mask and
22582 use_shadow_register_set to per-function information structure.
22583 Add a stack slot for EPC unconditionally.
22584 (mips_expand_prologue): Compare use_shadow_register_set value
22585 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
22586 masked interrupt register but in EIC mode use K0 and save Cause in K0.
22587 EPC saved and restored unconditionally. Use PMODE_INSN macro when
22588 copying the stack pointer from the shadow register set.
22589 * config/mips/mips.h (SR_IM0): New define.
22590 * config/mips/mips.md (mips_rdpgpr): Rename to...
22591 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
22592 * doc/extend.texi (Declaring Attributes of Functions): Document
22593 optional arguments for interrupt and use_shadow_register_set
22594 attributes.
22595
22596 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
22597
22598 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
22599 interrupt attribute.
22600 (mips_expand_prologue): Disable the floating point unit in an ISR.
22601 * config/mips/mips.h (SR_COP1): New define.
22602
22603 2015-07-15 Richard Biener <rguenther@suse.de>
22604
22605 * genmatch.c (parser::peek, parser::peek_ident): Add argument
22606 to tell how many tokens to peek ahead (default 1).
22607 (parser::eat_token, parser::eat_ident): Return token consumed.
22608 (parser::parse_result): Parse new switch statement.
22609 * match.pd: Use case statements where appropriate.
22610
22611 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
22612
22613 PR rtl-optimization/58066
22614 * calls.c (expand_call): Precompute register parameters before stack
22615 alignment is performed.
22616
22617 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
22618
22619 PR rtl-optimization/66838
22620 * postreload.c (reload_cse_move2add): Also process
22621 CALL_INSN_FUNCTION_USAGE when resetting information of
22622 call-clobbered registers.
22623
22624 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22625 Cesar Philippidis <cesar@codesourcery.com>
22626 Chung-Lin Tang <cltang@codesourcery.com>
22627
22628 * config/nios2/constraints.md (U, v): New constraints.
22629 * config/nios2/predicates.md (rdprs_dcache_operand): New.
22630 (ldstex_memory_operand): New.
22631 * config/nios2/sync.md: New file.
22632 * config/nios2/nios2.md (unspecv): Add new builtin function
22633 UNSPECV codes.
22634 (rdprs, flushd, flushda, wrpie, eni): New patterns.
22635 (top-level): Include sync.md.
22636 * config/nios2/nios2.c (N2_FTYPES): Add function types for
22637 new builtins.
22638 (N2_BUILTINS): Add arch field setting, add new builtins.
22639 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
22640 for arch field.
22641 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
22642 Also handle ldex/stex/ldsex/stsex builtins.
22643 (nios2_expand_rdprs_builtin): New function.
22644 (nios2_expand_cache_builtin): New function.
22645 (nios2_expand_wrpie_builtin): New function.
22646 (nios2_expand_eni_builtin): New function.
22647 (nios2_expand_builtin): Add arch field handling and new builtin
22648 cases.
22649 * doc/extend.texi (Altera Nios II Built-in Functions): Document
22650 new builtins.
22651 * doc/md.texi (Machine Constraints): Document U and v constraints.
22652
22653 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22654 Cesar Philippidis <cesar@codesourcery.com>
22655 Chung-Lin Tang <cltang@codesourcery.com>
22656
22657 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
22658 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
22659 callee_save_reg_size and uses_anonymous_args fields.
22660 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
22661 (nios2_create_cfa_notes): New function.
22662 (nios2_adjust_stack): New function for adjusting stack.
22663 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
22664 Use nios2_adjust_stack.
22665 (nios2_expand_epilogue): Likewise.
22666 (nios2_expand_return): New function.
22667 (nios2_can_use_return_insn): Update for CDX pop.n usage.
22668 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
22669 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
22670 * config/nios2/nios2.md (return): Use nios2_expand_return.
22671
22672 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22673 Cesar Philippidis <cesar@codesourcery.com>
22674 Chung-Lin Tang <cltang@codesourcery.com>
22675
22676 * config/nios2/predicates.md (pop_operation): New.
22677 (ldwm_operation, stwm_operation): New.
22678 (nios2_hard_register_operand): New.
22679 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
22680 (ldstwm_operation_p): Declare.
22681 (gen_ldstwm_peep): Declare.
22682 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
22683 (base_reg_adjustment_p): New.
22684 (pop_operation_p): New.
22685 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
22686 (nios2_ldstwm_regset_p): New.
22687 (ldstwm_operation_p): New.
22688 (gen_ldst): New.
22689 (nios2_ldst_parallel): New.
22690 (struct ldswm_operand): Declare.
22691 (compare_ldstwm_operands): New.
22692 (can_use_cdx_ldstw): New.
22693 (gen_ldstwm_peep): New.
22694 * config/nios2/nios2-ldstwm.sml: New.
22695 * config/nios2/nios2.md: Include ldstwm.md.
22696 * config/nios2/ldstwm.md: Generated.
22697
22698 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22699 Cesar Philippidis <cesar@codesourcery.com>
22700 Chung-Lin Tang <cltang@codesourcery.com>
22701
22702 * config/nios2/nios2.h (LABEL_ALIGN): Define.
22703 (REG_ALLOC_ORDER): Define.
22704 (ADJUST_REG_ALLOC_ORDER): Define.
22705 (HONOR_REG_ALLOC_ORDER): Define.
22706 (CDX_REG_P): Define.
22707 (ANDCLEAR_INT): Define.
22708 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
22709 (nios2_label_align): Declare.
22710 (nios2_cdx_narrow_form_p): Declare.
22711 (nios2_adjust_reg_alloc_order): Declare.
22712 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
22713 operation.
22714 (nios2_large_unspec_reloc_p): New function, split from...
22715 (nios2_legitimate_pic_operand_p): ...here.
22716 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
22717 (nios2_print_operand_punct_valid_p): New.
22718 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
22719 (split_mem_address): New.
22720 (split_alu_insn): New.
22721 (cdxreg): New.
22722 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
22723 (enum nios2_add_insn_kind): New.
22724 (nios2_add_insn_names, nios2_add_insn_narrow): New.
22725 (nios2_add_insn_classify): New.
22726 (nios2_add_insn_asm): New.
22727 (nios2_cdx_narrow_form_p): New.
22728 (label_align, min_labelno, max_labelno): New.
22729 (nios2_reorg): New.
22730 (nios2_label_align): New.
22731 (nios2_adjust_reg_alloc_order): New.
22732 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
22733 (TARGET_MACHINE_DEPENDENT_REORG): Define.
22734 * config/nios2/constraints.md (P): New constraint.
22735 * config/nios2/predicates.md (const_and_operand): New.
22736 (and_operand): New.
22737 (stack_memory_operand): New.
22738 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
22739 (length): Update to use nios2_cdx_narrow_form_p().
22740 (type): Add new insn type values.
22741 (control, alu, st, ld, shift): Update insn reservations with
22742 new insn type values.
22743 (*high, *lo_sum): Define new insn patterns for constant generation.
22744 (movqi_internal, movhi_internal, movsi_internal): Reduce
22745 alternatives, update asm template to handle CDX variants, update
22746 type attributes.
22747 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
22748 template, update type attributes.
22749 (extendhisi2, extendqi<mode>2): Likewise.
22750 (addsi3): Change to use function for asm string.
22751 (subsi3): Add CDX notation to asm template, update type attributes.
22752 (negsi3, one_cmplsi3): Likewise.
22753 (andsi3): New pattern, specialized from logical patterns.
22754 (<code>si3): Remove and case, combine alternatives, update asm
22755 template.
22756 (<shift_op>si3): Add CDX notation, update type attributes.
22757 (rotrsi3): Update type attribute.
22758 (*merge, extzv, insv): New insn patterns.
22759 (return): Change to define_expand.
22760 (simple_return): Add CDX notation, update type attributes.
22761 (indirect_jump): Add CDX notation.
22762 (jump): Update asm cases, update length attribute expression.
22763 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
22764 (nios2_cbranch): Update asm cases and length attribute expression
22765 to handle CDX variants.
22766 (nios2_cmp<code>): Update asm template.
22767 (nop): Add CDX notation, update type attributes.
22768 (trap): Add CDX notation.
22769 (ctrapsi4): Update asm cases and length attribute expression to
22770 handle CDX variant.
22771 * doc/md.texi (Machine Constraints): Document P constraint.
22772
22773 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22774 Cesar Philippidis <cesar@codesourcery.com>
22775 Chung-Lin Tang <cltang@codesourcery.com>
22776
22777 * config/nios2/nios2.h (SMALL_INT12): New macro.
22778 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
22779 (nios2_valid_addr_expr_p): Use it.
22780 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
22781 with implicit "io" instructions on R2.
22782 * config/nios2/constraints.md (w): New constraint.
22783 * config/nios2/predicates.md (ldstio_memory_operand): New.
22784 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
22785 operand predicate and constraint.
22786 (ld<bh>io_signed, st<bhw>io>): Likewise.
22787 * doc/md.texi (Machine Constraints): Document w constraint.
22788
22789 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22790 Cesar Philippidis <cesar@codesourcery.com>
22791 Chung-Lin Tang <cltang@codesourcery.com>
22792
22793 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
22794 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
22795 Nios II architecture level.
22796 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
22797 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
22798 (OPTION_DEFAULT_SPECS): Define.
22799 (ASM_SPEC): Add -march= spec strings.
22800 * config/nios2/nios2.c (nios2_option_override): Check for
22801 conflicts involving new options.
22802 * config.gcc (nios2*-*-*): Support --with-arch=.
22803 * doc/invoke.texi (Option Summary, Nios II Options): Document
22804 -march=, -mbmx, and -mcdx.
22805
22806 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
22807
22808 PR rtl-optimization/66626
22809 * lra-constraints.c (lra_constraints): Prevent equivalence
22810 substitution for static chain pseudo in functions with nonlocal
22811 goto.
22812
22813 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22814
22815 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
22816 (nios2_emit_stack_limit_check): Add size parameter. Handle
22817 -fstack-limit-symbol as well as -fstack-limit-register.
22818 (nios2_expand_prologue): Emit only a single stack limit check,
22819 even if multiple stack adjustments are required.
22820 (nios2_option_override): Diagnose unsupported combination of -fpic
22821 and -stack-limit-symbol.
22822
22823 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
22824
22825 * Makefile.in (top_srcdir): New.
22826 * configure.ac: Use AM_ZLIB.
22827 * configure: Regeneated.
22828
22829 2015-07-14 Matthias Klose <doko@ubuntu.com>
22830
22831 PR target/66840
22832 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
22833
22834 2015-07-14 Richard Biener <rguenther@suse.de>
22835
22836 PR tree-optimization/66863
22837 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
22838 what we record for conversion use stmt lhs inequalities.
22839
22840 2015-07-14 Richard Biener <rguenther@suse.de>
22841
22842 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
22843 (decision_tree::gen_gimple): Likewise.
22844
22845 2015-07-14 Tom de Vries <tom@codesourcery.com>
22846
22847 * gcc.c (greater_than_spec_func): Declare forward.
22848 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
22849 -ftree-parallelize-loops={0,1}.
22850 (static_spec_functions): Add greater_than_spec_func function with name
22851 "gt".
22852 (greater_than_spec_func): New function.
22853
22854 2015-07-14 Richard Biener <rguenther@suse.de>
22855
22856 * tree-ssa-dom.c (record_temporary_equivalences): Merge
22857 wideing type conversion case from record_equivalences_from_incoming_edge
22858 and use record_equality to record equivalences.
22859 (record_equivalences_from_incoming_edge): Call
22860 record_temporary_equivalences.
22861
22862 2015-07-14 Richard Biener <rguenther@suse.de>
22863
22864 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
22865 (struct if_expr): New.
22866 (struct with_expr): Likewise.
22867 (is_a_helper): Add helpers for if_expr and with_expr.
22868 (struct simplify): Add simplify_kind enum and member. Remove
22869 ifexpr_vec member.
22870 (simplify::simplify): Adjust.
22871 (lower_commutative): Adjust.
22872 (lower_opt_convert): Likewise.
22873 (lower_cond): Likewise.
22874 (replace_id): Handle with_expr and if_expr.
22875 (lower_for): Adjust.
22876 (dt_simplify::gen_1): New recursive worker, split out from ...
22877 (dt_simplify::gen): ... here. Deal with if and with expansion
22878 recursively.
22879 (capture_info::capture_info): Take context argument
22880 (capture_info::walk_result): Only analyze specific result.
22881 (parser::parse_result): New function.
22882 (parser::parse_simplify): Adjust to parse ifs with then end
22883 else case.
22884 (parser::parse_if): Simplify.
22885 (parser::parse_pattern): Pass down simplify kind.
22886 * match.pd: Convert if structure to new syntax.
22887
22888 2015-07-13 Marek Polacek <polacek@redhat.com>
22889
22890 * rtl.c (rtx_equal_p_cb): Fix typo.
22891
22892 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
22893
22894 * omega.h: Don't include config.h, don't include params.h again if
22895 omega.h has already been included.
22896 * graphite-poly.h: Include sese.h.
22897 * graphite.c: Don't include sese.h, remove needless includes and
22898 minimize includes outside #ifdef HAVE_isl block.
22899 * graphite-blocking.c: Don't include sese.h, remove needless includes,
22900 and wrap entire file in #ifdef HAVE_isl
22901 * graphite-dependences.c: Likewise.
22902 * graphite-interchange.c: Likewise.
22903 * graphite-isl-ast-to-gimple.c: Likewise.
22904 * graphite-optimize-isl.c: Likewise.
22905 * graphite-poly.c: Likewise.
22906 * graphite-scop-detection.c: Likewise.
22907 * graphite-sese-to-poly.c: Likewise.
22908
22909 2015-07-13 Tom de Vries <tom@codesourcery.com>
22910
22911 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
22912
22913 2015-07-13 Renlin Li <renlin.li@arm.com>
22914
22915 PR rtl/66556
22916 * simplify-rtx.c (simplify_const_relational_operation): Add
22917 side_effects_p checks.
22918
22919 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
22920
22921 * bitmap.h: Fix double word typos.
22922 * builtins.c: Same.
22923 * calls.c: Same.
22924 * cfgloopmanip.c: Same.
22925 * cgraph.c: Same.
22926 * cgraph.h: Same.
22927 * cgraphclones.c: Same.
22928 * combine.c: Same.
22929 * config/aarch64/aarch64-protos.h: Same.
22930 * config/aarch64/aarch64.c: Same.
22931 * config/aarch64/aarch64.md: Same.
22932 * config/arm/arm.md: Same.
22933 * config/arm/arm1020e.md: Same.
22934 * config/arm/arm1026ejs.md: Same.
22935 * config/arm/arm926ejs.md: Same.
22936 * config/arm/fa526.md: Same.
22937 * config/arm/fa606te.md: Same.
22938 * config/arm/fa626te.md: Same.
22939 * config/arm/fa726te.md: Same.
22940 * config/arm/fmp626.md: Same.
22941 * config/darwin.c: Same.
22942 * config/epiphany/epiphany.c: Same.
22943 * config/frv/frv.c: Same.
22944 * config/ft32/ft32.c: Same.
22945 * config/gnu-user.h: Same.
22946 * config/h8300/constraints.md: Same.
22947 * config/i386/i386.c: Same.
22948 * config/i386/i386.md: Same.
22949 * config/iq2000/iq2000.md: Same.
22950 * config/mips/mips.c: Same.
22951 * config/mmix/mmix.md: Same.
22952 * config/moxie/moxie.c: Same.
22953 * config/nds32/nds32.md: Same.
22954 * config/pa/pa.h: Same.
22955 * config/rs6000/aix.h: Same.
22956 * config/rs6000/rs6000.h: Same.
22957 * config/sh/sh.c: Same.
22958 * config/tilegx/tilegx.md: Same.
22959 * config/tilepro/gen-mul-tables.cc: Same.
22960 * cse.c: Same.
22961 * dbxout.c: Same.
22962 * doc/invoke.texi: Same.
22963 * dse.c: Same.
22964 * dwarf2out.c: Same.
22965 * final.c: Same.
22966 * gcc.c: Same.
22967 * genmatch.c: Same.
22968 * gimplify.c: Same.
22969 * hash-table.h: Same.
22970 * internal-fn.c: Same.
22971 * ipa-cp.c: Same.
22972 * ipa-devirt.c: Same.
22973 * ipa-icf.c: Same.
22974 * ipa-icf.h: Same.
22975 * ipa-profile.c: Same.
22976 * ipa-prop.c: Same.
22977 * ipa-prop.h: Same.
22978 * ira.c: Same.
22979 * omp-low.c: Same.
22980 * reg-stack.c: Same.
22981 * regcprop.c: Same.
22982 * reorg.c: Same.
22983 * rtl.h: Same.
22984 * sbitmap.h: Same.
22985 * tree-eh.c: Same.
22986 * tree-inline.c: Same.
22987 * tree-sra.c: Same.
22988 * tree-ssa-dom.c: Same.
22989 * tree-ssa-loop-ivopts.c: Same.
22990 * tree-ssa-structalias.c: Same.
22991 * tree-ssa-tail-merge.c: Same.
22992 * tree-ssa-ter.c: Same.
22993 * tree-ssa-threadupdate.c: Same.
22994 * tree-ssa-uninit.c: Same.
22995 * tree-ssanames.c: Same.
22996 * tree-vect-loop-manip.c: Same.
22997 * tree-vrp.c: Same.
22998 * tree.c: Same.
22999 * valtrack.c: Same.
23000 * vec.h: Same.
23001
23002 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23003
23004 PR middle-end/66726
23005 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
23006 tree_ssa_phiopt_worker): Call it.
23007
23008 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23009
23010 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
23011 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
23012 REG_EQUAL note.
23013
23014 2015-07-11 Marek Polacek <polacek@redhat.com>
23015
23016 PR middle-end/66353
23017 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
23018 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
23019 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
23020 rather than bb_has_abnormal_call_pred.
23021 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
23022 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
23023 rather than bb_has_abnormal_call_pred.
23024
23025 2015-07-10 Anatoly Sokolov <aesok@post.ru>
23026
23027 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
23028 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
23029 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
23030 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
23031 v850_legitimate_address_p): New functions.
23032 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
23033
23034 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
23035
23036 PR target/66819
23037 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
23038 indirect sibcall with register arguments if register available
23039 for argument passing.
23040 (init_cumulative_args): Set cfun->machine->arg_reg_available
23041 to (cum->nregs > 0) or to true if function has a variable
23042 argument list.
23043 (function_arg_advance_32): Set cfun->machine->arg_reg_available
23044 to false if cum->nregs <= 0.
23045 * config/i386/i386.h (machine_function): Add arg_reg_available.
23046
23047 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
23048
23049 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
23050 and gen_higpart instead of gen_rtx_SUBREG.
23051 * config/i386/i386.md
23052 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
23053 (read-modify peephole2): Use gen_lowpart instead of
23054 gen_rtx_SUBREG for operand 5.
23055
23056 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
23057
23058 * config/tilepro/gen-mul-tables.cc (main): Change include list for
23059 generated files.
23060 * config/tilepro/mul-tables.c: Regenerate.
23061 * config/tilegx/mul-tables.c: Regenerate.
23062
23063 2015-07-10 Richard Biener <rguenther@suse.de>
23064
23065 * fold-const.c (distribute_bit_expr): Remove.
23066 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
23067 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
23068 to A & (B | C) and simplifying A << C1 << C2 to ...
23069 * match.pd: ... patterns here.
23070
23071 2015-07-10 Jiong Wang <jiong.wang@arm.com>
23072
23073 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23074 Mark mem as READONLY and NOTRAP for PIC symbol.
23075
23076 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
23077
23078 * gimple-predict.h: New file.
23079 (gimple_predict_predictor, gimple_predict_set_predictor,
23080 gimple_predict_outcome, gimple_predict_set_outcome,
23081 gimple_build_predict): Relocate here.
23082 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
23083 gimple_predict_outcome, gimple_predict_set_outcome): Move to
23084 gimple-predict.h.
23085 * gimple.c (gimple_build_predict): Move to gimple-predict.h
23086 * basic-block.h: Don't include cfghooks.h.
23087 * backend.h: Don't include predict.h.
23088 * cfghooks.h: Include predict.h.
23089 * gimple-pretty-print.c: Include gimple-predict.h.
23090 * gimplify.c: Likwise.
23091 * predict.c: Adjust includes.
23092 * tree-inline.c: Likewise.
23093 * asan.c: Likewise.
23094 * auto-inc-dec.c: Likewise.
23095 * auto-profile.c: Likewise.
23096 * bb-reorder.c: Likewise.
23097 * builtins.c: Likewise.
23098 * caller-save.c: Likewise.
23099 * calls.c: Likewise.
23100 * cfganal.c: Likewise.
23101 * cfgbuild.c: Likewise.
23102 * cfg.c: Likewise.
23103 * cfgcleanup.c: Likewise.
23104 * cfgexpand.c: Likewise.
23105 * cfghooks.c: Likewise.
23106 * cfgloopanal.c: Likewise.
23107 * cfgloop.c: Likewise.
23108 * cfgloopmanip.c: Likewise.
23109 * cfgrtl.c: Likewise.
23110 * cgraph.c: Likewise.
23111 * cgraphunit.c: Likewise.
23112 * combine.c: Likewise.
23113 * cprop.c: Likewise.
23114 * cse.c: Likewise.
23115 * dce.c: Likewise.
23116 * dojump.c: Likewise.
23117 * dse.c: Likewise.
23118 * except.c: Likewise.
23119 * expmed.c: Likewise.
23120 * expr.c: Likewise.
23121 * final.c: Likewise.
23122 * fold-const.c: Likewise.
23123 * function.c: Likewise.
23124 * fwprop.c: Likewise.
23125 * gcc-plugin.h: Likewise.
23126 * gcse.c: Likewise.
23127 * genattrtab.c: Likewise.
23128 * genemit.c: Likewise.
23129 * gengtype.c: Likewise.
23130 * genopinit.c: Likewise.
23131 * genoutput.c: Likewise.
23132 * genpreds.c: Likewise.
23133 * genrecog.c: Likewise.
23134 * gimple-fold.c: Likewise.
23135 * gimple-iterator.c: Likewise.
23136 * gimple-ssa-isolate-paths.c: Likewise.
23137 * gimple-ssa-strength-reduction.c: Likewise.
23138 * graph.c: Likewise.
23139 * graphite-blocking.c: Likewise.
23140 * graphite.c: Likewise.
23141 * graphite-dependences.c: Likewise.
23142 * graphite-interchange.c: Likewise.
23143 * graphite-isl-ast-to-gimple.c: Likewise.
23144 * graphite-optimize-isl.c: Likewise.
23145 * graphite-poly.c: Likewise.
23146 * graphite-scop-detection.c: Likewise.
23147 * graphite-sese-to-poly.c: Likewise.
23148 * haifa-sched.c: Likewise.
23149 * ifcvt.c: Likewise.
23150 * internal-fn.c: Likewise.
23151 * ipa-cp.c: Likewise.
23152 * ipa-profile.c: Likewise.
23153 * ipa-split.c: Likewise.
23154 * ipa-utils.c: Likewise.
23155 * ira-build.c: Likewise.
23156 * ira-color.c: Likewise.
23157 * ira-conflicts.c: Likewise.
23158 * ira-costs.c: Likewise.
23159 * ira-emit.c: Likewise.
23160 * ira-lives.c: Likewise.
23161 * jump.c: Likewise.
23162 * loop-doloop.c: Likewise.
23163 * loop-init.c: Likewise.
23164 * loop-invariant.c: Likewise.
23165 * loop-unroll.c: Likewise.
23166 * lower-subreg.c: Likewise.
23167 * lra-assigns.c: Likewise.
23168 * lra.c: Likewise.
23169 * lra-coalesce.c: Likewise.
23170 * lra-constraints.c: Likewise.
23171 * lra-lives.c: Likewise.
23172 * lto-cgraph.c: Likewise.
23173 * lto-streamer-in.c: Likewise.
23174 * mode-switching.c: Likewise.
23175 * modulo-sched.c: Likewise.
23176 * omp-low.c: Likewise.
23177 * optabs.c: Likewise.
23178 * passes.c: Likewise.
23179 * postreload.c: Likewise.
23180 * postreload-gcse.c: Likewise.
23181 * profile.c: Likewise.
23182 * recog.c: Likewise.
23183 * regstat.c: Likewise.
23184 * reload1.c: Likewise.
23185 * reorg.c: Likewise.
23186 * rtlanal.c: Likewise.
23187 * sched-ebb.c: Likewise.
23188 * sel-sched-ir.c: Likewise.
23189 * sese.c: Likewise.
23190 * shrink-wrap.c: Likewise.
23191 * simplify-rtx.c: Likewise.
23192 * stmt.c: Likewise.
23193 * store-motion.c: Likewise.
23194 * tracer.c: Likewise.
23195 * trans-mem.c: Likewise.
23196 * tree-call-cdce.c: Likewise.
23197 * tree-cfg.c: Likewise.
23198 * tree-cfgcleanup.c: Likewise.
23199 * tree-chkp.c: Likewise.
23200 * tree-complex.c: Likewise.
23201 * tree-eh.c: Likewise.
23202 * tree-if-conv.c: Likewise.
23203 * tree-loop-distribution.c: Likewise.
23204 * tree-outof-ssa.c: Likewise.
23205 * tree-parloops.c: Likewise.
23206 * tree-predcom.c: Likewise.
23207 * tree-pretty-print.c: Likewise.
23208 * tree-profile.c: Likewise.
23209 * tree-sra.c: Likewise.
23210 * tree-ssa.c: Likewise.
23211 * tree-ssa-coalesce.c: Likewise.
23212 * tree-ssa-dce.c: Likewise.
23213 * tree-ssa-dom.c: Likewise.
23214 * tree-ssa-forwprop.c: Likewise.
23215 * tree-ssa-ifcombine.c: Likewise.
23216 * tree-ssa-loop-ch.c: Likewise.
23217 * tree-ssa-loop-im.c: Likewise.
23218 * tree-ssa-loop-ivcanon.c: Likewise.
23219 * tree-ssa-loop-ivopts.c: Likewise.
23220 * tree-ssa-loop-manip.c: Likewise.
23221 * tree-ssa-loop-prefetch.c: Likewise.
23222 * tree-ssa-loop-unswitch.c: Likewise.
23223 * tree-ssa-math-opts.c: Likewise.
23224 * tree-ssa-phiopt.c: Likewise.
23225 * tree-ssa-pre.c: Likewise.
23226 * tree-ssa-reassoc.c: Likewise.
23227 * tree-ssa-sink.c: Likewise.
23228 * tree-ssa-tail-merge.c: Likewise.
23229 * tree-ssa-threadedge.c: Likewise.
23230 * tree-ssa-threadupdate.c: Likewise.
23231 * tree-switch-conversion.c: Likewise.
23232 * tree-tailcall.c: Likewise.
23233 * tree-vect-data-refs.c: Likewise.
23234 * tree-vect-loop.c: Likewise.
23235 * tree-vect-loop-manip.c: Likewise.
23236 * tree-vectorizer.c: Likewise.
23237 * tree-vrp.c: Likewise.
23238 * ubsan.c: Likewise.
23239 * value-prof.c: Likewise.
23240 * varasm.c: Likewise.
23241 * var-tracking.c: Likewise.
23242 * config/aarch64/aarch64-builtins.c: Likewise.
23243 * config/aarch64/aarch64.c: Likewise.
23244 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23245 * config/alpha/alpha.c: Likewise.
23246 * config/arc/arc.c: Likewise.
23247 * config/arm/arm.c: Likewise.
23248 * config/avr/avr.c: Likewise.
23249 * config/bfin/bfin.c: Likewise.
23250 * config/c6x/c6x.c: Likewise.
23251 * config/cr16/cr16.c: Likewise.
23252 * config/cris/cris.c: Likewise.
23253 * config/darwin.c: Likewise.
23254 * config/darwin-c.c: Likewise.
23255 * config/epiphany/epiphany.c: Likewise.
23256 * config/epiphany/mode-switch-use.c: Likewise.
23257 * config/epiphany/resolve-sw-modes.c: Likewise.
23258 * config/fr30/fr30.c: Likewise.
23259 * config/frv/frv.c: Likewise.
23260 * config/ft32/ft32.c: Likewise.
23261 * config/h8300/h8300.c: Likewise.
23262 * config/i386/i386.c: Likewise.
23263 * config/i386/winnt.c: Likewise.
23264 * config/ia64/ia64.c: Likewise.
23265 * config/iq2000/iq2000.c: Likewise.
23266 * config/lm32/lm32.c: Likewise.
23267 * config/m32c/m32c.c: Likewise.
23268 * config/m32r/m32r.c: Likewise.
23269 * config/m68k/m68k.c: Likewise.
23270 * config/mcore/mcore.c: Likewise.
23271 * config/mep/mep.c: Likewise.
23272 * config/microblaze/microblaze.c: Likewise.
23273 * config/mips/mips.c: Likewise.
23274 * config/mmix/mmix.c: Likewise.
23275 * config/mn10300/mn10300.c: Likewise.
23276 * config/moxie/moxie.c: Likewise.
23277 * config/msp430/msp430.c: Likewise.
23278 * config/nds32/nds32.c: Likewise.
23279 * config/nds32/nds32-cost.c: Likewise.
23280 * config/nds32/nds32-fp-as-gp.c: Likewise.
23281 * config/nds32/nds32-intrinsic.c: Likewise.
23282 * config/nds32/nds32-isr.c: Likewise.
23283 * config/nds32/nds32-md-auxiliary.c: Likewise.
23284 * config/nds32/nds32-memory-manipulation.c: Likewise.
23285 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23286 * config/nds32/nds32-predicates.c: Likewise.
23287 * config/nios2/nios2.c: Likewise.
23288 * config/nvptx/nvptx.c: Likewise.
23289 * config/pa/pa.c: Likewise.
23290 * config/pdp11/pdp11.c: Likewise.
23291 * config/rl78/rl78.c: Likewise.
23292 * config/rs6000/rs6000.c: Likewise.
23293 * config/rx/rx.c: Likewise.
23294 * config/s390/s390.c: Likewise.
23295 * config/sh/sh.c: Likewise.
23296 * config/sh/sh-mem.cc: Likewise.
23297 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23298 * config/sh/sh_treg_combine.cc: Likewise.
23299 * config/sparc/sparc.c: Likewise.
23300 * config/spu/spu.c: Likewise.
23301 * config/stormy16/stormy16.c: Likewise.
23302 * config/tilegx/tilegx.c: Likewise.
23303 * config/tilepro/tilepro.c: Likewise.
23304 * config/v850/v850.c: Likewise.
23305 * config/vax/vax.c: Likewise.
23306 * config/visium/visium.c: Likewise.
23307 * config/xtensa/xtensa.c: Likewise.
23308
23309 2015-07-10 Richard Biener <rguenther@suse.de>
23310
23311 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
23312 (decision_tree::gen_gimple): Likewise.
23313 (decision_tree::gen_generic): Likewise.
23314
23315 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
23316
23317 PR target/66813
23318 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
23319 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
23320
23321 2015-07-10 Jakub Jelinek <jakub@redhat.com>
23322
23323 PR middle-end/66820
23324 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
23325 or ORT_TASK contexts.
23326 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
23327 is non-zero.
23328
23329 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23330
23331 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
23332 above function.
23333
23334 2015-07-10 Tom de Vries <tom@codesourcery.com>
23335
23336 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
23337 insert nit + 1 bound.
23338
23339 2015-07-10 Richard Biener <rguenther@suse.de>
23340
23341 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
23342 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
23343 (if_convertible_loop_p_1): For this always compute bb predicates.
23344 (if_convertible_loop_p): And free them.
23345
23346 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23347
23348 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
23349 in dump message.
23350
23351 2015-07-10 Richard Biener <rguenther@suse.de>
23352
23353 PR tree-optimization/66823
23354 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
23355 inverted predicate.
23356
23357 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
23358
23359 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
23360 to handle mips[32|64]r3 and mips[32|64]r5.
23361
23362 2015-07-09 Jakub Jelinek <jakub@redhat.com>
23363
23364 PR middle-end/66633
23365 * tree-nested.c (get_static_chain): Or in a flag into
23366 info->static_chain_added.
23367 (get_frame_field, get_nonlocal_debug_decl): Likewise.
23368 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
23369 2015-07-01 changes.
23370 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
23371 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
23372 add it to clauses.
23373
23374 PR tree-optimization/66718
23375 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
23376 field.
23377 (vect_simd_lane_linear): New function.
23378 (vectorizable_simd_clone_call): Support using linear arguments for
23379 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
23380
23381 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
23382
23383 PR target/66821
23384 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
23385
23386 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
23387
23388 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
23389 Use machine mode, not enum machine_mode in the prototype.
23390
23391 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
23392 classify 128-bit floating point support.
23393 (FLOAT128_IBM_P): Likewise.
23394 (FLOAT128_VECTOR_P): Likewise.
23395 (FLOAT128_2REG_P): Likewise.
23396 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
23397 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
23398 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
23399 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
23400
23401 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
23402 tests against TFmode/TDmode, since those modes do not use VSX
23403 addresses.
23404 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
23405 support.
23406 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
23407 tests against TFmode, etc.
23408 (invalid_e500_subreg): Add tests against IFmode/KFmode.
23409 (reg_offset_addressing_ok_p): Likewise.
23410 (rs6000_legitimate_offset_address_p): Likewise.
23411 (rs6000_legitimize_address): Likewise.
23412 (rs6000_legitimize_reload_address): Likewise.
23413 (rs6000_legitimate_address_p): Clean up tests against TFmode and
23414 TDmode to use the new helper macros, which will include IFmode and
23415 KFmode.
23416 (rs6000_emit_move): Likewise.
23417 (rs6000_darwin64_record_arg_recurse): Likewise.
23418 (print_operand): Likewise.
23419 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
23420 that uses a single vector register as a vector and not as a
23421 floating point register in terms of the calling sequence.
23422 (rs6000_discover_homogeneous_aggregate): Likewise.
23423 (rs6000_return_in_memory): Likewise.
23424 (init_cumulative_args): Likewise.
23425 (rs6000_function_arg_boundary): Likewise.
23426 (rs6000_function_arg_advance_1): Likewise.
23427 (rs6000_function_arg): Likewise.
23428 (rs6000_pass_by_reference): Likewise.
23429 (rs6000_gimplify_va_arg): Likewise.
23430 (rs6000_secondary_reload_memory): Use machine_mode not enum
23431 machine mode.
23432 (rs6000_split_multireg_move): Use new helper macros.
23433 (spe_func_has_64bit_regs_p): Likewise.
23434 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
23435 (output_toc): Use new helper macros.
23436 (rs6000_register_move_cost): Likewise.
23437 (rs6000_function_value): Add IEEE 128-bit floating point calling
23438 sequence support.
23439 (rs6000_libcall_value): Likewise.
23440 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
23441 floating point support.
23442 (rs6000_vector_mode_supported_p): Likewise.
23443
23444 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
23445
23446 PR rtl-optimization/66782
23447 * lra-int.h (struct lra_insn_recog_data): Add comment about
23448 clobbered hard regs for arg_hard_regs.
23449 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
23450 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
23451 Add condition for processing used hard regs.
23452 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
23453 Process clobbered hard regs.
23454
23455 2015-07-09 Michael Matz <matz@suse.de>
23456
23457 * genmatch.c (fprintf_indent): New function.
23458 (operand::gen_transform): Add indent parameter.
23459 (expr::gen_transform, c_expr::gen_transform,
23460 capture::gen_transform): Ditto and use fprintf_indent.
23461 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
23462 (dt_operand::gen, dt_operand::gen_predicate,
23463 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
23464 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
23465 (decision_tree::gen_gimple): Adjust calls and indent generated
23466 code.
23467 (decision_tree::gen_generic): Ditto.
23468 (write_predicate): Ditto.
23469
23470 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
23471
23472 PR target/66814
23473 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
23474 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
23475 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
23476 {GENERAL,SSE,MMX}_REG_P where appropriate.
23477
23478 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
23479
23480 * lto-streamer.h: Don't include target.h and alloc-pool.h.
23481 * builtins.c: Adjust includes.
23482 * gimple.c: Likewise.
23483 * ipa-icf.c: Likewise.
23484 * lto-opts.c: Likewise.
23485 * ipa-reference.c: Likewise.
23486 * lto-section-out.c: Likewise.
23487 * lto-streamer-in.c: Likewise.
23488 * lto-streamer-out.c: Likewise.
23489 * opts-global.c: Likewise.
23490 * symtab.c: Likewise.
23491 * tree-chkp.c: Likewise.
23492 * tree-ssa-live.c: Likewise.
23493 * tree-streamer-in.c: Likewise.
23494 * tree-streamer-out.c: Likewise.
23495 * config/darwin.c: Likewise.
23496 * config/i386/winnt.c: Likewise.
23497
23498 2015-07-09 Richard Biener <rguenther@suse.de>
23499
23500 * genmatch.c (struct expr): Add force_single_use flag.
23501 (expr::expr): Add copy constructor.
23502 (capture_info::walk_match): Gather force_single_use captures.
23503 (expr::gen_transform): Use possibly NULLified sequence.
23504 (dt_simplify::gen): Apply single-use restrictions by NULLifying
23505 seq if any constrained expr is not single-use.
23506 (parser::parse_expr): Refactor to allow multiple flags. Handle
23507 's' flag to force an expression have a single-use if the pattern
23508 simplifies to more than one statement.
23509 * match.pd: Convert most single_use conditionals to :s flags.
23510
23511 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
23512
23513 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
23514 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
23515 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
23516
23517 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
23518
23519 * flags.h: Don't include flag-types.h or options.h.
23520 * opts-common.c: Adjust includes.
23521 * opts-global.c: Likewise.
23522 * common/config/epiphany/epiphany-common.c: Likewise.
23523
23524 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
23525
23526 PR target/66818
23527 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
23528 for IA MCU.
23529
23530 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
23531
23532 PR target/66817
23533 * config/i386/i386.c (ix86_return_in_memory): Return true
23534 if int_size_in_bytes returns negative for IA MCU.
23535
23536 2015-07-09 Marek Polacek <polacek@redhat.com>
23537
23538 PR tree-optimization/66718
23539 * Makefile.in (OBJS): Add gimple-laddress.o.
23540 * passes.def: Schedule pass_laddress.
23541 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
23542 * tree-pass.h (make_pass_laddress): Declare.
23543 * gimple-laddress.c: New file.
23544
23545 2015-07-09 Richard Biener <rguenther@suse.de>
23546
23547 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
23548
23549 2015-07-09 Richard Biener <rguenther@suse.de>
23550
23551 PR tree-optimization/66807
23552 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
23553
23554 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
23555
23556 * function.c (stack_protect_epilogue): Use if rather than switch for
23557 check targetm.have_stack_protect_test.
23558
23559 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23560
23561 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
23562 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
23563 * config/arc/arc.h: Likewise.
23564 * config/arm/arm.h: Likewise.
23565 * config/bfin/bfin.h: Likewise.
23566 * config/epiphany/epiphany.h: Likewise.
23567 * config/frv/frv.h: Likewise.
23568 * config/ia64/ia64.h: Likewise.
23569 * config/iq2000/iq2000.h: Likewise.
23570 * config/lm32/lm32.h: Likewise.
23571 * config/m32r/m32r.h: Likewise.
23572 * config/mcore/mcore.h: Likewise.
23573 * config/mep/mep.h: Likewise.
23574 * config/microblaze/microblaze.h: Likewise.
23575 * config/mips/mips.h: Likewise.
23576 * config/mmix/mmix.h: Likewise.
23577 * config/mn10300/mn10300.h: Likewise.
23578 * config/nds32/nds32.h: Likewise.
23579 * config/nios2/nios2.h: Likewise.
23580 * config/pa/pa.h: Likewise.
23581 * config/rl78/rl78.h: Likewise.
23582 * config/sh/sh.h: Likewise.
23583 * config/sparc/sparc.h: Likewise.
23584 * config/stormy16/stormy16.h: Likewise.
23585 * config/tilegx/tilegx.h: Likewise.
23586 * config/tilepro/tilepro.h: Likewise.
23587 * config/v850/v850.h: Likewise.
23588 * config/xtensa/xtensa.h: Likewise.
23589 * doc/tm.texi: Regenerate.
23590 * doc/tm.texi.in: Adjust.
23591 * combine.c (simplify_set): Likewise.
23592 (simplify_comparison): Likewise.
23593 * expr.c (store_constructor): Likewise.
23594 * internal-fn.c (expand_arith_overflow): Likewise.
23595 * reload.c (push_reload): Likewise.
23596 (find_reloads): Likewise.
23597 (find_reloads_subreg_address): Likewise.
23598 * reload1.c (eliminate_regs_1): Likewise.
23599 * rtlanal.c (nonzero_bits1): Likewise.
23600 (num_sign_bit_copies1): Likewise.
23601 * simplify-rtx.c (simplify_truncation): Likewise.
23602
23603 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23604
23605 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
23606 of AUTO_INC_DEC with the preprocessor.
23607 * combine.c (combine_instructions): Likewise.
23608 (can_combine_p): Likewise.
23609 (try_combine): Likewise.
23610 * emit-rtl.c (try_split): Likewise.
23611 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
23612 * lower-subreg.c (resolve_simple_move): Likewise.
23613 * lra.c (update_inc_notes): Likewise.
23614 * recog.c (asm_operand_ok): Likewise.
23615 (constrain_operands): Likewise.
23616 * regrename.c (scan_rtx_address): Likewise.
23617 * reload.c (update_auto_inc_notes): Likewise.
23618 (reg_inc_found_and_valid_p): Likewise.
23619 * reload1.c (reload): Likewise.
23620 (emit_input_reload_insns): Likewise.
23621 (delete_output_reload): Likewise.
23622 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
23623 * valtrack.c (cleanup_auto_inc_dec): Likewise.
23624
23625 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23626
23627 * rtl.h: Always define AUTO_INC_DEC.
23628 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
23629 * combine.c (combine_instructions): Likewise.
23630 (can_combine_p): Likewise.
23631 (try_combine): Likewise.
23632 * emit-rtl.c (try_split): Likewise.
23633 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
23634 * lower-subreg.c (resolve_simple_move): Likewise.
23635 * lra.c (update_inc_notes): Likewise.
23636 * recog.c (asm_operand_ok): Likewise.
23637 (constrain_operands): Likewise.
23638 * regrename.c (scan_rtx_address): Likewise.
23639 * reload.c (update_auto_inc_notes): Likewise.
23640 (find_equiv_reg): Likewise.
23641 * reload1.c (reload): Likewise.
23642 (reload_as_needed): Likewise.
23643 (choose_reload_regs): Likewise.
23644 (emit_input_reload_insns): Likewise.
23645 (delete_output_reload): Likewise.
23646 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
23647 * valtrack.c (cleanup_auto_inc_dec): Likewise.
23648
23649 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23650
23651 * combine.c (can_combine_def_p): Don't check the value of
23652 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
23653 (combinable_i3pat): Likewise.
23654 (mark_used_regs_combine): Likewise.
23655 * regrename.c (rename_chains): Likewise.
23656 * reload.c (find_reloads_address): Likewise.
23657 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
23658
23659 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23660
23661 * combine.c (update_rsp_from_reg_equal): Don't check if
23662 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
23663 (reg_nonzero_bits_for_combine): Likewise.
23664 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
23665 1.
23666 * config/frv/frv.h: Likewise.
23667 * config/lm32/lm32.h: Likewise.
23668 * config/mep/mep.h: Likewise.
23669 * config/mips/mips.h: Likewise.
23670 * config/rs6000/rs6000.h: Likewise.
23671 * config/sh/sh.h: Likewise.
23672 * config/tilegx/tilegx.h (enum reg_class): Likewise.
23673 * config/tilepro/tilepro.h: Likewise.
23674 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
23675 * doc/tm.texi: Regenerate.
23676 * doc/tm.texi.in: Adjust.
23677 * rtlanal.c (nonzero_bits1): Likewise.
23678
23679 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23680
23681 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
23682 with the preprocessor.
23683 (combine_instructions): Likewise.
23684 (try_combine): Likewise.
23685 (subst): Likewise.
23686 (distribute_notes): Likewise.
23687
23688 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23689
23690 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
23691 defined.
23692 (simplify_set): Likewise.
23693 * cse.c (cse_insn): Likewise.
23694 * fold-const.c (fold_single_bit_test): Likewise.
23695 (fold_unary_loc): Likewise.
23696 * postreload.c (reload_cse_simplify_set): Likewise.
23697 (reload_cse_simplify_operands): Likewise.
23698
23699 2015-07-08 Jiong Wang <jiong.wang@arm.com>
23700
23701 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
23702 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
23703
23704 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
23705
23706 PR target/66746
23707 * config/i386/x86intrin.h: Include <adxintrin.h> even if
23708 __iamcu__ is defined.
23709
23710 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
23711
23712 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
23713
23714 2015-07-08 Iain Sandoe <iain@codesourcery.com>
23715
23716 PR target/66523
23717 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
23718 names from preservation.
23719
23720 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
23721
23722 PR target/66806
23723 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
23724 change for IAMCU.
23725 (function_arg_advance_32): Don't pass vectors in registers for
23726 IAMCU.
23727 (function_arg_32): Likewise.
23728 (ix86_return_in_memory): Don't return vectors in registers for
23729 IAMCU.
23730
23731 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
23732
23733 PR middle-end/66334
23734 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
23735 hard regno live at the start of BB with incoming abnormal edges.
23736 * lra-lives.c (process_bb_lives): Ditto.
23737
23738 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
23739
23740 PR libgomp/65099
23741 * config/nvptx/mkoffload.c (main): Create an offload image only in
23742 64-bit configurations.
23743
23744 2015-07-08 Martin Liska <mliska@suse.cz>
23745
23746 PR bootstrap/66744
23747 * tree-sra.c (create_access_1): Call ctor without brackets.
23748 (create_artificial_child_access): Likewise.
23749
23750 2015-07-08 Richard Biener <rguenther@suse.de>
23751
23752 PR tree-optimization/66793
23753 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
23754 Properly split the block after stmts ending it.
23755
23756 2015-07-08 Richard Biener <rguenther@suse.de>
23757
23758 PR tree-optimization/66794
23759 * passes.c (execute_function_todo): Assert that post-dominators
23760 are not computed.
23761 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
23762 Free post-dominators.
23763
23764 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23765
23766 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
23767 with early exit.
23768
23769 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
23770
23771 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
23772 more than or equal 8 and less than 32 when optimizing for size.
23773
23774 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23775
23776 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
23777 COSTS_N_INSNS (1) and increment it appropriately throughout the
23778 function.
23779
23780 2015-07-08 Richard Biener <rguenther@suse.de>
23781
23782 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
23783
23784 2015-07-08 Alan Modra <amodra@gmail.com>
23785
23786 * target.def (rtx_costs): Remove "code" param, add "mode".
23787 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
23788 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
23789 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
23790 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
23791 call. Track mode when given in rtx.
23792 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
23793 (default_address_cost): Pass Pmode to rtx_cost.
23794 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
23795 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
23796 with NULL set.
23797 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
23798 (notreg_cost): Add mode param. Use it.
23799 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
23800 mode param and pass to set_src_cost. Update all calls.
23801 (hash_scan_set): Formatting.
23802 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
23803 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
23804 * hooks.h: Ditto.
23805 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
23806 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
23807 emit_store_flag): Update set_src_cost and rtx_cost calls.
23808 * auto-inc-dec.c (attempt_change): Likewise.
23809 * calls.c (precompute_register_parameters): Likewise.
23810 * combine.c (expand_compound_operation, make_extraction,
23811 force_to_mode, distribute_and_simplify_rtx): Likewise.
23812 * dojump.c (prefer_and_bit_test): Likewise.
23813 * dse.c (find_shift_sequence): Likewise.
23814 * expr.c (compress_float_constant): Likewise.
23815 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
23816 * ifcvt.c (noce_try_sign_mask): Likewise.
23817 * loop-doloop.c (doloop_optimize): Likewise.
23818 * loop-invariant.c (create_new_invariant): Likewise.
23819 * lower-subreg.c (shift_cost, compute_costs): Likewise.
23820 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
23821 lshift_cheap_p): Likewise.
23822 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
23823 try_replace_in_use, reload_cse_move2add): Likewise.
23824 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
23825 Likewise.
23826 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
23827 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
23828 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
23829 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
23830 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
23831 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
23832 to rtx_cost calls.
23833 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
23834 * config/arc/arc.c (arc_rtx_costs): Likewise.
23835 * config/arm/arm.c (arm_rtx_costs): Likewise.
23836 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
23837 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
23838 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
23839 * config/cris/cris.c (cris_rtx_costs): Likewise.
23840 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
23841 * config/frv/frv.c (frv_rtx_costs): Likewise.
23842 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
23843 * config/i386/i386.c (ix86_rtx_costs): Likewise.
23844 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
23845 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
23846 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
23847 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
23848 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
23849 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
23850 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
23851 * config/mep/mep.c (mep_rtx_cost): Likewise.
23852 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
23853 * config/mips/mips.c (mips_rtx_costs): Likewise.
23854 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
23855 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
23856 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
23857 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
23858 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
23859 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
23860 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
23861 * config/pa/pa.c (hppa_rtx_costs): Likewise.
23862 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
23863 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
23864 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
23865 * config/s390/s390.c (s390_rtx_costs): Likewise.
23866 * config/sh/sh.c (sh_rtx_costs): Likewise.
23867 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
23868 * config/spu/spu.c (spu_rtx_costs): Likewise.
23869 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
23870 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
23871 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
23872 * config/v850/v850.c (v850_rtx_costs): Likewise.
23873 * config/vax/vax.c (vax_rtx_costs): Likewise.
23874 * config/visium/visium.c (visium_rtx_costs): Likewise.
23875 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
23876 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
23877 "code" param, and pass as outer_code to first rtx_cost call. Pass
23878 mode to rtx_cost calls.
23879 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
23880 calls.
23881 (aarch64_rtx_costs_wrapper): Update.
23882 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
23883 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
23884 rtx_cost calls.
23885 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
23886 and rtx_cost calls.
23887 (avr_operand_rtx_cost): Similarly.
23888 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
23889 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
23890 * config/mips/mips.c (mips_stack_address_p): Comment typo.
23891 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
23892 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
23893 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
23894 rtx_cost.
23895 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
23896 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
23897 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
23898 * doc/tm.texi: Regenerate.
23899
23900 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
23901
23902 * tree-core.h: Include symtab.h.
23903 * rtl.h: Include hard-reg-set.h but not flags.h.
23904 (HARD_CONST): Remove condition compilation involving HARD_CONST since
23905 hard-reg-set.h is always included.
23906 * regs.h: Don't include hard-reg-set.h or rtl.h.
23907 * cfg.h: Include dominance.h.
23908 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
23909 * backend.h: New. Aggregate commonly used backend header files.
23910 * gimple-ssa.h: Don't include tree-hasher.h.
23911 * ssa.h: New. Aggregate commonly used SSA header files.
23912 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
23913 * sel-sched-ir.h: Flatten includes.
23914 * lra-int.h: Flatten completely.
23915 * sel-sched-dump.h: Flatten includes.
23916 * ira-int.h: Flatten includes.
23917 * gimple-streamer.h: Remove all includes.
23918 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
23919 * resource.h: Flatten hard-reg-set.h and df.h.
23920 * sched-int.h: Flatten insn-arrt.h and df.h.
23921 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
23922 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
23923 * genattrtab.c (write_header): Adjust generated includes.
23924 * genautomata.c (main): Likewise.
23925 * genconditions.c (write-header): Likewise.
23926 * genemit.c (main): Likewise.
23927 * gengtype.c (open_base_files): Likewise.
23928 * genopinit.c (main): Likewise.
23929 * genoutput.c (output_prologue): Likewise.
23930 * genpeep.c (main): Likewise.
23931 * genpreds.c (write_insn_preds_c): Likewise.
23932 * genrecog.c (write_header): Likewise.
23933 * alias.c: Adjust includes.
23934 * asan.c: Likewise.
23935 * attribs.c: Likewise.
23936 * auto-inc-dec.c: Likewise.
23937 * auto-profile.c: Likewise.
23938 * bb-reorder.c: Likewise.
23939 * bt-load.c: Likewise.
23940 * builtins.c: Likewise.
23941 * caller-save.c: Likewise.
23942 * calls.c: Likewise.
23943 * ccmp.c: Likewise.
23944 * cfg.c: Likewise.
23945 * cfganal.c: Likewise.
23946 * cfgbuild.c: Likewise.
23947 * cfgcleanup.c: Likewise.
23948 * cfgexpand.c: Likewise.
23949 * cfghooks.c: Likewise.
23950 * cfgloop.c: Likewise.
23951 * cfgloopanal.c: Likewise.
23952 * cfgloopmanip.c: Likewise.
23953 * cfgrtl.c: Likewise.
23954 * cgraph.c: Likewise.
23955 * cgraphbuild.c: Likewise.
23956 * cgraphclones.c: Likewise.
23957 * cgraphunit.c: Likewise.
23958 * cilk-common.c: Likewise.
23959 * combine-stack-adj.c: Likewise.
23960 * combine.c: Likewise.
23961 * compare-elim.c: Likewise.
23962 * convert.c: Likewise.
23963 * coverage.c: Likewise.
23964 * cppbuiltin.c: Likewise.
23965 * cprop.c: Likewise.
23966 * cse.c: Likewise.
23967 * cselib.c: Likewise.
23968 * data-streamer-in.c: Likewise.
23969 * data-streamer-out.c: Likewise.
23970 * data-streamer.c: Likewise.
23971 * dbxout.c: Likewise.
23972 * dce.c: Likewise.
23973 * ddg.c: Likewise.
23974 * debug.c: Likewise.
23975 * df-core.c: Likewise.
23976 * df-problems.c: Likewise.
23977 * df-scan.c: Likewise.
23978 * dfp.c: Likewise.
23979 * dojump.c: Likewise.
23980 * dominance.c: Likewise.
23981 * domwalk.c: Likewise.
23982 * double-int.c: Likewise.
23983 * dse.c: Likewise.
23984 * dumpfile.c: Likewise.
23985 * dwarf2asm.c: Likewise.
23986 * dwarf2cfi.c: Likewise.
23987 * dwarf2out.c: Likewise.
23988 * emit-rtl.c: Likewise.
23989 * et-forest.c: Likewise.
23990 * except.c: Likewise.
23991 * explow.c: Likewise.
23992 * expmed.c: Likewise.
23993 * expr.c: Likewise.
23994 * final.c: Likewise.
23995 * fixed-value.c: Likewise.
23996 * fold-const.c: Likewise.
23997 * function.c: Likewise.
23998 * fwprop.c: Likewise.
23999 * gcc-plugin.h: Likewise.
24000 * gcse-common.c: Likewise.
24001 * gcse.c: Likewise.
24002 * generic-match-head.c: Likewise.
24003 * ggc-page.c: Likewise.
24004 * gimple-builder.c: Likewise.
24005 * gimple-expr.c: Likewise.
24006 * gimple-fold.c: Likewise.
24007 * gimple-iterator.c: Likewise.
24008 * gimple-low.c: Likewise.
24009 * gimple-match-head.c: Likewise.
24010 * gimple-pretty-print.c: Likewise.
24011 * gimple-ssa-isolate-paths.c: Likewise.
24012 * gimple-ssa-strength-reduction.c: Likewise.
24013 * gimple-streamer-in.c: Likewise.
24014 * gimple-streamer-out.c: Likewise.
24015 * gimple-walk.c: Likewise.
24016 * gimple.c: Likewise.
24017 * gimplify-me.c: Likewise.
24018 * gimplify.c: Likewise.
24019 * godump.c: Likewise.
24020 * graph.c: Likewise.
24021 * graphite-blocking.c: Likewise.
24022 * graphite-dependences.c: Likewise.
24023 * graphite-interchange.c: Likewise.
24024 * graphite-isl-ast-to-gimple.c: Likewise.
24025 * graphite-optimize-isl.c: Likewise.
24026 * graphite-poly.c: Likewise.
24027 * graphite-scop-detection.c: Likewise.
24028 * graphite-sese-to-poly.c: Likewise.
24029 * graphite.c: Likewise.
24030 * haifa-sched.c: Likewise.
24031 * hw-doloop.c: Likewise.
24032 * ifcvt.c: Likewise.
24033 * init-regs.c: Likewise.
24034 * internal-fn.c: Likewise.
24035 * ipa-chkp.c: Likewise.
24036 * ipa-comdats.c: Likewise.
24037 * ipa-cp.c: Likewise.
24038 * ipa-devirt.c: Likewise.
24039 * ipa-icf-gimple.c: Likewise.
24040 * ipa-icf.c: Likewise.
24041 * ipa-inline-analysis.c: Likewise.
24042 * ipa-inline-transform.c: Likewise.
24043 * ipa-inline.c: Likewise.
24044 * ipa-polymorphic-call.c: Likewise.
24045 * ipa-profile.c: Likewise.
24046 * ipa-prop.c: Likewise.
24047 * ipa-pure-const.c: Likewise.
24048 * ipa-ref.c: Likewise.
24049 * ipa-reference.c: Likewise.
24050 * ipa-split.c: Likewise.
24051 * ipa-utils.c: Likewise.
24052 * ipa-visibility.c: Likewise.
24053 * ipa.c: Likewise.
24054 * ira-build.c: Likewise.
24055 * ira-color.c: Likewise.
24056 * ira-conflicts.c: Likewise.
24057 * ira-costs.c: Likewise.
24058 * ira-emit.c: Likewise.
24059 * ira-lives.c: Likewise.
24060 * ira.c: Likewise.
24061 * jump.c: Likewise.
24062 * langhooks.c: Likewise.
24063 * lcm.c: Likewise.
24064 * loop-doloop.c: Likewise.
24065 * loop-init.c: Likewise.
24066 * loop-invariant.c: Likewise.
24067 * loop-iv.c: Likewise.
24068 * loop-unroll.c: Likewise.
24069 * lower-subreg.c: Likewise.
24070 * lra-assigns.c: Likewise.
24071 * lra-coalesce.c: Likewise.
24072 * lra-constraints.c: Likewise.
24073 * lra-eliminations.c: Likewise.
24074 * lra-lives.c: Likewise.
24075 * lra-remat.c: Likewise.
24076 * lra-spills.c: Likewise.
24077 * lra.c: Likewise.
24078 * lto-cgraph.c: Likewise.
24079 * lto-compress.c: Likewise.
24080 * lto-opts.c: Likewise.
24081 * lto-section-in.c: Likewise.
24082 * lto-section-out.c: Likewise.
24083 * lto-streamer-in.c: Likewise.
24084 * lto-streamer-out.c: Likewise.
24085 * lto-streamer.c: Likewise.
24086 * mcf.c: Likewise.
24087 * mode-switching.c: Likewise.
24088 * modulo-sched.c: Likewise.
24089 * omega.c: Likewise.
24090 * omp-low.c: Likewise.
24091 * optabs.c: Likewise.
24092 * opts-global.c: Likewise.
24093 * passes.c: Likewise.
24094 * plugin.c: Likewise.
24095 * postreload-gcse.c: Likewise.
24096 * postreload.c: Likewise.
24097 * predict.c: Likewise.
24098 * print-rtl.c: Likewise.
24099 * print-tree.c: Likewise.
24100 * profile.c: Likewise.
24101 * real.c: Likewise.
24102 * realmpfr.c: Likewise.
24103 * recog.c: Likewise.
24104 * ree.c: Likewise.
24105 * reg-stack.c: Likewise.
24106 * regcprop.c: Likewise.
24107 * reginfo.c: Likewise.
24108 * regrename.c: Likewise.
24109 * regstat.c: Likewise.
24110 * reload.c: Likewise.
24111 * reload1.c: Likewise.
24112 * reorg.c: Likewise.
24113 * resource.c: Likewise.
24114 * rtl-chkp.c: Likewise.
24115 * rtlanal.c: Likewise.
24116 * rtlhooks.c: Likewise.
24117 * sanopt.c: Likewise.
24118 * sched-deps.c: Likewise.
24119 * sched-ebb.c: Likewise.
24120 * sched-rgn.c: Likewise.
24121 * sched-vis.c: Likewise.
24122 * sdbout.c: Likewise.
24123 * sel-sched-dump.c: Likewise.
24124 * sel-sched-ir.c: Likewise.
24125 * sel-sched.c: Likewise.
24126 * sese.c: Likewise.
24127 * shrink-wrap.c: Likewise.
24128 * simplify-rtx.c: Likewise.
24129 * stack-ptr-mod.c: Likewise.
24130 * stmt.c: Likewise.
24131 * stor-layout.c: Likewise.
24132 * store-motion.c: Likewise.
24133 * stringpool.c: Likewise.
24134 * symtab.c: Likewise.
24135 * target-globals.c: Likewise.
24136 * targhooks.c: Likewise.
24137 * toplev.c: Likewise.
24138 * tracer.c: Likewise.
24139 * trans-mem.c: Likewise.
24140 * tree-affine.c: Likewise.
24141 * tree-browser.c: Likewise.
24142 * tree-call-cdce.c: Likewise.
24143 * tree-cfg.c: Likewise.
24144 * tree-cfgcleanup.c: Likewise.
24145 * tree-chkp-opt.c: Likewise.
24146 * tree-chkp.c: Likewise.
24147 * tree-chrec.c: Likewise.
24148 * tree-complex.c: Likewise.
24149 * tree-data-ref.c: Likewise.
24150 * tree-dfa.c: Likewise.
24151 * tree-diagnostic.c: Likewise.
24152 * tree-dump.c: Likewise.
24153 * tree-eh.c: Likewise.
24154 * tree-emutls.c: Likewise.
24155 * tree-if-conv.c: Likewise.
24156 * tree-inline.c: Likewise.
24157 * tree-into-ssa.c: Likewise.
24158 * tree-iterator.c: Likewise.
24159 * tree-loop-distribution.c: Likewise.
24160 * tree-nested.c: Likewise.
24161 * tree-nrv.c: Likewise.
24162 * tree-object-size.c: Likewise.
24163 * tree-outof-ssa.c: Likewise.
24164 * tree-parloops.c: Likewise.
24165 * tree-phinodes.c: Likewise.
24166 * tree-predcom.c: Likewise.
24167 * tree-pretty-print.c: Likewise.
24168 * tree-profile.c: Likewise.
24169 * tree-scalar-evolution.c: Likewise.
24170 * tree-sra.c: Likewise.
24171 * tree-ssa-address.c: Likewise.
24172 * tree-ssa-alias.c: Likewise.
24173 * tree-ssa-ccp.c: Likewise.
24174 * tree-ssa-coalesce.c: Likewise.
24175 * tree-ssa-copy.c: Likewise.
24176 * tree-ssa-copyrename.c: Likewise.
24177 * tree-ssa-dce.c: Likewise.
24178 * tree-ssa-dom.c: Likewise.
24179 * tree-ssa-dse.c: Likewise.
24180 * tree-ssa-forwprop.c: Likewise.
24181 * tree-ssa-ifcombine.c: Likewise.
24182 * tree-ssa-live.c: Likewise.
24183 * tree-ssa-loop-ch.c: Likewise.
24184 * tree-ssa-loop-im.c: Likewise.
24185 * tree-ssa-loop-ivcanon.c: Likewise.
24186 * tree-ssa-loop-ivopts.c: Likewise.
24187 * tree-ssa-loop-manip.c: Likewise.
24188 * tree-ssa-loop-niter.c: Likewise.
24189 * tree-ssa-loop-prefetch.c: Likewise.
24190 * tree-ssa-loop-unswitch.c: Likewise.
24191 * tree-ssa-loop.c: Likewise.
24192 * tree-ssa-math-opts.c: Likewise.
24193 * tree-ssa-operands.c: Likewise.
24194 * tree-ssa-phiopt.c: Likewise.
24195 * tree-ssa-phiprop.c: Likewise.
24196 * tree-ssa-pre.c: Likewise.
24197 * tree-ssa-propagate.c: Likewise.
24198 * tree-ssa-reassoc.c: Likewise.
24199 * tree-ssa-sccvn.c: Likewise.
24200 * tree-ssa-scopedtables.c: Likewise.
24201 * tree-ssa-sink.c: Likewise.
24202 * tree-ssa-strlen.c: Likewise.
24203 * tree-ssa-structalias.c: Likewise.
24204 * tree-ssa-tail-merge.c: Likewise.
24205 * tree-ssa-ter.c: Likewise.
24206 * tree-ssa-threadedge.c: Likewise.
24207 * tree-ssa-threadupdate.c: Likewise.
24208 * tree-ssa-uncprop.c: Likewise.
24209 * tree-ssa-uninit.c: Likewise.
24210 * tree-ssa.c: Likewise.
24211 * tree-ssanames.c: Likewise.
24212 * tree-stdarg.c: Likewise.
24213 * tree-streamer-in.c: Likewise.
24214 * tree-streamer-out.c: Likewise.
24215 * tree-streamer.c: Likewise.
24216 * tree-switch-conversion.c: Likewise.
24217 * tree-tailcall.c: Likewise.
24218 * tree-vect-data-refs.c: Likewise.
24219 * tree-vect-generic.c: Likewise.
24220 * tree-vect-loop-manip.c: Likewise.
24221 * tree-vect-loop.c: Likewise.
24222 * tree-vect-patterns.c: Likewise.
24223 * tree-vect-slp.c: Likewise.
24224 * tree-vect-stmts.c: Likewise.
24225 * tree-vectorizer.c: Likewise.
24226 * tree-vrp.c: Likewise.
24227 * tree.c: Likewise.
24228 * tsan.c: Likewise.
24229 * ubsan.c: Likewise.
24230 * valtrack.c: Likewise.
24231 * value-prof.c: Likewise.
24232 * var-tracking.c: Likewise.
24233 * varasm.c: Likewise.
24234 * varpool.c: Likewise.
24235 * vmsdbgout.c: Likewise.
24236 * vtable-verify.c: Likewise.
24237 * web.c: Likewise.
24238 * wide-int.cc: Likewise.
24239 * xcoffout.c: Likewise.
24240 * config/aarch64/aarch64-builtins.c: Likewise.
24241 * config/aarch64/aarch64.c: Likewise.
24242 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24243 * config/alpha/alpha.c: Likewise.
24244 * config/arc/arc.c: Likewise.
24245 * config/arm/aarch-common.c: Likewise.
24246 * config/arm/arm-builtins.c: Likewise.
24247 * config/arm/arm-c.c: Likewise.
24248 * config/arm/arm.c: Likewise.
24249 * config/avr/avr-c.c: Likewise.
24250 * config/avr/avr-log.c: Likewise.
24251 * config/avr/avr.c: Likewise.
24252 * config/bfin/bfin.c: Likewise.
24253 * config/c6x/c6x.c: Likewise.
24254 * config/cr16/cr16.c: Likewise.
24255 * config/cris/cris.c: Likewise.
24256 * config/darwin-c.c: Likewise.
24257 * config/darwin.c: Likewise.
24258 * config/epiphany/epiphany.c: Likewise.
24259 * config/epiphany/mode-switch-use.c: Likewise.
24260 * config/epiphany/resolve-sw-modes.c: Likewise.
24261 * config/fr30/fr30.c: Likewise.
24262 * config/frv/frv.c: Likewise.
24263 * config/ft32/ft32.c: Likewise.
24264 * config/h8300/h8300.c: Likewise.
24265 * config/i386/i386-c.c: Likewise.
24266 * config/i386/i386.c: Likewise.
24267 * config/i386/msformat-c.c: Likewise.
24268 * config/i386/winnt-cxx.c: Likewise.
24269 * config/i386/winnt-stubs.c: Likewise.
24270 * config/i386/winnt.c: Likewise.
24271 * config/ia64/ia64-c.c: Likewise.
24272 * config/ia64/ia64.c: Likewise.
24273 * config/iq2000/iq2000.c: Likewise.
24274 * config/lm32/lm32.c: Likewise.
24275 * config/m32c/m32c-pragma.c: Likewise.
24276 * config/m32c/m32c.c: Likewise.
24277 * config/m32r/m32r.c: Likewise.
24278 * config/m68k/m68k.c: Likewise.
24279 * config/mcore/mcore.c: Likewise.
24280 * config/mep/mep-pragma.c: Likewise.
24281 * config/mep/mep.c: Likewise.
24282 * config/microblaze/microblaze-c.c: Likewise.
24283 * config/microblaze/microblaze.c: Likewise.
24284 * config/mips/mips.c: Likewise.
24285 * config/mmix/mmix.c: Likewise.
24286 * config/mn10300/mn10300.c: Likewise.
24287 * config/moxie/moxie.c: Likewise.
24288 * config/msp430/msp430-c.c: Likewise.
24289 * config/msp430/msp430.c: Likewise.
24290 * config/nds32/nds32-cost.c: Likewise.
24291 * config/nds32/nds32-fp-as-gp.c: Likewise.
24292 * config/nds32/nds32-intrinsic.c: Likewise.
24293 * config/nds32/nds32-isr.c: Likewise.
24294 * config/nds32/nds32-md-auxiliary.c: Likewise.
24295 * config/nds32/nds32-memory-manipulation.c: Likewise.
24296 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24297 * config/nds32/nds32-predicates.c: Likewise.
24298 * config/nds32/nds32.c: Likewise.
24299 * config/nios2/nios2.c: Likewise.
24300 * config/nvptx/nvptx.c: Likewise.
24301 * config/pa/pa.c: Likewise.
24302 * config/pdp11/pdp11.c: Likewise.
24303 * config/rl78/rl78-c.c: Likewise.
24304 * config/rl78/rl78.c: Likewise.
24305 * config/rs6000/rs6000-c.c: Likewise.
24306 * config/rs6000/rs6000.c: Likewise.
24307 * config/rx/rx.c: Likewise.
24308 * config/s390/s390-c.c: Likewise.
24309 * config/s390/s390.c: Likewise.
24310 * config/sh/sh-c.c: Likewise.
24311 * config/sh/sh-mem.cc: Likewise.
24312 * config/sh/sh.c: Likewise.
24313 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
24314 * config/sh/sh_treg_combine.cc: Likewise.
24315 * config/sol2-c.c: Likewise.
24316 * config/sol2-cxx.c: Likewise.
24317 * config/sol2-stubs.c: Likewise.
24318 * config/sol2.c: Likewise.
24319 * config/sparc/sparc-c.c: Likewise.
24320 * config/sparc/sparc.c: Likewise.
24321 * config/spu/spu-c.c: Likewise.
24322 * config/spu/spu.c: Likewise.
24323 * config/stormy16/stormy16.c: Likewise.
24324 * config/tilegx/mul-tables.c: Likewise.
24325 * config/tilegx/tilegx-c.c: Likewise.
24326 * config/tilegx/tilegx.c: Likewise.
24327 * config/tilepro/mul-tables.c: Likewise.
24328 * config/tilepro/tilepro-c.c: Likewise.
24329 * config/tilepro/tilepro.c: Likewise.
24330 * config/v850/v850-c.c: Likewise.
24331 * config/v850/v850.c: Likewise.
24332 * config/vax/vax.c: Likewise.
24333 * config/visium/visium.c: Likewise.
24334 * config/vms/vms-c.c: Likewise.
24335 * config/vms/vms.c: Likewise.
24336 * config/vxworks.c: Likewise.
24337 * config/xtensa/xtensa.c: Likewise.
24338
24339 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
24340
24341 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
24342 Remove operand constraints. Change operand 2 predicate to
24343 nonmemory operand. Limit const_int values to mode bitsize. Only
24344 allow const_int values less than 32 when optimizing for size.
24345 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
24346 Remove operand constraints.
24347 (*bt<mode>): Use SImode for const_int values less than 32.
24348 (regmode): Remove mode attribute.
24349
24350 2015-07-07 Anatoly Sokolov <aesok@post.ru>
24351
24352 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
24353 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
24354 moxie_legitimate_address_p): New functions.
24355 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
24356
24357 2015-07-07 Tom de Vries <tom@codesourcery.com>
24358
24359 PR tree-optimization/66642
24360 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
24361 header comment. Rename split_edge variable to edge_at_split. Split
24362 exit edge to create new loop exit bb. Insert loop exit phis in new
24363 loop exit bb.
24364
24365 2015-07-07 Tom de Vries <tom@codesourcery.com>
24366
24367 * tree-cfg.c (get_virtual_phi): New function.
24368 * tree-cfg.h (get_virtual_phi): Declare.
24369 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
24370 (rewrite_virtuals_into_loop_closed_ssa): New function.
24371 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
24372 Declare.
24373 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
24374 (transform_to_exit_first_loop_alt): Use
24375 rewrite_virtuals_into_loop_closed_ssa.
24376
24377 2015-07-07 Richard Biener <rguenther@suse.de>
24378
24379 * fold-const.c (fold_binary_loc): Move
24380 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
24381 * match.pd: ... here.
24382 Add (X * C1) % C2 -> 0 simplification pattern derived from
24383 extract_muldiv_1.
24384
24385 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
24386
24387 PR target/66780
24388 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
24389 change for target/65249.
24390
24391 2015-07-07 Paulo Matos <pmatos@broadcom.com>
24392
24393 * symtab.c (address_matters_1): Fix typo in comment above.
24394 (can_increase_alignment_p): Likewise.
24395
24396 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24397
24398 * function.c (free_after_compilation): Clear PROP_cfg in
24399 f->curr_properties.
24400
24401 2015-07-07 Richard Biener <rguenther@suse.de>
24402
24403 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
24404 add which use to.
24405 (add_control_edge): Remove excessive vertical space in dumping.
24406 (process_ssa_edge_worklist): Simulate at most one statement and
24407 return whether we did. Do not simulate PHIs if they are in a
24408 BB not yet simulated.
24409 (ssa_propagate): Adjust to always drain the BB worklist whenever
24410 a BB is available there, likewise the VARYING edges list before
24411 the interesting edge list.
24412
24413 2015-07-07 Christian Bruel <christian.bruel@st.com>
24414
24415 PR target/52144
24416 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
24417
24418 2015-07-07 Richard Biener <rguenther@suse.de>
24419
24420 PR middle-end/66739
24421 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
24422 A - B.
24423
24424 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
24425
24426 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
24427 modes for operands 0 and 3. Use SImode for operands 2 and 3.
24428 Copy operand 0 to a temporary if !ext_register_operand. Remove
24429 ancient extract_bit_field workaround.
24430 (insv<mode>_1): Rename from mov<mode>_insv_1.
24431 (*insvqi): Rename from *movqi_insv_2.
24432 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
24433 for renamed insvsi_1.
24434 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
24435
24436 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
24437
24438 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
24439 call to nvptx_reorg_subreg.
24440
24441 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
24442
24443 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
24444 * graphite-dependencies.c, graphite-interchange.c,
24445 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
24446 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
24447 Likewise.
24448
24449 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
24450
24451 * match.pd: Remove element_mode inside HONOR_*.
24452 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
24453 (~X | X -> -1, ~X ^ X -> -1): Merge.
24454 * tree.c (build_each_one_cst): New function.
24455 * tree.h (build_each_one_cst): Likewise.
24456
24457 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
24458
24459 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24460 PROCESSOR_IAMCU.
24461
24462 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
24463
24464 * config.gcc <mips*-*-*>: Add fused-madd.opt.
24465 * config/mips/mips.opt (mfused-madd): Remove.
24466 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
24467 * config/mips/mips.h (TARGET_MIPS8000): New.
24468 (ISA_HAS_FP_MADD4_MSUB4): Remove.
24469 (ISA_HAS_FP_MADDF_MSUBF): Remove.
24470 (ISA_HAS_FP_MADD3_MSUB3): Remove.
24471 (ISA_HAS_NMADD4_NMSUB4): Remove.
24472 (ISA_HAS_NMADD3_NMSUB3): Remove.
24473 (ISA_HAS_FUSED_MADD4): New.
24474 (ISA_HAS_UNFUSED_MADD4): New.
24475 (ISA_HAS_FUSED_MADDF): New.
24476 (ISA_HAS_FUSED_MADD3): New.
24477 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
24478 (*fma<mode>4_madd3) New.
24479 (*fma<mode>4_madd4) New.
24480 (*fma<mode>4_maddf) New.
24481 (fms<mode>4) New.
24482 (*fms<mode>4_msub3) New.
24483 (*fms<mode>4_msub4) New.
24484 (fnma<mode>4) New.
24485 (*fnma<mode>4_nmadd3) New.
24486 (*fnma<mode>4_nmadd4) New.
24487 (fnms<mode>4) New.
24488 (*fnms<mode>4_nmsub3) New.
24489 (*fnms<mode>4_nmsub4) New.
24490 (*madd4<mode>) Modify to be unfused only.
24491 (*msub4<mode>) Modify to be unfused only.
24492 (*nmadd4<mode>) Modify to be unfused only.
24493 (*nmsub4<mode>) Modify to be unfused only.
24494 (*madd3<mode>) Remove.
24495 (*msub3<mode>) Remove.
24496 (*nmadd3<mode>) Remove.
24497 (*nmsub3<mode>) Remove.
24498 (*nmadd3<mode>_fastmath) Remove.
24499 (*nmsub3<mode>_fastmath) Remove.
24500 (*nmadd4<mode>_fastmath) Update condition.
24501 (*nmsub4<mode>_fastmath) Update condition.
24502
24503 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
24504
24505 PR target/65956
24506 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
24507 alignment attribute, exploring one level down for records and arrays.
24508
24509 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
24510
24511 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
24512 modes for operands 0 and 1. Use SImode for operands 2 and 3.
24513 Copy operand 1 to a temporary if !ext_register_operand. Remove
24514 ancient extract_bit_field workaround.
24515 (*extv<mode>): Rename from *mov<mode>_extv_1.
24516 (*extvqi): Rename from *movqi_extv_1.
24517 (extzv<mode>): Rename from extzv. Use SWI248 modes for
24518 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
24519 to a temporary if !ext_register_operand. Remove ancient
24520 extract_bit_field workaround.
24521 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
24522 (*extzvqi): Rename from *movqi_extzv_2.
24523 (*testqi_ext_3): Remove modes from const_int_operand predicated
24524 operands. Add "n" constraint.
24525 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
24526 operand. Add "J" constraint.
24527 (*btsq, *btrq, *btcq peephole2s): Remove mode from
24528 const_0_to_63 predicated operand.
24529 (regmode): New insn attribute.
24530 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
24531 to nonmemory_operand. Use regmode insn attribute.
24532 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
24533 (*jcc_bt<mode>_mask): Remove mode from operand 3.
24534 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
24535 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
24536 operands. Use "N" constraint instead of "n".
24537
24538 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
24539
24540 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
24541
24542 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
24543
24544 PR target/66749
24545 * config/i386/i386.c (iamcu_cost): New.
24546 (m_IAMCU): Likewise.
24547 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
24548 (processor_target_table): Add an entry for "iamcu".
24549 (processor_alias_table): Likewise.
24550 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
24551 (ix86_adjust_cost): Likewise.
24552 (ia32_multipass_dfa_lookahead): Likewise.
24553 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
24554 * config/i386/x86-tune.def: Updated for m_IAMCU.
24555
24556 2015-07-06 Richard Biener <rguenther@suse.de>
24557
24558 PR tree-optimization/66772
24559 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
24560 values are available in the PHI node BB when there are
24561 still unexecutable edges.
24562
24563 2015-07-06 Richard Biener <rguenther@suse.de>
24564
24565 PR tree-optimization/66767
24566 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
24567 Make sure to build the alignment test on a SSA name without
24568 final alignment info valid only if the alignment test
24569 evaluates to true.
24570
24571 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
24572
24573 PR target/66620
24574 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
24575 loop start when inserting LSETUP.
24576
24577 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
24578
24579 PR target/53383
24580 * config/i386/i386.c (ix86_option_override_internal): Allow
24581 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
24582
24583 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24584
24585 * read-md.c (decimal_string): Rename to ...
24586 (md_decimal_string): ... this.
24587 (handle_enum): Reflect this.
24588
24589 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
24590
24591 PR target/66731
24592 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
24593
24594 2015-07-06 Richard Biener <rguenther@suse.de>
24595
24596 PR middle-end/66759
24597 * match.pd: Add missing constraint of y to REAL_CST in
24598 REAL_CST - x CMP y to y - CST CMP x simplification.
24599
24600 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
24601
24602 PR tree-optimization/66757
24603 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
24604
24605 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
24606 Sandra Loosemore <sandra@codesourcery.com>
24607
24608 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
24609 Delete extern declaration.
24610 (gprel_constant_p): Add extern declaration.
24611 * config/nios2/constraints.md ("S"): Use gprel_constant_p
24612 instead of nios2_symbol_ref_in_small_data_p.
24613 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
24614 (nios2_symbol_ref_in_small_data_p): Make static.
24615 (gprel_constant_p): Make non-static.
24616
24617 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
24618
24619 * doc/fragments.texi (Target Fragment): Convert debian.org
24620 link to use https.
24621 * doc/install.texi (Configuration): Ditto.
24622
24623 2015-07-05 Jakub Jelinek <jakub@redhat.com>
24624
24625 PR tree-optimization/66718
24626 * tree-vect-stmts.c (vectorizable_call): Replace uses of
24627 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
24628
24629 PR tree-optimization/66718
24630 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
24631 vectorizable_load, vectorizable_condition): Move vectype,
24632 nunits, ncopies computation after checking what kind of statement
24633 stmt is.
24634
24635 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24636
24637 * target-insns.def (extv, extzv, insv): New targetm instruction
24638 patterns.
24639 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
24640 interface.
24641 * recog.c (simplify_while_replacing): Likewise.
24642
24643 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24644
24645 * target-insns.def (doloop_begin, doloop_end): New targetm
24646 instruction patterns.
24647 * loop-init.c: Include target.h.
24648 (pass_loop2::gate): Use the new targetm patterns instead of
24649 HAVE_*/gen_* interface.
24650 (pass_rtl_doloop::gate): Likewise.
24651 (pass_rtl_doloop::execute): Remove preprocessor condition.
24652 * hw-doloop.c: Build unconditionally.
24653 * loop-doloop.c: Likewise.
24654 (doloop_optimize): Use the new targetm patterns instead of
24655 HAVE_*/gen_* interface.
24656 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
24657 * modulo-sched.c (doloop_register_get): Likewise.
24658
24659 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24660
24661 * target-insns.def (clear_cache): New targetm instruction pattern.
24662 * builtins.c (expand_builtin___clear_cache): Use it instead of
24663 HAVE_*/gen_* interface.
24664
24665 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24666
24667 * target-insns.def (allocate_stack, check_stack, probe_stack)
24668 (probe_stack_address, split_stack_prologue, split_stack_space_check):
24669 New targetm instruction patterns.
24670 * explow.c (allocate_dynamic_stack_space): Use them instead of
24671 HAVE_*/gen_* interface.
24672 (emit_stack_probe): Likewise.
24673 (probe_stack_range): Likewise.
24674 * function.c (thread_prologue_and_epilogue_insns): Likewise.
24675
24676 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24677
24678 * target-insns.def (stack_protect_set, stack_protect_test): New
24679 targetm instruction patterns.
24680 * cfgexpand.c (stack_protect_prologue): Use them instead of
24681 HAVE_*/gen_* interface.
24682 * function.c (stack_protect_epilogue): Likewise.
24683
24684 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24685
24686 * expr.h (gen_move_insn_uncast): Delete.
24687 * expr.c (gen_move_insn_uncast): Delete.
24688
24689 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24690
24691 * target-insns.def (restore_stack_block, restore_stack_function)
24692 (restore_stack_nonlocal, save_stack_block, save_stack_function)
24693 (save_stack_nonlocal): New targetm instruction patterns.
24694 * builtins.c (expand_builtin_apply): Use them instead of
24695 HAVE_*/gen_* interface.
24696 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
24697
24698 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24699
24700 * target-insns.def (trap): New targetm instruction pattern.
24701 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
24702 interface.
24703 * explow.c (allocate_dynamic_stack_space): Likewise.
24704 * ifcvt.c (find_if_header): Likewise.
24705
24706 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24707
24708 * target-insns.def (prefetch): New targetm instruction pattern.
24709 * tree-ssa-loop-prefetch.c: Include targeth.
24710 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
24711 of HAVE_*/gen_* interface.
24712 * builtins.c (expand_builtin_prefetch): Likewise.
24713 * toplev.c (process_options): Likewise.
24714
24715 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24716
24717 * target-insns.def (untyped_call, untyped_return): New targetm
24718 instruction patterns.
24719 * builtins.c (expand_builtin_apply): Use them instead of
24720 HAVE_*/gen_* interface.
24721 (result_vector): Define unconditionally.
24722
24723 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24724
24725 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
24726 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
24727 (nonlocal_goto_receiver): New targetm instruction patterns.
24728 * builtins.c (expand_builtin_setjmp_setup): Use them instead
24729 of HAVE_*/gen_* interface.
24730 (expand_builtin_setjmp_receiver): Likewise.
24731 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
24732 * except.c (expand_dw2_landing_pad_for_region): Likewise.
24733
24734 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24735
24736 * target.def: Add code_for_* hooks.
24737 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
24738 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
24739 * target-insns.def (casesi, tablejump): New targetm instruction
24740 patterns.
24741 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
24742 (do_tablejump): Likewise.
24743 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
24744 (expand_sjlj_dispatch_table): Likewise.
24745 * targhooks.c (default_case_values_threshold): Likewise.
24746
24747 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
24748
24749 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
24750 Use rtx_insn * instead of rtx.
24751 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
24752 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
24753 (nios2_call_tls_get_addr): Likewise.
24754 (nios2_emit_expensive_div): Likewise.
24755 (nios2_emit_move_sequence): Change return type to bool.
24756 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
24757 Change return type to bool.
24758
24759 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24760
24761 PR target/66747
24762 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
24763
24764 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
24765
24766 PR target/66114
24767 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
24768 of register_operand. Remove constraint.
24769
24770 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
24771
24772 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
24773 the first argument.
24774
24775 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
24776
24777 * attribs.c (decl_attributes): Guard inform with the return value
24778 of the preceding warning.
24779
24780 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
24781
24782 * doc/invoke.texi (moverride): Move to correct section.
24783
24784 2015-07-03 Richard Biener <rguenther@suse.de>
24785
24786 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
24787 Copy from tree.c
24788 (dt_operand::gen_gimple_expr): After valueizing operands
24789 re-canonicalize operand order for commutative tree codes.
24790
24791 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
24792
24793 PR target/66746.
24794 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
24795 is defined.
24796 (__crc32w): Likewise.
24797 (__crc32d): Likewise.
24798 (__rdpmc): Likewise.
24799 (__rdtscp): Likewise.
24800 (_rdpmc): Likewise.
24801 (_rdtscp): Likewise.
24802 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
24803 is defined.
24804
24805 2015-07-03 Richard Biener <rguenther@suse.de>
24806
24807 * fold-const.c (fold_mathfn_compare): Remove.
24808 (fold_inf_compare): Likewise.
24809 (fold_comparison): Move floating point comparison simplifications...
24810 * match.pd: ... to patterns here. Introduce simple_comparisons
24811 operator list and use it for patterns formerly in fold_comparison.
24812
24813 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
24814
24815 PR tree-optimization/66119
24816 * toplev.c (process_options): Don't set up default values for
24817 the sra_max_scalarization_size_{speed,size} parameters.
24818 * tree-sra (analyze_all_variable_accesses): If no values
24819 have been set for the sra_max_scalarization_size_{speed,size}
24820 parameters, call get_move_ratio to get target defaults.
24821
24822 2015-07-03 Richard Biener <rguenther@suse.de>
24823
24824 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
24825 * match.pd: ... here.
24826
24827 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
24828
24829 PR target/37072
24830 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
24831 is not actually the default on FreeBSD.
24832
24833 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24834
24835 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
24836 definition.
24837 (CMPGE_8HI): Likewise.
24838 (CMPGE_4SI): Likewise.
24839 (CMPGE_2DI): Likewise.
24840 (CMPGE_U16QI): Likewise.
24841 (CMPGE_U8HI): Likewise.
24842 (CMPGE_U4SI): Likewise.
24843 (CMPGE_U2DI): Likewise.
24844 (CMPLE_16QI): Likewise.
24845 (CMPLE_8HI): Likewise.
24846 (CMPLE_4SI): Likewise.
24847 (CMPLE_2DI): Likewise.
24848 (CMPLE_U16QI): Likewise.
24849 (CMPLE_U8HI): Likewise.
24850 (CMPLE_U4SI): Likewise.
24851 (CMPLE_U2DI): Likewise.
24852 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24853 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
24854 ALTIVEC_BUILTIN_VEC_CMPLE.
24855 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
24856 floating-point vector modes.
24857 (vector_nlt<mode>): New define_expand.
24858 (vector_nltu<mode>): Likewise.
24859 (vector_ngt<mode>): Likewise.
24860 (vector_ngtu<mode>): Likewise.
24861
24862 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
24863
24864 PR rtl-optimization/66706
24865 * combine.c (make_compound_operation): If an AND of SUBREG of
24866 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
24867
24868 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
24869
24870 * tree-pass.h (make_pass_ch_vect): New.
24871 * passes.def: Add pass_ch_vect just before pass_if_conversion.
24872
24873 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
24874 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
24875 make_pass_ch_vect): New.
24876 (pass_ch): Extend ch_base.
24877
24878 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
24879 (ch_base::copy_headers): ...here.
24880
24881 2015-07-02 Richard Biener <rguenther@suse.de>
24882
24883 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
24884 * fold-const.c (get_pointer_modulus_and_residue): Remove.
24885 (fold_binary_loc): Implement (T)ptr & CST in terms of
24886 get_pointer_alignment_1.
24887 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
24888 Make sure to build the alignment test on a SSA name without
24889 final alignment info valid only after the prologue.
24890
24891 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
24892
24893 * config/cris/cris.md ("epilogue"): Remove condition.
24894 ("prologue"): Ditto.
24895
24896 2015-07-02 Richard Biener <rguenther@suse.de>
24897
24898 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
24899 parameter to record a condition that is false.
24900 (record_conditions): When recording an extra NE_EXPR that is
24901 true also record a EQ_EXPR that is false.
24902
24903 2015-07-02 Bin Cheng <bin.cheng@arm.com>
24904
24905 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
24906 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
24907 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
24908 (set_iv, find_interesting_uses_address, add_candidate_1): New
24909 argument to alloc_iv.
24910 (find_interesting_uses_op, find_interesting_uses_cond): Don't
24911 duplicate struct iv.
24912 (free_loop_data): Don't free struct iv explicitly.
24913 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
24914
24915 2015-07-01 DJ Delorie <dj@redhat.com>
24916
24917 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
24918 (LIB_SPEC): Add.
24919 (SUPPORTS_DISCRIMINATOR): Define.
24920
24921 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
24922
24923 PR bootstrap/66685
24924 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
24925 there are no CALLs in the same pattern.
24926
24927 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
24928
24929 PR rtl-optimization/61047
24930 * rtlanal.c (get_initial_register_offset): New function.
24931 (rtx_addr_can_trap_p_1): Check offsets of stack references.
24932
24933 2015-07-01 Richard Biener <rguenther@suse.de>
24934
24935 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
24936 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
24937 ~X CMP C -> X CMP' ~C to ...
24938 * match.pd: ... patterns here.
24939
24940 2015-07-01 Nick Clifton <nickc@redhat.com>
24941
24942 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
24943 a 16-bit value into a 20-bit memory slot.
24944
24945 2015-07-01 Jiong Wang <jiong.wang@arm.com>
24946
24947 * doc/sourcebuild.texi (AArch64-specific attributes): Document
24948 "aarch64_tiny", "aarch64_small", "aarch64_large",
24949 "aarch64_little_endian", "aarch64_big_endian".
24950
24951 2015-07-01 Jiong Wang <jiong.wang@arm.com>
24952
24953 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
24954 Document "aarch64_small_fpic".
24955
24956 2015-07-01 Jiong Wang <jiong.wang@arm.com>
24957
24958 * configure.ac: Add check for aarch64 assembler -fpic relocation
24959 modifier support.
24960 * configure: Regenerate.
24961 * config.in: Regenerate.
24962 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
24963 to -fPIC if not support of -fpic relocation modifier in assembler.
24964
24965 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
24966
24967 PR bootstrap/66685
24968 * rtl.c (classify_insn): Handle returns in PARALLELs.
24969
24970 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
24971
24972 PR middle-end/66633
24973 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
24974 to true if the function is nested and if not optimizing.
24975 (convert_local_omp_clauses): Initialize need_frame to true if the
24976 function contains nested functions and if not optimizing.
24977
24978 2015-07-01 Richard Biener <rguenther@suse.de>
24979
24980 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
24981 (X & Y) ^ Y -> ~X & Y transforms to ...
24982 * match.pd: ... here.
24983
24984 2015-07-01 Richard Biener <rguenther@suse.de>
24985
24986 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
24987 of converts to avoid uninteresting noise from the conversion
24988 simplifying patterns.
24989
24990 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
24991
24992 * config/c6x/c6x.c (try_rename_operands): Do not depend on
24993 gcc_assert evaluating its argument for side-effect.
24994
24995 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
24996
24997 PR target/64833
24998 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
24999 flag_pic is set.
25000
25001 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
25002
25003 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
25004 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
25005 (hash_scc): Add this_ref_p and ref_p parameters and pass them
25006 to the inner DFS walk.
25007
25008 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25009
25010 * target-insns.def (jump): New targetm instruction pattern.
25011 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
25012 instead of gen_jump.
25013 (fix_up_crossing_landing_pad): Likewise.
25014 (add_labels_and_missing_jumps): Likewise.
25015 (fix_crossing_conditional_branches): Likewise.
25016 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
25017 (force_nonfallthru_and_redirect): Likewise.
25018 * cse.c (cse_insn): Likewise.
25019 * expmed.c (expand_divmod): Likewise.
25020 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
25021 * haifa-sched.c (init_before_recovery): Likewise.
25022 (sched_create_recovery_edges): Likewise.
25023 * ifcvt.c (find_cond_trap): Likewise.
25024 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
25025 (expand_float, expand_fix): Likewise.
25026 * stmt.c (emit_jump): Likewise.
25027
25028 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25029
25030 * defaults.h (HAVE_load_multiple, gen_load_multiple)
25031 (HAVE_store_multiple, gen_store_multiple): Delete.
25032 * target-insns.def (load_multiple, store_multiple): New targetm
25033 instruction patterns.
25034 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
25035 of HAVE_*/gen_* interface.
25036
25037 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25038
25039 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
25040 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
25041 (gen_mem_signal_fence): Delete.
25042 * target-insns.def (mem_signal_fence, mem_thread_fence)
25043 (memory_barrier): New targetm instruction patterns.
25044 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
25045 interface.
25046 (expand_mem_signal_fence): Likewise.
25047
25048 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25049
25050 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
25051 * target-insns.def (epilogue, prologue, sibcall_prologue): New
25052 targetm instruction patterns.
25053 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
25054 interface.
25055 * calls.c (expand_call): Likewise.
25056 * cfgrtl.c (cfg_layout_finalize): Likewise.
25057 * df-scan.c (df_get_entry_block_def_set): Likewise.
25058 (df_get_exit_block_use_set): Likewise.
25059 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
25060 * final.c (final_start_function): Likewise.
25061 * function.c (thread_prologue_and_epilogue_insns): Likewise.
25062 (reposition_prologue_and_epilogue_notes): Likewise.
25063 * reorg.c (find_end_label): Likewise.
25064 * toplev.c (process_options): Likewise.
25065
25066 2015-06-30 David Malcolm <dmalcolm@redhat.com>
25067
25068 * typed-splay-tree.h: New file.
25069
25070 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
25071
25072 PR debug/66691
25073 * lra-int.h (lra_substitute_pseudo): Add a parameter.
25074 (lra_substitute_pseudo_within_insn): Ditto.
25075 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
25076 of constant.
25077 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
25078 to lra_substitute_pseudo.
25079 * lra-lives.c (process_bb_lives): Add an argument to
25080 lra_substitute_pseudo_within_insn call.
25081 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
25082 argument to lra_substitute_pseudo and
25083 lra_substitute_pseudo_within_insn calls.
25084 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
25085
25086 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
25087
25088 * configure: Regenerated.
25089
25090 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
25091
25092 * config.gcc: Support i[34567]86-*-elfiamcu target.
25093 * config/i386/iamcu.h: New.
25094 * config/i386/i386.opt: Add -miamcu.
25095 * doc/invoke.texi: Document -miamcu.
25096 * common/config/i386/i386-common.c (ix86_handle_option): Turn
25097 off x87/MMX/SSE/AVX codegen for -miamcu.
25098 * config/i386/i386-c.c (ix86_target_macros_internal): Define
25099 __iamcu/__iamcu__ for -miamcu.
25100 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
25101 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
25102 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
25103 * config/i386/i386.c (ix86_option_override_internal): Ignore and
25104 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
25105 MCU by default. Default long double to 64-bit for Intel MCU.
25106 Turn on -freg-struct-return for Intel MCU. Issue an error when
25107 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
25108 AVX is turned on.
25109 (function_arg_advance_32): Pass value whose size is no larger
25110 than 8 bytes in registers for Intel MCU.
25111 (function_arg_32): Likewise.
25112 (ix86_return_in_memory): Return value whose size is no larger
25113 than 8 bytes in registers for Intel MCU.
25114 (iamcu_alignment): New function.
25115 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
25116 true.
25117 (ix86_local_alignment): Don't increase alignment for Intel MCU.
25118 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
25119 true.
25120
25121 2015-06-30 Marek Polacek <polacek@redhat.com>
25122
25123 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
25124 both operands of the resulting expression.
25125
25126 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
25127 the final expression with the operand's type and then convert
25128 it to the type of the expression.
25129
25130 2015-06-30 Richard Biener <rguenther@suse.de>
25131
25132 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
25133 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
25134 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
25135 * match.pd: ... to patterns here.
25136
25137 2015-06-30 Richard Biener <rguenther@suse.de>
25138
25139 PR tree-optimization/66704
25140 * tree-vect-data-refs.c (vect_setup_realignment): Use
25141 make_ssa_name for non-SSA name source.
25142
25143 2015-06-30 Jakub Jelinek <jakub@redhat.com>
25144
25145 PR middle-end/66702
25146 * omp-low.c (simd_clone_adjust): Handle addressable linear
25147 or uniform parameters or non-gimple type uniform parameters.
25148
25149 2015-06-30 Richard Biener <rguenther@suse.de>
25150
25151 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
25152 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
25153 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
25154 * match.pd: ... here.
25155 Add a few cases of A - B -> A + (-B) when B "easily" negates.
25156 Move (x & y) | x -> x and friends before
25157 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
25158
25159 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
25160
25161 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
25162 -mfix-ut699 is not specified.
25163 (leon3_load): Rename into...
25164 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
25165 is specified.
25166
25167 2015-06-30 Marek Polacek <polacek@redhat.com>
25168
25169 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
25170 * match.pd: ... here.
25171
25172 2015-06-30 Richard Biener <rguenther@suse.de>
25173
25174 * target-insns.def (canonicalize_funcptr_for_compare): Add.
25175 * fold-const.c (build_range_check): Replace uses of
25176 HAVE_canonicalize_funcptr_for_compare.
25177 (fold_widened_comparison): Likewise.
25178 (fold_sign_changed_comparison): Likewise.
25179 * dojump.c: Include "target.h".
25180 (do_compare_and_jump): Replace uses of
25181 HAVE_canonicalize_funcptr_for_compare and
25182 gen_canonicalize_funcptr_for_compare.
25183 * expr.c (do_store_flag): Likewise.
25184
25185 2015-06-30 Tom de Vries <tom@codesourcery.com>
25186
25187 PR tree-optimization/66652
25188 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
25189 max_loop_iterations to determine if nit + 1 overflows.
25190
25191 2015-06-30 Richard Biener <rguenther@suse.de>
25192
25193 * tree-vrp.c (register_edge_assert_for_2): Also register
25194 asserts for dominating conversion results.
25195
25196 2015-06-30 Bin Cheng <bin.cheng@arm.com>
25197
25198 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
25199 field in struct iv.
25200
25201 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
25202
25203 PR target/66509
25204 * configure.ac: Fix filds and fildq test for 64-bit.
25205 * configure: Regenerated.
25206
25207 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
25208
25209 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
25210 (nvptx_reorg): Here. Keep the non-subreg pieces.
25211
25212 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
25213
25214 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
25215 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
25216
25217 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
25218
25219 * config/i386/i386.md (*jcc_1): Use %! in asm template.
25220 Set attribute "length_nobnd" instead of "length".
25221 (*jcc_2): Ditto.
25222 (jump): Ditto.
25223 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
25224
25225 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
25226
25227 * config/nios2/nios2.c (nios2_delegitimize_address): Make
25228 assert less restrictive.
25229
25230 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
25231
25232 PR fortran/66605
25233 * cgraphunit.c (cgraph_node::finalize_function): Do not call
25234 do_warn_unused_parameter.
25235 * function.c (do_warn_unused_parameter): Move from here.
25236 * function.h (do_warn_unused_parameter): Do not declare.
25237
25238 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25239
25240 PR target/65697
25241 * gcc.target/arm/armv-sync-comp-swap.c: New.
25242 * gcc.target/arm/armv-sync-op-acquire.c: New.
25243 * gcc.target/arm/armv-sync-op-full.c: New.
25244 * gcc.target/arm/armv-sync-op-release.c: New.
25245
25246 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25247
25248 PR target/65697
25249 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
25250 initial acquire barrier with final barrier.
25251
25252 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25253
25254 PR target/65697
25255 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
25256 initial acquire barrier with final barrier.
25257
25258 2015-06-29 Richard Henderson <rth@redhat.com>
25259
25260 * config/i386/constraints.md (Bf): New constraint.
25261 * config/i386/i386-c.c (ix86_target_macros): Define
25262 __GCC_ASM_FLAG_OUTPUTS__.
25263 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
25264 as flags outputs.
25265 * doc/extend.texi (FlagOutputOperands): Document them.
25266
25267 2015-06-29 Jiong Wang <jiong.wang@arm.com>
25268
25269 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
25270 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
25271 unspec name.
25272 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
25273 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
25274 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
25275 (aarch64_symbol_context): Ditto.
25276 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
25277 and use new pattern name.
25278 (aarch64_expand_mov_immediate): Ditto.
25279 (aarch64_print_operand): Ditto.
25280 (aarch64_classify_tls_symbol): Ditto.
25281
25282 2015-06-29 Marek Polacek <polacek@redhat.com>
25283 Marc Glisse <marc.glisse@inria.fr>
25284
25285 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
25286 * match.pd: ... pattern here.
25287
25288 2015-06-29 Tom de Vries <tom@codesourcery.com>
25289
25290 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
25291 function structure.
25292
25293 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25294
25295 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
25296 feature description, split out the native option, add a link to
25297 the feature documentation, rearrange and slightly rewrite text.
25298 (Aarch64 options, -mcpu): Likewise.
25299 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
25300 +rdma implies Adv. SIMD.
25301
25302 2015-06-29 Marek Polacek <polacek@redhat.com>
25303
25304 PR c/66322
25305 * function.c (stack_protect_epilogue): Remove a cast to int.
25306 * doc/invoke.texi: Update -Wswitch-bool description.
25307
25308 2015-06-29 Richard Biener <rguenther@suse.de>
25309
25310 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
25311 * fold-const.c (fold_binary_loc): Move &A - &B simplification
25312 via ptr_difference_const ...
25313 * match.pd: ... here.
25314 When matching (X ^ Y) == Y also match with swapped operands.
25315
25316 2015-06-29 Richard Biener <rguenther@suse.de>
25317
25318 * lto-streamer.h (LTO_major_version): Bump to 5.
25319
25320 2015-06-29 Richard Biener <rguenther@suse.de>
25321
25322 PR tree-optimization/66677
25323 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
25324 STMT_VINFO_VEC_STMT clobbering less strict.
25325
25326 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
25327
25328 PR middle-end/64130
25329 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
25330 division, compute max and min when value ranges for dividend and
25331 divisor are available.
25332
25333 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
25334 Sandra Loosemore <sandra@codesourcery.com>
25335
25336 * regrename.h (regrename_do_replace): Change to return bool.
25337 * regrename.c (rename_chains): Check return value of
25338 regname_do_replace.
25339 (regrename_do_replace): Re-validate the modified insns and
25340 return bool status.
25341 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
25342 Update to match rename_chains changes.
25343 * config/c6x/c6x.c (try_rename_operands): Assert that
25344 regrename_do_replace returns true.
25345
25346 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
25347
25348 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
25349 operand 2 here. Use copy_addr_to_reg to copy non-index
25350 register operand 2 to a temporary.
25351 (<mode>_stx): Ditto for operand 1.
25352 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
25353 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
25354 (ix86_store_bounds): Ditto.
25355
25356 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
25357
25358 * print-tree.c (print_node) [TREE_VEC]: Print its length.
25359
25360 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
25361
25362 * gimple.c (gimple_call_set_fndecl): Remove.
25363 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
25364 build1_loc directly instead of build_fold_addr_expr_loc.
25365
25366 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
25367
25368 * hash-map.h (hash_map::traverse): Use the definition of the
25369 Key typedef rather than the typedef itself.
25370
25371 2015-06-26 Martin Jambor <mjambor@suse.cz>
25372
25373 PR debug/66301
25374 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
25375 NULL instead of calling dump_enabled_p.
25376
25377 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
25378
25379 * config/aarch64/aarch64.opt: (override): New.
25380 * doc/invoke.texi (override): Document.
25381 * config/aarch64/aarch64.c (aarch64_flag_desc): New
25382 (aarch64_fusible_pairs): Likewise.
25383 (aarch64_tuning_flags): Likewise.
25384 (aarch64_tuning_override_function): Likewise.
25385 (aarch64_tuning_override_functions): Likewise.
25386 (aarch64_parse_one_option_token): Likewise.
25387 (aarch64_parse_boolean_options): Likewise.
25388 (aarch64_parse_fuse_string): Likewise.
25389 (aarch64_parse_tune_string): Likewise.
25390 (aarch64_parse_one_override_token): Likewise.
25391 (aarch64_parse_override_string): Likewise.
25392 (aarch64_override_options): Parse the -override string if it
25393 is present.
25394
25395 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
25396
25397 * config/aarch64/aarch64-protos.h (tune_params): Remove
25398 const from members.
25399 (aarch64_tune_params): Remove const, change to no longer be
25400 a pointer.
25401 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
25402 change to no longer be a pointer, initialize to generic_tunings.
25403 (aarch64_min_divisions_for_recip_mul): Change dereference of
25404 aarch64_tune_params to member access.
25405 (aarch64_reassociation_width): Likewise.
25406 (aarch64_rtx_mult_cost): Likewise.
25407 (aarch64_address_cost): Likewise.
25408 (aarch64_branch_cost): Likewise.
25409 (aarch64_rtx_costs): Likewise.
25410 (aarch64_register_move_cost): Likewise.
25411 (aarch64_memory_move_cost): Likewise.
25412 (aarch64_sched_issue_rate): Likewise.
25413 (aarch64_builtin_vectorization_cost): Likewise.
25414 (aarch64_override_options): Take a copy of the selected tuning
25415 struct in to aarch64_tune_params, rather than just setting
25416 a pointer, change dereferences of aarch64_tune_params to member
25417 accesses.
25418 (aarch64_override_options_after_change): Change dereferences of
25419 aarch64_tune_params to member access.
25420 (aarch64_macro_fusion_p): Likewise.
25421 (aarch_macro_fusion_pair_p): Likewise.
25422 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
25423
25424 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
25425
25426 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
25427 (aarch64_tune_flags): Likewise.
25428 (AARCH64_TUNE_FMA_STEERING): Likewise.
25429 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
25430 to AARCH64_FL_USE_FMA_STEERING_PASS.
25431 (cortex-a57.cortex-a53): Likewise.
25432 (cortex-a72): Use cortexa72_tunings.
25433 (cortex-a72.cortex-a53): Likewise.
25434 (exynos-m1): Likewise.
25435 * config/aarch64/aarch64-protos.h (tune_params): Add
25436 a field: extra_tuning_flags.
25437 * config/aarch64/aarch64-tuning-flags.def: New.
25438 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
25439 (aarch64_extra_tuning_flags): Likewise.
25440 (aarch64_tune_params): Declare here.
25441 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
25442 (cortexa53_tunings): Likewise.
25443 (cortexa57_tunings): Likewise.
25444 (thunderx_tunings): Likewise.
25445 (xgene1_tunings): Likewise.
25446 (cortexa72_tunings): New.
25447 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
25448 (gate): Check against aarch64_tune_params.
25449 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
25450 aarch64-protos.h.
25451
25452 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
25453
25454 * config/aarch64/aarch64-fusion-pairs.def: New.
25455 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
25456 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
25457 aarch64_fusion_pairs.
25458 (AARCH64_FUSE_MOV_MOVK): Likewise.
25459 (AARCH64_FUSE_ADRP_ADD): Likewise.
25460 (AARCH64_FUSE_MOVK_MOVK): Likewise.
25461 (AARCH64_FUSE_ADRP_LDR): Likewise.
25462 (AARCH64_FUSE_CMP_BRANCH): Likewise.
25463
25464 2015-06-26 Jiong Wang <jiong.wang@arm.com>
25465
25466 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
25467 SYMBOL_SMALL_GOT_28K.
25468 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
25469 relocation modifiers.
25470 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
25471 (ldr_got_small_28k_<mode>): New.
25472 (ldr_got_small_28k_sidi): New.
25473 * config/aarch64/iterators.md (got_modifier): New mode iterator.
25474 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
25475 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
25476 SYMBOL_SMALL_GOT_28K.
25477 (aarch64_rtx_costs): Add costs for new instruction sequences.
25478 (initialize_aarch64_code_model): Initialize new model.
25479 (aarch64_classify_symbol): Recognize new model and new symbol classification.
25480 (aarch64_asm_preferred_eh_data_format): Support new model.
25481 (aarch64_load_symref_appropriately): Generate new instruction
25482 sequences for -fpic.
25483 (TARGET_USE_PSEUDO_PIC_REG): New definition.
25484 (aarch64_use_pseudo_pic_reg): New function.
25485
25486 2015-06-26 Jiong Wang <jiong.wang@arm.com>
25487
25488 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
25489 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
25490 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
25491 (aarch64_expand_mov_immediate): Ditto.
25492 (aarch64_print_operand): Ditto.
25493 (aarch64_classify_symbol): Ditto.
25494
25495 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
25496
25497 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
25498
25499 2015-06-26 Bin Cheng <bin.cheng@arm.com>
25500
25501 PR bootstrap/66638
25502 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
25503 assertion failed. Remove assertion itself.
25504
25505 2015-06-26 Richard Biener <rguenther@suse.de>
25506
25507 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
25508 and -A CMP CST -> A CMP -CST which is redundant with a pattern
25509 in match.pd.
25510 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
25511 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
25512 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
25513 * match.pd: ... patterns here.
25514
25515 2015-06-26 Marek Polacek <polacek@redhat.com>
25516
25517 * match.pd ((x | y) & ~(x & y) -> x ^ y,
25518 (x | y) & (~x ^ y) -> x & y): New patterns.
25519
25520 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
25521
25522 * rtl.h (emit): Add an optional boolean parameter to control
25523 whether barriers are emitted.
25524 * emit-rtl.c (emit): Likewise.
25525 * gensupport.c (get_emit_function): Return null rather than "emit".
25526 * genemit.c (gen_emit_seq): Handle the null return value.
25527 Don't emit barriers after the final instruction in the sequence.
25528 * gentarget-def.c (main): Don't emit barriers after the instruction.
25529
25530 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25531
25532 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
25533 TARGET_UNIFIED_ASM.
25534
25535 2015-06-26 Richard Biener <rguenther@suse.de>
25536
25537 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
25538
25539 2015-06-26 Richard Biener <rguenther@suse.de>
25540
25541 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
25542 irrespective on whether the inner operation has a single use
25543 of both off are constant.
25544
25545 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
25546 Segher Boessenkool <segher@kernel.crashing.org>
25547
25548 PR target/66412
25549 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
25550 before doing PUT_MODE or PUT_CODE on operands to avoid
25551 in-place RTX modification.
25552
25553 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
25554
25555 * gentarget-def.c (def_target_insn): Cast return of strtol to
25556 unsigned int.
25557
25558 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
25559
25560 * gimple.h (gimple_call_set_fn): Move inline function.
25561 * gimple.c (gimple_call_set_fn): Relocate here.
25562
25563 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
25564
25565 PR target/65979
25566 PR target/66611
25567 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
25568 the replacement insn will work.
25569
25570 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
25571
25572 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
25573 by default.
25574
25575 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
25576
25577 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
25578 * cgraph.h: Include ipa-ref.h and plugin-api.h.
25579 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
25580 (symtab_node::address_can_be_compared_p): Move function.
25581 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
25582 definition here.
25583 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
25584 * auto-profile.c: Likewise.
25585 * bb-reorder.c: Likewise.
25586 * builtins.c: Likewise.
25587 * calls.c: Likewise.
25588 * cfgexpand.c: Likewise.
25589 * cgraphbuild.c: Likewise.
25590 * cgraphclones.c: Likewise.
25591 * cgraphunit.c: Likewise.
25592 * combine.c: Likewise.
25593 * coverage.c: Likewise.
25594 * data-streamer-in.c: Likewise.
25595 * data-streamer-out.c: Likewise.
25596 * data-streamer.c: Likewise.
25597 * dbxout.c: Likewise.
25598 * dwarf2out.c: Likewise.
25599 * except.c: Likewise.
25600 * expr.c: Likewise.
25601 * final.c: Likewise.
25602 * fold-const.c: Likewise.
25603 * ggc-page.c: Likewise.
25604 * gimple-fold.c: Likewise.
25605 * gimple-iterator.c: Likewise.
25606 * gimple-pretty-print.c: Likewise.
25607 * gimple-streamer-in.c: Likewise.
25608 * gimple-streamer-out.c: Likewise.
25609 * gimple.c: Likewise.
25610 * gimplify.c: Likewise.
25611 * ipa-chkp.c: Likewise.
25612 * ipa-comdats.c: Likewise.
25613 * ipa-cp.c: Likewise.
25614 * ipa-devirt.c: Likewise.
25615 * ipa-icf-gimple.c: Likewise.
25616 * ipa-icf.c: Likewise.
25617 * ipa-inline-analysis.c: Likewise.
25618 * ipa-inline-transform.c: Likewise.
25619 * ipa-inline.c: Likewise.
25620 * ipa-polymorphic-call.c: Likewise.
25621 * ipa-profile.c: Likewise.
25622 * ipa-prop.c: Likewise.
25623 * ipa-pure-const.c: Likewise.
25624 * ipa-ref.c: Likewise.
25625 * ipa-reference.c: Likewise.
25626 * ipa-split.c: Likewise.
25627 * ipa-utils.c: Likewise.
25628 * ipa-visibility.c: Likewise.
25629 * ipa.c: Likewise.
25630 * langhooks.c: Likewise.
25631 * lto-cgraph.c: Likewise.
25632 * lto-compress.c: Likewise.
25633 * lto-opts.c: Likewise.
25634 * lto-section-in.c: Likewise.
25635 * lto-section-out.c: Likewise.
25636 * lto-streamer-in.c: Likewise.
25637 * lto-streamer-out.c: Likewise.
25638 * lto-streamer.c: Likewise.
25639 * omp-low.c: Likewise.
25640 * opts-global.c: Likewise.
25641 * passes.c: Likewise.
25642 * predict.c: Likewise.
25643 * print-tree.c: Likewise.
25644 * profile.c: Likewise.
25645 * ree.c: Likewise.
25646 * sanopt.c: Likewise.
25647 * stor-layout.c: Likewise.
25648 * symtab.c: Likewise.
25649 * toplev.c: Likewise.
25650 * trans-mem.c: Likewise.
25651 * tree-cfg.c: Likewise.
25652 * tree-chkp.c: Likewise.
25653 * tree-eh.c: Likewise.
25654 * tree-emutls.c: Likewise.
25655 * tree-inline.c: Likewise.
25656 * tree-nested.c: Likewise.
25657 * tree-parloops.c: Likewise.
25658 * tree-pretty-print.c: Likewise.
25659 * tree-profile.c: Likewise.
25660 * tree-sra.c: Likewise.
25661 * tree-ssa-alias.c: Likewise.
25662 * tree-ssa-live.c: Likewise.
25663 * tree-ssa-loop-ivcanon.c: Likewise.
25664 * tree-ssa-loop-ivopts.c: Likewise.
25665 * tree-ssa-pre.c: Likewise.
25666 * tree-ssa-sccvn.c: Likewise.
25667 * tree-ssa-strlen.c: Likewise.
25668 * tree-ssa-structalias.c: Likewise.
25669 * tree-streamer-in.c: Likewise.
25670 * tree-streamer-out.c: Likewise.
25671 * tree-streamer.c: Likewise.
25672 * tree-switch-conversion.c: Likewise.
25673 * tree-tailcall.c: Likewise.
25674 * tree-vect-data-refs.c: Likewise.
25675 * tree-vect-stmts.c: Likewise.
25676 * tree-vectorizer.c: Likewise.
25677 * tree.c: Likewise.
25678 * tsan.c: Likewise.
25679 * ubsan.c: Likewise.
25680 * value-prof.c: Likewise.
25681 * varasm.c: Likewise.
25682 * varpool.c: Likewise.
25683 * config/arm/arm.c: Likewise.
25684 * config/bfin/bfin.c: Likewise.
25685 * config/c6x/c6x.c: Likewise.
25686 * config/cris/cris.c: Likewise.
25687 * config/darwin-c.c: Likewise.
25688 * config/darwin.c: Likewise.
25689 * config/i386/i386.c: Likewise.
25690 * config/i386/winnt.c: Likewise.
25691 * config/microblaze/microblaze.c: Likewise.
25692 * config/mips/mips.c: Likewise.
25693 * config/rs6000/rs6000.c: Likewise.
25694 * config/rx/rx.c: Likewise.
25695 * config/s390/s390.c: Likewise.
25696 * config/tilegx/mul-tables.c: Likewise.
25697
25698 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25699
25700 * config/aarch64/aarch64.c, config/alpha/alpha.c,
25701 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
25702 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
25703 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
25704 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
25705 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
25706 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
25707 config/microblaze/microblaze.c, config/mips/mips.c,
25708 config/mmix/mmix.c, config/mn10300/mn10300.c,
25709 config/moxie/moxie.c, config/msp430/msp430.c,
25710 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
25711 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
25712 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
25713 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
25714 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
25715 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
25716 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
25717 target-def.h include.
25718 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
25719
25720 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25721
25722 * Makefile.in (TARGET_DEF): Add target-insns.def.
25723 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
25724 (build/gentarget-def.o): New rule.
25725 (genprogrtl): Add target-def.
25726 * target-insns.def, gentarget-def.c: New files.
25727 * target.def: Add targetm.have_* and targetm.gen_* hooks,
25728 based on the contents of target-insns.def.
25729 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
25730 (HAVE_return, gen_return): Delete.
25731 * target-def.h: Include insn-target-def.h.
25732 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
25733 instead of direct calls. Rely on them to do the appropriate assertions.
25734 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
25735 (convert_jumps_to_returns): Use targetm interface instead of
25736 direct calls.
25737 (thread_prologue_and_epilogue_insns): Likewise.
25738 * reorg.c (find_end_label, dbr_schedule): Likewise.
25739 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
25740 * shrink-wrap.c (convert_to_simple_return): Likewise.
25741 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
25742
25743 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25744
25745 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
25746 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
25747 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
25748 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
25749 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
25750 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
25751 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
25752 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
25753 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
25754 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
25755 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
25756 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
25757 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
25758 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
25759 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
25760 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
25761 includes to end.
25762
25763 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25764
25765 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
25766 (unbounded_int_hashmap_traits::key_type): Likewise.
25767 * hash-map.h (hash_map): Get the key type from the traits.
25768 * hash-traits.h (default_hash_traits): By default, inherit from the
25769 template parameter.
25770 * alias.c (alias_set_traits): Delete.
25771 (alias_set_entry_d::children): Use alias_set_hash as the first
25772 template parameter.
25773 (record_alias_subset): Update accordingly.
25774 * except.c (tree_hash_traits): Delete.
25775 (type_to_runtime_map): Use tree_hash as the first template parameter.
25776 (init_eh): Update accordingly.
25777 * genmatch.c (capture_id_map_hasher): Delete.
25778 (cid_map_t): Use nofree_string_hash as first template parameter.
25779 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
25780 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
25781 Use symbol_compare_hash as the first template parameter in
25782 subdivide_hash_map.
25783 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
25784 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
25785 template parameter.
25786 * passes.c (pass_registry_hasher): Delete.
25787 (name_to_pass_map): Use nofree_string_hash as the first template
25788 parameter.
25789 (register_pass_name): Update accordingly.
25790 * sanopt.c (sanopt_tree_map_traits): Delete.
25791 (sanopt_tree_triplet_map_traits): Delete.
25792 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
25793 template parameter.
25794 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
25795 the first template parameter.
25796 * sese.c (rename_map_hasher): Delete.
25797 (rename_map_type): Use tree_ssa_name_hash as the first template
25798 parameter.
25799 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
25800 (function_summary::m_map): Use map_hash as the first template
25801 parameter.
25802 (function_summary::release): Update accordingly.
25803 * tree-if-conv.c (phi_args_hash_traits): Delete.
25804 (predicate_scalar_phi): Use tree_operand_hash as the first template
25805 parameter to phi_arg_map.
25806 * tree-inline.h (dependence_hasher): Delete.
25807 (copy_body_data::dependence_map): Use dependence_hash as the first
25808 template parameter.
25809 * tree-inline.c (remap_dependence_clique): Update accordingly.
25810 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
25811 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
25812 parameter.
25813 (addr_stridxptr): Update accordingly.
25814 * value-prof.c (profile_id_traits): Delete.
25815 (cgraph_node_map): Use profile_id_hash as the first template
25816 parameter.
25817 (init_node_map): Update accordingly.
25818 * config/alpha/alpha.c (string_traits): Delete.
25819 (machine_function::links): Use nofree_string_hash as the first
25820 template parameter.
25821 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
25822 * config/m32c/m32c.c (pragma_traits): Delete.
25823 (pragma_htab): Use nofree_string_hash as the first template parameter.
25824 (m32c_note_pragma_address): Update accordingly.
25825 * config/mep/mep.c (pragma_traits): Delete.
25826 (pragma_htab): Use nofree_string_hash as the first template parameter.
25827 (mep_note_pragma_flag): Update accordingly.
25828 * config/mips/mips.c (mips16_flip_traits): Delete.
25829 (mflip_mips16_htab): Use nofree_string_hash as the first template
25830 parameter.
25831 (mflip_mips16_use_mips16_p): Update accordingly.
25832 (local_alias_traits): Delete.
25833 (mips16_local_aliases): Use nofree_string_hash as the first template
25834 parameter.
25835 (mips16_local_alias): Update accordingly.
25836
25837 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25838
25839 * hash-map-traits.h (default_hashmap_traits): Delete.
25840
25841 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25842
25843 * hash-map-traits.h (unbounded_hashmap_traits): New class.
25844 (unbounded_int_hashmap_traits): Likewise.
25845 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
25846
25847 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25848
25849 * ipa-icf.h (symbol_compare_hash): New class.
25850 (symbol_compare_hashmap_traits): Use it.
25851 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
25852 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
25853 (mem_alloc_description::reverse_mem_map_t): Remove redundant
25854 default_hashmap_traits.
25855 * sanopt.c (sanopt_tree_triplet_hash): New class.
25856 (sanopt_tree_triplet_map_traits): Use it.
25857
25858 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25859
25860 * gengtype-parse.c (require_template_declaration): Allow '+' in
25861 template parameters. Consolidate cases.
25862 * hash-traits.h (int_hash): New class.
25863 * alias.c (alias_set_hash): New structure.
25864 (alias_set_traits): Use it.
25865 * symbol-summary.h (function_summary::map_hash): New class.
25866 (function_summary::summary_hashmap_traits): Use it.
25867 * tree-inline.h (dependence_hash): New class.
25868 (dependence_hasher): Use it.
25869 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
25870 * value-prof.c (profile_id_hash): New class.
25871 (profile_id_traits): Use it.
25872
25873 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25874
25875 * config/mips/mips.c (mips16_flip_traits): Use it.
25876 (local_alias_traits, mips16_local_aliases): Convert from a map of
25877 rtxes to a map of symbol names.
25878 (mips16_local_alias): Update accordingly.
25879
25880 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25881
25882 * hash-traits.h (string_hash, nofree_string_hash): New classes.
25883 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
25884 * passes.c (pass_registry_hasher): Likewise.
25885 * config/alpha/alpha.c (string_traits): Likewise.
25886 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
25887 * config/m32c/m32c.c (pragma_traits): Likewise.
25888 * config/mep/mep.c (pragma_traits): Likewise.
25889
25890 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25891
25892 * tree-hash-traits.h (tree_hash): New class.
25893 * except.c: Include tree-hash-traits.h.
25894 (tree_hash_traits): Use tree_hash.
25895
25896 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25897
25898 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
25899 * sese.c: Include tree-hash-traits.h.
25900 (rename_map_hasher): Use tree_ssa_name_hasher.
25901
25902 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25903
25904 * tree-hash-traits.h (tree_decl_hash): New class.
25905 * tree-ssa-strlen.c: Include tree-hash-traits.h.
25906 (stridxlist_hash_traits): Use tree_decl_hash.
25907
25908 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25909
25910 * tree-hash-traits.h: New file.
25911 (tree_operand_hash): New class.
25912 * sanopt.c: Include tree-hash-traits.h.
25913 (sanopt_tree_map_traits): Use tree_operand_hash.
25914 * tree-if-conv.c: Include tree-hash-traits.h.
25915 (phi_args_hash_traits): Use tree_operand_hash.
25916 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
25917 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
25918
25919 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25920
25921 * hash-map-traits.h: Include hash-traits.h.
25922 (simple_hashmap_traits): New class.
25923 * mem-stats.h (hash_map): Change the default traits to
25924 simple_hashmap_traits<default_hash_traits<Key> >.
25925
25926 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25927
25928 * hash-table.h: Update comments.
25929
25930 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25931
25932 * hash-traits.h (default_hash_traits): New structure.
25933 * hash-set.h (default_hashset_traits): Delete.
25934 (hash_set): Use default_hash_traits<Key> instead of
25935 default_hashset_traits. Delete hash_entry type and use Key directly.
25936 * ipa-devirt.c (pair_traits): Delete.
25937 (default_hash_traits <type_pair>): Override.
25938 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
25939 (odr_types_equivalent_p, add_type_duplicate): Likewise.
25940
25941 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25942
25943 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
25944
25945 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25946
25947 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
25948 (has_is_empty, is_empty_helper): Delete.
25949 (has_mark_deleted, mark_deleted_helper): Delete.
25950 (has_mark_empty, mark_empty_helper): Delete.
25951 (hash_table::is_deleted): Call the Descriptor unconditionally.
25952 (hash_table::is_empty): Likewise.
25953 (hash_table::mark_deleted): Likewise.
25954 (hash_table::mark_empty): Likewise.
25955
25956 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25957
25958 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
25959 redundant typedefs and members.
25960 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
25961 redundant typedefs.
25962 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
25963 * ipa-devirt.c (odr_name_hasher): Likewise.
25964 (polymorphic_call_target_hasher): Likewise.
25965 * ira-costs.c (cost_classes_hasher): Likewise.
25966 * statistics.c (stats_counter_hasher): Likewise.
25967 * trans-mem.c (log_entry_hasher): Likewise.
25968 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
25969 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
25970 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
25971 * var-tracking.c (variable_hasher): Likewise.
25972 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
25973 Remove redundant typedefs and members.
25974
25975 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25976
25977 * hash-traits.h (ggc_cache_hasher): Rename to...
25978 (ggc_cache_remove): ...this and remove typedefs.
25979 (ggc_cache_ptr_hash): New class.
25980 * hash-table.h: Update commentary.
25981 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
25982 rather than ggc_cache_hasher.
25983 (const_wide_int_hasher, reg_attr_hasher): Likewise.
25984 (const_double_hasher, const_fixed_hasher): Likewise.
25985 * function.c (insn_cache_hasher): Likewise.
25986 * trans-mem.c (tm_wrapper_hasher): Likewise.
25987 * tree.h (tree_decl_map_cache_hasher): Likewise.
25988 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
25989 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
25990 * ubsan.c (tree_type_map_cache_hasher): Likewise.
25991 * varasm.c (tm_clone_hasher): Likewise.
25992 * config/i386/i386.c (dllimport_hasher): Likewise.
25993 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
25994 (tree_hasher): Likewise.
25995
25996 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25997
25998 * hash-traits.h (ggc_hasher): Rename to...
25999 (ggc_remover): ...this and remove typedefs.
26000 (ggc_cache_hasher): Update accordingly. Add typedefs.
26001 (ggc_ptr_hash): New class.
26002 * hash-table.h: Update comment.
26003 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
26004 ggc_hasher.
26005 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
26006 (tree_descriptor_hasher): Likewise.
26007 * cgraph.c (function_version_hasher): Likewise.
26008 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
26009 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
26010 (dw_loc_list_hasher, addr_hasher): Likewise.
26011 * function.h (used_type_hasher): Likewise.
26012 * function.c (temp_address_hasher): Likewise.
26013 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
26014 * libfuncs.h (libfunc_hasher): Likewise.
26015 * lto-streamer.h (decl_state_hasher): Likewise.
26016 * optabs.c (libfunc_decl_hasher): Likewise.
26017 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
26018 * varasm.c (section_hasher, object_block_hasher): Likewise.
26019 (const_rtx_desc_hasher): Likewise.
26020 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
26021 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
26022
26023 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26024
26025 * hash-traits.h (free_ptr_hash): New class.
26026 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
26027 rather than typed_free_remove. Remove redudant typedefs.
26028 (external_ref_hasher): Likewise.
26029 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
26030 (ehspec_hasher): Likewise.
26031 * ggc-common.c (saving_hasher): Likewise.
26032 * gimplify.c (gimplify_hasher): Likewise.
26033 * haifa-sched.c (delay_i2_hasher): Likewise.
26034 * loop-invariant.c (invariant_expr_hasher): Likewise.
26035 * loop-iv.c (biv_entry_hasher): Likewise.
26036 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
26037 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
26038 * tree-cfg.c (locus_discrim_hasher): Likewise.
26039 * tree-eh.c (finally_tree_hasher): Likewise.
26040 * tree-into-ssa.c (var_info_hasher): Likewise.
26041 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
26042 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
26043 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
26044 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
26045 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
26046 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
26047 (shared_bitmap_hasher): Likewise.
26048 * tree-ssa-threadupdate.c (redirection_data): Likewise.
26049 * tree-vectorizer.h (peel_info_hasher): Likewise.
26050 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
26051 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
26052
26053 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26054
26055 * hash-table.h: Update comments.
26056 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
26057 (nofree_ptr_hash): New class.
26058 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
26059 than typed_noop_remove. Remove redudant typedefs.
26060 * attribs.c (attribute_hasher): Likewise.
26061 * cfg.c (bb_copy_hasher): Likewise.
26062 * cselib.c (cselib_hasher): Likewise.
26063 * dse.c (invariant_group_base_hasher): Likewise.
26064 * dwarf2cfi.c (trace_info_hasher): Likewise.
26065 * dwarf2out.c (macinfo_entry_hasher): Likewise.
26066 (comdat_type_hasher, loc_list_hasher): Likewise.
26067 * gcse.c (pre_ldst_expr_hasher): Likewise.
26068 * genmatch.c (id_base): Likewise.
26069 * genrecog.c (test_pattern_hasher): Likewise.
26070 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
26071 * haifa-sched.c (delay_i1_hasher): Likewise.
26072 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
26073 * ipa-icf.h (congruence_class_group_hash): Likewise.
26074 * ipa-profile.c (histogram_hash): Likewise.
26075 * ira-color.c (allocno_hard_regs_hasher): Likewise.
26076 * lto-streamer.h (string_slot_hasher): Likewise.
26077 * lto-streamer.c (tree_entry_hasher): Likewise.
26078 * plugin.c (event_hasher): Likewise.
26079 * postreload-gcse.c (expr_hasher): Likewise.
26080 * store-motion.c (st_expr_hasher): Likewise.
26081 * tree-sra.c (uid_decl_hasher): Likewise.
26082 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
26083 (ssa_name_var_hash): Likewise.
26084 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
26085 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
26086 * tree-ssa-pre.c (pre_expr_d): Likewise.
26087 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
26088 * vtable-verify.h (registration_hasher): Likewise.
26089 * vtable-verify.c (vtbl_map_hasher): Likewise.
26090 * config/arm/arm.c (libcall_hasher): Likewise.
26091 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
26092 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
26093 * config/sol2.c (comdat_entry_hasher): Likewise.
26094 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
26095 (print_fold_checksum, fold_checksum_tree): Likewise.
26096 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
26097 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
26098 (fold_build_call_array_loc): Likewise.
26099 * tree-ssa-ccp.c (gimple_htab): Likewise.
26100 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
26101 rather than pointer_type.
26102
26103 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26104
26105 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
26106 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
26107
26108 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26109
26110 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
26111 (ggc_hasher::ggc_mx): Likewise.
26112 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
26113 that duplicate ggc_hasher ones.
26114
26115 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26116
26117 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
26118 (gt_cleare_cache): Check here for deleted and empty entries.
26119 Replace handle_cache_entry with a call to keep_cache_entry.
26120 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
26121 (ggc_cache_hasher::keep_cache_entry): New function.
26122 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
26123 (tm_wrapper_hasher::keep_cache_entry): New function.
26124 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
26125 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
26126 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
26127 (type_cache_hasher::keep_cache_entry): New function.
26128 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
26129 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
26130 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
26131 (tree_type_map_cache_hasher::keep_cache_entry): New function.
26132 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
26133 (tm_clone_hasher::keep_cache_entry): New function.
26134 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
26135 (dllimport_hasher::keep_cache_entry): New function.
26136
26137 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26138
26139 * hash-table.h: Include hash-traits.h.
26140 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
26141 (ggc_cache_hasher): Move to...
26142 * hash-traits.h: ...this new file.
26143
26144 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26145
26146 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
26147 struct cl_optimization.
26148 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
26149 * tree.c (make_node_stat): Allocate cl_optimization struct.
26150 (copy_node_stat): Allocate and copy cl_optimization struct.
26151
26152 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26153
26154 * function.h (struct incoming_args): Move struct.
26155 (pass_by_reference, reference_callee_copied): Remove prototypes.
26156 * emit-rtl.h (struct incoming_args): Relocate struct here.
26157 * calls.h (pass_by_reference, reference_callee_copied): Relocate
26158 prototypes here.
26159 * function.c (pass_by_reference, reference_callee_copied): Move.
26160 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
26161 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
26162 * ipa-chkp.c: Include calls.h.
26163
26164 2015-06-25 Andrew Macleod <amacleod@redhat.com>
26165
26166 * alias.h (alias_set_type): Move typedef.
26167 * coretypes.h (alias_set_type): Relocate typedef here.
26168 * rtl.h: Don't include alias.h.
26169
26170 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26171
26172 * cgraph.h (cgraph_rtl_info): Move to rtl.h
26173 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
26174 and instance.
26175 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
26176 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
26177 doesn't exist.
26178 * calls.c: Include hard-reg-set.h before rtl.h.
26179 * ira.c: Likewise.
26180
26181 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
26182 Vladimir Makarov <vmakarov@redhat.com>
26183
26184 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
26185 Add assert.
26186
26187 2015-06-25 Richard Biener <rguenther@suse.de>
26188
26189 * fold-const.c (fold_binary_loc): Move simplification of
26190 (X <<>> C1) & C2 ...
26191 * match.pd: ... here.
26192
26193 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
26194
26195 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
26196
26197 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26198
26199 * match.pd: Add patterns for vec_conds between 1 and 0.
26200
26201 2015-06-25 Richard Biener <rguenther@suse.de>
26202
26203 * tree-vect-stmts.c (vectorizable_conversion): Do not set
26204 STMT_VINFO_VEC_STMT for SLP.
26205 (vectorizable_store): Likewise.
26206 (vectorizable_load): Likewise.
26207 (vect_transform_stmt): Catch SLP vectorization clobbering
26208 STMT_VINFO_VEC_STMT.
26209
26210 2015-06-25 Richard Biener <rguenther@suse.de>
26211
26212 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
26213 dumping.
26214 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
26215 cleanup resulting dead code and parameters.
26216 (vect_transform_slp_perm_load): Adjust.
26217
26218 2015-06-25 Nick Clifton <nickc@redhat.com>
26219
26220 * config/bfin/bfin.c (bfin_expand_prologue): Set
26221 current_function_static_stack_size if flag_stack_usage_info is set.
26222 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
26223 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
26224 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
26225 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
26226
26227 2015-06-25 Tom de Vries <tom@codesourcery.com>
26228
26229 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
26230 comment that the generated IV is unsigned.
26231
26232 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26233
26234 PR target/29693
26235 * config/arm/arm.c (arm_dbx_register_number): Return
26236 DWARF_FRAME_REGISTERS by default.
26237
26238 2015-06-25 Tom de Vries <tom@codesourcery.com>
26239
26240 * dominance.c (calculate_dominance_info): Fix verify_dominators call
26241 argument. Call verify_dominator when reusing dominator info.
26242
26243 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
26244
26245 PR target/66563
26246 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
26247 an additional element of the unspec vector. Modify indices
26248 of operands.
26249 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
26250 * config/sh/sh.c (prepare_move_operands): Pass incremented
26251 const_int to gen_GOTaddr2picreg.
26252 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
26253
26254 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
26255
26256 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
26257 Condition on TARGET_FLOAT.
26258
26259 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
26260
26261 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
26262 and (no)crypto.
26263
26264 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
26265
26266 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
26267
26268 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
26269 aarch64_err_no_fpadvsimd.
26270
26271 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
26272 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
26273 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
26274 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
26275 Turn error into assert, test TARGET_FLOAT.
26276 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
26277 TARGET_FLOAT.
26278
26279 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
26280
26281 PR debug/66482
26282 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
26283
26284 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
26285
26286 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
26287
26288 2015-06-24 Renlin Li <renlin.li@arm.com>
26289
26290 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
26291 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
26292
26293 2015-06-24 Richard Biener <rguenther@suse.de>
26294
26295 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
26296 (main): Likewise.
26297 (lower_opt_convert): Support lowering of conditional view_convert.
26298 (parser::parse_operation): Likewise.
26299 (parser::parse_for): Likewise.
26300
26301 2015-06-24 Renlin Li <renlin.li@arm.com>
26302
26303 * varasm.c (emit_local): Use unsigned int for align variable.
26304
26305 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26306
26307 PR target/63408
26308 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
26309 for negative numbers.
26310
26311 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26312
26313 PR rtl-optimization/66306
26314 * reload.c (find_reloads): Swap the match_dup info for
26315 commutative operands.
26316
26317 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26318
26319 * config/s390/vx-builtins.md
26320 ("vec_scatter_element<mode>_<non_vec_int>")
26321 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
26322 attribute with bhfgq.
26323
26324 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26325
26326 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
26327
26328 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26329
26330 * config/s390/s390-builtin-types.def: Add flag to indicate the
26331 options under which the function type is needed.
26332 * config/s390/s390-builtins.def: Add flag to indicate the options
26333 under which the builtin is enabled.
26334 * config/s390/s390-builtins.h: Add flags parameter to macro
26335 definitions.
26336 (bflags_for_builtin): New function.
26337 (flags_for_builtin): Renamed to ...
26338 (opflags_for_builtin): ... this.
26339 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
26340 flags_for_builtin to bflags_for_builtin and
26341 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
26342 * config/s390/s390.c: Add initialization of bflags_builtin and
26343 opflags_builtin arrays.
26344 Remove code for flags_builtin.
26345 (s390_init_builtins): Only create builtin function types if one of
26346 their flags is active.
26347 Only create builtins if all of their flags are active.
26348 (s390_expand_builtin): Rename flags_for_builtin to
26349 opflags_for_builtin.
26350
26351 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26352
26353 * config/s390/vecintrin.h: Remove internal builtins.
26354
26355 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26356
26357 * config/s390/s390.c (s390_secondary_reload): Fix check for
26358 GENERAL_REGS register class.
26359
26360 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26361
26362 * config/s390/s390.c (s390_support_vector_misalignment): Call
26363 default implementation for !TARGET_VX.
26364
26365 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26366
26367 * config/s390/s390.c (s390_legitimate_constant_p): Add
26368 TARGET_VX check.
26369
26370 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26371
26372 * config/s390/s390.c (s390_vector_abi): New variable definition.
26373 (s390_check_type_for_vector_abi): New function.
26374 (TARGET_ASM_FILE_END): New macro definition.
26375 (s390_asm_file_end): New function.
26376 (s390_function_arg): Call s390_check_type_for_vector_abi.
26377 (s390_gimplify_va_arg): Likewise.
26378 * configure: Regenerate.
26379 * configure.ac: Check for .gnu_attribute Binutils feature.
26380
26381 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
26382
26383 PR target/65803
26384 * config/bfin/bfin.c (hwloop_optimize): Initialize
26385 JUMP_LABEL for newly created jump.
26386
26387 2015-06-23 Tristan Gingold <gingold@adacore.com>
26388
26389 * collect-utils.c (collect_wait): Unlink the response file here
26390 instead of...
26391 (do_wait): ...here.
26392 (utils_cleanup): ...and here.
26393
26394 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
26395
26396 * df-scan.c: Don't include target-def.h.
26397 * targhooks.c: Likewise.
26398 * config/arm/arm-c.c: Likewise.
26399 * config/i386/i386-c.c: Likewise.
26400 * config/nds32/nds32-cost.c: Likewise.
26401 * config/nds32/nds32-fp-as-gp.c: Likewise.
26402 * config/nds32/nds32-intrinsic.c: Likewise.
26403 * config/nds32/nds32-isr.c: Likewise.
26404 * config/nds32/nds32-md-auxiliary.c: Likewise.
26405 * config/nds32/nds32-memory-manipulation.c: Likewise.
26406 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26407 * config/nds32/nds32-predicates.c: Likewise.
26408
26409 2015-06-23 Richard Biener <rguenther@suse.de>
26410
26411 PR tree-optimization/66636
26412 * tree-vect-stmts.c (vectorizable_store): Properly compute the
26413 def type for further defs for strided stores.
26414
26415 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
26416
26417 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
26418 conditional selects.
26419 (setcc_int<mode>, setcc_float<mode>): Reformat.
26420
26421 2015-06-23 Marek Polacek <polacek@redhat.com>
26422
26423 * match.pd ((x + y) - (x | y) -> x & y,
26424 (x + y) - (x & y) -> x | y): New patterns.
26425
26426 2015-06-23 Ludovic Courtès <ludo@gnu.org>
26427
26428 PR 65711
26429 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
26430 '-dynamic-linker' within %{!shared: ...}.
26431
26432 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
26433
26434 PR target/66560
26435 * config/i386/predicates.md (addsub_vm_operator): New predicate.
26436 (addsub_vs_operator): Ditto.
26437 (addsub_vs_parallel): Ditto.
26438 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
26439 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
26440 Put minus RTX before plus and adjust vec_merge selector.
26441 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
26442 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
26443 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
26444 (addsub vec_merge splitters): New combiner splitters.
26445 (addsub vec_select/vec_concat splitters): Ditto.
26446
26447 2015-06-23 Bin Cheng <bin.cheng@arm.com>
26448
26449 PR tree-optimization/66449
26450 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
26451 POINTER_PLUS_EXPR for pointers.
26452
26453 2015-06-23 Alan Modra <amodra@gmail.com>
26454
26455 * rtlanal.c (commutative_operand_precedence): Correct comments.
26456 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
26457 declaration. Return an int. Distinguish REG,REG return from
26458 others.
26459 (struct simplify_plus_minus_op_data): Make local to function.
26460 (simplify_plus_minus): Don't set canonicalized if merely sorting
26461 registers. Avoid packing ops if nothing changes. White space fixes.
26462
26463 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
26464
26465 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
26466 -fdump-ada-spec is passed but not if -fsyntax-only is.
26467
26468 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
26469
26470 PR bootstrap/63740
26471 * lra-lives.c (process_bb_lives): Check insn copying the same
26472 reload pseudo and don't create a copy for it.
26473
26474 2015-06-22 Tom de Vries <tom@codesourcery.com>
26475
26476 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
26477 for cond_stmt.
26478
26479 2015-06-22 Tom de Vries <tom@codesourcery.com>
26480
26481 * builtins.def (DEF_GOMP_BUILTIN): Test
26482 'flag_tree_parallelize_loops > 1' instead of
26483 'flag_tree_parallelize_loops'. Test flag_cilkplus.
26484
26485 2015-06-22 Tom de Vries <tom@codesourcery.com>
26486
26487 * dominance.c (calculate_dominance_info): Verify dominators if
26488 early-out.
26489
26490 2015-06-22 Marek Polacek <polacek@redhat.com>
26491
26492 * match.pd ((x ^ y) ^ (x | y) -> x & y,
26493 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
26494 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
26495 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
26496
26497 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
26498
26499 PR target/65871
26500 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
26501 cost of embedded comparison.
26502
26503 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26504
26505 PR target/65914
26506 * config/rs6000/predicates.md (altivec_register_operand): Permit
26507 virtual stack registers.
26508 (vsx_register_operand): Likewise.
26509 (vfloat_operand): Likewise.
26510 (vint_operand): Likewise.
26511 (vlogical_operand): Likewise.
26512
26513 2015-06-22 Richard Biener <rguenther@suse.de>
26514
26515 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
26516 and single_scalar_iteration_cost members.
26517 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
26518 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
26519 (vect_get_single_scalar_iteration_cost): Remove.
26520 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
26521 Use LOOP_VINFO_SCALAR_ITERATION_COST.
26522 * tree-vect-loop.c (destroy_loop_vec_info): Free
26523 scalar_cost_vec.
26524 (vect_get_single_scalar_iteration_cost): Compute result into
26525 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
26526 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
26527 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
26528 (vect_estimate_min_profitable_iters): Use them.
26529
26530 2015-06-22 Christian Bruel <christian.bruel@st.com>
26531
26532 PR target/52144
26533 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
26534 (TARGET_INSERT_ATTRIBUTES): Define.
26535 (thumb_flipper): New var.
26536 * config/arm/arm.opt (-mflip-thumb): New switch.
26537
26538 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
26539 Martin Liska <mliska@suse.cz>
26540
26541 PR ipa/65908
26542 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
26543 construction of arg_types.
26544 (sem_function::sem_function): Likewise.
26545 (sem_function::~sem_function): Remove destruction of arg_types.
26546 (sem_function::compatible_parm_types_p): New function.
26547 (sem_function::equals_wpa): Reorg matching of return values
26548 and parameter types.
26549 (sem_function::equals_private): Reorg mathcing of argument types.
26550 (sem_function::parse_tree_args): Remove.
26551 * ipa-icf.h (init_wpa): Do not call it.
26552 (parse_tree_args): Remove.
26553 (compatible_parm_types_p): Declare.
26554 (result_type): Remove.
26555 (arg_types): Remove.
26556
26557 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
26558
26559 PR ipa/66351
26560 * ipa-polymorphic-call.c
26561 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
26562 initializing alias oracle; fix formating; set base_alias_set if it
26563 is known.
26564
26565 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
26566
26567 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
26568 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
26569 (find_inc): Likewise.
26570 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
26571 swapping.
26572 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
26573 * df-scan.c (df_swap_refs): Remove.
26574 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
26575 * dominance.c (link_roots): Use std::swap instead of manually swapping.
26576 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
26577 * fold-const.c (fold_relational_const): Likewise.
26578 * genattrtab.c (simplify_test_exp): Likewise.
26579 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
26580 gimple_simplify): Likewise.
26581 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
26582 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
26583 * ipa-devirt.c (add_type_duplicate): Likewise.
26584 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
26585 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
26586 * lra.c (lra_create_copy): Likewise.
26587 * lto-streamer-out.c (DFS::DFS): Likewise.
26588 * modulo-sched.c (get_sched_window): Likewise.
26589 * omega.c (omega_pretty_print_problem): Likewise.
26590 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
26591 * reload1.c (reloads_unique_chain_p): Likewise.
26592 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
26593 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
26594 use std::swap.
26595 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
26596 manually swapping.
26597 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
26598 predicate_mem_writes): Likewise.
26599 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
26600 * tree-predcom.c (combine_chains): Likewise.
26601 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
26602 refs_may_alias_p_1): Likewise.
26603 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
26604 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
26605 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
26606 number_of_iterations_cond): Likewise.
26607 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
26608 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
26609 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
26610 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
26611 * tree-vrp.c (extract_range_from_binary_expr_1,
26612 extract_range_from_unary_expr_1): Likewise.
26613
26614 2015-06-20 Marek Polacek <polacek@redhat.com>
26615
26616 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
26617
26618 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
26619
26620 PR target/66591
26621 * config/sh/sh.c (prepare_move_operands): Replace subreg
26622 index term with R0 for base and index addressing.
26623
26624 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
26625
26626 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
26627 op1 is an fp zero.
26628 (movsf_aarch64): Change condition from register_operand to
26629 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
26630 load1. Change type for alternative 7 to store1.
26631 (movdf_aarch64): Likewise.
26632
26633 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
26634
26635 * config/vax/vax.md: Adjust sign/zero extend patterns to
26636 handle SUBREGs in operands[1].
26637
26638 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26639
26640 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
26641 of manually swapping.
26642 (expand_vec_perm_interleave2): Likewise.
26643
26644 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
26645
26646 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
26647 reuse bounds created for abnormal ssa names.
26648
26649 2015-06-19 Jakub Jelinek <jakub@redhat.com>
26650
26651 * config/nvptx/nvptx.md (allocate_stack): Rename to...
26652 (allocate_stack_<mode>): ... this, and add :P on both
26653 match_operand and unspec.
26654 (allocate_stack): New expander.
26655
26656 2015-06-19 Christian Bruel <christian.bruel@st.com>
26657
26658 PR target/66541
26659 PR target/52144
26660 * config/arm/arm.c (arm_set_current_function): Handle
26661 explicit default options.
26662
26663 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
26664
26665 * config/i386/i386.md (*movsicc_noc_zext): New insn.
26666 (zero-extended cmove with mem peephole2): New pattern.
26667 (cmove with mem peephole2): Merge patterns.
26668
26669 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
26670
26671 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
26672
26673 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
26674
26675 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
26676 * config/mips/mips.md (*madd4<mode>): Ditto.
26677 (*nmadd3<mode>) Ditto.
26678 (*nmadd4<mode>_fastmath): Ditto.
26679 (*nmadd3<mode>_fastmath): Ditto.
26680 (*nmsub4<mode>): Ditto.
26681 (*nmsub3<mode>): Ditto.
26682 (*nmsub4<mode>_fastmath): Ditto.
26683 (*nmsub3<mode>_fastmath): Ditto.
26684
26685 2015-06-18 Michael Matz <matz@suse.de>
26686
26687 PR middle-end/66253
26688 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
26689 grouped strided stores.
26690 (vectorizable_load): Don't use the DR from first_stmt in
26691 the non-SLP grouped strided case.
26692
26693 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
26694
26695 PR target/66569
26696 * function.c (assign_bounds): Add arguments assign_regs,
26697 assign_special, assign_bt.
26698 (assign_parms): For vararg functions handle bounds in BT
26699 and special slots after incoming vararg bounds.
26700
26701 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
26702
26703 PR middle-end/66568
26704 * cfgexpand.c (expand_return): Handle missing bounds.
26705 (expand_gimple_stmt_1): Likewise.
26706 * tree-chkp.c (chkp_expand_zero_bounds): New.
26707 * tree-chkp.h (chkp_expand_zero_bounds): New.
26708
26709 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
26710
26711 PR middle-end/66567
26712 * ipa-chkp.c (chkp_maybe_create_clone): Require
26713 functions to be instrumentable.
26714 * tree-chkp.c (chkp_replace_function_pointer): Use
26715 chkp_instrumentable_p instead of attribute check.
26716
26717 2015-06-18 Richard Biener <rguenther@suse.de>
26718
26719 PR tree-optimization/66510
26720 * tree-vect-stmts.c (vectorizable_load): Properly compute the
26721 number of vector loads for SLP permuted loads.
26722 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
26723 check the stride for loop vectorization.
26724 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
26725 vectorization factor.
26726 (vect_analyze_group_access): If the group size is not a power
26727 of two require a epilogue loop.
26728 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
26729 compute and optimizing and alias test pruning after final
26730 vectorization factor computation.
26731 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
26732 vector alignment.
26733 (vect_transform_slp_perm_load): Properly compute the original
26734 number of vector load stmts.
26735
26736 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
26737
26738 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
26739 "unlikely character , in @var" warning.
26740
26741 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
26742
26743 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
26744 (ix86_function_arg_advance): Ditto.
26745 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
26746
26747 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
26748
26749 * function.h (struct rtl_data): Remove struct and accessor macros.
26750 * emit-rtl.h (struct rtl_data): Relocate to here.
26751 * Makefile.in (GTFILES): Add emit-rtl.h.
26752 * df-core.c: Include emit-rtl.h.
26753 * genattrtab.c: Likewise.
26754 * genconditions.c: Likewise.
26755 * genpreds.c: Likewise.
26756 * genrecog.c: Likewise.
26757 * regcprop.c: Likewise.
26758 * resource.c: Likewise.
26759 * sched-rgn.c: Likewise.
26760 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26761 * config/i386/winnt.c: Likewise.
26762
26763 2015-06-17 Jakub Jelinek <jakub@redhat.com>
26764
26765 PR middle-end/66429
26766 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
26767 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
26768 and has_force_vectorize_loops flags from cfun into
26769 child_cfun.
26770 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
26771 if simduid is non-NULL.
26772 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
26773 * passes.def (pass_simduid_cleanup): Add new pass after loop
26774 passes.
26775 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
26776 indirection from htab argument's type.
26777 (shrink_simd_arrays): New function.
26778 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
26779 Don't call adjust_simduid_builtins if there are no loops.
26780 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
26781 (pass_simduid_cleanup::execute): New method.
26782 (make_pass_simduid_cleanup): New function.
26783
26784 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
26785
26786 * tree-core.h (tree_target_option): Make opts field a pointer to a
26787 cl_target_option instead of an instance of the struct.
26788 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
26789 the structure.
26790 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
26791 TARGET_OPTION_NODE.
26792 (copy_node_stat): Allocate and copy struct cl_target_option.
26793
26794 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
26795
26796 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
26797 Remove conditional exposure of prototypes.
26798 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
26799 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
26800 definitions in tree.h with functions.
26801 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
26802 anon_aggrname_p.
26803 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
26804
26805 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
26806
26807 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
26808 (*cmp<mode>_signed): ... this.
26809 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
26810 (*cmp<mode>_unsigned): ... this. Remove %b.
26811
26812 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
26813
26814 * coretypes.h: Include input.h and as-a.h.
26815 * rtl.h: Include input.h and as-a.h for generator files.
26816 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
26817 * vec.c: Don't include diagnostic-core.h.
26818 * alias.c: Do not include input.h, line-map.h or is-a.h.
26819 * asan.c: Likewise.
26820 * attribs.c: Likewise.
26821 * auto-inc-dec.c: Likewise.
26822 * auto-profile.c: Likewise.
26823 * bb-reorder.c: Likewise.
26824 * bt-load.c: Likewise.
26825 * builtins.c: Likewise.
26826 * caller-save.c: Likewise.
26827 * calls.c: Likewise.
26828 * ccmp.c: Likewise.
26829 * cfg.c: Likewise.
26830 * cfganal.c: Likewise.
26831 * cfgbuild.c: Likewise.
26832 * cfgcleanup.c: Likewise.
26833 * cfgexpand.c: Likewise.
26834 * cfghooks.c: Likewise.
26835 * cfgloop.c: Likewise.
26836 * cfgloop.h: Likewise.
26837 * cfgloopanal.c: Likewise.
26838 * cfgloopmanip.c: Likewise.
26839 * cfgrtl.c: Likewise.
26840 * cgraph.c: Likewise.
26841 * cgraphbuild.c: Likewise.
26842 * cgraphclones.c: Likewise.
26843 * cgraphunit.c: Likewise.
26844 * cilk-common.c: Likewise.
26845 * combine-stack-adj.c: Likewise.
26846 * combine.c: Likewise.
26847 * compare-elim.c: Likewise.
26848 * convert.c: Likewise.
26849 * coverage.c: Likewise.
26850 * cppbuiltin.c: Likewise.
26851 * cprop.c: Likewise.
26852 * cse.c: Likewise.
26853 * cselib.c: Likewise.
26854 * data-streamer-in.c: Likewise.
26855 * data-streamer-out.c: Likewise.
26856 * data-streamer.c: Likewise.
26857 * dbxout.c: Likewise.
26858 * dce.c: Likewise.
26859 * ddg.c: Likewise.
26860 * debug.c: Likewise.
26861 * df-core.c: Likewise.
26862 * df-problems.c: Likewise.
26863 * df-scan.c: Likewise.
26864 * df.h: Likewise.
26865 * dfp.c: Likewise.
26866 * diagnostic-core.h: Likewise.
26867 * diagnostic.c: Likewise.
26868 * dojump.c: Likewise.
26869 * dominance.c: Likewise.
26870 * domwalk.c: Likewise.
26871 * double-int.c: Likewise.
26872 * dse.c: Likewise.
26873 * dumpfile.c: Likewise.
26874 * dumpfile.h: Likewise.
26875 * dwarf2asm.c: Likewise.
26876 * dwarf2cfi.c: Likewise.
26877 * dwarf2out.c: Likewise.
26878 * emit-rtl.c: Likewise.
26879 * et-forest.c: Likewise.
26880 * except.c: Likewise.
26881 * explow.c: Likewise.
26882 * expmed.c: Likewise.
26883 * expr.c: Likewise.
26884 * final.c: Likewise.
26885 * fixed-value.c: Likewise.
26886 * fold-const.c: Likewise.
26887 * function.c: Likewise.
26888 * fwprop.c: Likewise.
26889 * gcc-plugin.h: Likewise.
26890 * gcse.c: Likewise.
26891 * generic-match-head.c: Likewise.
26892 * ggc-page.c: Likewise.
26893 * gimple-builder.c: Likewise.
26894 * gimple-expr.c: Likewise.
26895 * gimple-fold.c: Likewise.
26896 * gimple-iterator.c: Likewise.
26897 * gimple-low.c: Likewise.
26898 * gimple-match-head.c: Likewise.
26899 * gimple-pretty-print.c: Likewise.
26900 * gimple-ssa-isolate-paths.c: Likewise.
26901 * gimple-ssa-strength-reduction.c: Likewise.
26902 * gimple-streamer-in.c: Likewise.
26903 * gimple-streamer-out.c: Likewise.
26904 * gimple-streamer.h: Likewise.
26905 * gimple-walk.c: Likewise.
26906 * gimple.c: Likewise.
26907 * gimplify-me.c: Likewise.
26908 * gimplify.c: Likewise.
26909 * godump.c: Likewise.
26910 * graph.c: Likewise.
26911 * graphite-blocking.c: Likewise.
26912 * graphite-dependences.c: Likewise.
26913 * graphite-interchange.c: Likewise.
26914 * graphite-isl-ast-to-gimple.c: Likewise.
26915 * graphite-optimize-isl.c: Likewise.
26916 * graphite-poly.c: Likewise.
26917 * graphite-scop-detection.c: Likewise.
26918 * graphite-sese-to-poly.c: Likewise.
26919 * graphite.c: Likewise.
26920 * haifa-sched.c: Likewise.
26921 * hw-doloop.c: Likewise.
26922 * ifcvt.c: Likewise.
26923 * init-regs.c: Likewise.
26924 * input.c: Likewise.
26925 * internal-fn.c: Likewise.
26926 * ipa-chkp.c: Likewise.
26927 * ipa-comdats.c: Likewise.
26928 * ipa-cp.c: Likewise.
26929 * ipa-devirt.c: Likewise.
26930 * ipa-icf-gimple.c: Likewise.
26931 * ipa-icf.c: Likewise.
26932 * ipa-inline-analysis.c: Likewise.
26933 * ipa-inline-transform.c: Likewise.
26934 * ipa-inline.c: Likewise.
26935 * ipa-polymorphic-call.c: Likewise.
26936 * ipa-profile.c: Likewise.
26937 * ipa-prop.c: Likewise.
26938 * ipa-pure-const.c: Likewise.
26939 * ipa-ref.c: Likewise.
26940 * ipa-reference.c: Likewise.
26941 * ipa-split.c: Likewise.
26942 * ipa-utils.c: Likewise.
26943 * ipa-visibility.c: Likewise.
26944 * ipa.c: Likewise.
26945 * ira-build.c: Likewise.
26946 * ira-color.c: Likewise.
26947 * ira-conflicts.c: Likewise.
26948 * ira-costs.c: Likewise.
26949 * ira-emit.c: Likewise.
26950 * ira-lives.c: Likewise.
26951 * ira.c: Likewise.
26952 * jump.c: Likewise.
26953 * langhooks.c: Likewise.
26954 * lcm.c: Likewise.
26955 * loop-doloop.c: Likewise.
26956 * loop-init.c: Likewise.
26957 * loop-invariant.c: Likewise.
26958 * loop-iv.c: Likewise.
26959 * loop-unroll.c: Likewise.
26960 * lower-subreg.c: Likewise.
26961 * lra-assigns.c: Likewise.
26962 * lra-coalesce.c: Likewise.
26963 * lra-constraints.c: Likewise.
26964 * lra-eliminations.c: Likewise.
26965 * lra-lives.c: Likewise.
26966 * lra-remat.c: Likewise.
26967 * lra-spills.c: Likewise.
26968 * lra.c: Likewise.
26969 * lto-cgraph.c: Likewise.
26970 * lto-compress.c: Likewise.
26971 * lto-opts.c: Likewise.
26972 * lto-section-in.c: Likewise.
26973 * lto-section-out.c: Likewise.
26974 * lto-streamer-in.c: Likewise.
26975 * lto-streamer-out.c: Likewise.
26976 * lto-streamer.c: Likewise.
26977 * mcf.c: Likewise.
26978 * mode-switching.c: Likewise.
26979 * modulo-sched.c: Likewise.
26980 * omega.c: Likewise.
26981 * omp-low.c: Likewise.
26982 * optabs.c: Likewise.
26983 * opts-global.c: Likewise.
26984 * opts.h: Likewise.
26985 * passes.c: Likewise.
26986 * plugin.c: Likewise.
26987 * postreload-gcse.c: Likewise.
26988 * postreload.c: Likewise.
26989 * predict.c: Likewise.
26990 * pretty-print.h: Likewise.
26991 * print-rtl.c: Likewise.
26992 * print-tree.c: Likewise.
26993 * profile.c: Likewise.
26994 * real.c: Likewise.
26995 * realmpfr.c: Likewise.
26996 * recog.c: Likewise.
26997 * ree.c: Likewise.
26998 * reg-stack.c: Likewise.
26999 * regcprop.c: Likewise.
27000 * reginfo.c: Likewise.
27001 * regrename.c: Likewise.
27002 * regstat.c: Likewise.
27003 * reload.c: Likewise.
27004 * reload1.c: Likewise.
27005 * reorg.c: Likewise.
27006 * resource.c: Likewise.
27007 * rtl-chkp.c: Likewise.
27008 * rtl-error.c: Likewise.
27009 * rtlanal.c: Likewise.
27010 * rtlhooks.c: Likewise.
27011 * sanopt.c: Likewise.
27012 * sched-deps.c: Likewise.
27013 * sched-ebb.c: Likewise.
27014 * sched-rgn.c: Likewise.
27015 * sched-vis.c: Likewise.
27016 * sdbout.c: Likewise.
27017 * sel-sched-dump.c: Likewise.
27018 * sel-sched-ir.c: Likewise.
27019 * sel-sched.c: Likewise.
27020 * sese.c: Likewise.
27021 * shrink-wrap.c: Likewise.
27022 * simplify-rtx.c: Likewise.
27023 * stack-ptr-mod.c: Likewise.
27024 * statistics.c: Likewise.
27025 * stmt.c: Likewise.
27026 * stor-layout.c: Likewise.
27027 * store-motion.c: Likewise.
27028 * streamer-hooks.c: Likewise.
27029 * stringpool.c: Likewise.
27030 * symtab.c: Likewise.
27031 * target-globals.c: Likewise.
27032 * targhooks.c: Likewise.
27033 * toplev.c: Likewise.
27034 * tracer.c: Likewise.
27035 * trans-mem.c: Likewise.
27036 * tree-affine.c: Likewise.
27037 * tree-browser.c: Likewise.
27038 * tree-call-cdce.c: Likewise.
27039 * tree-cfg.c: Likewise.
27040 * tree-cfgcleanup.c: Likewise.
27041 * tree-chkp-opt.c: Likewise.
27042 * tree-chkp.c: Likewise.
27043 * tree-chrec.c: Likewise.
27044 * tree-complex.c: Likewise.
27045 * tree-data-ref.c: Likewise.
27046 * tree-dfa.c: Likewise.
27047 * tree-diagnostic.c: Likewise.
27048 * tree-dump.c: Likewise.
27049 * tree-eh.c: Likewise.
27050 * tree-emutls.c: Likewise.
27051 * tree-if-conv.c: Likewise.
27052 * tree-inline.c: Likewise.
27053 * tree-into-ssa.c: Likewise.
27054 * tree-iterator.c: Likewise.
27055 * tree-loop-distribution.c: Likewise.
27056 * tree-nested.c: Likewise.
27057 * tree-nrv.c: Likewise.
27058 * tree-object-size.c: Likewise.
27059 * tree-outof-ssa.c: Likewise.
27060 * tree-parloops.c: Likewise.
27061 * tree-phinodes.c: Likewise.
27062 * tree-predcom.c: Likewise.
27063 * tree-pretty-print.c: Likewise.
27064 * tree-profile.c: Likewise.
27065 * tree-scalar-evolution.c: Likewise.
27066 * tree-sra.c: Likewise.
27067 * tree-ssa-address.c: Likewise.
27068 * tree-ssa-alias.c: Likewise.
27069 * tree-ssa-ccp.c: Likewise.
27070 * tree-ssa-coalesce.c: Likewise.
27071 * tree-ssa-copy.c: Likewise.
27072 * tree-ssa-copyrename.c: Likewise.
27073 * tree-ssa-dce.c: Likewise.
27074 * tree-ssa-dom.c: Likewise.
27075 * tree-ssa-dse.c: Likewise.
27076 * tree-ssa-forwprop.c: Likewise.
27077 * tree-ssa-ifcombine.c: Likewise.
27078 * tree-ssa-live.c: Likewise.
27079 * tree-ssa-loop-ch.c: Likewise.
27080 * tree-ssa-loop-im.c: Likewise.
27081 * tree-ssa-loop-ivcanon.c: Likewise.
27082 * tree-ssa-loop-ivopts.c: Likewise.
27083 * tree-ssa-loop-manip.c: Likewise.
27084 * tree-ssa-loop-niter.c: Likewise.
27085 * tree-ssa-loop-prefetch.c: Likewise.
27086 * tree-ssa-loop-unswitch.c: Likewise.
27087 * tree-ssa-loop.c: Likewise.
27088 * tree-ssa-math-opts.c: Likewise.
27089 * tree-ssa-operands.c: Likewise.
27090 * tree-ssa-phiopt.c: Likewise.
27091 * tree-ssa-phiprop.c: Likewise.
27092 * tree-ssa-pre.c: Likewise.
27093 * tree-ssa-propagate.c: Likewise.
27094 * tree-ssa-reassoc.c: Likewise.
27095 * tree-ssa-sccvn.c: Likewise.
27096 * tree-ssa-scopedtables.c: Likewise.
27097 * tree-ssa-sink.c: Likewise.
27098 * tree-ssa-strlen.c: Likewise.
27099 * tree-ssa-structalias.c: Likewise.
27100 * tree-ssa-tail-merge.c: Likewise.
27101 * tree-ssa-ter.c: Likewise.
27102 * tree-ssa-threadedge.c: Likewise.
27103 * tree-ssa-threadupdate.c: Likewise.
27104 * tree-ssa-uncprop.c: Likewise.
27105 * tree-ssa-uninit.c: Likewise.
27106 * tree-ssa.c: Likewise.
27107 * tree-ssanames.c: Likewise.
27108 * tree-stdarg.c: Likewise.
27109 * tree-streamer-in.c: Likewise.
27110 * tree-streamer-out.c: Likewise.
27111 * tree-streamer.c: Likewise.
27112 * tree-switch-conversion.c: Likewise.
27113 * tree-tailcall.c: Likewise.
27114 * tree-vect-data-refs.c: Likewise.
27115 * tree-vect-generic.c: Likewise.
27116 * tree-vect-loop-manip.c: Likewise.
27117 * tree-vect-loop.c: Likewise.
27118 * tree-vect-patterns.c: Likewise.
27119 * tree-vect-slp.c: Likewise.
27120 * tree-vect-stmts.c: Likewise.
27121 * tree-vectorizer.c: Likewise.
27122 * tree-vrp.c: Likewise.
27123 * tree.c: Likewise.
27124 * tsan.c: Likewise.
27125 * ubsan.c: Likewise.
27126 * valtrack.c: Likewise.
27127 * value-prof.c: Likewise.
27128 * var-tracking.c: Likewise.
27129 * varasm.c: Likewise.
27130 * varpool.c: Likewise.
27131 * vmsdbgout.c: Likewise.
27132 * vtable-verify.c: Likewise.
27133 * web.c: Likewise.
27134 * wide-int.cc: Likewise.
27135 * xcoffout.c: Likewise.
27136 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
27137 * common/common-targhooks.c: Likewise.
27138 * config/aarch64/aarch64-builtins.c: Likewise.
27139 * config/aarch64/aarch64.c: Likewise.
27140 * config/alpha/alpha.c: Likewise.
27141 * config/arc/arc.c: Likewise.
27142 * config/arm/aarch-common.c: Likewise.
27143 * config/arm/arm-builtins.c: Likewise.
27144 * config/arm/arm-c.c: Likewise.
27145 * config/arm/arm.c: Likewise.
27146 * config/avr/avr-c.c: Likewise.
27147 * config/avr/avr-log.c: Likewise.
27148 * config/avr/avr.c: Likewise.
27149 * config/bfin/bfin.c: Likewise.
27150 * config/c6x/c6x.c: Likewise.
27151 * config/cr16/cr16.c: Likewise.
27152 * config/cris/cris.c: Likewise.
27153 * config/darwin-c.c: Likewise.
27154 * config/darwin.c: Likewise.
27155 * config/default-c.c: Likewise.
27156 * config/epiphany/epiphany.c: Likewise.
27157 * config/epiphany/mode-switch-use.c: Likewise.
27158 * config/epiphany/resolve-sw-modes.c: Likewise.
27159 * config/fr30/fr30.c: Likewise.
27160 * config/frv/frv.c: Likewise.
27161 * config/ft32/ft32.c: Likewise.
27162 * config/glibc-c.c: Likewise.
27163 * config/h8300/h8300.c: Likewise.
27164 * config/i386/i386-c.c: Likewise.
27165 * config/i386/i386.c: Likewise.
27166 * config/i386/msformat-c.c: Likewise.
27167 * config/i386/winnt-cxx.c: Likewise.
27168 * config/i386/winnt-stubs.c: Likewise.
27169 * config/i386/winnt.c: Likewise.
27170 * config/ia64/ia64-c.c: Likewise.
27171 * config/ia64/ia64.c: Likewise.
27172 * config/iq2000/iq2000.c: Likewise.
27173 * config/lm32/lm32.c: Likewise.
27174 * config/m32c/m32c-pragma.c: Likewise.
27175 * config/m32c/m32c.c: Likewise.
27176 * config/m32r/m32r.c: Likewise.
27177 * config/m68k/m68k.c: Likewise.
27178 * config/mcore/mcore.c: Likewise.
27179 * config/mep/mep-pragma.c: Likewise.
27180 * config/mep/mep.c: Likewise.
27181 * config/microblaze/microblaze-c.c: Likewise.
27182 * config/microblaze/microblaze.c: Likewise.
27183 * config/mips/mips.c: Likewise.
27184 * config/mmix/mmix.c: Likewise.
27185 * config/mn10300/mn10300.c: Likewise.
27186 * config/moxie/moxie.c: Likewise.
27187 * config/msp430/msp430-c.c: Likewise.
27188 * config/msp430/msp430.c: Likewise.
27189 * config/nds32/nds32-cost.c: Likewise.
27190 * config/nds32/nds32-fp-as-gp.c: Likewise.
27191 * config/nds32/nds32-intrinsic.c: Likewise.
27192 * config/nds32/nds32-isr.c: Likewise.
27193 * config/nds32/nds32-md-auxiliary.c: Likewise.
27194 * config/nds32/nds32-memory-manipulation.c: Likewise.
27195 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27196 * config/nds32/nds32-predicates.c: Likewise.
27197 * config/nds32/nds32.c: Likewise.
27198 * config/nios2/nios2.c: Likewise.
27199 * config/nvptx/nvptx.c: Likewise.
27200 * config/pa/pa.c: Likewise.
27201 * config/pdp11/pdp11.c: Likewise.
27202 * config/rl78/rl78-c.c: Likewise.
27203 * config/rl78/rl78.c: Likewise.
27204 * config/rs6000/rs6000-c.c: Likewise.
27205 * config/rs6000/rs6000.c: Likewise.
27206 * config/rx/rx.c: Likewise.
27207 * config/s390/s390-c.c: Likewise.
27208 * config/s390/s390.c: Likewise.
27209 * config/sh/sh-c.c: Likewise.
27210 * config/sh/sh-mem.cc: Likewise.
27211 * config/sh/sh.c: Likewise.
27212 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
27213 * config/sh/sh_treg_combine.cc: Likewise.
27214 * config/sol2-c.c: Likewise.
27215 * config/sol2-cxx.c: Likewise.
27216 * config/sol2-stubs.c: Likewise.
27217 * config/sol2.c: Likewise.
27218 * config/sparc/sparc-c.c: Likewise.
27219 * config/sparc/sparc.c: Likewise.
27220 * config/spu/spu-c.c: Likewise.
27221 * config/spu/spu.c: Likewise.
27222 * config/stormy16/stormy16.c: Likewise.
27223 * config/tilegx/mul-tables.c: Likewise.
27224 * config/tilegx/tilegx-c.c: Likewise.
27225 * config/tilegx/tilegx.c: Likewise.
27226 * config/tilepro/mul-tables.c: Likewise.
27227 * config/tilepro/tilepro-c.c: Likewise.
27228 * config/tilepro/tilepro.c: Likewise.
27229 * config/v850/v850-c.c: Likewise.
27230 * config/v850/v850.c: Likewise.
27231 * config/vax/vax.c: Likewise.
27232 * config/visium/visium.c: Likewise.
27233 * config/vms/vms-c.c: Likewise.
27234 * config/vms/vms.c: Likewise.
27235 * config/vxworks.c: Likewise.
27236 * config/winnt-c.c: Likewise.
27237 * config/xtensa/xtensa.c: Likewise.
27238
27239 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
27240
27241 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
27242 function.
27243 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
27244
27245 2015-06-17 Richard Biener <rguenther@suse.de>
27246
27247 PR tree-optimization/66251
27248 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
27249 stmts for SLP strided stores.
27250
27251 Revert
27252 2015-05-22 Richard Biener <rguenther@suse.de>
27253
27254 PR tree-optimization/66251
27255 * tree-vect-stmts.c (vectorizable_conversion): Properly
27256 set STMT_VINFO_VEC_STMT even for the SLP case.
27257
27258 2015-05-26 Michael Matz <matz@suse.de>
27259
27260 PR middle-end/66251
27261 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
27262 STMT_VINFO_VEC_STMT, also with SLP.
27263
27264 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
27265
27266 PR target/56766
27267 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
27268 (*avx_addsubv4df3_1s): Ditto.
27269 (*sse3_addsubv2df3_1): Ditto.
27270 (*sse3_addsubv2df3_1s): Ditto.
27271 (*avx_addsubv8sf3_1): Ditto.
27272 (*avx_addsubv8sf3_1s): Ditto.
27273 (*sse3_addsubv4sf3_1): Ditto.
27274 (*sse3_addsubv4sf3_1s): Ditto.
27275
27276 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
27277
27278 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
27279 (SYSROOT_SUFFIX_SPEC): Update.
27280 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
27281 (STARTFILE_PREFIX_SPEC): Update.
27282 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
27283 (MULTILIB_REQUIRED): New.
27284 (MULTILIB_OSDIRNAMES): New.
27285 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
27286 (MULTILIB_REQUIRED): New.
27287 (MULTILIB_OSDIRNAMES): New.
27288
27289 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
27290
27291 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
27292 * config/aarch64/aarch64-options-extensions.def: Update "fP",
27293 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
27294 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
27295 (AARCH64_FL_PAN): New.
27296 (AARCH64_FL_LOR): New.
27297 (AARCH64_FL_RDMA): New.
27298 (AARCH64_FL_FOR_ARCH8_1): New.
27299 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
27300 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
27301
27302 2015-06-16 Martin Liska <mliska@suse.cz>
27303
27304 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
27305 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
27306 guard.
27307
27308 2015-06-16 Richard Biener <rguenther@suse.de>
27309
27310 * tree-vect-stmts.c (vectorizable_store): Adjust.
27311 (vectorizable_load): Likewise.
27312 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
27313 Simplify.
27314 (vect_create_data_ref_ptr): Likewise.
27315 (bump_vector_ptr): Adjust.
27316
27317 2015-06-16 Richard Biener <rguenther@suse.de>
27318
27319 * tree-vect-stmts.c (vectorizable_load): Properly start loads
27320 with the first element if this is grouped loads.
27321
27322 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
27323
27324 * config/arm/arm-protos.h (struct tune_params): Rename
27325 log_op_non_sc to log_op_non_short_circuit, and rename enum
27326 values to expand SC to SHORT_CIRCUIT.
27327 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
27328 to LOG_OP_NON_SHORT_CIRCUIT.
27329 (arm_fastmul_tune):Likewise
27330 (arm_strongarm_tune): Likewise.
27331 (arm_xscale_tune): Likewise.
27332 (arm_9e_tune): Likewise.
27333 (arm_marvell_pj4_tune): Likewise.
27334 (arm_v6t2_tune): Likewise.
27335 (arm_cortex_tune): Likewise.
27336 (arm_cortex_a8_tune): Likewise.
27337 (arm_cortex_a7_tune): Likewise.
27338 (arm_cortex_a15_tune): Likewise.
27339 (arm_cortex_a53_tune): Likewise.
27340 (arm_cortex_a57_tune): Likewise.
27341 (arm_xgene1_tune): Likewise.
27342 (arm_cortex_a5_tune): Likewise.
27343 (arm_cortex_a9_tune): Likewise.
27344 (arm_cortex_a12_tune): Likewise.
27345 (arm_v7m_tune): Likewise.
27346 (arm_cortex_m7_tune): Likewise.
27347 (arm_v6m_tune): Likewise.
27348 (arm_fa726te_tune): Likewise.
27349
27350 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
27351
27352 * altivec.md: Delete UNSPEC_VMLADDUHM.
27353 (mulv4si3_p8): New pattern.
27354 (mulv4si3): Use it for POWER8.
27355 (mulv8hi3): Use vmladduhm with zero addend.
27356 (altivec_vmladduhm): Descriptive RTL.
27357
27358 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
27359
27360 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
27361 to use neon_move instead of mov_imm.
27362 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
27363 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
27364
27365 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
27366 aarch64_float_const_zero_rtx_p check before TFmode check.
27367 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
27368 an fp zero.
27369 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
27370 code and attributes to match. Change condition from register_operand
27371 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
27372 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
27373 to store2.
27374
27375 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
27376
27377 PR debug/66535
27378 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
27379 there is no parent.
27380
27381 2015-06-14 Shiva Chen <shiva0217@gmail.com>
27382
27383 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
27384 HOST_WIDE_INT parameter.
27385
27386 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
27387
27388 PR ipa/66181
27389 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
27390 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
27391 TYPE_NO_FORCE_BLK.
27392 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
27393
27394 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
27395
27396 * rtl.h (classify_insn): Declare.
27397 * emit-rtl.c (classify_insn): Move to...
27398 * rtl.c: ...here and add generator support.
27399 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
27400 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
27401 * genemit.c (gen_emit_seq): New function.
27402 (gen_expand, gen_split): Use it.
27403
27404 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
27405
27406 * tree.c (make_vector_stat): Fix comment to state that the
27407 function returns a VECTOR_CST.
27408
27409 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
27410
27411 * gensupport.h (add_implicit_parallel): Declare.
27412 * genrecog.c (add_implicit_parallel): Move to...
27413 * gensupport.c (add_implicit_parallel): ...here.
27414 (process_one_cond_exec): Use it.
27415 * genemit.c (gen_insn): Likewise.
27416
27417 2015-06-13 Iain Sandoe <iain@codesourcery.com>
27418
27419 PR bootstrap/66448
27420 * passes.c (rest_of_decl_compilation): Do not register globals for
27421 early debug if they are declared in built-ins.
27422
27423 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
27424
27425 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
27426
27427 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27428
27429 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
27430 manually swapping.
27431 (noce_try_cmove_arith): Likewise.
27432 (noce_get_alt_condition): Likewise.
27433
27434 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27435
27436 * common/config/i386/i386-common.c
27437 (OPTION_MASK_ISA_MWAITX_SET): New.
27438 (ix86_handle_option): Handle mwaitx.
27439 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
27440 (x86_64-*-*): Likewise.
27441 * config/i386/mwaitxintrin.h: New header.
27442 * config/i386/cpuid.h (bit_MWAITX): Define.
27443 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
27444 MWAITX support.
27445 * config/i386/i386.opt (mwaitx): New.
27446 * config/i386/i386-builtin-types.def
27447 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
27448 * config/i386/i386-c.c: Define __MWAITX__ if needed.
27449 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
27450 (PTA_MWAITX): New.
27451 (ix86_option_override_internal): Handle new option.
27452 (processor_alias_table): Added PTA_MWAITX.
27453 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
27454 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
27455 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
27456 IX86_BUILTIN_MONITORX built-ins.
27457 * config/i386/i386.h (TARGET_MWAITX): New.
27458 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
27459 UNSPEC_MONITORX.
27460 (mwaitx): New pattern.
27461 (monitorx_<mode>): New pattern.
27462 * config/i386/x86intrin.h: Include mwaitxintrin.h.
27463 * doc/extend.texi: Document monitorx and mwaitx builtins.
27464 * doc/invoke.texi: Document -mmwaitx option.
27465
27466 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
27467
27468 * emit-rtl.c (need_atomic_barrier_p): Mask model with
27469 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
27470
27471 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
27472
27473 * dbxout.c (xcoff_debug_hooks): Provide a function for
27474 register_main_translation_unit hook.
27475
27476 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
27477
27478 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
27479 variants cases from switch.
27480 (rs6000_post_atomic_barrier): Same.
27481 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
27482 (rs6000_expand_atomic_exchange): Same.
27483 (rs6000_expand_atomic_op): Same.
27484 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
27485 SYNC variants cases from switch.
27486 (atomic_load): Same.
27487 (atomic_store): Same.
27488
27489 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
27490
27491 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
27492 CONST_INT for goto.
27493
27494 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
27495
27496 PR bootstrap/66448
27497 * dwarf2out.c (check_die): Check for common duplicate attributes.
27498 (add_location_or_const_value_attribute): Do not add duplicate
27499 attributes.
27500 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
27501 time around.
27502 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
27503 (gen_type_die_with_usage): Call check_die.
27504 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
27505
27506 2015-06-11 Jason Merrill <jason@redhat.com>
27507
27508 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
27509 dies.
27510
27511 2015-06-11 Marek Polacek <polacek@redhat.com>
27512
27513 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
27514
27515 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
27516
27517 PR bootstrap/66252
27518 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
27519 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
27520 (*addx_extend_sp32): Fix pasto.
27521 (*subx_extend): Rename into...
27522 (*subx_extend_sp32): ...this.
27523 (*adddi3_extend_sp32): Add earlyclobber.
27524 (*subdi3_insn_sp32): Likewise.
27525 (*subdi3_extend_sp32): Likewise.
27526 (*and_not_di_sp32): Likewise.
27527 (*or_not_di_sp32): Likewise.
27528 (*xor_not_di_sp32): Likewise.
27529 (*negdi2_sp32): Likewise.
27530 (*one_cmpldi2_sp32): Likewise.
27531
27532 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
27533
27534 * debug.h (struct gcc_debug_hooks): Add a
27535 register_main_translation_unit hook.
27536 * debug.c (do_nothing_debug_hooks): Provide a function for this
27537 new hook.
27538 * dbxout.c (dbx_debug_hooks): Likewise.
27539 * sdbout.c (sdb_debug_hooks): Likewise.
27540 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
27541 * dwarf2out.c (main_translation_unit): New global variable.
27542 (dwarf2out_register_main_translation_unit): New function
27543 implementing the new hook.
27544 (dwarf2_debug_hooks): Assign
27545 dwarf2out_register_main_translation_unit to this new hook.
27546 (dwarf2out_init): Associate any main translation unit to
27547 comp_unit_die ().
27548
27549 2015-06-11 Marek Polacek <polacek@redhat.com>
27550
27551 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
27552
27553 2015-06-11 Marek Polacek <polacek@redhat.com>
27554
27555 * match.pd: Use single_use throughout.
27556
27557 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27558
27559 * config/arm/arm.c (arm_option_params_internal): When optimising
27560 for speed set max_insns_skipped when arm_restrict_it.
27561
27562 2015-06-11 Christian Bruel <christian.bruel@st.com>
27563
27564 PR target/52144
27565 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
27566 macros in ...
27567 (arm_cpu_builtins): New function.
27568 (arm_pragma_target_parse): Call arm_cpu_builtins.
27569 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
27570 (arm_register_target_pragmas): Likewise.
27571 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
27572 Call arm_register_target_pragmas.
27573 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
27574 (arm_pragma_target_parse): Likewise.
27575
27576 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
27577
27578 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
27579 of the second operand.
27580
27581 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
27582
27583 PR target/66473
27584 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
27585 to prepare mask operand for AVX512 modes.
27586
27587 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
27588
27589 PR target/66474
27590 * doc/md.texi (Machine Constraints): Document that on the PowerPC
27591 if you use a constraint that targets a VSX register, you must use
27592 %x<n> in the template.
27593
27594 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
27595
27596 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
27597 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
27598 (define_insn "trap"): New definition.
27599
27600 2015-06-10 Richard Biener <rguenther@suse.de>
27601
27602 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
27603 out from ...
27604 (vect_supported_load_permutation_p): ... here. Handle
27605 supportable permutations in reductions.
27606 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
27607 for vectorizing strided group loads.
27608
27609 2015-06-10 Jakub Jelinek <jakub@redhat.com>
27610
27611 PR target/66470
27612 * config/i386/i386.c (ix86_split_long_move): For collisions
27613 involving direct tls segment refs, move the UNSPEC_TP possibly
27614 wrapped in ZERO_EXTEND out of the address for lea, to each of
27615 the memory loads.
27616
27617 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27618
27619 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
27620 dmb sy. Adjust tabs.
27621
27622 2015-06-10 Tom de Vries <tom@codesourcery.com>
27623
27624 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
27625
27626 2015-06-10 Martin Liska <mliska@suse.cz>
27627
27628 PR bootstrap/66471
27629 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
27630 all enum values in mem_alloc_origin.
27631 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
27632 name.
27633 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
27634 * bitmap.c (bitmap_register): Likewise.
27635 (dump_bitmap_statistics): Likewise.
27636 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
27637 (ggc_record_overhead): Likewise.
27638 * hash-map.h: Likewise.
27639 * hash-set.h: Likewise.
27640 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
27641 * hash-table.h: Likewise.
27642 * vec.c (vec_prefix::register_overhead): Likewise.
27643 (vec_prefix::release_overhead): Likewise.
27644 (dump_vec_loc_statistics): Likewise.
27645
27646 2015-06-09 Christian Bruel <christian.bruel@st.com>
27647
27648 PR target/52144
27649 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
27650 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
27651 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
27652 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
27653 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
27654 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
27655 (arm_valid_target_attribute_p): Likewise.
27656 (arm_set_current_function, arm_can_inline_p): Likewise.
27657 (arm_valid_target_attribute_rec): Likewise.
27658 (arm_previous_fndecl): New variable.
27659 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
27660 (TARGET_CAN_INLINE_P): Define.
27661 (arm_asm_trampoline_template): Emit mode.
27662 (arm_file_start): Don't set unified syntax.
27663 (arm_declare_function_name): Set unified syntax and mode.
27664 (arm_option_override): Init target_option_default_node.
27665 and target_option_current_node.
27666 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
27667 (*call_symbol): Likewise.
27668 * doc/extend.texi: Document ARM/Thumb target attribute.
27669 * doc/invoke.texi: Likewise.
27670
27671 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
27672
27673 Revert:
27674 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
27675 PR rtl-optimization/64164
27676 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
27677 * tree-ssa-copyrename.c: Removed.
27678 * opts.c (default_options_table): Drop -ftree-copyrename. Add
27679 -ftree-coalesce-vars.
27680 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
27681 * common.opt (ftree-copyrename): Ignore.
27682 (ftree-coalesce-inlined-vars): Likewise.
27683 * doc/invoke.texi: Remove the ignored options above.
27684 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
27685 * tree-ssa-coalesce.h: ... here.
27686 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
27687 headers required by it.
27688 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
27689 across variables when flag_tree_coalesce_vars. Check register
27690 use and promoted modes to allow coalescing. Moved to
27691 tree-ssa-coalesce.c.
27692 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
27693 with its member functions to tree-ssa-coalesce.c.
27694 (var_map_base_init): Likewise. Renamed to
27695 compute_samebase_partition_bases.
27696 (partition_view_normal): Drop want_bases parameter.
27697 (partition_view_bitmap): Likewise.
27698 * tree-ssa-live.h: Adjust declarations.
27699 * tree-ssa-coalesce.c: Include explow.h.
27700 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
27701 default defs at the entry point.
27702 (dump_part_var_map): New.
27703 (compute_optimized_partition_bases): New, called by...
27704 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
27705 of compute_samebase_partition_bases. Adjust.
27706 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
27707 * cfgexpand.c (leader_merge): New.
27708 (get_rtl_for_parm_ssa_default_def): New.
27709 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
27710 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
27711 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
27712 redundant MEM attr setting.
27713 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
27714 from...
27715 (expand_one_stack_var): ... this. New wrapper to check and
27716 skip already expanded SSA partitions.
27717 (record_alignment_for_reg_var): New, factored out of...
27718 (expand_one_var): ... this.
27719 (expand_one_ssa_partition): New.
27720 (adjust_one_expanded_partition_var): New.
27721 (expand_one_register_var): Check and skip already expanded SSA
27722 partitions.
27723 (expand_used_vars): Don't create DECLs for anonymous SSA
27724 names. Expand all SSA partitions, then adjust all SSA names.
27725 (pass::execute): Replace the loops that set
27726 SA.partition_to_pseudo from partition leaders and cleared
27727 DECL_RTL for multi-location variables, and that which used to
27728 rename vars and set attrs, with one that clears DECL_RTL and
27729 checks that PARMs and RESULTs default_defs match DECL_RTL.
27730 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
27731 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
27732 * explow.c (promote_ssa_mode): New.
27733 * explow.h (promote_ssa_mode): Declare.
27734 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
27735 * function.c: Include cfgexpand.h.
27736 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
27737 (use_register_for_parm_decl): Wrapper for the above to
27738 special-case the result_ptr.
27739 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
27740 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
27741 multiple locations.
27742 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
27743 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
27744 (assign_parm_setup_block): Prefer SSA-assigned location.
27745 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
27746 if stack_parm is NULL.
27747 (assign_parm_setup_stack): Prefer SSA-assigned location.
27748 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
27749 rtl before testing for pointer bounds. Special-case result_ptr.
27750 (expand_function_start): Maybe reset DECL_RTL of result.
27751 Prefer SSA-assigned location for result and static chain.
27752 Factor out DECL_RESULT and SET_DECL_RTL.
27753 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
27754 anonymous SSA names. Use promote_ssa_mode.
27755 (get_temp_reg): Likewise.
27756 (remove_ssa_form): Adjust.
27757 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
27758 and get its reg_usage for reg invalidation.
27759 (compute_bb_dataflow): Pass it insn.
27760 (emit_notes_in_bb): Likewise.
27761 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
27762 fail assert on conversion between unsigned types.
27763
27764 2015-06-09 Tom de Vries <tom@codesourcery.com>
27765
27766 PR tree-optimization/65460
27767 * omp-low.c (expand_omp_target): Set parallelized_function on
27768 cgraph_node for child_fn.
27769
27770 2015-06-09 Tom de Vries <tom@codesourcery.com>
27771
27772 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
27773 parallelized_function before add_new_function.
27774
27775 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
27776
27777 * gcc-plugin.h: Move decls to plugin.h and include it.
27778 * plugin.h: Relocate decls from gcc-plugin.h
27779 * ggc-page.c: Include required header files.
27780 * passes.c: Likewise.
27781 * cgraphunit.c: Likewise.
27782
27783 2015-06-09 Tom de Vries <tom@codesourcery.com>
27784
27785 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
27786
27787 2015-06-09 Jason Merrill <jason@redhat.com>
27788
27789 PR bootstrap/66448
27790 * toplev.c (check_global_declaration): Don't warn about a clone.
27791
27792 2015-06-09 Marek Polacek <polacek@redhat.com>
27793
27794 PR tree-optimization/66299
27795 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
27796 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
27797 patterns.
27798
27799 2015-06-09 Richard Biener <rguenther@suse.de>
27800
27801 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
27802 (vect_analyze_slp_instance): Instead do not falsely drop
27803 load permutations.
27804
27805 2015-06-09 Richard Biener <rguenther@suse.de>
27806
27807 PR middle-end/66423
27808 * match.pd: Handle A % (unsigned)(1 << B).
27809
27810 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
27811
27812 * varasm.c (output_object_block_htab): Remove.
27813 (output_object_block_compare): New.
27814 (output_object_blocks): Sort named object_blocks before outputting
27815 them.
27816
27817 2015-06-09 Richard Biener <rguenther@suse.de>
27818
27819 PR tree-optimization/66419
27820 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
27821 consider GROUP_GAP when detecting a perfect subchain.
27822
27823 2015-06-09 Nick Clifton <nickc@redhat.com>
27824
27825 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
27826 place read only data in the .frodata section.
27827
27828 2015-06-09 Shiva Chen <shiva0217@gmail.com>
27829
27830 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
27831 (atomic_store<mode>): Likewise.
27832
27833 2015-06-09 Richard Biener <rguenther@suse.de>
27834
27835 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
27836
27837 2015-06-09 Richard Biener <rguenther@suse.de>
27838
27839 PR middle-end/66413
27840 * tree-inline.c (insert_init_debug_bind): Unshare value.
27841
27842 2015-06-09 Richard Biener <rguenther@suse.de>
27843
27844 PR tree-optimization/66396
27845 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
27846 Rename virtual operands.
27847
27848 2015-06-09 Tom de Vries <tom@codesourcery.com>
27849
27850 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
27851 always return false.
27852
27853 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
27854
27855 PR rtl-optimization/64164
27856 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
27857 * tree-ssa-copyrename.c: Removed.
27858 * opts.c (default_options_table): Drop -ftree-copyrename. Add
27859 -ftree-coalesce-vars.
27860 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
27861 * common.opt (ftree-copyrename): Ignore.
27862 (ftree-coalesce-inlined-vars): Likewise.
27863 * doc/invoke.texi: Remove the ignored options above.
27864 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
27865 * tree-ssa-coalesce.h: ... here.
27866 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
27867 headers required by it.
27868 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
27869 across variables when flag_tree_coalesce_vars. Check register
27870 use and promoted modes to allow coalescing. Moved to
27871 tree-ssa-coalesce.c.
27872 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
27873 with its member functions to tree-ssa-coalesce.c.
27874 (var_map_base_init): Likewise. Renamed to
27875 compute_samebase_partition_bases.
27876 (partition_view_normal): Drop want_bases parameter.
27877 (partition_view_bitmap): Likewise.
27878 * tree-ssa-live.h: Adjust declarations.
27879 * tree-ssa-coalesce.c: Include explow.h.
27880 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
27881 default defs at the entry point.
27882 (dump_part_var_map): New.
27883 (compute_optimized_partition_bases): New, called by...
27884 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
27885 of compute_samebase_partition_bases. Adjust.
27886 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
27887 * cfgexpand.c (leader_merge): New.
27888 (get_rtl_for_parm_ssa_default_def): New.
27889 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
27890 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
27891 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
27892 redundant MEM attr setting.
27893 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
27894 from...
27895 (expand_one_stack_var): ... this. New wrapper to check and
27896 skip already expanded SSA partitions.
27897 (record_alignment_for_reg_var): New, factored out of...
27898 (expand_one_var): ... this.
27899 (expand_one_ssa_partition): New.
27900 (adjust_one_expanded_partition_var): New.
27901 (expand_one_register_var): Check and skip already expanded SSA
27902 partitions.
27903 (expand_used_vars): Don't create DECLs for anonymous SSA
27904 names. Expand all SSA partitions, then adjust all SSA names.
27905 (pass::execute): Replace the loops that set
27906 SA.partition_to_pseudo from partition leaders and cleared
27907 DECL_RTL for multi-location variables, and that which used to
27908 rename vars and set attrs, with one that clears DECL_RTL and
27909 checks that PARMs and RESULTs default_defs match DECL_RTL.
27910 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
27911 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
27912 * explow.c (promote_ssa_mode): New.
27913 * explow.h (promote_ssa_mode): Declare.
27914 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
27915 * function.c: Include cfgexpand.h.
27916 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
27917 (use_register_for_parm_decl): Wrapper for the above to
27918 special-case the result_ptr.
27919 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
27920 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
27921 multiple locations.
27922 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
27923 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
27924 (assign_parm_setup_block): Prefer SSA-assigned location.
27925 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
27926 if stack_parm is NULL.
27927 (assign_parm_setup_stack): Prefer SSA-assigned location.
27928 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
27929 rtl before testing for pointer bounds. Special-case result_ptr.
27930 (expand_function_start): Maybe reset DECL_RTL of result.
27931 Prefer SSA-assigned location for result and static chain.
27932 Factor out DECL_RESULT and SET_DECL_RTL.
27933 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
27934 anonymous SSA names. Use promote_ssa_mode.
27935 (get_temp_reg): Likewise.
27936 (remove_ssa_form): Adjust.
27937 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
27938 and get its reg_usage for reg invalidation.
27939 (compute_bb_dataflow): Pass it insn.
27940 (emit_notes_in_bb): Likewise.
27941 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
27942 fail assert on conversion between unsigned types.
27943
27944 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
27945
27946 PR debug/58315
27947 * tree-inline.c (reset_debug_binding): New.
27948 (reset_debug_bindings): Likewise.
27949 (expand_call_inline): Call it.
27950
27951 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
27952
27953 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
27954 TYPE_STRING_FLAG.
27955
27956 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
27957
27958 * lto-streamer-out.c (lto_output_location): Stream
27959 reserved locations correctly.
27960 * lto-streamer-in.c (lto_output_location): Likewise.
27961
27962 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
27963
27964 * coretypes.h: Include hash-table.h and hash-set.h for host files.
27965 * ggc.h: Don't include statistics.h>
27966 * hash-map.h: Remove all includes.
27967 * hash-set.h: Likewise.
27968 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
27969 the include list. Remove <new>.
27970 * inchash.h: Remove all includes.
27971 * mem-stats.h: Likewise.
27972 * vec.h: No special processing for generators or ggc.
27973 * alias.c : Adjust include files.
27974 * alloc-pool.c : Likewise.
27975 * alloc-pool.h : Likewise.
27976 * asan.c : Likewise.
27977 * attribs.c : Likewise.
27978 * auto-inc-dec.c : Likewise.
27979 * auto-profile.c : Likewise.
27980 * bb-reorder.c : Likewise.
27981 * bitmap.c : Likewise.
27982 * bitmap.h : Likewise.
27983 * bt-load.c : Likewise.
27984 * builtins.c : Likewise.
27985 * caller-save.c : Likewise.
27986 * calls.c : Likewise.
27987 * ccmp.c : Likewise.
27988 * cfg.c : Likewise.
27989 * cfganal.c : Likewise.
27990 * cfgbuild.c : Likewise.
27991 * cfgcleanup.c : Likewise.
27992 * cfgexpand.c : Likewise.
27993 * cfghooks.c : Likewise.
27994 * cfgloop.c : Likewise.
27995 * cfgloop.h : Likewise.
27996 * cfgloopanal.c : Likewise.
27997 * cfgloopmanip.c : Likewise.
27998 * cfgrtl.c : Likewise.
27999 * cgraph.c : Likewise.
28000 * cgraphbuild.c : Likewise.
28001 * cgraphclones.c : Likewise.
28002 * cgraphunit.c : Likewise.
28003 * cilk-common.c : Likewise.
28004 * combine-stack-adj.c : Likewise.
28005 * combine.c : Likewise.
28006 * compare-elim.c : Likewise.
28007 * context.c : Likewise.
28008 * convert.c : Likewise.
28009 * coverage.c : Likewise.
28010 * cppbuiltin.c : Likewise.
28011 * cprop.c : Likewise.
28012 * cse.c : Likewise.
28013 * cselib.c : Likewise.
28014 * data-streamer-in.c : Likewise.
28015 * data-streamer-out.c : Likewise.
28016 * data-streamer.c : Likewise.
28017 * data-streamer.h : Likewise.
28018 * dbxout.c : Likewise.
28019 * dce.c : Likewise.
28020 * ddg.c : Likewise.
28021 * debug.c : Likewise.
28022 * df-core.c : Likewise.
28023 * df-problems.c : Likewise.
28024 * df-scan.c : Likewise.
28025 * df.h : Likewise.
28026 * dfp.c : Likewise.
28027 * dojump.c : Likewise.
28028 * dominance.c : Likewise.
28029 * domwalk.c : Likewise.
28030 * double-int.c : Likewise.
28031 * dse.c : Likewise.
28032 * dumpfile.c : Likewise.
28033 * dwarf2asm.c : Likewise.
28034 * dwarf2cfi.c : Likewise.
28035 * dwarf2out.c : Likewise.
28036 * emit-rtl.c : Likewise.
28037 * et-forest.c : Likewise.
28038 * except.c : Likewise.
28039 * except.h : Likewise.
28040 * explow.c : Likewise.
28041 * expmed.c : Likewise.
28042 * expr.c : Likewise.
28043 * final.c : Likewise.
28044 * fixed-value.c : Likewise.
28045 * fold-const.c : Likewise.
28046 * function.c : Likewise.
28047 * fwprop.c : Likewise.
28048 * gcc-plugin.h : Likewise.
28049 * gcc.c : Likewise.
28050 * gcse-common.c : Likewise.
28051 * gcse.c : Likewise.
28052 * genattrtab.c : Likewise.
28053 * genautomata.c : Likewise.
28054 * genconditions.c : Likewise.
28055 * genemit.c : Likewise.
28056 * generic-match-head.c : Likewise.
28057 * genextract.c : Likewise.
28058 * gengtype-state.c : Likewise.
28059 * gengtype.c : Likewise.
28060 * genhooks.c : Likewise.
28061 * genmatch.c : Likewise.
28062 * genmodes.c : Likewise.
28063 * genrecog.c : Likewise.
28064 * gensupport.c : Likewise.
28065 * ggc-common.c : Likewise.
28066 * ggc-internal.h : Likewise.
28067 * ggc-none.c : Likewise.
28068 * ggc-page.c : Likewise.
28069 * gimple-builder.c : Likewise.
28070 * gimple-expr.c : Likewise.
28071 * gimple-fold.c : Likewise.
28072 * gimple-iterator.c : Likewise.
28073 * gimple-low.c : Likewise.
28074 * gimple-match-head.c : Likewise.
28075 * gimple-pretty-print.c : Likewise.
28076 * gimple-ssa-isolate-paths.c : Likewise.
28077 * gimple-ssa-strength-reduction.c : Likewise.
28078 * gimple-ssa.h : Likewise.
28079 * gimple-streamer-in.c : Likewise.
28080 * gimple-streamer-out.c : Likewise.
28081 * gimple-streamer.h : Likewise.
28082 * gimple-walk.c : Likewise.
28083 * gimple.c : Likewise.
28084 * gimplify-me.c : Likewise.
28085 * gimplify.c : Likewise.
28086 * godump.c : Likewise.
28087 * graph.c : Likewise.
28088 * graphds.c : Likewise.
28089 * graphite-blocking.c : Likewise.
28090 * graphite-dependences.c : Likewise.
28091 * graphite-interchange.c : Likewise.
28092 * graphite-isl-ast-to-gimple.c : Likewise.
28093 * graphite-optimize-isl.c : Likewise.
28094 * graphite-poly.c : Likewise.
28095 * graphite-scop-detection.c : Likewise.
28096 * graphite-sese-to-poly.c : Likewise.
28097 * graphite.c : Likewise.
28098 * haifa-sched.c : Likewise.
28099 * hard-reg-set.h : Likewise.
28100 * hw-doloop.c : Likewise.
28101 * ifcvt.c : Likewise.
28102 * inchash.c : Likewise.
28103 * incpath.c : Likewise.
28104 * init-regs.c : Likewise.
28105 * input.c : Likewise.
28106 * internal-fn.c : Likewise.
28107 * ipa-chkp.c : Likewise.
28108 * ipa-comdats.c : Likewise.
28109 * ipa-cp.c : Likewise.
28110 * ipa-devirt.c : Likewise.
28111 * ipa-icf-gimple.c : Likewise.
28112 * ipa-icf.c : Likewise.
28113 * ipa-inline-analysis.c : Likewise.
28114 * ipa-inline-transform.c : Likewise.
28115 * ipa-inline.c : Likewise.
28116 * ipa-polymorphic-call.c : Likewise.
28117 * ipa-profile.c : Likewise.
28118 * ipa-prop.c : Likewise.
28119 * ipa-pure-const.c : Likewise.
28120 * ipa-ref.c : Likewise.
28121 * ipa-reference.c : Likewise.
28122 * ipa-split.c : Likewise.
28123 * ipa-utils.c : Likewise.
28124 * ipa-visibility.c : Likewise.
28125 * ipa.c : Likewise.
28126 * ira-build.c : Likewise.
28127 * ira-color.c : Likewise.
28128 * ira-conflicts.c : Likewise.
28129 * ira-costs.c : Likewise.
28130 * ira-emit.c : Likewise.
28131 * ira-lives.c : Likewise.
28132 * ira.c : Likewise.
28133 * jump.c : Likewise.
28134 * langhooks.c : Likewise.
28135 * lcm.c : Likewise.
28136 * libfuncs.h : Likewise.
28137 * lists.c : Likewise.
28138 * loop-doloop.c : Likewise.
28139 * loop-init.c : Likewise.
28140 * loop-invariant.c : Likewise.
28141 * loop-iv.c : Likewise.
28142 * loop-unroll.c : Likewise.
28143 * lower-subreg.c : Likewise.
28144 * lra-assigns.c : Likewise.
28145 * lra-coalesce.c : Likewise.
28146 * lra-constraints.c : Likewise.
28147 * lra-eliminations.c : Likewise.
28148 * lra-lives.c : Likewise.
28149 * lra-remat.c : Likewise.
28150 * lra-spills.c : Likewise.
28151 * lra.c : Likewise.
28152 * lto-cgraph.c : Likewise.
28153 * lto-compress.c : Likewise.
28154 * lto-opts.c : Likewise.
28155 * lto-section-in.c : Likewise.
28156 * lto-section-out.c : Likewise.
28157 * lto-streamer-in.c : Likewise.
28158 * lto-streamer-out.c : Likewise.
28159 * lto-streamer.c : Likewise.
28160 * lto-streamer.h : Likewise.
28161 * mcf.c : Likewise.
28162 * mode-switching.c : Likewise.
28163 * modulo-sched.c : Likewise.
28164 * omega.c : Likewise.
28165 * omp-low.c : Likewise.
28166 * optabs.c : Likewise.
28167 * opts-global.c : Likewise.
28168 * opts.h : Likewise.
28169 * passes.c : Likewise.
28170 * plugin.c : Likewise.
28171 * postreload-gcse.c : Likewise.
28172 * postreload.c : Likewise.
28173 * predict.c : Likewise.
28174 * print-rtl.c : Likewise.
28175 * print-tree.c : Likewise.
28176 * profile.c : Likewise.
28177 * read-md.c : Likewise.
28178 * read-md.h : Likewise.
28179 * read-rtl.c : Likewise.
28180 * real.c : Likewise.
28181 * realmpfr.c : Likewise.
28182 * recog.c : Likewise.
28183 * ree.c : Likewise.
28184 * reg-stack.c : Likewise.
28185 * regcprop.c : Likewise.
28186 * reginfo.c : Likewise.
28187 * regrename.c : Likewise.
28188 * regstat.c : Likewise.
28189 * reload.c : Likewise.
28190 * reload1.c : Likewise.
28191 * reorg.c : Likewise.
28192 * resource.c : Likewise.
28193 * rtl-chkp.c : Likewise.
28194 * rtl.c : Likewise.
28195 * rtl.h : Likewise.
28196 * rtlanal.c : Likewise.
28197 * rtlhash.c : Likewise.
28198 * rtlhash.h : Likewise.
28199 * rtlhooks.c : Likewise.
28200 * sanopt.c : Likewise.
28201 * sched-deps.c : Likewise.
28202 * sched-ebb.c : Likewise.
28203 * sched-rgn.c : Likewise.
28204 * sched-vis.c : Likewise.
28205 * sdbout.c : Likewise.
28206 * sel-sched-dump.c : Likewise.
28207 * sel-sched-ir.c : Likewise.
28208 * sel-sched-ir.h : Likewise.
28209 * sel-sched.c : Likewise.
28210 * sese.c : Likewise.
28211 * shrink-wrap.c : Likewise.
28212 * shrink-wrap.h : Likewise.
28213 * simplify-rtx.c : Likewise.
28214 * stack-ptr-mod.c : Likewise.
28215 * statistics.c : Likewise.
28216 * stmt.c : Likewise.
28217 * stor-layout.c : Likewise.
28218 * store-motion.c : Likewise.
28219 * stringpool.c : Likewise.
28220 * symtab.c : Likewise.
28221 * target-globals.c : Likewise.
28222 * targhooks.c : Likewise.
28223 * tlink.c : Likewise.
28224 * toplev.c : Likewise.
28225 * tracer.c : Likewise.
28226 * trans-mem.c : Likewise.
28227 * tree-affine.c : Likewise.
28228 * tree-affine.h : Likewise.
28229 * tree-browser.c : Likewise.
28230 * tree-call-cdce.c : Likewise.
28231 * tree-cfg.c : Likewise.
28232 * tree-cfgcleanup.c : Likewise.
28233 * tree-chkp-opt.c : Likewise.
28234 * tree-chkp.c : Likewise.
28235 * tree-chrec.c : Likewise.
28236 * tree-complex.c : Likewise.
28237 * tree-data-ref.c : Likewise.
28238 * tree-dfa.c : Likewise.
28239 * tree-diagnostic.c : Likewise.
28240 * tree-dump.c : Likewise.
28241 * tree-eh.c : Likewise.
28242 * tree-eh.h : Likewise.
28243 * tree-emutls.c : Likewise.
28244 * tree-hasher.h : Likewise.
28245 * tree-if-conv.c : Likewise.
28246 * tree-inline.c : Likewise.
28247 * tree-inline.h : Likewise.
28248 * tree-into-ssa.c : Likewise.
28249 * tree-iterator.c : Likewise.
28250 * tree-loop-distribution.c : Likewise.
28251 * tree-nested.c : Likewise.
28252 * tree-nrv.c : Likewise.
28253 * tree-object-size.c : Likewise.
28254 * tree-outof-ssa.c : Likewise.
28255 * tree-parloops.c : Likewise.
28256 * tree-phinodes.c : Likewise.
28257 * tree-predcom.c : Likewise.
28258 * tree-pretty-print.c : Likewise.
28259 * tree-profile.c : Likewise.
28260 * tree-scalar-evolution.c : Likewise.
28261 * tree-sra.c : Likewise.
28262 * tree-ssa-address.c : Likewise.
28263 * tree-ssa-alias.c : Likewise.
28264 * tree-ssa-ccp.c : Likewise.
28265 * tree-ssa-coalesce.c : Likewise.
28266 * tree-ssa-copy.c : Likewise.
28267 * tree-ssa-copyrename.c : Likewise.
28268 * tree-ssa-dce.c : Likewise.
28269 * tree-ssa-dom.c : Likewise.
28270 * tree-ssa-dse.c : Likewise.
28271 * tree-ssa-forwprop.c : Likewise.
28272 * tree-ssa-ifcombine.c : Likewise.
28273 * tree-ssa-live.c : Likewise.
28274 * tree-ssa-loop-ch.c : Likewise.
28275 * tree-ssa-loop-im.c : Likewise.
28276 * tree-ssa-loop-ivcanon.c : Likewise.
28277 * tree-ssa-loop-ivopts.c : Likewise.
28278 * tree-ssa-loop-manip.c : Likewise.
28279 * tree-ssa-loop-niter.c : Likewise.
28280 * tree-ssa-loop-prefetch.c : Likewise.
28281 * tree-ssa-loop-unswitch.c : Likewise.
28282 * tree-ssa-loop.c : Likewise.
28283 * tree-ssa-math-opts.c : Likewise.
28284 * tree-ssa-operands.c : Likewise.
28285 * tree-ssa-phiopt.c : Likewise.
28286 * tree-ssa-phiprop.c : Likewise.
28287 * tree-ssa-pre.c : Likewise.
28288 * tree-ssa-propagate.c : Likewise.
28289 * tree-ssa-reassoc.c : Likewise.
28290 * tree-ssa-sccvn.c : Likewise.
28291 * tree-ssa-scopedtables.c : Likewise.
28292 * tree-ssa-sink.c : Likewise.
28293 * tree-ssa-strlen.c : Likewise.
28294 * tree-ssa-structalias.c : Likewise.
28295 * tree-ssa-tail-merge.c : Likewise.
28296 * tree-ssa-ter.c : Likewise.
28297 * tree-ssa-threadedge.c : Likewise.
28298 * tree-ssa-threadupdate.c : Likewise.
28299 * tree-ssa-uncprop.c : Likewise.
28300 * tree-ssa-uninit.c : Likewise.
28301 * tree-ssa.c : Likewise.
28302 * tree-ssanames.c : Likewise.
28303 * tree-stdarg.c : Likewise.
28304 * tree-streamer-in.c : Likewise.
28305 * tree-streamer-out.c : Likewise.
28306 * tree-streamer.c : Likewise.
28307 * tree-streamer.h : Likewise.
28308 * tree-switch-conversion.c : Likewise.
28309 * tree-tailcall.c : Likewise.
28310 * tree-vect-data-refs.c : Likewise.
28311 * tree-vect-generic.c : Likewise.
28312 * tree-vect-loop-manip.c : Likewise.
28313 * tree-vect-loop.c : Likewise.
28314 * tree-vect-patterns.c : Likewise.
28315 * tree-vect-slp.c : Likewise.
28316 * tree-vect-stmts.c : Likewise.
28317 * tree-vectorizer.c : Likewise.
28318 * tree-vectorizer.h : Likewise.
28319 * tree-vrp.c : Likewise.
28320 * tree.c : Likewise.
28321 * tsan.c : Likewise.
28322 * ubsan.c : Likewise.
28323 * valtrack.c : Likewise.
28324 * valtrack.h : Likewise.
28325 * value-prof.c : Likewise.
28326 * var-tracking.c : Likewise.
28327 * varasm.c : Likewise.
28328 * varpool.c : Likewise.
28329 * vec.c: Likewise.
28330 * vmsdbgout.c : Likewise.
28331 * vtable-verify.c : Likewise.
28332 * vtable-verify.h : Likewise.
28333 * web.c : Likewise.
28334 * wide-int.cc : Likewise.
28335 * xcoffout.c : Likewise.
28336 * config/aarch64/aarch64-builtins.c : Likewise.
28337 * config/aarch64/aarch64.c : Likewise.
28338 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
28339 * config/alpha/alpha.c : Likewise.
28340 * config/arc/arc.c : Likewise.
28341 * config/arm/aarch-common.c : Likewise.
28342 * config/arm/arm-builtins.c : Likewise.
28343 * config/arm/arm-c.c : Likewise.
28344 * config/arm/arm.c : Likewise.
28345 * config/avr/avr-c.c : Likewise.
28346 * config/avr/avr-log.c : Likewise.
28347 * config/avr/avr.c : Likewise.
28348 * config/bfin/bfin.c : Likewise.
28349 * config/c6x/c6x.c : Likewise.
28350 * config/cr16/cr16.c : Likewise.
28351 * config/cris/cris.c : Likewise.
28352 * config/darwin-c.c : Likewise.
28353 * config/darwin.c : Likewise.
28354 * config/default-c.c : Likewise.
28355 * config/epiphany/epiphany.c : Likewise.
28356 * config/epiphany/mode-switch-use.c : Likewise.
28357 * config/epiphany/resolve-sw-modes.c : Likewise.
28358 * config/fr30/fr30.c : Likewise.
28359 * config/frv/frv.c : Likewise.
28360 * config/ft32/ft32.c : Likewise.
28361 * config/glibc-c.c : Likewise.
28362 * config/h8300/h8300.c : Likewise.
28363 * config/i386/i386-c.c : Likewise.
28364 * config/i386/i386.c : Likewise.
28365 * config/i386/msformat-c.c : Likewise.
28366 * config/i386/winnt-cxx.c : Likewise.
28367 * config/i386/winnt-stubs.c : Likewise.
28368 * config/i386/winnt.c : Likewise.
28369 * config/ia64/ia64-c.c : Likewise.
28370 * config/ia64/ia64.c : Likewise.
28371 * config/iq2000/iq2000.c : Likewise.
28372 * config/lm32/lm32.c : Likewise.
28373 * config/m32c/m32c-pragma.c : Likewise.
28374 * config/m32c/m32c.c : Likewise.
28375 * config/m32r/m32r.c : Likewise.
28376 * config/m68k/m68k.c : Likewise.
28377 * config/mcore/mcore.c : Likewise.
28378 * config/mep/mep-pragma.c : Likewise.
28379 * config/mep/mep.c : Likewise.
28380 * config/microblaze/microblaze-c.c : Likewise.
28381 * config/microblaze/microblaze.c : Likewise.
28382 * config/mips/mips.c : Likewise.
28383 * config/mmix/mmix.c : Likewise.
28384 * config/mn10300/mn10300.c : Likewise.
28385 * config/moxie/moxie.c : Likewise.
28386 * config/msp430/msp430-c.c : Likewise.
28387 * config/msp430/msp430.c : Likewise.
28388 * config/nds32/nds32-cost.c : Likewise.
28389 * config/nds32/nds32-fp-as-gp.c : Likewise.
28390 * config/nds32/nds32-intrinsic.c : Likewise.
28391 * config/nds32/nds32-isr.c : Likewise.
28392 * config/nds32/nds32-md-auxiliary.c : Likewise.
28393 * config/nds32/nds32-memory-manipulation.c : Likewise.
28394 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
28395 * config/nds32/nds32-predicates.c : Likewise.
28396 * config/nds32/nds32.c : Likewise.
28397 * config/nios2/nios2.c : Likewise.
28398 * config/nvptx/nvptx.c : Likewise.
28399 * config/pa/pa.c : Likewise.
28400 * config/pdp11/pdp11.c : Likewise.
28401 * config/rl78/rl78-c.c : Likewise.
28402 * config/rl78/rl78.c : Likewise.
28403 * config/rs6000/rs6000-c.c : Likewise.
28404 * config/rs6000/rs6000.c : Likewise.
28405 * config/rx/rx.c : Likewise.
28406 * config/s390/s390-c.c : Likewise.
28407 * config/s390/s390.c : Likewise.
28408 * config/sh/sh-c.c : Likewise.
28409 * config/sh/sh-mem.cc : Likewise.
28410 * config/sh/sh.c : Likewise.
28411 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
28412 * config/sh/sh_treg_combine.cc : Likewise.
28413 * config/sol2-c.c : Likewise.
28414 * config/sol2-cxx.c : Likewise.
28415 * config/sol2-stubs.c : Likewise.
28416 * config/sol2.c : Likewise.
28417 * config/sparc/sparc-c.c : Likewise.
28418 * config/sparc/sparc.c : Likewise.
28419 * config/spu/spu-c.c : Likewise.
28420 * config/spu/spu.c : Likewise.
28421 * config/stormy16/stormy16.c : Likewise.
28422 * config/tilegx/mul-tables.c : Likewise.
28423 * config/tilegx/tilegx-c.c : Likewise.
28424 * config/tilegx/tilegx.c : Likewise.
28425 * config/tilepro/mul-tables.c : Likewise.
28426 * config/tilepro/tilepro-c.c : Likewise.
28427 * config/tilepro/tilepro.c : Likewise.
28428 * config/v850/v850-c.c : Likewise.
28429 * config/v850/v850.c : Likewise.
28430 * config/vax/vax.c : Likewise.
28431 * config/visium/visium.c : Likewise.
28432 * config/vms/vms-c.c : Likewise.
28433 * config/vms/vms.c : Likewise.
28434 * config/vxworks.c : Likewise.
28435 * config/winnt-c.c : Likewise.
28436 * config/xtensa/xtensa.c : Likewise.
28437
28438 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
28439
28440 PR lto/65378
28441 * ipa-utils.h (warn_types_mismatch): Update prototype.
28442 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
28443 parameters.
28444 (type_mismatch_p): New function.
28445 (warn_types_mismatch): Reorg to work better on non-C++ types.
28446 (odr_types_equivalent_p): Add loc1/loc2 parameters.
28447 (add_type_duplicate): Update.
28448
28449 2015-06-08 Tom de Vries <tom@codesourcery.com>
28450
28451 PR rtl-optimization/66444
28452 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
28453 call_used_regs.
28454
28455 2015-06-08 Richard Biener <rguenther@suse.de>
28456
28457 PR tree-optimization/66422
28458 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
28459 block after inserted gcc_unreachable.
28460
28461 2015-06-08 Nick Clifton <nickc@redhat.com>
28462
28463 * config/rx/rx.c (rx_function_value): Do not promote vector types.
28464 (rx_promote_function_mode): Likewise.
28465 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
28466
28467 2015-06-08 Jakub Jelinek <jakub@redhat.com>
28468
28469 * genattrtab.c (insn_alternatives): Change type from int *
28470 to uint64_t *.
28471 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
28472 (get_attr_value): Change type of num_alt to uint64_t.
28473 (compute_alternative_mask): Change return type from
28474 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
28475 (make_alternative_compare, mk_attr_alt): Change argument type
28476 from int to uint64_t.
28477 (simplify_test_exp): Change type of i from int to uint64_t.
28478 Shift ((uint64_t) 1) instead of 1 up.
28479 (main): Adjust oballocvec first argument from int to uint64_t.
28480 Shift ((uint64_t) 1) instead of 1 up.
28481
28482 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
28483
28484 PR other/65366
28485 * gdbhooks.py: Import sys.
28486 (intptr): New function. Replace int(...) by intptr(...).
28487
28488 2015-06-08 Richard Biener <rguenther@suse.de>
28489
28490 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
28491 adjustment for gaps at the end of a SLP load group properly.
28492 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
28493 all permutations we can generate.
28494 (vect_transform_slp_perm_load): Use the correct group-size.
28495
28496 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
28497
28498 * genmatch.c (expr::gen_transform): For conditions, guess the type
28499 from the second operand.
28500
28501 2015-06-08 Tom de Vries <tom@codesourcery.com>
28502
28503 PR tree-optimization/66442
28504 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
28505 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
28506 if the loop latch is not a singleton. Use
28507 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
28508
28509 2015-06-08 Marek Polacek <polacek@redhat.com>
28510
28511 PR sanitizer/66452
28512 * toplev.c (check_global_declaration): Don't warn about artificial
28513 decls.
28514
28515 2015-06-08 Tom de Vries <tom@codesourcery.com>
28516
28517 PR tree-optimization/66436
28518 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
28519 dump file.
28520 * gimplify.c: Add tree-dump.h include.
28521 (gimplify_function_tree): Dump function to gimple dump file.
28522 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
28523 dump file.
28524
28525 2015-06-08 Tom de Vries <tom@codesourcery.com>
28526
28527 PR tree-optimization/66435
28528 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
28529 function.
28530
28531 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
28532
28533 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
28534 of ptr_type_node to not be ptr_to_node.
28535 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
28536 TREE_TYPE of pointers.
28537 * gimple-expr.c (useless_type_conversion): Reorder the check for
28538 function pointers and TYPE_CANONICAL.
28539
28540 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
28541
28542 PR bootstrap/66319
28543 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
28544 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
28545 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
28546 later.
28547 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
28548 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
28549 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
28550 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
28551 and non iso if unix2003.
28552
28553 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
28554
28555 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
28556
28557 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
28558
28559 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
28560 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
28561 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
28562 except.c, final.c, function.c, gcse-common.c, genemit.c,
28563 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
28564 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
28565 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
28566 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
28567 more derived ones.
28568
28569 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
28570
28571 * combine.c (combine_split_insns): Remove cast.
28572 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
28573 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
28574 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
28575 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
28576 * genemit.c (gen_split): Change return type of generated functions to
28577 rtx_insn.
28578 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
28579 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
28580 gen_peephole2_* functions.
28581 (print_subroutine, main): Likewise.
28582 * recog.c (peephole2_optimize): Remove cast.
28583 (peep2_next_insn): Promote return type to rtx_insn.
28584 * recog.h (peep2_next_insn): Fix prototype.
28585 * rtl.h (try_split, split_insns): Likewise.
28586
28587 2015-06-06 DJ Delorie <dj@redhat.com>
28588
28589 * config/msp430/msp430.c (msp430_asm_integer): Support addition
28590 and subtraction too.
28591
28592 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
28593
28594 PR target/66410
28595 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
28596 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
28597 instead of Snd. Disparage Sid/z alternative with '^'.
28598
28599 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
28600
28601 * dwarf2out.c: Remove deferred_locations*.
28602 (dwarf2_debug_hooks): Add early_finish hook.
28603 Remove global_decl hook.
28604 Add early_global_decl and late_global_decl hook.
28605 New global early_dwarf.
28606 New structure set_early_dwarf.
28607 (output_die): Indicate whether a DIE was generated early
28608 when generating assembly with -dA.
28609 (struct limbo_die_struct): Document created_for field.
28610 Remove file_table_last_lookup.
28611 (remove_AT): Return TRUE if successful.
28612 (remove_child_TAG): Clear die_parent.
28613 (reparent_child): New function abstracted from...
28614 (splice_child_die): ...here.
28615 (new_die): ICE if a DIE ends up in limbo too late.
28616 (check_die): New.
28617 (defer_location): Remove.
28618 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
28619 (fill_variable_array_bounds): New.
28620 (decl_start_label): Call fill_variable_array_bounds.
28621 (gen_formal_parameter_die): Rewrite to reuse previously generated
28622 DIEs.
28623 (gen_subprogram_die): Same.
28624 (gen_variable_die): Same.
28625 (gen_const_die): Same.
28626 (gen_label_die): Same.
28627 (gen_lexical_block_die): Same.
28628 (decl_will_get_specification_p): New.
28629 (local_function_static): New.
28630 (gen_struct_or_union_type_die): Fill in variable-length fields.
28631 (gen_typedef_die): Fill in variable-length typedefs.
28632 (gen_tagged_type_die): Gracefully return on error_mark_node.
28633 Handle re-entrancy.
28634 (gen_type_die_with_usage): Handle variable-length types.
28635 Remove duplicate code for ARRAY_TYPE case.
28636 (process_scope_var): Only process imported modules during early
28637 dwarf.
28638 (dwarf2out_early_global_decl): New.
28639 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
28640 (dwarf2out_type_decl): Set early_dwarf while calling
28641 dwarf2out_decl.
28642 (dwarf2out_decl): Verify that we did not recreate a previously
28643 generated DIE.
28644 Do not return on DECL_EXTERNALs in VAR_DECLs.
28645 Abstract some code to local_function_static.
28646 (lookup_filename): Remove use of file_table_last_lookup.
28647 Gracefully exit on missing file_name.
28648 (dwarf2out_finish): Verify limbo list.
28649 Remove deferred_locations_list use.
28650 Move deferred_asm_name and limbo flushing to...
28651 (dwarf2out_early_finish): ...here. New.
28652 (dwarf2out_c_finalize): Remove set of deferred_location_list,
28653 deferred_asm_name, and file_table_last_lookup.
28654 * cgraph.h (referred_to_p): Add default argument.
28655 * cgraphunit.c (referred_to_p): Add and handle include_self
28656 argument.
28657 (analyze_functions): Add first_time argument.
28658 Call check_global_declaration for all symbols.
28659 Call late_global_decl for nodes for moribund nodes.
28660 (finalize_compilation_unit): Add new argument to
28661 analyze_functions.
28662 Call early_global_decl for functions.
28663 Call early_finish debug hook.
28664 * dbxout.c (dbxout_early_global_decl): New.
28665 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
28666 (dbx_debug_hooks): Add new hooks.
28667 (xcoff_debug_hooks): Same.
28668 * debug.c (do_nothing_debug_hooks): Add early_finish field.
28669 Add early and late debug hooks.
28670 Remove global_decl hook.
28671 * debug.h (struct gcc_debug_hooks): Add early_finish,
28672 early_global_decl, and late_global_decl fields.
28673 Remove global_decl field.
28674 Document gcc_debug_hooks.
28675 * gengtype.c (output_typename): Remove.
28676 * godump.c (go_early_global_decl): New.
28677 (go_late_global_decl): New.
28678 (go_global_decl): Remove.
28679 (dump_go_spec_init): Remove global_decl. Add
28680 {early,late}_global_decl.
28681 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
28682 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
28683 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
28684 (write_global_declarations): Remove.
28685 (global_decl_processing): New.
28686 * langhooks.h (struct lang_hooks_for_decls): Remove
28687 final_write_globals field.
28688 Add post_compilation_parsing_cleanups field.
28689 * passes.c (rest_of_decl_compilation): Call early_global_decl.
28690 * sdbout.c: Add early and late_global_decl hooks. Remove
28691 sdbout_global_decl hook.
28692 Add early_finish field for sdb_debug_hooks.
28693 (sdbout_global_decl): Remove.
28694 (sdbout_early_global_decl): New.
28695 (sdbout_late_global_decl): New.
28696 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
28697 * toplev.c (check_global_declaration): Rename from
28698 check_global_declaration_1.
28699 Adapt to use symtab infrastructure.
28700 (check_global_declarations): Remove.
28701 (emit_debug_global_declarations): Remove.
28702 (compile_file): Remove call to final_write_globals langhook.
28703 Run the actual compilation process.
28704 Perform any post compilation parser cleanups.
28705 Generate late debug info.
28706 * toplev.h (check_global_declaration): New.
28707 (check_global_declaration_1): Remove.
28708 (check_global_declarations): Remove.
28709 (write_global_declarations): Remove.
28710 (emit_debug_global_declarations): Remove.
28711 (global_decl_processing): New.
28712 * tree-core.h (struct tree_block): Add DIE field.
28713 * tree.h (BLOCK_DIE): New.
28714 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
28715 throughout.
28716 (vmsdbgout_early_global_decl): New.
28717 (vmsdbgout_late_global_decl): New.
28718 Add early_finish debug hook field to vmsdbg_debug_hooks.
28719 Remove vmsdbgout_decl to vmsdbgout_function_decl.
28720 Add early and late_global_decl debug hooks.
28721
28722 2015-06-05 Julian Brown <julian@codesourcery.com>
28723 Sandra Loosemore <sandra@codesourcery.com>
28724
28725 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
28726 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
28727 to print-sysroot-suffix.sh script.
28728
28729 2015-06-05 Tom de Vries <tom@codesourcery.com>
28730
28731 merge from gomp4 branch:
28732 2015-05-28 Tom de Vries <tom@codesourcery.com>
28733
28734 PR tree-optimization/65443
28735 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
28736 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
28737 (try_transform_to_exit_first_loop_alt): New function.
28738 (transform_to_exit_first_loop): Use
28739 try_transform_to_exit_first_loop_alt.
28740
28741 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
28742
28743 * builtins.c (expand_builtin_atomic_compare_exchange): Call
28744 emit_cmp_and_jump_insns with the mode of target.
28745
28746 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28747
28748 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
28749
28750 2015-06-04 DJ Delorie <dj@redhat.com>
28751
28752 * config/msp430/msp430.md (movsi_s): New. Special case for
28753 storing a 20-bit symbol into a 32-bit register.
28754 * config/msp430/msp430.c (msp430_subreg): Add support for it.
28755 * config/msp430/predicates.md (msp430_symbol_operand): New.
28756
28757 2015-06-04 Sriraman Tallam <tmsriram@google.com>
28758
28759 * calls.c (prepare_call_address): Check for noplt
28760 attribute.
28761 * config/i386/i386.c (ix86_expand_call): Check
28762 for noplt attribute.
28763 (ix86_nopic_noplt_attribute_p): New function.
28764 (ix86_output_call_insn): Output indirect call for non-pic
28765 no plt calls.
28766 * doc/extend.texi (noplt): Document new attribute.
28767 * doc/invoke.texi: Document new attribute.
28768
28769 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
28770
28771 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
28772 real.h, and fixed-value.h when included in host source files.
28773 * double-int.h: Remove redundant #includes listed above.
28774 * fixed-value.h: Likewise.
28775 * real.h: Likewise.
28776 * wide-int.h: Likewise.
28777 * inchash.h: Likewise.
28778 * rtl.h: Add some include files When included from a generator file.
28779 * target.h: Remove wide-int.h and insn-modes.h from the include list.
28780 * internal-fn.h: Don't include coretypes.h.
28781 * alias.c: Adjust includes for restructured coretypes.h.
28782 * asan.c: Likewise.
28783 * attribs.c: Likewise.
28784 * auto-inc-dec.c: Likewise.
28785 * auto-profile.c: Likewise.
28786 * bb-reorder.c: Likewise.
28787 * bt-load.c: Likewise.
28788 * builtins.c: Likewise.
28789 * caller-save.c: Likewise.
28790 * calls.c: Likewise.
28791 * ccmp.c: Likewise.
28792 * cfg.c: Likewise.
28793 * cfganal.c: Likewise.
28794 * cfgbuild.c: Likewise.
28795 * cfgcleanup.c: Likewise.
28796 * cfgexpand.c: Likewise.
28797 * cfghooks.c: Likewise.
28798 * cfgloop.c: Likewise.
28799 * cfgloop.h: Likewise.
28800 * cfgloopanal.c: Likewise.
28801 * cfgloopmanip.c: Likewise.
28802 * cfgrtl.c: Likewise.
28803 * cgraph.c: Likewise.
28804 * cgraphbuild.c: Likewise.
28805 * cgraphclones.c: Likewise.
28806 * cgraphunit.c: Likewise.
28807 * cilk-common.c: Likewise.
28808 * combine-stack-adj.c: Likewise.
28809 * combine.c: Likewise.
28810 * compare-elim.c: Likewise.
28811 * convert.c: Likewise.
28812 * coverage.c: Likewise.
28813 * cppbuiltin.c: Likewise.
28814 * cprop.c: Likewise.
28815 * cse.c: Likewise.
28816 * cselib.c: Likewise.
28817 * data-streamer-in.c: Likewise.
28818 * data-streamer-out.c: Likewise.
28819 * data-streamer.c: Likewise.
28820 * dbxout.c: Likewise.
28821 * dce.c: Likewise.
28822 * ddg.c: Likewise.
28823 * debug.c: Likewise.
28824 * df-core.c: Likewise.
28825 * df-problems.c: Likewise.
28826 * df-scan.c: Likewise.
28827 * df.h: Likewise.
28828 * dfp.c: Likewise.
28829 * dojump.c: Likewise.
28830 * dominance.c: Likewise.
28831 * domwalk.c: Likewise.
28832 * double-int.c: Likewise.
28833 * dse.c: Likewise.
28834 * dumpfile.c: Likewise.
28835 * dwarf2asm.c: Likewise.
28836 * dwarf2cfi.c: Likewise.
28837 * dwarf2out.c: Likewise.
28838 * dwarf2out.h: Likewise.
28839 * emit-rtl.c: Likewise.
28840 * et-forest.c: Likewise.
28841 * except.c: Likewise.
28842 * explow.c: Likewise.
28843 * expmed.c: Likewise.
28844 * expr.c: Likewise.
28845 * final.c: Likewise.
28846 * fixed-value.c: Likewise.
28847 * fold-const.c: Likewise.
28848 * function.c: Likewise.
28849 * fwprop.c: Likewise.
28850 * gcc-plugin.h: Likewise.
28851 * gcse.c: Likewise.
28852 * generic-match-head.c: Likewise.
28853 * ggc-page.c: Likewise.
28854 * gimple-builder.c: Likewise.
28855 * gimple-expr.c: Likewise.
28856 * gimple-fold.c: Likewise.
28857 * gimple-iterator.c: Likewise.
28858 * gimple-low.c: Likewise.
28859 * gimple-match-head.c: Likewise.
28860 * gimple-pretty-print.c: Likewise.
28861 * gimple-ssa-isolate-paths.c: Likewise.
28862 * gimple-ssa-strength-reduction.c: Likewise.
28863 * gimple-streamer-in.c: Likewise.
28864 * gimple-streamer-out.c: Likewise.
28865 * gimple-streamer.h: Likewise.
28866 * gimple-walk.c: Likewise.
28867 * gimple.c: Likewise.
28868 * gimplify-me.c: Likewise.
28869 * gimplify.c: Likewise.
28870 * godump.c: Likewise.
28871 * graph.c: Likewise.
28872 * graphite-blocking.c: Likewise.
28873 * graphite-dependences.c: Likewise.
28874 * graphite-interchange.c: Likewise.
28875 * graphite-isl-ast-to-gimple.c: Likewise.
28876 * graphite-optimize-isl.c: Likewise.
28877 * graphite-poly.c: Likewise.
28878 * graphite-scop-detection.c: Likewise.
28879 * graphite-sese-to-poly.c: Likewise.
28880 * graphite.c: Likewise.
28881 * haifa-sched.c: Likewise.
28882 * hooks.h: Likewise.
28883 * hw-doloop.c: Likewise.
28884 * ifcvt.c: Likewise.
28885 * incpath.c: Likewise.
28886 * init-regs.c: Likewise.
28887 * internal-fn.c: Likewise.
28888 * ipa-chkp.c: Likewise.
28889 * ipa-comdats.c: Likewise.
28890 * ipa-cp.c: Likewise.
28891 * ipa-devirt.c: Likewise.
28892 * ipa-icf-gimple.c: Likewise.
28893 * ipa-icf.c: Likewise.
28894 * ipa-inline-analysis.c: Likewise.
28895 * ipa-inline-transform.c: Likewise.
28896 * ipa-inline.c: Likewise.
28897 * ipa-polymorphic-call.c: Likewise.
28898 * ipa-profile.c: Likewise.
28899 * ipa-prop.c: Likewise.
28900 * ipa-pure-const.c: Likewise.
28901 * ipa-ref.c: Likewise.
28902 * ipa-reference.c: Likewise.
28903 * ipa-split.c: Likewise.
28904 * ipa-utils.c: Likewise.
28905 * ipa-visibility.c: Likewise.
28906 * ipa.c: Likewise.
28907 * ira-build.c: Likewise.
28908 * ira-color.c: Likewise.
28909 * ira-conflicts.c: Likewise.
28910 * ira-costs.c: Likewise.
28911 * ira-emit.c: Likewise.
28912 * ira-lives.c: Likewise.
28913 * ira.c: Likewise.
28914 * jump.c: Likewise.
28915 * langhooks.c: Likewise.
28916 * lcm.c: Likewise.
28917 * loop-doloop.c: Likewise.
28918 * loop-init.c: Likewise.
28919 * loop-invariant.c: Likewise.
28920 * loop-iv.c: Likewise.
28921 * loop-unroll.c: Likewise.
28922 * lower-subreg.c: Likewise.
28923 * lra-assigns.c: Likewise.
28924 * lra-coalesce.c: Likewise.
28925 * lra-constraints.c: Likewise.
28926 * lra-eliminations.c: Likewise.
28927 * lra-lives.c: Likewise.
28928 * lra-remat.c: Likewise.
28929 * lra-spills.c: Likewise.
28930 * lra.c: Likewise.
28931 * lto-cgraph.c: Likewise.
28932 * lto-compress.c: Likewise.
28933 * lto-opts.c: Likewise.
28934 * lto-section-in.c: Likewise.
28935 * lto-section-out.c: Likewise.
28936 * lto-streamer-in.c: Likewise.
28937 * lto-streamer-out.c: Likewise.
28938 * lto-streamer.c: Likewise.
28939 * mcf.c: Likewise.
28940 * mode-switching.c: Likewise.
28941 * modulo-sched.c: Likewise.
28942 * omega.c: Likewise.
28943 * omp-low.c: Likewise.
28944 * optabs.c: Likewise.
28945 * opts-global.c: Likewise.
28946 * passes.c: Likewise.
28947 * plugin.c: Likewise.
28948 * postreload-gcse.c: Likewise.
28949 * postreload.c: Likewise.
28950 * predict.c: Likewise.
28951 * print-rtl.c: Likewise.
28952 * print-tree.c: Likewise.
28953 * profile.c: Likewise.
28954 * real.c: Likewise.
28955 * realmpfr.c: Likewise.
28956 * realmpfr.h: Likewise.
28957 * recog.c: Likewise.
28958 * ree.c: Likewise.
28959 * reg-stack.c: Likewise.
28960 * regcprop.c: Likewise.
28961 * reginfo.c: Likewise.
28962 * regrename.c: Likewise.
28963 * regs.h: Likewise.
28964 * regstat.c: Likewise.
28965 * reload.c: Likewise.
28966 * reload1.c: Likewise.
28967 * reorg.c: Likewise.
28968 * resource.c: Likewise.
28969 * rtl-chkp.c: Likewise.
28970 * rtlanal.c: Likewise.
28971 * rtlhooks.c: Likewise.
28972 * sanopt.c: Likewise.
28973 * sched-deps.c: Likewise.
28974 * sched-ebb.c: Likewise.
28975 * sched-rgn.c: Likewise.
28976 * sched-vis.c: Likewise.
28977 * sdbout.c: Likewise.
28978 * sel-sched-dump.c: Likewise.
28979 * sel-sched-ir.c: Likewise.
28980 * sel-sched.c: Likewise.
28981 * sese.c: Likewise.
28982 * shrink-wrap.c: Likewise.
28983 * shrink-wrap.h: Likewise.
28984 * simplify-rtx.c: Likewise.
28985 * stack-ptr-mod.c: Likewise.
28986 * statistics.c: Likewise.
28987 * stmt.c: Likewise.
28988 * stor-layout.c: Likewise.
28989 * store-motion.c: Likewise.
28990 * stringpool.c: Likewise.
28991 * symtab.c: Likewise.
28992 * target-globals.c: Likewise.
28993 * targhooks.c: Likewise.
28994 * toplev.c: Likewise.
28995 * tracer.c: Likewise.
28996 * trans-mem.c: Likewise.
28997 * tree-affine.c: Likewise.
28998 * tree-affine.h: Likewise.
28999 * tree-browser.c: Likewise.
29000 * tree-call-cdce.c: Likewise.
29001 * tree-cfg.c: Likewise.
29002 * tree-cfgcleanup.c: Likewise.
29003 * tree-chkp-opt.c: Likewise.
29004 * tree-chkp.c: Likewise.
29005 * tree-chrec.c: Likewise.
29006 * tree-complex.c: Likewise.
29007 * tree-data-ref.c: Likewise.
29008 * tree-dfa.c: Likewise.
29009 * tree-diagnostic.c: Likewise.
29010 * tree-dump.c: Likewise.
29011 * tree-eh.c: Likewise.
29012 * tree-emutls.c: Likewise.
29013 * tree-if-conv.c: Likewise.
29014 * tree-inline.c: Likewise.
29015 * tree-into-ssa.c: Likewise.
29016 * tree-iterator.c: Likewise.
29017 * tree-loop-distribution.c: Likewise.
29018 * tree-nested.c: Likewise.
29019 * tree-nrv.c: Likewise.
29020 * tree-object-size.c: Likewise.
29021 * tree-outof-ssa.c: Likewise.
29022 * tree-parloops.c: Likewise.
29023 * tree-phinodes.c: Likewise.
29024 * tree-predcom.c: Likewise.
29025 * tree-pretty-print.c: Likewise.
29026 * tree-pretty-print.h: Likewise.
29027 * tree-profile.c: Likewise.
29028 * tree-scalar-evolution.c: Likewise.
29029 * tree-sra.c: Likewise.
29030 * tree-ssa-address.c: Likewise.
29031 * tree-ssa-alias.c: Likewise.
29032 * tree-ssa-ccp.c: Likewise.
29033 * tree-ssa-coalesce.c: Likewise.
29034 * tree-ssa-copy.c: Likewise.
29035 * tree-ssa-copyrename.c: Likewise.
29036 * tree-ssa-dce.c: Likewise.
29037 * tree-ssa-dom.c: Likewise.
29038 * tree-ssa-dse.c: Likewise.
29039 * tree-ssa-forwprop.c: Likewise.
29040 * tree-ssa-ifcombine.c: Likewise.
29041 * tree-ssa-live.c: Likewise.
29042 * tree-ssa-loop-ch.c: Likewise.
29043 * tree-ssa-loop-im.c: Likewise.
29044 * tree-ssa-loop-ivcanon.c: Likewise.
29045 * tree-ssa-loop-ivopts.c: Likewise.
29046 * tree-ssa-loop-manip.c: Likewise.
29047 * tree-ssa-loop-niter.c: Likewise.
29048 * tree-ssa-loop-prefetch.c: Likewise.
29049 * tree-ssa-loop-unswitch.c: Likewise.
29050 * tree-ssa-loop.c: Likewise.
29051 * tree-ssa-loop.h: Likewise.
29052 * tree-ssa-math-opts.c: Likewise.
29053 * tree-ssa-operands.c: Likewise.
29054 * tree-ssa-phiopt.c: Likewise.
29055 * tree-ssa-phiprop.c: Likewise.
29056 * tree-ssa-pre.c: Likewise.
29057 * tree-ssa-propagate.c: Likewise.
29058 * tree-ssa-reassoc.c: Likewise.
29059 * tree-ssa-sccvn.c: Likewise.
29060 * tree-ssa-scopedtables.c: Likewise.
29061 * tree-ssa-sink.c: Likewise.
29062 * tree-ssa-strlen.c: Likewise.
29063 * tree-ssa-structalias.c: Likewise.
29064 * tree-ssa-tail-merge.c: Likewise.
29065 * tree-ssa-ter.c: Likewise.
29066 * tree-ssa-threadedge.c: Likewise.
29067 * tree-ssa-threadupdate.c: Likewise.
29068 * tree-ssa-uncprop.c: Likewise.
29069 * tree-ssa-uninit.c: Likewise.
29070 * tree-ssa.c: Likewise.
29071 * tree-ssanames.c: Likewise.
29072 * tree-stdarg.c: Likewise.
29073 * tree-streamer-in.c: Likewise.
29074 * tree-streamer-out.c: Likewise.
29075 * tree-streamer.c: Likewise.
29076 * tree-switch-conversion.c: Likewise.
29077 * tree-tailcall.c: Likewise.
29078 * tree-vect-data-refs.c: Likewise.
29079 * tree-vect-generic.c: Likewise.
29080 * tree-vect-loop-manip.c: Likewise.
29081 * tree-vect-loop.c: Likewise.
29082 * tree-vect-patterns.c: Likewise.
29083 * tree-vect-slp.c: Likewise.
29084 * tree-vect-stmts.c: Likewise.
29085 * tree-vectorizer.c: Likewise.
29086 * tree-vrp.c: Likewise.
29087 * tree.c: Likewise.
29088 * tsan.c: Likewise.
29089 * ubsan.c: Likewise.
29090 * valtrack.c: Likewise.
29091 * value-prof.c: Likewise.
29092 * var-tracking.c: Likewise.
29093 * varasm.c: Likewise.
29094 * varpool.c: Likewise.
29095 * vmsdbgout.c: Likewise.
29096 * vtable-verify.c: Likewise.
29097 * web.c: Likewise.
29098 * wide-int-print.cc: Likewise.
29099 * wide-int-print.h: Likewise.
29100 * wide-int.cc: Likewise.
29101 * xcoffout.c: Likewise.
29102 * config/aarch64/aarch64-builtins.c: Likewise.
29103 * config/aarch64/aarch64.c: Likewise.
29104 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
29105 * config/alpha/alpha.c: Likewise.
29106 * config/arc/arc.c: Likewise.
29107 * config/arm/aarch-common.c: Likewise.
29108 * config/arm/arm-builtins.c: Likewise.
29109 * config/arm/arm-c.c: Likewise.
29110 * config/arm/arm.c: Likewise.
29111 * config/avr/avr-c.c: Likewise.
29112 * config/avr/avr-log.c: Likewise.
29113 * config/avr/avr.c: Likewise.
29114 * config/bfin/bfin.c: Likewise.
29115 * config/c6x/c6x.c: Likewise.
29116 * config/cr16/cr16.c: Likewise.
29117 * config/cris/cris.c: Likewise.
29118 * config/darwin-c.c: Likewise.
29119 * config/darwin.c: Likewise.
29120 * config/default-c.c: Likewise.
29121 * config/epiphany/epiphany.c: Likewise.
29122 * config/epiphany/mode-switch-use.c: Likewise.
29123 * config/epiphany/resolve-sw-modes.c: Likewise.
29124 * config/fr30/fr30.c: Likewise.
29125 * config/frv/frv.c: Likewise.
29126 * config/ft32/ft32.c: Likewise.
29127 * config/glibc-c.c: Likewise.
29128 * config/h8300/h8300.c: Likewise.
29129 * config/i386/i386-c.c: Likewise.
29130 * config/i386/i386.c: Likewise.
29131 * config/i386/msformat-c.c: Likewise.
29132 * config/i386/winnt-cxx.c: Likewise.
29133 * config/i386/winnt-stubs.c: Likewise.
29134 * config/i386/winnt.c: Likewise.
29135 * config/ia64/ia64-c.c: Likewise.
29136 * config/ia64/ia64.c: Likewise.
29137 * config/iq2000/iq2000.c: Likewise.
29138 * config/lm32/lm32.c: Likewise.
29139 * config/m32c/m32c-pragma.c: Likewise.
29140 * config/m32c/m32c.c: Likewise.
29141 * config/m32r/m32r.c: Likewise.
29142 * config/m68k/m68k.c: Likewise.
29143 * config/mcore/mcore.c: Likewise.
29144 * config/mep/mep-pragma.c: Likewise.
29145 * config/mep/mep.c: Likewise.
29146 * config/microblaze/microblaze-c.c: Likewise.
29147 * config/microblaze/microblaze.c: Likewise.
29148 * config/mips/mips.c: Likewise.
29149 * config/mmix/mmix.c: Likewise.
29150 * config/mn10300/mn10300.c: Likewise.
29151 * config/moxie/moxie.c: Likewise.
29152 * config/msp430/msp430-c.c: Likewise.
29153 * config/msp430/msp430.c: Likewise.
29154 * config/nds32/nds32-cost.c: Likewise.
29155 * config/nds32/nds32-fp-as-gp.c: Likewise.
29156 * config/nds32/nds32-intrinsic.c: Likewise.
29157 * config/nds32/nds32-isr.c: Likewise.
29158 * config/nds32/nds32-md-auxiliary.c: Likewise.
29159 * config/nds32/nds32-memory-manipulation.c: Likewise.
29160 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
29161 * config/nds32/nds32-predicates.c: Likewise.
29162 * config/nds32/nds32.c: Likewise.
29163 * config/nios2/nios2.c: Likewise.
29164 * config/nvptx/nvptx.c: Likewise.
29165 * config/pa/pa.c: Likewise.
29166 * config/pdp11/pdp11.c: Likewise.
29167 * config/rl78/rl78-c.c: Likewise.
29168 * config/rl78/rl78.c: Likewise.
29169 * config/rs6000/rs6000-c.c: Likewise.
29170 * config/rs6000/rs6000.c: Likewise.
29171 * config/rx/rx.c: Likewise.
29172 * config/s390/s390-c.c: Likewise.
29173 * config/s390/s390.c: Likewise.
29174 * config/sh/sh-c.c: Likewise.
29175 * config/sh/sh-mem.cc: Likewise.
29176 * config/sh/sh.c: Likewise.
29177 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
29178 * config/sh/sh_treg_combine.cc: Likewise.
29179 * config/sol2-c.c: Likewise.
29180 * config/sol2-cxx.c: Likewise.
29181 * config/sol2-stubs.c: Likewise.
29182 * config/sol2.c: Likewise.
29183 * config/sparc/sparc-c.c: Likewise.
29184 * config/sparc/sparc.c: Likewise.
29185 * config/spu/spu-c.c: Likewise.
29186 * config/spu/spu.c: Likewise.
29187 * config/stormy16/stormy16.c: Likewise.
29188 * config/tilegx/mul-tables.c: Likewise.
29189 * config/tilegx/tilegx-c.c: Likewise.
29190 * config/tilegx/tilegx.c: Likewise.
29191 * config/tilepro/mul-tables.c: Likewise.
29192 * config/tilepro/tilepro-c.c: Likewise.
29193 * config/tilepro/tilepro.c: Likewise.
29194 * config/v850/v850-c.c: Likewise.
29195 * config/v850/v850.c: Likewise.
29196 * config/vax/vax.c: Likewise.
29197 * config/visium/visium.c: Likewise.
29198 * config/vms/vms-c.c: Likewise.
29199 * config/vms/vms.c: Likewise.
29200 * config/vxworks.c: Likewise.
29201 * config/winnt-c.c: Likewise.
29202 * config/xtensa/xtensa.c: Likewise.
29203 * common/config/bfin/bfin-common.c: Likewise.
29204
29205 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
29206
29207 * tree.h (tree_code_for_canonical_type_merging): New function.
29208 * tree.c (gimple_canonical_types_compatible_p): Use
29209 tree_code_for_canonical_type_merging..
29210
29211 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29212
29213 PR c++/66192
29214 PR target/66200
29215 * doc/tm.texi: Regenerate.
29216 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
29217 * target.def (TARGET_RELAXED_ORDERING): Likewise.
29218 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
29219 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
29220 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
29221 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
29222 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
29223 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
29224 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
29225
29226 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29227
29228 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
29229 register fma steering pass.
29230 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
29231 AARCH64_TUNE_FMA_STEERING.
29232
29233 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
29234
29235 * tree.c (verify_type_variant): Verify that type and variant is
29236 compatible.
29237 (gimple_canonical_types_compatible_p): Look for main variants.
29238
29239 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
29240
29241 * config.gcc (powerpc*-*-*): Add support for a new configure
29242 option --with-advance-toolchain=<xxx> which overrides using the
29243 default header files, libraries and dynamic linker.
29244
29245 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
29246 specs to support the configure --with-advance-toolchain=<xxx>
29247 option.
29248 (INCLUDE_EXTRA_SPEC): Likewise.
29249 (LINK_OS_EXTRA_SPEC32): Likewise.
29250 (LINK_OK_EXTRA_SPEC64): Likewise.
29251 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
29252 (DYNAMIC_LINKER_PREFIX): Likewise.
29253 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
29254 toolchain support.
29255 (GLIBC_DYNAMIC_LINKER32): Likewise.
29256 (GLIBC_DYNAMIC_LINKER64): Likewise.
29257 (LINK_OS_LINUX_SPEC32): Likewise.
29258 (LINK_OS_LINUX_SPEC64): Likewise.
29259
29260 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
29261 configuration option.
29262
29263 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
29264
29265 PR target/66275
29266 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
29267 to determine current function ABI.
29268 (ix86_function_value_regno_p): Ditto.
29269
29270 2015-06-03 Martin Liska <mliska@suse.cz>
29271
29272 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
29273 * bitmap.h (struct bitmap_usage): Likewise.
29274 * ggc-common.c (struct ggc_usage): Likewise.
29275 * mem-stats.h (struct mem_location): Likewise.
29276 (struct mem_usage): Likewise.
29277 * vec.c (struct vec_usage): Likewise.
29278
29279 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
29280
29281 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
29282 -Bsymbolic.
29283
29284 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
29285
29286 * doc/plugins.texi (enum plugin_event): New event.
29287 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
29288 and PLUGIN_FINISH_FUNCTION.
29289 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
29290 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
29291
29292 2015-06-03 Richard Biener <rguenther@suse.de>
29293
29294 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29295 compute GROUP_GAP for the first element.
29296 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
29297 on in-group gaps.
29298
29299 2015-06-03 Nick Clifton <nickc@redhat.com>
29300
29301 * config/rl78/rl78-real.md: Add peepholes to avoid a register
29302 copy when calling a function.
29303 * config/rl78/rl78.c (need_to_save): Do not push the frame
29304 pointer in an interrupt handler prologue if it is never used.
29305
29306 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29307
29308 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
29309
29310 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
29311
29312 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
29313 reference when cloning alias node.
29314
29315 2015-06-03 Martin Liska <mliska@suse.cz>
29316
29317 * alloc-pool.h (struct pool_usage): Correct space padding.
29318 * ggc-page.c (ggc_print_statistics): Align columns in a report.
29319 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
29320 * tree.c (dump_tree_statistics): Align columns in a report.
29321
29322 2015-06-03 Martin Liska <mliska@suse.cz>
29323
29324 * alloc-pool.c (allocate_pool_descriptor): Remove.
29325 (struct pool_output_info): Likewise.
29326 (print_alloc_pool_statistics): Likewise.
29327 (dump_alloc_pool_statistics): Likewise.
29328 * alloc-pool.h (struct pool_usage): New struct.
29329 (pool_allocator::initialize): Change usage of memory statistics
29330 to a new interface.
29331 (pool_allocator::release): Likewise.
29332 (pool_allocator::allocate): Likewise.
29333 (pool_allocator::remove): Likewise.
29334 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
29335 for a pool allocator.
29336 * mem-stats.h (struct mem_location): Add new ctor.
29337 (struct mem_usage): Add counter for number of
29338 instances.
29339 (mem_alloc_description::register_descriptor): New overload of
29340 * mem-stats.h (mem_location::to_string): New function.
29341 * bitmap.h (struct bitmap_usage): Use this new function.
29342 * ggc-common.c (struct ggc_usage): Likewise.
29343 the function.
29344
29345 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
29346
29347 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
29348 of GCC_INSN_FLAGS_H block.
29349
29350 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
29351
29352 * explow.c (plus_constant): Update check after force_const_mem call
29353 to see if the value returned is not a NULL_RTX.
29354
29355 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
29356
29357 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
29358 remove instumentation thunks calling reachable functions.
29359 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
29360 * lto/lto-partition.c (privatize_symbol_name_1): New.
29361 (privatize_symbol_name): Privatize both decl and orig_decl
29362 names for instrumented functions.
29363 * cgraph.c (cgraph_node::verify_node): Add transparent
29364 alias chain check for instrumented node.
29365
29366 2015-06-03 Marek Polacek <polacek@redhat.com>
29367
29368 PR c/64223
29369 PR c/29358
29370 * tree.c (attribute_value_equal): Handle attribute format.
29371 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
29372
29373 2015-06-03 Richard Biener <rguenther@suse.de>
29374
29375 PR tree-optimization/63916
29376 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
29377 Forward-propagate non-invariant addresses by splicing their
29378 reference ops if the result isn't going to be used by PRE.
29379 (vn_reference_lookup_3): Remove pointless assert.
29380
29381 2015-06-03 Richard Biener <rguenther@suse.de>
29382
29383 PR tree-optimization/66375
29384 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
29385 add to the evolution before following SSA edges.
29386
29387 2015-06-03 Bin Cheng <bin.cheng@arm.com>
29388
29389 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
29390 (dump_use, dump_cand, find_induction_variables): Pass new argument
29391 to dump_iv.
29392 (record_use): Preserve the ssa name information in IV.
29393
29394 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
29395
29396 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
29397 NO_MODE_TEST.
29398 (add_mode_tests): Don't add mode tests if the predicate only
29399 accepts scalar constant integers. Otherwise, allow the mode
29400 of "op" to be VOIDmode if the predicate does accept such integers.
29401
29402 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
29403
29404 PR target/66258
29405 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
29406 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
29407 (aarch64_secondary_reload): Likewise
29408 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
29409 to !TARGET_FLOAT.
29410 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
29411 Likewise.
29412
29413 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
29414 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29415
29416 PR target/65768
29417 * cprop.c (try_replace_reg): Check cost of constants before propagating.
29418
29419 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29420
29421 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
29422 provide access to the IBM extended double floating point mode if
29423 long double is IEEE 128-bit floating point.
29424 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
29425 point if long double is the IBM extended double type.
29426
29427 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
29428 enable adding IEEE 128-bit floating point support.
29429 (-mfloat128-software): Likewise.
29430 (-mfloat128-sw): Likewise.
29431
29432 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
29433 128-bit floating point types to occupy any register if
29434 -mlong-double-64. Do not allow use of IFmode/KFmode unless
29435 -mfloat128-software is enabled.
29436 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
29437 support.
29438 (rs6000_option_override_internal): Add -mfloat128-* support.
29439 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
29440
29441 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
29442 and float128 type nodes.
29443 (ieee128_float_type_node): Likewise.
29444 (ibm128_float_type_node): Likewise.
29445
29446 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
29447
29448 PR target/66136
29449 * config/aarch64/geniterators.sh: Rewrite in awk.
29450
29451 2015-06-02 Martin Liska <mliska@suse.cz>
29452
29453 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
29454 values to avoid -Wmaybe-uninitialized errors.
29455
29456 2015-06-02 Richard Biener <rguenther@suse.de>
29457
29458 PR debug/65549
29459 * dwarf2out.c (lookup_context_die): New function.
29460 (resolve_addr): Avoid forcing a full DIE for the
29461 target of a DW_TAG_GNU_call_site during late compilation.
29462 Instead create a stub DIE without a type if we have a
29463 context DIE present.
29464
29465 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
29466
29467 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
29468
29469 2015-06-02 Bin Cheng <bin.cheng@arm.com>
29470
29471 PR tree-optimization/48052
29472 * cfgloop.h (struct control_iv): New.
29473 (struct loop): New field control_ivs.
29474 * tree-ssa-loop-niter.c : Include "stor-layout.h".
29475 (number_of_iterations_lt): Set no_overflow information.
29476 (number_of_iterations_exit): Init control iv in niter struct.
29477 (record_control_iv): New.
29478 (estimate_numbers_of_iterations_loop): Call record_control_iv.
29479 (loop_exits_before_overflow): New. Interface factored out of
29480 scev_probably_wraps_p.
29481 (scev_probably_wraps_p): Factor loop niter related code into
29482 loop_exits_before_overflow.
29483 (free_numbers_of_iterations_estimates_loop): Free control ivs.
29484 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
29485
29486 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
29487
29488 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
29489 the target doesn't belong to the current function.
29490
29491 2015-06-02 Marek Polacek <polacek@redhat.com>
29492
29493 PR middle-end/66345
29494 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
29495 get_maxval_strlen does not produce an INTEGER_CST.
29496
29497 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
29498
29499 * config/arc/constraints.md: Use lower-case names in match_code.
29500 * config/mmix/constraints.md: Likewise.
29501
29502 2015-06-02 Richard Biener <rguenther@suse.de>
29503
29504 PR tree-optimization/65961
29505 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
29506 check and clarify dump message.
29507 (vect_build_slp_tree): If all children are built up from scalars
29508 build up the parent from scalars instead.
29509 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
29510
29511 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
29512
29513 PR other/65366
29514 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
29515 instead of print ... .
29516
29517 2015-06-02 Alan Modra <amodra@gmail.com>
29518
29519 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
29520 2014-08-11 change.
29521
29522 2015-06-02 Bin Cheng <bin.cheng@arm.com>
29523
29524 PR tree-optimization/52563
29525 PR tree-optimization/62173
29526 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
29527 (alloc_iv, set_iv): New parameter.
29528 (determine_biv_step): Delete.
29529 (find_bivs): Inline original determine_biv_step. Pass new
29530 argument to set_iv.
29531 (idx_find_step): Use no_overflow information for conversion.
29532 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
29533 resolve_mixers handle folded_casts.
29534 (instantiate_scev_name): Change bool parameter to bool pointer.
29535 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
29536 (instantiate_array_ref, instantiate_scev_not): Ditto.
29537 (instantiate_scev_3, instantiate_scev_2): Ditto.
29538 (instantiate_scev_1, instantiate_scev_r): Ditto.
29539 (instantiate_scev_convert, ): Change parameter. Pass argument
29540 to chrec_convert_aggressive.
29541 (instantiate_scev): Change argument.
29542 (resolve_mixers): New parameter and set it.
29543 (scev_const_prop): New argument.
29544 * tree-scalar-evolution.h (resolve_mixers): New parameter.
29545 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
29546 of chrec_conert_1.
29547 (chrec_convert): New parameter. Move definition below.
29548 (chrec_convert_aggressive): New parameter and set it. Call
29549 convert_affine_scev.
29550 * tree-chrec.h (chrec_convert): New parameter.
29551 (chrec_convert_aggressive): Ditto.
29552
29553 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
29554
29555 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
29556 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
29557 the LHS of a no-return call if its type has variable size.
29558 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
29559 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
29560
29561 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
29562
29563 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
29564 * config.in: Regenerate.
29565
29566 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
29567
29568 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
29569 consecutive accesses within outer-loop with force_vectorize
29570 for references with zero step in inner-loop.
29571
29572 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
29573
29574 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
29575 rather than from gcc/build directory.
29576
29577 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
29578
29579 PR target/65697
29580 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
29581 for __sync memory models, emit initial loads and final barriers as
29582 appropriate.
29583
29584 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
29585
29586 PR target/65697
29587 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
29588 (aarch64_split_atomic_op): Check for __sync memory models, emit
29589 appropriate initial loads and final barriers.
29590
29591 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
29592
29593 * Makefile.in: Fix gcov dependencies that should
29594 not point to a build folder.
29595
29596 2015-06-01 Richard Biener <rguenther@suse.de>
29597
29598 Revert
29599 2015-05-29 Richard Biener <rguenther@suse.de>
29600
29601 PR tree-optimization/66314
29602 * tree-ssa-threadupdate.c (create_block_for_threading): Add
29603 parameter that says which loop the new block belongs to.
29604 (ssa_create_duplicates): Blocks duplicated for the threaded
29605 path belong to the loop of the thread destination.
29606
29607 2015-06-01 Martin Liska <mliska@suse.cz>
29608
29609 * sched-deps.c: Include pool-alloc.h before
29610 cselib.h header file is included.
29611
29612 2015-06-01 Richard Biener <rguenther@suse.de>
29613
29614 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
29615 functions.
29616
29617 2015-06-01 Martin Liska <mliska@suse.cz>
29618
29619 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
29620 a function local variable.
29621
29622 2015-06-01 Martin Liska <mliska@suse.cz>
29623
29624 * alloc-pool.c (create_alloc_pool): Remove.
29625 (empty_alloc_pool): Likewise.
29626 (free_alloc_pool): Likewise.
29627 (free_alloc_pool_if_empty): Likewise.
29628 (pool_alloc): Likewise.
29629 (pool_free): Likewise.
29630 * alloc-pool.h: Remove old declarations.
29631
29632 2015-06-01 Martin Liska <mliska@suse.cz>
29633
29634 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
29635 (ira_create_object): Likewise.
29636 (ira_create_allocno): Likewise.
29637 (ira_create_live_range): Likewise.
29638 (copy_live_range): Likewise.
29639 (ira_finish_live_range): Likewise.
29640 (ira_free_allocno_costs): Likewise.
29641 (finish_allocno): Likewise.
29642 (finish_allocnos): Likewise.
29643 (initiate_prefs): Likewise.
29644 (ira_create_pref): Likewise.
29645 (finish_pref): Likewise.
29646 (finish_prefs): Likewise.
29647 (initiate_copies): Likewise.
29648 (ira_create_copy): Likewise.
29649 (finish_copy): Likewise.
29650 (finish_copies): Likewise.
29651 (finish_prefs): Likewise.
29652
29653 2015-06-01 Martin Liska <mliska@suse.cz>
29654
29655 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
29656 (allocate_and_init_ipcp_value): Likewise.
29657 (ipcp_lattice::add_value): Likewise.
29658 (merge_agg_lats_step): Likewise.
29659 (ipcp_driver): Likewise.
29660 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
29661 (ipa_free_all_structures_after_iinln): Likewise.
29662 * ipa-prop.h: Likewise.
29663
29664 2015-06-01 Martin Liska <mliska@suse.cz>
29665
29666 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
29667 pool allocator.
29668 (set_hint_predicate): Likewise.
29669 (inline_summary_alloc): Likewise.
29670 (reset_inline_edge_summary): Likewise.
29671 (reset_inline_summary): Likewise.
29672 (set_cond_stmt_execution_predicate): Likewise.
29673 (set_switch_stmt_execution_predicate): Likewise.
29674 (compute_bb_predicates): Likewise.
29675 (estimate_function_body_sizes): Likewise.
29676 (inline_free_summary): Likewise.
29677
29678 2015-06-01 Martin Liska <mliska@suse.cz>
29679
29680 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
29681 (ipa_edge_duplication_hook): Likewise.
29682 (ipa_free_all_structures_after_ipa_cp): Likewise.
29683 (ipa_free_all_structures_after_iinln): Likewise.
29684
29685 2015-06-01 Martin Liska <mliska@suse.cz>
29686
29687 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
29688 (ipa_profile_generate_summary): Likewise.
29689 (ipa_profile_read_summary): Likewise.
29690 (ipa_profile): Likewise.
29691
29692 2015-06-01 Martin Liska <mliska@suse.cz>
29693
29694 * tree-ssa-structalias.c (new_var_info): Use new type-based
29695 pool allocator.
29696 (new_constraint): Likewise.
29697 (init_alias_vars): Likewise.
29698 (delete_points_to_sets): Likewise.
29699
29700 2015-06-01 Martin Liska <mliska@suse.cz>
29701
29702 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
29703 (free_strinfo): Likewise.
29704 (pass_strlen::execute): Likewise.
29705
29706 2015-06-01 Martin Liska <mliska@suse.cz>
29707
29708 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
29709 pool allocator.
29710 (vn_reference_insert_pieces): Likewise.
29711 (vn_phi_insert): Likewise.
29712 (visit_reference_op_call): Likewise.
29713 (copy_phi): Likewise.
29714 (copy_reference): Likewise.
29715 (process_scc): Likewise.
29716 (allocate_vn_table): Likewise.
29717 (free_vn_table): Likewise.
29718
29719 2015-06-01 Martin Liska <mliska@suse.cz>
29720
29721 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
29722 pool allocator.
29723 (add_repeat_to_ops_vec): Likewise.
29724 (get_ops): Likewise.
29725 (maybe_optimize_range_tests): Likewise.
29726 (init_reassoc): Likewise.
29727 (fini_reassoc): Likewise.
29728
29729 2015-06-01 Martin Liska <mliska@suse.cz>
29730
29731 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
29732 pool allocator.
29733 (bitmap_set_new): Likewise.
29734 (get_or_alloc_expr_for_constant): Likewise.
29735 (get_or_alloc_expr_for): Likewise.
29736 (phi_translate_1): Likewise.
29737 (compute_avail): Likewise.
29738 (init_pre): Likewise.
29739 (fini_pre): Likewise.
29740
29741 2015-06-01 Martin Liska <mliska@suse.cz>
29742
29743 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
29744 (delete_dep_node): Likewise.
29745 (create_deps_list): Likewise.
29746 (free_deps_list): Likewise.
29747 (sched_deps_init): Likewise.
29748 (sched_deps_finish): Likewise.
29749
29750 2015-06-01 Martin Liska <mliska@suse.cz>
29751
29752 * regcprop.c (free_debug_insn_changes): Use new type-based
29753 pool allocator.
29754 (replace_oldest_value_reg): Likewise.
29755 (pass_cprop_hardreg::execute): Likewise.
29756
29757 2015-06-01 Martin Liska <mliska@suse.cz>
29758
29759 * ira-build.c (initiate_cost_vectors): Use new type-based
29760 pool allocator.
29761 (ira_allocate_cost_vector): Likewise.
29762 (ira_free_cost_vector): Likewise.
29763 (finish_cost_vectors): Likewise.
29764
29765 2015-06-01 Martin Liska <mliska@suse.cz>
29766
29767 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
29768 pool allocator.
29769 (free_sched_pools): Likewise.
29770 * sel-sched-ir.h (_list_alloc): Likewise.
29771 (_list_remove): Likewise.
29772
29773 2015-06-01 Martin Liska <mliska@suse.cz>
29774
29775 * stmt.c (add_case_node): Use new type-based pool allocator.
29776 (expand_case): Likewise.
29777 (expand_sjlj_dispatch_table): Likewise.
29778
29779 2015-06-01 Martin Liska <mliska@suse.cz>
29780
29781 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
29782 (free_bb): Likewise.
29783 (pass_cse_reciprocals::execute): Likewise.
29784
29785 2015-06-01 Martin Liska <mliska@suse.cz>
29786
29787 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
29788 (sra_deinitialize) Likewise.
29789 (create_access_1) Likewise.
29790 (build_accesses_from_assign) Likewise.
29791 (create_artificial_child_access) Likewise.
29792
29793 2015-06-01 Martin Liska <mliska@suse.cz>
29794
29795 * dse.c (get_group_info):Use new type-based pool allocator.
29796 (dse_step0) Likewise.
29797 (free_store_info) Likewise.
29798 (delete_dead_store_insn) Likewise.
29799 (free_read_records) Likewise.
29800 (record_store) Likewise.
29801 (replace_read) Likewise.
29802 (check_mem_read_rtx) Likewise.
29803 (scan_insn) Likewise.
29804 (dse_step1) Likewise.
29805 (dse_step7) Likewise.
29806
29807 2015-06-01 Martin Liska <mliska@suse.cz>
29808
29809 * df-scan.c (struct df_scan_problem_data):Use new type-based
29810 pool allocator.
29811 (df_scan_free_internal) Likewise.
29812 (df_scan_alloc) Likewise.
29813 (df_grow_reg_info) Likewise.
29814 (df_free_ref) Likewise.
29815 (df_insn_create_insn_record) Likewise.
29816 (df_mw_hardreg_chain_delete) Likewise.
29817 (df_insn_info_delete) Likewise.
29818 (df_free_collection_rec) Likewise.
29819 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
29820 (df_sort_and_compress_mws) Likewise.
29821 (df_ref_create_structure) Likewise.
29822 (df_ref_record) Likewise.
29823
29824 2015-06-01 Martin Liska <mliska@suse.cz>
29825
29826 * df-problems.c (df_chain_create):Use new type-based pool allocator.
29827 (df_chain_unlink_1) Likewise.
29828 (df_chain_unlink) Likewise.
29829 (df_chain_remove_problem) Likewise.
29830 (df_chain_alloc) Likewise.
29831 (df_chain_free) Likewise.
29832 * df.h (struct dataflow) Likewise.
29833
29834 2015-06-01 Martin Liska <mliska@suse.cz>
29835
29836 * cselib.c (new_elt_list):Use new type-based pool allocator.
29837 (new_elt_loc_list) Likewise.
29838 (unchain_one_elt_list) Likewise.
29839 (unchain_one_elt_loc_list) Likewise.
29840 (unchain_one_value) Likewise.
29841 (new_cselib_val) Likewise.
29842 (cselib_init) Likewise.
29843 (cselib_finish) Likewise.
29844
29845 2015-06-01 Martin Liska <mliska@suse.cz>
29846
29847 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
29848 (sh_reorg) Likewise.
29849
29850 2015-06-01 Martin Liska <mliska@suse.cz>
29851
29852 * cfg.c (initialize_original_copy_tables):Use new type-based
29853 pool allocator.
29854 (free_original_copy_tables) Likewise.
29855 (copy_original_table_clear) Likewise.
29856 (copy_original_table_set) Likewise.
29857
29858 2015-06-01 Martin Liska <mliska@suse.cz>
29859
29860 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
29861 pool allocator.
29862 (asan_mem_ref_new) Likewise.
29863 (free_mem_ref_resources) Likewise.
29864
29865 2015-06-01 Martin Liska <mliska@suse.cz>
29866
29867 * var-tracking.c (variable_htab_free):Use new type-based
29868 pool allocator.
29869 (attrs_list_clear) Likewise.
29870 (attrs_list_insert) Likewise.
29871 (attrs_list_copy) Likewise.
29872 (shared_hash_unshare) Likewise.
29873 (shared_hash_destroy) Likewise.
29874 (unshare_variable) Likewise.
29875 (var_reg_delete_and_set) Likewise.
29876 (var_reg_delete) Likewise.
29877 (var_regno_delete) Likewise.
29878 (drop_overlapping_mem_locs) Likewise.
29879 (variable_union) Likewise.
29880 (insert_into_intersection) Likewise.
29881 (canonicalize_values_star) Likewise.
29882 (variable_merge_over_cur) Likewise.
29883 (dataflow_set_merge) Likewise.
29884 (remove_duplicate_values) Likewise.
29885 (variable_post_merge_new_vals) Likewise.
29886 (dataflow_set_preserve_mem_locs) Likewise.
29887 (dataflow_set_remove_mem_locs) Likewise.
29888 (variable_from_dropped) Likewise.
29889 (variable_was_changed) Likewise.
29890 (set_slot_part) Likewise.
29891 (clobber_slot_part) Likewise.
29892 (delete_slot_part) Likewise.
29893 (loc_exp_insert_dep) Likewise.
29894 (notify_dependents_of_changed_value) Likewise.
29895 (emit_notes_for_differences_1) Likewise.
29896 (vt_emit_notes) Likewise.
29897 (vt_initialize) Likewise.
29898 (vt_finalize) Likewise.
29899
29900 2015-06-01 Martin Liska <mliska@suse.cz>
29901
29902 * ira-color.c (init_update_cost_records):Use new type-based
29903 pool allocator.
29904 (get_update_cost_record) Likewise.
29905 (free_update_cost_record_list) Likewise.
29906 (finish_update_cost_records) Likewise.
29907 (initiate_cost_update) Likewise.
29908
29909 2015-06-01 Martin Liska <mliska@suse.cz>
29910
29911 * lra.c (init_insn_regs): Use new type-based pool allocator.
29912 (new_insn_reg) Likewise.
29913 (free_insn_reg) Likewise.
29914 (free_insn_regs) Likewise.
29915 (finish_insn_regs) Likewise.
29916 (init_insn_recog_data) Likewise.
29917 (init_reg_info) Likewise.
29918 (finish_reg_info) Likewise.
29919 (lra_free_copies) Likewise.
29920 (lra_create_copy) Likewise.
29921 (invalidate_insn_data_regno_info) Likewise.
29922
29923 2015-06-01 Martin Liska <mliska@suse.cz>
29924
29925 * lra-lives.c (free_live_range): Use new type-based pool allocator.
29926 (free_live_range_list) Likewise.
29927 (create_live_range) Likewise.
29928 (copy_live_range) Likewise.
29929 (lra_merge_live_ranges) Likewise.
29930 (remove_some_program_points_and_update_live_ranges) Likewise.
29931 (lra_live_ranges_init) Likewise.
29932 (lra_live_ranges_finish) Likewise.
29933
29934 2015-06-01 Martin Liska <mliska@suse.cz>
29935
29936 * et-forest.c (et_new_occ): Use new type-based pool allocator.
29937 (et_new_tree): Likewise.
29938 (et_free_tree): Likewise.
29939 (et_free_tree_force): Likewise.
29940 (et_free_pools): Likewise.
29941 (et_split): Likewise.
29942
29943 2015-06-01 Martin Liska <mliska@suse.cz>
29944
29945 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
29946 to header file.
29947 * alloc-pool.h (pool_allocator::pool_allocator): New function.
29948 (pool_allocator::release): Likewise.
29949 (inline pool_allocator::release_if_empty): Likewise.
29950 (inline pool_allocator::~pool_allocator): Likewise.
29951 (pool_allocator::allocate): Likewise.
29952 (pool_allocator::remove): Likewise.
29953
29954 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
29955
29956 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
29957 in comment.
29958
29959 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
29960
29961 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
29962 to fusible_ops.
29963 * config/arm/arm.c (arm_print_tune_info): Likewise.
29964 (arm_macro_fusion_p): Likewise.
29965 (arm_macro_fusion_pair_p): Likewise.
29966
29967 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
29968
29969 * config/aarch64/aarch64-protos.h (tune_params): Rename
29970 fuseable_ops to fusible_ops.
29971 * config/aarch64/aarch64.c (generic_tunings): Rename
29972 fuseable_ops to fusible_ops.
29973 (cortexa53_tunings): Likewise.
29974 (cortexa57_tunings): Likewise.
29975 (thunderx_tunings): Likewise.
29976 (xgene1_tunings): Likewise.
29977 (aarch64_macro_fusion_p): Likewise.
29978 (aarch64_macro_fusion_pair_p): Likewise.
29979
29980 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
29981
29982 * config/s390/driver-native.c: New file.
29983 * config/s390/x-native: New file.
29984 * config.host: Add new files for s390.
29985 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
29986 and -march=native
29987 * config.gcc: Likewise.
29988 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
29989 * config/s390/s390-opts.h (enum processor_type): Ditto.
29990 * config/s390/s390.c (s390_option_override): Catch unhandled
29991 PROCESSOR_NATIVE
29992
29993 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
29994
29995 PR target/65527
29996 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
29997 redirection for instrumented calls.
29998 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
29999 (append_compiler_options): Append -fcheck-pointer-bounds.
30000 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
30001 (chkp_redirect_edge): New.
30002 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
30003 (chkp_redirect_edge): New.
30004
30005 2015-06-01 Richard Biener <rguenther@suse.de>
30006
30007 PR tree-optimization/66280
30008 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
30009 def-use walking.
30010
30011 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30012
30013 * config/aarch64/aarch64.md
30014 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
30015 logic_shift_imm.
30016
30017 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
30018
30019 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
30020 Remove obsolete kludge.
30021
30022 2015-06-01 Richard Biener <rguenther@suse.de>
30023
30024 * tree-ssa-reassoc.c (get_rank): Simplify.
30025
30026 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
30027
30028 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
30029 * configure: Regenerated.
30030
30031 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
30032
30033 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
30034 issue (add space between string literal and macro).
30035 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
30036
30037 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
30038
30039 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
30040 implict or explicit -fPIE or -fpie.
30041
30042 2015-05-30 Mike Frysinger <vapier@gentoo.org>
30043
30044 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
30045
30046 2015-05-28 DJ Delorie <dj@redhat.com>
30047
30048 * expmed.c (extract_bit_field_1): Avoid clobbering a
30049 yet-to-be-used base/index register.
30050
30051 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
30052
30053 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
30054 (alias_stats): Add num_universal.
30055 (alias_set_subset_of): Special case pointers; be ready for NULL
30056 children.
30057 (alias_sets_conflict_p): Special case pointers; be ready for NULL
30058 children.
30059 (init_alias_set_entry): Break out from ...
30060 (record_alias_subset): ... here; propagate new fields;
30061 allocate children only when really needed.
30062 (get_alias_set): Do less generous pointer globbing.
30063 (dump_alias_stats_in_alias_c): Update statistics.
30064
30065 2015-05-30 Alan Modra <amodra@gmail.com>
30066
30067 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
30068 correct block for use of r12.
30069 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
30070
30071 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
30072
30073 PR target/66215
30074 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
30075 with -mhotpatch=.
30076
30077 2015-05-29 Jakub Jelinek <jakub@redhat.com>
30078
30079 PR tree-optimization/66142
30080 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
30081 virtual phis that feed themselves.
30082
30083 2015-05-29 Richard Biener <rguenther@suse.de>
30084
30085 PR tree-optimization/66314
30086 * tree-ssa-threadupdate.c (create_block_for_threading): Add
30087 parameter that says which loop the new block belongs to.
30088 (ssa_create_duplicates): Blocks duplicated for the threaded
30089 path belong to the loop of the thread destination.
30090
30091 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30092
30093 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
30094 to cleanup-saved-temps.
30095 * doc/sourcebuild.texi (Clean up generated test files): Expand
30096 introduction.
30097 (dg-keep-saved-temps): Document new proc.
30098 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
30099 cleanup-saved-temps): Remove.
30100
30101 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
30102
30103 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
30104 gcc_AC_CHECK_DECLS.
30105 * configure: Regenerate.
30106
30107 2015-05-28 Mike Frysinger <vapier@gentoo.org>
30108
30109 * config/nios2/linux.h (CPP_SPEC): Define.
30110
30111 2015-05-28 Mike Frysinger <vapier@gentoo.org>
30112
30113 * config/microblaze/linux.h (CPP_SPEC): Define.
30114
30115 2015-05-28 Mike Frysinger <vapier@gentoo.org>
30116
30117 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
30118 -pthread is specified.
30119
30120 2015-05-28 Richard Biener <rguenther@suse.de>
30121
30122 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
30123 (vect_fixup_scalar_cycles_with_patterns): Likewise.
30124 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
30125 after pattern recog.
30126 (vect_create_epilog_for_reduction): Properly handle reductions
30127 with patterns.
30128 (vectorizable_reduction): Likewise.
30129 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
30130 reduction chains.
30131 (vect_get_constant_vectors): Create the correct number of
30132 initial values for reductions.
30133 (vect_schedule_slp_instance): Handle reduction chains that are
30134 type changing properly.
30135 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
30136
30137 2015-05-28 Richard Biener <rguenther@suse.de>
30138
30139 PR tree-optimization/66142
30140 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
30141 values better in memcpy destination handling. Handle non-aliasing
30142 we discover here.
30143
30144 2015-05-28 Lawrence Velázquez <vq@larryv.me>
30145
30146 PR target/63810
30147 * config/darwin-c.c (version_components): New global enum.
30148 (parse_version, version_as_legacy_macro)
30149 (version_as_modern_macro, macosx_version_as_macro): New functions.
30150 (version_as_macro): Remove.
30151 (darwin_cpp_builtins): Use new function.
30152
30153 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
30154
30155 * builtins.c (expand_builtin_acc_on_device): Mark parameters
30156 with ATTRIBUTE_UNUSED.
30157
30158 2015-05-28 Julian Brown <julian@codesourcery.com>
30159
30160 PR libgomp/65742
30161
30162 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
30163 sequence for !ACCEL_COMPILER.
30164
30165 2015-05-28 Nick Clifton <nickc@redhat.com>
30166
30167 * config/rx/rx.c (push_regs): New function. Extracts code from...
30168 (rx_expand_prologue): ... here. Use push_regs to push even small
30169 spans of registers.
30170 (pop_regs): New function.
30171 (rx_expand_epilogue): Use pop_regs to pop even small spans of
30172 registers.
30173
30174 2015-05-28 Richard Biener <rguenther@suse.de>
30175
30176 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
30177 member.
30178 (SLP_INSTANCE_BODY_COST_VEC): Remove.
30179 (vect_update_slp_costs_according_to_vf): Likewise.
30180 (vect_slp_analyze_operations): Update prototype.
30181 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
30182 vect_update_slp_costs_according_to_vf, adjust.
30183 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
30184 (vect_analyze_slp_cost_1): Likewise.
30185 (vect_analyze_slp_cost): Likewise. Properly deal with
30186 widening reduction ops. Commit body costs.
30187 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
30188 cost for loops from here.
30189 (vect_slp_analyze_operations): But do it from here when
30190 the vectorization factor is known and stmts are analyzed.
30191 (vect_bb_vectorization_profitable_p): Simplify.
30192 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
30193 (vect_update_slp_costs_according_to_vf): Remove.
30194
30195 2015-05-27 Magnus Granberg <zorry@gentoo.org>
30196 H.J. Lu <hongjiu.lu@intel.com>
30197
30198 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
30199 (BUILD_CFLAGS): Likewise.
30200 (BUILD_CXXFLAGS): Likewise.
30201 (LINKER): Add @NO_PIE_FLAG@.
30202 (BUILD_LDFLAGS): Likewise.
30203 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
30204 --enable-default-pie.
30205 * common.opt (fPIE): Initialize to -1.
30206 (fpie): Likewise.
30207 (no-pie): New option.
30208 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
30209 * configure.ac: Add --enable-default-pie.
30210 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
30211 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
30212 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
30213 * gcc.c (NO_PIE_SPEC): New.
30214 (PIE_SPEC): Likewise.
30215 (NO_FPIE1_SPEC): Likewise.
30216 (FPIE1_SPEC): Likewise.
30217 (NO_FPIE2_SPEC): Likewise.
30218 (FPIE2_SPEC): Likewise.
30219 (NO_FPIE2_SPEC): Likewise.
30220 (FPIE_SPEC): Likewise.
30221 (NO_FPIE_SPEC): Likewise.
30222 (NO_FPIC1_SPEC): Likewise.
30223 (FPIC1_SPEC): Likewise.
30224 (NO_FPIC2_SPEC): Likewise.
30225 (FPIC2_SPEC): Likewise.
30226 (NO_FPIC2_SPEC): Likewise.
30227 (FPIC_SPEC): Likewise.
30228 (NO_FPIC_SPEC): Likewise.
30229 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
30230 (FPIE1_OR_FPIC1_SPEC): Likewise.
30231 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
30232 (FPIE2_OR_FPIC2_SPEC): Likewise.
30233 (NO_FPIE_AND_FPIC_SPEC): Likewise.
30234 (FPIE_OR_FPIC_SPEC): Likewise.
30235 (LD_PIE_SPEC): Likewise.
30236 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
30237 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
30238 * config/darwin.h (PIE_SPEC): Renamed to ...
30239 (DARWIN_PIE_SPEC): This.
30240 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
30241 * config/darwin9.h (PIE_SPEC): Renamed to ...
30242 (DARWIN_PIE_SPEC): This.
30243 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
30244 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
30245 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
30246 FPIE2_OR_FPIC2_SPEC.
30247 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
30248 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
30249 * config/sol2.h (ASM_PIC_SPEC): Likewise.
30250 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
30251 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
30252 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
30253 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
30254 * config/m32r/m32r.h (ASM_SPEC): Likewise.
30255 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
30256 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
30257 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
30258 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
30259 * config/sparc/linux.h (ASM_SPEC): Likewise.
30260 * config/sparc/linux64.h (ASM_SPEC): Likewise.
30261 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
30262 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
30263 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
30264 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
30265 * config/sparc/sparc.h (ASM_SPEC): Likewise.
30266 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
30267 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
30268 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
30269 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
30270 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
30271 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
30272 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
30273 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
30274 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
30275 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
30276 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
30277 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
30278 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
30279 * config/vax/linux.h (ASM_SPEC): Likewise.
30280 * doc/install.texi: Document --enable-default-pie.
30281 * doc/invoke.texi: Document -no-pie.
30282 * config.in: Regenerated.
30283 * configure: Likewise.
30284
30285 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
30286
30287 PR rtl-optimization/66168
30288 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
30289 can_move_invariant_reg.
30290
30291 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
30292
30293 PR target/66148
30294 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
30295 REG_EQUAL note when doing insert.
30296
30297 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
30298 instead of "%d" for 'o' operand.
30299
30300 2015-05-27 Nathan Sidwell <nathan@acm.org>
30301
30302 PR c++/66270
30303 * tree.c (build_pointer_type_for_mode): Canonical type does not
30304 inherit can_alias_all.
30305 (build_reference_type_for_mode): Likewise.
30306
30307 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
30308
30309 * expr.h (array_at_struct_end_p): Move to...
30310 (array_ref_element_size): Likewise.
30311 (component_ref_field_offset): Likewise.
30312 * tree.h (array_ref_element_size): ...here.
30313 (array_at_struct_end_p): Likewise.
30314 (component_ref_field_offset): Likewise.
30315 * expr.c (array_ref_element_size): Move to...
30316 (array_ref_low_bound): Likewise.
30317 (array_at_struct_end_p): Likewise.
30318 (array_ref_up_bound): Likewise.
30319 (component_ref_field_offset): Likewise.
30320 * tree.c (array_ref_element_size): ...here.
30321 (array_ref_low_bound): Likewise.
30322 (array_ref_up_bound): Likewise.
30323 (array_at_struct_end_p): Likewise.
30324 (component_ref_field_offset): Likewise.
30325
30326 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
30327 Szabolcs Nagy <szabolcs.nagy@arm.com>
30328
30329 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
30330
30331 2015-05-27 Jason Merrill <jason@redhat.com>
30332
30333 PR bootstrap/66304
30334 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
30335 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
30336 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
30337
30338 2015-05-22 Aditya Kumar <hiraditya@msn.com>
30339
30340 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
30341 is true.
30342
30343 * statistics.c (statistics_fini_pass): Print pass name.
30344
30345 2015-05-27 Richard Biener <rguenther@suse.de>
30346
30347 PR tree-optimization/66272
30348 Revert parts of
30349 2014-08-15 Richard Biener <rguenther@suse.de>
30350
30351 PR tree-optimization/62031
30352 * tree-data-ref.c (dr_analyze_indices): Do not set
30353 DR_UNCONSTRAINED_BASE.
30354 (dr_may_alias_p): All indirect accesses have to go the
30355 formerly DR_UNCONSTRAINED_BASE path.
30356 * tree-data-ref.h (struct indices): Remove
30357 unconstrained_base member.
30358 (DR_UNCONSTRAINED_BASE): Remove.
30359
30360 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
30361
30362 * dwarf2out.c: Remove block_map.
30363 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
30364 (gen_lexical_block_die): Same.
30365 (dwarf2out_function_decl): Remove block_map use.
30366 (dwarf2out_c_finalize): Same.
30367 * tree-core.h (struct tree_block): Add die field.
30368 * tree.h (BLOCK_DIE): New.
30369
30370 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30371
30372 PR target/65358
30373 * expr.c (memory_load_overlap): New function.
30374 (emit_push_insn): When pushing partial args to the stack would
30375 clobber the register part load the overlapping part into a pseudo
30376 and put it into the hard reg after pushing. Change return type
30377 to bool. Add bool argument.
30378 * expr.h (emit_push_insn): Change return type to bool.
30379 Add bool argument.
30380 * calls.c (expand_call): Cancel sibcall optimization when encountering
30381 partial argument on targets with ARGS_GROW_DOWNWARD and
30382 !STACK_GROWS_DOWNWARD.
30383 (emit_library_call_value_1): Update callsite of emit_push_insn.
30384 (store_one_arg): Likewise.
30385
30386 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
30387
30388 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
30389
30390 2015-05-27 Martin Liska <mliska@suse.cz>
30391
30392 * Makefile.in: Add additional dependencies related to memory report
30393 enhancement.
30394 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
30395 * bitmap.c (struct bitmap_descriptor_d): Remove.
30396 (struct loc): Likewise.
30397 (struct bitmap_desc_hasher): Likewise.
30398 (bitmap_desc_hasher::hash): Likewise.
30399 (bitmap_desc_hasher::equal): Likewise.
30400 (get_bitmap_descriptor): Likewise.
30401 (bitmap_register): User new memory descriptor API.
30402 (register_overhead): Likewise.
30403 (bitmap_find_bit): Register nsearches and search_iter statistics.
30404 (struct bitmap_output_info): Remove.
30405 (print_statistics): Likewise.
30406 (dump_bitmap_statistics): Use new memory descriptor.
30407 * bitmap.h (struct bitmap_usage): New class.
30408 * genmatch.c: Extend header file inclusion.
30409 * genpreds.c: Likewise.
30410 * ggc-common.c (struct ggc_usage): New class.
30411 (struct ggc_loc_desc_hasher): Remove.
30412 (ggc_loc_desc_hasher::hash): Likewise.
30413 (ggc_loc_desc_hasher::equal): Likewise.
30414 (struct ggc_ptr_hash_entry): Likewise.
30415 (struct ptr_hash_hasher): Likewise.
30416 (ptr_hash_hasher::hash): Likewise.
30417 (ptr_hash_hasher::equal): Likewise.
30418 (make_loc_descriptor): Likewise.
30419 (ggc_prune_ptr): Likewise.
30420 (dump_ggc_loc_statistics): Use new memory descriptor.
30421 (ggc_record_overhead): Likewise.
30422 (ggc_free_overhead): Likewise.
30423 (final_cmp_statistic): Remove.
30424 (cmp_statistic): Likewise.
30425 (ggc_add_statistics): Liekwise.
30426 (ggc_prune_overhead_list): Likewise.
30427 * hash-map-traits.h: New file.
30428 * hash-map.h (struct default_hashmap_traits): Move the traits to a
30429 separate header file.
30430 * hash-set.h: Pass memory statistics info to ctor.
30431 * hash-table.c (void dump_hash_table_loc_statistics): New function.
30432 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
30433 (hash_table::~hash_table): Register memory release operation.
30434 (hash_table::alloc_entries): Handle memory allocation operation.
30435 (hash_table::expand): Likewise.
30436 * inchash.c (iterative_hash_hashval_t): Move implementation to header
30437 file.
30438 (iterative_hash_host_wide_int): Likewise.
30439 * inchash.h (class hash): Likewise.
30440 * mem-stats-traits.h: New file.
30441 * mem-stats.h: New file.
30442 (mem_location): Add new class.
30443 (mem_usage): Likewise.
30444 (mem_alloc_description): Likewise.
30445 * sese.c: Add new header file inclusision.
30446 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
30447 and hash_set.
30448 * tree-sra.c: Add new header file inclusision.
30449 * vec.c (struct vec_descriptor): Remove.
30450 (hash_descriptor): Likewise.
30451 (struct vec_usage): Likewise.
30452 (struct ptr_hash_entry): Likewise.
30453 (hash_ptr): Likewise.
30454 (eq_ptr): Likewise.
30455 (vec_prefix::register_overhead): Use new memory descriptor API.
30456 (vec_prefix::release_overhead): Likewise.
30457 (add_statistics): Remove.
30458 (dump_vec_loc_statistics): Use new memory descriptor API.
30459 * vec.h (struct vec_prefix): Likewise.
30460 (va_heap::reserve): Likewise.
30461 (va_heap::release): Likewise.
30462 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
30463
30464 2015-05-27 Richard Biener <rguenther@suse.de>
30465
30466 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
30467 earlier and remove ??? comment.
30468 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
30469 and got called from loop analysis bail out. Always pass the SLP
30470 node to the vectorizable_* functions.
30471 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
30472 the premature SLP check here.
30473 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
30474 detected SLP stmts.
30475 (vect_detect_hybrid_slp_1): Likewise.
30476
30477 2015-05-26 Jeff Law <law@redhat.com>
30478
30479 * combine.c (find_split_point): Verify that the shift count is a
30480 constant when choosing (plus (ashift ...)) as a split point.
30481
30482 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
30483 No functional changes.
30484
30485 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
30486
30487 * ipa-polymorphic-call.c
30488 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
30489 case when call target is already known.
30490
30491 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
30492
30493 PR target/65979
30494 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
30495 take into account the case that operands[1] and operands[2]
30496 are the same register.
30497
30498 2015-05-26 Michael Matz <matz@suse.de>
30499
30500 PR middle-end/66251
30501
30502 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
30503 stores.
30504 (vect_create_vectorized_demotion_stmts): Always set
30505 STMT_VINFO_VEC_STMT, also with SLP.
30506 (vectorizable_store): Handle strided group stores.
30507
30508 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30509
30510 PR target/66049
30511 * config/aarch64/aarch64.md
30512 (*adds_shift_imm_<mode>): New pattern.
30513 (*subs_shift_imm_<mode>): Likewise.
30514 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
30515 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
30516 (*add_uxt<mode>_shift2): Likewise.
30517 (*add_uxtsi_shift2_uxtw): Likewise.
30518 (*sub_uxt<mode>_shift2): Likewise.
30519 (*sub_uxtsi_shift2_uxtw): Likewise.
30520
30521 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
30522
30523 * config/rs6000/constraints.md (Y, U): Use match_test.
30524
30525 2015-05-26 Christian Bruel <christian.bruel@st.com>
30526
30527 PR target/52144
30528 * config/arm/arm.c (arm_option_check_internal)
30529 (arm_option_params_internal): Check opts->target_flags to set macros.
30530 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
30531 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
30532 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
30533 (builtin_define): Replaced with def_or_undef_macro.
30534 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
30535 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
30536 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
30537 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
30538 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
30539 (TARGET_ARM_FEATURE_LDREX_P)
30540 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
30541 * config/arm/arm-c.c (def_or_undef_macro): New function.
30542 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
30543
30544 2015-05-26 Christian Bruel <christian.bruel@st.com>
30545
30546 * c-common.h (builtin_define_with_int_value)
30547 (builtin_define_type_sizeof): Declare.
30548 * c-cppbuiltin.c (builtin_define_with_int_value)
30549 (builtin_define_type_sizeof): Externalize.
30550 (builtin_define_std): Cleanup declaration.
30551 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
30552 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
30553 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
30554 (builtin_define, builtin_assert): New macros.
30555
30556 2015-05-26 Richard Biener <rguenther@suse.de>
30557
30558 PR tree-optimization/66142
30559 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
30560 MEM_REFs for the same base address.
30561
30562 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30563
30564 PR ipa/66181
30565 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
30566
30567 2015-05-26 Jason Merrill <jason@redhat.com>
30568
30569 * configure.ac: Set CXXFLAGS for ISL test.
30570 * configure: Regenerate.
30571
30572 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
30573 strstr and basename.
30574 * configure: Regenerate.
30575
30576 2015-05-26 Richard Biener <rguenther@suse.de>
30577
30578 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
30579 X % C -> X & (C - 1) for C being a power-of two to ...
30580 * match.pd: ... patterns.
30581
30582 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
30583
30584 * match.pd (swapped_tcc_comparison): New operator list.
30585 (-A CMP -B): New simplification.
30586 * fold-const.c (fold_comparison): Remove corresponding code.
30587
30588 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
30589
30590 * caller-save.c (init_caller_save): Base temporary register numbers
30591 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
30592 * cfgloopanal.c (init_set_costs): Likewise.
30593 * dojump.c (prefer_and_bit_test): Likewise.
30594 * expr.c (init_expr_target): Likewise.
30595 * ira.c (setup_prohibited_mode_move_regs): Likewise.
30596 * lower-subreg.c (init_lower_subreg): Likewise.
30597 * postreload.c (reload_cse_regs_1): Likewise.
30598
30599 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
30600
30601 * gensupport.h (compute_test_codes): Declare.
30602 * gensupport.c (compute_predicate_codes): Rename to...
30603 (compute_test_codes): ...this. Generalize error message.
30604 (process_define_predicate): Update accordingly.
30605 * genpreds.c (compute_maybe_allows): Delete.
30606 (add_constraint): Use compute_test_codes to determine whether
30607 something can accept a SUBREG, REG or MEM.
30608
30609 2015-05-26 Torvald Riegel <triegel@redhat.com>
30610
30611 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
30612 'memory model' to align with C++11; fix description of memory orders;
30613 fix a few typos.
30614
30615 2015-05-26 Richard Biener <rguenther@suse.de>
30616
30617 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
30618 (vect_analyze_loop_operations): ... here. Remove slp parameter,
30619 detect whether we apply SLP. Remove call to
30620 vect_update_slp_costs_according_to_vf.
30621 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
30622 vect_update_slp_costs_according_to_vf from here. Dispatch
30623 to vect_slp_analyze_operations to analyze SLP stmts.
30624 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
30625 unused bb_vec_info parameter, adjust assert.
30626 (vect_slp_analyze_operations): Pass in the slp instance tree
30627 instead of bb_vec_info.
30628 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
30629 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
30630
30631 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
30632
30633 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
30634 Q_REGS. Expand comment.
30635 (REG_CLASS_NAMES): Ditto.
30636 (REG_CLASS_CONTENTS): Ditto.
30637
30638 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
30639
30640 PR target/66274
30641 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
30642 when LEGACY_INT_REGNO_P is processed.
30643
30644 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
30645
30646 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
30647
30648 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
30649
30650 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
30651 register if not marked dead/unused, before return.
30652
30653 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
30654
30655 PR lto/66180
30656 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
30657 is set; check for assembler name at LTO time.
30658 (type_in_anonymous_namespace): Remove hacks, check that all
30659 anonymous types are called "<anon>"
30660 (odr_type_p): Simplify; add check for "<anon>"
30661 (odr_subtypes_equivalent): Add odr_type_p check.
30662 * tree.c (need_assembler_name_p): Even anonymous namespace needs
30663 assembler name.
30664
30665 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
30666
30667 * ipa-utils.h (method_class_type): Remove.
30668 * cgraphunit.c (walk_polymorphic_call_targets): Use
30669 TYPE_METHOD_BASETYPE.
30670 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
30671 on main variants only.
30672 (method_class_type): Remove.
30673 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
30674 (build_type_inheritance_graph): Likewise.
30675 * ipa-icf.c (sem_function::equals_wpa): Likewise.
30676 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
30677 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
30678
30679 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
30680
30681 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
30682 is_typedef_decl, typedef_variant_p): Constify.
30683 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
30684 is_typedef_decl, typedef_variant_p): Constify.
30685
30686 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30687
30688 * defaults.h (gen_tablejump): New function.
30689 (HAVE_tablejump): Add default value.
30690 * expr.c: Adjust.
30691 * stmt.c: Likewise.
30692
30693 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30694
30695 * defaults.h (gen_store_multiple): New function.
30696 (HAVE_store_multiple): Add default value.
30697 * expr.c (move_block_from_reg): Adjust.
30698
30699 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30700
30701 * defaults.h (gen_load_multiple): New function.
30702 (HAVE_load_multiple): Add default value.
30703 * expr.c (move_block_to_reg): Adjust.
30704
30705 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30706
30707 * defaults.h (gen_mem_signal_fence): New function.
30708 (HAVE_mem_signal_fence): Add default value.
30709 * optabs.c: Adjust.
30710
30711 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30712
30713 * defaults.h (gen_memory_barrier): New function.
30714 (HAVE_memory_barrier): Add default value.
30715 * optabs.c: Adjust.
30716
30717 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30718
30719 * defaults.h (gen_mem_thread_fence): New function.
30720 (HAVE_mem_thread_fence): Add default definition.
30721 * optabs.c: Adjust.
30722
30723 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30724
30725 * combine.c (find_split_point): Check the value of HAVE_lo_sum
30726 instead of if it is defined.
30727 (combine_simplify_rtx): Likewise.
30728 * lra-constraints.c (process_address_1): Likewise.
30729 * config/darwin.c: Adjust.
30730 * genconfig.c (main): Always define HAVE_lo_sum.
30731
30732 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30733
30734 * genmatch.c (parser::parse_operation): Reject expanding
30735 operator-list inside 'for'.
30736
30737 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30738
30739 * genmatch.c (parser::parse_for): Reject iterator if used as
30740 operator-list.
30741
30742 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30743
30744 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
30745 after end of id-list.
30746
30747 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
30748
30749 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
30750 we do not try to compute canonical type for type that does not need
30751 alias set.
30752 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
30753 FUNCITON_TYPE.
30754 * tree.h (type_with_alias_set_p): New.
30755
30756 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
30757
30758 * tree.c (gimple_canonical_types_compatible_p): Do not compare
30759 function attributes.
30760 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
30761
30762 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
30763
30764 * Makefile.in (check_gcc_parallelize): Delete.
30765 (lang_checks_parallelized): Update comment.
30766
30767 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
30768
30769 PR rtl-optimization/66237
30770 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
30771 location of an "as_a" cast.
30772
30773 2015-05-22 Jeff Law <law@redhat.com>
30774
30775 * config/pa/pa.md (non-canonical shift-add insns): Remove.
30776 (peepholes with non-canonical RTL sources): Remove.
30777 (peepholes for indexed stores of FP regs in integer modes): Match and
30778 generate canonical RTL.
30779
30780 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
30781
30782 PR tree-optimization/63387
30783 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
30784 ((x ord x) & (y ord y) -> (x ord y),
30785 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
30786 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
30787 vectors like scalars.
30788
30789 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
30790
30791 * convert.c (convert_to_integer, convert_to_vector): Include the
30792 types in the error message.
30793
30794 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
30795
30796 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
30797 simplifications.
30798
30799 2015-05-22 Jeff Law <law@redhat.com>
30800
30801 * config/pa/pa.md (integer_indexed_store splitters): Use
30802 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
30803 insns -- adjusting the constant 2nd operand accordingly.
30804
30805 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
30806 (plus (ashift X log2) Y) if it is a split point.
30807
30808 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
30809 out of hppa_legitimize_address to handle both forms of a multiply
30810 by 2, 4 or 8.
30811 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
30812 Always generate the ASHIFT variant as the result is not directly
30813 used in a MEM. Update comments and refactor slightly to improve
30814 readability.
30815
30816 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30817
30818 PR target/65491
30819 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
30820 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
30821 (aarch64_composite_type_p): Return false if given type and mode are
30822 for a short vector.
30823
30824 2015-05-22 Richard Biener <rguenther@suse.de>
30825
30826 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
30827 member.
30828 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
30829 patterns when determining whether SLP is pure.
30830 (vect_is_slp_reduction): Remove check for pattern stmts.
30831 (vect_is_simple_reduction_1): Remove dead code.
30832 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
30833 (vect_get_and_check_slp_defs): Pass in the stmt number.
30834 Allow the first def in a reduction to be not a pattern stmt when
30835 the rest of the stmts def are patterns.
30836 (vect_build_slp_tree_1): Allow tcc_expression codes like
30837 SAD_EXPR and DOT_PROD_EXPR.
30838 (vect_build_slp_tree): Adjust.
30839 (vect_analyze_slp): Refactor and move BB vect error message ...
30840 (vect_slp_analyze_bb_1): ... here.
30841
30842 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
30843
30844 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
30845 for CSWTCH temporary.
30846
30847 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30848
30849 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
30850 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
30851 unknown unspecs.
30852
30853 2015-05-22 Richard Biener <rguenther@suse.de>
30854
30855 PR tree-optimization/66251
30856 * tree-vect-stmts.c (vectorizable_conversion): Properly
30857 set STMT_VINFO_VEC_STMT even for the SLP case.
30858
30859 2015-05-22 Marek Polacek <polacek@redhat.com>
30860
30861 * doc/extend.texi: Use @pxref instead of @xref.
30862
30863 2015-05-22 hiraditya <hiraditya@msn.com>
30864
30865 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
30866 redundant if.
30867
30868 2015-05-22 Richard Biener <rguenther@suse.de>
30869
30870 PR tree-optimization/65701
30871 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30872 Move peeling cost models into one place. Peel for alignment
30873 for single loads only if an aligned load is cheaper than
30874 an unaligned load.
30875
30876 2015-05-22 Marek Polacek <polacek@redhat.com>
30877
30878 PR c/47043
30879 * doc/extend.texi (Enumerator Attributes): New section.
30880 Document syntax of enumerator attributes.
30881
30882 2015-05-22 Richard Biener <rguenther@suse.de>
30883
30884 * tree-vect-loop.c (get_reduction_op): New function.
30885 (vect_model_reduction_cost): Use it, add reduc_index parameter.
30886 Make ready for BB reductions.
30887 (vect_create_epilog_for_reduction): Use get_reduction_op.
30888 (vectorizable_reduction): Init reduc_index to a valid value.
30889 Adjust vect_model_reduction_cost call.
30890 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
30891 operand for reduction defaults. Add SAD_EXPR support.
30892 Assert we have a neutral op for SLP reductions.
30893 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
30894 walking pattern stmt ops only recurse to SSA names.
30895
30896 2015-05-22 Richard Biener <rguenther@suse.de>
30897
30898 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
30899 assert with guard, remove check on detected reduction.
30900 (vect_recog_sad_pattern): Likewise.
30901 (vect_recog_widen_sum_pattern): Likewise.
30902
30903 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30904
30905 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
30906 __always_inline__ attribute.
30907 (vaesdq_u8): Likewise.
30908 (vaesmcq_u8): Likewise.
30909 (vaesimcq_u8): Likewise.
30910 (vsha1cq_u32): Likewise.
30911 (vsha1mq_u32): Likewise.
30912 (vsha1pq_u32): Likewise.
30913 (vsha1h_u32): Likewise.
30914 (vsha1su0q_u32): Likewise.
30915 (vsha1su1q_u32): Likewise.
30916 (vsha256hq_u32): Likewise.
30917 (vsha256h2q_u32): Likewise.
30918 (vsha256su0q_u32): Likewise.
30919 (vsha256su1q_u32): Likewise.
30920 (vmull_p64): Likewise.
30921 (vmull_high_p64): Likewise.
30922
30923 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30924
30925 * final.c (final_scan_insn): Don't check HAVE_peephole with the
30926 preprocessor.
30927 * output.h: Likewise.
30928 * genconfig.c (main): Alwways define HAVE_peephole.
30929 * genpeep.c: Don't emit checks of HAVE_peephole.
30930
30931 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30932
30933 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
30934 check HAVE_conditional_move with the preprocessor.
30935
30936 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30937
30938 * genconfig.c (main): Always define HAVE_conditional_move.
30939 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
30940 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
30941 is defined.
30942
30943 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30944
30945 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
30946 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
30947 and FRAME_POINTER_REGNUM with the preprocessor.
30948
30949 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30950
30951 * defaults.h: Add default for STACK_PUSH_CODE.
30952 * expr.c: Don't redefine STACK_PUSH_CODE.
30953 * recog.c: Likewise.
30954
30955 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30956
30957 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
30958 sched-deps.c: Use if instead of preprocessor checks with
30959 STACK_GROWS_DOWNWARD.
30960
30961 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30962
30963 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
30964 is defined.
30965 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
30966 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
30967 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
30968 * doc/tm.texi: Regenerate.
30969
30970 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
30971
30972 PR target/66232
30973 * config/i386/constraints.md (Bg): New constraint for GOT memory
30974 operand.
30975 * config/i386/i386.md (*call_got_x32): New pattern.
30976 (*call_value_got_x32): Likewise.
30977 * config/i386/predicates.md (GOT_memory_operand): New predicate.
30978
30979 2015-05-21 Jakub Jelinek <jakub@redhat.com>
30980
30981 PR tree-optimization/66233
30982 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
30983 Simplify.
30984
30985 2015-05-21 Jeff Law <law@redhat.com>
30986
30987 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
30988 than MULT for shadd sequences.
30989
30990 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
30991
30992 * alias.c (alias_stats): New static var.
30993 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
30994 (dump_alias_stats_in_alias_c): New function.
30995 * alias.h (dump_alias_stats_in_alias_c): Declare.
30996 * tree-ssa-alias.c (dump_alias_stats): Call it.
30997
30998 2015-05-08 Michael Matz <matz@suse.de>
30999
31000 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
31001 to strided_p.
31002 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
31003 (STMT_VINFO_STRIDED_P): ... this.
31004 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
31005 (vect_verify_datarefs_alignment): Likewise.
31006 (vect_enhance_data_refs_alignment): Likewise.
31007 (vect_analyze_data_ref_access): Likewise.
31008 (vect_analyze_data_refs): Accept strided stores.
31009 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
31010 (vect_model_load_cost): Adjust for macro rename.
31011 (vectorizable_mask_load_store): Likewise.
31012 (vectorizable_load): Likewise.
31013 (vectorizable_store): Open code strided stores.
31014
31015 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31016
31017 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
31018 Document sqrt_insn.
31019
31020 2015-05-21 Richard Biener <rguenther@suse.de>
31021
31022 PR c++/66211
31023 * match.pd: Guard pattern optimzing (int)(float)int
31024 conversions to apply only on GIMPLE.
31025
31026 2015-05-21 Jeff Law <law@redhat.com>
31027
31028 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
31029 multiply-accumulate/shift-add insn generation.
31030
31031 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
31032
31033 PR target/54236
31034 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
31035 operands[1] are the same.
31036
31037 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
31038
31039 PR middle-end/66221
31040 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
31041 build_distinct_type_copy to copy bounds.
31042
31043 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
31044
31045 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
31046 Change to unsigned int.
31047
31048 2015-05-20 Jeff Law <law@redhat.com>
31049
31050 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
31051 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
31052 (pa_shadd_constant_p): Allow constants for shadd insns rather
31053 than valid scaling constants for memory addresses.
31054 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
31055 * config/pa/predicates.md (mem_shadd_operand): New predicate.
31056 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
31057 (shift-add insns using ASHIFT): New patterns.
31058
31059 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
31060
31061 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
31062 feasible.
31063 (fix_up_fall_thru_edges): Likewise.
31064 (fix_crossing_conditional_branches): Likewise. Promote jump targets
31065 from to rtx_insn to rtx_code_label where feasible.
31066 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
31067 gen_move_insn (returned type changed to rtx_insn).
31068 * builtins.c (expand_errno_check): Fix arguments of
31069 do_compare_rtx_and_jump (now expects rtx_code_label).
31070 (expand_builtin_acc_on_device): Likewise.
31071 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
31072 invert_jump (now exprects rtx_jump_insn).
31073 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
31074 (construct_init_block): Use rtx_code_label.
31075 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
31076 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
31077 calling redirect_jump.
31078 (patch_jump_insn): Likewise.
31079 (redirect_branch_edge): Likewise.
31080 (force_nonfallthru_and_redirect): Likewise.
31081 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
31082 when suitable.
31083 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
31084 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
31085 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
31086 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
31087 to store the value retured by gen_label_rtx.
31088 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
31089 rtx_jump_insn.
31090 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
31091 (split_branches): Fix calls of redirect_jump.
31092 * dojump.c (jumpifnot): Promote argument type from rtx to
31093 rtx_code_label.
31094 (jumpifnot_1): Likewise.
31095 (jumpif): Likewise.
31096 (jumpif_1): Likewise.
31097 (do_jump_1): Likewise.
31098 (do_jump): Likewise. Use rtx_code_label when feasible.
31099 (do_jump_by_parts_greater_rtx): Likewise.
31100 (do_jump_by_parts_zero_rtx): Likewise.
31101 (do_jump_by_parts_equality_rtx): Likewise.
31102 (do_compare_rtx_and_jump): Likewise.
31103 * dojump.h: Update function prototypes.
31104 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
31105 returns rtx_insn).
31106 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
31107 rtx_jump_insn.
31108 (emit_label_before): Likewise.
31109 (emit_jump_insn_after_noloc): Likewise.
31110 (emit_jump_insn_after_setloc): Likewise.
31111 (emit_jump_insn_after): Likewise
31112 (emit_jump_insn_before_setloc): Likewise.
31113 (emit_jump_insn_before): Likewise.
31114 (emit_label_before): Promote return type to rtx_code_label.
31115 (emit_label): Likewise.
31116 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
31117 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
31118 gen_move_insn.
31119 (emit_stack_restore): Likewise.
31120 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
31121 (do_cmp_and_jump): Likewise.
31122 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
31123 from rtx to rtx_code_label.
31124 (gen_move_insn_uncast): New function.
31125 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
31126 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
31127 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
31128 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
31129 invert_jump_1 and redirect_jump_1.
31130 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
31131 do_compare_rtx_and_jump.
31132 (expand_addsub_overflow): Likewise.
31133 (expand_neg_overflow): Likewise.
31134 (expand_mul_overflow): Likewise.
31135 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
31136 return value of gen_move_insn.
31137 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
31138 * loop-doloop.c (add_test): Use rtx_code_label.
31139 (doloop_modify): Likewise.
31140 (doloop_optimize): Likewise.
31141 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
31142 * lra-constraints.c (emit_spill_move): Remove cast of value returned
31143 by gen_move_insn.
31144 (inherit_reload_reg): Add cast when calling dump_insn_slim.
31145 (split_reg): Likewise.
31146 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
31147 gen_move_insn.
31148 * optabs.c (expand_binop_directly): Remove casts of values returned by
31149 maybe_gen_insn.
31150 (expand_unop_direct): Likewise.
31151 (expand_abs): Likewise.
31152 (maybe_emit_unop_insn): Likewise.
31153 (maybe_gen_insn): Promote return type to rtx_insn.
31154 * optabs.h: Update prototype of maybe_gen_insn.
31155 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
31156 redundant cast.
31157 * recog.c (struct peep2_insn_data): Promote type of insn field to
31158 rtx_insn.
31159 (peep2_reinit_state): Use NULL instead of NULL_RTX.
31160 (peep2_attempt): Remove casts of insn in peep2_insn_data.
31161 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
31162 * recog.h (struct insn_gen_fn): Promote return types of function
31163 pointers and operator ().from rtx to rtx_insn.
31164 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
31165 (fill_eager_delay_slots): Likewise.
31166 (relax_delay_slots): Likewise.
31167 (make_return_insns): Likewise.
31168 (dbr_schedule): Likewise.
31169 (optimize_skips): Likewise.
31170 (reorg_redirect_jump): Likewise.
31171 (fill_slots_from_thread): Likewise.
31172 * reorg.h: Update prototypes.
31173 * resource.c (find_dead_or_set_registers): Use dyn_cast to
31174 rtx_jump_insn instead of check. Use it's jump_target method.
31175 * rtl.h (rtx_jump_insn::jump_label): Define new method.
31176 (rtx_jump_insn::jump_target): Define new method.
31177 (rtx_jump_insn::set_jump_target): Define new method.
31178 * rtlanal.c (tablejump_p): Promote type of one local variable.
31179 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
31180 (sched_analyze_insn): Likewise.
31181 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
31182 (print_insn): Likewise.
31183 * stmt.c (label_rtx): Promote return type to rtx_insn.
31184 (force_label_rtx): Likewise.
31185 (jump_target_rtx): Define new function.
31186 (expand_label): Use it, get rid of one cast.
31187 (expand_naked_return): Promote rtx to rtx_code_label.
31188 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
31189 (expand_case): Use rtx_code_label instread of rtx where feasible.
31190 (expand_sjlj_dispatch_table): Likewise.
31191 (emit_case_nodes): Likewise.
31192 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
31193 * store-motion.c (insert_store): Make use of new return type of
31194 gen_move_insn and remove a cast.
31195 (replace_store_insn): Likewise.
31196
31197 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
31198
31199 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
31200 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
31201
31202 2015-05-20 Jeff Law <law@redhat.com>
31203
31204 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
31205 dispose of the jump thread path when the jump threading
31206 opportunity is cancelled.
31207
31208 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
31209
31210 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
31211 when printing the caret character.
31212
31213 2015-05-20 Marek Polacek <polacek@redhat.com>
31214
31215 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
31216
31217 2015-05-20 Marek Polacek <polacek@redhat.com>
31218
31219 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
31220 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
31221 * gimple-fold.c (canonicalize_bool): Likewise.
31222 (same_bool_result_p): Likewise.
31223 * tree-if-conv.c (parse_predicate): Likewise.
31224
31225 2015-05-20 Marek Polacek <polacek@redhat.com>
31226
31227 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
31228 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
31229
31230 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31231
31232 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
31233 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
31234 values.
31235
31236 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
31237
31238 * config/mips/mips.h (micromips_globals): Declare.
31239
31240 2015-05-20 David Malcolm <dmalcolm@redhat.com>
31241
31242 * timevar.def (TV_INITIALIZE_RTL): New.
31243 * toplev.c (initialize_rtl): Use an auto_timevar to account this
31244 function's time to TV_INITIALIZE_RTL.
31245
31246 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
31247
31248 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
31249 gimple_build_nop calls.
31250 (chkp_find_bounds_for_elem): Likewise.
31251 (chkp_get_zero_bounds): Likewise.
31252 (chkp_get_none_bounds): Likewise.
31253 (chkp_get_bounds_by_definition): Likewise.
31254 (chkp_generate_extern_var_bounds): Likewise.
31255 (chkp_get_bounds_for_decl_addr): Likewise.
31256 (chkp_get_bounds_for_string_cst): Likewise.
31257
31258 2015-05-20 Bin Cheng <bin.cheng@arm.com>
31259
31260 PR tree-optimization/65447
31261 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
31262 (dump_use, dump_uses): Support to dump sub use.
31263 (record_use): New parameters to support sub use. Remove call to
31264 dump_use.
31265 (record_sub_use, record_group_use): New functions.
31266 (compute_max_addr_offset, split_all_small_groups): New functions.
31267 (group_address_uses, rewrite_use_address): New functions.
31268 (strip_offset): New declaration.
31269 (find_interesting_uses_address): Call record_group_use.
31270 (add_candidate): New assertion.
31271 (infinite_cost_p): Move definition forward.
31272 (add_costs): Check INFTY cost and return immediately.
31273 (get_computation_cost_at): Clear setup cost and dependent bitmap
31274 for sub uses.
31275 (determine_use_iv_cost_address): Compute cost for sub uses.
31276 (rewrite_use_address_1): Rename from old rewrite_use_address.
31277 (free_loop_data): Free sub uses.
31278 (tree_ssa_iv_optimize_loop): Call group_address_uses.
31279
31280 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
31281 Jim Wilson <jim.wilson@linaro.org>
31282
31283 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
31284 new fields loadv and storev.
31285 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
31286 Initialize loadv and storev.
31287 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
31288 (cortexa53_extra_costs): Likewise.
31289 (cortexa57_extra_costs): Likewise.
31290 (xgene1_extra_costs): Likewise.
31291 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
31292 rtx_costs.
31293
31294 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
31295
31296 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
31297 storev.
31298 (cortexa8_extra_costs): Likewise.
31299 (cortexa5_extra_costs): Likewise.
31300 (cortexa7_extra_costs): Likewise.
31301 (cortexa12_extra_costs): Likewise.
31302 (cortexa15_extra_costs): Likewise.
31303 (v7m_extra_costs): Likewise.
31304
31305 2015-05-20 Jeff Law <law@redhat.com>
31306
31307 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
31308 instead of open-coded version. Also delete the jump thread created
31309 within this function.
31310
31311 2015-05-20 Alan Modra <amodra@gmail.com>
31312
31313 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
31314 stack adjusting insn. Formatting.
31315 (rs6000_emit_prologue): Track stack adjusting insn, and use of
31316 r12. If possible, emit first -fsplit-stack arg pointer insn
31317 before stack adjust. Don't use r12 to save cr if split-stack.
31318
31319 2015-05-20 Alan Modra <amodra@gmail.com>
31320
31321 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
31322 Define.
31323 (rs6000_supports_split_stack): New function.
31324 * config/rs6000/rs6000.c (machine_function): Add
31325 split_stack_arg_pointer.
31326 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
31327 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
31328 rather than virtual_incoming_args_rtx.
31329 (rs6000_va_start): Likewise.
31330 (split_stack_arg_pointer_used_p): New function.
31331 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
31332 (morestack_ref): New var.
31333 (gen_add3_const, rs6000_expand_split_stack_prologue,
31334 rs6000_internal_arg_pointer, rs6000_live_on_entry,
31335 rs6000_split_stack_space_check): New functions.
31336 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
31337 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
31338 (UNSPECV_SPLIT_STACK_RETURN): Define.
31339 (split_stack_prologue, load_split_stack_limit,
31340 load_split_stack_limit_di, load_split_stack_limit_si,
31341 split_stack_return, split_stack_space_check): New expands and insns.
31342 * config/rs6000/rs6000-protos.h
31343 (rs6000_expand_split_stack_prologue): Declare.
31344 (rs6000_split_stack_space_check): Declare.
31345
31346 2015-05-20 Alan Modra <amodra@gmail.com>
31347
31348 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
31349 (direct_return): Test vrsave_size rather than vrsave_mask.
31350 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
31351 (rs6000_emit_epilogue): Likewise.
31352
31353 2015-05-20 Alan Modra <amodra@gmail.com>
31354
31355 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
31356 when not saving registers.
31357 (debug_stack_info): Adjust to omit printing unused offsets,
31358 as before.
31359 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
31360 expression.
31361
31362 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31363
31364 PR c++/65835
31365 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
31366 value_type to const char *.
31367
31368 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
31369
31370 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
31371 to build a biarch toolchain again.
31372
31373 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
31374
31375 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
31376 or implicit declarations.
31377 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
31378 into it.
31379 (get_odr_type): Check type has linkage before adding bases.
31380 (register_odr_type): Check that type has linkage before adding it.
31381 (type_known_to_have_no_deriavations_p): Rename to ..
31382 (type_known_to_have_no_derivations_p): This one.
31383 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
31384 (type_known_to_have_no_derivations_p): This one.
31385 * ipa-polymorphic-call.c
31386 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
31387 type has linkage.
31388
31389 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
31390
31391 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
31392 (layout_type): Use RECORD_OR_UNION_TYPE_P.
31393
31394 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31395
31396 * config/s390/s390.c (s390_vector_bool_type_p): New function.
31397 (s390_invalid_binary_op): New function.
31398 (TARGET_INVALID_BINARY_OP): Define macro.
31399
31400 2015-05-19 David Sherwood <david.sherwood@arm.com>
31401
31402 * loop-invariant.c (create_new_invariant): Don't calculate address cost
31403 if mode is not a scalar integer.
31404 (get_inv_cost): Increase computational cost for unused invariants.
31405
31406 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31407
31408 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
31409 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
31410 * config/s390/s390-builtin-types.def: New file.
31411 * config/s390/s390-builtins.def: New file.
31412 * config/s390/s390-builtins.h: New file.
31413 * config/s390/s390-c.c: New file.
31414 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
31415 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
31416 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
31417 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
31418 prototypes.
31419 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
31420 Include.
31421 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
31422 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
31423 variable definitions.
31424 (s390_const_operand_ok): New function.
31425 (s390_expand_builtin): Rewrite.
31426 (s390_init_builtins): New function.
31427 (s390_handle_vectorbool_attribute): New function.
31428 (s390_attribute_table): Add s390_vector_bool attribute.
31429 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
31430 (s390_branch_condition_mask): Generate masks for new modes.
31431 (s390_expand_vec_compare_cc): New function.
31432 (s390_mangle_type): Add mangling for vector bool types.
31433 (enum s390_builtin): Remove.
31434 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
31435 efpc builtins.
31436 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
31437 s390_cpu_cpp_builtins.
31438 (REGISTER_TARGET_PRAGMAS): New macro.
31439 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
31440 (insn_cmp mode attribute): Add new CC modes.
31441 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
31442 (lcbb): New pattern definition.
31443 * config/s390/s390intrin.h: Include vecintrin.h.
31444 * config/s390/t-s390: New file.
31445 * config/s390/vecintrin.h: New file.
31446 * config/s390/vector.md: Include vx-builtins.md.
31447 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
31448 support.
31449
31450 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31451
31452 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
31453 CCVFHE.
31454 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
31455 (s390_select_ccmode): Likewise.
31456 (s390_canonicalize_comparison): Swap operands if necessary.
31457 (s390_expand_vec_compare_scalar): Expand DFmode compare using
31458 single element vector instructions.
31459 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
31460 (s390_branch_condition_mask): Generate CC masks for the new modes.
31461 * config/s390/s390.md (v0, vf, vd): New mode attributes.
31462 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
31463 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
31464 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
31465 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
31466 (*extend<DSF:mode><BFP:mode>2): New insn definition.
31467 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
31468 (extend<DSF:mode><BFP:mode>2): Turn into expander.
31469 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
31470 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
31471 (sqrt<mode>2): Add vector instruction.
31472
31473 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31474
31475 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
31476 constraints.
31477 * config/s390/predicates.md (const0_operand, constm1_operand)
31478 (constable_operand): Accept vector operands.
31479 * config/s390/s390-modes.def: Add supported vector modes.
31480 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
31481 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
31482 (s390_bytemask_vector_p, s390_expand_vec_strlen)
31483 (s390_expand_vec_compare, s390_expand_vcond)
31484 (s390_expand_vec_init): Add prototypes.
31485 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
31486 (s390_vector_mode_supported_p): New function.
31487 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
31488 (s390_contiguous_bitmask_vector_p): New function.
31489 (s390_bytemask_vector_p): New function.
31490 (s390_split_ok_p): Vector regs don't work either.
31491 (regclass_map): Add VEC_REGS.
31492 (s390_legitimate_constant_p): Handle vector constants.
31493 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
31494 (legitimate_reload_vector_constant_p): New function.
31495 (s390_preferred_reload_class): Handle CONST_VECTOR.
31496 (s390_reload_symref_address): Likewise.
31497 (s390_secondary_reload): Vector memory instructions only support
31498 short displacements. Rename reload*_nonoffmem* to reload*_la*.
31499 (s390_emit_ccraw_jump): New function.
31500 (s390_expand_vec_strlen): New function.
31501 (s390_expand_vec_compare): New function.
31502 (s390_expand_vcond): New function.
31503 (s390_expand_vec_init): New function.
31504 (s390_dwarf_frame_reg_mode): New function.
31505 (print_operand): Handle addresses with 'O' and 'R' constraints.
31506 (NR_C_MODES, constant_modes): Add vector modes.
31507 (s390_output_pool_entry): Handle vector constants.
31508 (s390_hard_regno_mode_ok): Handle vector registers.
31509 (s390_class_max_nregs): Likewise.
31510 (s390_cannot_change_mode_class): New function.
31511 (s390_invalid_arg_for_unprototyped_fn): New function.
31512 (s390_function_arg_vector): New function.
31513 (s390_function_arg_float): Remove size variable.
31514 (s390_pass_by_reference): Handle vector arguments.
31515 (s390_function_arg_advance): Likewise.
31516 (s390_function_arg): Likewise.
31517 (s390_return_in_memory): Vector values are returned in a VR if
31518 possible.
31519 (s390_function_and_libcall_value): Handle vector arguments.
31520 (s390_gimplify_va_arg): Likewise.
31521 (s390_call_saved_register_used): Consider the arguments named.
31522 (s390_conditional_register_usage): Disable v16-v31 for non-vec
31523 targets.
31524 (s390_preferred_simd_mode): New function.
31525 (s390_support_vector_misalignment): New function.
31526 (s390_vector_alignment): New function.
31527 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
31528 (TARGET_VECTOR_MODE_SUPPORTED_P)
31529 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
31530 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
31531 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
31532 (TARGET_VECTOR_ALIGNMENT): Define target macro.
31533 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
31534 (FIRST_PSEUDO_REGISTER): Increase value.
31535 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
31536 (VECTOR_REG_P): Define macros.
31537 (FIXED_REGISTERS, CALL_USED_REGISTERS)
31538 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
31539 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
31540 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
31541 Add vector registers.
31542 (CANNOT_CHANGE_MODE_CLASS): Call C function.
31543 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
31544 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
31545 memory.
31546 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
31547 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
31548 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
31549 (VR*_REGNUM): New constants.
31550 (ALL): New mode iterator.
31551 (INTALL): Remove mode iterator.
31552 Include vector.md.
31553 (movti): Implement TImode moves for VRs.
31554 Disable TImode splitter for VR targets.
31555 Implement splitting TImode GPR<->VR moves.
31556 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
31557 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
31558 reload<mode>_la_in, reload<mode>_la_out.
31559 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
31560 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
31561 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
31562 (mov<mode> SF SD): Prefer lder, lde for loading.
31563 Add lrl and strl instructions.
31564 Add vector instructions.
31565 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
31566 Call s390_expand_vec_strlen on z13.
31567 (*cc_to_int): Change predicate to nonimmediate_operand.
31568 (addti3): Rename to *addti3. New expander.
31569 (subti3): Rename to *subti3. New expander.
31570 * config/s390/vector.md: New file.
31571
31572 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31573
31574 * common/config/s390/s390-common.c (processor_flags_table): Add
31575 z13.
31576 * config.gcc: Add z13.
31577 * config/s390/s390-opts.h (enum processor_type): Add
31578 PROCESSOR_2964_Z13.
31579 * config/s390/s390.c (s390_adjust_priority): Check for
31580 PROCESSOR_2964_Z13.
31581 (s390_reorg): Likewise.
31582 (s390_sched_reorder): Likewise.
31583 (s390_sched_variable_issue): Likewise.
31584 (s390_loop_unroll_adjust): Likewise.
31585 (s390_option_override): Likewise. Default to -mvx when available.
31586 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
31587 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
31588 (TARGET_VX_ABI): Define macros.
31589 macros.
31590 (TARGET_DEFAULT): Add MASK_OPT_VX.
31591 * config/s390/s390.md ("cpu" attribute): Add z13.
31592 ("cpu_facility" attribute): Add vec.
31593 * config/s390/s390.opt (processor_type): Add z13.
31594 (mvx): New options.
31595 * doc/invoke.texi: Add z13 option for -march.
31596
31597 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31598
31599 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
31600 mode check to make sure that only scalar integer values are
31601 accepted.
31602
31603 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
31604
31605 * tree.c (verify_type_variant): Fix #undef.
31606 (gimple_canonical_types_compatible_p): Move here from lto.c
31607 (verify_type): Verify TYPE_CANONICAL compatibility.
31608 * tree.h (gimple_canonical_types_compatible_p): Declare.
31609
31610 2015-05-19 Jakub Jelinek <jakub@redhat.com>
31611
31612 PR middle-end/66199
31613 * tree.h (OMP_TEAMS_COMBINED): Define.
31614 * gimplify.c (enum gimplify_omp_var_data): Add
31615 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
31616 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
31617 (omp_notice_variable): Accept both ORT_TEAMS
31618 and ORT_COMBINED_TEAMS. Don't recurse if
31619 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
31620 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
31621 GOVD_FIRSTPRIVATE.
31622 (omp_no_lastprivate): New function.
31623 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
31624 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
31625 notice_outer and set appropriate bits, otherwise make
31626 sure default(none) combined constructs won't complain.
31627 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
31628 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
31629 omp_no_lastprivate either remove the clause or turn it
31630 into OMP_CLAUSE_PRIVATE.
31631 (gimplify_omp_for): Fix up handling of implicit
31632 lastprivate or linear iterators.
31633 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
31634 ORT_COMBINED_TEAMS.
31635 * omp-low.c (lower_omp_for_lastprivate): For combined
31636 for simd use fd.loop.n2 from the for rather than simd.
31637
31638 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31639
31640 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
31641 instead of gen_rtx_raw_REG.
31642 (cris_expand_epilogue): Likewise.
31643 * config/microblaze/microblaze.c (microblaze_classify_address):
31644 Likewise.
31645 * config/sparc/sparc.md: Likewise.
31646
31647 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
31648
31649 * config/alpha/alpha.c (alpha_legitimize_reload_address)
31650 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
31651 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
31652 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
31653 Use CASE_CONST_SCALAR_INT.
31654 (print_operand) <case 'M'>: Use mode_width_operand to check the
31655 value of the constant.
31656 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
31657 * config/alpha/predicates.md (input_operand): Use general_operand
31658 instead of match_code as operand check.
31659 (symbolic_operand): Use match_code with subexpression digits.
31660 * config/alpha/constraints.md (Q): Ditto.
31661
31662 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31663
31664 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
31665
31666 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31667
31668 * config/s390/s390.c (s390_secondary_reload): Fix check for
31669 load/store relative.
31670
31671 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31672
31673 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
31674 alternative_mask to uint64_t.
31675
31676 2015-05-19 Jakub Jelinek <jakub@redhat.com>
31677
31678 PR tree-optimization/66187
31679 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
31680 Pass TYPE_SIGN to tree_int_cst_min_precision. If
31681 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
31682
31683 2015-05-19 David Malcolm <dmalcolm@redhat.com>
31684
31685 * diagnostic.c (diagnostic_report_current_module): Strengthen
31686 local "new_map" from const line_map * to
31687 const line_map_ordinary *.
31688 * genmatch.c (error_cb): Likewise for local "map".
31689 (output_line_directive): Likewise for local "map".
31690 * input.c (expand_location_1): Likewise for local "map".
31691 Pass NULL rather than &map to
31692 linemap_unwind_to_first_non_reserved_loc, since the value is never
31693 read from there, and the value written back not read from here.
31694 (is_location_from_builtin_token): Strengthen local "map" from
31695 const line_map * to const line_map_ordinary *.
31696 (dump_location_info): Strengthen locals "map" from
31697 line_map *, one to const line_map_ordinary *, the other
31698 to const line_map_macro *.
31699 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
31700 const line_map * to const line_map_macro *.
31701 (maybe_unwind_expanded_macro_loc): Add a call to
31702 linemap_check_macro when writing to the "map" field of the
31703 loc_map_pair.
31704 Introduce local const line_map_ordinary * "ord_map", using it in
31705 place of "map" in the part of the function where we know we have
31706 an ordinary map. Strengthen local "m" from const line_map * to
31707 const line_map_ordinary *.
31708
31709 2015-05-19 Nick Clifton <nickc@redhat.com>
31710
31711 PR target/66156
31712 * config/msp430/msp430.md (zero_extendhisi2): Add support for
31713 separate source and destination registers.
31714
31715 2015-05-19 Richard Biener <rguenther@suse.de>
31716
31717 PR tree-optimization/66165
31718 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
31719 for no load permutation.
31720
31721 PR tree-optimization/66185
31722 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
31723 when building the SLP node from scalars.
31724
31725 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
31726 Tristan Gingold <gingold@adacore.com>
31727
31728 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
31729 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
31730 (expand_stack_restore): Call record_new_stack_level.
31731 (expand_stack_save): Do not call do_pending_stack_adjust.
31732 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
31733 * calls.c (expand_call): Call record_new_stack_level for alloca.
31734 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
31735 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
31736 (update_sjlj_context): New global function.
31737 * except.h (update_sjlj_context): Declare.
31738 * explow.c (record_new_stack_level): New global function.
31739 (allocate_dynamic_stack_space): Call record_new_stack_level.
31740 * explow.h (record_new_stack_level): Declare.
31741 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
31742 * cfgrtl.c (duplicate_insn_chain): Likewise.
31743
31744 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31745
31746 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
31747 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
31748 STACK_GROWS_DOWNWARD as normal if.
31749 (expand_call): Likewise.
31750
31751 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
31752
31753 PR target/54236
31754 * config/sh/sh.md (*round_int_even): New insn_and_split and
31755 accompanying new unnamed split.
31756
31757 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31758
31759 * bitmap.c (bitmap_set_range): Handle count==1 specially.
31760 (bitmap_clear_range): Likewise.
31761 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
31762 bitmap_set_range unconditionally.
31763 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
31764 * df-scan.c (df_mark_reg): Likewise.
31765 * haifa-sched.c (setup_ref_regs): Likewise.
31766 * sched-rgn.c (update_live_1): Likewise.
31767
31768 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31769
31770 * regs.h (END_HARD_REGNO): Delete.
31771 (END_REGNO): Move to...
31772 * rtl.h: ...here.
31773 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
31774 * caller-save.c (mark_set_regs): Likewise.
31775 * combine.c (move_deaths, distribute_notes): Likewise.
31776 * cse.c (invalidate, invalidate_for_call): Likewise.
31777 * df-scan.c (df_ref_record): Likewise.
31778 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
31779 (record_last_reg_set_info): Likewise.
31780 * reg-stack.c (convert_regs_exit): Likewise.
31781 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
31782 * resource.c (update_live_status): Likewise.
31783 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
31784
31785 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31786
31787 * rtl.h (reg_info): Add an nregs field.
31788 (REG_NREGS): Use it.
31789 (SET_REGNO_RAW): Delete.
31790 (set_regno_raw): New function.
31791 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
31792 (END_REGNO): Redefine in terms of REG_NREGS.
31793 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
31794 SET_REGNO_RAW.
31795 * emit-rtl.c (set_mode_and_regno): Likewise.
31796 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
31797 instead of SET_REGNO_RAW.
31798
31799 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31800
31801 * rtl.h (PUT_MODE_RAW): New macro.
31802 (PUT_REG_NOTE_KIND): Use it.
31803 (set_mode_and_regno): Declare.
31804 (gen_raw_REG): Change regno to "unsigned int".
31805 (gen_rtx_REG): Change "unsigned" to "unsigned int".
31806 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
31807 use set_mode_and_regno to change the mode of registers.
31808 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
31809 * emit-rtl.c (set_mode_and_regno): New function.
31810 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
31811 * caller-save.c (reg_save_code): Use set_mode_and_regno.
31812 * expr.c (init_expr_target): Likewise.
31813 * ira.c (setup_prohibited_mode_move_regs): Likewise.
31814 * postreload.c (reload_cse_simplify_operands): Likewise.
31815
31816 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31817
31818 * caller-save.c (init_caller_save): Use word_mode and
31819 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
31820 * expr.c (init_expr_target): Likewise.
31821 * ira.c (setup_prohibited_mode_move_regs): Likewise.
31822 * postreload.c (reload_cse_regs_1): Likewise.
31823
31824 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31825
31826 * rtl.def (REG): Change format to "r".
31827 * rtl.h (rtunion): Remove rt_reg.
31828 (reg_info): New structure.
31829 (rtx_def): Add reg field to main union.
31830 (X0REGATTR): Delete.
31831 (REG_CHECK): New macro.
31832 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
31833 * rtl.c (rtx_format): Document "r".
31834 (rtx_code_size): Handle REG specially.
31835 * gengenrtl.c (special_format): Return true for formats
31836 that include 'r'.
31837 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
31838 Deal with REG_ATTRS after the field loop.
31839 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
31840 * expmed.c (init_expmed): Call gen_raw_REG instead of
31841 gen_rtx_raw_REG.
31842 * expr.c (init_expr_target): Likewise.
31843 * regcprop.c (maybe_mode_change): Likewise.
31844 * varasm.c (make_decl_rtl): Likewise.
31845 * final.c (leaf_renumber_regs_insn): Return early after
31846 handling REGs.
31847 * genemit.c (gen_exp): Handle 'r' fields.
31848 * genpeep.c (match_rtx): Likewise.
31849 * gensupport.c (subst_pattern_match): Likewise.
31850 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
31851 (alter_constraints, subst_dup): Likewise.
31852 * read-rtl.c (read_rtx_code): Likewise.
31853 * print-rtl.c (print_rtx): Likewise.
31854 * genrecog.c (find_operand, find_matching_operand): Likewise.
31855 (validate_pattern, match_pattern_2): Likewise.
31856 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
31857 (rtx_test::regno_field): New function.
31858 (operator ==, safe_to_hoist_p, transition_parameter_type)
31859 (parameter_type_string, print_parameter_value)
31860 (print_nonbool_test, print_test): Handle new enum values.
31861 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
31862 * lra-constraints.c (operands_match_p): Likewise.
31863
31864 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31865
31866 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
31867 Change type of new_regno to unsigned int.
31868 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
31869 new_regno to unsigned int.
31870 (df_ref_change_reg_with_loc): Remove old_regno parameter.
31871 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
31872 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
31873 (SET_REGNO_RAW): Add space after ",".
31874
31875 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31876
31877 * rtl.h (REG_NREGS): New macro
31878 * alias.c (record_set): Use it.
31879 * cfgcleanup.c (mark_effect): Likewise.
31880 * combine.c (likely_spilled_retval_1): Likewise.
31881 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
31882 (move_deaths, distribute_notes): Likewise.
31883 * cselib.c (cselib_record_set): Likewise.
31884 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
31885 * df-scan.c (df_mark_reg): Likewise.
31886 * dse.c (look_for_hardregs): Likewise.
31887 * dwarf2out.c (reg_loc_descriptor): Likewise.
31888 (multiple_reg_loc_descriptor): Likewise.
31889 * expr.c (write_complex_part, read_complex_part): Likewise.
31890 (emit_move_complex): Likewise.
31891 * haifa-sched.c (setup_ref_regs): Likewise.
31892 * ira-lives.c (mark_hard_reg_live): Likewise.
31893 * lra.c (lra_set_insn_recog_data): Likewise.
31894 * mode-switching.c (create_pre_exit): Likewise.
31895 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
31896 (reload_combine_recognize_pattern): Likewise.
31897 (reload_combine_note_use, move2add_record_mode): Likewise.
31898 (reload_cse_move2add): Likewise.
31899 * reg-stack.c (subst_stack_regs_pat): Likewise.
31900 * regcprop.c (kill_value, copy_value): Likewise.
31901 (copyprop_hardreg_forward_1): Likewise.
31902 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
31903 (build_def_use): Likewise.
31904 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
31905 (deps_analyze_insn): Likewise.
31906 * sched-rgn.c (check_live_1, update_live_1): Likewise.
31907 * sel-sched.c (count_occurrences_equiv): Likewise.
31908 * valtrack.c (dead_debug_insert_temp): Likewise.
31909
31910 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31911
31912 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
31913 * dse.c (note_add_store): Likewise.
31914 * ira-lives.c (mark_hard_reg_dead): Likewise.
31915 * loop-invariant.c (mark_reg_store): Likewise.
31916 (mark_reg_death): Likewise.
31917 * postreload.c (reload_combine): Likewise.
31918 (reload_combine_note_store): Likewise.
31919 (reload_combine_note_use): Likewise.
31920 * recog.c (peep2_reg_dead_p): Likewise.
31921
31922 2015-05-19 Alan Modra <amodra@gmail.com>
31923
31924 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
31925 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
31926 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
31927 unused predicates.
31928 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
31929 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
31930 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
31931 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
31932
31933 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
31934
31935 * config/mips/mips.md (JOIN_MODE): New mode iterator.
31936 (join2_load_Store<JOIN_MODE:mode>): New pattern.
31937 (join2_loadhi): Likewise.
31938 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
31939 load-load and store-stores.
31940 * config/mips/mips.opt (mload-store-pairs): New option.
31941 (TARGET_LOAD_STORE_PAIRS): New macro.
31942 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
31943 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
31944 * config/mips/mips.c (mips_load_store_bonding_p): New function.
31945
31946 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
31947
31948 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
31949 explicit swaps.
31950 * dojump.c (do_compare_rtx_and_jump): Likewise.
31951 * expmed.c (emit_store_flag_1): Likewise.
31952 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
31953 * final.c (sprint_ul): Use std::reverse for reversing a string.
31954 * fold-const.c (extract_muldiv_1): Use std::swap.
31955 * genmodes.c (emit_mode_int_n): Likewise.
31956 * ifcvt.c (dead_or_predicable): Likewise.
31957 * ira-build.c (ira_merge_live_ranges): Likewise.
31958 (swap_allocno_copy_ends_if_necessary): Likewise.
31959 * ira.c (ira_setup_alts): Likewise.
31960 * loop-iv.c (iv_analyze_expr): Likewise.
31961 (implies_p): Likewise.
31962 (canon_condition): Likewise.
31963 * lra-constraints.c (swap_operands): Likewise.
31964 * lra-lives.c (lra_merge_live_ranges): Likewise.
31965 * omega.c (swap): Remove.
31966 (bswap): Remove.
31967 (omega_unprotect_1): Use std::swap.
31968 (omega_solve_geq): Likewise.
31969 * optabs.c (expand_binop_directly): Likewise.
31970 (expand_binop): Likewise.
31971 (emit_conditional_move): Likewise.
31972 (emit_conditional_add): Likewise.
31973 * postreload.c (reload_cse_simplify_operands): Likewise.
31974 * reg-stack.c (emit_swap_insn): Likewise.
31975 (swap_to_top): Likewise.
31976 (compare_for_stack_reg): Likewise.
31977 (subst_asm_stack_regs): Likewise.
31978 * reload.c (find_reloads): Likewise.
31979 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
31980 * sel-sched.c (invoke_reorder_hooks): Likewise.
31981 (create_block_for_bookkeeping): Likewise.
31982 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
31983 (lambda_matrix_right_hermite): Use std::swap.
31984 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
31985 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
31986 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
31987 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
31988 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
31989 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
31990 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
31991 * tree-vrp.c (compare_ranges): Likewise.
31992 * var-tracking.c (add_with_sets): Likewise.
31993 (vt_find_locations): Likewise.
31994
31995 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
31996
31997 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
31998 pie executables.
31999 (FBSD_ENDFILE_SPEC): Likewise.
32000 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
32001 config/freebsd-spec.h.
32002 (ENDFILE_SPEC): Likewise.
32003
32004 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
32005 Richard Henderson <rth@redhat.com>
32006
32007 PR target/57032
32008 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
32009 Check for a memory location that is not a reference (using an AND)
32010 to an unaligned location here.
32011 * config/alpha/predicates.md (normal_memory_operand): Remove.
32012
32013 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
32014
32015 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
32016 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
32017
32018 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
32019
32020 * config/mips/mips.c (micromips_globals): New variable.
32021 (mips_set_compression_mode): Save and reinitialize target-dependent
32022 state for microMIPS.
32023
32024 2015-05-18 Martin Liska <mliska@suse.cz>
32025
32026 * dbgcnt.def: Add new counter.
32027 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
32028
32029 2015-05-18 Martin Liska <mliska@suse.cz>
32030
32031 * dbgcnt.def: Sort counters.
32032 * opts.c (common_handle_option): Do not compile if
32033 -fdbg-cnt-list is enabled.
32034
32035 2015-05-18 Tom de Vries <tom@codesourcery.com>
32036
32037 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
32038 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
32039 address operator to va_list operand.
32040 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
32041 unconditionally.
32042 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
32043 operand.
32044 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
32045 * config/s390/s390.c (s390_gimplify_va_arg): Same.
32046 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
32047
32048 2015-05-18 Tom de Vries <tom@codesourcery.com>
32049
32050 * tree-ssa-tail-merge.c: Fix whitespace.
32051
32052 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
32053
32054 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
32055 cortex-a17, and cortex-a17.cortex-a7.
32056
32057 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
32058
32059 PR target/54236
32060 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
32061
32062 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
32063
32064 PR target/66174
32065 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
32066 QImode inner modes for TARGET_AVX512BW. Force mask operand
32067 to a register for AVX512F modes.
32068
32069 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
32070
32071 * toplev.c (emit_debug_global_declarations): Do not output debug info
32072 when doing slim LTO objects.
32073
32074 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
32075
32076 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
32077 odr_types_equivalent_p): Declare.
32078 (odr_type_p): Use gcc_checking_assert.
32079 (type_in_anonymous_namespace_p) Declare.
32080 (type_with_linkage_p): Declare.
32081 * common.opt (Wlto-type-mismatch): New warning.
32082 * ipa-devirt.c (compound_type_base): New function.
32083 (odr_or_derived_type_p): New function.
32084 (odr_types_equivalent_p): New function.
32085 (add_type_duplicate): Simplify.
32086 (type_with_linkage_p): Add hack to prevent false positives on C types
32087 (type_in_anonymous_namespace_p): Likewise.
32088 * tree.c (need_assembler_name_p): Use type_with_linkage.
32089 * tree.h (type_in_anonymous_namespace_p): Remove.
32090 * doc/invoke.texi (-Wlto-type-mismatch): Document
32091
32092 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
32093
32094 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
32095 (verify_type): Verify STRING_FLAG.
32096
32097 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
32098
32099 PR fortran/44054
32100 * tree-pretty-print.c (percent_K_format): Replace locus pointer
32101 with accessor function.
32102 * tree-diagnostic.c (diagnostic_report_current_function): Use
32103 diagnostic_location function.
32104 (maybe_unwind_expanded_macro_loc): Likewise.
32105 (virt_loc_aware_diagnostic_finalizer): Likewise.
32106 (default_tree_printer): Replace locus pointer with accessor function.
32107 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
32108 (diagnostic_set_info_translated): Initialize second location.
32109 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
32110 (diagnostic_show_locus): Handle two locations. Call
32111 diagnostic_print_caret_line.
32112 (diagnostic_print_caret_line): New.
32113 (default_diagnostic_starter): Use diagnostic_location function.
32114 (diagnostic_report_diagnostic): Use diagnostic_location function.
32115 (verbatim): Do not set text.locus.
32116 * diagnostic.h (struct diagnostic_info): Remove location field.
32117 (struct diagnostic_context): Make caret_chars an array of two.
32118 (diagnostic_location): New inline.
32119 (diagnostic_expand_location): Handle two locations.
32120 (diagnostic_same_line): New inline.
32121 (diagnostic_print_caret_line): Declare.
32122 (CARET_LINE_MARGIN): New constant.
32123 * pretty-print.c (pp_printf): Do not set text.locus.
32124 (pp_verbatim): Do not set text.locus.
32125 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
32126 (struct text_info): Replace locus pointer with locations
32127 array. Add accessor functions.
32128
32129 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
32130 Zhenqiang Chen <zhenqiang.chen@linaro.org>
32131
32132 PR target/65768
32133 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
32134 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
32135 large constants in register instead of splitting them.
32136
32137 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
32138
32139 PR target/66140
32140 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
32141 replacements in memory addresses.
32142 (get_unaligned_address): Ditto.
32143
32144 2015-05-16 James Bowman <james.bowman@ftdichip.com>
32145
32146 * config/ft32/*: New files for FT32 port.
32147 * doc/install.texi: Add FT32 information.
32148 * doc/invoke.texi: Add FT32 information.
32149 * doc/md.texi: Add FT32 information.
32150 * doc/contrib.texi: Self added.
32151
32152 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
32153
32154 PR tree-optimization/64454
32155 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
32156 (-1 - A -> ~A): Remove unnecessary condition.
32157
32158 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
32159
32160 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
32161 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
32162 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
32163
32164 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
32165
32166 * ipa-chkp.h (chkp_wrap_function): New.
32167 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
32168 (chkp_wrap_function_name): New.
32169 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
32170 to get wrapper name.
32171 * lto-cgraph.c: Include ipa-chkp.h.
32172 (input_cgraph_1): Avoid alias chain for wrappers.
32173
32174 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
32175
32176 PR middle-end/66134
32177 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
32178 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
32179
32180 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32181
32182 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
32183 (AARCH64_FL_SLOWMUL): Delete.
32184 (AARCH64_FL_CRC): Redefine to 1<<3.
32185 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
32186
32187 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32188
32189 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
32190 casting.
32191
32192 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
32193
32194 * config/alpha/alpha.md (extendqidi2): Use general_operand
32195 instead of some_operand for operand[1] predicate.
32196 (extendhidi2): Ditto.
32197 (cbranchdi4): Use general_operand instead of some_operand
32198 for operand[1] and operands[2] predicates.
32199 (cstoredi4): Ditto.
32200 * config/alpha/predicates.md (some_operand): Remove unused predicate.
32201 (some_ni_operand): Ditto.
32202
32203 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
32204
32205 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
32206 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
32207 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
32208 low part of the constant using alpha_emit_set_const_1.
32209 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
32210
32211 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
32212
32213 * varasm.c (output_constant_pool_1): Pass down alignment from
32214 constant pool entry's descriptor to output_constant_pool_2.
32215 (output_object_block): Add comment prior to call to
32216 output_constant_pool_1.
32217
32218 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
32219
32220 PR rtl-optimization/65862
32221 * target.def (ira_change_pseudo_allocno_class): New hook.
32222 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
32223 value of the hook.
32224 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
32225 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
32226 hook.
32227 * ira-costs.c (find_costs_and_classes): Call the hook and change
32228 classes when it is necessary.
32229 * doc/tm.texi: Update.
32230
32231 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
32232
32233 * config/i386/i386.md (sibcall_memory): Check that register with
32234 callee address is not also used as one of the arguments, instead
32235 of checking that it is not live after the sibcall.
32236 (sibcall_pop_memory): Ditto.
32237 (sibcall_value_memory): Ditto.
32238 (sibcall_value_pop_memory): Ditto.
32239
32240 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
32241
32242 * generic-match-head.c (types_match): Handle non-types.
32243 * gimple-match-head.c (types_match): Likewise.
32244 * match.pd: Remove unnecessary TREE_TYPE for types_match.
32245
32246 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
32247
32248 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
32249 (csneg3<mode>_insn): Enable expansion of pattern.
32250
32251 2015-05-14 Nick Clifton <nickc@redhat.com>
32252
32253 * config/rl78/rl78.c (rl78_select_section): Select the correct
32254 default section based upon the category of the decl.
32255
32256 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
32257
32258 PR rtl-optimization/30967
32259 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
32260 destination mode for the cost of scc patterns.
32261
32262 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
32263
32264 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
32265 using SWIM248 mode iterator.
32266 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
32267 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
32268 for operand[2] constraint.
32269 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
32270
32271 2015-05-13 Jakub Jelinek <jakub@redhat.com>
32272
32273 PR middle-end/66133
32274 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
32275 make sure it is never noreturn, even when the task body does not
32276 return.
32277 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
32278 right before GIMPLE_OMP_RETURN.
32279 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
32280 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
32281 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
32282
32283 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32284
32285 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
32286 * tree-ssa-math-opts.c: Include params.h
32287 (pow_synth_sqrt_info): New struct.
32288 (representable_as_half_series_p): New function.
32289 (get_fn_chain): Likewise.
32290 (print_nested_fn): Likewise.
32291 (dump_fractional_sqrt_sequence): Likewise.
32292 (dump_integer_part): Likewise.
32293 (expand_pow_as_sqrts): Likewise.
32294 (gimple_expand_builtin_pow): Use above to attempt to expand
32295 pow as series of square roots. Removed now unused variables.
32296
32297 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
32298
32299 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
32300 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
32301 Remove *p0 and *p1 arguments. Rewrite function.
32302 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
32303 (alpha_split_const_mov): Update calls to alpha_extract_integer and
32304 alpha_emit_set_long_const.
32305 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
32306 (alpha_output_mi_thunk_osf): Ditto.
32307 * config/alpha/alpha.md (movti): Do not check operands[1]
32308 for CONST_DOUBLE.
32309
32310 2015-05-13 Richard Biener <rguenther@suse.de>
32311
32312 PR tree-optimization/66129
32313 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
32314 commutative.
32315 (vect_schedule_slp_instance): Fix typo.
32316
32317 2015-05-13 David Malcolm <dmalcolm@redhat.com>
32318
32319 * common.opt (fdump-internal-locations): New option.
32320 * input.c: Include diagnostic-core.h.
32321 (get_end_location): New function.
32322 (write_digit): New function.
32323 (write_digit_row): New function.
32324 (dump_location_range): New function.
32325 (dump_labelled_location_range): New function.
32326 (dump_location_info): New function.
32327 * input.h (dump_location_info): New prototype.
32328 * toplev.c (compile_file): Handle flag_dump_locations.
32329
32330 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
32331
32332 * gimple-expr.h (is_gimple_constant): Reorder.
32333 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
32334
32335 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
32336
32337 * combine.c (simplify_set): When generating a CC set, if the
32338 source already is in the correct mode, do not wrap it in a
32339 compare. Simplify the rest of that code.
32340
32341 2015-05-13 Richard Biener <rguenther@suse.de>
32342
32343 PR tree-optimization/66123
32344 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
32345 a taken edge.
32346
32347 2015-05-13 Richard Biener <rguenther@suse.de>
32348
32349 PR middle-end/66110
32350 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
32351 specially.
32352 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
32353
32354 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
32355
32356 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
32357 * aclocal.m4: Regenerated with automake-1.11.6.
32358
32359 2015-05-13 Tom de Vries <tom@codesourcery.com>
32360
32361 PR tree-optimization/66010
32362 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
32363 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
32364 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
32365 and rval based on do_deref.
32366
32367 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
32368
32369 PR target/65103
32370 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
32371 link time constants into adress expressions and therefore set
32372 their cost to 0.
32373
32374 2015-05-13 Jakub Jelinek <jakub@redhat.com>
32375
32376 PR target/66112
32377 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
32378 Use SWI248 iterator instead of SWI.
32379 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
32380 Use eq_attr "alternative" "0" instead of match_test in
32381 length_immediate attribute computation.
32382 (*mulvhi4, *mulvhi4_1): New define_insns.
32383
32384 PR target/66112
32385 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
32386 SIGNED to get precision of non-negative value.
32387
32388 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
32389
32390 PR target/66048
32391 * function.c (diddle_return_value_1): Process bounds first.
32392 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
32393 register.
32394
32395 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
32396
32397 PR rtl-optimization/64616
32398 * loop-invariant.c (can_move_invariant_reg): New.
32399 (move_invariant_reg): Call above new function to decide whether
32400 instruction can just be moved, skipping creation of temporary
32401 register.
32402
32403 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
32404
32405 PR target/pr66047.c
32406 * i386.c (ix86_function_sseregparm): Only return -1 if local function
32407 with implied regparm is called from -mno-sse function.
32408 (init_cumulative_args): Output error if ix86_function_sseregparm
32409 return -1 and SSE register would be needed.
32410 (function_arg_advance_32): Likewise.
32411 (function_arg_32): Likewise.
32412 * i386.h (ix86_args): Add decl field.
32413
32414 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
32415
32416 PR ipa/65873
32417 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
32418 inlines across optimization boundary.
32419
32420 2015-05-12 Jason Merrill <jason@redhat.com>
32421
32422 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
32423 string literal and macro name.
32424
32425 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
32426
32427 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
32428 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
32429 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
32430
32431 2015-05-12 David Malcolm <dmalcolm@redhat.com>
32432
32433 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
32434 (-Wmisleading-indentation): New option.
32435 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
32436
32437 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
32438
32439 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
32440 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
32441 (alpha_extract_integer): Ditto.
32442 (alpha_legitimate_constant_p): Ditto.
32443 (alpha_split_tmode_pair): Ditto.
32444 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
32445 (alpha_expand_mov): Ditto.
32446 (print_operand): Remove handling of 'H' modifier.
32447 <case 'm'>: Remove CONST_DOUBLE handling.
32448 (summarize_insn): Handle CONST_WIDE_INT.
32449 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
32450 (anddi3): Ditto.
32451 (movti): Handle CONST_WIDE_INT.
32452 * config/alpha/constraints.md ('H'): Remove constraint definition.
32453 ('G'): Do not match MODE_FLOAT class.
32454 * config/alpha/predicates.md (const0_operand): Also match
32455 const_wide_int.
32456 (non_add_const_operand): Ditto.
32457 (non_zero_const_operand): Ditto.
32458 (some_operand): Ditto.
32459 (input_operand): Ditto. Handle CONST_WIDE_INT.
32460 (and_operand): Do not match const_double.
32461 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
32462
32463 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
32464
32465 PR target/65697
32466 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
32467 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
32468 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
32469 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
32470 is_mm_seq_cst, is_mm_sync): New accessor functions.
32471 * builtins.c (expand_builtin_sync_operation,
32472 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
32473 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
32474 (get_memmodel, expand_builtin_atomic_compare_exchange,
32475 expand_builtin_atomic_load, expand_builtin_atomic_store,
32476 expand_builtin_atomic_clear): Use new accessor routines.
32477 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
32478 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
32479 (maybe_emit_sync_lock_test_and_set): Use new accessors and
32480 MEMMODEL_SYNC_ACQUIRE.
32481 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
32482 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
32483 expand_atomic_store): Use new accessors.
32484 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
32485 * tsan.c (instrument_builtin_call): Update check for memory model beyond
32486 final enum to use MEMMODEL_LAST.
32487 * c-family/c-common.c: Use new accessor for memmodel_base.
32488 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
32489 accessors.
32490 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
32491 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
32492 mem_thread_fence, *dmb): Likewise.
32493 * config/alpha/alpha.c (alpha_split_compare_and_swap,
32494 alpha_split_compare_and_swap_12): Likewise.
32495 * config/arm/arm.c (arm_expand_compare_and_swap,
32496 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
32497 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
32498 atomic_loaddi): Likewise.
32499 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
32500 Likewise.
32501 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
32502 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
32503 use new accessors.
32504 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
32505 atomic_store<mode>, atomic_compare_and_swap<mode>,
32506 atomic_exchange<mode>): Use new accessors.
32507 * config/mips/mips.c (mips_process_sync_loop): Likewise.
32508 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
32509 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
32510 rs6000_post_atomic_barrier): Add new cases.
32511 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
32512 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
32513 (atomic_load<mode>): Add new cases and use new accessors.
32514 (store_quadpti): Add new cases.
32515 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
32516 accessors.
32517 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
32518 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
32519 model, not 8.
32520
32521 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
32522
32523 * ipa-devirt.c (type_with_linkage_p): New function.
32524 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
32525 type has linkage.
32526 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
32527 (can_be_name_hashed_p): Simplify.
32528 (hash_odr_name): Check that type has linkage before checking if it is
32529 anonymous.
32530 (types_same_for_odr): Likewise.
32531 (odr_name_hasher::equal): Likewise.
32532 (odr_subtypes_equivalent_p): Likewise.
32533 (warn_types_mismatch): Likewise.
32534 (get_odr_type): Likewise.
32535 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
32536 * ipa-utils.h (odr_type_p): Move offline.
32537 * tree.c (need_assembler_name_p): Fix handling of types
32538 without linkages.
32539 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
32540
32541 2015-05-12 David Malcolm <dmalcolm@redhat.com>
32542
32543 * timevar.c (timevar_enable): Delete in favor of...
32544 (g_timer): New global.
32545 (struct timevar_def): Move to timevar.h inside class timer.
32546 (struct timevar_stack_def): Likewise.
32547 (timevars): Delete global in favor of field "m_timevars" within
32548 class timer in timevar.h
32549 (stack): Likewise, in favor of field "m_stack".
32550 (unused_stack_instances): Likewise, in favor of field
32551 "m_unused_stack_instances".
32552 (start_time): Likewise, in favor of field "m_start_time".
32553 (get_time): Eliminate check for timevar_enable.
32554 (timer::timer): New function, built from part of timevar_init.
32555 (timevar_init): Rewrite idempotency test from using
32556 "timevar_enable" bool to using dynamic allocation of "g_timer".
32557 Move rest of implementation into timer's constructor.
32558 (timevar_push_1): Rename to...
32559 (timer::push): ...this, adding "m_" prefixes to variables that
32560 are now fields of timer.
32561 (timevar_pop_1): Likewise, rename to...
32562 (timer::pop): ...this, and add "m_" prefixes.
32563 (timevar_start): Replace test for "timevar_enable" with one for
32564 "g_timer", and move bulk of implementation to...
32565 (timer::start): ...here, adding "m_" prefixes.
32566 (timevar_stop): Likewise, from here...
32567 (timer::stop): ...to here.
32568 (timevar_cond_start): Likewise, from here...
32569 (timer::cond_start): ...to here.
32570 (timevar_cond_stop): Likewise, from here...
32571 (timer::cond_stop): ...to here.
32572 (validate_phases): Rename to...
32573 (timer::validate_phases): ...this, and add "m_" prefixes. Make
32574 locals "total" and "tv" const.
32575 (timevar_print): Rename to...
32576 (timer::print): ...this, and add "m_" prefixes. Make locals
32577 "total" and "tv" const. Eliminate test for timevar_enable.
32578 * timevar.h (timevar_enable): Eliminate.
32579 (g_timer): New declaration.
32580 (timevar_push_1): Eliminate.
32581 (timevar_pop_1): Eliminate.
32582 (timevar_print): Eliminate.
32583 (class timer): New class.
32584 (timevar_push): Rewrite to use g_timer.
32585 (timevar_pop): Likewise.
32586 * toplev.c (toplev::~toplev): Likewise.
32587
32588 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
32589
32590 * arm-protos.h (arm_sched_autopref): Delete.
32591 (tune_params): Re-organize, use enums for flag values.
32592 (FUSE_OPS): New macro.
32593 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
32594 (ARM_PREFETCH_BENEFICIAL): Likewise.
32595 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
32596 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
32597 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
32598 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
32599 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
32600 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
32601 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
32602 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
32603 format.
32604 (arm_option_override, thumb2_reorg, arm_print_tune_info)
32605 (aarch_macro_fusion_pair_p): Update uses of current_tune.
32606 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
32607
32608 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
32609
32610 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
32611 "break".
32612
32613 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
32614 Sandra Loosemore <sandra@codesourcery.com>
32615
32616 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
32617 value.
32618 (REG_CLASS_NAMES): Add "IJMP_REGS".
32619 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
32620 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
32621 use new "c" register constraint.
32622 * config/nios2/constraint.md (c): New register constraint
32623 corresponding to IJMP_REGS.
32624
32625 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32626
32627 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
32628 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
32629 define_splits): Delete, revamp, transmogrify into ...
32630 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
32631 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
32632 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
32633 New.
32634
32635 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32636
32637 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
32638 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
32639
32640 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32641
32642 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
32643 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
32644 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
32645 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
32646 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
32647 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
32648 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
32649 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
32650 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
32651 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
32652 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
32653 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
32654 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
32655 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
32656 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
32657 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
32658 and 30 corresponding splitters): Delete.
32659
32660 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32661
32662 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
32663 zero_extract.
32664
32665 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32666
32667 * combine.c (recog_for_combine_1): New function, factored out
32668 from recog_for_combine.
32669 (change_zero_ext): New function.
32670 (recog_for_combine): If recog fails, try again with the pattern
32671 modified by change_zero_ext; if that still fails, restore the
32672 pattern.
32673
32674 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32675
32676 * combine.c (get_undo_marker): New function.
32677 (undo_to_marker): New function, largely factored out from ...
32678 (undo_all): ... this. Adjust.
32679
32680 2015-05-12 Richard Biener <rguenther@suse.de>
32681
32682 PR tree-optimization/66101
32683 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
32684 fixup if we turn a loop exit edge to a fallthru edge.
32685
32686 2015-05-12 Richard Biener <rguenther@suse.de>
32687
32688 PR tree-optimization/37021
32689 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
32690 (SLP_TREE_TWO_OPERATORS): New define.
32691 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
32692 SLP_TREE_TWO_OPERATORS.
32693 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
32694 SLP node.
32695 (vect_build_slp_tree): Adjust.
32696 (vect_analyze_slp_cost_1): Likewise.
32697 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
32698 emitting two vector stmts and mixing the results.
32699
32700 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
32701
32702 * call.c (print_z_candidates): Remove dead code.
32703
32704 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32705
32706 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
32707 and zEC12_simple_fp.
32708 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
32709 to 1.
32710
32711 2015-05-12 Tom de Vries <tom@codesourcery.com>
32712
32713 PR tree-optimization/66010
32714 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
32715 ifn_va_arg.
32716 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
32717 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
32718 va_lists are passed, and remove corresponding handling.
32719 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
32720 do_deref argument to ifn_va_arg.
32721 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
32722 ifn_va_arg.
32723
32724 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32725
32726 PR target/65955
32727 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
32728 REG before taking its REGNO.
32729
32730 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
32731
32732 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
32733 rsp->sign_bit_copies and rsp->nonzero_bits into ...
32734 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
32735 present to get more accurate information about the number of sign bit
32736 copies and non zero bits.
32737
32738 2015-05-12 Richard Biener <rguenther@suse.de>
32739
32740 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
32741 do not allow unrolling.
32742
32743 2015-05-11 Richard Henderson <rth@redhat.com>
32744
32745 * config/i386/i386-modes.def (CCP): New.
32746 * config/i386/i386.c (put_condition_code): Handle it.
32747 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
32748
32749 2015-05-11 Richard Henderson <rth@redhat.com>
32750
32751 * target.def (md_asm_clobbers): Replace with...
32752 (md_asm_adjust): this.
32753 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
32754 (TARGET_MD_ASM_ADJUST): New.
32755 * tm.texi: Rebuild.
32756 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
32757 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
32758 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
32759
32760 * cfgexpand.c (check_operand_nalternatives): Accept vector of
32761 constraints instead of lists of outputs and inputs.
32762 (expand_asm_stmt): Save and restore input_location around the
32763 body of the function. Move asm data into vectors instead of
32764 building tree lists. Generate cleanup sequences as needed,
32765 rather than waiting til the end. Use new md_asm_adjust hook.
32766
32767 * config/vxworks.c: Include vec.h before target.h.
32768 * gimple.c: Likewise.
32769 * incpath.c: Likewise.
32770 * mode-switching.c: Likewise.
32771
32772 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
32773 (cris_md_asm_adjust): this.
32774 (TARGET_MD_ASM_CLOBBERS): Remove.
32775 (TARGET_MD_ASM_ADJUST): New.
32776 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
32777 (ix86_md_asm_adjust): this.
32778 (TARGET_MD_ASM_CLOBBERS): Remove.
32779 (TARGET_MD_ASM_ADJUST): New.
32780 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
32781 (mn10300_md_asm_adjust): this.
32782 (TARGET_MD_ASM_CLOBBERS): Remove.
32783 (TARGET_MD_ASM_ADJUST): New.
32784 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
32785 (rs6000_md_asm_adjust): this.
32786 (TARGET_MD_ASM_CLOBBERS): Remove.
32787 (TARGET_MD_ASM_ADJUST): New.
32788 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
32789 (visium_md_asm_adjust): this.
32790 (TARGET_MD_ASM_CLOBBERS): Remove.
32791 (TARGET_MD_ASM_ADJUST): New.
32792
32793 2015-05-11 Richard Henderson <rth@redhat.com>
32794
32795 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
32796 if noutputs is zero.
32797 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
32798
32799 * cfgexpand.c (expand_asm_operands): Merge into...
32800 (expand_asm_stmt): ... here.
32801
32802 * cfgexpand.c (expand_asm_operands): Don't call
32803 resolve_asm_operand_names.
32804 * stmt.c (resolve_asm_operand_names): Clarify block comment.
32805
32806 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
32807
32808 * dwarf2out.c (gen_member_die): Sanity check that we access
32809 TYPE_MAIN_VARIANT for TYPE_METHODS.
32810 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
32811 checking TYPE_METHODS.
32812 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
32813 if non-null.
32814 (build_distinct_type_copy): Clear TYPE_METHODS.
32815 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
32816 (verify_type): Allow TYPE_METHODS to be error_mark_node.
32817 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
32818
32819 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
32820
32821 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
32822 (emit_pattern_before_setloc): Likewise.
32823
32824 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
32825
32826 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
32827 for define_peephole2s.
32828 (get_peephole2_pattern): New function.
32829 (main): Use it. Call validate_pattern.
32830
32831 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
32832
32833 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
32834 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
32835 (Last callee saved reg is different for AVR_TINY architecture)
32836
32837 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
32838
32839 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
32840 when looking for memory references.
32841
32842 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
32843
32844 PR target/65753
32845 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
32846 via function pointers.
32847
32848 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
32849
32850 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
32851 indirect call by forcing address into a pseudo with -fno-plt.
32852 * common.opt (flag_plt): New option.
32853 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
32854 ([-fno-plt]): Document.
32855
32856 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
32857
32858 PR bootstrap/66105
32859 * config/rs6000/option-defaults.h: Add space between string literal
32860 and macro name.
32861
32862 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
32863
32864 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
32865 accross ARM targets.
32866
32867 2015-05-11 Christian Bruel <christian.bruel@st.com>
32868
32869 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
32870 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
32871
32872 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
32873
32874 PR rtl-optimization/66076
32875 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
32876 Don't grow the heap array if it is already big enough from a
32877 previous iteration.
32878
32879 2015-05-11 Christian Bruel <christian.bruel@st.com>
32880
32881 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
32882 (is_called_in_ARM_mode): Remove.
32883 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
32884 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
32885 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
32886 arm_declare_function_name.
32887
32888 2015-05-11 Christian Bruel <christian.bruel@st.com>
32889
32890 * config/arm/arm.c (arm_option_override): Reoganized and split into :
32891 (arm_option_params_internal); New function.
32892 (arm_option_check_internal): New function.
32893 (arm_option_override_internal): New function.
32894 (thumb_code, thumb1_code): Remove.
32895 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
32896 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
32897 (thumb_code, thumb1_code): Remove.
32898 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
32899
32900 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
32901
32902 * config/alpha/alpha.c (alpha_emit_set_const_1)
32903 (alpha_emit_set_long_const, alpha_extract_integer)
32904 (alpha_legitimate_constant_p, alpha_split_const_mov)
32905 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
32906 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
32907 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
32908 HOST_WIDE_INT_1U.
32909 * config/alpha/predicates.md (mode_mask_operand): Do not match
32910 const_double RTX.
32911 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
32912 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
32913 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
32914 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
32915 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
32916
32917 2015-05-11 Jakub Jelinek <jakub@redhat.com>
32918
32919 PR target/65780
32920 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
32921 default_binds_local_p_2.
32922 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
32923 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
32924
32925 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
32926
32927 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
32928
32929 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
32930
32931 Patch by Richard Biener
32932 * coverage.c (coverage_obj_init): Delay building of type variant
32933 until the type is finished.
32934
32935 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
32936
32937 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
32938 mismatch between C and C++ type; compoare correctly ARG_TYPES
32939 for non-prototypes and output correctly parameter index for METHOD_TYPE.
32940 (odr_types_equivalent_p): Fix wording of warning about attributes;
32941 it is OK to match prototype and non-prototype.
32942
32943 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
32944
32945 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
32946 TYPE_ARG_TYPES list.
32947 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
32948 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
32949
32950 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
32951
32952 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
32953 * tree.h (is_lang_specific): Constify.
32954
32955 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
32956
32957 PR tree-optimization/64454
32958 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
32959 Rewrite.
32960
32961 2015-05-08 Jason Merrill <jason@redhat.com>
32962
32963 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
32964 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
32965 config/darwin.h, config/darwin9.h, config/elfos.h,
32966 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
32967 config/microblaze/microblaze.h, config/mips/mips.h,
32968 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
32969 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
32970 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
32971 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
32972 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
32973 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
32974 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
32975 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
32976 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
32977 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
32978 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
32979 between string literal and macro name.
32980
32981 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32982
32983 * jump.c: Change argument types to rtx_insn *.
32984 * rtl.h: Adjust.
32985
32986 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32987
32988 * lra-constraints.c: Change argument type to rtx_insn *.
32989
32990 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32991
32992 * df-problems.c: Change argument type to rtx_insn *.
32993
32994 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32995
32996 * combine.c: Change argument type to rtx_insn *.
32997
32998 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32999
33000 * rtl.h: Adjust.
33001 * rtlanal.c: Change argument type to rtx_insn *.
33002
33003 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33004
33005 * sched-deps.c: Change argument types to rtx_insn *.
33006 * sched-int.h: Adjust.
33007
33008 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33009
33010 * dwarf2cfi.c: Change argument type to rtx_insn *.
33011
33012 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33013
33014 * ira.c (decrease_live_ranges_number): Changetype of local
33015 variable to rtx_insn *.
33016 * recog.c: Change argument types to rtx_insn *.
33017 * recog.h: Adjust.
33018
33019 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33020
33021 * reorg.c: Change argument types to rtx_insn *.
33022
33023 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33024
33025 * ira-color.c: Change argument types to rtx_insn *.
33026 * lra-eliminations.c: Likewise.
33027 * ira.h: Adjust.
33028
33029 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33030
33031 * gcse.c: Change argument types to rtx_insn *.
33032
33033 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33034
33035 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
33036
33037 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33038
33039 * emit-rtl.c (emit_debug_insn_before): Change argument type to
33040 rtx_insn *.
33041 * rtl.h: Adjust.
33042
33043 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33044
33045 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
33046 * rtl.h: Adjust.
33047
33048 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33049
33050 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
33051 * rtl.h: Adjust.
33052
33053 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33054
33055 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
33056 * rtl.h: Adjust.
33057
33058 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33059
33060 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
33061 * rtl.h: Adjust.
33062
33063 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33064
33065 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
33066 to rtx_insn *.
33067 * rtl.h: Adjust.
33068
33069 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33070
33071 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
33072 to rtx_insn *.
33073 * rtl.h: Likewise.
33074
33075 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33076
33077 * except.c (can_nonlocal_goto): Change type of argument to
33078 rtx_insn *.
33079 * rtl.h: Adjust.
33080
33081 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33082
33083 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
33084 * rtl.h: Adjust.
33085
33086 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33087
33088 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
33089 * cfgrtl.c (can_delete_label_p): Adjust.
33090 * rtl.h: likewise.
33091
33092 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33093
33094 * reorg.c (stop_search_p): Change argument to rtx_insn *.
33095
33096 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33097
33098 * except.c (make_reg_eh_region_note): Change argument to
33099 rtx_insn *.
33100 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
33101 * except.h: Adjust.
33102
33103 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33104
33105 * mode-switching.c (commit_mode_sets): Change type of local
33106 variable from rtx to rtx_insn *.
33107
33108 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
33109
33110 * doc/install.texi (--enable-languages): Add missing jit and lto info.
33111 Add ^ to grep command.
33112 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
33113 arg to last gimple_simplify declaration. Add missing gimple_build
33114 declaration for built-in function case with four tree args.
33115
33116 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
33117 Szabolcs Nagy <szabolcs.nagy@arm.com>
33118
33119 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
33120 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
33121 (GNU_USER_DYNAMIC_LINKERN32): Update.
33122
33123 2015-05-08 Richard Biener <rguenther@suse.de>
33124
33125 PR tree-optimization/66036
33126 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
33127 Handle strided group loads.
33128 (vect_verify_datarefs_alignment): Likewise.
33129 (vect_enhance_data_refs_alignment): Likewise.
33130 (vect_analyze_group_access): Likewise.
33131 (vect_analyze_data_ref_access): Likewise.
33132 (vect_analyze_data_ref_accesses): Likewise.
33133 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
33134 (vectorizable_load): Likewise.
33135
33136 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
33137
33138 * config/rs6000/rs6000.md: Require operand inequality in one
33139 of the peepholes.
33140
33141 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
33142 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
33143
33144 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
33145 from (set ...).
33146 * config/rx/rx.md (movdi, movdf): Likewise.
33147 Likewise for define_peephole2s.
33148
33149 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
33150
33151 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
33152 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
33153 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
33154 vtst_u64): Rewrite using gcc vector extensions.
33155
33156 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
33157
33158 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
33159 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
33160
33161 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
33162
33163 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
33164
33165 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
33166
33167 * config/glibc-stdint.h (OPTION_MUSL): Define.
33168 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
33169 Change the definition based on OPTION_MUSL for 64 bit targets.
33170 * config/linux.h (OPTION_MUSL): Redefine.
33171 * config/alpha/linux.h (OPTION_MUSL): Redefine.
33172 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
33173 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
33174
33175 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
33176 Szabolcs Nagy <szabolcs.nagy@arm.com>
33177
33178 * config.gcc (LIBC_MUSL): New tm_defines macro.
33179 * config/linux.h (OPTION_MUSL): Define.
33180 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
33181 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
33182 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33183 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33184 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33185 * config/linux.opt (mmusl): New option.
33186 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
33187 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33188 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33189 * configure: Regenerate.
33190
33191 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
33192 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33193
33194 PR target/48904
33195 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
33196 * config/i386/knetbsd-gnu64.h: New file.
33197
33198 2015-05-08 Marek Polacek <polacek@redhat.com>
33199
33200 PR c/64918
33201 * doc/invoke.texi: Document -Woverride-init-side-effects.
33202
33203 2015-05-07 Marek Polacek <polacek@redhat.com>
33204
33205 PR c/65179
33206 * doc/invoke.texi: Document -Wshift-negative-value.
33207
33208 2015-05-06 Aditya Kumar <hiraditya@msn.com>
33209
33210 * gcov-tool.c (do_merge): Refactore to remove int ret.
33211 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
33212 !type == FUNC to type != FUNC.
33213 * reload.h (struct target_reload): Changee to type of
33214 x_spill_indirect_levels from bool to unsigned char.
33215
33216 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
33217
33218 * rtl.h (always_void_p): New function.
33219 * gengenrtl.c (always_void_p): Likewise.
33220 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
33221 with code foo are always VOIDmode.
33222 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
33223 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
33224 compare-elim.c, config/aarch64/aarch64.c,
33225 config/aarch64/aarch64.md, config/alpha/alpha.c,
33226 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
33227 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
33228 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
33229 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
33230 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
33231 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
33232 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
33233 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
33234 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
33235 config/ia64/vect.md, config/iq2000/iq2000.c,
33236 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
33237 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
33238 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
33239 config/mep/mep.c, config/microblaze/microblaze.c,
33240 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
33241 config/mn10300/mn10300.c, config/msp430/msp430.c,
33242 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
33243 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
33244 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
33245 config/rs6000/altivec.md, config/rs6000/rs6000.c,
33246 config/rs6000/rs6000.md, config/rs6000/vector.md,
33247 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
33248 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
33249 config/sh/sh.md, config/sh/sh_treg_combine.cc,
33250 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
33251 config/spu/spu.md, config/stormy16/stormy16.c,
33252 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
33253 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
33254 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
33255 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
33256 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
33257 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
33258 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
33259 var-tracking.c: Update calls accordingly.
33260
33261 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
33262
33263 PR middle-end/192
33264 PR middle-end/54303
33265 * varasm.c (function_mergeable_rodata_prefix): New function.
33266 (mergeable_string_section): Use it.
33267 (mergeable_constant_section): Use it.
33268
33269 2015-05-07 Jeff Law <law@redhat.com>
33270
33271 PR target/39726
33272 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
33273 simplifier to narrow arithmetic.
33274 * generic-match-head.c: (types_match, single_use): New functions.
33275 * gimple-match-head.c: (types_match, single_use): New functions.
33276
33277 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
33278
33279 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
33280 rtx type.
33281
33282 2015-05-07 Richard Biener <rguenther@suse.de>
33283
33284 PR tree-optimization/66002
33285 * passes.def: Schedule another pass_merge_phi after ifcombine, right
33286 before phiopt.
33287
33288 2015-05-07 Marek Polacek <polacek@redhat.com>
33289 Martin Uecker <uecker@eecs.berkeley.edu>
33290
33291 * doc/invoke.texi: Document -fsanitize=bounds-strict.
33292 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
33293 into SANITIZE_NONDEFAULT.
33294 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
33295
33296 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
33297
33298 PR target/66015
33299 * config/alpha/alpha.c (alpha_override_options_after_change): New.
33300 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
33301 (alpha_override_options): Move align_loops, align_jumps and
33302 align_functions handling into alpha_override_options_after_change.
33303
33304 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
33305 Chris Jones <chrisj@nvidia.com>
33306 Joshua Conner <jconner@nvidia.com>
33307
33308 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
33309 linking of crtfastmath.o.
33310 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
33311
33312 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
33313
33314 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
33315 (cstore<mode>4_unsigned_imm): New expander.
33316 (cstore<mode>4): Remove empty constraint strings. Use the new
33317 expanders.
33318
33319 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
33320
33321 PR target/64208
33322 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
33323 alternatives.
33324
33325 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
33326
33327 * config/aarch64/geniterators.sh: Use standard BRE in sed.
33328
33329 2015-05-06 Alan Modra <amodra@gmail.com>
33330
33331 PR target/66033
33332 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
33333 (UNSPEC_NOP): Define.
33334 (reload_vsx_from_gpr<mode>): Add missing DONE.
33335 (reload_gpr_from_vsx<mode>): Likewise.
33336 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
33337 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
33338
33339 2015-05-06 Christian Bruel <christian.bruel@st.com>
33340
33341 PR target/66015
33342 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
33343 align_jumps, align_functions into aarch64_override_options_after_change.
33344
33345 2015-05-06 Richard Biener <rguenther@suse.de>
33346
33347 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
33348 vect_transform_slp_perm_load to check if we support a permutation
33349 for basic-block vectorization.
33350
33351 2015-05-06 Nick Clifton <nickc@redhat.com>
33352
33353 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
33354 used, even if it is not being used as a frame pointer.
33355
33356 2015-05-05 Jason Merrill <jason@redhat.com>
33357
33358 * dwarf2out.c (gen_member_die): Don't emit anything for an
33359 anonymous class constructor.
33360
33361 2015-05-05 David Malcolm <dmalcolm@redhat.com>
33362
33363 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
33364 that it reflects the block structure.
33365 (afdo_propagate_edge): Likewise.
33366 (afdo_calculate_branch_prob): Likewise.
33367 (afdo_annotate_cfg): Likewise.
33368 * cfgcleanup.c (equal_different_set_p): Likewise.
33369 (try_crossjump_to_edge): Likewise.
33370 * cgraph.c (cgraph_node::verify_node): Likewise.
33371 * cgraphunit.c (expand_all_functions): Likewise.
33372 * config/i386/i386.c (ix86_expand_copysign): Likewise.
33373 (exact_dependency_1): Likewise.
33374 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
33375 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
33376 * gensupport.c (process_define_subst): Likewise.
33377 * lto-wrapper.c (merge_and_complain): Likewise.
33378 * tree-if-conv.c (if_convertible_bb_p): Likewise.
33379 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
33380 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
33381 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
33382 * tree-vect-loop.c (vectorizable_reduction): Likewise.
33383 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
33384 * tree-vect-stmts.c (vectorizable_shift): Likewise.
33385 * tree-vrp.c (vrp_finalize): Likewise.
33386 * tree.c (variably_modified_type_p): Likewise.
33387
33388 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
33389
33390 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
33391 on darwin12 and later.
33392 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
33393 file to pass -rdynamic on darwin12 and later.
33394 * config/darwin.opt (rdynamic): Add.
33395
33396 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
33397
33398 * doc/extend.texi (C Extensions): Update menu for moved Variable
33399 Attributes and Type Attributes sections.
33400
33401 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
33402
33403 PR target/65990
33404 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
33405 if rep_8byte stringop strategy was specified for 32-bit target.
33406
33407 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
33408
33409 PR target/65915
33410 * config/i386/i386.md (vector convert to float spltiter): Check for
33411 xmm16+, when splitting scalar float conversion.
33412 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
33413
33414 2015-05-05 Nick Clifton <nickc@redhat.com>
33415
33416 * config/msp430/msp430-opts.h (enum msp430_regions): New.
33417 * config/msp430/msp430.c (msp430_override_options): Complain if
33418 -mcode-region or -mdata-region is used on a non MSP430X.
33419 (msp430_section_attr): New function. Checks lower, upper and
33420 either attributes.
33421 (msp430_attribute_table): Add lower, upper and either.
33422 (gen_prefix): New function. Generates a prefix for a section
33423 name.
33424 (msp430_select_section): New function - handles the choice of
33425 section for an object. Takes into account memory region
33426 attributes and options.
33427 (msp430_function_section): Use gen_prefix.
33428 (TARGET_SECTION_TYPE_FLAGS): Define.
33429 (msp430_section_type_flags): New function.
33430 (TARGET_ASM_UNIQUE_SECTION): Define.
33431 (msp430_unique_section): New function.
33432 (msp430_output_aligned_decl_common): New function.
33433 (msp430_do_not_relax_short_jumps): New function.
33434 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
33435 Define.
33436 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
33437 * config/msp430/msp430-protos.h
33438 (msp430_do_not_relax_short_jumps): New prototype.
33439 (msp430_output_aligned_decl_common): New prototype.
33440 * config/msp430/msp430.md (length): New attribute.
33441 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
33442 then use a long code sequence for short jumps.
33443 * config/msp430/msp430.opt (mcode-region): New.
33444 (mdata-region): New.
33445 * doc/invoke.texi: Document new options.
33446 * doc/extend.texi: Document new attributes.
33447
33448 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
33449
33450 * config/aarch64-protos.h (struct cpu_branch_cost): New.
33451 (tune_params): Add field branch_costs.
33452 (aarch64_branch_cost): Declare.
33453 * config/aarch64.c (generic_branch_cost): New.
33454 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
33455 (cortexa53_tunings): Likewise.
33456 (cortexa57_tunings): Likewise.
33457 (thunderx_tunings): Likewise.
33458 (xgene1_tunings): Likewise.
33459 (aarch64_branch_cost): Define.
33460 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
33461
33462 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
33463
33464 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
33465 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
33466 * config/i386/i386.md: Ditto.
33467 * config/i386/winnt.c: Ditto.
33468
33469 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
33470
33471 * doc/extend.texi (__atomic Builtins): Move implementation details
33472 to the end of the description, rewrite opening paragraphs, state
33473 difference with __sync builtins, state C11/C++11 assumptions,
33474 weaken itemized descriptions, add explanation of memory model
33475 behaviour, expand description of compare-exchange, simplify text.
33476
33477 2015-05-05 Renlin Li <renlin.li@arm.com>
33478
33479 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
33480
33481 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
33482
33483 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
33484 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
33485 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
33486 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
33487 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
33488 * configure: Regenerate.
33489 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
33490 * doc/install.texi (aarch64*-*-*): Document new
33491 --enable-fix-cortex-a53-843419 option.
33492 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
33493 and -mno-fix-cortex-a53-843419 options.
33494
33495 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
33496
33497 PR target/65871
33498 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
33499
33500 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
33501
33502 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
33503 fix overactive TYPE_MIN_VALUE check and add FIXME for type
33504 compatibility problems.
33505
33506 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
33507
33508 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
33509 constraints.
33510 (cbranchsi4_reg): New.
33511 * config/microblaze/microblaze.c
33512 (microblaze_expand_conditional_branch_reg): New.
33513 * config/microblaze/microblaze-protos.h
33514 (microblaze_expand_conditional_branch_reg): New prototype.
33515
33516 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
33517
33518 * config/microblaze/microblaze.md (peephole2): New.
33519
33520 2015-05-04 Jeff Law <law@redhat.com>
33521
33522 Revert:
33523 2015-05-04 Jeff Law <law@redhat.com>
33524
33525 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
33526 simplifier to narrow arithmetic.
33527 * generic-match-head.c: (types_match, single_use): New functions.
33528 * gimple-match-head.c: (types_match, single_use): New functions.
33529
33530 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
33531
33532 PR target/65987
33533 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
33534 (split_branches): Likewise.
33535
33536 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
33537
33538 * common.opt (fdelete-null-pointer-checks): Init to -1.
33539 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
33540 override flag_delete_null_pointer_checks default.
33541 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
33542 behavior re address zero. Better document target-specific behavior.
33543 (-fisolate-errneous-paths-dereference): Mention relationship to
33544 -fdelete-null-pointer-checks.
33545
33546 2015-05-04 Jakub Jelinek <jakub@redhat.com>
33547
33548 PR tree-optimization/65984
33549 * ubsan.c: Include tree-cfg.h.
33550 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
33551 stmt_could_throw_p test, rename can_throw variable to ends_bb.
33552
33553 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
33554
33555 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
33556 to CONST_DOUBLE_P predicate.
33557 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
33558 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
33559 allow only operands that satisfy standard_sse_constant_p predicate.
33560 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
33561 to CONST_DOUBLE_P predicate.
33562
33563 2015-05-04 Jeff Law <law@redhat.com>
33564
33565 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
33566 simplifier to narrow arithmetic.
33567 * generic-match-head.c: (types_match, single_use): New functions.
33568 * gimple-match-head.c: (types_match, single_use): New functions.
33569
33570 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
33571
33572 * config/arm/arm.c: Restore bootstrap.
33573
33574 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
33575
33576 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
33577 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
33578 as CONST_WIDE_INT, not CONST_DOUBLE.
33579 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
33580 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
33581 (ix86_find_base_term): Do not check for CONST_DOUBLE.
33582 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
33583 (ix86_build_signbit_mask): Rewrite using wide ints.
33584 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
33585 (ix86_rtx_costs): Handle CONST_WIDE_INT.
33586 (find_constant): Ditto.
33587 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
33588 using gen_int_mode.
33589 * config/i386/predicates.md (x86_64_immediate_operand)
33590 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
33591 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
33592 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
33593 (const0_operand): Also match const_wide_int.
33594 (constm1_operand): Ditto.
33595 (const1_operand): Ditto.
33596
33597 2015-05-04 Richard Biener <rguenther@suse.de>
33598
33599 PR tree-optimization/65965
33600 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
33601 store groups at gaps.
33602
33603 2015-05-04 Richard Biener <rguenther@suse.de>
33604
33605 PR tree-optimization/65935
33606 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
33607 then make sure to apply that swapping to the IL.
33608
33609 2015-05-04 Jakub Jelinek <jakub@redhat.com>
33610
33611 * Makefile.in (PATCHLEVEL_c): New variable.
33612 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
33613 expand the same way as if DEVPHASE_c was non-empty.
33614
33615 2015-05-04 Kai Tietz <ktietz@redhat.com>
33616
33617 PR target/65559
33618 * lto-wrapper.c (run_gcc): Open filename
33619 in binary-mode.
33620
33621 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
33622
33623 * doc/extend.texi (Variable Attributes, Type Attributes): Move
33624 sections up in file, to immediately after the Function Attributes
33625 section.
33626
33627 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
33628
33629 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
33630
33631 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33632
33633 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
33634 (insert_partition_copy_on_edge): Adjust.
33635 (insert_rtx_to_part_on_edge): Likewise.
33636 (insert_part_to_rtx_on_edge): Likewise.
33637
33638 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33639
33640 * function.c (set_return_jump_label): Change type of argument to
33641 rtx_insn *.
33642 * function.h (set_return_jump_label): Adjust.
33643
33644 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33645
33646 * reload.h (struct reg_equivs_t): Change type of init to
33647 rtx_insn *.
33648 * ira.c (fix_reg_equiv_init): Adjust.
33649 * reload1.c (eliminate_regs_1): Likewise.
33650 (init_eliminable_invariants): Likewise.
33651
33652 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33653
33654 * cselib.c (fp_setter_insn): Take a rtx_insn *.
33655 * cselib.h (fp_setter_insn): Adjust.
33656
33657 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33658
33659 * recog.c (struct validate_replace_src_data): Change type of
33660 insn field to rtx_insn *.
33661 (validate_replace_src_group): Change type of argument to rtx_insn *.
33662 * recog.h (validate_replace_src_group): Adjust.
33663
33664 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33665
33666 * haifa-sched.c: Change the type of some variables to rtx_insn *.
33667 * sched-deps.c: Likewise.
33668 * sched-int.h: Likewise.
33669 * sched-rgn.c: Likewise.
33670 * sel-sched.c: Likewise.
33671
33672 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33673
33674 to rtx_insn *.
33675 * config/i386/i386.c: Change the type of some arguments to
33676 rtx_insn *.
33677 * config/arm/arm.c: Likewise.
33678
33679 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33680
33681 * lra-constraints.c: Change type of some arguments to rtx_insn *.
33682
33683 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33684
33685 * regcprop.c (kill_autoinc_value): Change type of argument to
33686 rtx_insn *.
33687
33688 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33689
33690 * genrecog.c (print_subroutine): Adjust.
33691 * recog.c (get_bool_attr_mask_uncached): Likewise.
33692 * recog.h (struct recog_data_d): Change the type of insn to
33693 rtx_insn *.
33694
33695 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33696
33697 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
33698
33699 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33700
33701 * df-problems.c (df_set_note): Change type of argument to
33702 rtx_insn *.
33703
33704 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33705
33706 * builtins.c (expand_builtin_trap): Change type of local
33707 variable to rtx_insn *.
33708 (add_sched_insns_for_speculation): Likewise.
33709 (ix86_emit_save_regs): Likewise.
33710 (get_scratch_register_on_entry): Likewise.
33711 (ix86_emit_restore_reg_using_pop): Likewise.
33712 (ix86_emit_leave): Likewise.
33713 (ix86_emit_restore_regs_using_mov): Likewise.
33714 (ix86_expand_epilogue): Likewise.
33715 Likewise.
33716 (rl78_alloc_physical_registers_umul): Likewise.
33717 * cselib.c (discard_useless_locs): Likewise.
33718 (cselib_invalidate_regno): Likewise.
33719 (cselib_invalidate_mem): Likewise.
33720 * function.c (expand_function_start): Likewise.
33721 (emit_use_return_register_into_block): Likewise.
33722 * gcse.c: Likewise.
33723 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
33724 * ifcvt.c (noce_get_alt_condition): Likewise.
33725 * loop-doloop.c (doloop_condition_get): Likewise.
33726 * lra-constraints.c (inherit_in_ebb): Likewise.
33727 * modulo-sched.c (sms_schedule_by_order): Likewise.
33728 * recog.c (next_insn_tests_no_inequality): Likewise.
33729 * reorg.c (emit_delay_sequence): Likewise.
33730 (update_reg_dead_notes): Likewise.
33731 (fix_reg_dead_note): Likewise.
33732 (fill_slots_from_thread): Likewise.
33733 (delete_computation): Likewise.
33734
33735 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
33736
33737 * doc/extend.texi (Variable Attributes): Add menu and proper
33738 @nodes to subsections. Move Microsoft Windows attributes to
33739 their own subsection.
33740 (Type Attributes): Reorganize introduction to remove duplicate
33741 list of attributes. Add menu and proper @nodes to subsections.
33742 Alphabetize the main table of common attributes.
33743
33744 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
33745
33746 * match.pd: New simplification patterns.
33747 (x + (x & 1)) -> ((x + 1) & ~1)
33748 (x & ~(x & y)) -> ((x & ~y))
33749 (x | ~(x | y)) -> ((x | ~y))
33750
33751 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33752
33753 * target.def (attribute_table): Mention that struct attribute_spec
33754 is defined in tree-core.h rather than tree.h
33755 * doc/tm.texi: Regenerate.
33756
33757 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
33758
33759 * genrecog.c (test): Rename to rtx_test. Update rest of file
33760 accordingly.
33761
33762 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
33763
33764 PR translation/65959
33765 * params.h (DEFPARAM): Rename msgid to nocmsgid.
33766
33767 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
33768
33769 * config/aarch64/aarch64-protos.h (tune_params):
33770 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
33771 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
33772 Return value depending on target.
33773 (generic_tunings): Initialize new target settings.
33774 (cortexa53_tunings): Likewise.
33775 (cortexa57_tunings): Likewise.
33776 (thunderx_tunings): Likewise.
33777 (xgene1_tunings): Likewise.
33778
33779 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
33780
33781 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
33782 Make Cortex-A53 shift costs more accurate.
33783
33784 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33785
33786 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
33787 UNSIGNED_FLOAT.
33788
33789 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
33790
33791 * config/aarch64/aarch64.c (aarch64_rtx_costs):
33792 Calculate cost of op0 and op1 in PLUS and MINUS cases.
33793
33794 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33795
33796 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
33797 Add cost of op0 in the compare-with-fpzero case.
33798
33799 2015-04-30 David Malcolm <dmalcolm@redhat.com>
33800
33801 * builtins.c (fold_builtin_1): Remove spurious second
33802 semicolon.
33803 * cgraph.h (symtab_node::get_availability): Likewise.
33804 * opts.c (common_handle_option): Remove spurious second semicolon.
33805 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
33806 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
33807
33808 2015-04-30 Caroline Tice <cmtice@google.com>
33809
33810 PR gcov-profile/65929
33811 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
33812 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
33813 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
33814 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
33815 * doc/tm.texi: Regenerate.
33816 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
33817 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
33818 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
33819 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
33820
33821 2015-04-30 Marek Polacek <polacek@redhat.com>
33822
33823 * varasm.c (handle_cache_entry): Fix logic.
33824
33825 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33826
33827 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
33828 (*extrsi5_insn_uxtw_alt): Likewise.
33829 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
33830 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
33831 operations.
33832
33833 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33834
33835 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
33836 fabd in ABS case.
33837
33838 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33839
33840 * config/aarch64/aarch64.md
33841 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
33842 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
33843 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
33844 appropriately. Handle alternative EON form.
33845
33846 2015-04-30 Renlin Li <renlin.li@arm.com>
33847
33848 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
33849 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
33850
33851 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
33852
33853 PR ipa/65873
33854 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
33855 -fstrict-aliasing boundaries.
33856
33857 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33858
33859 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
33860 and [SU]MNEGL patterns.
33861
33862 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33863
33864 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
33865 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
33866 combined arithmetic-shift ops. Properly handle all shift and extend
33867 operations that can occur in combination with PLUS/MINUS.
33868 Rename maybe_fma to compound_p.
33869 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
33870 arithmetic and shift operations.
33871
33872 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33873
33874 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
33875 rather than arith_shift cost when costing ADD/MINUS of an
33876 extended value.
33877
33878 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
33879
33880 PR lto/65948
33881 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
33882 to itself.
33883
33884 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
33885
33886 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
33887 are for the same position.
33888
33889 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
33890
33891 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
33892 vectorize_loops.
33893 (vectorize_loops): Use it.
33894
33895 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
33896
33897 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
33898 for aggregate types.
33899 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
33900 type to be non_ODR.
33901 * tree.c (need_assembler_name_p): Compute mangled name for
33902 non-fundamental types and integer types.
33903
33904 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
33905
33906 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
33907 manual swaps.
33908 * expr.c (expand_expr_real_2): Likewise.
33909
33910 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
33911
33912 * tree.c (build_common_builtin_nodes): Do not build
33913 __builtin_alloca_with_align as equivalent of library alloca.
33914
33915 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
33916
33917 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
33918 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
33919 bugus variants.
33920 * tree.c: Include print-tree.h and ipa-utils.h
33921 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
33922 (free_lang_data_in_cgraph): Call verify_type.
33923 (verify_type_variant): New function.
33924 (verify_type): New function.
33925 * tree.h (verify_type): Declare.
33926
33927 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
33928
33929 * config/mips/mips-cpus.def: (mips4): Change default processor
33930 from PROCESSOR_R8000 to PROCESSOR_R10000.
33931
33932 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
33933
33934 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
33935 la/jalr instead of jal.
33936
33937 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
33938
33939 PR target/65871
33940 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
33941 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
33942 (setcc+movzbl peephole2): Check also clobbered reg.
33943 (setcc+andl peephole2): Ditto.
33944
33945 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
33946
33947 PR libgomp/65099
33948 * config/nvptx/mkoffload.c (target_ilp32): New variable.
33949 (main): Set it depending on "-foffload-abi=[...]".
33950 (compile_native, main): Use it to pass "-m32" or "-m64" to the
33951 compiler.
33952
33953 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
33954
33955 PR target/65770
33956 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
33957 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
33958 Flip lane index back at assembly time for bigendian.
33959
33960 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
33961
33962 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
33963 * gimplify.c (gimplify_omp_workshare): Use it.
33964
33965 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
33966
33967 * Makefile.in (build/genrecog.o): Depend on inchash.h.
33968 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
33969 build/inchash.o
33970 * genrecog.c: Rewrite most of the code except for the third page.
33971
33972 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
33973
33974 * inchash.h, inchash.c: Include bconfig.h for build objects.
33975 * Makefile.in (build/inchash.o): New rule.
33976
33977 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
33978
33979 PR target/65924
33980 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
33981 number in type attribute expression.
33982
33983 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
33984
33985 * loop-iv.c (canon_condition): Generalize to all types of integer
33986 constant.
33987
33988 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
33989
33990 * gimple-walk.c: Prune duplicate or unneeded includes.
33991 (walk_gimple_asm): Only call parse_input_constraint or
33992 parse_output_constraint if their findings are used.
33993 Honour parse_input_constraint and parse_output_constraint
33994 result.
33995
33996 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
33997
33998 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
33999
34000 2015-04-29 Tom de Vries <tom@codesourcery.com>
34001
34002 PR tree-optimization/65893
34003 * passes.def (pass_all_optimizations): Move pass_stdarg to after
34004 pass_dce.
34005
34006 2015-04-29 Richard Biener <rguenther@suse.de>
34007
34008 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
34009 compute GROUP_SIZE for basic-block SLP.
34010 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
34011 take into account gaps.
34012 (vect_get_mask_element): Properly reject references to previous
34013 vectors.
34014 (vect_transform_slp_perm_load): Likewise.
34015
34016 2015-04-29 Christian Bruel <christian.bruel@st.com>
34017
34018 PR target/64835
34019 * config/i386/i386.c (ix86_default_align): New function.
34020 (ix86_override_options_after_change): Call ix86_default_align.
34021 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
34022 (ix86_override_options_after_change): New function.
34023
34024 2015-04-28 Jeff Law <law@redhat.com>
34025
34026 * tree-ssa-dom.c (record_equality); Fix comment typos.
34027
34028 2015-04-28 Tom de Vries <tom@codesourcery.com>
34029
34030 PR tree-optimization/65887
34031 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
34032
34033 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
34034
34035 * doc/extend.texi (Declaring Attributes of Functions): Split into
34036 subsections by target. Alphabetize the table of common attributes.
34037 Rewrite some of the introductory text to reflect the new structure.
34038 Update some cross-references to point to the new subsections.
34039 (Attribute Syntax): Put paragraph about "__" naming here. Remove
34040 duplicate copies in the discussion of function, label, and type
34041 attributes.
34042
34043 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
34044
34045 PR bootstrap/65910
34046 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
34047
34048 2015-04-28 Jason Merrill <jason@redhat.com>
34049
34050 PR c++/65734
34051 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
34052 (finalize_type_size): Respect TYPE_USER_ALIGN.
34053 (layout_type) [ARRAY_TYPE]: Likewise.
34054
34055 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
34056
34057 * config/arm/arm.md (*arm_movt): Fix type attribute.
34058 (*cmpsi_shiftsi): Likewise.
34059 (*cmpsi_shiftsi_swp): Likewise.
34060 (*movsicc_insn): Likewise.
34061 (*cond_move): Likewise.
34062 (*if_plus_move): Likewise.
34063 (*if_move_plus): Likewise.
34064 (*if_arith_move): Likewise.
34065 (*if_move_arith): Likewise.
34066 (*if_shift_move): Likewise.
34067 (*if_move_shift): Likewise.
34068 (*arm_movtas_ze): Likewise.
34069 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
34070 redundancy and type attribute.
34071 (*thumb2_movsi_insn): Fix type attribute.
34072 (*thumb2_addsi_short): Likewise.
34073 (thumb2_addsi3_compare0): Likewise.
34074 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
34075 attributes accordingly.
34076
34077 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
34078
34079 PR other/65911
34080 * function.c (pad_to_arg_alignment): Add parentheses.
34081
34082 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
34083
34084 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
34085 libgcc/config/frv/elf-lib.h.
34086
34087 2015-04-28 Tom de Vries <tom@codesourcery.com>
34088
34089 * tree-call-cdce.c: Fix example in header comment.
34090
34091 2015-04-28 Richard Biener <rguenther@suse.de>
34092
34093 PR tree-optimization/62283
34094 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
34095 fails fatally and we are vectorizing a basic-block simply
34096 cause the child to be constructed piecewise.
34097 (vect_analyze_slp_cost_1): Adjust.
34098 (vect_detect_hybrid_slp_stmts): Likewise.
34099 (vect_bb_slp_scalar_cost): Likewise.
34100 (vect_get_constant_vectors): For piecewise constructed
34101 constants place them after the last def.
34102 (vect_get_slp_defs): Adjust.
34103 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
34104 externals for basic-block vectorization.
34105
34106 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
34107
34108 PR target/63503
34109 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
34110 aarch64-*-*.
34111 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
34112 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
34113 (AARCH64_TUNE_FMA_STEERING): Likewise.
34114 * config/aarch64/aarch64-cores.def: Set
34115 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
34116 FMUL/FMADD instructions.
34117 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
34118 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
34119 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
34120 * config/aarch64/cortex-a57-fma-steering.h: New file.
34121 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
34122
34123 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
34124
34125 * gensupport.c (std_preds): Add missing codes to address_operand entry.
34126
34127 2015-04-28 Richard Biener <rguenther@suse.de>
34128
34129 PR tree-optimization/65851
34130 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
34131 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
34132 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
34133 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
34134 (ccp_visit_phi_node): Adjust.
34135 (evaluate_stmt): For simplifications to SSA names return its
34136 lattice value if that isn't VARYING. Return immediately when
34137 simplified to a constant.
34138 (visit_assignment): Adjust.
34139 (ccp_visit_stmt): Likewise.
34140
34141 2015-04-28 Tom de Vries <tom@codesourcery.com>
34142
34143 PR tree-optimization/65818
34144 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
34145 evaluated.
34146
34147 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34148
34149 * calls.c (save_fixed_argument_area): Don't check
34150 ARGS_GROW_DOWNWARD with the preprocessor.
34151 (restore_fixed_argument_area): Likewise.
34152 (mem_overlaps_already_clobbered_arg_p): Likewise.
34153 (check_sibcall_argument_overlap): Likewise.
34154 (expand_call): Likewise.
34155 (emit_library_call_value_1): Likewise.
34156 (store_one_arg): Likewise.
34157 * function.c (assign_parms): Likewise.
34158 (locate_and_pad_parm): Likewise.
34159 (pad_to_arg_alignment): Likewise.
34160 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
34161
34162 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34163
34164 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
34165 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
34166 * calls.c (save_fixed_argument_area): Don't chekc if
34167 ARGS_GROW_DOWNWARD is defined.
34168 (restore_fixed_argument_area): Likewise.
34169 (mem_overlaps_already_clobbered_arg_p): Likewise.
34170 (check_sibcall_argument_overlap): Likewise.
34171 (expand_call): Likewise.
34172 (emit_library_call_value_1): Likewise.
34173 (store_one_arg): Likewise.
34174 * function.c (assign_parms): Likewise.
34175 (locate_and_pad_parm): Likewise.
34176 (pad_to_arg_alignment): Likewise.
34177 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
34178
34179 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34180
34181 * defaults.h (gen_epilogue): New function.
34182 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
34183 defined.
34184 * cfgrtl.c (cfg_layout_finalize): Likewise.
34185 * df-scan.c: Likewise.
34186 * function.c (thread_prologue_and_epilogue_insns): Likewise.
34187 (reposition_prologue_and_epilogue_notes): Likewise.
34188 * reorg.c (find_end_label): Likewise.
34189 * toplev.c: Likewise.
34190
34191 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34192
34193 * bb-reorder.c (HAVE_return): Don't check if its undefined.
34194 * defaults.h (gen_simple_return): New function.
34195 (gen_simple_return): Likewise.
34196 (HAVE_return): Add default definition to false.
34197 (HAVE_simple_return): Likewise.
34198 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
34199 HAVE_return and HAVE_simple_return are defined.
34200 * function.c (gen_return_pattern): Likewise.
34201 (convert_jumps_to_returns): Likewise.
34202 (thread_prologue_and_epilogue_insns): Likewise.
34203 * reorg.c (find_end_label): Likewise.
34204 (dbr_schedule): Likewise.
34205 * shrink-wrap.c: Likewise.
34206 * shrink-wrap.h: Likewise.
34207
34208 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34209
34210 * defaults.h (EPILOGUE_USES): Add default definition of false.
34211 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
34212 * resource.c (init_resource_info): Likewise.
34213
34214 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34215
34216 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
34217 to false.
34218 * dwarf2out.c (field_byte_offset): REmove check if
34219 PCC_BITFIELD_TYPE_MATTERS is defined.
34220 * stor-layout.c (layout_decl): Likewise.
34221 (update_alignment_for_field): Likewise.
34222 (place_field): Likewise.
34223
34224 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34225
34226 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
34227 true.
34228 * regrename.c (check_new_reg_p): Remove check if
34229 HARD_REGNO_RENAME_OK is defined.
34230 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
34231
34232 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34233
34234 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
34235 * cse.c (fold_rtx): Likewise.
34236 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
34237 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
34238 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
34239 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
34240 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
34241 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
34242 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
34243 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
34244 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
34245 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
34246 * Likewise.
34247 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
34248 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
34249 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
34250 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
34251 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
34252 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
34253 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
34254 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
34255 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
34256 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
34257 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
34258 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
34259 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
34260 * doc/tm.texi: Regenerate.
34261 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
34262 either true or false.
34263
34264 2015-04-27 Jeff Law <law@redhat.com>
34265
34266 PR tree-optimization/65217
34267 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
34268 of them has a single use, make sure it is the LHS of the implied
34269 copy.
34270
34271 2015-04-28 Alan Modra <amodra@gmail.com>
34272
34273 PR target/65810
34274 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
34275 (offsettable_ok_by_alignment): Use minimum of decl and toc
34276 pointer alignment. Replace dead code with assertion.
34277 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
34278 case if size exceeds toc pointer alignment.
34279 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
34280 (rs6000_emit_move): Likewise.
34281 * configure.ac: Add linker toc pointer alignment check.
34282 * configure: Regenerate.
34283 * config.in: Regenerate.
34284
34285 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
34286
34287 * config.gcc: Add h8300-*-linux.
34288 * config/h8300/linux.h: New.
34289 * config/h8300/t-linux: New.
34290 * config/h8300/h8300.c (h8300_option_override): Normal mode
34291 is not supported for h8300-*-linux.
34292 (h8300_file_start): Target priority change.
34293 (get_shift_alg): Likewise.
34294 (h8300_shift_need_scratch_p): Likewise.
34295 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
34296 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
34297
34298 2015-04-27 Caroline Tice <cmtice@google.com>
34299
34300 * final.c (final_scan_insn): Output cold_function_name as function
34301 type.
34302 * varasm.c (cold_function_name): Make global.
34303 (assemble_start_function): Re-set cold_function_name.
34304 (assemble_end_function): Output cold partition size.
34305 * varasm.h (cold_function_name): Declare global.
34306
34307 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
34308
34309 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
34310 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
34311 constraint.
34312 (*movxi_internal_avx512f): Ditto.
34313 (define_split): Check for xmm16+, when splitting scalar float_extend.
34314 (*extendsfdf2_mixed): Use "v" constraint.
34315 (define_split): Check for xmm16+, when splitting scalar float_truncate.
34316 (*truncdfsf_fast_sse): Use "v" constraint.
34317 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
34318 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
34319 (define_peephole2): Check for xmm16+, when converting scalar
34320 float_truncate.
34321 (define_peephole2): Check for xmm16+, when converting scalar
34322 float_extend.
34323 (*fop_<mode>_comm_mixed): Use "v" constraint.
34324 (*fop_<mode>_comm_sse): Ditto.
34325 (*fop_<mode>_1_mixed): Ditto.
34326 (*sqrt<mode>2_sse): Ditto.
34327 (*ieee_s<ieee_maxmin><mode>3): Ditto.
34328
34329 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34330
34331 * combine.c (simplify_if_then_else): Use std::swap instead
34332 of manually swapping.
34333 (known_cond): Likewise.
34334 (simplify_comparison): Likewise.
34335
34336 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
34337
34338 PR target/64579
34339 * config/rs6000/htm.md: Remove all define_expands.
34340 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
34341 UNSPECV_HTM_TABORTWCI): Remove.
34342 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
34343 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
34344 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
34345 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
34346 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
34347 tabortwci_internal): Remove define_insns.
34348 (tabort<wd>c, tabort<wd>ci): New define_insns.
34349 (tabort): Use gpc_reg_operand.
34350 (tcheck): Remove operand.
34351 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
34352 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
34353 expected value.
34354 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
34355 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
34356 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
34357 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
34358 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
34359 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
34360 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
34361 (tcheck): Remove builtin argument.
34362 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
34363 not TARGET_64BIT.
34364 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
34365 tabortdc and tabortdci builtins when not in 64-bit mode.
34366 Modify code to handle the loss of the HTM define_expands.
34367 Emit code to copy the CR register to TARGET.
34368 (htm_init_builtins): Modify code to handle the loss of the HTM
34369 define_expands.
34370 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
34371 (RS6000_BTC_64BIT): Likewise.
34372 (RS6000_BTC_CR): New macro.
34373 * doc/extend.texi: Update documentation for htm builtins.
34374
34375 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34376
34377 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
34378 of manually swapping.
34379 (simplify_associative_operation): Likewise.
34380 (simplify_binary_operation): Likewise.
34381 (simplify_plus_minus): Likewise.
34382 (simplify_relational_operation): Likewise.
34383 (simplify_ternary_operation): Likewise.
34384
34385 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
34386
34387 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
34388 (xs_hi_nonmemory_operand): Remove error.
34389 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
34390 general_operand rather than xs_hi_general_operand.
34391
34392 2015-04-27 Richard Biener <rguenther@suse.de>
34393
34394 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
34395 (record_equivalences_from_stmt): Valueize rhs.
34396 (record_equality): Canonicalize x and y order via
34397 tree_swap_operands_p. Do not swap operands for same loop depth.
34398
34399 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
34400
34401 PR target/65296
34402 PR target/65895
34403 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
34404 Add hint how to use own spec file.
34405
34406 2015-04-27 Jakub Jelinek <jakub@redhat.com>
34407
34408 PR tree-optimization/65875
34409 * tree-vrp.c (update_value_range): If in is_new case setting
34410 old_vr to VR_VARYING, also set new_vr to it. Remove
34411 old_vr->type == VR_VARYING test.
34412 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
34413 SSA_PROP_INTERESTING if update_value_range returned true,
34414 but new range is VR_VARYING.
34415
34416 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
34417
34418 * combine.c (sign_extend_short_imm): New.
34419 (set_nonzero_bits_and_sign_copies): Use above new function for sign
34420 extension of src short immediate.
34421 (reg_nonzero_bits_for_combine): Likewise for tem.
34422
34423 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
34424
34425 * stor-layout.c (self_referential_component_ref_p): New predicate.
34426 (copy_self_referential_tree_r): Use it.
34427 (self_referential_size): Punt for simple operations directly involving
34428 self-referential component references.
34429 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
34430
34431 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
34432
34433 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
34434
34435 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
34436
34437 * vec.h (vec): Make splice arguments const. Update definitions
34438 accordingly.
34439
34440 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
34441
34442 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
34443 alternatives.
34444
34445 2015-04-26 Tom de Vries <tom@codesourcery.com>
34446
34447 PR tree-optimization/65826
34448 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
34449
34450 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
34451
34452 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
34453 (*madd3<mode>): Ditto.
34454 (*msub4<mode>): Ditto.
34455 (*msub3<mode>): Ditto.
34456 (*nmadd4<mode>): Ditto.
34457 (*nmadd3<mode>): Ditto.
34458 (*nmadd4<mode>_fastmath): Ditto.
34459 (*nmadd3<mode>_fastmath): Ditto.
34460 (*nmsub4<mode>): Ditto.
34461 (*nmsub3<mode>): Ditto.
34462 (*nmsub4<mode>_fastmath): Ditto.
34463 (*nmsub3<mode>_fastmath): Ditto.
34464
34465 2015-04-24 Jason Merrill <jason@redhat.com>
34466
34467 PR c++/50800
34468 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
34469 down when building TYPE_CANONICAL.
34470 (build_pointer_type_for_mode): Likewise.
34471
34472 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
34473
34474 * genrecog.c (validate_pattern): Check matching constraint refers
34475 to a lower numbered operand.
34476
34477 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
34478
34479 PR target/65849
34480 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
34481 save to independent variables use the Save attribute. This will
34482 allow these options to be modified with the #pragma/attribute
34483 target support.
34484 (-mallow-movmisalign): Likewise.
34485 (-mallow-df-permute): Likewise.
34486 (-msched-groups): Likewise.
34487 (-malways-hint): Likewise.
34488 (-malign-branch-targets): Likewise.
34489 (-mvectorize-builtins): Likewise.
34490 (-msave-toc-indirect): Likewise.
34491
34492 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
34493 can be set via the #pragma/attribute target support.
34494 (rs6000_opt_vars): Likewise.
34495 (rs6000_inner_target_options): If VSX was set, also set
34496 -mno-avoid-indexed-addresses.
34497
34498 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34499
34500 * config/arm/iterators.md (shiftable_ops): Rename to...
34501 (SHIFTABLE_OPS): ... This. Update use in comments.
34502 (ior_xor): Rename to...
34503 (IOR_XOR): ... This.
34504 (vqh_ops): Rename to...
34505 (VQH_OPS): ... This.
34506 (vqhs_ops): Rename to...
34507 (VQHS_OPS): ... This.
34508 (rshifts): Rename to...
34509 (RSHIFTS): ... This.
34510 (returns): Rename to...
34511 (RETURNS): ... This.
34512 * config/arm/arm.md: Update uses of the above.
34513 * config/arm/neon.md: Likewise.
34514
34515 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34516
34517 * config.host (case ${host}): Add aarch64*-*-linux case.
34518 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
34519 fields to all the cores.
34520 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
34521 Add MCPU_MTUNE_NATIVE_SPECS.
34522 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
34523 field to all extensions.
34524 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
34525 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
34526 Adjust definition of AARCH64_OPT_EXTENSION.
34527 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
34528 (MCPU_MTUNE_NATIVE_SPECS): Define.
34529 * config/aarch64/driver-aarch64.c: New file.
34530 * config/aarch64/x-arch64: New file.
34531 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
34532 -mtune and -march.
34533
34534 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
34535 Wei Mi <wmi@google.com>
34536
34537 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
34538 * config/i386/i386.c (extract_base_offset_in_addr): New function.
34539 (ix86_operands_ok_for_move_multiple): Ditto.
34540 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
34541 (movlpd/movhpd to movupd peephole2): Ditto.
34542
34543 2015-04-24 Marek Polacek <polacek@redhat.com>
34544
34545 PR c/61534
34546 * input.h (from_macro_expansion_at): Define.
34547
34548 PR c/63357
34549 * doc/invoke.texi: Update description of -Wlogical-op.
34550
34551 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
34552
34553 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
34554 ternary operator in fprintf and harmonize spacing.
34555
34556 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
34557
34558 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
34559 Mark operand1 commutative.
34560
34561 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
34562
34563 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
34564 input operands in memory.
34565 (*vec_concatv2si_sse4_1): Ditto.
34566 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
34567 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
34568 register_operand.
34569 (vec_extract_hi_v32hi): Ditto.
34570 (vec_extract_hi_v64hi): Ditto.
34571 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
34572
34573 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
34574 Steven Bosscher <steven@gcc.gnu.org>
34575
34576 PR rtl-optimization/34503
34577 * cprop.c (cprop_reg_p): New.
34578 (hash_scan_set): Use above function to check if register can be
34579 propagated.
34580 (find_avail_set): Return up to two sets, one whose source is a
34581 register and one whose source is a constant. Sets are returned in an
34582 array passed as parameter rather than as a return value.
34583 (cprop_insn): Use a do while loop rather than a goto. Try each of the
34584 sets returned by find_avail_set, starting with the one whose source is
34585 a constant. Use cprop_reg_p to check if register can be propagated.
34586 (do_local_cprop): Use cprop_reg_p to check if register can be
34587 propagated.
34588 (implicit_set_cond_p): Likewise.
34589
34590 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
34591
34592 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
34593 (sem_function::equals): IGNORED_NODES parameter is now unused;
34594 update call of equals_private.
34595 (sem_function::equals_private): Do not call equals_wpa; skip
34596 gimple body matching if there is no body.
34597 (sem_function::init): Add logic to hash tthunk info.
34598 (sem_function::parse): Also parse thunks.
34599 * ipa-icf.h (equals_private): Update declaration.
34600
34601 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34602
34603 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
34604 asterisk from name so this can be generated directly.
34605 (*altivec_stvx_<mode>_internal): Likewise.
34606 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
34607 that this is never called during or after reload/lra.
34608 (rs6000_frame_related): Remove split_reg
34609 argument and logic that references it.
34610 (emit_frame_save): Remove last parameter from call to
34611 rs6000_frame_related.
34612 (rs6000_emit_prologue): Remove last parameter from eight calls to
34613 rs6000_frame_related. Force generation of stvx instruction for
34614 Altivec register saves. Remove split_reg handling, which is no
34615 longer needed.
34616 (rs6000_emit_epilogue): Force generation of lvx instruction for
34617 Altivec register restores.
34618
34619 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34620
34621 * config/rs6000/rs6000.opt (mcrypto): Change option description to
34622 match category changes in ISA 2.07B.
34623
34624 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34625
34626 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
34627 iterators.
34628 (cmp_op, cmp_type): New code attributes.
34629 (NEON_VCMP, NEON_VACMP): New int iterators.
34630 (cmp_op_unsp): New int attribute.
34631 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
34632 (neon_vceq<mode>): Delete.
34633 (neon_vc<cmp_op><mode>_insn): New pattern.
34634 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
34635 (neon_vcgeu<mode>): Delete.
34636 (neon_vcle<mode>): Likewise.
34637 (neon_vclt<mode>: Likewise.
34638 (neon_vcage<mode>): Likewise.
34639 (neon_vcagt<mode>): Likewise.
34640 (neon_vca<cmp_op><mode>): New define_expand.
34641 (neon_vca<cmp_op><mode>_insn): New pattern.
34642 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
34643
34644 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
34645
34646 * tree.h (attribute_value_equal): Declare.
34647 * tree.c (attribute_value_equal): Export.
34648
34649 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
34650
34651 * ipa-icf.c (sem_item::compare_attributes): New function.
34652 (sem_item::compare_referenced_symbol_properties): Compare variable
34653 attributes.
34654 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
34655 (sem_function::param_used_p): New function.
34656 (sem_function::equals_wpa): Fix attribute comparsion; match
34657 parameter type codes; do not compare paremter flags when
34658 they are not used; compare edge flags; compare indirect calls.
34659 (sem_item::update_hash_by_addr_refs): Hash reference type.
34660 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
34661 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
34662 reference use type.
34663 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
34664 * ipa-icf.h (compare_attributes, param_used_p): Declare.
34665
34666 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
34667
34668 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
34669 cleanup.
34670 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
34671 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
34672 (sem_item::compare_referenced_symbol_properties): New.
34673 (sem_item::hash_referenced_symbol_properties): New.
34674 (sem_item::compare_cgraph_references): Rename to ...
34675 (sem_item::compare_symbol_references): ... this one; use
34676 compare_referenced_symbol_properties.
34677 (sem_function::equals_wpa): Do not compare
34678 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
34679 DECL_IS_OPERATOR_NEW; compare pointer sizes.
34680 (sem_item::update_hash_by_addr_refs): Call
34681 hash_referenced_symbol_properties.
34682 (sem_item::update_hash_by_local_refs): Cleanup.
34683 (sem_function::merge): Do not mix up symbol properties.
34684 (sem_variable::equals_wpa): Use compare_symbol_references.
34685 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
34686 (sem_item::hash_referenced_symbol_properties): New.
34687 (sem_item::compare_symbol_references): New.
34688 (sem_item::compare_cgraph_references): Remove.
34689
34690 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
34691
34692 PR target/26702
34693 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
34694 Emit size of local.
34695
34696 2015-04-23 Nick Clifton <nickc@redhat.com>
34697
34698 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
34699 ATTRIBUTE_UNUSED to x parameter.
34700 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
34701
34702 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34703
34704 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
34705 TARGET_CRYPTO to TARGET_P8_VECTOR>
34706 (crypto_vpermxor_<mode>): Likewise.
34707 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
34708 (BU_CRYPTO_3A): Likewise.
34709 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
34710 (BU_CRYPTO_OVERLOAD_3A): New #define.
34711 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
34712 (VPMSUMH): Likewise.
34713 (VPMSUMW): Likewise.
34714 (VPMSUMD): Likewise.
34715 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
34716 (VPERMXOR_V4SI): Likewise.
34717 (VPERMXOR_V8HI): Likewise.
34718 (VPERMXOR_V16QI): Likewise.
34719 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
34720 BU_CRYPTO_OVERLOAD_2A.
34721 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
34722 BU_CRYPTO_OVERLOAD_3A.
34723 * config/rs6000/rs6000.opt (mcrypto): Change description of
34724 option.
34725
34726 2015-04-23 Richard Biener <rguenther@suse.de>
34727
34728 * passes.def: Remove copy propagation passes run directly after CCP.
34729 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
34730 SSA names.
34731 (ccp_visit_phi_node): Rework to handle first executable edge
34732 specially.
34733
34734 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
34735
34736 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
34737 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
34738 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
34739 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
34740 (thumb_legimitimize_reload_address): Remove.
34741 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
34742 Remove.
34743 (thumb_legimitimize_reload_address): Remove.
34744
34745 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34746
34747 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
34748
34749 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34750
34751 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
34752 MAX_LDM_STM_OPS.
34753 (store_multiple): Likewise.
34754
34755 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34756
34757 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
34758 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
34759 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
34760 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
34761 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
34762 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
34763 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
34764 Specify issue_rate value.
34765 (arm_issue_rate): Look up issue rate from tuning structs. Remove
34766 large switch statement.
34767 (arm_marvell_pj4_tune): New struct.
34768 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
34769 struct.
34770
34771 2015-04-23 Richard Biener <rguenther@suse.de>
34772
34773 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
34774 (vect_find_last_store_in_slp_instance): Rename to ...
34775 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
34776 (vect_analyze_slp_cost_1): Use vector_load for constant defs
34777 and vec_construct for external defs when estimating prologue cost.
34778 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
34779 Compute costs here only when vectorizing loops.
34780 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
34781 have been determined.
34782 (vect_schedule_slp_instance): Simplify vectorized code placement
34783 and prepare for in-BB external defs.
34784 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
34785 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
34786 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
34787 guard.
34788 (vect_model_load_cost): Likewise.
34789 (vectorizable_store): Instead add it here.
34790 (vectorizable_load): Likewise.
34791 (vect_is_simple_use): Dump def type textually.
34792
34793 2015-04-23 Richard Biener <rguenther@suse.de>
34794
34795 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
34796 * cfgloop.c (verify_loop_structure): Verify the root loop node.
34797 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
34798 instead of get_eh_region_from_lp_number.
34799 * loop-init.c (fix_loop_structure): If we removed a loop, reset
34800 the SCEV cache.
34801
34802 2015-04-23 Anton Blanchard <anton@samba.org>
34803
34804 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
34805 need for -mprofile-kernel to save LR to stack.
34806
34807 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34808
34809 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
34810 adjustments.
34811 (insn_is_swappable_p): Return 1 for a convert from double to
34812 single precision when all of its uses are splats of BE element
34813 zero.
34814
34815 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
34816
34817 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
34818
34819 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34820
34821 PR target/65456
34822 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
34823 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
34824 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
34825 option.
34826 (rs6000_builtin_mask_for_load): Return 0 for targets with
34827 efficient unaligned VSX accesses so that the vectorizer will use
34828 direct unaligned loads.
34829 (rs6000_builtin_support_vector_misalignment): Always return true
34830 for targets with efficient unaligned VSX accesses.
34831 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
34832 stores on targets with efficient unaligned VSX accesses is almost
34833 always the same as the cost of an aligned load or store, so model
34834 it that way.
34835 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
34836 unaligned vectors if we have efficient unaligned VSX accesses.
34837 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
34838 undocumented option.
34839
34840 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34841
34842 Revert:
34843 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
34844
34845 * config.gcc (LIBC_MUSL): New tm_defines macro.
34846 * config/linux.h (OPTION_MUSL): Define.
34847 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
34848 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
34849 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
34850
34851 * config/linux.opt (mmusl): New option.
34852 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
34853 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
34854
34855 * configure: Regenerate.
34856
34857 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
34858
34859 * config.gcc (LIBC_MUSL): New tm_defines macro.
34860 * config/linux.h (OPTION_MUSL): Define.
34861 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
34862 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
34863 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
34864
34865 * config/linux.opt (mmusl): New option.
34866 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
34867 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
34868
34869 * configure: Regenerate.
34870
34871 2015-04-22 Yury Gribov <y.gribov@samsung.com>
34872
34873 * doc/invoke.texi (-fsanitize-sections): Update description.
34874 * asan.c (set_sanitized_sections): Parse incoming arg.
34875 (section_sanitized_p): Support wildcards.
34876
34877 2015-04-22 Tom de Vries <tom@codesourcery.com>
34878
34879 PR tree-optimization/65823
34880 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
34881 equality between ap_copy and ap.
34882
34883 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34884
34885 PR target/47098
34886 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
34887
34888 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34889
34890 PR target/47122
34891 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
34892
34893 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34894
34895 PR target/55144
34896 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
34897 remove already contained t-files.
34898
34899 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34900
34901 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
34902 Remove unneeded forward declarations.
34903 (suitable_for_tail_call_opt_p): Commentary typo fix.
34904
34905 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34906
34907 * varasm.c (emit_bss): Remove redundant guard.
34908
34909 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34910
34911 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
34912
34913 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34914
34915 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
34916
34917 2015-04-22 Hale Wang <hale.wang@arm.com>
34918 Terry Guo <terry.guo@arm.com>
34919
34920 PR rtl-optimization/64818
34921 * combine.c (can_combine_p): Don't combine user-specified
34922 register if it is in an asm input.
34923
34924 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
34925
34926 PR ipa/65076
34927 * passes.def (early_optimizations): Add pass_dse.
34928
34929 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34930
34931 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
34932 * reorg.c (redundant_insn): Remove ifdef
34933 INSN_REFERENCES_ARE_DELAYED.
34934 * resource.c (mark_referenced_resources): Likewise.
34935
34936 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34937
34938 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
34939 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
34940 * resource.c (mark_set_resources): Likewise.
34941
34942 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34943
34944 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
34945 * cfgcleanup.c (flow_find_cross_jump): Likewise.
34946 (flow_find_head_matching_sequence): Likewise.
34947 (try_head_merge_bb): Likewise.
34948 * combine.c (can_combine_p): Likewise.
34949 (try_combine): Likewise.
34950 (distribute_notes): Likewise.
34951 * df-problems.c (can_move_insns_across): Likewise.
34952 * final.c (final): Likewise.
34953 * gcse.c (insert_insn_end_basic_block): Likewise.
34954 * ira.c (find_moveable_pseudos): Likewise.
34955 * reorg.c (try_merge_delay_insns): Likewise.
34956 (fill_simple_delay_slots): Likewise.
34957 (fill_slots_from_thread): Likewise.
34958 * sched-deps.c (sched_analyze_2): Likewise.
34959
34960 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34961
34962 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
34963 PIC_OFFSET_TABLE_REGNUM.
34964
34965 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34966
34967 * alias.c (init_alias_target): Remove ifdef
34968 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
34969 * df-scan.c (df_insn_refs_collect): Likewise.
34970 (df_get_regular_block_artificial_uses): Likewise.
34971 (df_get_eh_block_artificial_uses): Likewise.
34972 (df_get_entry_block_def_set): Likewise.
34973 (df_get_exit_block_use_set): Likewise.
34974 * emit-rtl.c (gen_rtx_REG): Likewise.
34975 * ira.c (ira_setup_eliminable_regset): Likewise.
34976 * reginfo.c (init_reg_sets_1): Likewise.
34977 * regrename.c (rename_chains): Likewise.
34978 * reload1.c (reload): Likewise.
34979 (eliminate_regs_in_insn): Likewise.
34980 * resource.c (mark_referenced_resources): Likewise.
34981 (init_resource_info): Likewise.
34982
34983 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34984
34985 * defaults.h (MASK_RETURN_ADDR): New definition.
34986 * except.c (expand_builtin_extract_return_addr): Remove ifdef
34987 MASK_RETURN_ADDR.
34988
34989 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34990
34991 * defaults.h (RETURN_ADDR_OFFSET): New definition.
34992 * except.c (expand_builtin_extract_return_addr): Remove ifdef
34993 RETURN_ADDR_OFFSET.
34994 (expand_builtin_frob_return_addr): Likewise.
34995
34996 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34997
34998 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
34999 (try_redirect_by_replacing_jump): Likewise.
35000 (rtl_tidy_fallthru_edge): Likewise.
35001 * combine.c (insn_a_feeds_b): Likewise.
35002 (find_split_point): Likewise.
35003 (simplify_set): Likewise.
35004 * cprop.c (cprop_jump): Likewise.
35005 * cse.c (cse_extended_basic_block): Likewise.
35006 * df-problems.c (can_move_insns_across): Likewise.
35007 * function.c (emit_use_return_register_into_block): Likewise.
35008 * haifa-sched.c (sched_init): Likewise.
35009 * ira.c (find_moveable_pseudos): Likewise.
35010 * loop-invariant.c (find_invariant_insn): Likewise.
35011 * lra-constraints.c (curr_insn_transform): Likewise.
35012 * postreload.c (reload_combine_recognize_const_pattern):
35013 * Likewise.
35014 * reload.c (find_reloads): Likewise.
35015 * reorg.c (delete_scheduled_jump): Likewise.
35016 (steal_delay_list_from_target): Likewise.
35017 (steal_delay_list_from_fallthrough): Likewise.
35018 (redundant_insn): Likewise.
35019 (fill_simple_delay_slots): Likewise.
35020 (fill_slots_from_thread): Likewise.
35021 (delete_computation): Likewise.
35022 * sched-rgn.c (add_branch_dependences): Likewise.
35023
35024 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35025
35026 * genconfig.c (main): Always define HAVE_cc0.
35027 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
35028 HAVE_cc0.
35029 * cfgcleanup.c (flow_find_cross_jump): Likewise.
35030 (flow_find_head_matching_sequence): Likewise.
35031 (try_head_merge_bb): Likewise.
35032 * cfgrtl.c (rtl_merge_blocks): Likewise.
35033 (try_redirect_by_replacing_jump): Likewise.
35034 (rtl_tidy_fallthru_edge): Likewise.
35035 * combine.c (do_SUBST_MODE): Likewise.
35036 (insn_a_feeds_b): Likewise.
35037 (combine_instructions): Likewise.
35038 (can_combine_p): Likewise.
35039 (try_combine): Likewise.
35040 (find_split_point): Likewise.
35041 (subst): Likewise.
35042 (simplify_set): Likewise.
35043 (distribute_notes): Likewise.
35044 * cprop.c (cprop_jump): Likewise.
35045 * cse.c (cse_extended_basic_block): Likewise.
35046 * df-problems.c (can_move_insns_across): Likewise.
35047 * final.c (final): Likewise.
35048 (final_scan_insn): Likewise.
35049 * function.c (emit_use_return_register_into_block): Likewise.
35050 * gcse.c (insert_insn_end_basic_block): Likewise.
35051 * haifa-sched.c (sched_init): Likewise.
35052 * ira.c (find_moveable_pseudos): Likewise.
35053 * loop-invariant.c (find_invariant_insn): Likewise.
35054 * lra-constraints.c (curr_insn_transform): Likewise.
35055 * optabs.c (prepare_cmp_insn): Likewise.
35056 * postreload.c (reload_combine_recognize_const_pattern):
35057 * Likewise.
35058 * reload.c (find_reloads): Likewise.
35059 (find_reloads_address_1): Likewise.
35060 * reorg.c (delete_scheduled_jump): Likewise.
35061 (steal_delay_list_from_target): Likewise.
35062 (steal_delay_list_from_fallthrough): Likewise.
35063 (try_merge_delay_insns): Likewise.
35064 (redundant_insn): Likewise.
35065 (fill_simple_delay_slots): Likewise.
35066 (fill_slots_from_thread): Likewise.
35067 (delete_computation): Likewise.
35068 (relax_delay_slots): Likewise.
35069 * sched-deps.c (sched_analyze_2): Likewise.
35070 * sched-rgn.c (add_branch_dependences): Likewise.
35071
35072 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35073
35074 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
35075 that is trivially ded on non cc0 targets.
35076 (simplify_set): Likewise.
35077 (mark_used_regs_combine): Likewise.
35078 * cse.c (new_basic_block): Likewise.
35079 (fold_rtx): Likewise.
35080 (cse_insn): Likewise.
35081 (cse_extended_basic_block): Likewise.
35082 (set_live_p): Likewise.
35083 * rtlanal.c (canonicalize_condition): Likewise.
35084 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
35085
35086 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35087
35088 * conditions.h: Define macros even if HAVE_cc0 is undefined.
35089 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
35090 * final.c: Likewise.
35091 * jump.c: Likewise.
35092 * recog.c: Likewise.
35093 * recog.h: Declare functions even when HAVE_cc0 is undefined.
35094 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
35095
35096 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35097
35098 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
35099 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
35100 * builtins.c (expand_builtin): Remove check if
35101 EH_RETURN_DATA_REGNO is defined.
35102 * df-scan.c (df_bb_refs_collect): Likewise.
35103 (df_get_exit_block_use_set): Likewise.
35104 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
35105 * ira-lives.c (process_bb_node_lives): Likewise.
35106 * lra-lives.c (process_bb_lives): Likewise.
35107
35108 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
35109
35110 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
35111 FIRST_PSEUDO_REG): New.
35112 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
35113 (ARG_POINTER_REGNUM): Define to ARGP_REG.
35114 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
35115 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
35116 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
35117 (FIRST_INT_REG): New.
35118 (LAST_INT_REG): New.
35119 (FIRST_*_REG): Define using *_REG.
35120 (LAST_*_REG): Ditto.
35121 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
35122 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
35123 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
35124
35125 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35126
35127 * expmed.c: (synth_mult): Only assume overlapping
35128 shift with previous steps in alg_sub_t_m2 case.
35129
35130 2015-04-21 Richard Biener <rguenther@suse.de>
35131
35132 PR tree-optimization/65650
35133 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
35134 transitions involving copies.
35135 (set_lattice_value): Adjust for copy lattice state.
35136 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
35137 if that doesn't dominate the merge point.
35138 (bit_value_unop): Adjust what we treat as varying mask.
35139 (bit_value_binop): Likewise.
35140 (bit_value_assume_aligned): Likewise.
35141 (evaluate_stmt): When we simplified to a SSA name record a copy
35142 instead of dropping to varying.
35143 (visit_assignment): Simplify.
35144
35145 * gimple-match.h (gimple_simplify): Add another callback.
35146 * gimple-fold.c (fold_stmt_1): Adjust caller.
35147 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
35148 for the 2nd callback.
35149 * gimple-match-head.c (gimple_simplify): Add a callback that is
35150 used to valueize the stmt operands and use it that way.
35151
35152 2015-04-21 Richard Biener <rguenther@suse.de>
35153
35154 PR tree-optimization/65788
35155 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
35156
35157 2015-04-21 Richard Biener <rguenther@suse.de>
35158
35159 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
35160 vec_construct cost by vec_stmt_cost.
35161
35162 2015-04-21 Richard Biener <rguenther@suse.de>
35163
35164 * cfghooks.h (create_basic_block): Replace with two overloads
35165 for RTL and GIMPLE.
35166 (split_block): Likewise.
35167 * cfghooks.c (split_block): Rename to ...
35168 (split_block_1): ... this.
35169 (split_block): Add two type-safe overloads for RTL and GIMPLE.
35170 (split_block_after_labels): Call split_block_1.
35171 (create_basic_block): Rename to ...
35172 (create_basic_block_1): ... this.
35173 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
35174 (create_empty_bb): Call create_basic_block_1.
35175 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
35176 split_block_after_labels.
35177 * omp-low.c (expand_parallel_call): Likewise.
35178 (expand_omp_target): Likewise.
35179 (simd_clone_adjust): Likewise.
35180 * tree-chkp.c (chkp_get_entry_block): Likewise.
35181 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
35182 create_basic_block overload.
35183 (cgraph_node::expand_thunk): Likewise.
35184 * tree-cfg.c (make_blocks): Likewise.
35185 (handle_abnormal_edges): Likewise.
35186 * tree-inline.c (copy_bb): Likewise.
35187
35188 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35189
35190 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
35191 New pattern.
35192 (*xor_one_cmplsidi3_ze): Likewise.
35193
35194 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
35195
35196 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
35197 use df_remove_problem rather than manually removing problems, leaving
35198 holes in df->problems_in_order[].
35199
35200 2015-04-21 Tom de Vries <tom@codesourcery.com>
35201
35202 PR tree-optimization/65802
35203 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
35204
35205 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35206
35207 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
35208 Increase to 128.
35209 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
35210 at '.'. Assert that there's enough space for everything.
35211
35212 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
35213
35214 PR tree-optimization/64950
35215 Revert:
35216 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
35217
35218 PR target/41089
35219 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
35220 as volatile.
35221
35222 2015-04-20 Shiva Chen <shiva0217@gmail.com>
35223
35224 PR rtl-optimization/64916
35225 * cfgcleanup.c (values_equal_p): New function.
35226 (can_replace_by): Use it.
35227
35228 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
35229
35230 PR c++/65801
35231 * doc/invoke.texi ([-Wnarrowing]): Update.
35232
35233 2015-04-20 Jeff Law <law@redhat.com>
35234
35235 PR tree-optimization/65658
35236 * tree-ssa-threadupdate.c (redirection_block_p): Remove
35237 redundant test for GIMPLE_ASSIGN in last change.
35238
35239 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
35240
35241 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
35242 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
35243 (legitimize_tls_address): Ditto.
35244 (ix86_expand_move): Ditto.
35245 (ix86_expand_binary_operator): Remove reload_in_progress checks.
35246 (ix86_expand_unary_operator): Ditto.
35247 * config/i386/predicates.md (index_register_operand): Ditto.
35248
35249 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
35250
35251 * reorg.c (try_merge_delay_insns): Improve correctness checking
35252 for targets with multiple delay slots.
35253
35254 2015-04-20 Jeff Law <law@redhat.com>
35255
35256 PR tree-optimization/65658
35257 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
35258 statements too.
35259
35260 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
35261
35262 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
35263 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
35264 Delete.
35265
35266 2015-04-20 Jakub Jelinek <jakub@redhat.com>
35267
35268 PR debug/65807
35269 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
35270
35271 2015-04-20 Richard Biener <rguenther@suse.de>
35272
35273 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
35274 * gimple-fold.c (gimple_build_valueize): New function.
35275 (gimple_build): Always use gimple_build_valueize as valueize hook.
35276
35277 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
35278
35279 PR target/64134
35280 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
35281 and overwrite variable parts if <= 1/2 the elements are variable.
35282
35283 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
35284
35285 PR rtl-optimization/65805
35286 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
35287 Don't use difference of offset and previous offset if
35288 update_sp_offset is non-zero.
35289 (eliminate_regs_in_insn): Ditto.
35290 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
35291 lra_eliminate_regs_1 call.
35292 * lra-constraints.c (get_equiv_with_elimination): Ditto.
35293
35294 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
35295
35296 * hash-table.h: Remove version of hash_table that stored value_type *.
35297 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
35298 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
35299 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
35300 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
35301 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
35302 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
35303 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
35304 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
35305 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
35306 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
35307 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
35308 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
35309 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
35310 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
35311 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
35312 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
35313
35314 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35315 Jakub Jelinek <jakub@redhat.com>
35316
35317 PR target/65787
35318 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
35319 subsequent SH_NONE operand does not overwrite an existing *special
35320 value.
35321 (adjust_extract): Handle case where a vec_extract operation is
35322 wrapped in a PARALLEL.
35323
35324 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
35325
35326 PR target/65780
35327 * config/i386/i386.c (ix86_binds_local_p): Define only if
35328 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
35329
35330 2015-04-17 Jeff Law <law@redhat.com>
35331
35332 PR tree-optimization/47679
35333 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
35334 * tree-ssa-scopedtables.c: New file.
35335 * tree-ssa-scopedtables.h: New file.
35336 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
35337 (const_and_copies): Change name/type.
35338 (record_const_or_copy): Move into tree-ssa-scopedtables.c
35339 (record_const_or_copy_1): Similarly.
35340 (restore_vars_to_original_value): Similarly.
35341 (pass_dominator::execute): Create and destroy const_and_copies table.
35342 (thread_across_edge): Update passing of const_and_copies.
35343 (record_temporary_equivalence): Use method calls rather than
35344 manipulating const_and_copies directly.
35345 (record_equality, cprop_into_successor_phis): Similarly.
35346 (dom_opt_dom_walker::before_dom_children): Similarly.
35347 (dom_opt_dom_walker::after_dom_children): Similarly.
35348 (eliminate_redundant_computations): Similarly.
35349 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
35350 (record_temporary_equivalence): Likewise.
35351 (invalidate_equivalences): Likewise.
35352 (record_temporary_equivalences_from_phis): Update due to type
35353 change of const_and_copies. Use method calls rather than
35354 manipulating the stack directly.
35355 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
35356 (thread_through_normal_block, thread_across_edge): Likewise.
35357 (thread_across_edge): Likewise.
35358 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
35359 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
35360 of equiv_stack.
35361 (identify_jump_threads): Update due to type change of equiv_stack.
35362 (finalize_jump_threads): Delete the equiv_stack when complete.
35363
35364 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
35365
35366 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
35367 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
35368 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
35369
35370 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
35371
35372 PR target/65535
35373 * config.gcc: Exit with a comment when we do not have a major version
35374 number for the FreeBSD target.
35375
35376 2015-04-17 Jakub Jelinek <jakub@redhat.com>
35377
35378 PR target/65689
35379 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
35380 maybe_allows_mem bitfields.
35381 (maybe_allows_none_start, maybe_allows_none_end,
35382 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
35383 maybe_allows_mem_end): New variables.
35384 (compute_maybe_allows): New function.
35385 (add_constraint): Use it to initialize maybe_allows_reg and
35386 maybe_allows_mem fields.
35387 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
35388 is_address constraints such that those that allow neither mem nor
35389 reg come first, then those that only allow reg but not mem, then
35390 those that only allow mem but not reg, then the rest.
35391 (write_allows_reg_mem_function): New function.
35392 (write_tm_preds_h): Call it.
35393 * stmt.c (parse_output_constraint, parse_input_constraint): Use
35394 the generated insn_extra_constraint_allows_reg_mem function
35395 instead of always setting *allows_reg = true; *allows_mem = true;
35396 for unknown extra constraints.
35397
35398 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
35399
35400 PR target/65780
35401 * output.h (default_binds_local_p_3): New.
35402 * varasm.c (default_binds_local_p_3): Make it public. Take an
35403 argument to indicate if common symbol may be local. If common
35404 symbol may be local, treat non-external variable as defined
35405 locally.
35406 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
35407 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
35408 * config/i386/i386.c (ix86_binds_local_p): New.
35409 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
35410 ix86_binds_local_p.
35411
35412 2015-04-17 Jakub Jelinek <jakub@redhat.com>
35413
35414 PR debug/65771
35415 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
35416 trying mem_loc_descriptor on XEXP (rtl, 0).
35417
35418 2015-04-17 Martin Liska <mliska@suse.cz>
35419
35420 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
35421 Release symbol_compare_collection.
35422 * ipa-reference.c: Add TODO that a vector should be released.
35423
35424 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
35425
35426 PR target/65296
35427 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
35428 to new AVR-LibC file layout (bug #44574).
35429 (*avrlibc_devicelib): Same.
35430 * config/avr/avr-mcus.def: Adjust comments.
35431 * config/avr/avr.opt (nodevicelib): Adjust help.
35432
35433 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
35434
35435 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
35436
35437 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
35438
35439 PR c++/64527
35440 * gimplify.c (gimplify_init_constructor): Always emit a
35441 side-effecting constructor.
35442
35443 2015-04-17 Tom de Vries <tom@codesourcery.com>
35444
35445 PR tree-optimization/64950
35446 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
35447 in cfun->curr_properties.
35448 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
35449 if we generate an IFN_VA_ARG.
35450 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
35451 function if PROP_gimple_lva is not set in src function.
35452
35453 2015-04-17 Tom de Vries <tom@codesourcery.com>
35454 Michael Matz <matz@suse.de>
35455
35456 PR tree-optimization/64950
35457 * gimple-iterator.c (update_modified_stmts): Remove static.
35458 * gimple-iterator.h (update_modified_stmts): Declare.
35459 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
35460 (gimplify_va_arg_internal): New function.
35461 (gimplify_va_arg_expr): Use IFN_VA_ARG.
35462 * gimplify.h (gimplify_va_arg_internal): Declare.
35463 * internal-fn.c (expand_VA_ARG): New unreachable function.
35464 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
35465 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
35466 (expand_ifn_va_arg): New function.
35467 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
35468 (pass_stdarg::execute): Call expand_ifn_va_arg.
35469 (pass_data_lower_vaarg): New pass_data.
35470 (pass_lower_vaarg): New gimple_opt_pass.
35471 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
35472 (make_pass_lower_vaarg): New function.
35473 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
35474 properties_required field.
35475 * passes.def (all_passes): Add pass_lower_vaarg.
35476 * tree-pass.h (PROP_gimple_lva): Add define.
35477 (make_pass_lower_vaarg): Declare.
35478
35479 2015-04-17 Tom de Vries <tom@codesourcery.com>
35480
35481 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
35482 * calls.c (call_expr_flags): Same.
35483
35484 2015-04-17 Tom de Vries <tom@codesourcery.com>
35485
35486 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
35487 (pass_stdarg::execute): ... here.
35488
35489 2015-04-17 Tom de Vries <tom@codesourcery.com>
35490 Michael Matz <matz@suse.de>
35491
35492 * tree-cfg.c (make_blocks_1): Factor out of ...
35493 (make_blocks): ... here.
35494 (make_edges_bb): Factor out of ...
35495 (make_edges): ... here.
35496 (gimple_find_sub_bbs): New function.
35497 * tree-cfg.h (gimple_find_sub_bbs): Declare.
35498
35499 2015-04-17 Tom de Vries <tom@codesourcery.com>
35500
35501 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
35502
35503 2015-04-17 Yury Gribov <y.gribov@samsung.com>
35504
35505 * asan.c (set_sanitized_sections): New function.
35506 (section_sanitized_p): Ditto.
35507 (asan_protect_global): Optionally sanitize user-defined
35508 sections.
35509 * asan.h (set_sanitized_sections): Declare new function.
35510 * common.opt (fsanitize-sections): New option.
35511 * doc/invoke.texi (-fsanitize-sections): Document new option.
35512 * opts-global.c (handle_common_deferred_options): Handle new
35513 option.
35514
35515 2015-04-17 Jakub Jelinek <jakub@redhat.com>
35516
35517 PR debug/65771
35518 * dwarf2out.c (loc_list_from_tree): Return NULL
35519 for DEBUG_EXPR_DECL.
35520
35521 2015-04-17 Christian Bruel <christian.bruel@st.com>
35522
35523 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
35524 same attributes.
35525
35526 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
35527
35528 * ira-color.c (setup_left_conflict_sizes_p): Do not process
35529 node itself when computing left conflict subnode size.
35530
35531 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
35532
35533 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
35534 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
35535 *fop_<mode>_1_sse using enabled attribute. Use
35536 register_mixssei387nonimm_operand operand 1 predicate. Change
35537 alternative 3 constraints from "x" to "v".
35538
35539 2015-04-16 Richard Biener <rguenther@suse.de>
35540
35541 PR tree-optimization/65774
35542 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
35543 bit-value tracking on.
35544
35545 2015-04-16 Richard Biener <rguenther@suse.de>
35546
35547 PR tree-optimization/64277
35548 * tree-vrp.c (check_array_ref): Fix anti-range handling,
35549 simplify upper bound handling.
35550 (search_for_addr_array): Simplify.
35551 (check_array_bounds): Handle ADDR_EXPRs here.
35552 (check_all_array_refs): Simplify.
35553
35554 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
35555
35556 * config/i386/i386.c (print_reg): Rewrite function.
35557
35558 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35559
35560 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
35561 Invert the condition.
35562
35563 2015-04-16 Renlin Li <renlin.li@arm.com>
35564
35565 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
35566 simplifications for UNSIGNED_FLOAT.
35567
35568 2015-04-16 Nick Clifton <nickc@redhat.com>
35569
35570 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
35571 MUL_UNINIT.
35572 (enum rl78_cpu_type): New.
35573 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
35574 (umulhi3_shift_virt): Remove m constraint from operand 1.
35575 (umulqihi3_virt): Likewise.
35576 * config/rl78/rl78.c (rl78_option_override): Add code to process
35577 -mcpu and -mmul options.
35578 (rl78_alloc_physical_registers): Add code to handle divhi and
35579 divsi valloc attributes.
35580 (set_origin): Likewise.
35581 * config/rl78/rl78.h (RL78_MUL_G14): Define.
35582 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
35583 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
35584 __RL78_Gxx__.
35585 (ASM_SPEC): Pass -mcpu on to assembler.
35586 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
35587 (mulqi3_rl78): Likewise.
35588 (mulhi3_g13): Likewise.
35589 (mulhi3): Generate the G13 or G14 versions of the insn directly.
35590 (mulsi3): Likewise.
35591 (mulhi3_g14): Add clobbers of AX and BC.
35592 (mulsi3_g14): Likewise.
35593 (mulsi3_g13): Likewise.
35594 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
35595 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
35596 * config/rl78/rl78.opt (mmul): Initialise value to
35597 RL78_MUL_UNINIT.
35598 (mcpu): New option.
35599 (m13, m14, mrl78): New option aliases.
35600 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
35601 (MULTILIB_DIRNAMES): Add g13 and g14.
35602 * doc/invoke.texi: Document -mcpu and -mmul options.
35603
35604 2015-04-16 Richard Biener <rguenther@suse.de>
35605
35606 * tree-ssa-ccp.c (likely_value): See if we have operands that
35607 are marked as never simulate again and return CONSTANT in this
35608 case.
35609 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
35610 not have any operands that will be simulated again as
35611 not being simulated again.
35612
35613 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
35614
35615 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
35616 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
35617 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
35618 attribute.
35619 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
35620 enabled attribute.
35621 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
35622 *float<SWI48:mode><MODEF:mode>2_sse.
35623 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
35624 enabled attribute.
35625 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
35626 enabled attribute.
35627
35628 2015-04-15 Tom de Vries <tom@codesourcery.com>
35629
35630 PR other/65487
35631 * function.c (push_dummy_function): New function.
35632 (init_dummy_function_start): Use push_dummy_function.
35633 (pop_dummy_function): New function. Factored out of ...
35634 (expand_dummy_function_end): ... here.
35635 * function.h (push_dummy_function, pop_dummy_function): Declare.
35636 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
35637 pop_dummy_function.
35638 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
35639
35640 2015-04-15 Jeff Law <law@redhat.com>
35641
35642 PR tree-optimization/47679
35643 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
35644 need for forward declaration in upcoming changes.
35645 (record_conditions, record_edge_info): Likewise.
35646
35647 PR rtl-optimization/42522
35648 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
35649 SIGN_EXTRACT as a whole object rather than simplifying
35650 its operand.
35651
35652 2015-04-15 Jakub Jelinek <jakub@redhat.com>
35653
35654 PR ipa/65765
35655 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
35656 and GIMPLE_PREDICT use break instead of return true. For
35657 GIMPLE_EH_DISPATCH, compare dispatch region.
35658
35659 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
35660
35661 * doc/extend.texi (__sync Builtins): Simplify some text. Update
35662 details about the implementation. Make clear preference for
35663 __atomic builtins. Reduce possibility of future change.
35664
35665 2015-04-15 Nick Clifton <nickc@redhat.com>
35666
35667 * config/rx/rx.opt (mallow-string-insns): New option.
35668 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
35669 builtin if string instructions are denied.
35670 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
35671 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
35672 appropriate.
35673 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
35674 * config/rx/rx.md (movstr): Enable pattern only if string
35675 instructions are allowed.
35676 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
35677 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
35678 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
35679 (MULTILIB_DIRNAMES): Add no-strings.
35680 * doc/invoke.texi: Document -mno-allow-string-insns.
35681
35682 2015-04-15 Alan Modra <amodra@gmail.com>
35683
35684 PR target/65408
35685 PR target/58744
35686 PR middle-end/36043
35687 * calls.c (load_register_parameters): Don't load past end of
35688 mem unless suitably aligned.
35689
35690 2015-04-15 Nick Clifton <nickc@redhat.com>
35691
35692 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
35693 decrement instruction as being frame related.
35694 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
35695 based addresses.
35696 If zero extending a function address enclose the operation in
35697 %code(...).
35698 (rl78_preferred_reload_class): New function.
35699 (TARGET_PREFERRED_RELOAD_CLASS): Define.
35700 * config/rl78/rl78.md: Remove useless constraints in expanders.
35701 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
35702 (mulhi3_rl78): Likewise.
35703 (mulhi3_g13): Likewise.
35704 (mulsi3_rl78): Likewise.
35705 (es_addr): Move to before the multiply patterns.
35706
35707 2015-04-15 Alan Modra <amodra@gmail.com>
35708
35709 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
35710 and sequence_stack. Add seq.
35711 (seq_stack): Delete.
35712 * function.c (prepare_function_start): Don't access x_last_insn.
35713 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
35714 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
35715 * emit_rtl.c (start_sequence, push_topmost_sequence,
35716 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
35717 sequence accessors.
35718 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
35719 remove_insn): Likewise. Simplify.
35720 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
35721 and pop_topmost_sequence.
35722 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
35723 debug insns.
35724 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
35725
35726 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
35727
35728 PR target/65729
35729 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
35730 the assertiion.
35731
35732 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
35733
35734 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
35735 (LEGACY_INT_REGNO_P): Ditto.
35736 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
35737 (ANY_MASK_REG_P): Remove.
35738 (BND_REG_P): Rename from ANY_BND_REG_P.
35739 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
35740 legacy integer registers. Do not handle MMX_REG_P in a special way.
35741 Merge 64byte and 32byte SSE handling.
35742
35743 2015-04-14 Nick Clifton <nickc@redhat.com>
35744
35745 * expr.c (expand_assignment): Force an address offset computation
35746 into a register before changing its mode.
35747 (expand_expr_real_1): Likewise.
35748
35749 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
35750
35751 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
35752 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
35753 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
35754 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
35755 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
35756 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
35757 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
35758 and __aarch64_vget_lane_any.
35759
35760 2015-04-14 Jakub Jelinek <jakub@redhat.com>
35761
35762 PR rtl-optimization/65761
35763 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
35764 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
35765
35766 2015-04-14 Richard Biener <rguenther@suse.de>
35767
35768 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
35769 (graphite_can_represent_scev): Use POINTER_TYPE_P.
35770
35771 2015-04-14 Richard Biener <rguenther@suse.de>
35772
35773 PR tree-optimization/65758
35774 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
35775 against -1.
35776 (ccp_lattice_meet): Likewise.
35777 (bit_value_unop): Likewise.
35778 (bit_value_binop): Likewise.
35779 (bit_value_assume_aligned): Likewise.
35780
35781 2015-04-14 Christian Bruel <christian.bruel@st.com>
35782
35783 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
35784 function.
35785
35786 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
35787
35788 PR tree-optimization/63387
35789 * match.pd ((x unord x) | (y unord y) -> (x unord y),
35790 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
35791
35792 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
35793
35794 * config/i386/predicates.md (any_QIreg_operand): Rename from
35795 q_regs_operand. Do not process subregs.
35796 (QIreg_operand): Use QI_REGNO_P predicate.
35797 (ext_QIreg_operand): Ditto.
35798 (ext_register_operand): Ditto.
35799 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
35800 (AND splitters): Ditto.
35801 (AND with -65536 splitter): Add SWI48 mode for operand 0.
35802 (AND with -256 splitter): Use any_QIreg_operand predicate and
35803 SWI248 mode for operand 0.
35804 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
35805 mode for operand 0.
35806 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
35807
35808 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
35809
35810 * doc/plugins.texi: Rewrite first introductory paragraph.
35811
35812 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
35813
35814 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
35815 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
35816
35817 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
35818
35819 * ipa-profie.c (ipa_profile): Check number of parameters
35820 and possible polymorphic call targets before
35821 devirtualizing.
35822
35823 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
35824
35825 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
35826 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
35827
35828 2015-04-13 Richard Biener <rguenther@suse.de>
35829
35830 PR tree-optimization/65204
35831 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
35832 takens for bit-CCP.
35833
35834 2015-04-13 Richard Biener <rguenther@suse.de>
35835
35836 PR target/65660
35837 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
35838 and cond_not_taken_branch_cost to 4 and 2.
35839 (bdver2_cost): Likewise.
35840 (bdver3_cost): Likewise.
35841 (bdver4_cost): Likewise.
35842
35843 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
35844
35845 * hash-table.h (hash_table constructor): Add mem stats.
35846 (alloc_entries): Likewise.
35847
35848 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
35849
35850 * ipa-cp.c (ipcp_driver): Relase prev_edge.
35851 * passes.c (execute_one_pass): Only add transform if pass has one.
35852
35853 2015-04-12 Joseph Myers <joseph@codesourcery.com>
35854
35855 * config/i386/i386.c (ix86_option_override_internal): Don't set
35856 -fprefetch-loop-arrays if optimizing for size.
35857
35858 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
35859 Gerald Pfeifer <gerald@pfeifer.com>
35860
35861 * doc/contrib.texi (Contributors): Add Martin Jambor and
35862 Michael Matz.
35863
35864 2015-04-12 Jakub Jelinek <jakub@redhat.com>
35865
35866 * BASE-VER: Set to 6.0.0.
35867
35868 PR tree-optimization/65747
35869 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
35870 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
35871
35872 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
35873
35874 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
35875 sentence. Improve grammar.
35876
35877 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
35878
35879 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
35880
35881 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
35882
35883 PR ipa/65743
35884 * ipa-inline-transform.c (speculation_removed): Remove static var.
35885 (check_speculations): New function.
35886 (clone_inlined_nodes): Do not check spculations.
35887 (inline_call): Call check_speculations.
35888 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
35889 consider non-invariants.
35890
35891 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
35892 Martin Liska <mliska@suse.cz>
35893
35894 PR ipa/65722
35895 * ipa-icf.c (sem_item::compare_cgraph_references): function and
35896 variable can not match.
35897 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
35898 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
35899
35900 2015-04-11 Jakub Jelinek <jakub@redhat.com>
35901
35902 PR tree-optimization/65735
35903 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
35904 Remove visited_phis argument, add visited_bbs, avoid recursing into the
35905 same bb rather than just into the same phi node.
35906 (thread_through_normal_block): Adjust caller.
35907
35908 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
35909
35910 * doc/contrib.texi (Contributors): Add Ira Rosen.
35911
35912 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
35913
35914 * gcov.c (find_source): Fix miswording in error message.
35915 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
35916 (ix86_expand_sse_comi_round): Fix typo in error message.
35917
35918 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
35919
35920 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
35921
35922 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
35923
35924 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
35925
35926 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
35927
35928 PR target/65710
35929 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
35930 Print bad_spills_num and insn_pseudos_num.
35931
35932 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35933
35934 PR target/65694
35935 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
35936 when creating +1 values for SImode.
35937
35938 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
35939
35940 PR target/65729
35941 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
35942 assert.
35943
35944 2015-04-10 Jakub Jelinek <jakub@redhat.com>
35945 Iain Sandoe <iain@codesourcery.com>
35946
35947 PR target/65351
35948 * configure: Regenerate.
35949
35950 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
35951
35952 PR target/65671
35953 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
35954
35955 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
35956
35957 * doc/contrib.texi (Contributors): Add John Marino.
35958
35959 2015-04-09 Jakub Jelinek <jakub@redhat.com>
35960
35961 PR tree-optimization/65709
35962 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
35963 TREE_TYPE (TREE_TYPE (t)).
35964
35965 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
35966
35967 PR target/65710
35968 * lra-int.h (lra_bad_spill_regno_start): New.
35969 * lra.c (lra_bad_spill_regno_start): New.
35970 (lra): Set up lra_bad_spill_regno_start. Set up
35971 lra_constraint_new_regno_start unconditionally.
35972 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
35973 spill preferences.
35974
35975 2015-04-09 Marek Polacek <polacek@redhat.com>
35976 Jakub Jelinek <jakub@redhat.com>
35977
35978 PR middle-end/65554
35979 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
35980 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
35981 of STRIP_NOPS.
35982
35983 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
35984
35985 PR rtl-optimization/65693
35986 * combine.c (is_parallel_of_n_reg_sets): Move outside of
35987 #ifndef HAVE_cc0.
35988
35989 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
35990
35991 PR target/65296
35992 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
35993 device specs file if "device-specs%s" didn't resolve to a path.
35994
35995 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
35996
35997 PR target/65676
35998 * config/i386/i386.c (fixup_modeless_constant): New.
35999 (ix86_expand_args_builtin): Fixup modeless constant operand.
36000 (ix86_expand_round_builtin): Ditto.
36001 (ix86_expand_special_args_builtin): Ditto.
36002 (ix86_expand_builtin): Ditto.
36003
36004 2015-04-09 Jakub Jelinek <jakub@redhat.com>
36005
36006 PR target/65693
36007 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
36008 any pow2 integer in between 2 and 0x80000000U inclusive.
36009
36010 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
36011
36012 PR rtl-optimization/65693
36013 * combine.c (is_parallel_of_n_reg_sets): Change first argument
36014 from an rtx_insn * to an rtx.
36015 (try_combine): Adjust both callers. Use it once more.
36016
36017 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
36018
36019 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
36020 (chkp_make_static_const_bounds): Search existing
36021 symbol by assembler name. Use make_decl_one_only.
36022 (chkp_get_zero_bounds_var): Remove node search which
36023 is now performed in chkp_make_static_const_bounds.
36024 (chkp_get_none_bounds_var): Likewise.
36025
36026 2015-04-08 Michael Witten <mfwitten@gmail.com>
36027
36028 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
36029 to an example.
36030
36031 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
36032
36033 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
36034
36035 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
36036
36037 * doc/extend.texi (__sync Builtins): Fix grammar.
36038
36039 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
36040
36041 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
36042
36043 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
36044
36045 * varasm.c (emit_local): Move definition of align.
36046
36047 2015-04-08 Julian Brown <julian@codesourcery.com>
36048
36049 * config/nvptx/mkoffload.c (process): Support variable mapping.
36050
36051 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
36052
36053 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
36054 alpha_links **.
36055 (alpha_write_one_linkage): Correct typo.
36056
36057 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
36058
36059 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
36060
36061 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
36062
36063 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
36064
36065 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
36066
36067 * tree-chkp.h (chkp_insert_retbnd_call): New.
36068 * tree-chkp.c (chkp_insert_retbnd_call): New.
36069 * ipa-split.c (insert_bndret_call_after): Remove.
36070 (split_function): Use chkp_insert_retbnd_call.
36071 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
36072 bounds for instrumented functions.
36073
36074 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
36075
36076 PR ipa/65540
36077 * calls.c (initialize_argument_information): When producing tail
36078 call also turn SSA_NAMES passed by references to original PARM_DECLs
36079
36080 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
36081
36082 PR target/65648
36083 * lra-remat.c (do_remat): Process input and non-input insn
36084 registers separately.
36085
36086 2015-04-07 Jakub Jelinek <jakub@redhat.com>
36087
36088 PR debug/65678
36089 * valtrack.c (debug_lowpart_subreg): New function.
36090 (dead_debug_insert_temp): Use it.
36091
36092 PR middle-end/65680
36093 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
36094 into signed HOST_WIDE_INT the same as negative bit_offset.
36095
36096 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
36097
36098 * ipa-comdats.c (ipa_comdats): Visit all thunks
36099 to set proper comdat group.
36100
36101 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36102
36103 PR target/65489
36104 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
36105 on constants for NEON VSTRUCT modes.
36106
36107 2015-04-07 Jakub Jelinek <jakub@redhat.com>
36108 Iain Sandoe <iain@codesourcery.com>
36109
36110 PR target/65351
36111 * configure: Regenerate.
36112
36113 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
36114
36115 PR target/65614
36116 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
36117 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
36118 that LFD is used to load double constants instead of LFS. Add
36119 defaults for all costs structures. Add comments for missing
36120 initialization fields.
36121 (size32_cost): Likewise.
36122 (size64_cost): Likewise.
36123 (rs64a_cost): Likewise.
36124 (mpccore_cost): Likewise.
36125 (ppc403_cost): Likewise.
36126 (ppc405_cost): Likewise.
36127 (ppc440_cost): Likewise.
36128 (ppc476_cost): Likewise.
36129 (ppc601_cost): Likewise.
36130 (ppc603_cost): Likewise.
36131 (ppc604_cost): Likewise.
36132 (ppc604e_cost): Likewise.
36133 (ppc620_cost): Likewise.
36134 (ppc630_cost): Likewise.
36135 (ppccell_cost): Likewise.
36136 (ppc750_cost): Likewise.
36137 (ppc7450_cost): Likewise.
36138 (ppc8540_cost): Likewise.
36139 (ppce300c2c3_cost): Likewise.
36140 (ppce500mc_cost): Likewise.
36141 (ppce500mc64_cost): Likewise.
36142 (ppce5500_cost): Likewise.
36143 (ppce6500_cost): Likewise.
36144 (titan_cost): Likewise.
36145 (power4_cost): Likewise.
36146 (power6_cost): Likewise.
36147 (power7_cost): Likewise.
36148 (power8_cost): Likewise.
36149 (ppca2_cost): Likewise.
36150 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
36151
36152 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
36153 instead of XXLOR to copy SFmode to clear out dirty bits created
36154 when SFmode denormals are generated.
36155 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
36156 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
36157
36158 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
36159
36160 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
36161 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
36162 * config/aarch64/aarch64-tune.md: Regenerate.
36163
36164 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
36165
36166 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
36167 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
36168 * config/arm/arm-cores.def (exynos-m1): New core.
36169 * config/arm/arm-tune.md: Regenerate.
36170 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
36171 * config/arm/bpabi.h: Likewise.
36172
36173 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
36174
36175 * ipa-cp (set_single_call_flag): Remove too
36176 restrictive assert.
36177
36178 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
36179
36180 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
36181 GOMP_offload_unregister from the destructor.
36182
36183 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
36184
36185 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
36186 flags for instrumentation thunk.
36187 (chkp_produce_thunks): Likewise.
36188
36189 2015-04-05 Martin Liska <mliska@suse.cz>
36190
36191 PR ipa/65665
36192 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
36193 has computed data structure.
36194 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
36195
36196 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
36197
36198 * invoke.texi (inline-unit-growth): Increase growth to 20%
36199 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
36200
36201 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
36202
36203 PR target/65647
36204 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
36205 value checking.
36206 (lra_rematerialization_iter): New.
36207 * lra.c (lra): Initialize lra_rematerialization_iter.
36208 Stop updating lra_constraint_new_regno_start after switching of
36209 inheritance and rematerialization.
36210 * lra-remat.c (lra_rematerialization_iter): New.
36211 (lra_remat): Add printing pass iteration. Do rematerialization
36212 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
36213
36214 2015-04-04 Richard Biener <rguenther@suse.de>
36215
36216 PR tree-optimization/64909
36217 PR tree-optimization/65660
36218 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
36219 to take a cost vector for scalar iteration cost.
36220 (vect_get_single_scalar_iteration_cost): Likewise.
36221 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
36222 Compute the scalar iteration cost into a cost vector.
36223 (vect_get_known_peeling_cost): Use the scalar cost vector to
36224 account for the cost of the peeled iterations.
36225 (vect_estimate_min_profitable_iters): Likewise.
36226 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
36227 Likewise.
36228
36229 2015-04-04 Alan Modra <amodra@gmail.com>
36230
36231 PR target/65576
36232 PR target/65240
36233 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
36234 0.0 constant unless TARGET_VSX.
36235 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
36236 alternative.
36237
36238 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
36239
36240 PR ipa/65654
36241 * ipa-inline-transform.c (inline_call): Skip sanity check to work
36242 around the ICE
36243
36244 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
36245
36246 PR ipa/65655
36247 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
36248 speculative indirect edges to avoid ordering issue.
36249
36250 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
36251
36252 PR ipa/65076
36253 * ipa-inline.c (edge_badness): Add combined size to the denominator.
36254
36255 2015-04-03 Jakub Jelinek <jakub@redhat.com>
36256
36257 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
36258 TYPE_ARTIFICIAL on the .omp_data* types.
36259
36260 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36261
36262 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
36263 instrumentation thunks.
36264
36265 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36266
36267 * config/i386/i386.c (ix86_expand_call): Avoid nested
36268 PARALLEL in returned call value.
36269
36270 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36271
36272 * lto-cgraph.c (input_cgraph_1): Always link instrumented
36273 assembler name with original one.
36274
36275 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
36276
36277 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
36278
36279 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
36280
36281 Revert parts of r216820.
36282 * config/i386/i386.md (movqi_internal): Correct type calculation
36283 for alternatives 3 and 5.
36284
36285 2015-04-02 Jakub Jelinek <jakub@redhat.com>
36286
36287 PR preprocessor/61977
36288 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
36289 predefine __vector/__bool/__pixel macros nor context sensitive
36290 macros for CLK_ASM.
36291 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
36292
36293 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
36294
36295 * config/pa/pa.c (pa_output_move_double): Directly handle register
36296 indexed memory operand. Simplify handling of scaled register indexed
36297 memory operands.
36298
36299 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36300
36301 PR driver/65444
36302 * config/i386/linux-common.h (MPX_SPEC): New.
36303 (CHKP_SPEC): Add MPX_SPEC.
36304 * doc/invoke.texi (-fcheck-pointer-boudns): Document
36305 possible issues with '-z bndplt' support in linker.
36306
36307 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
36308
36309 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
36310 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
36311 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
36312 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
36313 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
36314
36315 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
36316
36317 * config/i386/sync.md (UNSPEC_MOVA): Remove.
36318 (atomic_load<mode>): Change operand 0 predicate to
36319 nonimmediate_operand and fix up the destination when needed.
36320 Use UNSPEC_LDA.
36321 (atomic_loaddi_fpu): Use UNSPEC_LDA.
36322 (atomic_store<mode>): Change operand 1 predicate to
36323 nonimmendate_operand and move the source to register when needed.
36324 Use UNSPEC_STA.
36325 (atomic_store<mode>_1): Use UNSPEC_STA.
36326 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
36327 Fix moves from memory operand. Use UNSPEC_STA.
36328
36329 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
36330
36331 * expmed.c (strict_volatile_bitfield_p): Check that the access will
36332 not cross a MODESIZE boundary.
36333 (store_bit_field, extract_bit_field): Added assertions in the
36334 strict volatile bitfields code path.
36335
36336 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
36337
36338 PR target/65624
36339 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
36340 Increase args array size by one to avoid buffer overflow.
36341
36342 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
36343
36344 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
36345 split_part.
36346 * ipa-inline.c (edge_badness): Add wrapper penalty.
36347 (sum_callers): Move up.
36348 (inline_small_functions): Set single_caller.
36349 * ipa-inline.h (inline_summary): Add single_caller.
36350 * ipa-split.c (split_function): Set split_part.
36351 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
36352 * cgraph.h (cgraph_node): Add split_part.
36353
36354 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
36355
36356 PR target/58945
36357 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
36358 Do not split operands 0 and operands 2 to halfmode.
36359 (atomic_compare_and_swap<mode>): Update for
36360 atomic_compare_and_swap<dwi>_doubleword changes.
36361
36362 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
36363
36364 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
36365 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
36366 no caching is done.
36367
36368 2015-03-31 Martin Liska <mliska@suse.cz>
36369
36370 PR ipa/65557
36371 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
36372 has already filled up function summary.
36373 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
36374
36375 2015-03-31 Richard Biener <rguenther@suse.de>
36376
36377 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
36378 of types.
36379
36380 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
36381
36382 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
36383 nested functions.
36384 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
36385 (s390_asm_output_function_label): Adapt to new signature of
36386 s390_function_num_hotpatch_hw
36387 Optimise the code generating assembler output.
36388 Add comments to assembler file.
36389
36390 2015-03-31 Richard Biener <rguenther@suse.de>
36391
36392 PR middle-end/65626
36393 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
36394 of the noreturn call so it is last and cleanup_control_flow_bb
36395 can do the CFG part.
36396
36397 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
36398
36399 PR target/65531
36400 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
36401 same_comdat_group for external symbols.
36402 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
36403 infinite same_comdat_group traversal loop.
36404
36405 2015-03-31 Jakub Jelinek <jakub@redhat.com>
36406
36407 PR plugins/61176
36408 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
36409 automatically to $headers.
36410
36411 2015-03-30 Jakub Jelinek <jakub@redhat.com>
36412
36413 PR ipa/65610
36414 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
36415 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
36416 function.
36417 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
36418 Use it.
36419 * ipa-prop.c (param_type_may_change_p): Likewise.
36420 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
36421 (remove_unused_scope_block_p): Add in_ctor_dtor_block
36422 argument. Before inlining, preserve
36423 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
36424 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
36425 recursive calls.
36426 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
36427
36428 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
36429
36430 PR ipa/65076
36431 * ipa-inline.c (edge_badness): Base denominator on callee's
36432 grwoth squared.
36433
36434 2015-03-27 Martin Jambor <mjambor@suse.cz>
36435
36436 PR ipa/65478
36437 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
36438 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
36439 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
36440 node_calling_single_call.
36441 * ipa-cp.c (count_callers): New function.
36442 (set_single_call_flag): Likewise.
36443 (initialize_node_lattices): Count callers and set single_flag_call if
36444 necessary.
36445 (incorporate_penalties): New function.
36446 (good_cloning_opportunity_p): Use it, dump new flags.
36447 (propagate_constants_topo): Set node_within_scc flag if appropriate.
36448 * doc/invoke.texi (ipa-cp-recursion-penalty,
36449 ipa-cp-single-call-pentalty): Document.
36450
36451 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
36452
36453 PR ipa/65588
36454 * symtab.c (symtab_node::get_partitioning_class): Register vars
36455 are duplicated.
36456 * varpool.c (symbol_table::output_variables) Do not assemble unefined
36457 decls for non-symbols.
36458
36459 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
36460
36461 PR target/65248
36462 * output.h (default_binds_local_p_2): New.
36463 * varasm.c (default_binds_local_p_2): Renamed to ...
36464 (default_binds_local_p_3): This. Don't return true on protected
36465 data symbol if protected data may be external.
36466 (default_binds_local_p): Use default_binds_local_p_3.
36467 (default_binds_local_p_1): Likewise.
36468 (default_binds_local_p_2): New.
36469 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
36470 default_binds_local_p_2 if TARGET_MACHO is undefined.
36471
36472 2015-03-27 Jakub Jelinek <jakub@redhat.com>
36473
36474 PR target/65593
36475 * config/i386/i386.c (legitimize_pic_address): If base
36476 is SYMBOL_REF or LABEL_REF using %rip addressing, force
36477 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
36478
36479 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
36480
36481 PR target/65531
36482 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
36483 comdat groups.
36484
36485 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
36486
36487 PR ipa/65600
36488 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
36489 of optimized out indirect call.
36490 (redirect_to_unreachable): Always build symbol table node for
36491 BUILT_IN_UNREACHABLE
36492
36493 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
36494
36495 PR target/65407
36496 * ira-costs.c (record_reg_classes): Process all constraint string
36497 containing 0-9.
36498
36499 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
36500
36501 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
36502 memory_operand.
36503
36504 PR target/65052
36505 * config/c6x/constraints.md (S3): New constraint.
36506 * config/c6x/c6x.md (real_jump): Use it.
36507
36508 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36509
36510 PR middle-end/65595
36511 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
36512 do redirection if the call is not optimized out.
36513
36514 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
36515
36516 PR target/65495
36517 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
36518 (fchkp-check-incomplete-type): Add LTO.
36519 (fchkp-zero-input-bounds-for-main): Likewise.
36520 (fchkp-first-field-has-own-bounds): Likewise.
36521 (fchkp-narrow-bounds): Likewise.
36522 (fchkp-narrow-to-innermost-array): Likewise.
36523 (fchkp-use-static-bounds): Likewise.
36524 (fchkp-use-static-const-bounds): Likewise.
36525 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
36526
36527 2015-03-27 Marek Polacek <polacek@redhat.com>
36528
36529 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
36530
36531 2015-03-27 Marek Polacek <polacek@redhat.com>
36532
36533 PR sanitizer/65583
36534 * ubsan.c (ubsan_create_edge): New function.
36535 (instrument_bool_enum_load): Call it.
36536 (instrument_nonnull_arg): Likewise.
36537 (instrument_nonnull_return): Likewise.
36538 (instrument_object_size): Likewise.
36539
36540 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36541
36542 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
36543 auto_vec.
36544
36545 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36546
36547 PR lto/65536
36548 * lto-streamer.h (class lto_location_cache): New.
36549 (struct data_in): Add location_cache.
36550 (lto_input_location): Update prototype.
36551 (stream_input_location_now): New.
36552 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
36553 pointer to location.
36554 (stream_input_location): Update.
36555 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
36556 (warn_odr): Apply location cache before warning.
36557 (lto_input_location): Update prototype.
36558 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
36559 Use stream_input_location_now.
36560 * lto-streamer-in.c (lto_location_cache::current_cache): New static
36561 variable.
36562 (lto_location_cache::cmp_loc): New function.
36563 (lto_location_cache::apply_location_cache): New function.
36564 (lto_location_cache::accept_location_cache): New function.
36565 (lto_location_cache::revert_location_cache): New function.
36566 (lto_location_cache::input_location): New function.
36567 (lto_input_location): Do location caching.
36568 (stream_input_location_now): New function.
36569 (input_eh_region, input_struct_function_base): Use
36570 stream_input_location_now.
36571 (lto_data_in_create): use new.
36572 (lto_data_in_delete): Use delete.
36573 * tree-streamer-in.c (unpack_ts_block_value_fields,
36574 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
36575 lto_input_ts_exp_tree_pointers): Update for cached location api.
36576
36577 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36578
36579 PR ipa/65076
36580 * passes.def: Add pass_nothrow.
36581 * ipa-pure-const.c: (pass_data_nothrow): New.
36582 (pass_nothrow): New.
36583 (pass_nothrow::execute): New.
36584 (make_pass_nothrow): New.
36585 * tree-pass.h (make_pass_nothrow): Declare.
36586
36587 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36588
36589 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
36590 edge to change by speculation resolution or redirection.
36591 (edge_set_predicate): Likewise.
36592 (inline_summary_t::duplicate): Likewise.
36593 (remap_edge_summaries): Likewise.
36594
36595 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36596
36597 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
36598 New macros.
36599 (can_inline_edge_p): Relax option matching for always inline functions.
36600
36601 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
36602
36603 PR target/65561
36604 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
36605 Check operand 4 and operand 0 for equality.
36606 (avx512f_vextract<shuffletype>32x4_1_maskm):
36607 Check operand 6 and operand 0 for equality.
36608 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
36609 for equality.
36610 (vec_extract_hi_<mode>_maskm): Ditto.
36611
36612 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36613
36614 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
36615 dead calls back to live.
36616 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
36617 cross check to ...
36618 (cgraph_node::verify_node): ... here; verify only callee edges,
36619 not caller.
36620 * cif-code.def (CILK_SPAWN): New code.
36621
36622 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36623
36624 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
36625 (edge_set_predicate): Use it to mark unreachable edges.
36626 (inline_summary_t::duplicate): Remove unnecesary code.
36627 (remap_edge_summaries): Likewise.
36628 (dump_inline_summary): Report contains_cilk_spawn.
36629 (compute_inline_parameters): Compute contains_cilk_spawn.
36630 (inline_read_section, inline_write_summary): Stream
36631 contains_cilk_spawn.
36632 * ipa-inline.c (can_inline_edge_p): Do not touch
36633 DECL_STRUCT_FUNCTION that may not be available;
36634 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
36635 remove check for callee_fun->can_throw_non_call_exceptions and
36636 replace it by optimization attribute check; check for flag_exceptions.
36637 * ipa-inline-transform.c (inline_call): Maintain
36638 DECL_FUNCTION_PERSONALITY
36639 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
36640
36641 2015-03-26 Jakub Jelinek <jakub@redhat.com>
36642
36643 PR tree-optimization/65551
36644 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
36645 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
36646
36647 2015-03-26 Richard Biener <rguenther@suse.de>
36648
36649 PR middle-end/65555
36650 * tree-cfg.c (verify_gimple_call): Do not require a call to
36651 have no LHS if it wasn't recognized as control altering yet.
36652
36653 2015-03-26 Jakub Jelinek <jakub@redhat.com>
36654
36655 PR tree-optimization/64715
36656 * passes.def: Add another instance of pass_object_sizes before ccp1.
36657 * tree-object-size.c (pass_object_sizes::execute): In
36658 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
36659 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
36660 __bos result and the computed constant. Remove redundant
36661 checks, obsoleted by gimple_call_builtin_p test.
36662
36663 * var-tracking.c (variable_tracking_main_1): Don't track
36664 variables for targetm.no_register_allocation targets.
36665
36666 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
36667
36668 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
36669 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
36670
36671 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
36672
36673 PR target/65569
36674 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
36675 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
36676 0.0 is correctly setup.
36677 (extenddftf2_internal): Likewise.
36678
36679 2015-03-25 Sebastian Pop <s.pop@samsung.com>
36680
36681 PR tree-optimization/65177
36682 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
36683 (bb_in_bbs): New.
36684 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
36685 edges not adjacent on the path to the original code.
36686
36687 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
36688
36689 PR bootstrap/65537
36690 * doc/install.texi (Building a native compiler): Document new
36691 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
36692 configuration assumes that the host supports the linker plugin.
36693
36694 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
36695
36696 PR target/65508
36697 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
36698 chain for generated call.
36699
36700 2015-03-25 Richard Biener <rguenther@suse.de>
36701
36702 * passes.c (pass_manager::execute_early_local_passes): Guard
36703 execution of pass_chkp_instrumentation_passes with
36704 flag_check_pointer_bounds.
36705 (pass_chkp_instrumentation_passes::gate): Likewise.
36706
36707 2015-03-25 Martin Liska <mliska@suse.cz>
36708
36709 PR tree-optimization/65538
36710 * symbol-summary.h (function_summary::~function_summary):
36711 Relese memory for allocated summaries.
36712 (function_summary::release): New function.
36713
36714 2015-03-25 Jakub Jelinek <jakub@redhat.com>
36715
36716 PR lto/65515
36717 * lto-streamer-out.c (DFS::worklist): New struct.
36718 (DFS::worklist_vec): New data member.
36719 (DFS::next_dfs_num): Remove.
36720 (DFS::DFS): Rewritten using worklist instead of recursion,
36721 using most of code from DFS::DFS_write_tree.
36722 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
36723 pass it to DFS_write_tree calls.
36724 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
36725 quick initial checks push it into worklist_vec and return.
36726
36727 2015-03-25 Richard Biener <rguenther@suse.de>
36728
36729 PR middle-end/65519
36730 * genmatch.c (expr::gen_transform): Re-write to avoid
36731 using gimple_build.
36732
36733 2015-03-25 Bin Cheng <bin.cheng@arm.com>
36734
36735 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
36736
36737 2015-03-25 Bin Cheng <bin.cheng@arm.com>
36738
36739 * config/arm/arm.opt (print_tune_info): New option.
36740 * config/arm/arm.c (arm_print_tune_info): New function.
36741 (arm_file_start): Call arm_print_tune_info.
36742 * config/arm/arm-protos.h (struct tune_params): Add comment.
36743 * doc/invoke.texi (@item -mprint-tune-info): New item.
36744 (-mtune): mention it in ARM Option Summary.
36745
36746 2015-03-25 DJ Delorie <dj@redhat.com>
36747
36748 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
36749 correct clause.
36750
36751 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
36752 Martin Liska <mliska@suse.cz>
36753
36754 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
36755 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
36756 (sem_item::add_type): New function.
36757 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
36758 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
36759 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
36760 (sem_function::equals_wpa): Fix typo.
36761 * ipa-icf.h (sem_item::add_type): New function.
36762 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
36763 order.
36764
36765 2015-03-24 Jakub Jelinek <jakub@redhat.com>
36766
36767 PR tree-optimization/65533
36768 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
36769 with swapped operands, call vect_free_slp_tree on
36770 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
36771 vector.
36772
36773 2015-03-24 Richard Biener <rguenther@suse.de>
36774
36775 PR middle-end/65517
36776 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
36777 for fixup if necessary.
36778
36779 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
36780
36781 * doc/extend.texi (Function Attributes): Add @cindex entries
36782 for all attributes and regularize their format. Delete text
36783 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
36784 information about "eightbit_data", "tiny_data", and "model"
36785 variable attributes to the Variable Attributes section. Fix
36786 some obvious typos and copy-editing issues.
36787 (Variable Attributes, Type Attributes): Likewise add/fix
36788 @cindex entries for all attributes.
36789
36790 2015-03-23 Jakub Jelinek <jakub@redhat.com>
36791
36792 PR target/65523
36793 * tree-chkp.c (chkp_build_returned_bound): Ignore
36794 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
36795
36796 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
36797
36798 PR target/65505
36799 * config/sh/predicates.md (simple_mem_operand,
36800 displacement_mem_operand): Add test for reg.
36801 (short_displacement_mem_operand): Test for displacement_mem_operand
36802 before invoking sh_disp_addr_displacement.
36803 * config/sh/constraints.md (Sdd, Sra): Simplify.
36804 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
36805 Remove redundant displacement_mem_operand tests.
36806
36807 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
36808
36809 PR target/65296
36810 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
36811 the same -mmcu=MCU more than once.
36812
36813 2015-03-23 Jakub Jelinek <jakub@redhat.com>
36814
36815 PR bootstrap/65522
36816 * ipa-devirt.c: Remove duplicate demangle.h include.
36817
36818 PR target/65504
36819 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
36820 on the pseudo.
36821 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
36822 REG_POINTER on *destptr after adjusting it for prologue size.
36823
36824 PR ipa/65521
36825 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
36826 ultimate_alias_target ()->order ints instead of
36827 ultimate_alias_target () pointers.
36828
36829 2015-03-23 Richard Biener <rguenther@suse.de>
36830
36831 PR tree-optimization/65518
36832 * tree-vect-stmts.c (vectorizable_load): Reject single-element
36833 interleaving cases we generate absymal code for.
36834
36835 2015-03-23 Richard Biener <rguenther@suse.de>
36836
36837 PR tree-optimization/65494
36838 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
36839 matches here.
36840 (vect_analyze_slp_instance): But do that here, always and once.
36841
36842 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36843
36844 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
36845 adding T or multiplying by T+1 and subracting T.
36846
36847 2015-03-22 Jeff Law <law@redhat.com>
36848
36849 PR rtl-optimization/64317
36850 * Makefile.in (OBJS): Add gcse-common.c
36851 * gcse.c: Include gcse-common.h
36852 (struct modify_pair_s): Move structure definition to gcse-common.h
36853 (compute_transp): Move function to gcse-common.c.
36854 (canon_list_insert): Similarly.
36855 (record_last_mem_set_info): Break out some code and put it into
36856 gcse-common.c. Call into the new common code.
36857 (compute_local_properties): Pass additional arguments to compute_transp.
36858 * postreload-gcse.c: Include gcse-common.h and df.h
36859 (modify_mem_list_set, blocks_with_calls): New variables.
36860 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
36861 (get_bb_avail_insn): Pass in the expression index too.
36862 (alloc_mem): Allocate memory for the new bitmaps and lists.
36863 (free_mem): Free memory for the new bitmaps and lists.
36864 (insert_expr_in_table): Record a bitmap index for each entry we
36865 add to the table.
36866 (record_last_mem_set_info): Call into common code in gcse-common.c.
36867 (get_bb_avail_insn): If no available insn was found in the requested
36868 BB. If BB has a single predecessor, see if the expression is
36869 transparent in BB and available in that single predecessor.
36870 (compute_expr_transp): New wrapper for compute_transp.
36871 (eliminate_partially_redundant_load): Pass expression's bitmap_index
36872 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
36873 (gcse_after_reload_main): If there are elements in the hash table,
36874 then compute transparency for all the elements in the hash table.
36875 * gcse-common.h: New file.
36876 * gcse-common.c: New file.
36877
36878 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
36879
36880 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
36881 as an adjective.
36882 (System Headers): Likewise.
36883 (Ifdef): Likewise.
36884 (Traditional macros): Likewise.
36885 (Invocation): Likewise.
36886 (Option Index): Likewise.
36887 * doc/cppopts.texi (-M): Likewise.
36888 (-finput-charset): Likewise.
36889 (--help): Likewise.
36890 * doc.invoke.texi (AVR Options): Likewise.
36891 (V850 Options): Likewise.
36892
36893 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
36894
36895 PR ipa/65475
36896 * ipa-devirt.c: Include demangle.h
36897 (odr_type_d): Add field rtti_broken.
36898 (odr_subtypes_equivalent_p): Do not require name to match.
36899 (compare_virtual_tables): Fix typo; if type already has ODR violation,
36900 bypass the tests; be ready for function referneces in vtables that are
36901 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
36902 (warn_odr): Give up for nameless types.
36903 (warn_types_mismatch): Report mismatch in mangled names;
36904 report mismatch in anonymous namespaces; look into component types to
36905 give useful error; report when mismatch is dragged in from other ODR
36906 type.
36907 (odr_types_equivalent_p): Match types for being polymorphic; avoid
36908 duplicated diagnostics.
36909 (add_type_duplicate): Reorder checks so more informative ones come
36910 first; fix typo; do not output "the extra base is defined here" when
36911 we did not warn.
36912 (BINFO_N_BASE_BINFOS): Relax sanity check.
36913
36914 2015-03-22 Martin Liska <mliska@suse.cz>
36915 Jakub Jelinek <jakub@redhat.com>
36916
36917 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
36918 masks that can potentially include a builtin.
36919 (ix86_add_new_builtins): Introduce fast filter for isa values
36920 that cannot trigger builtin inclusion.
36921
36922 2015-03-22 Martin Liska <mliska@suse.cz>
36923
36924 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
36925 (sem_item::update_hash_by_local_refs): Likewise.
36926 (sem_variable::get_hash): Empty line is fixed.
36927 (sem_item_optimizer::execute): Include adding of hash references.
36928 (sem_item_optimizer::update_hash_by_addr_refs): New function.
36929 (sem_item_optimizer::build_hash_based_classes): Use local hash.
36930 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
36931 (sem_item::update_hash_by_local_refs): Likewise.
36932
36933 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
36934
36935 PR ipa/65502
36936 * ipa-comdats.c (enqueue_references): Walk through thunks.
36937 (ipa_comdats): Likewise.
36938 (set_comdat_group_1): New function.
36939
36940 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
36941
36942 PR ipa/65475
36943 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
36944 non-polymorphic
36945
36946 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
36947 Gerald Pfeifer <gerald@pfeifer.com>
36948
36949 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
36950
36951 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
36952 Sandra Loosemore <sandra@codesourcery.com>
36953
36954 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
36955 function parameter declaration.
36956 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
36957 Update arguments to nios2_adjust_call_address().
36958 (sibcall_internal): Rename from *sibcall.
36959 (sibcall_value_internal): Rename from *sibcall_value.
36960 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
36961 (nios2_large_got_address): Add target temp reg parameter.
36962 (nios2_got_address): Adjust call to nios2_large_got_address, add
36963 force_reg around it.
36964 (nios2_load_pic_address): Add target temp reg parameter, replace call
36965 to nios2_got_address with corresponding code.
36966 (nios2_legitimize_constant_address): Update call to
36967 nios2_load_pic_address.
36968 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
36969 to use temp reg for PIC loading purposes.
36970 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
36971 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
36972 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
36973
36974 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
36975
36976 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
36977 usage of "the @option{...}".
36978 (-Wopenmp-simd): Likewise.
36979 (-fsanitize-recover): Likewise.
36980 (-fsanitize-undefined-trap-on-error): Likewise.
36981 (-flto): Likewise.
36982 (tracer-dynamic-coverage-feedback): Likewise.
36983 (reorder-block-duplicate-feedback): Likewise.
36984 (loop-unroll-jam-size): Likewise.
36985 (-B): Likewise.
36986 (-I-): Likewise.
36987 (-mabs=legacy): Likewise.
36988 (-mupper-regs-df): Likewise.
36989 (-mupper-regs-sf): Likewise.
36990 (-mpointers-to-nested-functions): Likewise.
36991
36992 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
36993
36994 * doc/extend.texi (Cilk Plus Builtins): Add markup.
36995
36996 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
36997
36998 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
36999 additional index entries and cross-references.
37000 (-fchkp-check-incomplete-type): Likewise.
37001 (-fchkp-first-field-has-own-bounds): Likewise.
37002 (-fchkp-narrow-to-innermost-array): Likewise.
37003 (-fchkp-use-fast-string-functions): Likewise.
37004 (-fchkp-use-nochk-string-functions): Likewise.
37005 (-fchkp-use-static-const-bounds): Likewise.
37006 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
37007 (-fchkp-instrument-marked-only): Likewise.
37008 (-fchkp-use-wrappers): Likewise.
37009 (-static-libmpx): Likewise.
37010 (-static-libmpxwrappers): Likewise.
37011 * doc/extend.texi (bnd_legacy): Likewise.
37012 (bnd_instrument): Likewise.
37013 (bnd_variable_size): Likewise.
37014 (Pointer Bounds Checker builtins): Likewise.
37015
37016 2015-03-21 Tom de Vries <tom@codesourcery.com>
37017
37018 PR tree-optimization/65458
37019 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
37020 * cgraph.h (cgraph_node): Add parallelized_function field.
37021 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
37022 (input_overwrite_node): Read parallelized_function field.
37023 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
37024 parallelized_function on cgraph_node for child_fn.
37025 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
37026 Remove include of gt-tree-parloops.h.
37027 (parallelized_functions): Remove static variable.
37028 (parallelized_function_p): Rewrite using parallelized_function field of
37029 cgraph_node.
37030 (create_loop_fn): Remove adding to parallelized_functions.
37031 * Makefile.in (GTFILES): Remove tree-parloops.c
37032
37033 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
37034
37035 PR rtl-optimization/64366
37036 * lra.c (lra_update_insn_regno_info): Consider regs in
37037 CALL_INSN_FUNCTION_USAGE memory.
37038
37039 2015-03-20 Richard Biener <rguenther@suse.de>
37040
37041 PR middle-end/64715
37042 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
37043 for type comparison and gcc_checking_assert.
37044 (chrec_fold_plus_poly_poly): Likewise.
37045 (chrec_fold_multiply_poly_poly): Likewise.
37046 (chrec_convert_1): Likewise.
37047 * gimplify.c (gimplify_expr): Remove premature folding of
37048 &X + CST to &MEM[&X, CST].
37049
37050 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
37051
37052 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
37053 already is final.
37054 (ipa_inline): Recompute inline_failed codes.
37055 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
37056 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
37057 CIF_FINAL_ERROR.
37058
37059 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
37060
37061 PR rtl-optimization/60851
37062 * recog.c (constrain_operands): Accept a pseudo register before reload
37063 for LRA enabled targets.
37064
37065 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
37066
37067 PR target/65240
37068 * config/rs6000/predicates.md (easy_fp_constant): Remove special
37069 -ffast-math handling that kept non-0 constants live in the RTL
37070 until reload. Remove logic testing the number of instructions it
37071 took to create a constant in a GPR that was never used, due to a
37072 test for soft-float earlier.
37073 (memory_fp_constant): Delete, no longer used.
37074
37075 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
37076 alternatives for loading non-0 constants into GPRs for hard
37077 floating point that is no longer needed due to changes in
37078 easy_fp_constant. Add support for loading 0.0 into GPRs.
37079 (mov<mode>_hardfloat32): Likewise.
37080 (mov<mode>_hardfloat64): Likewise.
37081 (mov<mode>_64bit_dm): Likewise.
37082 (movtd_64bit_nodm): Likewise.
37083 (pre-reload move FP constant define_split): Delete define_split,
37084 since it is no longer used.
37085 (extenddftf2_internal): Remove GHF constraints that are not valid
37086 for extenddftf2.
37087
37088 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
37089
37090 PR rtl-optimization/63491
37091 * lra-constraints.c (check_and_process_move): Use src instead of
37092 sreg. Remove some dead code.
37093
37094 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
37095
37096 PR ipa/65380
37097 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
37098 (sem_variable::merge): Likewise.
37099
37100 2015-03-19 Martin Liska <mliska@suse.cz>
37101
37102 PR ipa/65465
37103 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
37104 all fields of cgraph_thunk_info.
37105
37106 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
37107
37108 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
37109 clone instrumented thunks.
37110
37111 2015-03-19 Richard Biener <rguenther@suse.de>
37112
37113 Revert
37114 2015-03-10 Richard Biener <rguenther@suse.de>
37115
37116 PR middle-end/63155
37117 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
37118 * tree-ssa-coalesce.c: Include timevar.h.
37119 (attempt_coalesce): Handle graph being NULL.
37120 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
37121 Split out abnormal coalescing to ...
37122 (perform_abnormal_coalescing): ... this function.
37123 (coalesce_ssa_name): Perform abnormal coalescing without computing
37124 live/conflict.
37125 (verify_ssa_coalescing_worker): New function.
37126 (verify_ssa_coalescing): Likewise.
37127
37128 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
37129 Jakub Jelinek <jakub@redhat.com>
37130
37131 PR sanitizer/65400
37132 * tsan.c (instrument_gimple): Clear tail call flag on
37133 calls.
37134
37135 2015-03-19 Jakub Jelinek <jakub@redhat.com>
37136
37137 PR sanitizer/65400
37138 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
37139 call in the return bb.
37140 (find_split_points): Add RETURN_BB argument, don't call
37141 find_return_bb.
37142 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
37143 if true append TSAN_FUNC_EXIT internal call after the call to
37144 the split off function.
37145 (execute_split_functions): Call find_return_bb here.
37146 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
37147 Adjust find_split_points and split_function calls.
37148
37149 2015-03-18 DJ Delorie <dj@redhat.com>
37150
37151 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
37152 (iorqi3_virt): Likewise.
37153
37154 2015-03-18 Tom de Vries <tom@codesourcery.com>
37155
37156 * tree-parloops.c (parallelize_loops): Make static.
37157 * tree-parloops.h (parallelize_loops): Remove extern declaration.
37158
37159 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
37160
37161 PR middle-end/64491
37162 Revert:
37163 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
37164
37165 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
37166 condition would be removed due to undefined behaviour.
37167
37168 2015-03-18 Martin Liska <mliska@suse.cz>
37169
37170 PR ipa/65432
37171 * cgraph.c (cgraph_node::get_create): Remove unnecessary
37172 xstrdup_for_dump wrapper.
37173 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
37174 sem_item::name.
37175 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
37176 with xstrdup_for_dump.
37177 (sem_variable::equals): Likewise.
37178 (sem_item_optimizer::read_section): Use symtab_node::name instead of
37179 sem_item::name.
37180 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
37181 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
37182 symtab_node::asm_name with xstrdup_for_dump.
37183 (congruence_class::dump): Use symtab_node::name instead of
37184 sem_item::name.
37185 * ipa-icf.h (symtab_node::name): Remove.
37186 (symtab_node::asm_name): Likewise.
37187
37188 2015-03-18 Jakub Jelinek <jakub@redhat.com>
37189
37190 PR tree-optimization/65450
37191 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
37192 function.
37193 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
37194 it instead of duplicate_ssa_name_ptr_info.
37195
37196 PR target/65222
37197 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
37198
37199 2015-03-18 Richard Biener <rguenther@suse.de>
37200
37201 * tree-data-ref.h (struct access_matrix): Remove.
37202 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
37203 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
37204 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
37205 (am_vector_index_for_loop): Likewise.
37206 (struct data_reference): Remove access_matrix member.
37207 (DR_ACCESS_MATRIX): Remove.
37208 (lambda_vector_new): Add comment.
37209 (lambda_matrix_new): Use XOBNEWVEC.
37210
37211 2015-03-18 Richard Biener <rguenther@suse.de>
37212
37213 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
37214 (pass_ch::execute): Cleanup the CFG only if we did sth.
37215 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
37216
37217 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37218
37219 * expmed.c (synth_mult): Use std::swap instead of manually
37220 swapping algorithms.
37221
37222 2015-03-18 Jakub Jelinek <jakub@redhat.com>
37223
37224 PR target/65078
37225 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
37226
37227 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
37228
37229 PR target/65296
37230 * config/avr/avr.opt (-nodevicelib): New option.
37231 * doc/invoke.texi (AVR Options): Document it.
37232 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
37233 libgcc.a, libc.a, libm.a.
37234 * config/avr/specs.h: Same.
37235 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
37236 which don't (directly) depend on the device. Print more help.
37237 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
37238 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
37239 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
37240 case of an error.
37241 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
37242 for specs file name.
37243 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
37244 * config/avr/avr-mcus.def: Adjust initializers and comments.
37245
37246 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
37247
37248 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
37249 DECL_ONE_ONLY to check if decl is one only.
37250 * ipa-split.c (consider_split): Limit splitt of one only functions.
37251
37252 2015-03-16 Jakub Jelinek <jakub@redhat.com>
37253
37254 PR tree-optimization/65427
37255 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
37256 functions.
37257 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
37258
37259 2015-03-16 Marek Polacek <polacek@redhat.com>
37260
37261 * cgraph.h (add_new_static_var): Remove declaration.
37262 * varpool.c (add_new_static_var): Remove function.
37263
37264 2015-03-16 Jakub Jelinek <jakub@redhat.com>
37265
37266 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
37267 instead of vec<tree> * with vec_alloc and release for args.
37268 Adjust all users.
37269
37270 PR middle-end/65431
37271 * omp-low.c (delete_omp_context): Only splay_tree_delete
37272 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
37273 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
37274
37275 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
37276
37277 PR sanitizer/64820
37278 * cfgexpand.c (align_base): New function.
37279 (alloc_stack_frame_space): Call it.
37280 (expand_stack_vars): Align prev_frame to be sure
37281 data->asan_vec elements aligned properly.
37282
37283 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
37284
37285 PR middle-end/65409
37286 * expr.c (store_field): Do not do a direct block copy if the source is
37287 a PARALLEL with BLKmode.
37288
37289 2015-03-16 Tom de Vries <tom@codesourcery.com>
37290
37291 PR middle-end/65414
37292 Revert:
37293 2015-03-12 Tom de Vries <tom@codesourcery.com>
37294
37295 PR rtl-optimization/64895
37296 * lra-lives.c (check_pseudos_live_through_calls): Use
37297 actual_call_used_reg_set instead of call_used_reg_set, if available.
37298
37299 2015-03-16 Alan Modra <amodra@gmail.com>
37300
37301 PR target/63150
37302 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
37303 Modify Z->r bswapdi splitter to use dest in place of scratch.
37304 In r->Z and Z->r bswapdi splitter rename word_high, word_low
37305 to word1, word2 and rearrange logic to suit.
37306 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
37307 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
37308 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
37309 Add one '?' on r->r. Modify Z->r splitter to avoid need for
37310 early clobber.
37311
37312 2015-03-14 Jakub Jelinek <jakub@redhat.com>
37313
37314 PR tree-optimization/65369
37315 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
37316 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
37317 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
37318
37319 PR tree-optimization/65418
37320 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
37321 are casts in the first PLUS_EXPR operand, ensure tbias and
37322 *totallowp are in the inner type.
37323
37324 PR rtl-optimization/65401
37325 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
37326 argument. If true, adjust_address_nv of x with big-endian
37327 correction for the mode widening to GET_MODE (y).
37328 (make_field_assignment): Don't do MEM mode widening here.
37329 Use MEM_P instead of GET_CODE == MEM.
37330
37331 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
37332
37333 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
37334 the external decls.
37335
37336 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37337
37338 PR target/64600
37339 * config/arm/arm.c (arm_gen_constant, AND case): Use
37340 ARM_SIGN_EXTEND when constructing AND mask.
37341
37342 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
37343
37344 * graph.c (print_graph_cfg): Make function names visible and append
37345 parenthesis to it. Also make groups of basic blocks belonging to the
37346 same function visible.
37347
37348 2015-03-12 Richard Biener <rguenther@suse.de>
37349
37350 PR middle-end/44563
37351 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
37352 to avoid quadratic behavior with inline expansion splitting blocks.
37353 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
37354 with the successor if the predecessor will be merged with it.
37355 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
37356 entry block with its successor.
37357
37358 2015-03-13 Richard Biener <rguenther@suse.de>
37359
37360 PR middle-end/44563
37361 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
37362 (cleanup_tree_cfg_1): Do not call it.
37363 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
37364 (fixup_noreturn_call): Mark the stmt as control altering.
37365 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
37366 here.
37367 (pass_data_fixup_cfg): Produce a dump file.
37368 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
37369 (need_noreturn_fixup): New global.
37370 (pass_dominator::execute): Fixup queued noreturn calls.
37371 (optimize_stmt): Queue calls that became noreturn for fixup.
37372 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
37373 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
37374 (el_to_fixup): New global.
37375 (eliminate_dom_walker::before_dom_childre): Queue calls that
37376 became noreturn for fixup.
37377 (eliminate): Fixup queued noreturn calls.
37378 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
37379 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
37380 (substitute_and_fold_dom_walker::before_dom_children): Queue
37381 alls that became noreturn for fixup.
37382 (substitute_and_fold): Fixup queued noreturn calls.
37383
37384 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
37385
37386 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
37387 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
37388 are building; for methods check ODR type of class they belong to if
37389 they may lead to a polymorphic call.
37390 (sem_function::compare_polymorphic_p): Be bit smarter about testing
37391 when function may lead to a polymorphic call.
37392 (sem_function::compare_type_list): Remove.
37393 (sem_variable::equals): Update use of compatible_types_p.
37394 (sem_variable::parse_tree_refs): Remove.
37395 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
37396 cdtor.
37397 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
37398 matching here.
37399 (func_checker::compatible_polymorphic_types_p): Break out from ...
37400 (unc_checker::compatible_types_p): ... here.
37401 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
37402 Declare.
37403 (unc_checker::compatible_types_p): Update.
37404 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
37405 Remove.
37406
37407 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37408
37409 PR rtl-optimization/65235
37410 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
37411 When first element of vec_concat is const_int, calculate its size
37412 using second element.
37413
37414 2015-03-12 Richard Biener <rguenther@suse.de>
37415
37416 PR middle-end/65270
37417 * fold-const.c (operand_equal_p): Fix ordering of resetting
37418 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
37419
37420 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
37421
37422 * config/s390/s390.c (s390_reorg): Move code to output nops after label
37423 to s390_reorg ().
37424 (s390_asm_output_function_label): Likewise.
37425 * config/s390/s390.c (s390_asm_output_function_label):
37426 Fix function label alignment with -mhtopatch.
37427 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
37428 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
37429 ("nop_2_byte"): New define_insn.
37430 ("nop_4_byte"): Likewise.
37431 ("nop_6_byte"): Likewise.
37432 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
37433 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
37434
37435 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
37436
37437 PR target/65103
37438 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
37439 register.
37440
37441 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
37442
37443 PR target/65044
37444 * toplev.c (process_options): Restrict Pointer Bounds Checker
37445 usage with Address Sanitizer.
37446
37447 2015-03-12 Richard Biener <rguenther@suse.de>
37448
37449 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
37450 to split on.
37451 * omp-low.c (expand_omp_taskreg): Split block before removing
37452 the stmt.
37453 (expand_omp_target): Likewise.
37454 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
37455 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
37456 stmt to split_block.
37457
37458 2015-03-12 Tom de Vries <tom@codesourcery.com>
37459
37460 PR rtl-optimization/64895
37461 * lra-lives.c (check_pseudos_live_through_calls): Use
37462 actual_call_used_reg_set instead of call_used_reg_set, if available.
37463
37464 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
37465
37466 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
37467 (cgraph_node::remove): Likewise.
37468 (cgraph_node::get_untransformed_body): Likewise.
37469 * varpool.c (varpool_node::remove): Likewise.
37470 (varpool_node::get_constructor): Add sanity check.
37471
37472 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
37473
37474 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
37475 old GCC versions.
37476 (-fabi-compat-version): Likewise.
37477 (-ffriend-injection): Likewise.
37478 (-Wdeclaration-after-statement): Likewise.
37479 (-fomit-frame-pointer): Likewise.
37480 (-ftree-coalesce-inlined-vars): Likewise.
37481 (-fvisibility=): Likewise.
37482 * doc/extend.texi (Typeof): Likewise.
37483 (Zero Length): Likewise.
37484 (Escaped Newlines): Likewise.
37485 (Compound Literals): Likewise.
37486 (Function Attributes): Likewise.
37487 (Label Attributes): Likewise.
37488 (Type Attributes): Likewise.
37489 (Function Names): Likewise.
37490 (Other Builtins): Likewise.
37491 (Function Specific Option Pragmas): Likewise.
37492 (C++ Interface): Likewise.
37493
37494 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
37495
37496 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
37497
37498 2015-03-11 Marek Polacek <polacek@redhat.com>
37499
37500 PR tree-optimization/65388
37501 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
37502
37503 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
37504
37505 PR target/65296
37506 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
37507 * configure: Regenerate.
37508 * config.in: Regenerate.
37509 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
37510 [-mn-flash]: Document it.
37511 [__AVR_ARCH__]: Document avrtiny.
37512
37513 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
37514 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
37515 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
37516
37517 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
37518
37519 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
37520
37521 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
37522
37523 PR target/65242
37524 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
37525 allow reloads of PLUS in floating point/VSX registers.
37526
37527 2015-03-11 Junmo Park <junmoz.park@samsung.com>
37528
37529 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
37530 crypto_sha256_fast.
37531 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
37532
37533 2015-03-11 Richard Biener <rguenther@suse.de>
37534
37535 PR tree-optimization/65310
37536 * tree-sra.c (build_ref_for_offset): Also preserve larger
37537 alignment.
37538
37539 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
37540
37541 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
37542
37543 2015-03-10 Jakub Jelinek <jakub@redhat.com>
37544
37545 PR target/65368
37546 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
37547 new define_expand.
37548 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
37549
37550 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
37551
37552 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
37553 (sem_function::equals_wpa): ... here.
37554
37555 2015-03-10 Marek Polacek <polacek@redhat.com>
37556 Jakub Jelinek <jakub@redhat.com>
37557
37558 PR sanitizer/65367
37559 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
37560 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
37561 separately.
37562
37563 2015-03-10 Jakub Jelinek <jakub@redhat.com>
37564
37565 PR target/65286
37566 * config/rs6000/t-linux: For powerpc64* target set
37567 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
37568
37569 2015-03-10 Richard Biener <rguenther@suse.de>
37570
37571 PR middle-end/44563
37572 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
37573 for redirect_all_calls.
37574
37575 2015-03-10 Marek Polacek <polacek@redhat.com>
37576
37577 * gdbinit.in (pcfun): Define and document.
37578
37579 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
37580
37581 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
37582 of libgomp-plugin.h.
37583 (find_target_compiler): Support a case when the path to gcc is
37584 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
37585 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
37586 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
37587 libgomp-plugin.h.
37588 (main): Use GCC_INSTALL_NAME as target_driver_name.
37589 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
37590 define.
37591 (mkoffload.o): Remove obsolete include path and defines.
37592 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
37593
37594 2015-03-10 Richard Biener <rguenther@suse.de>
37595
37596 PR middle-end/63155
37597 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
37598 * tree-ssa-coalesce.c: Include timevar.h.
37599 (attempt_coalesce): Handle graph being NULL.
37600 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
37601 Split out abnormal coalescing to ...
37602 (perform_abnormal_coalescing): ... this function.
37603 (coalesce_ssa_name): Perform abnormal coalescing without computing
37604 live/conflict.
37605 (verify_ssa_coalescing_worker): New function.
37606 (verify_ssa_coalescing): Likewise.
37607
37608 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
37609
37610 PR target/65296
37611 * config.gcc (extra_options) [avr]: Remove.
37612 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
37613 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
37614 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
37615
37616 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
37617 (-mmcu=): Add Var and MissingArgError properties.
37618 (-march=): Remove.
37619 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
37620 * config/avr/t-multilib: Regenerate.
37621 * config/avr/specs.h: New file.
37622 * config/avr/driver-avr.c: New file.
37623 * config/avr/genopt.sh: Remove file.
37624 * config/avr/avr-tables.opt: Remove file.
37625 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
37626 * config/avr/avr-c.c: Same.
37627 * avr-arch.h: Same.
37628 (avr_current_device): Remove proto.
37629 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
37630 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
37631 (EXTRA_SPEC_FUNCTIONS): Define.
37632 (avr_devicespecs_file): New specs function proto.
37633 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
37634 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
37635 (avr_current_device): Remove definition and usage.
37636 (avr_set_core_architecture): New static function.
37637 (avr_option_override): Use it.
37638 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
37639 (mcu_name): New static array.
37640 (comparator, avr_archs_str, avr_mcus_str): New static functions.
37641 (avr_inform_devices, avr_inform_core_architectures): New functions.
37642 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
37643 (avrlibc.h) [WITH_AVRLIBC]: Include.
37644 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
37645 (print_mcu): Rewrite from scratch.
37646 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
37647 Forward to avr-specific specs defined in device-specs file.
37648 * config/avr/t-avr (driver-avr.o): New rule.
37649 (avr-devices.o): Depend on avr-arch.h.
37650 (avr-mcus): No more depend on avr-tables.opt.
37651 (avr-tables.opt): Remove rule.
37652 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
37653
37654 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
37655
37656 * c-family/c.opt (fchkp-use-wrappers): New.
37657 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
37658 (chkp_wrap_function): New.
37659 (chkp_build_instrumented_fndecl): Support wrapped
37660 functions.
37661 * doc/invoke.texi (-fcheck-pointer-bounds): New.
37662 (-fchkp-check-incomplete-type): New.
37663 (-fchkp-first-field-has-own-bounds): New.
37664 (-fchkp-narrow-bounds): New.
37665 (-fchkp-narrow-to-innermost-array): New.
37666 (-fchkp-optimize): New.
37667 (-fchkp-use-fast-string-functions): New.
37668 (-fchkp-use-nochk-string-functions): New.
37669 (-fchkp-use-static-bounds): New.
37670 (-fchkp-use-static-const-bounds): New.
37671 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
37672 (-fchkp-check-read): New.
37673 (-fchkp-check-write): New.
37674 (-fchkp-store-bounds): New.
37675 (-fchkp-instrument-calls): New.
37676 (-fchkp-instrument-marked-only): New.
37677 (-fchkp-use-wrappers): New.
37678 (-static-libmpx): New.
37679 (-static-libmpxwrappers): New.
37680
37681 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
37682
37683 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
37684 (CHKP_SPEC): Add wrappers library.
37685 * c-family/c.opt (static-libmpxwrappers): New.
37686
37687 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
37688
37689 * config/i386/linux-common.h (LIBMPX_LIBS): New.
37690 (LIBMPX_SPEC): New.
37691 (CHKP_SPEC): New.
37692 * gcc.c (CHKP_SPEC): New.
37693 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
37694 * c-family/c.opt (static-libmpx): New.
37695
37696 2015-03-10 Richard Biener <rguenther@suse.de>
37697
37698 PR middle-end/44563
37699 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
37700 for compare_type.
37701 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
37702 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
37703 (cgraph_add_edge_to_call_site_hash): Likewise.
37704 (cgraph_node::get_edge): Likewise.
37705 (cgraph_edge::set_call_stmt): Likewise.
37706 (cgraph_edge::remove_caller): Likewise.
37707
37708 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
37709
37710 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
37711 (callee_saved_gpr_regs_size): ... this.
37712 (callee_saved_regs_first_regno): Rename to ...
37713 (callee_saved_first_gpr_regno): ... this.
37714 (callee_saved_regs_last_regno) Rename to ...
37715 (callee_saved_last_gpr_regno): ... this.
37716 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
37717 variables.
37718 (nds32_initial_elimination_offset): Likewise.
37719 (nds32_expand_prologue): Likewise.
37720 (nds32_expand_epilogue): Likewise.
37721 (nds32_expand_prologue_v3push): Likewise.
37722 (nds32_expand_epilogue_v3pop): Likewise.
37723 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
37724 Adjust renamed variables.
37725 (nds32_output_stack_pop): Likewise.
37726
37727 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
37728
37729 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
37730 code in comment.
37731
37732 2015-03-10 Jakub Jelinek <jakub@redhat.com>
37733
37734 PR rtl-optimization/65321
37735 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
37736 than shift mode.
37737 * var-tracking.c (use_narrower_mode): Likewise.
37738
37739 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
37740
37741 PR tree-optimization/65355
37742 * varasm.c (notice_global_symbol): Do not produce RTL.
37743 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
37744 anchor.
37745 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
37746 check for section anchors.
37747
37748 2015-03-10 Alan Modra <amodra@gmail.com>
37749
37750 PR target/65286
37751 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
37752 to be single-arch by default. Set cpu_is_64bit for powerpc64
37753 given --with-cpu=native.
37754 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
37755 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
37756 and powerpc64le.
37757 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
37758 rs6000_isa_flags rather than TARGET_64BIT.
37759
37760 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
37761 Kaz Kojima <kkojima@gcc.gnu.org>
37762
37763 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
37764
37765 2015-03-09 Jakub Jelinek <jakub@redhat.com>
37766
37767 PR lto/65361
37768 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
37769 on a TREE_BINFO, instead use BINFO_TYPE.
37770
37771 2015-03-09 Richard Biener <rguenther@suse.de>
37772
37773 PR middle-end/65270
37774 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
37775 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
37776 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
37777 of that. When comparing dereferences compare alignment.
37778 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
37779
37780 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
37781
37782 * ipa-inline-analysis.c (check_callers): Check
37783 node->can_remove_if_no_direct_calls_and_refs_p.
37784 (growth_likely_positive): Reorganize to call
37785 can_remove_if_no_direct_calls_p later.
37786 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
37787 will_be_removed_from_program_if_no_direct_calls_p): Add
37788 will_inline parameter.
37789 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
37790 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
37791 Handle inliner case correctly.
37792
37793 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
37794
37795 PR tree-optimization/63743
37796 * cfgexpand.c (reorder_operands): Also reorder if only second operand
37797 had its definition forwarded by TER.
37798
37799 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
37800
37801 PR lto/65316
37802 * ipa-utils.h (types_odr_comparable): Add strict argument.
37803 * ipa-devirt.c: Fix whitespace;
37804 (odr_hasher): Remove.
37805 (odr_name_hasher, odr_vtable_hasher): New hashers.
37806 (can_be_name_hashed_p): New predicate.
37807 (hash_type_name): remove.
37808 (hash_odr_name): New.
37809 (odr_name_hasher::hash): new.
37810 (can_be_vtable_hashed_p): New.
37811 (hash_odr_vtable): New.
37812 (odr_vtable_hasher::hash): New.
37813 (types_same_for_odr): Add strict parameter.
37814 (types_odr_comparable): Likewise.
37815 (odr_name_hasher::equal): New.
37816 (odr_vtable_hasher::equal): New.
37817 (odr_name_hasher::remove): New.
37818 (odr_hash_type): Change to hash_table<odr_name_hasher>.
37819 (odr_vtable_hash_type): New.
37820 (odr_vtable_hash): New.
37821 (odr_subtypes_equivalent_p): Do strict comparsion.
37822 (add_type_duplicate): Merge type names; cleanup; avoid type
37823 duplicates.
37824 (register_odr_type): Initialize vtable hash.
37825 (build_type_inheritance_graph): Likewise
37826 (get_odr_type): Reorg to use two hashes.
37827 (dump_possible_polymorphic_call_targets): Move sanity check after debug
37828 output.
37829 (ipa_devirt): Dump type_inheritance_graph.
37830 (types_same_for_odr): Add strict mode.
37831
37832 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
37833
37834 PR ipa/65334
37835 * cgraph.h (symtab_node): Add definition_alignment,
37836 can_increase_alignment_p and increase_alignment.
37837 * symtab.c (symtab_node::can_increase_alignment_p,
37838 increase_alignment_1, symtab_node::increase_alignment,
37839 symtab_node::definition_alignment): New.
37840 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
37841 can_increase_alignment_p.
37842 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
37843 * tree-vect-stmts.c (ensure_base_align): Likewise.
37844 * varasm.c (function_section_1): Use definition_alignment.
37845 (assemble_start_function): Likewise.
37846 (emit_local): likewise.
37847 (build_constant_desc): Likewsie.
37848 (output_constant_def_contents): Likewise.
37849 (place_block_symbol): Likewise.
37850 (output_object_block): Likewise.
37851
37852 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
37853
37854 PR ipa/65316
37855 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
37856 when outputting debug.
37857
37858 2015-03-07 Marek Polacek <polacek@redhat.com>
37859 Martin Uecker <uecker@eecs.berkeley.edu>
37860
37861 PR sanitizer/65280
37862 * doc/invoke.texi: Update description of -fsanitize=bounds.
37863
37864 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
37865
37866 * tree-ssa-phiopt.c (neg_replacement): Remove.
37867 (tree_ssa_phiopt_worker): Remove negate optimization.
37868
37869 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
37870
37871 PR ipa/65302
37872 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
37873
37874 2015-03-06 Richard Biener <rguenther@suse.de>
37875
37876 PR middle-end/64928
37877 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
37878 and liveout_obstack members.
37879 (calculate_live_on_exit): Remove.
37880 (calculate_live_ranges): Change declaration.
37881 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
37882 (new_tree_live_info): Adjust.
37883 (calculate_live_ranges): Delete livein when not wanted.
37884 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
37885 Deal with partly deleted live info.
37886 (loe_visit_block): Remove temporary bitmap by using
37887 bitmap_ior_and_compl_into.
37888 (live_worklist): Adjust accordingly.
37889 (calculate_live_on_exit): Make static.
37890 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
37891 we do not need livein.
37892
37893 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
37894
37895 * real.c (real_from_string): Fix typo in assertion.
37896
37897 2015-03-06 Alex Velenko <alex.velenko@arm.com>
37898
37899 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
37900 the patch.
37901
37902 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
37903
37904 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
37905
37906 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
37907
37908 PR target/64342
37909 * lra-assigns.c (find_hard_regno_for): Rename to
37910 find_hard_regno_for_1. Add a new parameter.
37911 (find_hard_regno_for): New function using find_hard_regno_for_1.
37912
37913 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
37914
37915 PR rtl-optimization/65067
37916 * expmed.c (store_bit_field, extract_bit_field): Reworked the
37917 strict volatile bitfield handling.
37918
37919 2015-03-05 Martin Liska <mliska@suse.cz>
37920
37921 PR ipa/65318
37922 * ipa-icf.c (sem_variable::equals): Compare variables types.
37923
37924 2015-03-05 Richard Henderson <rth@redhat.com>
37925
37926 PR target/65121
37927 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
37928 correctly check weak symbol binding.
37929
37930 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
37931
37932 PR middle-end/65315
37933 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
37934 needed alignment.
37935
37936 2015-03-05 Martin Liska <mliska@suse.cz>
37937
37938 * ipa-inline.c (inline_small_functions): Set default value to
37939 prevent warning during bootstrap.
37940 * tree.h: Add pragma guard that ignores false positives during
37941 bootstrap.
37942
37943 2015-03-05 Richard Biener <rguenther@suse.de>
37944
37945 PR tree-optimization/65310
37946 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
37947 Properly preserve alignment of the base of the access.
37948
37949 2015-03-05 Richard Biener <rguenther@suse.de>
37950
37951 PR ipa/65270
37952 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
37953 Compare dependence info.
37954
37955 2015-03-05 Richard Biener <rguenther@suse.de>
37956
37957 PR middle-end/65233
37958 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
37959 tree-into-ssa.h.
37960 (walk_ssa_copies): Revert last chage. Instead do not walk
37961 SSA names registered for SSA update.
37962
37963 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
37964
37965 PR ipa/65270
37966 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
37967 vtable references for their containing type.
37968 (sem_function::equals_wpa): Compare TYPE_RESTRICT
37969 and type attributes.
37970
37971 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
37972
37973 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
37974 before negating it.
37975 * stor-layout.c (finalize_record_size): Revert latest change.
37976
37977 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
37978
37979 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
37980
37981 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
37982
37983 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
37984 for correct comdat handling.
37985 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
37986 Likewise.
37987 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
37988 (used_from_object_file_p_worker): Remove.
37989 (cgraph_node::only_called_directly_or_alised): Add
37990 used_from_object_file_p.
37991 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
37992 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
37993 can_remove_if_no_direct_calls_and_refs_p.
37994
37995 2015-03-04 Nick Clifton <nickc@redhat.com>
37996
37997 * config/rl78/rl78.h (enum reg_class): Remove real registers from
37998 General register class.
37999 * config/rl78/rl78-real.md: Replace general register constraints
38000 with real+virtual register constraints.
38001
38002 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
38003
38004 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
38005 from checking for -mhtm option.
38006
38007 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
38008
38009 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
38010 (struct ipa_sra_check_caller_data): Add has_thunk field.
38011 (ipa_sra_check_caller): Check for thunk.
38012 (ipa_sra_preliminary_function_checks): Give up on function with
38013 thunks.
38014 (ipa_early_sra): Use call_for_symbol_and_aliases.
38015
38016 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
38017
38018 PR target/65249
38019 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
38020 called for __stack_chk_guard symbol.
38021
38022 2015-03-03 DJ Delorie <dj@redhat.com>
38023
38024 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
38025 inc/dec.
38026 (*addhi3_real): Likewise.
38027 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
38028 pattern to match incrementing memory.
38029 * config/rl78/predicates.md (rl78_1_2_operand): New.
38030 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
38031 it's the same and only mem.
38032 (rl78_alloc_physical_registers_op2): If there's effectively only
38033 one MEM, transcode it into HL.
38034 (rl78_far_p): Reject addresses that aren't legitimate.
38035
38036 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
38037
38038 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
38039 negating it.
38040
38041 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
38042
38043 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
38044
38045 Implement call0 ABI for xtensa
38046 * config/xtensa/constraints.md ("a" constraint): Include stack
38047 pointer in case of call0 ABI.
38048 ("q" constraint): Make empty in case of call0 ABI.
38049 ("D" constraint): Include stack pointer in case of call0 ABI.
38050 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
38051 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
38052 prototypes.
38053 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
38054 variable.
38055 (xtensa_regno_to_class): Make it a local variable in the
38056 function xtensa_regno_to_class.
38057 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
38058 macro, function prototype and implementation.
38059 (reg_nonleaf_alloc_order): Make it a local variable in the
38060 function order_regs_for_local_alloc.
38061 (xtensa_conditional_register_usage): New function.
38062 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
38063 (xtensa_valid_move): Allow direct moves to stack pointer
38064 register in call0 ABI.
38065 (xtensa_setup_frame_addresses): Only spill register windows in
38066 windowed ABI.
38067 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
38068 call0 ABI respectively.
38069 (xtensa_function_arg_1): Only mark a7 register for copying in
38070 windowed ABI.
38071 (xtensa_call_save_reg): New function.
38072 (compute_frame_size): Add space for callee saved register
38073 storage to the frame size in call0 ABI.
38074 (xtensa_expand_prologue): Generate code to set up stack frame
38075 and save callee-saved registers in call0 ABI.
38076 (xtensa_expand_epilogue): New function.
38077 (xtensa_set_return_address): New function.
38078 (xtensa_return_addr): Calculate return address in call0 ABI.
38079 (xtensa_builtin_saveregs): Only mark a7 register for copying and
38080 emit copying code in windowed ABI.
38081 (order_regs_for_local_alloc): Add preferred register allocation
38082 order for non-leaf function in call0 ABI.
38083 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
38084 (xtensa_asm_trampoline_template): Add trampoline generation for
38085 call0 ABI.
38086 (xtensa_trampoline_init): Add trampoline initialization for
38087 call0 ABI.
38088 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
38089 functions.
38090 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
38091 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
38092 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
38093 ABI call-used registers.
38094 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
38095 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
38096 call0 ABI.
38097 (REG_CLASS_CONTENTS): Include all registers into the preferred
38098 reload registers set, adjust the set in the
38099 xtensa_conditional_register_usage.
38100 (xtensa_regno_to_class): Drop variable declaration.
38101 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
38102 function.
38103 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
38104 respectively.
38105 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
38106 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
38107 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
38108 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
38109 location in call0 ABI.
38110 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
38111 stack adjustment size when handling exception.
38112 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
38113 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
38114 definitions.
38115 ("return" pattern): Generate ret.n/ret in call0 ABI.
38116 ("epilogue" pattern): Expand epilogue.
38117 ("nonlocal_goto" pattern): Use default in call0 ABI.
38118 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
38119 emit eh_set_a0_* depending on ABI.
38120 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
38121 ("eh_set_a0_call0", "blockage"): New patterns.
38122
38123 2015-03-03 Martin Liska <mliska@suse.cz>
38124
38125 PR ipa/65287
38126 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
38127
38128 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
38129
38130 PR 65138/target
38131 * config/rs6000/rs6000-tables.opt: Regenerate table.
38132
38133 2015-03-03 Renlin Li <renlin.li@arm.com>
38134
38135 * doc/md.texi (@item ^): Change ? into ^.
38136
38137 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
38138
38139 * doc/tm.texi: Regenerated.
38140
38141 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
38142
38143 * builtins.c (expand_builtin_return_addr): Add
38144 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
38145 surrounding #ifdef.
38146 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
38147 definition to 1.
38148 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
38149 Likewise.
38150 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
38151 undefined.
38152 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
38153 paragraph.
38154
38155 2015-03-03 Martin Jambor <mjambor@suse.cz>
38156 Eric Botcazou <ebotcazou@adacore.com>
38157
38158 * tree-sra.c (ipa_sra_check_caller_data): New type.
38159 (has_caller_p): Removed.
38160 (ipa_sra_check_caller): New function.
38161 (ipa_sra_preliminary_function_checks): Use it.
38162
38163 2015-03-03 Martin Liska <mliska@suse.cz>
38164
38165 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
38166 instead of if branch.
38167
38168 2015-03-03 Martin Liska <mliska@suse.cz>
38169
38170 PR ipa/65282
38171 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
38172
38173 2015-03-23 Jeff Law <law@redhat.com>
38174
38175 PR tree-optimization/65241
38176 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
38177 hash table if INSERT is true.
38178
38179 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
38180
38181 PR target/65296
38182 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
38183
38184 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
38185
38186 PR target/64331
38187 * config/avr/avr.c (context.h, tree-pass.h): Include them.
38188 (avr_pass_data_recompute_notes): New static variable.
38189 (avr_pass_recompute_notes): New class.
38190 (avr_register_passes): New static function.
38191 (avr_option_override): Call it.
38192
38193 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
38194
38195 Fix various problems with specs file generation.
38196
38197 PR target/65296
38198 * config.gcc (extra_gcc_objs) [avr]: Remove.
38199 * config/avr/driver-avr.c: Remove file.
38200 * config/avr/t-avr (driver-avr.o): Remove rule.
38201 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
38202 INCLUDES to build. Depend on TM_H.
38203 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
38204 build warnings. Fix non-matching types and non-existing %-codes.
38205 (tm.h): Include.
38206 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
38207 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
38208 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
38209 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
38210 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
38211 (LIBGCC_SPEC): Remove definitions.
38212
38213 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
38214
38215 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
38216 to create a register in testing mode.
38217
38218 2015-03-03 Martin Liska <mliska@suse.cz>
38219 Jan Hubicka <hubicka@ucw.cz>
38220
38221 PR ipa/65263
38222 * cgraph.c (cgraph_node::has_thunk_p): New function.
38223 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
38224 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
38225 (sem_function::merge): Assert is changed.
38226
38227 2015-03-03 Martin Liska <mliska@suse.cz>
38228 Martin Jambor <mjambor@suse.cz>
38229
38230 PR ipa/65087
38231 * ipa-icf.c (sem_item_optimizer::execute): Change function
38232 return value to boolean.
38233 (sem_item_optimizer::merge_classes): Likewise.
38234 (ipa_icf_driver): Return TODO_remove_functions in case there's
38235 a merge operation processed.
38236 * ipa-icf.h: Change function return value to boolean.
38237
38238 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
38239
38240 PR 65138/target
38241 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
38242 processor type for 64-bit little endian PowerPC.
38243
38244 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
38245 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
38246 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
38247 printing built-in mask so it does not pass NULL pointers.
38248
38249 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
38250 -mcpu=powerpc64le.
38251
38252 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
38253
38254 PR target/58158
38255 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
38256 !ISA_HAS_FP_CONDMOVE.
38257
38258 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
38259
38260 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
38261 reload_completed.
38262
38263 2015-03-02 Ulrich Drepper <drepper@gmail.com>
38264
38265 * doc/invoke.texi (Options for Code Generation Conventions):
38266 Fix URL of DSO paper.
38267
38268 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
38269
38270 PR ipa/65130
38271 * ipa-inline.c (check_callers): Looks for recursion.
38272 (inline_to_all_callers): Give up on uninlinable or recursive edges.
38273 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
38274 summary of inline clones.
38275 (do_estimate_growth_1): Fix recursion check.
38276
38277 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
38278
38279 PR ipa/64988
38280 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
38281 comdat groups.
38282
38283 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
38284 Aldy Hernandez <aldyh@redhat.com>
38285
38286 PR lto/65276
38287 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
38288 when checking TYPE_BINFO.
38289
38290 2015-03-02 Richard Biener <rguenther@suse.de>
38291
38292 PR ipa/65270
38293 * ipa-icf-gimple.c: Include builtins.h.
38294 (func_checker::compare_memory_operand): Compare base alignment.
38295
38296 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
38297
38298 PR target/65184
38299 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
38300 passed by reference.
38301
38302 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
38303
38304 PR target/65183
38305 * tree-chkp.c (chkp_check_lower): Don't check against
38306 zero bounds for already instrumented functions.
38307 (chkp_check_upper): Likewise.
38308 (chkp_fini): Clean pass local data to avoid wrong reusage.
38309
38310 2015-02-28 Martin Liska <mliska@suse.cz>
38311 Jan Hubicka <hubicka@ucw.cz>
38312
38313 * ipa-icf.c (sem_variable::equals): Improve debug output;
38314 get variable constructor.
38315 (sem_variable::parse): Do not filter out too early; give up on
38316 volatile and register vars.
38317 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
38318 variables.
38319 * ipa-icf.h (sem_variable::init): Do not set ctor.
38320 (sem_variable::ctor): Remove.
38321
38322 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
38323
38324 PR middle-end/65233
38325 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
38326
38327 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38328
38329 * ipa-icf.c: Include stor-layout.h
38330 (sem_function::compare_cgraph_references): Rename to ...
38331 (sem_item::compare_cgraph_references): ... this one.
38332 (sem_variable::equals_wpa): New function
38333 (sem_variable::equals): Do not check stuff already verified by
38334 equals_wpa.
38335 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
38336 * ipa-icf.h (sem_item): Add compare_cgraph_references.
38337 (sem_function): Remove compare_cgraph_references.
38338 (sem_variable): Turns equals_wpa into non-inline.
38339
38340 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38341
38342 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
38343 (sem_item::add_expr): New function.
38344 (sem_function::hash_stmt): Handle operands of most statements.
38345 (sem_variable::get_hash): Hash the actual constructor.
38346 * ipa-icf.h (sem_item): Add add_expr.
38347 (sem_function): Update prototype of hash_stmt
38348
38349 2015-02-28 Martin Liska <mliska@suse.cz>
38350 Jan Hubicka <hubicka@ucw.cz>
38351
38352 PR ipa/65245
38353 * ipa-icf-gimple.c (func_checker::compare_function_decl):
38354 Remove.
38355 (func_checker::compare_variable_decl): Skip symtab vars.
38356 (func_checker::compare_cst_or_decl): Update.
38357 * ipa-icf.c (sem_function::parse): Do not consider aliases.
38358 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
38359 use correct symtab predicates.
38360 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
38361 (sem_variable::parse): Update comment.
38362 (sem_item_optimizer::build_graph): Consider ultimate aliases
38363 for references.
38364
38365 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38366
38367 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
38368 of OBJ_TYPE_REF.
38369
38370 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38371
38372 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
38373 (sem_variable::merge) Likewise.
38374
38375 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38376
38377 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
38378 target; also match flag_ipa_devirt.
38379
38380 2015-03-01 Martin Liska <mliska@suse.cz>
38381 Jan Hubicka <hubicka@ucw.cz>
38382
38383 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
38384 Validate variable alignment.
38385 * ipa-icf.c (sem_function::equals_private): Be more precise
38386 about non-common function attributes.
38387 (sem_variable::equals): Likewise.
38388
38389 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38390
38391 PR ipa/65237
38392 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
38393 across COMDAT group boundary.
38394
38395 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38396
38397 PR ipa/65232
38398 * ipa-icf.c (clear_decl_rtl): New function.
38399 (sem_function::merge): Clear RTL before forming alias.
38400 (sem_variable::merge): Clear RTL before forming alias.
38401
38402 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38403
38404 PR ipa/65236
38405 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
38406
38407 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
38408
38409 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
38410 to neon_to_gp<q>.
38411
38412 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
38413
38414 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
38415 a typo in the description.
38416
38417 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
38418
38419 PR target/64317
38420 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
38421 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
38422 * lra-constraints.c: Include "params.h".
38423 (EBB_PROBABILITY_CUTOFF): Use
38424 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
38425 (lra_inheritance): Use '<' instead of '<=' for
38426 EBB_PROBABILITY_CUTOFF.
38427 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
38428 Document change.
38429
38430 2015-02-27 Martin Liska <mliska@suse.cz>
38431
38432 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
38433 vector length condition.
38434
38435 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
38436
38437 * doc/extend.texi (x86 transactional memory intrinsics):
38438 Reorganize discussion of _xbegin. Clarify that the return
38439 value is a bit mask. Expand example and move to end of section.
38440
38441 2015-02-26 Jakub Jelinek <jakub@redhat.com>
38442 Aldy Hernandez <aldyh@redhat.com>
38443
38444 PR rtl-optimization/65220
38445 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
38446
38447 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
38448
38449 PR target/65032
38450 * lra-remat.c (update_scratch_ops): New.
38451 (do_remat): Call it.
38452 * lra.c (lra_register_new_scratch_op): New. Take code from ...
38453 (remove_scratches): ... here.
38454 * lra-int.h (lra_register_new_scratch_op): New prototype.
38455
38456 2015-02-27 Marek Polacek <polacek@redhat.com>
38457
38458 PR c/65040
38459 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
38460 -Wformat-signedness anymore.
38461
38462 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38463
38464 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
38465 function.
38466 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
38467
38468 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38469
38470 * config/s390/s390.c (enum s390_builtin):
38471 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
38472 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
38473 (s390_init_builtins): Generate new builtin functions.
38474 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
38475 (s390_sfpc, s390_efpc): New pattern definitions.
38476
38477 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38478
38479 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
38480 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
38481 (s390_builtin_decls): New array.
38482 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
38483 (s390_builtin_decl): New function.
38484 (TARGET_BUILTIN_DECL): Define macro.
38485
38486 2015-02-27 Richard Biener <rguenther@suse.de>
38487
38488 PR middle-end/63175
38489 * builtins.c (get_object_alignment_2): Make sure to re-apply
38490 the ANDed mask after recursing to its operand gets us a new
38491 misalignment bit position.
38492
38493 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
38494 Martin Liska <mliska@suse.cz>
38495
38496 PR bootstrap/65150
38497 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
38498 Use address_matters_p.
38499 (redirect_all_callers, set_addressable): New functions.
38500 (sem_function::merge): Reorganize and fix merging issues.
38501 (sem_variable::merge): Likewise.
38502 (sem_variable::compare_sections): Remove.
38503 * common.opt (fmerge-all-constants, fmerge-constants): Remove
38504 Optimization flag.
38505 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
38506 redirect them.
38507 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
38508 decl is used.
38509 (address_matters_1): New function.
38510 (symtab_node::address_matters_p): New function.
38511 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
38512 check for merged flag.
38513 * cgraph.h (address_matters_p): Declare.
38514 (symtab_node::address_taken_from_non_vtable_p): Remove.
38515 (symtab_node::address_can_be_compared_p): New method.
38516 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
38517 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
38518 Remove.
38519 (comdat_can_be_unshared_p_1) Use address_matters_p.
38520 (update_vtable_references): Fix formating.
38521 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
38522 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
38523 * cgraphclones.c: Preserve merged and icf_merged flags.
38524
38525 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
38526
38527 * doc/extend.texi (Function Attributes): Fix spelling and typos.
38528 (Label Attributes): Likewise.
38529 (Cilk Plus Builtins): Likewise.
38530 (ARC SIMD Built-in Functions): Likewise.
38531 (ARM C Language Extensions (ACLE)): Likewise.
38532 (PowerPC Built-in Functions): Likewise.
38533 (PowerPC Hardware Transactional Memory Built-in Functions):
38534 Likewise.
38535
38536 2015-02-26 Jakub Jelinek <jakub@redhat.com>
38537
38538 PR tree-optimization/65216
38539 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
38540 new stmt and new SSA_NAME for lhs whenever the arguments have
38541 changed and weren't just swapped. Fix comment typo.
38542
38543 PR tree-optimization/65215
38544 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
38545 for PDP endian targets.
38546 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
38547 Fix up formatting issues.
38548 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
38549 size is smaller than the original, adjust MEM_REF offset by the
38550 difference of sizes. Use is_gimple_mem_ref_addr instead of
38551 is_gimple_min_invariant test to avoid adding address temporaries.
38552
38553 2015-02-26 Martin Liska <mliska@suse.cz>
38554 Jan Hubicka <hubicka@ucw.cz>
38555
38556 PR ipa/64693
38557 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
38558 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
38559 (sem_item_optimizer::process_cong_reduction): Include division by
38560 sensitive references.
38561 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
38562 * ipa-ref.c (ipa_ref::address_matters_p): New function.
38563 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
38564
38565 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
38566
38567 PR target/65192
38568 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
38569 Remove.
38570 * config/avr/avr.c: Same.
38571 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
38572 Refuse any constant address not in 0..0xbf.
38573 * config/avr/avr.md (*mov<mode>, *movsf): Remove
38574 tiny_valid_direct_memory_access_range from insn conditions.
38575 (mov<mode>): Don't special-case expansion of avrtiny addresses.
38576
38577 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
38578
38579 PR target/61142
38580 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
38581 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
38582 * config/sh/predicates.md (const_logical_operand): New predicate.
38583 * config/sh/sh.md: Add new peephole2 patterns.
38584
38585 2015-02-26 Marek Polacek <polacek@redhat.com>
38586
38587 PR ipa/65008
38588 * ipa-inline.c (early_inliner): Recompute inline parameters.
38589
38590 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
38591
38592 PR target/65171
38593 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
38594 instructions with TImode operands are included in the analysis.
38595
38596 2015-02-26 Sebastian Pop <s.pop@samsung.com>
38597
38598 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
38599 of an EDGE_FSM_THREAD.
38600
38601 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
38602
38603 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
38604
38605 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
38606
38607 PR debug/46102
38608 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
38609
38610 2015-02-26 Sebastian Pop <s.pop@samsung.com>
38611
38612 PR tree-optimization/65048
38613 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
38614 (thread_through_all_blocks): Call valid_jump_thread_path.
38615 Remove invalid FSM jump-thread paths.
38616
38617 2015-02-26 Jakub Jelinek <jakub@redhat.com>
38618
38619 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
38620 (ipa_write_optimization_summaries): Likewise.
38621 * tree-streamer.h: Include data-streamer.h.
38622 (streamer_mode_table): Declare extern variable.
38623 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
38624 * lto-streamer-out.c (lto_output_init_mode_table,
38625 lto_write_mode_table): New functions.
38626 (produce_asm_for_decls): Call lto_write_mode_table when streaming
38627 offloading LTO.
38628 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
38629 (lto_create_simple_input_block): Add mode_table argument to the
38630 lto_input_block constructors.
38631 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
38632 Likewise.
38633 * data-streamer-in.c (string_for_index): Likewise.
38634 * ipa-inline-analysis.c (inline_read_section): Likewise.
38635 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
38636 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
38637 * lto-streamer-in.c (lto_read_body_or_constructor,
38638 lto_input_toplevel_asms): Likewise.
38639 (lto_input_mode_table): New function.
38640 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
38641 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
38642 Use bp_pack_machine_mode.
38643 * real.h (struct real_format): Add name field.
38644 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
38645 (class lto_input_block): Add mode_table member.
38646 (lto_input_block::lto_input_block): Add mode_table_ argument,
38647 initialize mode_table.
38648 (struct lto_file_decl_data): Add mode_table field.
38649 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
38650 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
38651 unpack_ts_decl_common_value_fields,
38652 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
38653 * tree-streamer.c (streamer_mode_table): New variable.
38654 * real.c (ieee_single_format, mips_single_format,
38655 motorola_single_format, spu_single_format, ieee_double_format,
38656 mips_double_format, motorola_double_format,
38657 ieee_extended_motorola_format, ieee_extended_intel_96_format,
38658 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
38659 ibm_extended_format, mips_extended_format, ieee_quad_format,
38660 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
38661 decimal_single_format, decimal_double_format, decimal_quad_format,
38662 ieee_half_format, arm_half_format, real_internal_format): Add name
38663 field.
38664 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
38665
38666 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
38667
38668 PR target/65161
38669 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
38670 reordering for selective scheduling.
38671
38672 2015-02-26 Terry Guo <terry.guo@arm.com>
38673
38674 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
38675 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
38676 (arm_arch_no_volatile_ce): Declare new global variable.
38677 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
38678 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
38679 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
38680 (TARGET_NO_VOLATILE_CE): New macro.
38681 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
38682 volatile memory access in IT block
38683
38684 2015-02-25 Kai Tietz <ktietz@redhat.com>
38685
38686 PR tree-optimization/61917
38687 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
38688 that reduc_def_stmt is null.
38689
38690 2015-02-25 Martin Liska <mliska@suse.cz>
38691
38692 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
38693 hard register variables.
38694
38695 2015-02-25 Kai Tietz <ktietz@redhat.com>
38696
38697 PR target/64212
38698 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
38699 (symtab::noninterposable_alias): Likewise.
38700
38701 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
38702
38703 PR target/65167
38704 * config/i386/i386.c (ix86_function_arg_regno_p): Support
38705 bounds registers.
38706 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
38707
38708 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
38709
38710 PR target/64997
38711 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
38712 as split condition; force split via '#' in output pattern.
38713
38714 2015-02-25 Richard Biener <rguenther@suse.de>
38715 Kai Tietz <ktietz@redhat.com>
38716
38717 PR tree-optimization/61917
38718 * tree-vect-loop.c (vectorizable_reduction): Allow
38719 vect_internal_def without reduction to exit graceful.
38720
38721 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
38722
38723 PR target/65196
38724 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
38725 only with NONDEBUG_INSN_P.
38726
38727 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
38728
38729 Use variadic macros with avr-log.c.
38730
38731 * config/avr/avr-protos.h (avr_vdump): New prototype.
38732 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
38733 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
38734 * config/avr/avr-log.c: Adjust comments.
38735 (avr_vdump): New function.
38736 (avr_vadump): Pass caller as 2nd argument instead of format string.
38737 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
38738 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
38739
38740 2015-02-25 Jakub Jelinek <jakub@redhat.com>
38741
38742 PR lto/64374
38743 * target.def (target_option_stream_in): New target hook.
38744 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
38745 targetm.target_option.post_stream_in if non-NULL.
38746 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
38747 * doc/tm.texi: Updated.
38748 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
38749 function.
38750 (TARGET_OPTION_POST_STREAM_IN): Redefine.
38751
38752 2015-02-24 Jeff Law <law@redhat.com>
38753
38754 PR target/65117
38755 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
38756 of operand 0 and operand 2.
38757 (zero_cost_loop_end, loop_end): Similarly.
38758
38759 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
38760
38761 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
38762 CXX_MEM_STAT_INFO.
38763
38764 2015-02-24 DJ Delorie <dj@redhat.com>
38765
38766 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
38767 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
38768 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
38769 instead of hardcoding SImode.
38770
38771 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
38772
38773 * omp-low.c (create_omp_child_function): Tag entrypoint
38774 functions with a special attribute.
38775
38776 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
38777
38778 PR target/65058
38779 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
38780
38781 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
38782
38783 PR rtl-optimization/65123
38784 * lra-remat.c (operand_to_remat): Check hard regs in insn
38785 definition too.
38786
38787 2015-02-24 Nick Clifton <nickc@redhat.com>
38788
38789 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
38790 to the assembler.
38791
38792 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
38793
38794 PR libgomp/64625
38795 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
38796 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
38797 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
38798 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
38799 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
38800 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
38801 (BUILT_IN_GOACC_PARALLEL): Specify as
38802 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
38803 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
38804 * builtin-types.def
38805 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38806 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38807 Remove function types.
38808 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
38809 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38810 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38811 New function types.
38812
38813 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
38814
38815 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
38816
38817 2015-02-24 Jakub Jelinek <jakub@redhat.com>
38818
38819 PR tree-optimization/65170
38820 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
38821 if val[1] < 0, clear also val[2] and return 3.
38822
38823 2015-02-24 Alan Modra <amodra@gmail.com>
38824
38825 PR target/65172
38826 * config/rs6000/rs6000.c (get_memref_parts): Only return true
38827 when *base is a reg. Handle nested plus addresses. Simplify
38828 pre_modify test.
38829
38830 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
38831
38832 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
38833 use natural alignment when optimizing for size.
38834
38835 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
38836
38837 PR target/65153
38838 * config/sh/sh.md (movsicc_true+3): Remove peephole.
38839 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
38840 * config/sh/sh.c (replace_n_hard_rtx): Remove.
38841
38842 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
38843
38844 PR fortran/63427
38845 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
38846 too big for a wide_int. Implement missing wrapping operation.
38847
38848 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
38849
38850 PR target/65163
38851 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
38852 instead of const_int 4294901760.
38853
38854 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
38855
38856 * config/avr/t-avr: Fix typo in comment.
38857
38858 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
38859
38860 * doc/rtl.texi (fma): Clarify documentation.
38861
38862 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
38863
38864 PR debug/58123
38865 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
38866 over input_location.
38867
38868 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
38869
38870 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
38871 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
38872 restrict alignments to absolute_biggest_alignment.
38873 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
38874 Define.
38875 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
38876 * doc/tm.texi: Regenerate.
38877 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
38878
38879 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
38880
38881 PR target/64172
38882 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
38883
38884 2015-02-20 Richard Biener <rguenther@suse.de>
38885
38886 PR tree-optimization/65136
38887 * tree-ssa-propagate.c: Include cfgloop.h.
38888 (replace_phi_args_in): Avoid replacing loop latch edge PHI
38889 arguments with constants.
38890
38891 2015-02-20 Jakub Jelinek <jakub@redhat.com>
38892 Martin Liska <mliska@suse.cz>
38893
38894 PR target/63892
38895 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
38896 don't try to create_thunk if stdarg_p. If
38897 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
38898 redirect_callers if possible.
38899 (sem_item_optimizer::execute): Call unregister_hooks here...
38900 (ipa_icf_driver): ... instead of here.
38901
38902 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38903
38904 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
38905 Mark operand 0 as earlyclobber in 2nd alternative.
38906 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
38907 Write negated shift amount into QI lowpart operand 0 and use it
38908 in the shift step.
38909 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
38910
38911 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
38912
38913 * cgraph.h (clone_function_name_1): Declare.
38914 * cgraphclones.c (clone_function_name_1): New function.
38915 (clone_function_name): Use it.
38916 * lto-partition.c: Include "stringpool.h".
38917 (must_not_rename, maybe_rewrite_identifier)
38918 (validize_symbol_for_target): New static functions.
38919 (privatize_symbol_name): Use must_not_rename.
38920 (promote_symbol): Call validize_symbol_for_target.
38921 (lto_promote_cross_file_statics): Likewise.
38922 (lto_promote_statics_nonwpa): Likewise.
38923
38924 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
38925
38926 PR target/64452
38927 * config/avr/avr.md (pushhi_insn): New insn.
38928 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
38929
38930 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
38931 Jakub Jelinek <jakub@redhat.com>
38932
38933 * tree-streamer.c (preload_common_nodes): Don't preload
38934 TI_VA_LIST* for offloading.
38935 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
38936 in_lto_p.
38937
38938 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
38939
38940 * config/pa/pa.c (pa_emit_move_sequence): Always force
38941 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
38942 note on insn.
38943
38944 * config/pa/pa.c (pa_reloc_rw_mask): New function.
38945 (TARGET_ASM_RELOC_RW_MASK): Define.
38946 (pa_cannot_force_const_mem): Revert previous change.
38947
38948 2015-02-19 Martin Jambor <mjmabor@suse.cz>
38949 Jan Hubicka <hubicka@ucw.cz>
38950
38951 PR ipa/65028
38952 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
38953 across jump functions.
38954
38955 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
38956
38957 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
38958
38959 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
38960
38961 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
38962
38963 2015-02-19 Richard Henderson <rth@redhat.com>
38964
38965 PR middle-end/65074
38966 * varasm.c (default_binds_local_p_2): Don't test node->definition;
38967 test DECL_EXTERNAL independent of symtab_node.
38968
38969 2015-02-19 Jakub Jelinek <jakub@redhat.com>
38970
38971 PR lto/65012
38972 * varpool.c (varpool_node::get_constructor): Return early
38973 if this->lto_file_data is NULL.
38974
38975 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38976
38977 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
38978 (rank_for_schedule_debug): Update.
38979 (ready_sort): Make static. Move sorting logic to ...
38980 (ready_sort_debug, ready_sort_real): New static functions.
38981 (schedule_block): Sort both debug insns and real insns in preparation
38982 for ready list trimming. Improve debug output.
38983 * sched-int.h (ready_sort): Remove global declaration.
38984
38985 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
38986
38987 * ipa-icf.c (sem_function::equals_private): Adjust.
38988 (sem_function::bb_dict_test): Take a vec<int> * instead of
38989 auto_vec<int>.
38990 * ipa-icf.h (bb_dict_test): Likewise.
38991
38992 2015-02-18 Jakub Jelinek <jakub@redhat.com>
38993
38994 PR gcov-profile/64634
38995 * tree-eh.c (frob_into_branch_around): Fix up typos
38996 in function comment.
38997 (lower_catch): Put eh_seq resulting from EH lowering of
38998 the cleanup sequence after the cleanup rather than before it.
38999
39000 2015-02-18 Tom de Vries <tom@codesourcery.com>
39001
39002 * common.opt (fstdarg-opt): New option.
39003 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
39004 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
39005 (@item -fstdarg-opt): New item.
39006
39007 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
39008
39009 PR target/65064
39010 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
39011 for common symbols.
39012
39013 2015-02-18 Jakub Jelinek <jakub@redhat.com>
39014
39015 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
39016 insn-modes.h.
39017 (ALL_HOST_OBJS): Add mkoffload.o.
39018 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
39019
39020 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
39021
39022 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
39023 (compare_virtual_tables): Be smarter about skipping typeinfos;
39024 do sane output on virtual table table mismatch.
39025 (warn_odr): Be ready for forward declarations of enums;
39026 output sane info on base mismatch and virtual table mismatch.
39027 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
39028 when only one type is polymorphic.
39029 (get_odr_type): Fix hashtable corruption.
39030 (dump_odr_type): Dump mangled names.
39031
39032 2015-02-18 Richard Biener <rguenther@suse.de>
39033
39034 PR tree-optimization/65063
39035 * tree-predcom.c (determine_unroll_factor): Return 1 if we
39036 have replaced looparound PHIs.
39037
39038 2015-02-18 Martin Liska <mliska@suse.cz>
39039
39040 * lto-streamer.c (lto_streamer_init): Encapsulate
39041 streamer_check_handled_ts_structures with checking macro.
39042
39043 2015-02-18 Jakub Jelinek <jakub@redhat.com>
39044
39045 PR ipa/65087
39046 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
39047 section if !implicit_section.
39048 (cgraph_node::create_version_clone_with_body): Likewise.
39049 * trans-mem.c (ipa_tm_create_version): Likewise.
39050
39051 2015-02-18 Richard Biener <rguenther@suse.de>
39052
39053 PR tree-optimization/62217
39054 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
39055 into BIVs.
39056
39057 2015-02-18 Marek Polacek <polacek@redhat.com>
39058
39059 PR sanitizer/65081
39060 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
39061 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
39062 is in range [-16K, -1]. Don't issue run-time error if
39063 (ptr > ptr + offset).
39064
39065 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
39066
39067 * doc/install.texi (nvptx-*-none): New section.
39068 * doc/invoke.texi (Nvidia PTX Options): Likewise.
39069 * config/nvptx/nvptx.opt: Update.
39070
39071 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
39072 (access_check): New functions, copied from
39073 config/i386/intelmic-mkoffload.c.
39074 (main): For non-installed testing, look in all COMPILER_PATHs for
39075 GCC_INSTALL_NAME.
39076
39077 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
39078
39079 2015-02-18 Andrew Pinski <apinski@cavium.com>
39080 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
39081
39082 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
39083 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
39084
39085 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
39086
39087 * ipa-visibility.c (function_and_variable_visibility): Only
39088 check locality if node is not already local.
39089 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
39090 call_for_symbol_and_aliases instead of
39091 call_for_symbol_thunks_and_aliases.
39092 (ipa_inline): Likewise.
39093 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
39094 first walk aliases.
39095 * ipa.c (symbol_table::remove_unreachable_nodes): Use
39096 call_for_symbol_and_aliases.
39097 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
39098 (ipa_propagate_frequency_1): Use it; use opt_for_fn
39099 (ipa_propagate_frequency): Update.
39100 (ipa_profile): Add opt_for_fn gueards.
39101
39102 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
39103
39104 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
39105 * doc/invoke.texi (SH options): Document it.
39106 * config/sh/sh.c (sh_insn_length_adjustment): Check
39107 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
39108
39109 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
39110
39111 * common.opt (fipa-cp-alignment): New.
39112 * ipa-cp.c (ipcp_store_alignment_results): Check
39113 flag_ipa_cp_alignment.
39114 * opts.c (default_options_table): Enable -fipa-cp-alignment for
39115 -O2.
39116 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
39117 * doc/invoke.texi: Document -fipa-cp-alignment.
39118
39119 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
39120
39121 PR target/64793
39122 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
39123 to nil. Adjust comments.
39124
39125 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
39126
39127 * ipa-visibility.c (function_and_variable_visibility): Only
39128 check locality if node is not already local.
39129 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
39130 call_for_symbol_and_aliases instead of
39131 call_for_symbol_thunks_and_aliases.
39132 (ipa_inline): Likewise.
39133 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
39134 first walk aliases.
39135 * ipa.c (symbol_table::remove_unreachable_nodes): Use
39136 call_for_symbol_and_aliases.
39137 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
39138 (ipa_propagate_frequency_1): Use it; use opt_for_fn
39139 (ipa_propagate_frequency): Update.
39140 (ipa_profile): Add opt_for_fn guards.
39141
39142 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
39143
39144 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
39145 skipping of "strange" tokens.
39146
39147 2015-02-17 Jeff Law <law@redhat.com>
39148
39149 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
39150 obsolete comment.
39151
39152 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
39153
39154 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
39155 as forcing a HARD_DEP between instructions, thereby
39156 disallowing rewriting to break dependencies.
39157
39158 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
39159
39160 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
39161 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
39162 variables in boundary that have no inlitalizer encoded and are
39163 not aliases.
39164 * varasm.c (default_binds_local_p_2): External definitions do not
39165 count as definitions here.
39166
39167 2015-02-16 Jeff Law <law@redhat.com>
39168
39169 PR tree-optimization/64823
39170 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
39171 statements.
39172 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
39173 threading through blocks with PHIs, but no statements.
39174 (thread_through_normal_block): Distinguish between blocks where
39175 we did not process all the statements and blocks with no statements.
39176
39177 2015-02-16 Jakub Jelinek <jakub@redhat.com>
39178 James Greenhalgh <james.greenhalgh@arm.com>
39179
39180 PR ipa/64963
39181 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
39182 section if not linkonce. Fix up formatting.
39183 (cgraph_node::create_version_clone_with_body): Copy section.
39184 * trans-mem.c (ipa_tm_create_version): Likewise.
39185
39186 2015-02-16 Richard Biener <rguenther@suse.de>
39187
39188 PR tree-optimization/65077
39189 * tree-ssa-structalias.c (get_constraint_for_1): Handle
39190 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
39191 (find_func_aliases): Allow float values to carry pointers again.
39192
39193 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
39194
39195 * doc/install.texi (Specific): Reorder targets list to put
39196 aarch64 in alphabetical order. Add a link to aarch64*-*-*
39197 from the top menu.
39198
39199 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
39200 David Edelsohn <dje.gcc@gmail.com>
39201
39202 PR target/65058
39203 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
39204 mapping class to external variable or function reference.
39205 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
39206 mapping class.
39207
39208 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
39209
39210 PR target/53348
39211 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
39212 ASM_WEAKEN_DECL if defined.
39213
39214 2015-02-16 Richard Biener <rguenther@suse.de>
39215
39216 PR lto/65015
39217 * varasm.c (default_file_start): For LTO produced units
39218 emit <artificial> as file directive.
39219
39220 2015-02-16 Richard Biener <rguenther@suse.de>
39221
39222 PR tree-optimization/63593
39223 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
39224 stmts and releasing SSA names until...
39225 (execute_pred_commoning): ... after processing all chains.
39226
39227 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
39228
39229 PR ipa/65059
39230 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
39231 external functions.
39232
39233 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
39234
39235 * doc/bugreport.texi: Adjust section titles throughout the file
39236 to use "Title Case".
39237 * doc/extend.texi: Likewise.
39238 * doc/gcov.texi: Likewise.
39239 * doc/implement-c.texi: Likewise.
39240 * doc/implement-cxx.texi: Likewise.
39241 * doc/invoke.texi: Likewise.
39242 * doc/objc.texi: Likewise.
39243 * doc/standards.texi: Likewise.
39244 * doc/trouble.texi: Likewise.
39245
39246 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
39247
39248 * cgraph.h (symtab_node::has_aliases_p): Simplify.
39249 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
39250 * tree.c (lookup_binfo_at_offset): Make static.
39251 (get_binfo_at_offset): Do not shadow offset; add explanatory
39252 comment.
39253
39254 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
39255
39256 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
39257 for all floading point loads and stores except those using a register
39258 index address.
39259 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
39260 to a register.
39261
39262 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
39263
39264 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
39265 (do_estimate_growth_1): Record if any uninlinable edge was seen.
39266 (estimate_growth): Handle uninlinable edges correctly.
39267 (check_callers): New.
39268 (growth_likely_positive): Handle aliases correctly.
39269
39270 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
39271
39272 * ipa-chkp.c: Use iterate_direct_aliases.
39273 * symtab.c (resolution_used_from_other_file_p): Move inline.
39274 (symtab_node::create_reference): Fix formating.
39275 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
39276 (symtab_node::iterate_reference): Move inline.
39277 (symtab_node::iterate_referring): Move inline.
39278 (symtab_node::iterate_direct_aliases): Move inline.
39279 (symtab_node::used_from_object_file_p_worker): Inline into ...
39280 (symtab_node::used_from_object_file_p): ... this one; move inline.
39281 (symtab_node::call_for_symbol_and_aliases): Move inline;
39282 use iterate_direct_aliases.
39283 (symtab_node::call_for_symbol_and_aliases_1): New method.
39284 (cgraph_node::call_for_symbol_and_aliases): Move inline;
39285 use iterate_direct_aliases.
39286 (cgraph_node::call_for_symbol_and_aliases_1): New method.
39287 (varpool_node::call_for_node_and_aliases): Rename to ...
39288 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
39289 use iterate_direct_aliases.
39290 (varpool_node::call_for_symbol_and_aliases_1): New method.
39291 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
39292 (ipa_discover_readonly_nonaddressable_var): Update.
39293 * ipa-devirt.c: Fix formating.
39294 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
39295 Move inline.
39296 (cgraph_node::call_for_symbol_and_aliases): Move inline.
39297 (cgraph_node::call_for_symbol_and_aliases_1): New function..
39298 * cgraph.h (used_from_object_file_p_worker): Remove.
39299 (resolution_used_from_other_file_p): Move inline.
39300 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
39301 (symtab_node::iterate_reference): Move inline.
39302 (symtab_node::iterate_referring): Move inline.
39303 (symtab_node::iterate_direct_aliases): Move inline.
39304 (symtab_node::used_from_object_file_p_worker): Inline into ...
39305 (symtab_node::used_from_object_file_p): Move inline.
39306 * tree-emutls.c (ipa_lower_emutls): Update.
39307 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
39308 (varpool_node::call_for_node_and_aliases): Remove.
39309
39310 2015-02-14 Jakub Jelinek <jakub@redhat.com>
39311
39312 PR tree-optimization/62209
39313 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
39314 op == range->exp, insert seq and gimplified code after labels
39315 instead of after the phi.
39316
39317 2015-02-13 Jeff Law <law@redhat.com>
39318
39319 PR bootstrap/65060
39320 Revert my change for tree-optimization/64823.
39321
39322 2015-02-13 Jakub Jelinek <jakub@redhat.com>
39323
39324 PR tree-optimization/65053
39325 * tree-ssa-phiopt.c (value_replacement): When moving assign before
39326 cond, either reset VR on lhs or set it to phi result VR.
39327
39328 2015-02-13 Jeff Law <law@redhat.com>
39329
39330 PR tree-optimization/64823
39331 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
39332 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
39333 threading through blocks with PHIs, but no statements.
39334 (thread_through_normal_block): Distinguish between blocks where
39335 we did not process all the statements and blocks with no statements.
39336
39337 PR rtl-optimization/47477
39338 * match.pd (convert (plus/minus (convert @0) (convert @1): New
39339 simplifier to narrow arithmetic.
39340
39341 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
39342
39343 PR ipa/65028
39344 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
39345 polymorphic call info when type is not known to be preserved.
39346
39347 2015-02-13 Maritn Jambor <mjambor@suse.cz>
39348
39349 PR ipa/65028
39350 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
39351 (inline_call): Use it.
39352
39353 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
39354
39355 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
39356 GOMP_DEVICE_NVIDIA_PTX.
39357
39358 2015-02-13 Jakub Jelinek <jakub@redhat.com>
39359
39360 PR ipa/65034
39361 * stmt.c (emit_case_nodes): Use void_type_node instead of
39362 NULL_TREE as LABEL_DECL type.
39363
39364 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
39365
39366 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
39367 constraints.
39368 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
39369 symbolic references to data to be forced to constant memory on the
39370 SOM target.
39371
39372 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
39373
39374 PR tree-optimization/65002
39375 * tree-cfg.c (pass_data_fixup_cfg): Don't update
39376 SSA on start.
39377 * tree-sra.c (some_callers_have_no_vuse_p): New.
39378 (ipa_early_sra): Reject functions whose callers
39379 assume function is read only.
39380
39381 2015-02-13 Richard Biener <rguenther@suse.de>
39382
39383 PR lto/65015
39384 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
39385 for LTO produced CUs.
39386
39387 2015-02-13 Bin Cheng <bin.cheng@arm.com>
39388
39389 PR tree-optimization/64705
39390 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
39391 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
39392 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
39393 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
39394 expand_simple_operations.
39395
39396 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
39397 Richard Henderson <rth@redhat.com>
39398
39399 PR rtl/32219
39400 * cgraphunit.c (cgraph_node::finalize_function): Set definition
39401 before notice_global_symbol.
39402 (varpool_node::finalize_decl): Likewise.
39403 * varasm.c (default_binds_local_p_2): Rename from
39404 default_binds_local_p_1, add weak_dominate argument. Use direct
39405 returns instead of assigning to local variable. Unify varpool and
39406 cgraph paths via symtab_node. Reject undef weak variables before
39407 testing visibility. Reorder tests for simplicity.
39408 (default_binds_local_p): Use default_binds_local_p_2.
39409 (default_binds_local_p_1): Likewise.
39410 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
39411 via symtab_node.
39412 (default_elf_asm_output_external): Emit visibility when specified.
39413
39414 2015-02-13 Alan Modra <amodra@gmail.com>
39415
39416 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
39417 code setting up r11 for out-of-line fp restore.
39418
39419 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
39420
39421 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
39422 (muser-mode): Likewise.
39423
39424 2015-02-13 Alan Modra <amodra@gmail.com>
39425
39426 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
39427 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
39428
39429 2015-02-12 David Howells <dhowells@redhat.com>
39430
39431 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
39432 warning.
39433 * tree-ssa-uninit.c (dump_predicates): Likewise.
39434 * opts.c (print_filtered_help): Likewise.
39435
39436 2015-02-12 Jakub Jelinek <jakub@redhat.com>
39437
39438 * dwarf2out.c (output_die): Use "%s", name instead of name to
39439 avoid -Wformat-security warning.
39440
39441 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
39442 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
39443 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
39444 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
39445
39446 2015-02-12 Jason Merrill <jason@redhat.com>
39447
39448 * common.opt (-flifetime-dse): New.
39449
39450 2015-02-12 Jakub Jelinek <jakub@redhat.com>
39451
39452 PR sanitizer/65019
39453 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
39454
39455 PR tree-optimization/65014
39456 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
39457 use original second operand of arg0 or arg1 instead of
39458 that adjusted by STRIP_NOPS.
39459
39460 2015-02-11 Jeff Law <law@redhat.com>
39461
39462 PR target/63347
39463 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
39464 that needs to be queued, just queue it for a single cycle.
39465
39466 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
39467
39468 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
39469 bodies of thunks; comment on why.
39470 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
39471 symbols are extern.
39472
39473 2015-02-11 Richard Henderson <rth@redhat.com>
39474
39475 PR sanitize/65000
39476 * tree-eh.c (mark_reachable_handlers): Mark source and destination
39477 regions of __builtin_eh_copy_values.
39478
39479 2015-02-11 Jakub Jelinek <jakub@redhat.com>
39480
39481 PR middle-end/65003
39482 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
39483 ultimate alias is MEM with SYMBOL_REF satisfying
39484 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
39485 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
39486
39487 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
39488
39489 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
39490 "diagnostic-core.h".
39491 (main): Initialize progname, and call diagnostic_initialize.
39492
39493 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
39494 instead of __OPENMP_TARGET__.
39495
39496 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
39497 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
39498 hard-coding PTX_ID.
39499
39500 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
39501
39502 * doc/sourcebuild.texi (pie_enabled): Document.
39503
39504 2015-02-11 Martin Liska <mliska@suse.cz>
39505
39506 PR ipa/64813
39507 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
39508 a return value for call to a function that is noreturn.
39509
39510 2015-02-11 Richard Biener <rguenther@suse.de>
39511
39512 PR lto/65015
39513 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
39514 and -fresolution.
39515
39516 2015-02-11 Andrew Pinski <apinski@cavium.com>
39517
39518 PR target/64893
39519 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
39520 Change the first argument type to size_type_node and add another
39521 size_type_node.
39522 (aarch64_simd_expand_builtin): Handle the new argument to
39523 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
39524 print an out when the first two arguments are not
39525 nonzero integer constants.
39526 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
39527 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
39528
39529 2015-02-11 Jakub Jelinek <jakub@redhat.com>
39530
39531 PR target/61925
39532 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
39533 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
39534 (ix86_set_current_function): Rewritten.
39535 (ix86_add_new_builtins): Temporarily clear current_target_pragma
39536 when creating builtin fndecls.
39537
39538 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
39539
39540 PR ipa/65005
39541 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
39542 function.
39543 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
39544 have no comdat group.
39545 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
39546 (lto_output_varpool_node): Always output alias info.
39547 (output_refs): Output refs of boundary aliases, too.
39548 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
39549 (output_symtab): Output call eges in thunks in boundary.
39550 (get_alias_symbol): Remove.
39551 (input_node, input_varpool_node): Do not special case weakrefs.
39552 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
39553 alias and thunks targets in the boundary; do not take removed symbols
39554 from their comdat groups.
39555 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
39556 (cgraph_node::global_info): Remove.
39557 (cgraph_node::rtl_info): Look through aliases and thunks.
39558 * cgrpah.h (global_info): Remove.
39559 (non_local_p): Remove.
39560
39561 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
39562 Sandra Loosemore <sandra@codesourcery.com>
39563
39564 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
39565 to inline asm. List dialects in proper order.
39566
39567 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
39568 Sandra Loosemore <sandra@codesourcery.com>
39569
39570 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
39571
39572 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
39573
39574 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
39575 modified) reference to Solaris.
39576
39577 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
39578
39579 * doc/extend.texi (Extended Asm): Fix typos.
39580
39581 2015-02-10 Jakub Jelinek <jakub@redhat.com>
39582
39583 PR sanitizer/65004
39584 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
39585
39586 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
39587
39588 PR target/64661
39589 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
39590 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
39591 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
39592 * config/sh/constraints.md (Ara, Add): New constraints.
39593 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
39594 predicates.
39595 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
39596 atomic_mem_operand_0. Don't use force_reg on the memory address.
39597 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
39598 Sra constraint. Convert to insn_and_split. Add workaround for
39599 PR 64974.
39600 (atomic_compare_and_swap<mode>_hard): Copy to
39601 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
39602 Use atomic_mem_operand_0 predicate.
39603 (atomic_compare_and_swap<mode>_soft_gusa,
39604 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
39605 AraAdd constraints.
39606 (atomic_compare_and_swap<mode>_soft_tcb,
39607 atomic_compare_and_swap<mode>_soft_imask,
39608 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
39609 atomic_mem_operand_0 predicate and SraSdd constraints.
39610 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
39611 constraint.
39612 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
39613 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
39614 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
39615 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
39616 force_reg on the memory address.
39617 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
39618 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
39619 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
39620 atomic_mem_operand_1 predicate and Sra constraint.
39621 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
39622 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
39623 Use atomic_mem_operand_1 predicate.
39624 (atomic_<fetchop_name><mode>_hard): Copy to
39625 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
39626 Use atomic_mem_operand_1 predicate.
39627 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
39628 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
39629 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
39630 insn_and_split. Use atomic_mem_operand_1 predicate.
39631 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
39632 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
39633 Use atomic_mem_operand_1 predicate.
39634 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
39635 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
39636 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
39637 in generated insn with original mem operand before emitting the insn.
39638 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
39639 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
39640 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
39641 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
39642 Use atomic_mem_operand_1 predicate and AraAdd constraints.
39643 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
39644 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
39645 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
39646 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
39647 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
39648 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
39649 atomic_not_fetch<mode>_soft_tcb,
39650 atomic_<fetchop_name>_fetch<mode>_soft_imask,
39651 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
39652 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
39653 Use atomic_mem_operand_1 predicate and SraSdd constraints.
39654
39655 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
39656
39657 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
39658 and 3 earlyclobber operands.
39659
39660 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
39661
39662 * common.opt (fstack-reuse): Mark as optimization.
39663
39664 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
39665
39666 PR ipa/64982
39667 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
39668
39669 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
39670
39671 PR tree-optimization/64326
39672 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
39673
39674 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
39675
39676 PR gcov-profile/61889
39677 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
39678
39679 2015-02-10 Richard Biener <rguenther@suse.de>
39680
39681 PR tree-optimization/64995
39682 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
39683 value we use is final.
39684 (visit_reference_op_store): Always valueize op.
39685 (visit_use): Properly valueize vuses.
39686
39687 2015-02-10 Richard Biener <rguenther@suse.de>
39688
39689 PR tree-optimization/64909
39690 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
39691 pass a scalar-stmt count estimate to the cost model.
39692 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
39693
39694 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
39695
39696 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
39697 enabled by default together with var-tracking.
39698
39699 2015-02-10 Nick Clifton <nickc@redhat.com>
39700
39701 * config/rl78/rl78.c: Remove DIV attribute code accidentally
39702 included in previous rl78 commit.
39703
39704 2015-02-10 Richard Biener <rguenther@suse.de>
39705
39706 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
39707 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
39708 return the bitpack.
39709
39710 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
39711
39712 PR gcov-profile/61889
39713 * config.in: regenerate.
39714 * configure.in: Likewise.
39715 * configure.ac: Check for ftw.h.
39716 * gcov-tool.c: Check for ftw.h before using nftw.
39717
39718 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
39719
39720 PR lto/64076
39721 * ipa-visibility.c (update_visibility_by_resolution_info): Only
39722 assert when not in lto mode.
39723
39724 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
39725
39726 * ira-color.c (setup_left_conflict_sizes_p): Simplify
39727 initialization/assignment of conflict_size.
39728
39729 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
39730
39731 PR ipa/64978
39732 * ipa-cp.c (gather_caller_stats): Skip thunks.
39733 (propagate_constants_topo): Skip aliases.
39734
39735 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
39736
39737 PR target/64761
39738 * config/sh/sh.c (sh_option_override): Don't change
39739 -freorder-blocks-and-partition to -freorder-blocks even when
39740 unwinding is enabled.
39741 (sh_can_follow_jump): Return false if the followee jump is
39742 a crossing jump when -freorder-blocks-and-partition is specified.
39743 * config/sh/sh.md (*jump_compact_crossing): New insn.
39744
39745 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
39746 Kaz Kojima <kkojima@gcc.gnu.org>
39747
39748 PR target/64761
39749 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
39750 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
39751 (sh_can_redirect_branch): Rename to ...
39752 (sh_can_follow_jump): ... this. Constify argument types.
39753 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
39754 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
39755 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
39756 * doc/tm.texi: Regenerate.
39757
39758 2015-02-09 Jakub Jelinek <jakub@redhat.com>
39759
39760 PR sanitizer/64981
39761 * builtins.c (expand_builtin): Call targetm.expand_builtin
39762 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
39763
39764 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39765
39766 PR ipa/61548
39767 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
39768
39769 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39770
39771 PR ipa/63566
39772 * ipa-icf.c (set_local): New function.
39773 (sem_function::merge): Use it.
39774
39775 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39776
39777 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
39778 (add_type_duplicate): Fix comparison of BINFOs.
39779
39780 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39781
39782 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
39783 on getting VOID pointer.
39784
39785 2015-02-09 Jakub Jelinek <jakub@redhat.com>
39786
39787 PR target/64979
39788 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
39789 va_list escapes.
39790
39791 2015-02-09 Richard Biener <rguenther@suse.de>
39792
39793 * genmatch.c (replace_id): Copy expr_type.
39794
39795 2015-02-09 Richard Biener <rguenther@suse.de>
39796
39797 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
39798 (streamer_write_tree_bitfields): Declare.
39799 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
39800 properly unpack padding.
39801 (unpack_value_fields): Inline ...
39802 (streamer_read_tree_bitfields): ... here.
39803 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
39804 and properly add padding bits.
39805 (streamer_pack_tree_bitfields): Fold into ...
39806 (streamer_write_tree_bitfields): ... this new function,
39807 exposing the bitpack object.
39808 * lto-streamer-out.c (lto_write_tree_1): Call
39809 streamer_write_tree_bitfields.
39810
39811 2015-02-09 Richard Biener <rguenther@suse.de>
39812
39813 PR tree-optimization/54000
39814 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
39815 (struct ivopts_data): Add loop_loc member.
39816 (tree_ssa_iv_optimize_loop): Dump loop location.
39817 (create_new_ivs): Likewise, also dump number of IVs generated.
39818
39819 2015-02-09 Martin Liska <mliska@suse.cz>
39820
39821 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
39822 just if not yet registered.
39823 (ipa_icf_generate_summary): Register callgraph hooks.
39824
39825 2015-02-08 Andrew Pinski <apinski@cavium.com>
39826
39827 * config/aarch64/aarch64.c (gty_dummy): Delete.
39828
39829 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39830
39831 PR ipa/63566
39832 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
39833 (cgraph_node::local_p): Remove thunk related FIXME.
39834
39835 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39836
39837 PR ipa/63566
39838 * i386.c (ix86_function_regparm): Look through aliases to see if callee
39839 is local and optimized.
39840 (ix86_function_sseregparm): Likewise; also use target's SSE math
39841 settings; error out instead of silently generating wrong code
39842 on mismatches.
39843 (init_cumulative_args): Look through aliases.
39844
39845 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39846
39847 PR ipa/63566
39848 * ipa-split.c (execute_split_functions): Split if function has aliases.
39849
39850 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39851
39852 PR ipa/63566
39853 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
39854 aliases before trying to expand it.
39855 (cgraph_node::expand_thunk): Fix formating.
39856
39857 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
39858
39859 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
39860 (Using Assembly Language with C): Expand introduction.
39861 (Basic Asm): Copy-edit. Add more information about uses of
39862 basic asm.
39863 (Extended Asm): Copy-edit. Document new escape syntax and
39864 %l[label] syntax.
39865 (Global Reg Vars): Copy-edit.
39866 (Local Reg Vars): Likewise.
39867
39868 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
39869
39870 PR debug/2714
39871 PR bootstrap/64256
39872 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
39873 (DBX_CONTIN_CHAR): Define.
39874
39875 2015-02-06 Sebastian Pop <s.pop@samsung.com>
39876 Brian Rzycki <b.rzycki@samsung.com>
39877
39878 PR tree-optimization/64878
39879 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
39880 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
39881 Stop recursion at loop phi nodes after having visited a loop phi node.
39882
39883 2015-02-06 Jakub Jelinek <jakub@redhat.com>
39884
39885 * toplev.c (process_options): Change flag_ipa_ra before creating
39886 optimization_{default,current}_node.
39887
39888 PR ipa/64896
39889 * cgraphunit.c (cgraph_node::expand_thunk): If
39890 restype is not is_gimple_reg_type nor the thunk_fndecl
39891 returns aggregate_value_p, set restmp to a temporary variable
39892 instead of resdecl.
39893
39894 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
39895
39896 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
39897
39898 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
39899
39900 PR target/64205
39901 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
39902 add a general secondary reload handler for SDmode, unless we have
39903 both read/write support for SDmode.
39904
39905 2015-02-06 Jakub Jelinek <jakub@redhat.com>
39906
39907 PR middle-end/64937
39908 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
39909 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
39910 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
39911 1 before, push it to abstract_vec.
39912 (dwarf2out_abstract_function): Adjust caller. Don't call
39913 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
39914 DECL_ABSTRACT_P flags for all abstract_vec elts.
39915
39916 2015-02-06 Renlin Li <renlin.li@arm.com>
39917
39918 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
39919 complex gimple.
39920 * tree-ssa.c (execute_update_addresses_taken): Likewise.
39921
39922 2015-02-06 Jeff Law <law@redhat.com>
39923
39924 PR target/64889
39925 * config/h8300/h8300.c (push): New argument "in_prologue".
39926 Pass "in_prologue" along to "F".
39927 (h8300_push_pop): Corresponding changes.
39928 (h8300_expand_prologue): Likewise.
39929 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
39930
39931 2015-02-06 Jakub Jelinek <jakub@redhat.com>
39932
39933 PR rtl-optimization/64957
39934 PR debug/64817
39935 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
39936 IOR rather than for AND.
39937
39938 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
39939
39940 PR target/62631
39941 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
39942 of shift-add and (add + shift) operations. Rename local variable.
39943
39944 2015-02-05 Jeff Law <law@redhat.com>
39945
39946 PR target/17306
39947 * config/h8300/constraints.md (U): Correctly dectect
39948 "eightbit_data" memory addresses.
39949 * config/h8300/h8300.c (eightbit_constant_address_p): Also
39950 handle (const (plus (symbol_ref (x)))) where x is declared
39951 as an 8-bit data memory address.
39952 * config/h8300/h8300.md (call, call_value): Correctly detect
39953 "funcvec" functions.
39954
39955 PR target/43264
39956 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
39957 24 to 28 bits for the H8/300.
39958
39959 2015-02-06 Alan Modra <amodra@gmail.com>
39960
39961 PR target/64876
39962 * config/rs6000/rs6000.c (chain_already_loaded): New function.
39963 (rs6000_call_aix): Use it.
39964
39965 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
39966
39967 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
39968 check.
39969
39970 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
39971
39972 * config/h8300/constraints.md ("U" constraint): Use strict
39973 variant of REG_OK_FOR_BASE_P after reload has started.
39974
39975 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
39976
39977 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
39978 define to zero if !TARGET_NEON.
39979 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
39980
39981 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39982 Trevor Saunders <tsaunders@mozilla.com>
39983
39984 PR ipa/61548
39985 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
39986
39987 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39988
39989 PR ipa/61548
39990 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
39991 when removing varpool nodes.
39992
39993 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39994
39995 PR ipa/61548
39996 * varpool.c (varpool_node::remove): Fix order of variables.
39997
39998 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39999
40000 PR ipa/64686
40001 * ipa-inline.c (inline_small_functions): Fix ordering issue between
40002 speculation resolution and key updates.
40003
40004 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40005
40006 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
40007 about not letting any speculative edges unupdated.
40008
40009 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40010
40011 PR gcov/64123
40012 * gcov-io.c (gcov_var): Export.
40013
40014 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40015
40016 PR middle-end/64922
40017 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
40018 edges that become speculative.
40019
40020 2015-02-04 Jakub Jelinek <jakub@redhat.com>
40021
40022 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
40023 or DW_LANG_Fortran08.
40024 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
40025 DW_LANG_Fortran08.
40026 (gen_compile_unit_die): Handle "GNU Fortran2003" and
40027 "GNU Fortran2008" language strings.
40028 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
40029 * langhooks.h (lang_GNU_Fortran): New prototype.
40030 * langhooks.c (lang_GNU_Fortran): New function.
40031 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
40032 lang_GNU_Fortran.
40033
40034 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
40035
40036 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
40037 (RTX_OK_FOR_OLO10_P): Likewise.
40038
40039 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
40040
40041 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
40042
40043 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40044
40045 PR middle-end/64922
40046 * gimple.c: Include gimple-ssa.h.
40047 (maybe_remove_unused_call_args): New function.
40048 * gimple.h (maybe_remove_unused_call_args): Declare.
40049 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
40050 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
40051 * gimple-fold.c (gimple_fold_call): Likewise.
40052
40053 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
40054
40055 PR rtl-optimization/64905
40056 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
40057 pointer alignment if it isn't needed.
40058
40059 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
40060
40061 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
40062 cortex-a72.cortex-a53.
40063 * config/aarch64/aarch64-tune.md: Regenerate.
40064 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
40065
40066 2015-02-04 Nick Clifton <nickc@redhat.com>
40067
40068 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
40069 inside a MEM.
40070
40071 2015-02-04 Jakub Jelinek <jakub@redhat.com>
40072
40073 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
40074 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
40075 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
40076 of DEF_BUILTIN.
40077 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
40078 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
40079 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
40080 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
40081 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
40082 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
40083 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
40084 * tree-core.h (enum built_in_function): In between
40085 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
40086 for builtins that use DEF_BUILTIN_CHKP macro.
40087
40088 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
40089
40090 PR debug/64817
40091 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
40092 operands for tcc_comparison exprs. Fix typos.
40093
40094 PR debug/64817
40095 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
40096 of two XORs that have an intervening AND or IOR.
40097
40098 PR debug/64817
40099 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
40100 simplification of XOR of AND to not allocate new rtx before
40101 committing to a simplification.
40102
40103 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40104
40105 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
40106 manual swaps in all peepholes.
40107
40108 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40109
40110 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
40111 of manual swapping implementation.
40112 (aarch64_expand_vec_perm_const_1): Likewise.
40113
40114 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
40115
40116 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
40117 (generic_addrcost_table): Remove NAMED_PARAM.
40118 (cortexa57_addrcost_table): Likewise.
40119 (xgene1_addrcost_table): Likewise.
40120 (generic_regmove_table): Likewise.
40121 (cortexa53_regmove_table): Likewise.
40122 (xgene1_regmove_table): Likewise.
40123 (generic_vector_table): Likewise.
40124 (cortexa57_vector_table): Likewise.
40125 (xgene1_vector_table): Likewise.
40126 (generic_tunings): Likewise.
40127 (cortexa53_tunings): Likewise.
40128 (cortexa57_tunings): Likewise.
40129 (xgene1_tunings): Likewise.
40130
40131 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
40132
40133 * config/arm/arm-cores.def: Add cortex-a72 and
40134 cortex-a72.cortex-a53.
40135 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
40136 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
40137 * config/arm/arm-tune.md: Regenerate.
40138 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
40139 "cortex-a72.cortex-a53".
40140 * doc/invoke.texi (ARM Options/-mtune): Likewise.
40141
40142 2015-02-04 Nick Clifton <nickc@redhat.com>
40143
40144 PR target/64408
40145 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
40146 of accepted codes.
40147 (nonimmediate_di_operand): Likewise.
40148
40149 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
40150 prefixes of known F5 using MSP430 MCUs.
40151
40152 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40153
40154 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
40155 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
40156 instead of __builtin_sqrt.
40157
40158 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
40159
40160 * varasm.c (do_assemble_alias): Follow transparent alias
40161 chain for target.
40162 (default_assemble_visibility): Follow transparent alias
40163 chain for decl name.
40164
40165 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
40166
40167 PR middle-end/62103
40168 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
40169 to compute size of referenced value in the constant case.
40170
40171 2015-02-03 Jakub Jelinek <jakub@redhat.com>
40172
40173 PR rtl-optimization/64756
40174 * cse.c (invalidate_dest): New function.
40175 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
40176 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
40177 invalidate and do not record it.
40178
40179 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
40180
40181 PR target/64660
40182 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
40183 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
40184 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
40185 atomic_nand<mode>_soft_tcb): New insns.
40186 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
40187 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
40188 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
40189 Split into atomic_not_fetchsi_hard if operands[0] is unused.
40190 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
40191 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
40192 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
40193 atomic_not<mode>_hard if operands[0] is unused.
40194 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
40195 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
40196 if operands[0] is unused.
40197 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
40198 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
40199 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
40200 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
40201 unused.
40202 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
40203 into atomic_not<mode>_soft_tcb if operands[0] is unused.
40204 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
40205 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
40206 if operands[0] is unused.
40207 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
40208 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
40209 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
40210 atomic_nand_fetchsi_hard if operands[0] is unused.
40211 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
40212 atomic_nand<mode>_hard if operands[0] is unused.
40213 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
40214 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
40215 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
40216 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
40217 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
40218 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
40219 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
40220 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
40221 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
40222 atomic_not<mode>_hard if operands[0] is unused.
40223 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
40224 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
40225 unused.
40226 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
40227 into atomic_not<mode>_soft_tcb if operands[0] is unused.
40228 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
40229 atomic_nand<mode>_hard if operands[0] is unused.
40230 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
40231 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
40232
40233 2015-02-03 David Malcolm <dmalcolm@redhat.com>
40234
40235 PR jit/64810
40236 * Makefile.in (GCC_OBJS): Add gcc-main.o.
40237 * gcc-main.c: New file, containing "main" taken from gcc.c.
40238 * gcc.c (do_self_spec): Free decoded_options.
40239 (class driver): Move declaration to gcc.h.
40240 (main): Move declaration and implementation to new file
40241 gcc-main.c.
40242 (driver_get_configure_time_options): New function.
40243 * gcc.h (class driver): Move this declaration here, from
40244 gcc.c.
40245 (driver_get_configure_time_options): New declaration.
40246
40247 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
40248
40249 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
40250 cross-module inlining.
40251 * cgraph.h (cgraph_node): Add flag merged.
40252 * ipa-icf.c (sem_function::merge): Maintain it.
40253
40254 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
40255
40256 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
40257 instead of OBJECT_P.
40258
40259 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
40260
40261 PR target/62631
40262 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
40263 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
40264 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
40265 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
40266
40267 2015-02-03 Jakub Jelinek <jakub@redhat.com>
40268
40269 PR other/63504
40270 * combine.c (reg_n_sets_max): New variable.
40271 (can_change_dest_mode, reg_nonzero_bits_for_combine,
40272 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
40273 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
40274 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
40275 (rest_of_handle_combine): Initialize reg_n_sets_max.
40276
40277 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
40278
40279 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
40280 if some always_inline was inlined, apply changes before inlining
40281 heuristically.
40282
40283 2015-02-02 David Malcolm <dmalcolm@redhat.com>
40284
40285 PR jit/64810
40286 * config/arm/arm.c (arm_option_override): Set
40287 arm_selected_arch/cpu/tune to NULL on entry.
40288
40289 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
40290 Andrew Pinski <pinskia@gcc.gnu.org>
40291 Jakub Jelinek <jakub@gcc.gnu.org>
40292
40293 PR target/64231
40294 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
40295 integer typing for small model. Use IN_RANGE.
40296
40297 2015-02-02 Richard Biener <rguenther@suse.de>
40298
40299 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
40300 * tree-vrp.c (vrp_valueize_1): Likewise.
40301
40302 2015-02-02 Alan Modra <amodra@gmail.com>
40303
40304 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
40305 than mem for toc_restore.
40306 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
40307 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
40308 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
40309
40310 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
40311
40312 PR target/64047
40313 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
40314 explicit default options.
40315
40316 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
40317
40318 PR ipa/64872
40319 * ipa-utils.c (ipa_merge_profiles): Add release argument.
40320 * ipa-icf.c (sem_function::merge): Do not release body when merging.
40321 * ipa-utils.h (ipa_merge_profiles): Update prototype.
40322
40323 2015-02-01 Jakub Jelinek <jakub@redhat.com>
40324
40325 PR debug/64817
40326 * cfgexpand.c (deep_ter_debug_map): New variable.
40327 (avoid_deep_ter_for_debug): New function.
40328 (expand_debug_expr): If TERed SSA_NAME is in
40329 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
40330 instead of trying to expand SSA_NAME's def stmt.
40331 (expand_debug_locations): When expanding debug bind
40332 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
40333 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
40334 value.
40335 (pass_expand::execute): Call avoid_deep_ter_for_debug on
40336 all debug bind stmts. Delete deep_ter_debug_map after
40337 expand_debug_location if non-NULL and clear it.
40338
40339 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
40340
40341 PR target/64851
40342 * config/sh/sync.md (atomic_fetch_notsi_hard,
40343 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
40344 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
40345 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
40346 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
40347 atomic_not_fetch<mode>_soft_imask): New insns.
40348
40349 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40350
40351 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
40352 (rank_for_schedule_debug): Split from ...
40353 (rank_for_schedule): ... this.
40354 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
40355 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
40356
40357 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
40358
40359 * doc/md.texi (Machine Constraints): Alphabetize table by target.
40360 * doc/extend.texi (x86 Variable Attributes): Move section to
40361 correct alphabetization after renaming.
40362 (x86 Type Attributes): Likewise.
40363 (Target Builtins): Re-alphabetize menu.
40364 (x86 Built-in Functions): Move section to correct alphabetization
40365 after renaming.
40366 (x86 transactional memory intrinsics): Likewise.
40367 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
40368 and x86 Windows Options in table and menu.
40369 (x86 Options): Move section to correct alphabetization after
40370 renaming.
40371 (x86 Windows Options): Likewise.
40372
40373 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
40374
40375 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
40376 preferred names of the architecture and its 32- and 64-bit
40377 variants.
40378 * doc/invoke.texi: Likewise.
40379 * doc/md.texi: Likewise.
40380
40381 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
40382
40383 PR target/64882
40384 * config/i386/predicates.md (address_no_seg_operand): Reject
40385 non-CONST_INT_P operands in invalid mode.
40386
40387 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
40388
40389 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
40390 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
40391 * config/i386/predicates.md (address_no_seg_operand): Call
40392 address_operand with VOIDmode.
40393 (vsib_address_operand): Ditto.
40394 (address_mpx_no_base_operand): Ditto.
40395 (address_mpx_no_index_operand): Ditto.
40396
40397 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
40398
40399 PR target/64688
40400 * lra-constraints.c (original_subreg_reg_mode): New.
40401 (simplify_operand_subreg): Try to simplify subreg of const. Use
40402 original_subreg_reg_mode for it.
40403 (swap_operands): Update original_subreg_reg_mode.
40404 (curr_insn_transform): Set up original_subreg_reg_mode.
40405
40406 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
40407
40408 PR target/64617
40409 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
40410 function.
40411 (process_alt_operands): Use it.
40412 (curr_insn_transform): Check the optional reload pseudo class is
40413 ok for the mode.
40414
40415 2015-01-30 Joseph Myers <joseph@codesourcery.com>
40416
40417 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
40418 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
40419 prototype.
40420 * toplev.h (init_asm_output): Update comment on use of
40421 UNKNOWN_LOCATION with fatal_error.
40422 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
40423 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
40424 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
40425 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
40426 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
40427 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
40428 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
40429 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
40430 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
40431 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
40432 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
40433 fatal_error changed to pass input_location as first argument.
40434
40435 2015-01-30 Martin Liska <mliska@suse.cz>
40436
40437 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
40438 in #pragma GCC diagnostic guards.
40439
40440 2015-01-30 Richard Biener <rguenther@suse.de>
40441
40442 PR tree-optimization/64829
40443 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
40444 not add a widening conversion pattern but hand off extra
40445 widenings to callers.
40446 (vect_recog_widen_mult_pattern): Handle extra widening produced
40447 by vect_handle_widen_op_by_const.
40448 (vect_recog_widen_shift_pattern): Likewise.
40449 (vect_pattern_recog_1): Remove excess vertical space in dumping.
40450 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
40451 (vect_init_vector_1): Likewise.
40452 (vect_get_vec_def_for_operand): Likewise.
40453 (vect_finish_stmt_generation): Likewise.
40454 (vectorizable_load): Likewise.
40455 (vect_analyze_stmt): Likewise.
40456 (vect_is_simple_use): Likewise.
40457
40458 2015-01-29 Jeff Law <law@redhat.com>
40459
40460 * combine.c (try_combine): Fix typo in comment.
40461
40462 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
40463
40464 PR target/64580
40465 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
40466 (rs6000_stack_info): Add assert.
40467 (rs6000_output_savres_externs): New function, split off from...
40468 (rs6000_output_function_prologue): ... here. Do not call it for
40469 thunks.
40470
40471 2015-01-29 Jeff Law <law@redhat.com>
40472
40473 PR target/15184
40474 * combine.c (try_combine): If I0 is a memory load and I3 a store
40475 to a related address, increase the "goodness" of doing a 4-insn
40476 combination with I0-I3.
40477 (make_field_assignment): Handle SUBREGs in the ior+and case.
40478
40479 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
40480
40481 PR tree-optimization/64746
40482 * tree-if-conv.c (mask_exists): New function.
40483 (predicate_mem_writes): Save created mask with given size for further
40484 use.
40485 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
40486 (ifcvt_repair_bool_pattern): Collect all statements that are root
40487 of bool pattern and use iterative algorithm to remove multiple uses
40488 of predicates, display number of required iterations.
40489
40490 2015-01-29 Richard Biener <rguenther@suse.de>
40491
40492 PR tree-optimization/64853
40493 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
40494 stmt will get simulated again.
40495 * tree-ssa-ccp.c (valueize_op_1): Likewise.
40496
40497 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40498
40499 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
40500 return_in_pc. Remove redundant assignments.
40501 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
40502 (arm_expand_epilogue): Don't compare boolean with true in if condition.
40503
40504 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
40505
40506 * config/i386/i386.c (ix86_mode_after): Make static.
40507
40508 2015-01-29 Richard Biener <rguenther@suse.de>
40509
40510 PR tree-optimization/64844
40511 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
40512 dump cost model analysis.
40513 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
40514 Do not register adjusted load/store costs here.
40515
40516 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
40517 Uros Bizjak <ubizjak@gmail.com>
40518
40519 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
40520 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
40521 using x86_use_pseudo_pic_reg.
40522 * config/i386/i386.c (ix86_conditional_register_usage): Remove
40523 support for fixed PIC register.
40524 (ix86_use_pseudo_pic_reg): Not static any more.
40525
40526 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
40527
40528 PR middle-end/64805
40529 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
40530 to avoid error in cgraph node verification.
40531
40532 2015-01-29 Marek Polacek <polacek@redhat.com>
40533
40534 * doc/standards.texi: Reflect that the default for C is gnu11.
40535
40536 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
40537
40538 PR target/64761
40539 * reorg.c (switch_text_sections_between_p): New function.
40540 (relax_delay_slots): Call it when testing if the jump insn
40541 is removable. Use targetm.can_follow_jump when testing if
40542 the conditional branch can follow an unconditional jump.
40543
40544 2015-01-27 Caroline Tice <cmtice@google.com>
40545
40546 Committing VTV Cywin/Ming patch for Patrick Wollgast
40547 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
40548 if -fvtable-verify=preinit/std is used.
40549 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
40550 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
40551 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
40552 if -fvtable-verify=preinit/std is used.
40553 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
40554 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
40555 if -fvtable-verify=preinit/std is used.
40556 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
40557 * config/i386/mingw32.h (LIB_SPEC): Likewise.
40558 * varasm.c (assemble_variable): Add code to properly set the comdat
40559 section and name for the .vtable_map_vars section in case the
40560 target is PE or COFF.
40561
40562 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
40563
40564 PR ipa/64801
40565 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
40566 make sane BB profile.
40567 (cgraph_node::expand_thunk): Make sane BB profile.
40568 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
40569 * cgraph.h (init_lowered_empty_function): Update prototype.
40570 * config/i386/i386.c (make_resolver_func): Update call.
40571 * predict.c (gate): Disable branch prediction pass if
40572 profile is already there.
40573
40574 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
40575
40576 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
40577 * opth-gen.awk: Likewise.
40578 * common.opt: Mark flag_fp_contract_mode as Optimization.
40579
40580 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
40581
40582 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
40583 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
40584
40585 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
40586
40587 PR target/64659
40588 * config/sh/predicates.md (atomic_arith_operand,
40589 atomic_logical_operand): Remove.
40590 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
40591 (atomic_arith_operand_0): New predicate.
40592 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
40593 Use atomic_arith_operand_0 for input values.
40594 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
40595 atomic_compare_and_swap<mode>_soft_gusa,
40596 atomic_compare_and_swap<mode>_soft_tcb,
40597 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
40598 arith_reg_operand instead of register_operand.
40599 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
40600 atomic_arith_operand_0 for newval input.
40601 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
40602 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
40603 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
40604 arith_reg_operand instead of register_operand.
40605 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
40606 fetchop_predicate_1, fetchop_constraint_1_llcs,
40607 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
40608 fetchop_constraint_1_imask): New code iterator attributes.
40609 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
40610 register_operand. Use fetchop_predicate_1.
40611 (atomic_fetch_<fetchop_name>si_hard,
40612 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
40613 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
40614 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
40615 and arith_reg_operand instead of register_operand. Use
40616 fetchop_predicate_1, fetchop_constraint_1_gusa.
40617 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
40618 and arith_reg_operand instead of register_operand. Use
40619 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
40620 to allow R0 usage.
40621 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
40622 and arith_reg_operand instead of register_operand. Use
40623 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
40624 to allow R0 usage.
40625 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
40626 register_operand. Use atomic_logical_operand_1.
40627 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
40628 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
40629 arith_reg_operand instead of register_operand.
40630 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
40631 Use arith_reg_dest and arith_reg_operand instead of register_operand.
40632 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
40633 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
40634 register_operand. Use fetchop_predicate_1.
40635 (atomic_<fetchop_name>_fetchsi_hard,
40636 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
40637 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
40638 fetchop_constraint_1_llcs.
40639 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
40640 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
40641 fetchop_constraint_1_gusa.
40642 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
40643 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
40644 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
40645 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
40646 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
40647 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
40648 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
40649 register_operand. Use atomic_logical_operand_1.
40650 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
40651 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
40652 arith_reg_operand instead of register_operand.
40653 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
40654 arith_reg_operand instead of register_operand. Use logical_operand
40655 and K08. Adjust asm sequence to allow R0 usage.
40656 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
40657 arith_reg_operand instead of register_operand. Use logical_operand
40658 and K08.
40659
40660 2015-01-28 Jakub Jelinek <jakub@redhat.com>
40661
40662 PR other/63504
40663 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
40664 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
40665 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
40666 only get_full_len HOST_WIDE_INTs from get_val () array rather than
40667 all bits in *val_wide.
40668
40669 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
40670
40671 * varpool.c (tls_model_names): Fix names.
40672 (varpool_node::dump): Dump tls- prefix for tls models.
40673
40674 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
40675 Bernd Schmidt <bernds@codesourcery.com>
40676 Nathan Sidwell <nathan@codesourcery.com>
40677
40678 * config/nvptx/mkoffload.c: New file.
40679 * config/nvptx/t-nvptx: Add build rules for it.
40680 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
40681 (extra_programs): Add mkoffload.
40682 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
40683 function.
40684 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
40685
40686 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
40687
40688 PR middle-end/64809
40689 * cfgexpand.c (reorder_operands): Skip debug gimples.
40690
40691 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
40692
40693 PR tree-optimization/64277
40694 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
40695 range info when possible to refine estimation.
40696
40697 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
40698
40699 PR tree-optimization/64718
40700 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
40701 be a 16bit unsigned integer when n->range is 16.
40702 (bswap_replace): Convert src to that type if necessary for all bswap
40703 sizes. Fix rotation right notation in nearby comment. Use bswap_type
40704 set in pass_optimize_bswap::execute ().
40705
40706 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
40707
40708 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
40709 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
40710 integer and floating point variants.
40711 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
40712
40713 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
40714
40715 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
40716 for all vector modes.
40717
40718 2015-01-28 Jakub Jelinek <jakub@redhat.com>
40719
40720 PR bootstrap/64612
40721 * doc/sourcebuild.texi (comdat_group): Document.
40722
40723 2015-01-28 Terry Guo <terry.guo@arm.com>
40724
40725 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
40726
40727 2015-01-27 David Malcolm <dmalcolm@redhat.com>
40728
40729 * toplev.c (print_version): Add param "show_global_state", and
40730 only print GGC and plugin information if it is true.
40731 (init_asm_output): Pass in "true" for the new param when calling
40732 print_version.
40733 (process_options): Likewise.
40734 (toplev::main): Likewise.
40735 * toplev.h (print_version): Add new param to decl.
40736
40737 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
40738
40739 PR ipa/60871
40740 PR ipa/64139
40741 * tree.c (lookup_binfo_at_offset): New function.
40742 (get_binfo_at_offset): Use it.
40743
40744 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
40745
40746 PR ipa/64282
40747 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
40748 on vtable being vtable.
40749
40750 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
40751
40752 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
40753 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
40754 -mhotpatch= option.
40755 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
40756 -mno-hotpatch options. Change syntax of -mhotpatch= option.
40757 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
40758 Renamed.
40759 (s390_hotpatch_trampoline_halfwords_max): Renamed.
40760 (s390_hotpatch_hw_max): New name.
40761 (s390_hotpatch_trampoline_halfwords): Renamed.
40762 (s390_hotpatch_hw_before_label): New name.
40763 (get_hotpatch_attribute): Removed.
40764 (s390_hotpatch_hw_after_label): New name.
40765 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
40766 attribute.
40767 (s390_attribute_table): Ditto.
40768 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
40769 (s390_function_num_hotpatch_hw): New name.
40770 Remove special handling of inline functions and hotpatching.
40771 Return number of nops before and after the function label.
40772 (s390_can_inline_p): Removed.
40773 (s390_asm_output_function_label): Emit a configurable number of nops
40774 after the function label.
40775 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
40776 (TARGET_CAN_INLINE_P) Removed.
40777 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
40778
40779 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40780 Jiong Wang <jiong.wang@arm.com>
40781
40782 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
40783 of scratch reg.
40784 (cb<optab><mode>1): Likewise.
40785 * config/aarch64/iterators.md (bcond): New define_code_attr.
40786
40787 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40788
40789 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
40790 memory accesses.
40791
40792 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40793
40794 * config/s390/s390.c (s390_register_move_cost): Increase costs for
40795 FPR->GPR moves.
40796
40797 2015-01-27 Richard Biener <rguenther@suse.de>
40798
40799 * tree-vrp.c (update_value_range): Intersect the range with
40800 old recorded SSA name range information.
40801
40802 2015-01-27 Nick Clifton <nickc@redhat.com>
40803
40804 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
40805 BC, DE and HL registers directly, not via AX.
40806 When decrementing the stack pointer by a large amount, transfer SP
40807 into AX and perform the subtraction there.
40808 (rl78_expand_epilogue): Perform the inverse of the above
40809 enhancements.
40810
40811 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40812
40813 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
40814
40815 2015-01-27 Jakub Jelinek <jakub@redhat.com>
40816 Yury Gribov <y.gribov@samsung.com>
40817
40818 PR ubsan/64741
40819 * ubsan.c (ubsan_source_location): Refactor code.
40820 (ubsan_type_descriptor): Update type size. Refactor code.
40821
40822 2015-01-27 Richard Biener <rguenther@suse.de>
40823
40824 PR tree-optimization/56273
40825 PR tree-optimization/59124
40826 PR tree-optimization/64277
40827 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
40828 from the first VRP pass.
40829
40830 2015-01-27 Jakub Jelinek <jakub@redhat.com>
40831
40832 PR ipa/64776
40833 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
40834 handle the first argument in the same loop as all the other arguments.
40835
40836 PR rtl-optimization/61058
40837 * jump.c (cleanup_barriers): Update basic block boundaries
40838 if BLOCK_FOR_INSN is non-NULL on PREV.
40839
40840 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
40841
40842 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
40843 bounds narrowing, already instrumented calls and calls to
40844 not instrumentable functions.
40845
40846 2015-01-27 Jakub Jelinek <jakub@redhat.com>
40847
40848 PR tree-optimization/64807
40849 * wide-int.cc (wi::divmod_internal): Clear
40850 b_dividend[dividend_blocks_needed].
40851
40852 2015-01-26 DJ Delorie <dj@redhat.com>
40853
40854 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
40855 volatile memory references.
40856
40857 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
40858
40859 PR target/49263
40860 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
40861 remove_insn.
40862 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
40863 shifts if it already fits into K08.
40864
40865 2015-01-26 Jakub Jelinek <jakub@redhat.com>
40866
40867 PR ipa/64730
40868 * ipa-inline.c (inline_small_functions): Print "unknown" even
40869 if edge->call_stmt is non-NULL, but has builtins or unknown
40870 location.
40871
40872 PR middle-end/64421
40873 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
40874 with asterisk, skip the first character.
40875
40876 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
40877
40878 PR target/64806
40879 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
40880 order change.
40881
40882 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
40883
40884 PR target/64795
40885 * config/i386/i386.md (*movdi_internal): Also check operand 0
40886 to determine TYPE_LEA operand.
40887 (*movsi_internal): Ditto.
40888
40889 2015-01-26 Jakub Jelinek <jakub@redhat.com>
40890
40891 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
40892 OPTION_MASK_QUAD_MEMORY_ATOMIC.
40893
40894 2015-01-26 Renlin Li <renlin.li@arm.com>
40895
40896 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
40897 the comment.
40898 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
40899 for higher part.
40900
40901 2015-01-26 Richard Biener <rguenther@suse.de>
40902
40903 PR middle-end/64764
40904 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
40905 combining two BIT_AND_EXPR predicates.
40906
40907 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
40908
40909 PR bootstrap/64754
40910 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
40911
40912 2015-01-26 Terry Guo <terry.guo@arm.com>
40913
40914 * config/arm/arm.c (arm_file_start): Update the assignment of
40915 Tag_ABI_HardFP_use.
40916
40917 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
40918
40919 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
40920 pipeline model.
40921 config/arm/arm.md: Include the new Cortex-A57 model.
40922 (generic_sched): Don't use generic_sched when tuning for
40923 Cortex-A57.
40924
40925 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
40926 Uros Bizjak <ubizjak@gmail.com>
40927
40928 * config/i386/i386.c (get_builtin_code_for_version): Add
40929 support for BMI and BMI2 multiversion functions.
40930
40931 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40932
40933 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
40934 (extract_bit_field): Likewise.
40935 (extract_low_bits): Likewise.
40936 (expand_mult): Likewise.
40937 (expand_mult_highpart_adjust): Likewise.
40938
40939 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
40940
40941 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
40942 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
40943 * config/i386/i386.c (processor_model): Add
40944 M_INTEL_COREI7_BROADWELL.
40945 (arch_names_table): Add "broadwell".
40946
40947 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
40948
40949 PR target/49263
40950 PR target/53987
40951 PR target/64345
40952 PR target/59533
40953 PR target/52933
40954 PR target/54236
40955 PR target/51244
40956 * config/sh/sh-protos.h
40957 (sh_extending_set_of_reg::can_use_as_unextended_reg,
40958 sh_extending_set_of_reg::use_as_unextended_reg,
40959 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
40960 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
40961 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
40962 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
40963 (sh_treg_insns): New class.
40964 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
40965 (scope_counter): New class.
40966 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
40967 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
40968 sh_extending_set_of_reg::can_use_as_unextended_reg,
40969 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
40970 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
40971 sh_split_treg_set_expr): New functions.
40972 (addsubcosts): Handle treg_set_expr.
40973 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
40974 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
40975 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
40976 (sh_insn_operands_modified_between_p): Make non-static.
40977 * config/sh/predicates.md (zero_extend_movu_operand): Allow
40978 simple_mem_operand in addition to displacement_mem_operand.
40979 (zero_extend_operand): Don't allow zero_extend_movu_operand.
40980 (treg_set_expr, treg_set_expr_not_const01,
40981 arith_reg_or_treg_set_expr): New predicates.
40982 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
40983 arith_or_int_operand instead of logical_operand. Convert to
40984 insn_and_split. Try to optimize constant operand in splitter.
40985 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
40986 (*tstqi_t_zero): Delete.
40987 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
40988 (tstsi_t_and_not): Delete.
40989 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
40990 Convert to insn_and_split.
40991 (unnamed split, tstsi_t_zero_extract_xor,
40992 tstsi_t_zero_extract_subreg_xor_little,
40993 tstsi_t_zero_extract_subreg_xor_big): Delete.
40994 (*tstsi_t_shift_mask): New insn_and_split.
40995 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
40996 to recombine with surrounding insns when splitting.
40997 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
40998 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
40999 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
41000 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
41001 (*cbranch_div0s: Delete.
41002 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
41003 Try to recombine with surrounding insns when splitting. Add operand
41004 order variants.
41005 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
41006 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
41007 *addc_r_r_msb, *addc_2r_msb): Delete.
41008 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
41009 order variant.
41010 (*addc_negreg_t): New insn_and_split.
41011 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
41012 Try to recombine with surrounding insns when splitting.
41013 Add operand order variants.
41014 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
41015 insn_and_split patterns.
41016 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
41017 surrounding insns when splitting.
41018 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
41019 (*rotcl): Likewise. Add zero_extract variant.
41020 (*ashrsi2_31): New insn_and_split.
41021 (*negc): Convert to insn_and_split. Use treg_set_expr.
41022 (*zero_extend<mode>si2_disp_mem): Update comment.
41023 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
41024 condition.
41025 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
41026 with surrounding insns when splitting.
41027 (any_treg_expr_to_reg): New insn_and_split.
41028 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
41029 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
41030 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
41031 *zero_extract_2): New single bit zero extract patterns.
41032 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
41033 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
41034 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
41035 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
41036 set destination.
41037 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
41038 register_operand for set source.
41039
41040 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
41041
41042 * i386.opt (prefetch_sse): New targetsave.
41043 * i386.c (ix86_function_specific_save): Save prefetch_sse.
41044 (ix86_function_specific_restore): Restore prefetch_sse and initialize
41045 ix86_cost/ix86_tune_cost.
41046
41047 2015-01-23 David Malcolm <dmalcolm@redhat.com>
41048
41049 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
41050 Support the JIT by using 0 as the language type.
41051
41052 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
41053
41054 PR target/64317
41055 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
41056 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
41057 (mark_regno_live, process_bb_lives): Pass new parameter value to
41058 make_hard_regno_born.
41059
41060 2015-01-23 Jakub Jelinek <jakub@redhat.com>
41061
41062 PR rtl-optimization/63637
41063 PR rtl-optimization/60663
41064 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
41065 if elt->cost is MAX_COST for ASM_OPERANDS.
41066 (find_sets_in_insn): Fix up comment typo.
41067 (cse_insn): Don't set src_volatile for all non-volatile
41068 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
41069 or with "memory" clobber. Set elt->cost to MAX_COST
41070 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
41071 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
41072
41073 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
41074
41075 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
41076 alternative 1.
41077
41078 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
41079
41080 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
41081 libgcc/config/i386/elf-lib.h.
41082
41083 2015-01-23 Jakub Jelinek <jakub@redhat.com>
41084
41085 PR driver/64737
41086 * gcc.c (print_configuration): Don't print a blank line at the end
41087 here...
41088 (run_attempt): ... but here unstead.
41089
41090 PR middle-end/64734
41091 * omp-low.c (scan_sharing_clauses): Don't ignore
41092 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
41093 on target data/update constructs.
41094
41095 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
41096
41097 PR target/50928
41098 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
41099 (DEBUG_RELOAD): Removed define.
41100 (m32c_limit_reload_class): Enable traces with if DEBUG0.
41101 (m32c_function_arg): Added a type cast.
41102 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
41103 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
41104 * config/m32c/bitops.md (andqi3_16): Likewise.
41105 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
41106 (push_a01_l): Likewise.
41107
41108 2015-01-23 David Malcolm <dmalcolm@redhat.com>
41109
41110 PR jit/64721
41111 * main.c (main): Construct toplev instances with init_signals=true.
41112 * toplev.c (general_init): Add param "init_signals", and use it to
41113 conditionalize the calls to signal and host_hooks.extra_signals.
41114 (toplev::toplev): Add param "init_signals".
41115 (toplev::main): When invoking general_init, pass m_init_signals
41116 to control whether signal-handlers are installed.
41117 * toplev.h (toplev::toplev): Add param "init_signals".
41118 (toplev::m_init_signals): New field.
41119
41120 2015-01-23 David Malcolm <dmalcolm@redhat.com>
41121
41122 PR jit/64722
41123 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
41124 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
41125 latter may be affected by the former (e.g. on i686).
41126
41127 2015-01-23 Martin Liska <mliska@suse.cz>
41128
41129 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
41130 false positive during profiledbootstrap.
41131
41132 2015-01-23 Tom de Vries <tom@codesourcery.com>
41133
41134 PR libgomp/64672
41135 * lto-opts.c (lto_write_options): Output non-explicit conservative
41136 -fno-openacc.
41137 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
41138 (append_compiler_options): Pass -fopenacc through.
41139
41140 2015-01-23 Tom de Vries <tom@codesourcery.com>
41141
41142 PR libgomp/64707
41143 * lto-opts.c (lto_write_options): Output non-explicit conservative
41144 -fno-openmp.
41145 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
41146 (append_compiler_options): Pass -fopenmp through.
41147
41148 2015-01-23 Jakub Jelinek <jakub@redhat.com>
41149
41150 PR debug/64511
41151 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
41152 GTY markup.
41153
41154 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
41155 * diagnostic.def (DK_ICE_NOBT): New kind.
41156 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
41157 like DK_ICE, but never print backtrace.
41158 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
41159 (internal_error_no_backtrace): New function.
41160 * gcc.c (execute): Use internal_error_no_backtrace instead of
41161 internal_error.
41162
41163 2015-01-22 Jeff Law <law@redhat.com>
41164
41165 PR target/52076
41166 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
41167 improve code density for small immediate to memory case.
41168 (insv): Better handle bitfield assignments when the field is
41169 being set to all ones.
41170 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
41171 operand predicate.
41172
41173 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41174 Jakub Jelinek <jakub@redhat.com>
41175
41176 PR middle-end/64729
41177 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
41178 for !TARGET_LIBC_PROVIDES_SSP version and
41179 -fstack-protector-{all,strong,explicit} otherwise.
41180 * config/freebsd.h (LINK_SSP_SPEC): Handle
41181 -fstack-protector-{strong,explicit}.
41182
41183 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
41184 H.J. Lu <hongjiu.lu@intel.com>
41185
41186 PR ipa/64694
41187 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
41188 heap.
41189
41190 2015-01-22 Wei Mi <wmi@google.com>
41191
41192 PR rtl-optimization/64557
41193 * dse.c (record_store): Call get_addr for mem_addr.
41194 (check_mem_read_rtx): Likewise.
41195
41196 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
41197
41198 * fold-const.c (const_binop): Add early return for non-tcc_binary.
41199
41200 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
41201
41202 * toplev.c (init_local_tick): Process the failure when read
41203 fails for random_seed.
41204
41205 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
41206 'pretty_name' to avoid memory overflow.
41207
41208 2015-01-22 Richard Biener <rguenther@suse.de>
41209
41210 PR middle-end/64728
41211 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
41212 abnormal coalescing on undefined SSA names.
41213
41214 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
41215
41216 PR target/64688
41217 PR target/64477
41218 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
41219 for alternative 3.
41220 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
41221
41222 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
41223
41224 PR middle-end/63325
41225 * fold-const.c (fold_checksum_tree): Don't include value of
41226 expr->decl_with_vis.symtab_node in the checksum.
41227
41228 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
41229
41230 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
41231
41232 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
41233
41234 PR driver/64690
41235 * gcc.c (insert_comments): New function.
41236 (try_generate_repro): Call it.
41237 (append_text): Removed.
41238
41239 2015-01-22 Richard Biener <rguenther@suse.de>
41240
41241 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
41242 with IL incompatible options. Properly honor user optimize
41243 attributes.
41244
41245 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
41246
41247 PR rtl-optimization/64682
41248 * combine.c (distribute_notes): When moving a death note for
41249 a register that is set in the new I2, make sure to put it
41250 before that new I2.
41251
41252 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
41253
41254 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
41255 not TARGET_DEFAULT.
41256
41257 2015-01-21 Jakub Jelinek <jakub@redhat.com>
41258
41259 PR debug/64511
41260 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
41261 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
41262 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
41263
41264 PR sanitizer/64706
41265 * doc/invoke.texi (-fsanitize=vptr): Document.
41266
41267 PR rtl-optimization/62078
41268 * dse.c: Include cfgcleanup.h.
41269 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
41270 anything call purge_all_dead_edges and cleanup_cfg at the end
41271 of the pass.
41272
41273 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
41274
41275 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
41276 edges.
41277
41278 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
41279
41280 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
41281 decl attribute.
41282
41283 2015-01-21 David Sherwood <david.sherwood@arm.com>
41284 Tejas Belagod <Tejas.Belagod@arm.com>
41285
41286 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
41287 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
41288 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
41289 Removed.
41290
41291 2015-01-21 David Sherwood <david.sherwood@arm.com>
41292 Tejas Belagod <Tejas.Belagod@arm.com>
41293
41294 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
41295 (aarch64_reverse_mask): New decls.
41296 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
41297 (insn_count): New mode_attr.
41298 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
41299 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
41300 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
41301 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
41302 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
41303 (aarch64_simd_st4): New patterns.
41304 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
41305 (aarch64_reverse_mask): New functions.
41306
41307 2015-01-21 Alan Hayward <alan.hayward@arm.com>
41308
41309 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
41310 Declare.
41311 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
41312 addressing modes for BE.
41313 (aarch64_print_operand): Add 'R' specifier.
41314 (aarch64_simd_disambiguate_copy): Delete.
41315 (aarch64_simd_emit_reg_reg_move): New function.
41316 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
41317 in define_splits for structural moves.
41318 (mov<mode>): Use less restrictive predicates.
41319 (*aarch64_mov<mode>): Simplify and only allow for LE.
41320 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
41321
41322 2015-01-21 Alan Hayward <alan.hayward@arm.com>
41323
41324 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
41325
41326 2015-01-21 Richard Henderson <rth@redhat.com>
41327
41328 PR target/64669
41329 * ccmp.c (used_in_cond_stmt_p): Remove.
41330 (expand_ccmp_expr): Don't use it.
41331
41332 2015-01-21 Nick Clifton <nickc@redhat.com>
41333
41334 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
41335 PARALLELs.
41336
41337 2015-01-21 Richard Biener <rguenther@suse.de>
41338
41339 PR middle-end/64313
41340 * tree-core.h (builtin_info, builtin_info_type): Turn from
41341 an object with two arrays into an array of an object with
41342 decl and two flags, implicit_p and declared_p.
41343 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
41344 set_builtin_decl, set_builtin_decl_implicit_p,
41345 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
41346 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
41347 * builtins.c (builtin_info): Adjust.
41348 * gimplify.c (gimplify_addr_expr): References to builtins
41349 that have been declared by the user makes them eligible for
41350 use by the compiler. Call set_builtin_decl_implicit_p on them.
41351
41352 2015-01-20 Jeff Law <law@redhat.com>
41353
41354 PR target/59946
41355 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
41356 allow pc-relative addresses in operand predicates or constraints.
41357
41358 2015-01-21 Bin Cheng <bin.cheng@arm.com>
41359
41360 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
41361 neon on aarch32 processors for stringops.
41362
41363 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41364
41365 PR ipa/63576
41366 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
41367
41368 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41369
41370 PR lto/45375
41371 * ipa-inline.c: Include lto-streamer.h
41372 (report_inline_failed_reason): Output source file differences and
41373 flags on optimization/target node mismatch.
41374 (can_inline_edge_p): Consider caller to be the outer inline function;
41375 be less restrictive about matching opimize and optimize_size attributes.
41376 (inline_account_function_p): Break out from ...
41377 (inline_small_functions): ... here.
41378 * ipa-inline-transform.c (clone_inlined_nodes): Use
41379 inline_account_function_p.
41380 (inline_call): Use optimize attribution; use inline_account_function_p.
41381 (inline_transform): Use opt_for_fn.
41382 * ipa-inline.h (inline_account_function_p): Declare.
41383
41384 2015-01-20 Jakub Jelinek <jakub@redhat.com>
41385
41386 PR debug/64663
41387 * dwarf2out.c (decl_piece_node): Don't put bitsize into
41388 mode if bitsize <= 0.
41389 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
41390 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
41391 sizes and positions.
41392
41393 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
41394
41395 * config/nios2/nios2.c (nios2_asm_file_end): Implement
41396 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
41397 needed.
41398 (TARGET_ASM_FILE_END): Define.
41399
41400 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
41401
41402 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
41403 (struct tune_params): Use the enum.
41404 * arm.c (arm_*_tune): Update.
41405 (arm_option_override): Update.
41406
41407 2015-01-20 Richard Biener <rguenther@suse.de>
41408
41409 PR ipa/64684
41410 * ipa-reference.c (add_static_var): Inline ...
41411 (analyze_function): ... here after splitting out from ...
41412 (is_proper_for_analysis): ... this.
41413
41414 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
41415
41416 PR target/64149
41417 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
41418 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
41419 replace the conditional with it's true branch.
41420 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
41421 (arm_lra_p): Remove.
41422
41423 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
41424
41425 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
41426
41427 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41428
41429 * config/tilegx/mul-tables.c: Move symtab.h include after
41430 coretypes.h include.
41431 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
41432 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
41433 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
41434 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
41435 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
41436
41437 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
41438
41439 PR bootstrap/64676
41440 Revert:
41441 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
41442
41443 PR rtl-optimization/64081
41444 * loop-iv.c (def_pred_latch_p): New function.
41445 (latch_dominating_def): Allow specific cases with non-single
41446 definitions.
41447 (iv_get_reaching_def): Likewise.
41448 (check_complex_exit_p): New function.
41449 (check_simple_exit): Use check_complex_exit_p to allow certain cases
41450 with exits not executing on any iteration.
41451
41452 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41453
41454 PR lto/45375
41455 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
41456 to set branch cost.
41457
41458 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41459
41460 PR lto/45375
41461 * i386.c (gate): Check flag_expensive_optimizations and
41462 optimize_size.
41463 (ix86_option_override_internal): Drop optimize_size condition
41464 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
41465 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
41466 MASK_PREFER_AVX128.
41467 (ix86_avx256_split_vector_move_misalign,
41468 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
41469 * sse.md (all uses of TARGET_PREFER_AVX128): Add
41470 optimize_insn_for_speed_p check.
41471
41472 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
41473
41474 * config/mips/mips.h (FP_ASM_SPEC): New define.
41475 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
41476 instead.
41477
41478 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
41479
41480 PR target/53988
41481 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
41482 nullptr for insn when reaching the first insn.
41483 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
41484 (sh_insn_operands_modified_between_p): Add nullptr check.
41485 (sh_find_extending_set_of_reg): Fix log message. Don't accept
41486 sign extending mem load if the insn contains any UNSPEC or
41487 UNSPEC_VOLATILE.
41488
41489 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41490
41491 * params.def (inline-unit-growth): Drop to 15%.
41492 * invoke.texi (inline-unit-growth): Document change.
41493
41494 2015-01-19 Martin Liska <mliska@suse.cz>
41495
41496 PR ipa/64668
41497 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
41498 function for second argument of OBJ_TYPE_REF.
41499
41500 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41501
41502 PR ipa/64218
41503 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
41504 whether function is an alias.
41505
41506 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41507
41508 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
41509 cases.
41510
41511 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
41512
41513 PR rtl-optimization/64671
41514 * lra-remat.c (operand_to_remat): Don't consider jump and call
41515 insns.
41516
41517 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
41518
41519 PR target/59828
41520 * config/rs6000/default64.h: Include rs6000-cpus.def.
41521 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
41522 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
41523 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
41524 and POWER8.
41525 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
41526 POWER8.
41527 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
41528 pseudo-op to specify assembler dialect.
41529
41530 2015-01-19 Martin Liska <mliska@suse.cz>
41531
41532 PR ipa/64664
41533 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
41534 Handle safe potentially removed nodes during filtering.
41535
41536 2015-01-19 Martin Liska <mliska@suse.cz>
41537
41538 * doc/extend.texi (no_icf): Add new attribute description.
41539 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
41540 where the pass attempts to merge a function with no_icf attribute.
41541
41542 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41543
41544 PR target/64532
41545 * doc/md.texi (ARM Options): Document register constraints.
41546
41547 2015-01-19 Jiong Wang <jiong.wang@arm.com>
41548 Andrew Pinski <apinski@cavium.com>
41549
41550 PR target/64304
41551 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
41552 (ashl<mode>3): Don't expand if operands[2] is not constant.
41553
41554 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41555
41556 PR target/64448
41557 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
41558 Match xor-and-xor RTL pattern.
41559
41560 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
41561
41562 PR rtl-optimization/64081
41563 * loop-iv.c (def_pred_latch_p): New function.
41564 (latch_dominating_def): Allow specific cases with non-single
41565 definitions.
41566 (iv_get_reaching_def): Likewise.
41567 (check_complex_exit_p): New function.
41568 (check_simple_exit): Use check_complex_exit_p to allow certain cases
41569 with exits not executing on any iteration.
41570
41571 2015-01-19 Jakub Jelinek <jakub@redhat.com>
41572
41573 * common.opt (fgraphite): Fix a typo.
41574
41575 2015-01-19 Felix Yang <felix.yang@huawei.com>
41576
41577 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
41578 pattern.
41579 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
41580 uminp, smax_nanp, smin_nanp): New builtins.
41581 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
41582 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
41583 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
41584 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
41585 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
41586 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
41587 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
41588 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
41589 vpminnms_f32): Rewrite using builtin functions.
41590
41591 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
41592
41593 PR libgomp/64625
41594 * omp-low.c (offload_symbol_decl): Remove variable.
41595 (get_offload_symbol_decl): Remove function.
41596 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
41597 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
41598 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
41599 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
41600 BUILT_IN_GOACC_UPDATE don't pass it at all.
41601
41602 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
41603
41604 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
41605 callers.
41606
41607 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
41608
41609 * ipa-chkp.c (chkp_produce_thunks): Add early param
41610 to split thunks production into two passes. Keep
41611 'always_inline' function bodies after the first pass.
41612 (pass_data_ipa_chkp_early_produce_thunks): New.
41613 (pass_ipa_chkp_early_produce_thunks): New.
41614 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
41615 chkp_produce_thunks signature.
41616 (make_pass_ipa_chkp_early_produce_thunks): New.
41617 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
41618 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
41619 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
41620
41621 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
41622
41623 * cgraph.c (cgraph_node::dump): Dump profile flags.
41624
41625 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
41626
41627 PR target/64652
41628 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
41629 reg appear first in the parallel.
41630
41631 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
41632
41633 * ipa-reference.c (set_reference_optimization_summary,
41634 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
41635 disabled.
41636 (ignore_module_statics): New static var.
41637 (propagate_bits): If ipa-reference is disabled, do not look into local
41638 properties.
41639 (analyze_function): Disable analysis when ipa_reference is disabled.
41640 (generate_summary): Do not dump when reference is disabled;
41641 collect vars accessed from functions with ipa-reference disabled.
41642 (get_read_write_all_from_node): When ipa-reference is disabled, use the
41643 node flags.
41644 (gate): Enable for LTO.
41645 (ignore_edge_p): New function.
41646 (propagate): Skip functions w/o ipa-reference analysis.
41647 * optc-save-gen.awk: Handle optimize_debug correctly.
41648 * opth-gen.awk: Likewise.
41649 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
41650 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
41651 fira-share-save-slots, fira-share-spill-slots,
41652 fmodulo-sched-allow-regmoves, fpartial-inlining,
41653 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
41654 ftracer, ftree-parallelize-loops, fassociative-math,
41655 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
41656 Optimization
41657 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
41658 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
41659 Optimization.
41660 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
41661 Fix for IPA.
41662
41663 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
41664
41665 PR ipa/64378
41666 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
41667 flag correctly.
41668 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
41669
41670 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
41671
41672 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
41673 Remove duplicate option listings.
41674
41675 2015-01-18 Felix Yang <felix.yang@huawei.com>
41676
41677 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
41678 (autofdo_source_profile::get_callsite_total_count,
41679 function_instance::get_function_instance_by_decl,
41680 string_table::get_index, string_table::get_index_by_decl,
41681 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
41682 Fix comment typos. Reformatting and minor code rearrangement.
41683
41684 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
41685
41686 * config/rs6000/rs6000.md (probe_stack): Delete.
41687 (probe_stack_address): New.
41688
41689 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
41690
41691 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
41692 to test for 32-bit ABIs, not !TARGET_POWERPC64.
41693
41694 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
41695
41696 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
41697 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
41698 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
41699 snafu.
41700 (rs6000_libcall_value): Use the new function.
41701
41702 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
41703
41704 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
41705
41706 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
41707
41708 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
41709 implement a more precise life analysis for it during backward scan.
41710
41711 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
41712
41713 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
41714
41715 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
41716
41717 PR rtl-optimization/52773
41718 * calls.c (emit_library_call_value): When pushing arguments use
41719 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
41720 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
41721 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
41722
41723 2015-01-17 Jeff Law <law@redhat.com>
41724
41725 PR rtl-optimization/32790
41726 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
41727 not ZERO_EXTEND in SET_DESTs.
41728
41729 2015-01-17 Alan Modra <amodra@gmail.com>
41730
41731 * cprop.c (do_local_cprop): Revert last change.
41732
41733 2015-01-16 DJ Delorie <dj@redhat.com>
41734 Nick Clifton <nickc@redhat.com>
41735
41736 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
41737 (addhi3_real): Likewise. Fix [HL+0] syntax.
41738 (subqi3_real): Likewise.
41739 (subhi3_real): Likewise.
41740 (cbranchqi4_real): Likewise. Allow saddr,#imm.
41741 (cbranchhi4_real): Likewise.
41742 (cbranchhi4_real_inverted): Likewise.
41743 (cbranchsi4_real_lt): Likewise.
41744 (cbranchsi4_real_ge): Likewise.
41745 (cbranchsi4_real_ge): Likewise.
41746 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
41747 (sub<mode>3_virt): Likewise.
41748 (cbranchqi4_virt): Likewise.
41749 (cbranchhi4_virt): Likewise.
41750 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
41751 always use '[reg+imm]' even when imm is zero.
41752 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
41753 (rl78_general_operand): New.
41754 (rl78_nonimmediate_operand): New.
41755 (rl78_nonfar_operand): Use them.
41756 (rl78_nonfar_nonimm_operand): Likewise.
41757 (rl78_stack_based_mem): Fix.
41758 * config/rl78/constraints.md (Ibqi): New.
41759 (IBqi): New.
41760 (Wsa): New.
41761 (Wsf): New.
41762 (Cs1): Fix.
41763 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
41764 (iorqi3): Likewise.
41765 (xorqi3): Likewise.
41766 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
41767
41768 * config/rl78/constrains (Qs8): New constraint.
41769 * config/rl78/rl78.c (rl78_flags_already_set): New function.
41770 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
41771 * config/rl78/rl78-real.md (update_Z): New attribute.
41772 Update patterns to set it.
41773 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
41774 shorter compare and branch sequence can be used.
41775 (cbranchhi4_real): Likewise.
41776 (cbranchhi4_real_inverted): Likewise.
41777
41778 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
41779 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
41780 address space.
41781 * config/rl78/rl78.c (rl78_get_name_encoding): New.
41782 (rl78_option_override): Allow -mes0 only if C.
41783 (characterize_address): Support subregs of symbol_refs.
41784 (rl78_addr_space_address_mode): Move. Add __near.
41785 (rl78_far_p): Likewise.
41786 (rl78_addr_space_pointer_mode): Likewise.
41787 (rl78_as_legitimate_address): Likewise.
41788 (rl78_addr_space_subset_p): Likewise.
41789 (rl78_addr_space_convert): Likewise.
41790 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
41791 symbols with -mes0.
41792 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
41793 addressing.
41794 (rl78_alloc_physical_registers_op1): Change logic to prefer
41795 symbol[BC] addressing.
41796 (frodata_section): New.
41797 (rl78_asm_init_sections): Initialize it.
41798 (rl78_select_section): Put __far readonly symbols in .frodata.
41799 (rl78_make_type_far): New.
41800 (rl78_insert_attributes): Force all readonly symbols to be
41801 __far when -mes0.
41802 (rl78_asm_out_integer): New.
41803 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
41804 * config/rl78/rl78.opt (-mes0): New.
41805
41806 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
41807 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
41808 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
41809 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
41810 (rl78_saddr_p): New.
41811 (rl78_output_aligned_common): New.
41812 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
41813 (rl78_handle_saddr_attribute): New.
41814 (rl78_handle_naked_attribute): New.
41815 (rl78_attribute_table): Add saddr.
41816 (rl78_print_operand_1): Don't print '!' on saddr operands.
41817 (rl78_print_operand_1): Strip encodings.
41818 (rl78_sfr_p): New.
41819 (rl78_strip_name_encoding): New.
41820 (rl78_attrlist_to_encoding): New.
41821 (rl78_encode_section_info): New.
41822 (rl78_asm_init_sections): New.
41823 (rl78_select_section): New.
41824 (rl78_output_labelref): New.
41825 (rl78_output_aligned_common): New.
41826 (rl78_asm_out_integer): New.
41827 (rl78_asm_ctor_dtor): New.
41828 (rl78_asm_constructor): New.
41829 (rl78_asm_destructor): New.
41830
41831 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
41832 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
41833 (transcode_memory_rtx): Update.
41834 (rl78_expand_epilogue): Use A_REG instead of 0.
41835
41836 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
41837
41838 * config/arm/arm-protos.h (struct tune_params): New field
41839 sched_autopref_queue_depth.
41840 * config/arm/arm.c (sched-int.h): Include header.
41841 (arm_first_cycle_multipass_dfa_lookahead_guard,)
41842 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
41843 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
41844 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
41845 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
41846 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
41847 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
41848 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
41849 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
41850 * config/arm/t-arm (arm.o): Update.
41851 * haifa-sched.c (update_insn_after_change): Update.
41852 (rank_for_schedule): Use auto-prefetcher model, if requested.
41853 (autopref_multipass_init): New static function.
41854 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
41855 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
41856 variable for debug dumps.
41857 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
41858 (autopref_multipass_dfa_lookahead_guard): New global function that
41859 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
41860 (init_h_i_d): Update.
41861 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
41862 * sched-int.h (enum autopref_multipass_data_status): New const enum.
41863 (autopref_multipass_data_): Structure for auto-prefetcher data.
41864 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
41865 (struct _haifa_insn_data:autopref_multipass_data): New field.
41866 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
41867 (autopref_multipass_dfa_lookahead_guard): Declare.
41868
41869 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
41870
41871 * rtlanal.c (get_base_term): Handle SCRATCH.
41872
41873 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
41874
41875 * config/aarch64/aarch64.c
41876 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
41877 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
41878 * config/arm/arm.c
41879 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
41880 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
41881
41882 2015-01-17 Alan Modra <amodra@gmail.com>
41883
41884 * cprop.c (do_local_cprop): Disallow replacement of fixed
41885 hard registers.
41886
41887 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41888
41889 PR target/62066
41890 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
41891 early return 0.
41892
41893 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
41894
41895 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
41896 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
41897
41898 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41899
41900 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
41901 * config/arm/thumb1.md: ... Here.
41902
41903 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
41904
41905 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
41906 TImode for TARGET_32BIT.
41907
41908 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
41909
41910 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
41911 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
41912 as ...
41913 (rs6000_abi_word_mode): New function.
41914
41915 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
41916
41917 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
41918 instead of UNITS_PER_WORD to describe the size of stack slots.
41919
41920 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
41921
41922 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
41923 as rs6000_promote_function_mode. Move comment to there.
41924 (rs6000_promote_function_mode): New function.
41925
41926 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
41927
41928 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
41929 -mpowerpc64 is active.
41930
41931 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
41932
41933 PR middle-end/64353
41934 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
41935 virtuals on start.
41936
41937 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
41938
41939 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
41940 introduced in revision 219724.
41941
41942 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41943 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41944
41945 PR target/64263
41946 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
41947 destination is not a GP reg.
41948 (*movdi_aarch64): Likewise.
41949
41950 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
41951
41952 PR target/64623
41953 * config/rs6000/default64.h: Revert ISA change.
41954
41955 2015-01-16 Richard Biener <rguenther@suse.de>
41956
41957 PR middle-end/64614
41958 * tree-ssa-uninit.c: Include tree-cfg.h.
41959 (MAX_SWITCH_CASES): New define.
41960 (convert_control_dep_chain_into_preds): Handle switch statements.
41961 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
41962 (normalize_one_pred_1): Do not split bit-manipulations.
41963 Record (x & CST).
41964
41965 2015-01-16 Richard Biener <rguenther@suse.de>
41966
41967 PR tree-optimization/64568
41968 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
41969 complex load rewriting for TARGET_MEM_REFs.
41970
41971 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
41972
41973 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
41974
41975 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
41976
41977 PR target/64149
41978 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
41979 variable.
41980 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
41981 (aarch64_lra_p): Remove.
41982
41983 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
41984
41985 PR target/64363
41986 * ipa-chkp.h (chkp_instrumentable_p): New.
41987 * ipa-chkp.c: Include tree-inline.h.
41988 (chkp_instrumentable_p): New.
41989 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
41990 Fix processing of not instrumentable functions.
41991 (chkp_versioning): Use chkp_instrumentable_p. Warn about
41992 not instrumentable functions.
41993 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
41994 chkp_instrumentable_p.
41995 * tree-inline.h (copy_forbidden): New.
41996 * tree-inline.c (copy_forbidden): Not static anymore.
41997
41998 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41999
42000 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
42001 ptr1, ptr2 unused.
42002
42003 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
42004
42005 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
42006 type OP_OUT to OP_INOUT.
42007
42008 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
42009
42010 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
42011 (high x) y) to y if x and y have the same base.
42012
42013 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
42014
42015 * config/arm/cortex-a57.md: New.
42016 * config/aarch64/aarch64.md: Include it.
42017 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
42018 * config/aarch64/aarch64-tune.md: Regenerate.
42019
42020 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
42021
42022 PR target/64015
42023 * ccmp.c (expand_ccmp_next): New function.
42024 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
42025 and compare insn sequence.
42026 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
42027 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
42028 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
42029 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
42030 (*ccmp_ior): Changed to ccmp_ior<mode>.
42031 (cmp<mode>): New pattern.
42032 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
42033 parameters.
42034 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
42035
42036 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
42037
42038 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
42039 _mm256_bsrli_epi128): New.
42040 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
42041
42042 2015-01-15 Jiong Wang <jiong.wang@arm.com>
42043
42044 * expmed.c (store_bit_field_using_insv): Improve warning message.
42045 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
42046
42047 2015-01-15 Jiong Wang <jiong.wang@arm.com>
42048
42049 PR rtl-optimization/64011
42050 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
42051 there is partial overflow.
42052
42053 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42054
42055 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
42056 prototype.
42057 (nds32_expand_epilogue_v3pop): Likewise.
42058 * config/nds32/nds32.md (sibcall): Define this for sibling call
42059 optimization.
42060 (sibcall_register): Likewise.
42061 (sibcall_immediate): Likewise.
42062 (sibcall_value): Likewise.
42063 (sibcall_value_register): Likewise.
42064 (sibcall_value_immediate): Likewise.
42065 (sibcall_epilogue): Likewise.
42066 (epilogue): Pass false to indicate this is not a sibcall epilogue.
42067 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
42068 (nds32_expand_epilogue_v3pop): Likewise.
42069
42070 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42071
42072 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
42073 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
42074 (return_internal): New.
42075 (return): Define this named pattern.
42076 (simple_return): Define this named pattern.
42077 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
42078 pattern instead of unspec_volatile_func_return.
42079 (nds32_expand_epilogue_v3pop): Likewise.
42080 (nds32_can_use_return_insn): New function.
42081
42082 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42083
42084 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
42085 * config/nds32/nds32.md (pop25return): New.
42086 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
42087 pop25return pattern.
42088
42089 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42090
42091 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
42092 -mforbid-fp-as-gp, and -mex9 options.
42093
42094 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42095
42096 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
42097 remove -mgp-direct option.
42098
42099 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42100
42101 * doc/invoke.texi (--param early-inlining-insns): Update default value.
42102 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
42103
42104 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42105
42106 * ipa-inline.c (inline_small_functions): Work around hints
42107 cache issue.
42108
42109 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
42110
42111 PR target/59710
42112 * doc/invoke.texi (Option Summary): Document new Nios II
42113 -mgpopt= syntax.
42114 (Nios II Options): Likewise.
42115 * config/nios2/nios2.opt: Add -mgpopt= option support.
42116 Modify existing -mgpopt and -mno-gpopt options to be aliases.
42117 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
42118 * config/nios2/nios2.c (nios2_option_override): Adjust
42119 -mgpopt defaulting.
42120 (nios2_in_small_data_p): Return true for explicit small data
42121 sections even with -G0.
42122 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
42123 option choices.
42124
42125 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42126
42127 PR ipa/64612
42128 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
42129 of comdat locals.
42130 (inline_call): Fix removal of aliases.
42131
42132 2015-01-15 Jakub Jelinek <jakub@redhat.com>
42133
42134 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
42135 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
42136 * opts.c (common_handle_option): Add -fsanitize=vptr.
42137 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
42138 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
42139 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
42140 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
42141 (ubsan_expand_vptr_ifn): New prototype.
42142 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
42143 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
42144 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
42145 expand_LOOP_VECTORIZED): Make argument nameless, remove
42146 ATTRIBUTE_UNUSED.
42147 (expand_UBSAN_VPTR): New function.
42148 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
42149 in fn spec.
42150 (UBSAN_VPTR): New internal function.
42151 * sanopt.c (tree_map_traits): Renamed to ...
42152 (sanopt_tree_map_traits): ... this.
42153 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
42154 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
42155 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
42156 (maybe_optimize_ubsan_vptr_ifn): New function.
42157 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
42158 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
42159 -fsanitize=vptr.
42160 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
42161 internal calls like pure functions for aliasing, even when they
42162 have other side-effects that prevent making them ECF_PURE.
42163 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
42164 (ubsan_expand_vptr_ifn): New function.
42165
42166 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
42167
42168 PR rtl-optimization/64110
42169 * stmt.c (parse_output_constraint): Process '^' and '$'.
42170 (parse_input_constraint): Ditto.
42171 * lra-constraints.c (process_alt_operands): Process the new
42172 constraints.
42173 * ira-costs.c (record_reg_classes): Process the new constraint
42174 '^'.
42175 * genoutput.c (indep_constraints): Add '^' and '$'.
42176 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
42177 * doc/md.texi: Add description of the new constraints.
42178
42179 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
42180 Bernd Schmidt <bernds@codesourcery.com>
42181 Cesar Philippidis <cesar@codesourcery.com>
42182 James Norris <jnorris@codesourcery.com>
42183 Tom de Vries <tom@codesourcery.com>
42184 Ilmir Usmanov <i.usmanov@samsung.com>
42185 Dmitry Bocharnikov <dmitry.b@samsung.com>
42186 Evgeny Gavrin <e.gavrin@samsung.com>
42187 Jakub Jelinek <jakub@redhat.com>
42188
42189 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
42190 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
42191 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
42192 New function types.
42193 * builtins.c: Include "gomp-constants.h".
42194 (expand_builtin_acc_on_device): New function.
42195 (expand_builtin, is_inexpensive_builtin): Handle
42196 BUILT_IN_ACC_ON_DEVICE.
42197 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
42198 New macros.
42199 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
42200 flag_openmp.
42201 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
42202 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
42203 i386/intelmic-offload.h.
42204 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
42205 to libgomp and its dependencies.
42206 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
42207 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
42208 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
42209 * config/ia64/hpux.h (LIB_SPEC): Likewise.
42210 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
42211 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
42212 * doc/generic.texi: Update for OpenACC changes.
42213 * doc/gimple.texi: Likewise.
42214 * doc/invoke.texi: Likewise.
42215 * doc/sourcebuild.texi: Likewise.
42216 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
42217 GF_OMP_FOR_KIND_OACC_LOOP.
42218 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
42219 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
42220 GF_OMP_TARGET_KIND_OACC_UPDATE,
42221 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
42222 Dump more data.
42223 * gimple.c: Update comments for OpenACC changes.
42224 * gimple.def: Likewise.
42225 * gimple.h: Likewise.
42226 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
42227 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
42228 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
42229 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
42230 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
42231 appropriate place.
42232 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
42233 * gimplify.c: Include "gomp-constants.h".
42234 Update comments for OpenACC changes.
42235 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
42236 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
42237 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
42238 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
42239 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
42240 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
42241 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
42242 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
42243 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
42244 OMP_CLAUSE_SEQ.
42245 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
42246 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
42247 OMP_CLAUSE_SET_MAP_KIND.
42248 (gimplify_oacc_cache): New function.
42249 (gimplify_omp_for): Handle OACC_LOOP.
42250 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
42251 OACC_DATA.
42252 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
42253 OACC_EXIT_DATA, OACC_UPDATE.
42254 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
42255 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
42256 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
42257 (gimplify_body): Consider flag_openacc next to flag_openmp.
42258 * lto-streamer-out.c: Include "gomp-constants.h".
42259 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
42260 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
42261 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
42262 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
42263 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
42264 (BUILT_IN_ACC_ON_DEVICE): New builtins.
42265 * omp-low.c: Include "gomp-constants.h".
42266 Update comments for OpenACC changes.
42267 (struct omp_context): Add reduction_map, gwv_below, gwv_this
42268 members.
42269 (extract_omp_for_data, use_pointer_for_field, install_var_field)
42270 (new_omp_context, delete_omp_context, scan_sharing_clauses)
42271 (create_omp_child_function, scan_omp_for, scan_omp_target)
42272 (check_omp_nesting_restrictions, lower_reduction_clauses)
42273 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
42274 Update for OpenACC changes.
42275 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
42276 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
42277 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
42278 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
42279 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
42280 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
42281 OMP_CLAUSE_MAP_*.
42282 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
42283 Handle GF_OMP_FOR_KIND_OACC_LOOP.
42284 (expand_omp_target, lower_omp_target): Handle
42285 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
42286 GF_OMP_TARGET_KIND_OACC_UPDATE,
42287 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
42288 GF_OMP_TARGET_KIND_OACC_DATA.
42289 (pass_expand_omp::execute, execute_lower_omp)
42290 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
42291 flag_openmp.
42292 (offload_symbol_decl): New variable.
42293 (oacc_get_reduction_array_id, oacc_max_threads)
42294 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
42295 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
42296 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
42297 (oacc_gimple_assign, oacc_initialize_reduction_data)
42298 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
42299 functions.
42300 (is_targetreg_ctx): Remove function.
42301 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
42302 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
42303 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
42304 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
42305 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
42306 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
42307 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
42308 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
42309 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
42310 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
42311 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
42312 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
42313 * tree-core.h: Update comments for OpenACC changes.
42314 (enum omp_clause_map_kind): Remove.
42315 (struct tree_omp_clause): Change type of map_kind member from enum
42316 omp_clause_map_kind to unsigned char.
42317 * tree-inline.c: Update comments for OpenACC changes.
42318 * tree-nested.c: Likewise. Include "gomp-constants.h".
42319 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
42320 (convert_tramp_reference_stmt, convert_gimple_call): Update for
42321 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
42322 OMP_CLAUSE_SET_MAP_KIND.
42323 * tree-pretty-print.c: Include "gomp-constants.h".
42324 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
42325 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
42326 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
42327 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
42328 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
42329 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
42330 instead of OMP_CLAUSE_MAP_*.
42331 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
42332 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
42333 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
42334 * tree-streamer-in.c: Include "gomp-constants.h".
42335 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
42336 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
42337 * tree-streamer-out.c: Include "gomp-constants.h".
42338 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
42339 OMP_CLAUSE_MAP_*.
42340 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
42341 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
42342 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
42343 * tree.c (omp_clause_num_ops): Update accordingly.
42344 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
42345 Likewise.
42346 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
42347 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
42348 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
42349 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
42350 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
42351 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
42352 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
42353 (OMP_CLAUSE_SET_MAP_KIND): New macro.
42354 * varpool.c (varpool_node::get_create): Consider flag_openacc next
42355 to flag_openmp.
42356 * config/i386/intelmic-offload.h: New file.
42357 * config/nvptx/offload.h: Likewise.
42358
42359 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
42360
42361 * explow.h: Remove duplicate contents.
42362 * dojump.h: Likewise.
42363
42364 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
42365
42366 * arm.c (arm_xgene_tune): Add default initializer for instruction
42367 fusion.
42368
42369 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42370
42371 PR ipa/64068
42372 PR ipa/64559
42373 * ipa.c (symbol_table::remove_unreachable_nodes):
42374 Do not put abstract origins into boundary.
42375
42376 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
42377
42378 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
42379 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
42380
42381 2015-01-15 Steve Ellcey <sellcey@mips.com>
42382
42383 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
42384 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
42385 builtins.def, and chkp-builtins.def.
42386
42387 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
42388
42389 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
42390 ISA 2.7 (POWER8).
42391
42392 2015-01-15 Richard Biener <rguenther@suse.de>
42393
42394 PR tree-optimization/61743
42395 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
42396 information on PHIs for some simple cases.
42397
42398 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
42399
42400 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
42401 Include xgene1.md.
42402 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
42403 * config/arm/arm-cores.def (xgene1): New entry.
42404 * config/arm/arm-tables.opt: Regenerate.
42405 * config/arm/arm-tune.md: Regenerate.
42406 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
42407
42408 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
42409
42410 * tree-if-conv.c: Include hash-map.h.
42411 (aggressive_if_conv): New variable.
42412 (fold_build_cond_expr): Add simplification of non-zero condition.
42413 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
42414 destination block is not always executed.
42415 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
42416 than two predecessors if AGGRESSIVE_IF_CONV is true.
42417 (if_convertible_stmt_p): Fix commentary.
42418 (all_preds_critical_p): New function.
42419 (has_pred_critical_p): New function.
42420 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
42421 BB can have more than two predecessors and all incoming edges can be
42422 critical.
42423 (predicate_bbs): Skip predication for loop exit block, use build2_loc
42424 to compute predicate for true edge.
42425 (find_phi_replacement_condition): Delete this function.
42426 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
42427 Allow interchange PHI arguments if EXTENDED is false.
42428 Change check that block containing reduction statement candidate
42429 is predecessor of phi-block since phi may have more than two arguments.
42430 (phi_args_hash_traits): New helper structure.
42431 (struct phi_args_hash_traits): New type.
42432 (phi_args_hash_traits::hash): New function.
42433 (phi_args_hash_traits::equal_keys): New function.
42434 (gen_phi_arg_condition): New function.
42435 (predicate_scalar_phi): Add handling of phi nodes with more than two
42436 arguments, delete COND and TRUE_BB arguments, insert body of
42437 find_phi_replacement_condition to predicate ordinary phi nodes.
42438 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
42439 delete call of find_phi_replacement_condition and invoke
42440 predicate_scalar_phi with two arguments.
42441 (insert_gimplified_predicates): Add assert that non-predicated block
42442 don't have statements to insert.
42443 (ifcvt_split_critical_edges): New function.
42444 (ifcvt_split_def_stmt): Likewise.
42445 (ifcvt_walk_pattern_tree): Likewise.
42446 (stmt_is_root_of_bool_pattern): Likewise.
42447 (ifcvt_repair_bool_pattern): Likewise.
42448 (ifcvt_local_dce): Likewise.
42449 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
42450 is copy of inner or outer loop force_vectorize field, invoke
42451 ifcvt_split_critical_edges, ifcvt_local_dce and
42452 ifcvt_repair_bool_pattern for aggressive if-conversion.
42453
42454 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
42455
42456 * config/aarch64/aarch64.md: Include xgene1.md.
42457 * config/aarch64/xgene1.md: New file.
42458
42459 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
42460
42461 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
42462 xgene1 (APM XGene-1) core definition.
42463 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
42464 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
42465 * doc/invoke.texi: Document -mcpu=xgene1.
42466
42467 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
42468
42469 * dojump.h: New header file.
42470 * explow.h: Likewise.
42471 * expr.h: Remove includes.
42472 Move expmed.c prototypes to expmed.h.
42473 Move dojump.c prototypes to dojump.h.
42474 Move alias.c prototypes to alias.h.
42475 Move explow.c prototypes to explow.h.
42476 Move calls.c prototypes to calls.h.
42477 Move emit-rtl.c prototypes to emit-rtl.h.
42478 Move varasm.c prototypes to varasm.h.
42479 Move stmt.c prototypes to stmt.h.
42480 (saved_pending_stack_adjust): Move to dojump.h.
42481 (adjust_address): Move to explow.h.
42482 (adjust_address_nv): Move to emit-rtl.h.
42483 (adjust_bitfield_address): Likewise.
42484 (adjust_bitfield_address_size): Likewise.
42485 (adjust_bitfield_address_nv): Likewise.
42486 (adjust_automodify_address_nv): Likewise.
42487 * explow.c (expr_size): Move to expr.c.
42488 (int_expr_size): Likewise.
42489 (tree_expr_size): Likewise.
42490 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42491 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
42492 * genemit.c (main): Generate includes statistics.h, real.h,
42493 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
42494 stmt.h.
42495 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
42496 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
42497 explow.h, emit-rtl.h, stmt.h.
42498 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
42499 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
42500 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
42501 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
42502 emit-rtl.h, varasm.h, stmt.h.
42503 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
42504 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
42505 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
42506 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
42507 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
42508 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
42509 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
42510 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
42511 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
42512 tm.h tree.h varasm.h vec.h wide-int.h.
42513 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42514 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
42515 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
42516 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
42517 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
42518 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
42519 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
42520 * loop-iv.c: Likewise.
42521 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
42522 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
42523 statistics.h stmt.h tree.h varasm.h wide-int.h.
42524 * lra-constraints.c: Likewise.
42525 * lra-eliminations.c: Likewise.
42526 * lra-lives.c: Likewise.
42527 * lra-remat.c: Likewise.
42528 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42529 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
42530 statistics.h stmt.h tree.h varasm.h wide-int.h.
42531 * hw-doloop.c: Likewise.
42532 * ira-color.c: Likewise.
42533 * ira-emit.c: Likewise.
42534 * loop-doloop.c: Likewise.
42535 * loop-invariant.c: Likewise.
42536 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42537 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
42538 statistics.h stmt.h tree.h varasm.h wide-int.h.
42539 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
42540 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
42541 statistics.h stmt.h tree.h varasm.h wide-int.h.
42542 * combine-stack-adj.c: Likewise.
42543 * cse.c: Likewise.
42544 * ddg.c: Likewise.
42545 * ifcvt.c: Likewise.
42546 * ira-costs.c: Likewise.
42547 * jump.c: Likewise.
42548 * lra-coalesce.c: Likewise.
42549 * lra-spills.c: Likewise.
42550 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42551 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
42552 stmt.h varasm.h wide-int.h.
42553 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42554 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
42555 varasm.h.
42556 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
42557 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
42558 statistics.h stmt.h varasm.h wide-int.h.
42559 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
42560 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
42561 varasm.h wide-int.h.
42562 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
42563 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
42564 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
42565 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
42566 statistics.h stmt.h.
42567 * config/tilepro/tilepro.c: Likewise.
42568 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
42569 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
42570 * config/pdp11/pdp11.c: Likewise.
42571 * config/xtensa/xtensa.c: Likewise.
42572 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
42573 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
42574 varasm.h.
42575 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42576 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
42577 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
42578 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42579 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
42580 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
42581 * rtl-chkp.c: Likewise.
42582 * tree-chkp-opt.c: Likewise.
42583 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
42584 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
42585 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
42586 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42587 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
42588 statistics.h stmt.h.
42589 * tree-vect-data-refs.c: Likewise.
42590 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
42591 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42592 rtl.h statistics.h stmt.h varasm.h.
42593 * internal-fn.c: Likewise.
42594 * ipa-icf-gimple.c: Likewise.
42595 * lto-section-out.c: Likewise.
42596 * tree-data-ref.c: Likewise.
42597 * tree-nested.c: Likewise.
42598 * tree-outof-ssa.c: Likewise.
42599 * tree-predcom.c: Likewise.
42600 * tree-pretty-print.c: Likewise.
42601 * tree-scalar-evolution.c: Likewise.
42602 * tree-ssa-strlen.c: Likewise.
42603 * tree-vect-loop.c: Likewise.
42604 * tree-vect-patterns.c: Likewise.
42605 * tree-vect-slp.c: Likewise.
42606 * tree-vect-stmts.c: Likewise.
42607 * tsan.c: Likewise.
42608 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42609 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
42610 stmt.h.
42611 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
42612 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42613 statistics.h stmt.h varasm.h.
42614 * loop-unroll.c: Likewise.
42615 * ubsan.c: Likewise.
42616 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
42617 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
42618 stmt.h varasm.h.
42619 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42620 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
42621 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
42622 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
42623 statistics.h stmt.h.
42624 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
42625 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
42626 statistics.h stmt.h varasm.h.
42627 * gimple-match-head.c: Likewise.
42628 * lto-cgraph.c: Likewise.
42629 * lto-section-in.c: Likewise.
42630 * lto-streamer-in.c: Likewise.
42631 * lto-streamer-out.c: Likewise.
42632 * tree-affine.c: Likewise.
42633 * tree-cfg.c: Likewise.
42634 * tree-cfgcleanup.c: Likewise.
42635 * tree-if-conv.c: Likewise.
42636 * tree-into-ssa.c: Likewise.
42637 * tree-ssa-alias.c: Likewise.
42638 * tree-ssa-copyrename.c: Likewise.
42639 * tree-ssa-dse.c: Likewise.
42640 * tree-ssa-forwprop.c: Likewise.
42641 * tree-ssa-live.c: Likewise.
42642 * tree-ssa-math-opts.c: Likewise.
42643 * tree-ssa-pre.c: Likewise.
42644 * tree-ssa-sccvn.c: Likewise.
42645 * tree-tailcall.c: Likewise.
42646 * tree-vect-generic.c: Likewise.
42647 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42648 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
42649 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42650 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
42651 * varasm.c: Likewise.
42652 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42653 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
42654 varasm.h.
42655 * init-regs.c: Likewise.
42656 * ira.c: Likewise.
42657 * omp-low.c: Likewise.
42658 * stack-ptr-mod.c: Likewise.
42659 * tree-ssa-reassoc.c: Likewise.
42660 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42661 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
42662 varasm.h.
42663 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42664 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
42665 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42666 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
42667 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42668 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
42669 * tree-ssa-phiopt.c: Likewise.
42670 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42671 fixed-value.h hashtab.h real.h statistics.h stmt.h.
42672 * config/fr30/fr30.c: Likewise.
42673 * config/frv/frv.c: Likewise.
42674 * expr.c: Likewise.
42675 * final.c: Likewise.
42676 * optabs.c: Likewise.
42677 * passes.c: Likewise.
42678 * simplify-rtx.c: Likewise.
42679 * stmt.c: Likewise.
42680 * toplev.c: Likewise.
42681 * var-tracking.c: Likewise.
42682 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42683 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42684 * lower-subreg.c: Likewise.
42685 * postreload-gcse.c: Likewise.
42686 * ree.c: Likewise.
42687 * reginfo.c: Likewise.
42688 * store-motion.c: Likewise.
42689 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42690 fixed-value.h hashtab.h real.h stmt.h varasm.h.
42691 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42692 fixed-value.h hashtab.h statistics.h stmt.h.
42693 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42694 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
42695 * except.c: Likewise.
42696 * explow.c: Likewise.
42697 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42698 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
42699 varasm.h.
42700 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42701 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
42702 * tree-ssa-structalias.c: Likewise.
42703 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42704 fixed-value.h insn-config.h real.h statistics.h.
42705 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42706 fixed-value.h insn-config.h real.h statistics.h stmt.h.
42707 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42708 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
42709 * cfgbuild.c: Likewise.
42710 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42711 fixed-value.h real.h rtl.h statistics.h stmt.h.
42712 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42713 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
42714 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42715 fixed-value.h real.h statistics.h stmt.h.
42716 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42717 fixed-value.h real.h statistics.h stmt.h varasm.h.
42718 * cprop.c: Likewise.
42719 * modulo-sched.c: Likewise.
42720 * postreload.c: Likewise.
42721 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
42722 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
42723 statistics.h stmt.h varasm.h.
42724 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
42725 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42726 rtl.h statistics.h stmt.h varasm.h.
42727 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
42728 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
42729 varasm.h.
42730 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
42731 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
42732 varasm.h.
42733 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
42734 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
42735 varasm.h.
42736 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
42737 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42738 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
42739 function.h real.h statistics.h stmt.h varasm.h.
42740 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
42741 insn-config.h real.h statistics.h stmt.h.
42742 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
42743 statistics.h stmt.h.
42744 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
42745 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
42746 statistics.h stmt.h varasm.h.
42747 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
42748 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
42749 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42750 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
42751 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
42752 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
42753 statistics.h stmt.h varasm.h.
42754 * ipa-polymorphic-call.c: Likewise.
42755 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
42756 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42757 statistics.h stmt.h.
42758 * config/c6x/c6x.c: Likewise.
42759 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
42760 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42761 statistics.h stmt.h varasm.h.
42762 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
42763 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
42764 stmt.h varasm.h.
42765 * ipa-split.c: Likewise.
42766 * tree-eh.c: Likewise.
42767 * tree-ssa-dce.c: Likewise.
42768 * tree-ssa-loop-niter.c: Likewise.
42769 * tree-vrp.c: Likewise.
42770 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
42771 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
42772 stmt.h.
42773 * config/nds32/nds32-fp-as-gp.c: Likewise.
42774 * config/nds32/nds32-intrinsic.c: Likewise.
42775 * config/nds32/nds32-isr.c: Likewise.
42776 * config/nds32/nds32-md-auxiliary.c: Likewise.
42777 * config/nds32/nds32-memory-manipulation.c: Likewise.
42778 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
42779 * config/nds32/nds32-predicates.c: Likewise.
42780 * config/nds32/nds32.c: Likewise.
42781 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
42782 fixed-value.h hashtab.h real.h statistics.h.
42783 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
42784 fixed-value.h hashtab.h real.h statistics.h stmt.h.
42785 * config/arm/arm.c: Likewise.
42786 * config/avr/avr.c: Likewise.
42787 * config/bfin/bfin.c: Likewise.
42788 * config/h8300/h8300.c: Likewise.
42789 * config/i386/i386.c: Likewise.
42790 * config/ia64/ia64.c: Likewise.
42791 * config/iq2000/iq2000.c: Likewise.
42792 * config/m32c/m32c.c: Likewise.
42793 * config/m32r/m32r.c: Likewise.
42794 * config/m68k/m68k.c: Likewise.
42795 * config/mcore/mcore.c: Likewise.
42796 * config/mep/mep.c: Likewise.
42797 * config/mips/mips.c: Likewise.
42798 * config/mn10300/mn10300.c: Likewise.
42799 * config/moxie/moxie.c: Likewise.
42800 * config/pa/pa.c: Likewise.
42801 * config/rl78/rl78.c: Likewise.
42802 * config/rx/rx.c: Likewise.
42803 * config/s390/s390.c: Likewise.
42804 * config/sh/sh.c: Likewise.
42805 * config/sparc/sparc.c: Likewise.
42806 * config/spu/spu.c: Likewise.
42807 * config/stormy16/stormy16.c: Likewise.
42808 * config/v850/v850.c: Likewise.
42809 * config/vax/vax.c: Likewise.
42810 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
42811 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42812 * config/msp430/msp430.c: Likewise.
42813 * predict.c: Likewise.
42814 * value-prof.c: Likewise.
42815 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
42816 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
42817 * config/microblaze/microblaze.c: Likewise.
42818 * config/nios2/nios2.c: Likewise.
42819 * config/rs6000/rs6000.c: Likewise.
42820 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42821 insn-config.h real.h rtl.h statistics.h stmt.h.
42822 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42823 insn-config.h real.h statistics.h stmt.h.
42824 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
42825 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
42826 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
42827 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
42828 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
42829 fixed-value.h real.h statistics.h stmt.h.
42830 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
42831 fixed-value.h statistics.h stmt.h.
42832 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
42833 stmt.h.
42834
42835 2015-01-15 Jakub Jelinek <jakub@redhat.com>
42836
42837 * gengtype.c (create_user_defined_type): Workaround
42838 -Wmaybe-uninitialized false positives.
42839 * cse.c (fold_rtx): Likewise.
42840 * loop-invariant.c (gain_for_invariant): Likewise.
42841
42842 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
42843
42844 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
42845 set the memory attributes in all cases but clear MEM_EXPR if need be.
42846
42847 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
42848
42849 PR tree-optimization/64434
42850 * cfgexpand.c (reorder_operands): New function.
42851 (expand_gimple_basic_block): Insert call of reorder_operands if
42852 optimized is true.
42853
42854 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
42855
42856 * config/mips/micromips.md (*swp): Remove explicit parallel.
42857 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
42858 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
42859 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
42860 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
42861 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
42862 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
42863 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
42864 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
42865 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
42866 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
42867 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
42868 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
42869 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
42870 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
42871 (mips_wrdsp): Likewise.
42872 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
42873 parallel.
42874 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
42875 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
42876 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
42877 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
42878 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
42879 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
42880 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
42881 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
42882 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
42883
42884 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
42885
42886 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
42887 (mips_print_operand): Support 'y' to print exact log2 in decimal
42888 of a const_int.
42889 * config/mips/mips.h (ISA_HAS_LSA): New define.
42890 (ISA_HAS_DLSA): Likewise.
42891 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
42892 * config/mips/predicates.md (const_immlsa_operand): New predicate.
42893
42894 2015-01-15 Martin Liska <mliska@suse.cz>
42895
42896 PR target/64377
42897 * optc-save-gen.awk: Add support for array types.
42898
42899 2015-01-15 Richard Biener <rguenther@suse.de>
42900
42901 PR middle-end/64365
42902 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
42903 for MEM_REF access functions with the same base can never partially
42904 overlap.
42905
42906 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
42907
42908 * common.opt: New option -fstack-protector-explicit.
42909 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
42910 (stack_protect_decl_phase): Handle stack_protect attribute for
42911 explicit stack protection requests.
42912 (expand_used_vars): Similarly.
42913 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
42914 * doc/extend.texi: Add documentation for "stack_protect" attribute.
42915 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
42916
42917 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
42918
42919 PR target/53988
42920 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
42921 reg-reg copies.
42922 (sh_extending_set_of_reg): New struct.
42923 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
42924 sh_remove_reg_dead_or_unused_notes): New Declarations.
42925 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
42926 sh_find_extending_set_of_reg, sh_split_tst_subregs,
42927 sh_extending_set_of_reg::use_as_extended_reg): New functions.
42928 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
42929 convert to insn_and_split and use new function sh_split_tst_subregs.
42930
42931 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
42932
42933 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
42934 option.
42935 (Optimization Options): Move -fuse-ld documentation to...
42936 (Link Options): ...here.
42937
42938 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
42939
42940 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
42941 offsets.
42942 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
42943 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
42944 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
42945 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
42946 instead of ZR for the memory operand of LL/SC.
42947 (compare_and_swap_12, sync_add<mode>): Likewise.
42948 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
42949 (sync_new_<optab>_12, sync_nand_12): Likewise.
42950 (sync_old_nand_12, sync_new_nand_12): Likewise.
42951 (sync_sub<mode>, sync_old_add<mode>): Likewise.
42952 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
42953 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
42954 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
42955 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
42956 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
42957 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
42958 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
42959 * doc/md.texi (ZC): Update description.
42960
42961 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
42962
42963 * builtins.c (expand_builtin_atomic_exchange): Remove error when
42964 memory model is CONSUME.
42965 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
42966 expand_builtin_atomic_store): Change invalid memory model errors to
42967 warnings.
42968 (expand_builtin_atomic_clear): Change invalid model errors to warnings
42969 and issue warning for CONSUME.
42970
42971 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
42972
42973 * lto-cgraph: Update function comments for
42974 lto_symtab_encoder_encode_*.
42975
42976 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
42977
42978 * Makefile.in (site.exp): Do not set ENABLE_LTO.
42979
42980 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
42981
42982 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
42983 * lto-cgraph.c (select_what_to_stream): Remove argument, use
42984 lto_stream_offload_p instead.
42985 * lto-streamer.h (select_what_to_stream): Remove argument.
42986 * passes.c (ipa_write_summaries): Likewise.
42987 * tree-pass.h (ipa_write_summaries): Likewise.
42988
42989 2015-01-14 Richard Biener <rguenther@suse.de>
42990
42991 PR tree-optimization/59354
42992 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
42993 groups larger than the slp group size as having gaps.
42994
42995 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
42996
42997 PR middle-end/59448
42998 * builtins.c (get_memmodel): Promote consume to acquire always.
42999
43000 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
43001
43002 PR target/64386
43003 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
43004 V32HImode.
43005
43006 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
43007
43008 PR target/64393
43009 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
43010 Enable AVX512BW.
43011 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
43012 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
43013 AVX512VBMI, as it implies AVX512BW.
43014
43015 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
43016
43017 PR target/64387
43018 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
43019 (vec_unpacks_hi_v16sf): Ditto.
43020
43021 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43022
43023 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
43024 is not available.
43025
43026 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43027
43028 * doc/invoke.texi (mapcs): Mention deprecation.
43029 (mapcs-frame): Likewise.
43030
43031 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
43032
43033 PR target/64453
43034 * config/arm/arm.c (callee_saved_reg_p): Define.
43035 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
43036 register is callee saved instead of !call_used_regs[reg].
43037 (thumb1_compute_save_reg_mask): Likewise.
43038
43039 2015-01-14 Hale Wang <hale.wang@arm.com>
43040
43041 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
43042 Cortex-M7.
43043
43044 2015-01-14 Richard Biener <rguenther@suse.de>
43045
43046 PR lto/64415
43047 * tree-inline.c (insert_debug_decl_map): Check destination
43048 function MAY_HAVE_DEBUG_STMTS.
43049 (insert_init_debug_bind): Likewise.
43050 (insert_init_stmt): Remove redundant check.
43051 (remap_gimple_stmt): Drop debug stmts if the destination
43052 function has var-tracking assignments disabled.
43053
43054 2015-01-14 Martin Liska <mliska@suse.cz>
43055
43056 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
43057 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
43058
43059 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43060
43061 PR target/64460
43062 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
43063 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
43064
43065 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
43066
43067 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
43068 level from an ARCH; do not inject the default.
43069 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
43070 MIPS_ISA_LEVEL_SPEC.
43071 (MIPS_ISA_NAN2008_SPEC): Update comment.
43072 (BASE_DRIVER_SELF_SPECS): Likewise.
43073 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
43074 MIPS_DEFAULT_ISA_LEVEL_SPEC.
43075 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
43076 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
43077 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
43078
43079 2015-01-14 Richard Biener <rguenther@suse.de>
43080
43081 PR tree-optimization/64493
43082 PR tree-optimization/64495
43083 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
43084 assign the proper vectorized PHI to the inner loop exit PHIs.
43085
43086 2015-01-14 Joey Ye <joey.ye@arm.com>
43087
43088 * config/arm/arm.c (arm_compute_save_reg_mask):
43089 Do not save lr in case of tail call.
43090 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
43091
43092 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
43093
43094 * tree-vrp.c (check_array_ref): Emit more warnings
43095 for warn_array_bounds >= 2.
43096 * common.opt: New option -Warray-bounds=.
43097 * doc/invoke.texi: Document -Warray-bounds=.
43098
43099 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
43100
43101 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
43102 (mforbid-fp-as-gp): Remove.
43103 (mex9): Remove.
43104 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
43105 (nds32_symbol_load_store_p): Remove.
43106 (nds32_fp_as_gp_check_available): Clean up implementation.
43107 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
43108 cases.
43109 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
43110 fp-as-gp and ex9 cases.
43111
43112 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
43113
43114 * tree-profile.c (init_ic_make_global_vars): Drop workaround
43115 for bintuils bug 14342.
43116 (init_ic_make_global_vars): Likewise.
43117 (gimple_init_edge_profiler): Likewise.
43118 (gimple_gen_ic_func_profiler): Likewise.
43119
43120 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
43121
43122 * ipa-inline.c (inline_small_functions): Swap the operands in
43123 enum.
43124
43125 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
43126
43127 PR ipa/64481
43128 * ipa-inline-analysis.c (node_growth_cache): Remove.
43129 (initialize_growth_caches): Do not initialize it.
43130 (free_growth_caches): Do not free it.
43131 (do_estimate_growth): Rename to ...
43132 (estimate_growth): ... this one; drop growth cache code.
43133 (growth_likely_positive): Always go the heuristics way.
43134 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
43135 (reset_edge_caches): Do not reset node growth.
43136 (heap_edge_removal_hook): Do not maintain cache.
43137 (inline_small_functions): Likewise; strenghten sanity check.
43138 (ipa_inline): Do not maintain caches.
43139 * ipa-inline.h (node_growth_cache): Remove.
43140 (do_estimate_growth): Remove to ...
43141 (estimate_growth): this one; remove inline version.
43142 (reset_node_growth_cache): Remove.
43143
43144 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
43145
43146 PR ipa/64565
43147 * ipa-inline.c (inline_small_functions): Update callee keys after
43148 resolving speculation
43149 (inline_small_functions): Always check monotonicity of the queue.
43150
43151 2015-01-13 Marek Polacek <polacek@redhat.com>
43152
43153 PR middle-end/64391
43154 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
43155
43156 2015-01-13 Jakub Jelinek <jakub@redhat.com>
43157
43158 PR rtl-optimization/64286
43159 * ree.c (combine_reaching_defs): Move part of comment earlier,
43160 remove !SCALAR_INT_MODE_P check.
43161 (add_removable_extension): Don't add vector mode
43162 extensions if all uses of the source register aren't the same
43163 vector extensions.
43164
43165 2015-01-13 Renlin Li <renlin.li@arm.com>
43166
43167 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
43168 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
43169
43170 2015-01-13 Martin Liska <mliska@suse.cz>
43171
43172 * ipa-icf.c (sem_function::equals_private): Call new functions
43173 cl_target_option_print_diff and cl_optimization_print_diff.
43174 * optc-save-gen.awk (cl_target_option_print_diff): New function.
43175 (cl_optimization_print_diff): Likewise.
43176 * opth-gen.awk: Likewise.
43177
43178 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
43179
43180 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
43181 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
43182 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
43183 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
43184 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
43185 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
43186
43187 2015-01-13 Andrew Pinski <apinski@cavium.com>
43188
43189 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
43190 instead of src mode.
43191
43192 2015-01-13 Richard Biener <rguenther@suse.de>
43193
43194 PR lto/64373
43195 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
43196 DECL_CONTEXT.
43197
43198 2015-01-13 Andrew Pinski <apinski@cavium.com>
43199
43200 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
43201 volatile mems.
43202 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
43203
43204 2015-01-13 Jakub Jelinek <jakub@redhat.com>
43205
43206 PR middle-end/63974
43207 * cfgexpand.c (expand_computed_goto): Don't call
43208 convert_memory_address here.
43209
43210 2015-01-13 Richard Biener <rguenther@suse.de>
43211
43212 PR tree-optimization/64406
43213 * tree-loop-distibution.c (pass_loop_distribution::execute):
43214 Reset the SCEV hashtable if we distributed anything.
43215
43216 2015-01-13 Richard Biener <rguenther@suse.de>
43217
43218 PR tree-optimization/64404
43219 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
43220 SLP types for CSEd loads.
43221
43222 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
43223
43224 PR tree-optimization/64436
43225 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
43226 merge of two symbolic numbers for a bitwise OR to ...
43227 (perform_symbolic_merge): This. Also fix computation of the range and
43228 end of the symbolic number corresponding to the result of a bitwise OR.
43229
43230 2015-01-13 Richard Biener <rguenther@suse.de>
43231
43232 PR tree-optimization/64568
43233 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
43234 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
43235
43236 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43237
43238 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
43239 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
43240
43241 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43242
43243 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
43244 target-specific symbol_ref flag.
43245 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
43246 resides in rodata section.
43247 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
43248 (nds32_encode_section_info): New function.
43249
43250 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43251
43252 * config/nds32/nds32.md (call): Use pseudo instruction bal which
43253 clobbers TA_REGNUM if large code model is specified.
43254 (call_register): Likewise.
43255 (call_immediate): Likewise.
43256 (call_value): Likewise.
43257 (call_value_register): Likewise.
43258 (call_value_immediate): Likewise.
43259
43260 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43261
43262 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
43263 (TARGET_CMODEL_MEDIUM): New macro.
43264 (TARGET_CMODEL_LARGE): New macro.
43265 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
43266 code model setting in assembly code.
43267
43268 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43269
43270 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
43271 Remove MASK_GP_DIRECT flag.
43272 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
43273 one of the multilib default options.
43274 * config/nds32/nds32.opt (mgp-direct): Remove.
43275 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
43276 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
43277
43278 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43279
43280 * config/nds32/nds32.opt (mcmodel): Add new option.
43281 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
43282 to describe code model.
43283
43284 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
43285
43286 PR target/64479
43287 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
43288
43289 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
43290
43291 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
43292 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
43293 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
43294 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
43295 __builtin_sh_set_fpscr.
43296
43297 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
43298
43299 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
43300 after a funtion name just to indicate it is a function.
43301 ([-fsanitize-undefined-trap-on-error]): Likewise.
43302 ([-fdbg-cnt=]): Likewise.
43303 ([-mmemcpy]): Likewise.
43304 ([-mflush-func]): Likewise.
43305 ([-msynci]): Likewise.
43306
43307 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
43308
43309 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
43310 example.
43311
43312 2015-01-12 Jakub Jelinek <jakub@redhat.com>
43313
43314 PR tree-optimization/64563
43315 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
43316 instead of != VR_VARYING.
43317
43318 PR target/64513
43319 * config/i386/i386.c (ix86_expand_prologue): Add
43320 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
43321
43322 PR tree-optimization/64454
43323 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
43324 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
43325 for signed or [0, op1 - 1] for unsigned modulo.
43326 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
43327 even if op1 does not satisfy integer_pow2p.
43328
43329 PR other/64370
43330 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
43331
43332 2015-01-12 Jeff Law <law@redhat.com>
43333
43334 PR target/64461
43335 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
43336 (trunchiqi2, truncsihi2): Similarly.
43337
43338 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
43339 rather than calling F.
43340
43341 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
43342
43343 * tsan.c (instrument_expr): Use force_gimple_operand.
43344 Use may_be_nonaddressable_p instead of is_gimple_addressable.
43345
43346 2015-01-12 Richard Biener <rguenther@suse.de>
43347
43348 PR tree-optimization/64530
43349 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
43350 back dr1.
43351
43352 2015-01-12 Richard Biener <rguenther@suse.de>
43353
43354 PR middle-end/64357
43355 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
43356 latches properly.
43357
43358 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43359
43360 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
43361 Cortex-A17 tuning parameters.
43362 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
43363
43364 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43365
43366 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
43367 * config/arm/arm.c (arm_macro_fusion_p): New function.
43368 (arm_macro_fusion_pair_p): Likewise.
43369 (TARGET_SCHED_MACRO_FUSION_P): Define.
43370 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
43371 (ARM_FUSE_NOTHING): Likewise.
43372 (ARM_FUSE_MOVW_MOVT): Likewise.
43373 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
43374 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
43375 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
43376 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
43377 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
43378 arm_cortex_a5_tune): Specify fuseable_ops value.
43379
43380 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
43381
43382 PR bootstrap/64561
43383 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
43384 test for PIE with copy reloc.
43385 * configure: Regenerated.
43386
43387 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43388
43389 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
43390 in gen_rtx_REG.
43391 (arm_tls_descseq_addr): Likewise.
43392 (arm_gen_movmemqi): Likewise.
43393 (arm_expand_epilogue_apcs_frame): Likewise.
43394 (arm_expand_epilogue): Likewise.
43395 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
43396 in gen_rtx_REG.
43397
43398 2015-01-12 Martin Liska <mliska@suse.cz>
43399
43400 PR ipa/64550
43401 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
43402 volatility for correct operands.
43403
43404 2015-01-12 Martin Liska <mliska@suse.cz>
43405
43406 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
43407 indication that a function is not leaf.
43408 (sem_function::compare_polymorphic_p): Likewise.
43409
43410 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
43411
43412 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
43413 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
43414 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
43415 fold-const.h, tree-check.h.
43416
43417 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
43418
43419 PR ipa/63967
43420 PR ipa/64425
43421 * ipa-inline.c (compute_uninlined_call_time,
43422 compute_inlined_call_time): Use counts for extra precision when
43423 needed possible.
43424 (big_speedup_p): Fix formating.
43425 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
43426 (relative_time_benefit): Remove.
43427 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
43428 merge guessed and read profile paths.
43429 (inline_small_functions): Count only !optimize_size functions into
43430 initial size; be more lax about sanity check when profile is used;
43431 be sure to update inlined function profile when profile is read.
43432
43433 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
43434
43435 PR ipa/63470
43436 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
43437 cost when edge becomes direct.
43438 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
43439 is resolved or when introducing new speculation.
43440
43441 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
43442
43443 PR ipa/64551
43444 PR ipa/64552
43445 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
43446 '||' to fix typo issue.
43447
43448 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
43449 accept and return NULL.
43450
43451 2015-01-12 Martin Liska <mliska@suse.cz>
43452
43453 * cgraph.c (cgraph_edge::remove_callee): Move function to header
43454 file for being inlined.
43455 (cgraph_set_edge_callee): Delete.
43456 (cgraph_edge::redirect_callee): Move function to header file
43457 for being inlined.
43458 (cgraph_edge::make_direct): Use new function.
43459 (cgraph_edge::dump_edge_flags): New function created from
43460 static dump_edge_flags function.
43461 (cgraph_node::dump): Use new function.
43462 (cgraph_edge::verify_count_and_frequency): New function created
43463 from verify_edge_count_and_frequency.
43464 (cgraph_edge::verify_corresponds_to_fndecl): New function created
43465 from verify_edge_corresponds_to_fndecl.
43466 (verify_edge_corresponds_to_fndecl): Delete.
43467 (cgraph_node::verify_node): Use new function.
43468 * cgraph.h (cgraph_edge::set_callee): New function.
43469 (cgraph_edge::dump_edge_flags): Likewise.
43470 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
43471
43472 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
43473
43474 * ipa-utils.c (estimate_function_body_sizes): Do not
43475 free node params when called late with early=true.
43476
43477 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
43478
43479 * doc/md.texi (Instruction Patterns): Rewrite text for
43480 clarity.
43481 (Example): Likewise.
43482
43483 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
43484
43485 * doc/invoke.texi (Option Summary): Break long lines.
43486 [(-fdiagnostics-color)]: Put long literal in @smallexample
43487 instead of inline.
43488 [(-fsanitize-recover)]: Likewise.
43489 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
43490 [(-ffast-math)]: Likewise.
43491 [(--param max-inline-insns-recursive)]: Likewise.
43492 [(--param max-inline-recursive-depth)]: Likewise.
43493 [(-mno-text-section-literals)]: Likewise.
43494
43495 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
43496
43497 * doc/install.texi: Update for libgomp being renamed from "GNU
43498 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
43499 Runtime Library".
43500 * doc/sourcebuild.texi: Likewise.
43501
43502 2015-01-10 Anthony Green <green@moxielogic.com>
43503
43504 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
43505 mul.x availability for moxiebox configuration.
43506
43507 2015-01-09 Anthony Green <green@moxielogic.com>
43508
43509 * config/moxie/moxie.md: Tabify assembly output.
43510
43511 2015-01-09 Anthony Green <green@moxielogic.com>
43512
43513 * config/moxie/moxie.md (CC_REG): Correct register definition.
43514
43515 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
43516
43517 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
43518 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
43519 of log files.
43520
43521 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
43522
43523 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
43524
43525 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
43526 Jakub Jelinek <jakub@redhat.com>
43527
43528 PR middle-end/64412
43529 * lto-streamer.h (lto_stream_offload_p): New declaration.
43530 * lto-streamer.c (lto_stream_offload_p): New variable.
43531 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
43532 at the same time as section_name_prefix.
43533 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
43534 if lto_stream_offload_p.
43535 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
43536 stream TREE_TARGET_OPTION if lto_stream_offload_p.
43537 (write_ts_function_decl_tree_pointers): Don't
43538 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
43539 * tree-streamer-in.c (unpack_value_fields): Don't stream
43540 TREE_TARGET_OPTION in if ACCEL_COMPILER.
43541 (lto_input_ts_function_decl_tree_pointers): Don't stream
43542 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
43543 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
43544 instead of section_name_prefix string comparisons.
43545
43546 2015-01-09 Jakub Jelinek <jakub@redhat.com>
43547
43548 PR rtl-optimization/64536
43549 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
43550 tablejumps.
43551
43552 2015-01-09 Michael Collison <michael.collison@linaro.org>
43553
43554 PR tree-optimization/64322
43555 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
43556 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
43557
43558 2015-01-09 Tom de Vries <tom@codesourcery.com>
43559
43560 PR rtl-optimization/64539
43561 * regcprop.c (kill_clobbered_values): Factor out of ...
43562 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
43563 instead of note_stores with kill_clobbered_value.
43564
43565 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
43566
43567 * ginclude/unwind-arm-common.h: Revert previous commit.
43568
43569 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
43570
43571 * config.gcc (arm*-*-freebsd*): New configuration.
43572 * config/arm/freebsd.h: New file.
43573 * config.host: Add extra components for arm*-*-freebsd*.
43574 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
43575 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
43576
43577 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
43578
43579 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
43580 for -mcpu=e6500.
43581 * config/rs6000/t-rtems: Add e6500 multilibs.
43582
43583 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
43584
43585 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
43586 MPC8540.
43587
43588 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
43589
43590 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
43591 MULTILIB_EXCEPTIONS.
43592
43593 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
43594
43595 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
43596 MULTILIB_EXCEPTIONS.
43597
43598 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
43599
43600 * config/arm/t-rtems-eabi: Rename to...
43601 * config/arm/t-rtems: ...this.
43602 * config/arm/rtems-eabi.h: Rename to...
43603 * config/arm/rtems.h: ...this.
43604 * config.gcc (arm*-*-rtems*): Reflect changes above.
43605
43606 2015-01-09 Richard Biener <rguenther@suse.de>
43607
43608 PR tree-optimization/64410
43609 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
43610 on the LHS.
43611 (execute_update_addresses_taken): Deal with that.
43612 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
43613 loads/stores for complex variables.
43614
43615 2015-01-09 Martin Liska <mliska@suse.cz>
43616
43617 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
43618 name comparison.
43619 (func_checker::compare_memory_operand): New function.
43620 (func_checker::compare_operand): Split case to newly
43621 added functions.
43622 (func_checker::compare_cst_or_decl): New function.
43623 (func_checker::compare_gimple_call): Identify
43624 memory operands.
43625 (func_checker::compare_gimple_assign): Likewise.
43626 * ipa-icf-gimple.h: New function.
43627
43628 2015-01-09 Martin Liska <mliska@suse.cz>
43629
43630 PR ipa/64503
43631 * sreal.c (sreal::dump): Change unsigned format to signed for
43632 m_exp value.
43633 (sreal::to_double): Replace exp2 with scalbln.
43634
43635 2015-01-09 Martin Liska <mliska@suse.cz>
43636
43637 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
43638 * ipa-icf.c (sem_function::equals_private): Add support for target and
43639 (sem_item_optimizer::merge_classes): Remove redundant function
43640 optimization flags comparison.
43641 * tree.h (target_opts_for_fn): New function.
43642
43643 2015-01-09 Tom de Vries <tom@codesourcery.com>
43644
43645 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
43646
43647 2015-01-09 Kito Cheng <kito@0xlab.org>
43648
43649 PR rtl-optimization/64348
43650 * lra-constraints.c (split_reg): Fix caller-save store/restore
43651 instruction generation.
43652
43653 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
43654
43655 PR gcov-profile/61790
43656 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
43657 long long. Fallback to int64_t if host doesn't have long long and
43658 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
43659
43660 2015-01-08 Jakub Jelinek <jakub@redhat.com>
43661
43662 PR tree-optimization/63989
43663 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
43664 from 1000 to 10000.
43665 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
43666 (get_stridx): If we don't have a record for certain SSA_NAME,
43667 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
43668 constant offset, call get_stridx_plus_constant.
43669 (get_stridx_plus_constant): New function.
43670 (zero_length_string): Don't use get_stridx here.
43671
43672 PR target/55023
43673 PR middle-end/64388
43674 * dse.c (struct insn_info): Mention frame_read set also
43675 before reload for tail calls on some targets.
43676 (scan_insn): Revert 2014-12-22 change. Set frame_read
43677 also before reload for tail calls if
43678 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
43679 instead of add_non_frame_wild_read for non-const/memset
43680 tail calls after reload.
43681
43682 2015-01-08 Jason Merrill <jason@redhat.com>
43683
43684 * ubsan.c (do_ubsan_in_current_function): New.
43685 (pass_ubsan::gate): Use it.
43686 * ubsan.h: Declare it.
43687 * convert.c (convert_to_integer): Use it.
43688
43689 2015-01-08 Jakub Jelinek <jakub@redhat.com>
43690
43691 PR target/64338
43692 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
43693 compare_code when it is unconditionally overwritten afterwards.
43694 Use ix86_reverse_condition instead of reverse_condition. Don't
43695 change code if *reverse_condition* returned UNKNOWN and don't
43696 swap ct/cf and negate diff in that case.
43697
43698 2015-01-08 Mike Stump <mikestump@comcast.net>
43699
43700 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
43701 (pass_tsan_O0::gate): Likewise.
43702 * extend.texi (Function Attributes): Add no_sanitize_thread
43703 documentation.
43704
43705 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
43706
43707 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
43708 for registering builtins.
43709 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
43710 add -fopenmp to the argv_obstack used when invoking
43711 compile_for_target.
43712
43713 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
43714 add "-m32" or "-m64" to argv_obstack.
43715 (generate_host_descr_file): Likewise, when invoking host_compiler.
43716 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
43717 ld.
43718
43719 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
43720
43721 * config/sh/sh-mem.cc: Use constant as second operand when emitting
43722 tstsi_t insns.
43723
43724 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
43725
43726 PR target/55212
43727 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
43728 constant load if constant operand fits into I08.
43729
43730 2015-01-08 Jakub Jelinek <jakub@redhat.com>
43731
43732 PR sanitizer/64336
43733 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
43734 and TREE_THIS_VOLATILE for MEM_REFs.
43735 (build5_stat): Fix up initialization of TREE_READONLY and
43736 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
43737
43738 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
43739
43740 PR target/64533
43741 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
43742 of r for the second alternative of the destination operand.
43743
43744 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
43745
43746 PR target/36557
43747 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
43748
43749 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
43750
43751 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
43752 keywords.
43753 ([-fivar-visibility], [-fvisibility]): Likewise.
43754
43755 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
43756
43757 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
43758 the file where @code, @command, etc is more appropriate.
43759
43760 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
43761
43762 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
43763 of -mrecip= documentation.
43764
43765 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
43766
43767 PR target/64505
43768 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
43769 correct reload handler if -m32 -mpowerpc64 is used.
43770
43771 2015-01-06 Tom de Vries <tom@codesourcery.com>
43772
43773 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
43774
43775 2015-01-08 Christian Bruel <christian.bruel@st.com>
43776
43777 PR target/64507
43778 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
43779
43780 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
43781
43782 PR tree-optimization/63259
43783 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
43784 if optab exists for 16bit byteswap.
43785
43786 2015-01-06 Jakub Jelinek <jakub@redhat.com>
43787
43788 * opts.c (common_handle_option): Add support for
43789 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
43790 * doc/invoke.texi: Document -fno-sanitize=all,
43791 -f{,no-}sanitize-recover=all. Document that
43792 -fsanitize=float-cast-overflow is not enabled
43793 by -fsanitize=undefined. Fix up documentation
43794 of -f{,no-}sanitize-recover.
43795
43796 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
43797
43798 * config.gcc: Add Visium support.
43799 * configure.ac: Likewise.
43800 * configure: Regenerate.
43801 * doc/extend.texi (interrupt attribute): Add Visium.
43802 * doc/invoke.texi: Document Visium options.
43803 * doc/install.texi: Document Visium target.
43804 * doc/md.texi: Document Visium constraints.
43805 * common/config/visium: New directory.
43806 * config/visium: Likewise.
43807
43808 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
43809
43810 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
43811 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
43812
43813 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
43814
43815 * combine.c (combine_validate_cost): Do not count the cost of a
43816 split I2 twice. Do not display it twice in the dump, either.
43817
43818 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
43819
43820 Revert parts of r219199.
43821 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
43822 <inttypes.h>.
43823 ([-Wtraditional]): Restore markup on <limits.h>.
43824
43825 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
43826
43827 PR c++/31397
43828 * doc/invoke.texi: Document -Wsuggest-override.
43829
43830 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
43831
43832 PR rtl-optimization/64287
43833 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
43834 (process_options): Disable flag_ipa_ra if profiling.
43835
43836 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
43837
43838 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
43839
43840 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
43841
43842 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
43843 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
43844 put under #if TARGET_LOOPS guard.
43845
43846 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
43847
43848 * config/i386/i386.c (output_387_binary_op): Use std::swap.
43849
43850 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
43851
43852 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
43853 * rtl.h (refers_to_regno_p): Add overload.
43854 * cse.c: Use it.
43855 * bt-load.c: Likewise.
43856 * combine.c: Likewise.
43857 * df-scan.c: Likewise.
43858 * sched-deps.c: Likewise.
43859 * config/s390/s390.c: Likewise.
43860 * config/m32r/m32r.c: Likewise.
43861 * config/rs6000/spe.md: Likewise.
43862 * config/rs6000/rs6000.c: Likewise.
43863 * config/pa/pa.c: Likewise.
43864 * config/stormy16/stormy16.c: Likewise.
43865 * config/cris/cris.c: Likewise.
43866 * config/arc/arc.md: Likewise.
43867 * config/arc/arc.c: Likewise.
43868 * config/sh/sh.md: Likewise.
43869 * config/sh/sh.c: Likewise.
43870 * config/frv/frv.c: Likewise.
43871
43872 2015-01-05 Jakub Jelinek <jakub@redhat.com>
43873
43874 PR sanitizer/64265
43875 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
43876 call as cleanup of the whole body.
43877 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
43878 * tsan.c (replace_func_exit): New function.
43879 (instrument_func_exit): Moved earlier.
43880 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
43881 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
43882 been found.
43883 (tsan_pass): Don't call instrument_func_exit.
43884 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
43885 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
43886 inlining.
43887
43888 PR sanitizer/64344
43889 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
43890 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
43891 it to libubsan handler instead of EXPR. Fold comparisons earlier,
43892 if the result is integer_zerop, return NULL_TREE.
43893 * convert.c (convert_to_integer): Pass expr as ARG.
43894
43895 PR tree-optimization/64465
43896 * tree-inline.c (redirect_all_calls): During inlining
43897 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
43898 changed the stmt to a non-throwing call.
43899
43900 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
43901
43902 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
43903 etc markup throughout the file.
43904
43905 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
43906
43907 Enable experimental TSAN support for Ada.
43908 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
43909
43910 2015-01-05 Jakub Jelinek <jakub@redhat.com>
43911
43912 PR tree-optimization/64494
43913 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
43914 clear SSA_NAME_ANTI_RANGE_P flag.
43915
43916 2015-01-05 Marek Polacek <polacek@redhat.com>
43917
43918 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
43919
43920 2015-01-05 Jakub Jelinek <jakub@redhat.com>
43921
43922 Update copyright years.
43923
43924 * gcc.c (process_command): Update copyright notice dates.
43925 * gcov-dump.c: Ditto.
43926 * gcov.c: Ditto.
43927 * doc/cpp.texi: Bump @copying's copyright year.
43928 * doc/cppinternals.texi: Ditto.
43929 * doc/gcc.texi: Ditto.
43930 * doc/gccint.texi: Ditto.
43931 * doc/gcov.texi: Ditto.
43932 * doc/install.texi: Ditto.
43933 * doc/invoke.texi: Ditto.
43934
43935 * auto-profile.c, auto-profile.h: Fix up Copyright line.
43936
43937 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
43938
43939 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
43940 verb tense, etc.
43941 ([-fvtable-verify], [-fvtv-debug]): Likewise.
43942 ([-Wabi]): Likewise.
43943 ([-fmessage-length]): Likewise.
43944 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
43945 ([-Wno-discarded-qualifiers]): Likewise.
43946 ([-Wnodiscarded-array-qualifiers]): Likewise.
43947 ([-Wno-virtual-move-assign]): Likewise.
43948 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
43949 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
43950 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
43951 ([-fsanitize-undefined-trap-on-error]): Likewise.
43952 ([-floop-interchange]): Likewise.
43953 ([-ftree-coalesce-inlined-vars]): Likewise.
43954 ([-fvect-cost-model]): Likewise.
43955 ([-flto]): Likewise.
43956 ([--param]): Likewise.
43957 (Spec Files): Likewise.
43958 ([-mstrict-align]): Likewise.
43959 ([-mfix-cortex-a53-835769]): Likewise.
43960 ([-march], [-mtune]): Likewise.
43961 ([-mpic-register]): Likewise.
43962 ([-munaligned-access]): Likewise.
43963 ([-msp8]): Likewise.
43964 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
43965 (AVR Built-in Macros): Likewise.
43966 ([-mpreferred-stack-boundary]): Likewise.
43967 ([-mtune-crtl]): Likewise.
43968 ([-mashf]): Likewise.
43969 ([-mmcu=]): Likewise.
43970 ([-minrt]): Likewise.
43971 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
43972 ([-mupper-regs]): Likewise.
43973 ([-matomic-model]): Likewise.
43974 ([-mdiv]): Likewise.
43975 ([-mzdcbranch]): Likewise.
43976 ([-mdisable-callt]): Likewise.
43977 ([-msoft-float]): Likewise.
43978 ([-m8byte-align]): Likewise.
43979 ([-fstack-reuse]): Likewise.
43980
43981 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
43982
43983 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
43984 Fix markup, light copy-editing.
43985 ([-fauto-profile]): Rewrite to fix formatting and content
43986 problems.
43987
43988 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
43989
43990 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
43991 Copy-edit description.
43992 ([-fisolate-erroneous-paths-attribute]): Likewise.
43993 * common.opt (fisolate-erroneous-paths-dereference):
43994 Copy-edit description.
43995 (fisolate-erroneous-paths-attribute): Likewise.
43996
43997 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
43998
43999 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
44000 tidy grammar.
44001
44002 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
44003
44004 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
44005 ([-fvtv-debug]): Likewise.
44006 ([-Wc++-compat]): Likewise.
44007 ([-Wc++11-compat]): Likewise.
44008 ([-Wc++14-compat]): Likewise.
44009 ([-Wno-sized-deallocation]): Likewise.
44010 ([-femit-class-debug-always]): Likewise.
44011 ([-femit-struct-debug-detailed]): Likewise.
44012 ([-fno-keep-inline-dllexport]): Likewise.
44013 ([-fira-algorithm]): Likewise.
44014 ([-fira-region]): Likewise.
44015 ([-flra-remat]): Likewise.
44016 ([-fipa-ra]): Likewise.
44017 ([-fhoist-adjacent-loads]): Likewise.
44018 ([-fisolate-erroneous-paths-dereference]): Likewise.
44019 ([-fisolate-erroneous-paths-attribute]): Likewise.
44020 ([-ftree-switch-conversion]): Likewise.
44021 ([-ftree-tail-merge]): Likewise.
44022 ([-ftree-loop-if-convert]): Likewise.
44023 ([-ftree-loop-if-convert-stores]): Likewise.
44024 ([-ftree-loop-distribution]): Likewise.
44025 ([-ftree-loop-distribute-patterns]): Likewise.
44026 ([-flto-compression-level]): Likewise.
44027 ([-flto-report]): Likewise.
44028 ([-flto-report-wpa]): Likewise.
44029 ([-fuse-linker-plugin]): Likewise.
44030 ([-mfix-cortex-a53-835769]): Likewise.
44031 ([-mno-fix-cortex-a53-835769]): Likewise.
44032 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
44033 explicit listing; add a note to the discussion indicating they
44034 exist. Reorder table to group similar options. Add missing
44035 @opindex entries. Add @need commands throughout the table to
44036 allow it to be split across multiple pages.
44037 ([-m8bit-idiv]): Fix @opindex.
44038 ([-mavx256-split-unaligned-load]): Likewise.
44039 ([-mavx256-split-unaligned-store]): Likewise.
44040 ([-mstack-protector-guard]): Likewise.
44041 ([-mcpu=]): Likewise.
44042 ([-mcpu]): Likewise.
44043 ([-mpointer-size=]): Likewise.
44044
44045 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
44046
44047 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
44048 instead of `m' constraint. Likewise for unnamed movb comparison
44049 patterns using reg_before_reload_operand predicate.
44050 * config/pa/predicates.md (reg_before_reload_operand): Tighten
44051 predicate to reject register index and LO_SUM DLT memory forms
44052 after reload.
44053
44054 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
44055
44056 * doc/invoke.texi (Option Summary): Fix spelling of
44057 -fdevirtualize-at-ltrans.
44058 ([-fdevirtualize]): Fix markup.
44059 ([-fdevirtualize-speculatively]): Fix typo.
44060 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
44061 implementor-speaky.
44062 * common.opt (fdevirtualize-at-ltrans): Likewise.
44063 * ipa-devirt.c: Fix typos in comments throughout the file.
44064 (ipa_devirt): Fix typos in format strings for dump output.
44065
44066 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
44067
44068 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
44069 discussion of defaults, light copy-editing.
44070
44071 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
44072
44073 * tsan.c (instrument_expr): corrected previous checkin.
44074
44075 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
44076
44077 Instrument bit field and unaligned accesses for TSAN.
44078 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
44079 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
44080 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
44081 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
44082 unaligned memory regions.
44083
44084 2015-01-01 Anthony Green <green@moxielogic.com>
44085
44086 * config/moxie/predicates.md (moxie_general_movsrc_operand):
44087 Restrict move source register offsets to 16 bits.
44088 \f
44089 Copyright (C) 2015 Free Software Foundation, Inc.
44090
44091 Copying and distribution of this file, with or without modification,
44092 are permitted in any medium without royalty provided the copyright
44093 notice and this notice are preserved.