[arm] Introduce arm_active_target.
[gcc.git] / gcc / ChangeLog
1 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
2
3 * arm-protos.h (arm_build_target): New structure.
4 (arm_active_target): Declare it.
5 * arm.c (arm_active_target): New variable.
6 (bitmap_popcount): New function.
7 (feature_count): Delete.
8 (arm_initialize_isa): New function.
9 isa_fpubits): New variable.
10 (arm_configure_build_target): New function.
11 (arm_option_override): Initialize isa_fpubits and arm_active_target.isa.
12 Use arm_configure_build_target.
13
14 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
15
16 * arm-isa.h: New file.
17 * arm-protos.h: Include it.
18 * arm-arches.def: Add new ISA field to all entries. Drop bogus
19 armv8.1-a+crc architecture.
20 * arm-cores.def: Similarly. Group ARMv8 cores by profile.
21 * arm-opts.h (enum processor_type): Adjust for new field.
22 * arm.c (struct processors): New field 'isa_bits'.
23 (all_cores, all_architectures): Initialize new field.
24 * arm-tables.opt: Regenerated.
25 * arm-tune.md: Regenerated.
26
27 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
28
29 * arm-arches.def (ARM_ARCH): Add extra field TUNE_FLAGS, move
30 tuning properties from architectural FLAGS field.
31 * arm-cores.def (ARM_CORE): Likewise.
32 * arm-protos.h (TF_LDSCHED, TF_WBUF, TF_CO_PROC): New macros.
33 (TF_SMALLMUL, TF_STRONG, TF_SCALE, TF_NOMODE32): New macros.
34 (FL_LDSCHED, FL_STRONG, FL_WBUF, FL_SMALLMUL): Delete.
35 (FL_TUNE): Remove deleted elements.
36 (tune_flags): Convert type to unsigned int.
37 * arm.c (struct processors): Add new field tune_flags.
38 (all_cores, all_arches): Initialize it.
39 (arm_option_override): Adapt uses of tune_flags. Use tune_flags
40 for deciding when we should have slow multiply operations.
41
42 2016-12-14 Martin Sebor <msebor@redhat.com>
43
44 PR middle-end/78519
45 * gimple-ssa-sprintf.c (format_string): Handle null pointers.
46 (format_directive): Diagnose null pointer arguments.
47 (pass_sprintf_length::handle_gimple_call): Diagnose null destination
48 pointers. Correct location of null format string in diagnostics.
49
50 2016-12-14 David Malcolm <dmalcolm@redhat.com>
51
52 * Makefile.in (SELFTEST_FLAGS): Add path argument to -fself-test.
53 (s-selftest): Add dependency on the selftests data directory.
54 * common.opt (fself-test): Rename to...
55 (fself-test=): ...this, documenting the meaning of the argument.
56 * selftest-run-tests.c (along): Likewise.
57 * selftest-run-tests.c: Include "options.h".
58 (selftest::run_tests): Initialize selftest::path_to_selftest_files
59 from flag_self_test.
60 * selftest.c (selftest::path_to_selftest_files): New global.
61 (selftest::locate_file): New function.
62 (selftest::test_locate_file): New function.
63 (selftest_c_tests): Likewise.
64 (selftest::selftest_c_tests): Call test_locate_file.
65 * selftest.h (selftest::locate_file): New decl.
66 (selftest::path_to_selftest_files): New decl.
67
68 2016-12-14 Andrew Pinski <apinski@cavium.com>
69
70 * config/aarch64/aarch64-cores.def: Add -1 as the variant to all
71 of the cores.
72 (thunderx): Update to include LSE by default.
73 (thunderxt88p1): New core.
74 (thunderxt88): New core.
75 (thunderxt81): New core.
76 (thunderxt83): New core.
77 * config/aarch64/driver-aarch64.c (struct aarch64_core_data):
78 Add variant field.
79 (ALL_VARIANTS): New define.
80 (AARCH64_CORE): Support VARIANT operand.
81 (cpu_data): Likewise.
82 (host_detect_local_cpu): Parse variant field of /proc/cpuinfo.
83 Combine the arch and single core case and support variant searching.
84 * common/config/aarch64/aarch64-common.c (AARCH64_CORE):
85 Add VARIANT operand.
86 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Likewise.
87 * config/aarch64/aarch64.c (AARCH64_CORE): Likewise.
88 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
89 * config/aarch64/aarch64-tune.md: Regenerate.
90 * doc/invoke.texi (AARCH64/mtune): Document thunderxt88,
91 thunderxt88p1, thunderxt81, thunderxt83 as available options.
92
93 2016-12-14 Martin Jambor <mjambor@suse.cz>
94
95 * omp-offload.c: Fix coding style.
96 * omp-expand.c: Likewise.
97 * omp-general.c: Likewise.
98 * omp-grid.c: Likewise.
99 * omp-low.c: Fix coding style of parts touched by the
100 previous splitting patch.
101
102 2016-12-14 Martin Jambor <mjambor@suse.cz>
103
104 * omp-general.h: New file.
105 * omp-general.c: New file.
106 * omp-expand.h: Likewise.
107 * omp-expand.c: Likewise.
108 * omp-offload.h: Likewise.
109 * omp-offload.c: Likewise.
110 * omp-grid.c: Likewise.
111 * omp-grid.c: Likewise.
112 * omp-low.h: Include omp-general.h and omp-grid.h. Removed includes
113 of params.h, symbol-summary.h, lto-section-names.h, cilk.h, tree-eh.h,
114 ipa-prop.h, tree-cfgcleanup.h, cfgloop.h, except.h, expr.h, stmt.h,
115 varasm.h, calls.h, explow.h, dojump.h, flags.h, tree-into-ssa.h,
116 tree-cfg.h, cfganal.h, alias.h, emit-rtl.h, optabs.h, expmed.h,
117 alloc-pool.h, cfghooks.h, rtl.h and memmodel.h.
118 (omp_find_combined_for): Declare.
119 (find_omp_clause): Renamed to omp_find_clause and moved to
120 omp-general.h.
121 (free_omp_regions): Renamed to omp_free_regions and moved to
122 omp-expand.h.
123 (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
124 to omp-general.h.
125 (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
126 omp-general.h.
127 (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
128 moved to omp-general.h.
129 (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
130 omp-general.h.
131 (oacc_fn_attrib_kernels_p): Moved to omp-general.h.
132 (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
133 omp-general.c.
134 (omp_expand_local): Moved to omp-expand.h.
135 (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
136 omp-expand.h.
137 (omp_finish_file): Moved to omp-offload.h.
138 (default_goacc_validate_dims): Renamed to
139 oacc_default_goacc_validate_dims and moved to omp-offload.h.
140 (offload_funcs, offload_vars): Moved to omp-offload.h.
141 * omp-low.c: Include omp-general.h, omp-offload.h and omp-grid.h.
142 (omp_region): Moved to omp-expand.c.
143 (omp_for_data_loop): Moved to omp-general.h.
144 (omp_for_data): Likewise.
145 (oacc_loop): Moved to omp-offload.c.
146 (oacc_loop_flags): Moved to omp-general.h.
147 (offload_funcs, offload_vars): Moved to omp-offload.c.
148 (root_omp_region): Moved to omp-expand.c.
149 (omp_any_child_fn_dumped): Likewise.
150 (find_omp_clause): Renamed to omp_find_clause and moved to
151 omp-general.c.
152 (is_combined_parallel): Moved to omp-expand.c.
153 (is_reference): Renamed to omp_is_reference and and moved to
154 omp-general.c.
155 (adjust_for_condition): Renamed to omp_adjust_for_condition and moved
156 to omp-general.c.
157 (get_omp_for_step_from_incr): Renamed to omp_get_for_step_from_incr
158 and moved to omp-general.c.
159 (extract_omp_for_data): Renamed to omp_extract_for_data and moved to
160 omp-general.c.
161 (workshare_safe_to_combine_p): Moved to omp-expand.c.
162 (omp_adjust_chunk_size): Likewise.
163 (get_ws_args_for): Likewise.
164 (get_base_type): Removed.
165 (dump_omp_region): Moved to omp-expand.c.
166 (debug_omp_region): Likewise.
167 (debug_all_omp_regions): Likewise.
168 (new_omp_region): Likewise.
169 (free_omp_region_1): Likewise.
170 (free_omp_regions): Renamed to omp_free_regions and moved to
171 omp-expand.c.
172 (find_combined_for): Renamed to omp_find_combined_for, made global.
173 (build_omp_barrier): Renamed to omp_build_barrier and moved to
174 omp-general.c.
175 (omp_max_vf): Moved to omp-general.c.
176 (omp_max_simt_vf): Likewise.
177 (gimple_build_cond_empty): Moved to omp-expand.c.
178 (parallel_needs_hsa_kernel_p): Likewise.
179 (expand_omp_build_assign): Moved declaration to omp-expand.c.
180 (expand_parallel_call): Moved to omp-expand.c.
181 (expand_cilk_for_call): Likewise.
182 (expand_task_call): Likewise.
183 (vec2chain): Likewise.
184 (remove_exit_barrier): Likewise.
185 (remove_exit_barriers): Likewise.
186 (optimize_omp_library_calls): Likewise.
187 (expand_omp_regimplify_p): Likewise.
188 (expand_omp_build_assign): Likewise.
189 (expand_omp_taskreg): Likewise.
190 (oacc_collapse): Likewise.
191 (expand_oacc_collapse_init): Likewise.
192 (expand_oacc_collapse_vars): Likewise.
193 (expand_omp_for_init_counts): Likewise.
194 (expand_omp_for_init_vars): Likewise.
195 (extract_omp_for_update_vars): Likewise.
196 (expand_omp_ordered_source): Likewise.
197 (expand_omp_ordered_sink): Likewise.
198 (expand_omp_ordered_source_sink): Likewise.
199 (expand_omp_for_ordered_loops): Likewise.
200 (expand_omp_for_generic): Likewise.
201 (expand_omp_for_static_nochunk): Likewise.
202 (find_phi_with_arg_on_edge): Likewise.
203 (expand_omp_for_static_chunk): Likewise.
204 (expand_cilk_for): Likewise.
205 (expand_omp_simd): Likewise.
206 (expand_omp_taskloop_for_outer): Likewise.
207 (expand_omp_taskloop_for_inner): Likewise.
208 (expand_oacc_for): Likewise.
209 (expand_omp_for): Likewise.
210 (expand_omp_sections): Likewise.
211 (expand_omp_single): Likewise.
212 (expand_omp_synch): Likewise.
213 (expand_omp_atomic_load): Likewise.
214 (expand_omp_atomic_store): Likewise.
215 (expand_omp_atomic_fetch_op): Likewise.
216 (expand_omp_atomic_pipeline): Likewise.
217 (expand_omp_atomic_mutex): Likewise.
218 (expand_omp_atomic): Likewise.
219 (oacc_launch_pack): and moved to omp-general.c, made public.
220 (OACC_FN_ATTRIB): Likewise.
221 (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
222 to omp-general.c.
223 (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
224 omp-general.c.
225 (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
226 moved to omp-general.c.
227 (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
228 omp-general.c.
229 (oacc_fn_attrib_kernels_p): Moved to omp-general.c.
230 (oacc_fn_attrib_level): Moved to omp-offload.c.
231 (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
232 omp-general.c.
233 (get_oacc_ifn_dim_arg): Renamed to oacc_get_ifn_dim_arg and moved to
234 omp-general.c.
235 (mark_loops_in_oacc_kernels_region): Moved to omp-expand.c.
236 (grid_launch_attributes_trees): Likewise.
237 (grid_attr_trees): Likewise.
238 (grid_create_kernel_launch_attr_types): Likewise.
239 (grid_insert_store_range_dim): Likewise.
240 (grid_get_kernel_launch_attributes): Likewise.
241 (get_target_argument_identifier_1): Likewise.
242 (get_target_argument_identifier): Likewise.
243 (get_target_argument_value): Likewise.
244 (push_target_argument_according_to_value): Likewise.
245 (get_target_arguments): Likewise.
246 (expand_omp_target): Likewise.
247 (grid_expand_omp_for_loop): Moved to omp-grid.c.
248 (grid_arg_decl_map): Likewise.
249 (grid_remap_kernel_arg_accesses): Likewise.
250 (grid_expand_target_grid_body): Likewise.
251 (expand_omp): Renamed to omp_expand and moved to omp-expand.c.
252 (build_omp_regions_1): Moved to omp-expand.c.
253 (build_omp_regions_root): Likewise.
254 (omp_expand_local): Likewise.
255 (build_omp_regions): Likewise.
256 (execute_expand_omp): Likewise.
257 (pass_data_expand_omp): Likewise.
258 (pass_expand_omp): Likewise.
259 (make_pass_expand_omp): Likewise.
260 (pass_data_expand_omp_ssa): Likewise.
261 (pass_expand_omp_ssa): Likewise.
262 (make_pass_expand_omp_ssa): Likewise.
263 (grid_lastprivate_predicate): Renamed to
264 omp_grid_lastprivate_predicate and moved to omp-grid.c, made public.
265 (grid_prop): Moved to omp-grid.c.
266 (GRID_MISSED_MSG_PREFIX): Likewise.
267 (grid_safe_assignment_p): Likewise.
268 (grid_seq_only_contains_local_assignments): Likewise.
269 (grid_find_single_omp_among_assignments_1): Likewise.
270 (grid_find_single_omp_among_assignments): Likewise.
271 (grid_find_ungridifiable_statement): Likewise.
272 (grid_parallel_clauses_gridifiable): Likewise.
273 (grid_inner_loop_gridifiable_p): Likewise.
274 (grid_dist_follows_simple_pattern): Likewise.
275 (grid_gfor_follows_tiling_pattern): Likewise.
276 (grid_call_permissible_in_distribute_p): Likewise.
277 (grid_handle_call_in_distribute): Likewise.
278 (grid_dist_follows_tiling_pattern): Likewise.
279 (grid_target_follows_gridifiable_pattern): Likewise.
280 (grid_remap_prebody_decls): Likewise.
281 (grid_var_segment): Likewise.
282 (grid_mark_variable_segment): Likewise.
283 (grid_copy_leading_local_assignments): Likewise.
284 (grid_process_grid_body): Likewise.
285 (grid_eliminate_combined_simd_part): Likewise.
286 (grid_mark_tiling_loops): Likewise.
287 (grid_mark_tiling_parallels_and_loops): Likewise.
288 (grid_process_kernel_body_copy): Likewise.
289 (grid_attempt_target_gridification): Likewise.
290 (grid_gridify_all_targets_stmt): Likewise.
291 (grid_gridify_all_targets): Renamed to omp_grid_gridify_all_targets
292 and moved to omp-grid.c, made public.
293 (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
294 omp-expand.c.
295 (add_decls_addresses_to_decl_constructor): Moved to omp-offload.c.
296 (omp_finish_file): Likewise.
297 (oacc_thread_numbers): Likewise.
298 (oacc_xform_loop): Likewise.
299 (oacc_default_dims, oacc_min_dims): Likewise.
300 (oacc_parse_default_dims): Likewise.
301 (oacc_validate_dims): Likewise.
302 (new_oacc_loop_raw): Likewise.
303 (new_oacc_loop_outer): Likewise.
304 (new_oacc_loop): Likewise.
305 (new_oacc_loop_routine): Likewise.
306 (finish_oacc_loop): Likewise.
307 (free_oacc_loop): Likewise.
308 (dump_oacc_loop_part): Likewise.
309 (dump_oacc_loop): Likewise.
310 (debug_oacc_loop): Likewise.
311 (oacc_loop_discover_walk): Likewise.
312 (oacc_loop_sibling_nreverse): Likewise.
313 (oacc_loop_discovery): Likewise.
314 (oacc_loop_xform_head_tail): Likewise.
315 (oacc_loop_xform_loop): Likewise.
316 (oacc_loop_process): Likewise.
317 (oacc_loop_fixed_partitions): Likewise.
318 (oacc_loop_auto_partitions): Likewise.
319 (oacc_loop_partition): Likewise.
320 (default_goacc_fork_join): Likewise.
321 (default_goacc_reduction): Likewise.
322 (execute_oacc_device_lower): Likewise.
323 (default_goacc_validate_dims): Likewise.
324 (default_goacc_dim_limit): Likewise.
325 (pass_data_oacc_device_lower): Likewise.
326 (pass_oacc_device_lower): Likewise.
327 (make_pass_oacc_device_lower): Likewise.
328 (execute_omp_device_lower): Likewise.
329 (pass_data_omp_device_lower): Likewise.
330 (pass_omp_device_lower): Likewise.
331 (make_pass_omp_device_lower): Likewise.
332 (pass_data_omp_target_link): Likewise.
333 (pass_omp_target_link): Likewise.
334 (find_link_var_op): Likewise.
335 (pass_omp_target_link::execute): Likewise.
336 (make_pass_omp_target_link): Likewise.
337 * Makefile.in (OBJS): Added omp-offload.o, omp-expand.o, omp-general.o
338 and omp-grid.o.
339 (GTFILES): Added omp-offload.h, omp-offload.c and omp-expand.c, removed
340 omp-low.h.
341 * gimple-fold.c: Include omp-general.h instead of omp-low.h.
342 (fold_internal_goacc_dim): Adjusted calls to
343 get_oacc_ifn_dim_arg and get_oacc_fn_dim_size to use their new names.
344 * gimplify.c: Include omp-low.h.
345 (omp_notice_variable): Adjust the call to get_oacc_fn_attrib to use
346 its new name.
347 (gimplify_omp_task): Adjusted calls to find_omp_clause to use its new
348 name.
349 (gimplify_omp_for): Likewise.
350 * lto-cgraph.c: Include omp-offload.h instead of omp-low.h.
351 * toplev.c: Include omp-offload.h instead of omp-low.h.
352 * tree-cfg.c: Include omp-general.h instead of omp-low.h. Also
353 include omp-expand.h.
354 (make_edges_bb): Adjusted the call to make_gimple_omp_edges to use its
355 new name.
356 (make_edges): Adjust the call to free_omp_regions to use its new name.
357 * tree-parloops.c: Include omp-general.h.
358 (create_parallel_loop): Adjusted the call to set_oacc_fn_attrib to use
359 its new name.
360 (parallelize_loops): Adjusted the call to get_oacc_fn_attrib to use
361 its new name.
362 * tree-ssa-loop.c: Include omp-general.h instead of omp-low.h.
363 (gate_oacc_kernels): Adjusted the call to get_oacc_fn_attrib to use
364 its new name.
365 * tree-vrp.c: Include omp-general.h instead of omp-low.h.
366 (extract_range_basic): Adjusted calls to get_oacc_ifn_dim_arg and
367 get_oacc_fn_dim_size to use their new names.
368 * varpool.c: Include omp-offload.h instead of omp-low.h.
369 * gengtype.c (open_base_files): Replace omp-low.h with omp-offload.h in
370 ifiles.
371 * config/nvptx/nvptx.c: Include omp-general.c.
372 (nvptx_expand_call): Adjusted the call to get_oacc_fn_attrib to use
373 its new name.
374 (nvptx_reorg): Likewise.
375 (nvptx_record_offload_symbol): Likewise.
376
377 2016-12-14 Martin Sebor <msebor@redhat.com>
378
379 PR middle-end/78786
380 * gimple-ssa-sprintf.c (target_dir_max): New macro.
381 (get_mpfr_format_length): New function.
382 (format_integer): Use HOST_WIDE_INT instead of int.
383 (format_floating_max): Same.
384 (format_floating): Call get_mpfr_format_length.
385 (format_directive): Use target_dir_max.
386
387 2016-12-14 Jakub Jelinek <jakub@redhat.com>
388
389 PR target/78791
390 * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_STV_TEMP.
391 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies,
392 dimode_scalar_chain::convert_reg): Use SLOT_STV_TEMP instead of
393 SLOT_TEMP.
394
395 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
396
397 PR target/59874
398 * config/i386/i386-builtin.def: Add __builtin_clzs and __builtin_ctzs.
399 (ix86_fold_builtin): Handle IX86_BUILTIN_CTZS and IX86_BUILTIN_CLZS.
400 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
401 (*clzhi2): Ditto.
402
403 2016-12-14 Jakub Jelinek <jakub@redhat.com>
404
405 PR debug/77844
406 * valtrack.c: Include rtl-iter.h.
407 (struct rtx_subst_pair): Add insn field.
408 (propagate_for_debug_subst): If pair->to contains at least 2
409 regs, create a DEBUG_INSN with a debug temp before pair->insn
410 and replace from with the debug temp instead of pair->to.
411 (propagate_for_debug): Initialize p.insn.
412 * combine.c (insn_uid_check): New inline function.
413 (INSN_COST, LOG_LINKS): Use it instead of INSN_UID.
414 (find_single_use, combine_instructions,
415 cant_combine_insn_p, try_combine): Use NONDEBUG_INSN_P instead of
416 INSN_P.
417
418 2016-12-14 Martin Sebor <msebor@redhat.com>
419
420 PR c/17308
421 * builtin-attrs.def (ATTR_NONNULL_1_1, ATTR_NONNULL_1_2): Defined.
422 (ATTR_NONNULL_1_3, ATTR_NONNULL_1_4, ATTR_NONNULL_1_5): Same.
423 (ATTR_NOTHROW_NONNULL_1_1, ATTR_NOTHROW_NONNULL_1_2): Same.
424 (ATTR_NOTHROW_NONNULL_1_3, ATTR_NOTHROW_NONNULL_1_4): Same.
425 (ATTR_NOTHROW_NONNULL_1_5): Same.
426 (ATTR_NONNULL_1_FORMAT_PRINTF_1_2): Same.
427 (ATTR_NONNULL_1_FORMAT_PRINTF_2_0): Same.
428 (ATTR_NONNULL_1_FORMAT_PRINTF_2_3): Same.
429 (ATTR_NONNULL_1_FORMAT_PRINTF_3_0): Same.
430 (ATTR_NONNULL_1_FORMAT_PRINTF_3_4): Same.
431 (ATTR_NONNULL_1_FORMAT_PRINTF_4_0): Same.
432 (ATTR_NONNULL_1_FORMAT_PRINTF_4_5): Same.
433 * builtins.c (validate_arg): Add argument. Treat null pointers
434 passed to nonnull arguments as invalid.
435 (validate_arglist): Same.
436 * builtins.def (fprintf, fprintf_unlocked): Add nonnull attribute.
437 (printf, printf_unlocked, sprintf. vfprintf, vsprintf): Same.
438 (__sprintf_chk, __vsprintf_chk, __fprintf_chk, __vfprintf_chk): Same.
439 * calls.c (get_nonnull_ags, maybe_warn_null_arg): New functions.
440 (initialize_argument_information): Diagnose null pointers passed to
441 arguments declared nonnull.
442 * calls.h (get_nonnull_args): Declared.
443
444 2016-12-14 Michael Meissner <meissner@linux.vnet.ibm.com>
445
446 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): On ISA
447 3.0/power9, add support to use the VEXTU{B,H,W}{L,R}X extract
448 instructions.
449 * config/rs6000/vsx.md (VSr2): Add IEEE 128-bit floating point
450 type constraint registers.
451 (VSr3): Likewise.
452 (FL_CONV): New mode iterator for binary floating types that have a
453 direct conversion from 64-bit integer to floating point.
454 (vsx_extract_<mode>_p9): Add support for the ISA 3.0/power9
455 VEXTU{B,H,W}{L,R}X extract instructions.
456 (vsx_extract_<mode>_p9 splitter): Add splitter to load up the
457 extract byte position into the GPR if we are using the
458 VEXTU{B,H,W}{L,R}X extract instructions.
459 (vsx_extract_<mode>_di_p9): Support extracts to GPRs.
460 (vsx_extract_<mode>_store_p9): Support extracting to GPRs so that
461 we can use reg+offset address instructions.
462 (vsx_extract_<mode>_var): Support extracts to GPRs.
463 (vsx_extract_<VSX_EXTRACT_I:mode>_<SDI:mode>_var): New combiner
464 insn to combine vector extracts with zero_extend.
465 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Optimize
466 extracting a small integer vector element and converting it to a
467 floating point type.
468 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
469 (UNSPEC_XXEXTRACTUW): New unspec.
470 (UNSPEC_XXINSERTW): Likewise.
471 (vextract4b): Add support for the vec_vextract4b built-in
472 function.
473 (vextract4b_internal): Likewise.
474 (vinsert4b): Add support for the vec_insert4b built-in function.
475 Include both a version that inserts element 1 from a V4SI object
476 and one that inserts a DI object.
477 (vinsert4b_internal): Likewise.
478 (vinsert4b_di): Likewise.
479 (vinsert4b_di_internal): Likewise.
480 * config/rs6000/predicates.md (const_0_to_11_operand): New
481 predicate, match 0..11.
482 * config/rs6000/rs6000-builtin.def (BU_P9V_VSX_3): Set built-in
483 type to ternary, not binary.
484 (BU_P9V_64BIT_VSX_3): Likewise.
485 (P9V_BUILTIN_VEXTRACT4B): Add support for vec_vinsert4b and
486 vec_extract4b non-overloaded built-in functions.
487 (P9V_BUILTIN_VINSERT4B): Likewise.
488 (P9V_BUILTIN_VINSERT4B_DI): Likewise.
489 (P9V_BUILTIN_VEC_VEXTULX): Move to section that adds 2 operand ISA
490 3.0 built-in functions.
491 (P9V_BUILTIN_VEC_VEXTURX): Likewise.
492 (P9V_BUILTIN_VEC_VEXTRACT4B): Add support for overloaded
493 vec_insert4b and vec_extract4 built-in functions.
494 (P9V_BUILTIN_VEC_VINSERT4B): Likewise.
495 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
496 overloaded support for vec_vinsert4b and vec_extract4b.
497 * config/rs6000/rs6000.c (altivec_expand_builtin): Add checks for
498 the vec_insert4b and vec_extract4b byte number being a constant in
499 the range 0..11.
500 * config/rs6000/altivec.h (vec_vinsert4b): Support vec_vinsert4b
501 and vec_extract4b built-in functions.
502 * doc/extend.doc (PowerPC VSX built-in functions): Document
503 vec_insert4b and vec_extract4b.
504
505 2016-12-14 Martin Liska <mliska@suse.cz>
506
507 * gimple-pretty-print.c (dump_probability): New function.
508 (dump_edge_probability): Use the function.
509 (dump_gimple_label): Likewise.
510 (dump_gimple_bb_header): Likewise.
511
512 2016-12-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
513 Jakub Jelinek <jakub@redhat.com>
514
515 * tree-ssa-strlen.c (fold_strstr_to_memcmp): New function.
516 (strlen_optimize_stmt): Call fold_strstr_to_memcmp.
517
518 2016-12-14 Eric Botcazou <ebotcazou@adacore.com>
519
520 * lra-constraints.c (process_address_1): Do not attempt to decompose
521 addresses for MEMs that satisfy fixed-form constraints.
522
523 2016-12-14 Richard Biener <rguenther@suse.de>
524
525 PR tree-optimization/78788
526 * tree-vrp.c (set_value_range): Allow [-INF(OVF), +INF(OVF)].
527 (set_and_canonicalize_value_range): Do not drop the above to
528 VARYING.
529
530 2016-12-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
531
532 * config/rs6000/rs600.c (rs6000_builtin_vectorization_cost):
533 Adjust unaligned load cost.
534
535 2016-12-13 Uros Bizjak <ubizjak@gmail.com>
536
537 PR target/78794
538 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
539 Calculate additional gain for andnot for targets without BMI.
540
541 2016-12-13 Carl Love <cel@us.ibm.com>
542
543 * config/rs6000/rs6000-c.c: Add built-in support for
544 vector float vec_pack (vector double, vector double)
545 vector double vec_sld (vector double, vector double)
546 * config/rs6000/rs6000.c: Add icode check for vsldoi_v2df to allow
547 4-bit unsigned literal.
548 * config/rs6000/rs6000-builtin.def: Add definition for VSLDOI_2DF
549 * doc/extend.texi: Update the built-in documentation file for the
550 new powerpc vec_pack and vec_sld built-ins.
551
552 2016-12-13 Martin Liska <mliska@suse.cz>
553
554 * sanopt.c (sanopt_optimize_walker): Set contains_asan_mark.
555 (sanopt_optimize): Add new argument.
556 (sanitize_asan_mark_unpoison): New function.
557 (maybe_contains_asan_check): Likewise.
558 (sanitize_asan_mark_poison): Likewise.
559 (pass_sanopt::execute): Call the new functions.
560
561 2016-12-13 Martin Liska <mliska@suse.cz>
562
563 PR tree-optimization/78428
564 * expr.c (store_constructor_field): Add new arguments to the function.
565 (store_constructor): Set up bitregion_end and add gcc_unreachable to
566 fields that have either non-constant size or (and) offset.
567
568 2016-12-13 Marek Polacek <polacek@redhat.com>
569
570 * tree-data-ref.c (compute_overlap_steps_for_affine_univar): Change
571 parameters' type from int to HOST_WIDE_INT.
572 (compute_overlap_steps_for_affine_1_2): Change parameters' type from
573 int to HOST_WIDE_INT.
574 (build_classic_dist_vector_1): Likewise.
575 (add_multivariate_self_dist): Likewise.
576
577 2016-12-13 Michael Matz <matz@suse.de>
578
579 PR tree-optimization/78725
580 * tree-ssa-loop-split.c (split_at_bb_p): Check for overflow and
581 at correct use point.
582
583 2016-12-13 Martin Liska <mliska@suse.cz>
584
585 * asan.c (asan_expand_mark_ifn): Use renamed
586 BUILT_IN_ASAN_{UN}CLOBBER_N to BUILT_IN_ASAN_{UN}POISON_STACK_MEMORY.
587 * sanitizer.def: Likewise.
588
589 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
590
591 * doc/extend.texi (Half-Precision): Update to document current
592 compiler behaviour.
593
594 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
595
596 * doc/extend.texi (Floating Types): Document availability of
597 _Float16 on ARM/AArch64.
598
599 2016-12-13 Richard Biener <rguenther@suse.de>
600
601 PR tree-optimization/78699
602 * tree-vect-data-refs.c (vect_analyze_group_access_1): Limit
603 group size.
604
605 2016-12-13 Richard Biener <rguenther@suse.de>
606
607 PR middle-end/78742
608 * tree.c (cst_and_fits_in_hwi): Look if the actual value fits.
609 * tree-object-size.c (compute_builtin_object_size): Use
610 tree_fits_shwi_p.
611 * tree-data-ref.c (initialize_matrix_A): Remove excess assert.
612
613 2016-12-13 Martin Liska <mliska@suse.cz>
614
615 * asan.c (asan_mark_poison_p): Remove.
616 (asan_mark_p): New function.
617 (transform_statements): Use the function.
618 (asan_expand_mark_ifn): Do not use masked enum.
619 * asan.h (enum asan_mark_flags): Declare it via a macro.
620 * gimple-pretty-print.c (dump_gimple_call_args): Dump first
621 argument of ASAN_MARK.
622 * gimplify.c (build_asan_poison_call_expr): Use new enum values.
623 (asan_poison_variable): Likewise.
624
625 2016-12-13 Jakub Jelinek <jakub@redhat.com>
626
627 PR ipa/77905
628 * ipa-pure-const.c (cdtor_p): Return true for
629 DECL_STATIC_{CON,DE}STRUCTOR even when it is
630 DECL_LOOPING_CONST_OR_PURE_P.
631
632 2016-12-12 Jakub Jelinek <jakub@redhat.com>
633
634 PR tree-optimization/78777
635 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
636 insert_initializers): Use stmt_ends_bb_p instead of is_ctrl_stmt.
637
638 PR other/78766
639 * opt-functions.awk (opt_args): Use [{] instead of { in regexps.
640 Formatting fix.
641
642 2016-12-12 Martin Sebor <msebor@redhat.com>
643
644 PR middle-end/78622
645 PR middle-end78606
646 * gimple-ssa-sprintf.c (min_bytes_remaining): Use res.knownrange
647 rather than res.bounded.
648 (get_width_and_precision): Set precision to -1 when negative.
649 (adjust_range_for_overflow): New function.
650 (format_integer): Correct the handling of the space, plus, and pound
651 flags, and the special case of zero precision.
652 Always set res.bounded to true unless either precision or width
653 is specified and unknown.
654 Call adjust_range_for_overflow.
655 Avoid use zero as the shortest value when precision is specified
656 but unknown.
657 (format_directive): Remove vestigial quoting. Always inform of
658 argument value or range when it's available.
659 (add_bytes): Correct the computation of boundrange used to
660 decide whether a warning is of a "maybe" or "defnitely" kind.
661
662 2016-12-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
663
664 * combine.c (change_zero_ext): Handle mode expanding zero_extracts.
665
666 2016-12-12 Uros Bizjak <ubizjak@gmail.com>
667
668 PR target/78738
669 * config/i386/i386.h (X87_ENABLE_ARITH): Also enable for
670 flag_unsafe_math_optimizations.
671 (X87_ENABLE_FLOAT): Ditto.
672
673 2016-12-12 Marek Polacek <polacek@redhat.com>
674
675 PR middle-end/78716
676 * gimplify.c (gimplify_va_arg_expr): Don't require ADDR_EXPR for
677 Case 1; check POINTER_TYPE_P instead.
678
679 2016-12-12 Bernd Schmidt <bschmidt@redhat.com>
680
681 PR rtl-optimization/78669
682 * ira.c (combine_and_move_insns): When deleting an insn, clear the
683 replace flag for all used regs in that insn.
684
685 2016-12-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
686
687 * config/arm/arm-opts.h: Move struct arm_arch_core_flag and
688 arm_arch_core_flags to ...
689 * common/config/arm/arm-common.c: There.
690
691 2016-12-12 Eric Botcazou <ebotcazou@adacore.com>
692
693 * config/sparc/constraints.md (T): Use special memory constraint.
694 (U): Minor tweak.
695 (W): Add TARGET_ARCH64 test.
696 * config/sparc/sparc.md (*movdi_insn_sp32): Replace 'W' with 'T'.
697 (*movdf_insn_sp32): Likewise.
698 (*mov<VM64:mode>_insn_sp32): Likewise. Replace 'e' with 'f' in
699 conjunction with offsettable memory references.
700
701 2016-12-11 Sandra Loosemore <sandra@codesourcery.com>
702
703 * config/nios2/nios2.c (nios2_emit_move_sequence): Call copy_rtx
704 to avoid shared structure error.
705
706 2016-12-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
707
708 PR target/78695
709 * config/rs6000/rs6000.c (find_alignment_op): Discard from
710 consideration any artificial definition.
711
712 2016-12-11 Iain Sandoe <iain@codesourcery.com>
713
714 * configure.ac (CROSS directory tests): Remove the assumption that
715 Darwin hosts contain suitable target sysroots in "/".
716 * configure: Regenerate.
717
718 2016-12-11 Iain Sandoe <iain@codesourcery.com>
719
720 PR rtl-optimization/71496
721 * config/rs6000/darwin.md (load_macho_picbase_si): Mark as non-
722 copyable. (load_macho_picbase_di, reload_macho_picbase_si,
723 reload_macho_picbase_di): Likewise.
724
725 2012-12-11 John David Anglin <danglin@gcc.gnu.org>
726
727 * config/pa/pa.c (pa_callee_copies): New function.
728 * config/pa/pa.opt (mcaller-copies): New option.
729 * doc/invoke.texi (mcaller-copies): Document option.
730
731 2016-12-11 Uros Bizjak <ubizjak@gmail.com>
732
733 PR target/70799
734 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
735 <case ASHIFT, case LSHIFTRT>: Consider all constant shifts.
736 Add FIXME comment.
737 (dimode_scalar_chain::compute_convert_gain): Reduce gain for
738 constant shifts larger or equal than 32.
739
740 2016-12-11 Roger Pau Monné <roger.pau@citrix.com>
741
742 * config/i386/x86-64.h: Append --32 to the assembler options when
743 -m16 is used on non-glibc systems as well.
744
745 2016-12-10 Allan Sandfeld Jensen <allan.jensen@qt.io>
746
747 PR target/70118
748 * config/i386/mmintrin.h (__m64_u): New type
749 * config/i386/emmintrin.h (_mm_loadl_epi64, _mm_storel_epi64):
750 Make the allowed unaligned memory access explicit.
751
752 2016-12-10 Krister Walfridsson <krister.walfridsson@gmail.com>
753
754 * config.gcc (i386-*-netbsd*): Make i486 the default arch on NetBSD.
755 Generally use cpu generic.
756
757 2016-12-10 Jakub Jelinek <jakub@redhat.com>
758 Marc Glisse <marc.glisse@inria.fr>
759
760 PR tree-optimization/78720
761 * match.pd (A < 0 ? C : 0): Only optimize for signed A. If shift
762 is negative, sign extend to @1's type and than AND with C.
763
764 2016-12-10 Jakub Jelinek <jakub@redhat.com>
765
766 PR fortran/78758
767 * tree-object-size.c (compute_object_offset) <case ARRAY_REF>: Handle
768 non-zero low bound or non-standard element sizes.
769
770 PR sanitizer/78708
771 * lto-streamer-in.c (input_function): In addition to debug stmts
772 without -g, remove IFN_*SAN_* calls if corresponding flag_sanitize
773 bit is not enabled.
774
775 2016-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
776
777 * config/rs6000/rs6000-passes.def: New file.
778 * config/rs6000/rs6000-protos.h: Declare make_pass_analyze_swaps.
779 * config/rs6000/rs6000.c (rs6000_option_override): Remove
780 registration of machine-specific passes.
781 (pass_analyze_swaps::clone): New function.
782 * config/rs6000/t-rs6000: Define PASSES_EXTRA.
783
784 2016-12-09 Kugan Vivekanandarajah <kuganv@linaro.org>
785
786 PR ipa/78721
787 * ipa-cp.c (propagate_vr_accross_jump_function): Call
788 drop_tree_overflow after fold_convert.
789
790 2016-12-09 Jakub Jelinek <jakub@redhat.com>
791
792 PR target/72742
793 * config/rs6000/rs6000.md (*and<mode>3_imm_mask_dot,
794 *and<mode>3_imm_mask_dot2): Add rs6000_is_valid_and_mask to insn
795 condition.
796
797 2016-12-09 Segher Boessenkool <segher@kernel.crashing.org>
798
799 PR target/78683
800 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Use
801 GET_MODE_BITSIZE. Return 2.
802 (CTZ_DEFINED_VALUE_AT_ZERO): Use GET_MODE_BITSIZE. Return 2. Handle
803 TARGET_POPCNTD the same as TARGET_CTZ.
804 * config/rs6000/rs6000.md (ctz<mode>2): Reimplement.
805 (ffs<mode>2): Reimplement.
806
807 2016-12-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
808
809 PR rtl-optimization/78255
810 * gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
811 NO_FUNCTION_CSE is true.
812
813 2016-12-09 Cesar Philippidis <cesar@codesourcery.com>
814
815 PR ipa/78027
816 * ipa-icf.c (sem_function::parse): Don't process functions with
817 oacc decl attributes, as they may be OpenACC routines.
818
819 2016-12-09 David Malcolm <dmalcolm@redhat.com>
820
821 * rtl.h (get_mem_attrs): Add "const" qualifier to returned
822 pointer.
823
824 2016-12-09 Nathan Sidwell <nathan@acm.org>
825
826 PR C++/78550
827 * convert.c (convert_to_integer_1): Maybe fold conversions to
828 integral types with fewer bits than its mode.
829
830 2016-12-09 Martin Liska <mliska@suse.cz>
831
832 * tree-pretty-print.c (pretty_print_string): Escape non-printable
833 chars in strings.
834
835 2016-12-09 Jakub Jelinek <jakub@redhat.com>
836
837 PR tree-optimization/78726
838 * tree-ssa-reassoc.c (make_new_ssa_for_def): Add OPCODE and OP
839 argument. For lhs uses in debug stmts, don't replace lhs with
840 new_lhs, but with a debug temp set to new_lhs opcode op.
841 (make_new_ssa_for_all_defs): Add OPCODE argument, pass OPCODE and
842 OP down to make_new_ssa_for_def.
843 (zero_one_operation): Call make_new_ssa_for_all_defs even when
844 stmts_to_fix is empty, if *def has not changed yet. Pass
845 OPCODE to make_new_ssa_for_all_defs.
846
847 2016-12-08 Martin Sebor <msebor@redhat.com>
848
849 PR c/78284
850 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
851 identifier tree nodes.
852 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
853 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
854 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
855 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
856 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
857 * builtins.c (expand_builtin_alloca): Call
858 maybe_warn_alloc_args_overflow.
859 * builtins.def (aligned_alloc, calloc, malloc, realloc):
860 Add attribute alloc_size.
861 (alloca): Add attribute alloc_size and returns_nonnull.
862 * calls.h (maybe_warn_alloc_args_overflow): Declare.
863 * calls.c (alloc_max_size, operand_signed_p): New functions.
864 (maybe_warn_alloc_args_overflow): Define.
865 (initialize_argument_information): Diagnose overflow in functions
866 declared with attaribute alloc_size.
867 * doc/invoke.texi (Warning Options): Document -Walloc-zero and
868 -Walloc-size-larger-than.
869
870 2016-12-08 Vladimir Makarov <vmakarov@redhat.com>
871
872 PR rtl-optimization/78671
873 * lra-assign.c (find_hard_regno_for_1): Check prohibited regs for an
874 allocno class.
875
876 2016-12-08 Uros Bizjak <ubizjak@gmail.com>
877
878 * config/i386/i386.h (HARD_REGNO_NREGS): Use GENERAL_REGNO_P.
879 (HARD_REGNO_NREGS_HAS_PADDING): Ditto. Simplify macro.
880
881 2015-12-08 Wilco Dijkstra <wdijkstr@arm.com>
882
883 PR target/78733
884 * config/aarch64/aarch64.c (aarch64_classify_address):
885 Set load_store_pair_p for TImode and TFmode.
886
887 2016-12-08 David Malcolm <dmalcolm@redhat.com>
888
889 * emit-rtl.c (gen_reg_rtx): Move regno_pointer_align and
890 regno_reg_rtx resizing logic to...
891 (emit_status::ensure_regno_capacity): ...this new method,
892 and ensure that the buffers are large enough.
893 (init_emit): Allocate regno_reg_rtx using ggc_cleared_vec_alloc
894 rather than ggc_vec_alloc.
895 * function.h (emit_status::ensure_regno_capacity): New method.
896
897 2016-12-08 Dmitry Vyukov <dvyukov@google.com>
898
899 * opts.c (finish_options): Enable -fsanitize-address-use-after-scope
900 only if -fsanitize=address is enabled (not -fsanitize=kernel-address).
901 * doc/invoke.texi (-fsanitize=kernel-address):
902 Don't say that it enables -fsanitize-address-use-after-scope.
903
904 2016-12-08 Bin Cheng <bin.cheng@arm.com>
905
906 PR middle-end/78684
907 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Check
908 sign bit for index step of data reference.
909
910 2016-12-08 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
911
912 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
913 Handle SYMBOL_SMALL_TLSGD for ILP32.
914 * config/aarch64/aarch64.md : tlsgd_small modified into
915 tlsgd_small_<mode> to support SImode and DImode.
916 *tlsgd_small modified into *tlsgd_small_<mode> to support SImode and
917 DImode.
918
919 2016-12-08 Andrew Pinski <apinski@cavium.com>
920
921 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
922 Access the lower part of RTX appropriately.
923
924 2016-12-07 David Malcolm <dmalcolm@redhat.com>
925
926 * genpreds.c (write_tm_constrs_h): Update for renaming of
927 rtx_reader_ptr to md_reader_ptr.
928 (write_tm_preds_h): Likewise.
929 (write_insn_preds_c): Likewise.
930 * read-md.c (rtx_reader_ptr): Rename to...
931 (md_reader_ptr): ...this, and convert from an
932 rtx_reader * to a md_reader *.
933 (rtx_reader::set_md_ptr_loc): Rename to...
934 (md_reader::set_md_ptr_loc): ...this.
935 (rtx_reader::get_md_ptr_loc): Rename to...
936 (md_reader::get_md_ptr_loc): ...this.
937 (rtx_reader::copy_md_ptr_loc): Rename to...
938 (md_reader::copy_md_ptr_loc): ...this.
939 (rtx_reader::fprint_md_ptr_loc): Rename to...
940 (md_reader::fprint_md_ptr_loc): ...this.
941 (rtx_reader::print_md_ptr_loc): Rename to...
942 (md_reader::print_md_ptr_loc): ...this.
943 (rtx_reader::join_c_conditions): Rename to...
944 (md_reader::join_c_conditions): ...this.
945 (rtx_reader::fprint_c_condition): ...this.
946 (rtx_reader::print_c_condition): Rename to...
947 (md_reader::print_c_condition): ...this.
948 (fatal_with_file_and_line): Update for renaming of
949 rtx_reader_ptr to md_reader_ptr.
950 (rtx_reader::require_char): Rename to...
951 (md_reader::require_char): ...this.
952 (rtx_reader::require_char_ws): Rename to...
953 (md_reader::require_char_ws): ...this.
954 (rtx_reader::require_word_ws): Rename to...
955 (md_reader::require_word_ws): ...this.
956 (rtx_reader::read_char): Rename to...
957 (md_reader::read_char): ...this.
958 (rtx_reader::unread_char): Rename to...
959 (md_reader::unread_char): ...this.
960 (rtx_reader::peek_char): Rename to...
961 (md_reader::peek_char): ...this.
962 (rtx_reader::read_name): Rename to...
963 (md_reader::read_name): ...this.
964 (rtx_reader::read_escape): Rename to...
965 (md_reader::read_escape): ...this.
966 (rtx_reader::read_quoted_string): Rename to...
967 (md_reader::read_quoted_string): ...this.
968 (rtx_reader::read_braced_string): Rename to...
969 (md_reader::read_braced_string): ...this.
970 (rtx_reader::read_string): Rename to...
971 (md_reader::read_string): ...this.
972 (rtx_reader::read_skip_construct): Rename to...
973 (md_reader::read_skip_construct): ...this.
974 (rtx_reader::handle_constants): Rename to...
975 (md_reader::handle_constants): ...this.
976 (rtx_reader::traverse_md_constants): Rename to...
977 (md_reader::traverse_md_constants): ...this.
978 (rtx_reader::handle_enum): Rename to...
979 (md_reader::handle_enum): ...this.
980 (rtx_reader::lookup_enum_type): Rename to...
981 (md_reader::lookup_enum_type): ...this.
982 (rtx_reader::traverse_enum_types): Rename to...
983 (md_reader::traverse_enum_types): ...this.
984 (rtx_reader::rtx_reader): Rename to...
985 (md_reader::md_reader): ...this, and update for renaming of
986 rtx_reader_ptr to md_reader_ptr.
987 (rtx_reader::~rtx_reader): Rename to...
988 (md_reader::~md_reader): ...this, and update for renaming of
989 rtx_reader_ptr to md_reader_ptr.
990 (rtx_reader::handle_include): Rename to...
991 (md_reader::handle_include): ...this.
992 (rtx_reader::handle_file): Rename to...
993 (md_reader::handle_file): ...this.
994 (rtx_reader::handle_toplevel_file): Rename to...
995 (md_reader::handle_toplevel_file): ...this.
996 (rtx_reader::get_current_location): Rename to...
997 (md_reader::get_current_location): ...this.
998 (rtx_reader::add_include_path): Rename to...
999 (md_reader::add_include_path): ...this.
1000 (rtx_reader::read_md_files): Rename to...
1001 (md_reader::read_md_files): ...this.
1002 * read-md.h (class rtx_reader): Split into...
1003 (class md_reader): ...new class.
1004 (rtx_reader_ptr): Rename to...
1005 (md_reader_ptr): ...this, and convert to a md_reader *.
1006 (class noop_reader): Update base class to be md_reader.
1007 (class rtx_reader): Reintroduce as a subclass of md_reader.
1008 (rtx_reader_ptr): Reintroduce as a rtx_reader *.
1009 (read_char): Update for renaming of rtx_reader_ptr to
1010 md_reader_ptr.
1011 (unread_char): Likewise.
1012 * read-rtl.c (rtx_reader_ptr): New global.
1013 (rtx_reader::apply_iterator_to_string): Rename to...
1014 (md_reader::apply_iterator_to_string): ...this.
1015 (rtx_reader::copy_rtx_for_iterators): Rename to...
1016 (md_reader::copy_rtx_for_iterators): ...this.
1017 (rtx_reader::read_conditions): Rename to...
1018 (md_reader::read_conditions): ...this.
1019 (rtx_reader::record_potential_iterator_use): Rename to...
1020 (md_reader::record_potential_iterator_use): ...this.
1021 (rtx_reader::read_mapping): Rename to...
1022 (md_reader::read_mapping): ...this.
1023 (rtx_reader::read_rtx): Use rtx_reader_ptr when calling
1024 read_rtx_code.
1025 (rtx_reader::read_rtx_operand): Use get_string_obstack rather
1026 than directly accessing m_string_obstack.
1027 (rtx_reader::rtx_reader): New ctor.
1028 (rtx_reader::~rtx_reader): New dtor.
1029
1030 2016-12-07 Martin Sebor <msebor@redhat.com>
1031
1032 PR middle-end/77784
1033 PR middle-end/78149
1034 PR middle-end/78138
1035
1036 * builtins.c (expand_builtin_strcat, expand_builtin_strncat): New
1037 functions.
1038 (compute_dest_size, get_size_range, check_sizes, check_strncat_sizes)
1039 (check_memop_sizes): Same.
1040 (expand_builtin_memcpy): Call check memop_sizes.
1041 (expand_builtin_mempcpy): Same.
1042 (expand_builtin_memset): Same,
1043 (expand_builtin_bzero): Same.
1044 (expand_builtin_memory_chk): Call check_sizes.
1045 (expand_builtin_strcpy): Same.
1046 (expand_builtin_strncpy): Same.
1047 (maybe_emit_sprintf_chk_warning): Same.
1048 (expand_builtin): Handle strcat and strncat.
1049 (fini_object_sizes): Reset pointers.
1050 (compute_object_size): New function.
1051 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
1052 Avoid issuing warnings also issued during built-in expansion.
1053 * doc/invoke.texi (Warning Options): Document -Wstringop-overflow.
1054
1055 2016-12-07 Michael Meissner <meissner@linux.vnet.ibm.com>
1056
1057 PR target/72717
1058 * config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
1059 V2DImode elements are SUBREG's convert the result into DImode
1060 rather than failing in emit_move_insn.
1061
1062 2016-12-07 Jakub Jelinek <jakub@redhat.com>
1063
1064 * builtins.c (fold_builtin_strstr): Removed.
1065 (fold_builtin_2): Don't call fold_builtin_strstr.
1066 * gimple-fold.c (gimple_fold_builtin_strchr): Check is_strrchr
1067 earlier in the strrchr (x, 0) -> strchr (x, 0) optimization.
1068 (gimple_fold_builtin_strstr): New function.
1069 (gimple_fold_builtin): Call it.
1070 * fold-const-call.c (fold_const_call): Handle CFN_BUILT_IN_STRSTR.
1071
1072 PR c++/78692
1073 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Set lhs
1074 var to lhs of new_stmt right before noreturn handling rather than to
1075 lhs of e->call_stmt early.
1076
1077 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1078
1079 * read-md.c (rtx_reader::require_char): New method.
1080 (require_char_ws): Convert from function to...
1081 (rtx_reader::require_char_ws): ...method.
1082 (rtx_reader::require_word_ws): New method.
1083 * read-md.h (rtx_reader::require_char): New method decl.
1084 (require_char_ws): Remove global decl in favor of...
1085 (rtx_reader::require_char_ws): ...new method decl.
1086 (rtx_reader::require_word_ws): New method decl.
1087 (rtx_reader::peek_char): New method decl.
1088
1089 2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1090
1091 PR rtl-optimization/78617
1092 * lra-remat.c (do_remat): Initialize live_hard_regs from live in
1093 registers, also setting hard registers mapped to pseudo registers.
1094
1095 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1096
1097 * cfgexpand.c (pass_expand::execute): Move stack initializations
1098 to rtl_data::init_stack_alignment and call it.
1099 * emit-rtl.c (rtl_data::init_stack_alignment): New method.
1100 * emit-rtl.h (rtl_data::init_stack_alignment): New method.
1101
1102 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
1103
1104 * gcc/ira.c (ira_setup_eliminable_regset): Initialize crtl->is_leaf.
1105 (ira): Move initialization of crtl->is_leaf earlier.
1106
1107 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
1108
1109 * config/aarch64/aarch64.md (movti_aarch64): Change Ump to m.
1110 (movtf_aarch64): Likewise.
1111 * config/aarch64/aarch64.c (aarch64_classify_address):
1112 Use correct intersection of offsets.
1113 (aarch64_legitimize_address_displacement): Use 9-bit signed offsets.
1114 (aarch64_legitimize_address): Use 9-bit signed offsets for TI/TF mode.
1115 Use 7-bit signed scaled mode for modes > 16 bytes.
1116
1117 2016-12-07 James Greenhalgh <james.greenhalgh@arm.com>
1118
1119 PR rtl-optimization/78561
1120 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Use
1121 constant_pool_empty_p in place of get_pool_size_upper_bound.
1122 (rs6000_stack_info): Likewise.
1123 (rs6000_emit_prologue): Likewise.
1124 (rs6000_elf_declare_function_name): Likewise.
1125 (rs6000_set_up_by_prologue): Likewise.
1126 (rs6000_can_eliminate): Likewise.
1127 * output.h (get_pool_size_upper_bound): Delete.
1128 (constant_pool_empty_p): New.
1129 * varasm.c (get_pool_size_upper_bound): Delete
1130 (constant_pool_empty_p): New.
1131
1132 2016-12-07 Bin Cheng <bin.cheng@arm.com>
1133
1134 PR tree-optimization/78691
1135 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
1136 Require integral type for the outer expression.
1137
1138 2016-12-07 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1139
1140 * config/aarch64/aarch64.c
1141 (aarch64_builtin_support_vector_misalignment): New.
1142 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): Define.
1143
1144 2016-12-06 David Malcolm <dmalcolm@redhat.com>
1145
1146 PR bootstrap/78705
1147 * config/i386/i386.c (ix86_test_dumping_memory_blockage):
1148 Conditionalize the string comparison on Pmode == DImode.
1149
1150 2016-12-06 Tom de Vries <tom@codesourcery.com>
1151
1152 PR tree-optimization/67955
1153 * tree-ssa-alias.c (same_addr_size_stores_p): New function.
1154 (stmt_kills_ref_p): Use it.
1155
1156 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
1157
1158 PR middle-end/78700
1159 * calls.c (expand_call): Move back call to prepare_call_address.
1160
1161 2016-12-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1162
1163 PR target/78658
1164 * config/rs6000/rs6000.md (zero_extendqi<mode>2): Use ^ instead of
1165 ?* constraints for the ISA 3.0 patterns, so the register allocator
1166 is more likely to allocate QImode/HImode to vector registers for
1167 conversion to floating point unless a reload is needed.
1168 (zero_extendhi<mode>2): Likewise.
1169 (float<QHI:mode><FP_ISA3:mode>2_internal): Properly deal with the
1170 first alternative which is converting QImode/HImode to floating
1171 point and the QImode/HImode value is in a vector register, and
1172 does not allocate the second pseudo register. Remove zero
1173 extending into traditional floating point registers, since the
1174 instruction used only works on traditional altivec registers.
1175 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
1176
1177 2016-12-06 David Malcolm <dmalcolm@redhat.com>
1178
1179 * config/i386/i386.c: Include print-rtl.h.
1180 (selftest::ix86_test_dumping_memory_blockage): New function.
1181 (selftest::ix86_run_selftests): Call it.
1182 * print-rtl-function.c (print_rtx_function): Create an
1183 rtx_reuse_manager and use it.
1184 * print-rtl.c: Include "rtl-iter.h".
1185 (rtx_writer::rtx_writer): Add reuse_manager param.
1186 (rtx_reuse_manager::rtx_reuse_manager): New ctor.
1187 (uses_rtx_reuse_p): New function.
1188 (rtx_reuse_manager::preprocess): New function.
1189 (rtx_reuse_manager::has_reuse_id): New function.
1190 (rtx_reuse_manager::seen_def_p): New function.
1191 (rtx_reuse_manager::set_seen_def): New function.
1192 (rtx_writer::print_rtx): If "in_rtx" has a reuse ID, print it as a
1193 prefix the first time in_rtx is seen, and print reuse_rtx
1194 subsequently.
1195 (print_inline_rtx): Supply NULL for new reuse_manager param.
1196 (debug_rtx): Likewise.
1197 (print_rtl): Likewise.
1198 (print_rtl_single): Likewise.
1199 (rtx_writer::print_rtl_single_with_indent): Likewise.
1200 * print-rtl.h: Include bitmap.h when building for host.
1201 (rtx_writer::rtx_writer): Add reuse_manager param.
1202 (rtx_writer::m_rtx_reuse_manager): New field.
1203 (class rtx_reuse_manager): New class.
1204 * rtl-tests.c (selftest::assert_rtl_dump_eq): Add reuse_manager
1205 param and use it when constructing rtx_writer.
1206 (selftest::test_dumping_rtx_reuse): New function.
1207 (selftest::rtl_tests_c_tests): Call it.
1208 * selftest-rtl.h (class rtx_reuse_manager): New forward decl.
1209 (selftest::assert_rtl_dump_eq): Add reuse_manager param.
1210 (ASSERT_RTL_DUMP_EQ): Supply NULL for reuse_manager param.
1211 (ASSERT_RTL_DUMP_EQ_WITH_REUSE): New macro.
1212
1213 2016-12-06 Vladimir Makarov <vmakarov@redhat.com>
1214
1215 PR target/77761
1216 * lra-lives.c (process_bb_lives): Update biggest mode for
1217 implicitly used hard reg.
1218
1219 2016-12-06 Uros Bizjak <ubizjak@gmail.com>
1220
1221 * config/i386/predicates.md (general_gr_operand): New predicate.
1222 * config/i386/i386.md (TImode and DImode push_operand splitter):
1223 Use general_gr_operand. Macroize using DWI mode macro.
1224 (TImode and DImode nonimmediate_operand splitter): Use
1225 nonimmediate_gr_operand and general_gr_operand. Macroize using
1226 DWI mode macro.
1227 (TF/XF/DFmode push_operand splitter): Use general_gr_operand.
1228 (TFmode nonimmediate_operand splitter): Use nonimmediate_gr_operand
1229 and general_gr_operand.
1230 (XFmode nonimmediate_operand splitter): Ditto.
1231 (DFmode nonimmediate_operand splitter): Ditto.
1232 * config/i386/mmx.md (MMXMODE nonimmediate_operand splitter): Ditto.
1233
1234 2016-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1235
1236 * config/arm/arm-cores.def (cortex-m23, cortex-m33): Move into
1237 alphabetical order with respect to other ARMv8 processors.
1238 * config/arm/arm-tables.opt: Regenerate.
1239 * config/arm/arm-tune.md: Likewise.
1240
1241 2016-12-06 Robert Suchanek <robert.suchanek@imgtec.com>
1242
1243 * config/mips/mips.c (mips_expand_builtin_insn): Check input
1244 ranges of literal integer arguments.
1245
1246 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
1247
1248 PR middle-end/78548
1249 * tree-ssa-uninit.c (simplify_preds_4): Call release() instead of
1250 destroy_predicate_vecs.
1251 (uninit_uses_cannot_happen): Make uninit_preds a scalar.
1252
1253 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
1254
1255 PR middle-end/78566
1256 * tree-ssa-uninit.c (can_one_predicate_be_invalidated_p): Change
1257 argument type to a pred_chain.
1258 (can_chain_union_be_invalidated_p): Use pred_chain instead of a
1259 worklist.
1260 (flatten_out_predicate_chains): Remove.
1261 (uninit_uses_cannot_happen): Rename from
1262 uninit_ops_invalidate_phi_use.
1263 Change logic so that we are checking that the PHI use will
1264 invalidate _ALL_ possibly uninitialized operands.
1265 (is_use_properly_guarded): Rename call to
1266 uninit_ops_invalidate_phi_use into uninit_uses_cannot_happen.
1267
1268 2016-12-06 Tamar Christina <tamar.christina@arm.com>
1269
1270 * gcc/config/aarch64/arm_neon.h
1271 (vreinterpretq_p8_p128, vreinterpretq_p16_p128): Added.
1272 (vreinterpret_p64_p16, vreinterpretq_p64_p128): Likewise.
1273 (vreinterpretq_p64_p16, vreinterpretq_p128_p8): Likewise.
1274 (vreinterpretq_p128_p16, vreinterpretq_p128_f16): Likewise.
1275 (vreinterpretq_p128_f32, vreinterpretq_p128_p64): Likewise.
1276 (vreinterpretq_p128_s64, vreinterpretq_p128_u64): Likewise.
1277 (vreinterpretq_p128_s8, vreinterpretq_p128_s16): Likewise.
1278 (vreinterpretq_p128_s32, vreinterpretq_p128_u8): Likewise.
1279 (vreinterpretq_p128_u16, vreinterpretq_p128_u32): Likewise.
1280 (vreinterpretq_f16_p128, vreinterpretq_f32_p128): Likewise.
1281 (vreinterpretq_s64_p128, vreinterpretq_u64_p128): Likewise.
1282 (vreinterpretq_s8_p128, vreinterpretq_s16_p128): Likewise.
1283 (vreinterpretq_s32_p128, vreinterpretq_u8_p128): Likewise.
1284 (vreinterpretq_u16_p128, vreinterpretq_u32_p128): Likewise.
1285
1286 2016-12-06 Jakub Jelinek <jakub@redhat.com>
1287
1288 PR c++/71537
1289 * fold-const.c (fold_comparison): Assume CONSTANT_CLASS_P (base0)
1290 plus offset is non-zero. For maybe_nonzero_address decl base0,
1291 require indirect_base0.
1292
1293 PR c++/71537
1294 * fold-const-call.c (fold_const_call_1): Remove memchr handling here.
1295 (fold_const_call) <case CFN_BUILT_IN_STRNCMP,
1296 case CFN_BUILT_IN_STRNCASECMP>: Formatting improvements.
1297 (fold_const_call) <case CFN_BUILT_IN_MEMCMP>: Likewise. If s2 is 0
1298 and arguments have no side-effects, return 0.
1299 (fold_const_call): Handle CFN_BUILT_IN_MEMCHR.
1300
1301 PR c++/71537
1302 * fold-const-call.c (fold_const_call): Handle
1303 CFN_BUILT_IN_{INDEX,STRCHR,RINDEX,STRRCHR}.
1304
1305 PR tree-optimization/78675
1306 * tree-vect-loop.c (vectorizable_live_operation): For
1307 VECTOR_BOOLEAN_TYPE_P vectype use integral type with bitsize precision
1308 instead of TREE_TYPE (vectype) for the BIT_FIELD_REF.
1309
1310 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
1311
1312 PR middle-end/78642
1313 * emit-rtl.c (verify_rtx_sharing) <CLOBBER>: Relax condition.
1314 (copy_rtx_if_shared_1) <CLOBBER>: Likewise.
1315 (copy_insn_1) <CLOBBER>: Likewise.
1316
1317 2016-12-05 Michael Meissner <meissner@linux.vnet.ibm.com>
1318
1319 PR target/78688
1320 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Use IN_RANGE
1321 instead of ((N) >= (X) && (N) <= (Y-X)) to silence warnings about
1322 comparing signed to unsigned values.
1323 (FUNCTION_ARG_REGNO_P): Likewise.
1324
1325 2016-12-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1326 Stefan Freudenberger <stefan@reservoir.com>
1327
1328 PR tree-optimization/78646
1329 * gimple-ssa-strength-reduction.c (replace_ref): The pointer
1330 addition used for the memory base expression should have the type
1331 of the candidate.
1332
1333 2016-12-05 Waldemar Brodkorb <wbx@openadk.org>
1334
1335 PR target/71721
1336 * config.gcc (*-*-uclinux*): Enable posix threads.
1337
1338 2016-12-05 Andrew Senkevich <andrew.senkevich@intel.com>
1339
1340 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
1341 * config/i386/avx512dqintrin.h: Ditto.
1342 * config/i386/avx512fintrin.h: Ditto.
1343 * config/i386/i386-builtin-types.def (UCHAR_FTYPE_UQI_UQI_PUCHAR,
1344 UCHAR_FTYPE_UHI_UHI_PUCHAR, UCHAR_FTYPE_USI_USI_PUCHAR,
1345 UCHAR_FTYPE_UDI_UDI_PUCHAR, UCHAR_FTYPE_UQI_UQI, UCHAR_FTYPE_UHI_UHI,
1346 UCHAR_FTYPE_USI_USI, UCHAR_FTYPE_UDI_UDI, UQI_FTYPE_UQI_INT,
1347 UHI_FTYPE_UHI_INT, USI_FTYPE_USI_INT, UDI_FTYPE_UDI_INT,
1348 UQI_FTYPE_UQI, USI_FTYPE_USI, UDI_FTYPE_UDI, UQI_FTYPE_UQI_UQI): New
1349 function types.
1350 * config/i386/i386-builtin.def (__builtin_ia32_knotqi,
1351 __builtin_ia32_knotsi, __builtin_ia32_knotdi,
1352 __builtin_ia32_korqi, __builtin_ia32_korsi, __builtin_ia32_kordi,
1353 __builtin_ia32_kxnorqi, __builtin_ia32_kxnorsi,
1354 __builtin_ia32_kxnordi, __builtin_ia32_kxorqi, __builtin_ia32_kxorsi,
1355 __builtin_ia32_kxordi, __builtin_ia32_kandqi,
1356 __builtin_ia32_kandsi, __builtin_ia32_kanddi, __builtin_ia32_kandnqi,
1357 __builtin_ia32_kandnsi, __builtin_ia32_kandndi): New.
1358 * config/i386/i386.c (ix86_expand_args_builtin): Handle new types.
1359
1360 2016-12-05 Segher Boessenkool <segher@kernel.crashing.org>
1361
1362 * combine.c: Revert r243162.
1363
1364 2016-12-05 Paolo Bonzini <bonzini@gnu.org>
1365
1366 * match.pd: Simplify X ? C : 0 where C is a power of 2 and
1367 X tests a single bit.
1368
1369 2016-12-05 Nathan Sidwell <nathan@acm.org>
1370
1371 * diagnostic.c (diagnostic_check_max_errors): New, broken out of ...
1372 (diagnostic_action_after_output): ... here.
1373 (diagnostic_report_diagnostic): Call it for non-notes.
1374 * diagnostic.h (struct diagnostic_context): Make max_errors signed int.
1375 (diagnostic_check_max_errors): Declare.
1376
1377 2016-12-05 Cupertino Miranda <cmiranda@synopsys.com>
1378
1379 * config/arc/arc.h (STARTFILE_SPEC): Use default linux specs.
1380 (ENDFILE_SPEC): Likewise.
1381
1382 2016-12-05 Claudiu Zissulescu <claziss@synopsys.com>
1383
1384 * config/arc/arc-protos.h (insn_is_tls_gd_dispatch): Remove.
1385 * config/arc/arc.c (arc_unspec_offset): New function.
1386 (arc_finalize_pic): Change.
1387 (arc_emit_call_tls_get_addr): Likewise.
1388 (arc_legitimize_tls_address): Likewise.
1389 (arc_legitimize_pic_address): Likewise.
1390 (insn_is_tls_gd_dispatch): Remove.
1391 * config/arc/arc.h (INSN_REFERENCES_ARE_DELAYED): Change.
1392 * config/arc/arc.md (ls_gd_load): Remove unused pattern.
1393 (tls_gd_dispatch): Likewise.
1394
1395 2016-12-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
1396
1397 * config/arm/arm.c (TARGET_ASM_INIT_SECTIONS): Fix wrong undef
1398 location.
1399
1400 2016-12-05 Eric Botcazou <ebotcazou@adacore.com>
1401
1402 * config/sparc/sparc-protos.h (sparc_splitdi_legitimate): Rename to...
1403 (sparc_split_reg_mem_legitimate): ...this.
1404 (sparc_split_reg_mem): Declare.
1405 (sparc_split_mem_reg): Likewise.
1406 (sparc_split_regreg_legitimate): Rename to...
1407 (sparc_split_reg_reg_legitimate): ...this.
1408 * config/sparc/sparc.c (sparc_splitdi_legitimate): Rename to...
1409 (sparc_split_reg_mem_legitimate): ...this.
1410 (sparc_split_reg_mem): New function.
1411 (sparc_split_mem_reg): Likewise.
1412 (sparc_split_regreg_legitimate): Rename to...
1413 (sparc_split_reg_reg_legitimate): ...this.
1414 (sparc_split_reg_reg): New function.
1415 * config/sparc/sparc.md (lra): Remove "none" value.
1416 (enabled): Adjust to above change.
1417 (*movdi_insn_sp32): Remove new (r,T) alternative and reorder others.
1418 (DImode splitters): Adjust to above renamings and use new functions.
1419 (*movdf_insn_sp32): Remove new (r,T) alternative and reorder others.
1420 (DFmode splitters): Adjust to above renamings and use new functions.
1421 (*mov<VM64:mode>_insn_sp64): Replace C with Z constraint and use W
1422 constraint in conjunction with e.
1423 (*mov<VM64:mode>_insn_sp32): Remove new (r,T) alternative, add (o,Y)
1424 alternative and reorder others.
1425 (VM64:mode splitters): Adjust to above renamings and use new functions.
1426
1427 2016-12-04 Martin Sebor <msebor@redhat.com>
1428
1429 PR c/78668
1430 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
1431 identifier tree nodes.
1432 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
1433 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
1434 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
1435 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
1436 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
1437 * builtins.def (aligned_alloc, calloc, malloc, realloc):
1438 Add attribute alloc_size.
1439 (alloca): Add attribute alloc_size and returns_nonnull.
1440
1441 2016-12-04 Uros Bizjak <ubizjak@gmail.com>
1442
1443 PR target/70322
1444 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NEG.
1445 (dimode_scalar_chain::compute_convert_gain): Ditto.
1446 (dimode_scalar_chain::convert_insn): Ditto.
1447
1448 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
1449
1450 * lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all
1451 cases to build a lowpart SUBREG.
1452
1453 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
1454 David S. Miller <davem@davemloft.net>
1455
1456 * config/sparc/constraints.md (U): Adjust comment.
1457 * config/sparc/sparc.md (lra): New attribute.
1458 (enabled): For base instructions, if the lra attribute is set,
1459 return 1 if it is in keeping with TARGET_LRA.
1460 (*movdi_insn_sp32): Add lra attribute for alternatives mentioning U
1461 constraint and duplicate them with U replaced by r.
1462 (*movdf_insn_sp32): Likewise.
1463 (*mov<VM64:mode>_insn_sp32): Likewise.
1464 (*movtf_insn_sp32): Remove alternatives mentioning U constraint.
1465
1466 2016-12-02 Jeff Law <law@redhat.com>
1467
1468 * config/arm/arm.c (arm_handle_cmse_nonsecure_call): Remove unused
1469 variable main_variant.
1470
1471 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1472
1473 * config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by
1474 default on PowerPC linux systems.
1475
1476 2016-12-02 Segher Boessenkool <segher@kernel.crashing.org>
1477
1478 PR rtl-optimization/78638
1479 * simplify-rtx.c (simplify_truncation): M2 is not mode, it is
1480 GET_MODE (op). Fix this.
1481
1482 2016-12-02 David Malcolm <dmalcolm@redhat.com>
1483
1484 PR bootstrap/78616
1485 * selftest.c (selftest::assert_strndup_eq): Rename to...
1486 (selftest::assert_xstrndup_eq): ...this, and remove call to
1487 strndup.
1488 (selftest::test_strndup): Rename to...
1489 (selftest::test_xstrndup): ...this, updating for above renaming.
1490 (selftest::test_libiberty): Update for renaming.
1491
1492 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1493
1494 PR target/78639
1495 * config/rs6000/rs6000.md (movdi_internal64): Fix typo in
1496 subversion id 242679 that causes the wrong store instruction to be
1497 generated if a DImode is in an Altivec register using REG+REG
1498 addressing.
1499
1500 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
1501
1502 PR target/70322
1503 * config/i386/i386.md (*andndi3_doubleword): Add non-BMI alternative
1504 and corresponding post-reload splitter.
1505
1506 2016-12-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1507
1508 * config/aarch64/aarch64.h (machine_function): Add
1509 reg_is_wrapped_separately field.
1510 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Define new constant.
1511 * config/aarch64/aarch64.c (emit_set_insn): Change return type to
1512 rtx_insn *.
1513 (aarch64_save_callee_saves): Don't save registers that are wrapped
1514 separately.
1515 (aarch64_restore_callee_saves): Don't restore registers that are
1516 wrapped separately.
1517 (offset_9bit_signed_unscaled_p, offset_12bit_unsigned_scaled_p,
1518 aarch64_offset_7bit_signed_scaled_p): Move earlier in the file.
1519 (aarch64_get_separate_components): New function.
1520 (aarch64_get_next_set_bit): Likewise.
1521 (aarch64_components_for_bb): Likewise.
1522 (aarch64_disqualify_components): Likewise.
1523 (aarch64_emit_prologue_components): Likewise.
1524 (aarch64_emit_epilogue_components): Likewise.
1525 (aarch64_set_handled_components): Likewise.
1526 (aarch64_process_components): Likewise.
1527 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
1528 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
1529 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
1530 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
1531 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
1532 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
1533
1534 2016-12-02 Martin Jambor <mjambor@suse.cz>
1535
1536 * passes.def: Move pass_rebuild_cgraph_edges to the end of
1537 pass_build_ssa_passes.
1538
1539 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
1540
1541 * config/alpha/alpha.md (exception_receiver): Copy
1542 alpha_gp_ave_rtx return value.
1543
1544 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
1545
1546 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
1547 for several include directories that may be relative to sysroot.
1548 * config/i386/x-mingw32 (gplus_includedir): Define.
1549 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
1550 (native_system_includedir): Likewise.
1551 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
1552 override if TARGET_SYSTEM_ROOT is defined.
1553 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
1554
1555 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1556
1557 PR target/70322
1558 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NOT.
1559 (dimode_scalar_chain::compute_convert_gain): Likewise.
1560 (dimode_scalar_chain::convert_insn): Likewise.
1561 * config/i386/i386.md (*one_cmpldi2_doubleword): New
1562 define_insn_and_split.
1563 (one_cmpl<mode>2): Use SWIM1248x iterator instead of SWIM.
1564
1565 PR target/78614
1566 * rtl.c (copy_rtx): Don't clear used flag here.
1567 (shallow_copy_rtx_stat): Clear used flag here unless code the rtx
1568 is shareable.
1569 * simplify-rtx.c (simplify_replace_fn_rtx): When copying rtx with
1570 'E' in format, copy all vectors.
1571 * emit-rtl.c (copy_insn_1): Don't clear used flag here.
1572 * valtrack.c (cleanup_auto_inc_dec): Likewise.
1573 * config/rs6000/rs6000.c (rs6000_frame_related): Likewise.
1574
1575 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1576 Thomas Preud'homme <thomas.preudhomme@arm.com>
1577
1578 * config/arm/arm-builtins.c (arm_builtins): Define
1579 ARM_BUILTIN_CMSE_NONSECURE_CALLER.
1580 (bdesc_2arg): Add line for cmse_nonsecure_caller.
1581 (arm_init_builtins): Handle cmse_nonsecure_caller.
1582 (arm_expand_builtin): Likewise.
1583 * config/arm/arm_cmse.h (cmse_nonsecure_caller): New.
1584
1585 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1586 Thomas Preud'homme <thomas.preudhomme@arm.com>
1587
1588 * config/arm/arm.c (detect_cmse_nonsecure_call): New.
1589 (cmse_nonsecure_call_clear_caller_saved): New.
1590 (arm_reorg): Use cmse_nonsecure_call_clear_caller_saved.
1591 (arm_function_ok_for_sibcall): Disable sibcalls for
1592 cmse_nonsecure_call.
1593 * config/arm/arm-protos.h (detect_cmse_nonsecure_call): New.
1594 * config/arm/arm.md (call): Handle cmse_nonsecure_entry.
1595 (call_value): Likewise.
1596 (nonsecure_call_internal): New.
1597 (nonsecure_call_value_internal): New.
1598 * config/arm/thumb1.md (*nonsecure_call_reg_thumb1_v5): New.
1599 (*nonsecure_call_value_reg_thumb1_v5): New.
1600 * config/arm/thumb2.md (*nonsecure_call_reg_thumb2): New.
1601 (*nonsecure_call_value_reg_thumb2): New.
1602 * config/arm/unspecs.md (UNSPEC_NONSECURE_MEM): New.
1603
1604 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1605 Thomas Preud'homme <thomas.preudhomme@arm.com>
1606
1607 * config/arm/arm.c (gimplify.h): New include.
1608 (arm_handle_cmse_nonsecure_call): New.
1609 (arm_attribute_table): Added cmse_nonsecure_call.
1610 (arm_comp_type_attributes): Deny compatibility of function types
1611 with without the cmse_nonsecure_call attribute.
1612 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
1613
1614 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1615 Thomas Preud'homme <thomas.preudhomme@arm.com>
1616
1617 * config/arm/arm.c (output_return_instruction): Clear
1618 registers.
1619 (thumb2_expand_return): Likewise.
1620 (thumb1_expand_epilogue): Likewise.
1621 (thumb_exit): Likewise.
1622 (arm_expand_epilogue): Likewise.
1623 (cmse_nonsecure_entry_clear_before_return): New.
1624 (comp_not_to_clear_mask_str_un): New.
1625 (compute_not_to_clear_mask): New.
1626 * config/arm/thumb1.md (*epilogue_insns): Change length attribute.
1627 * config/arm/thumb2.md (*thumb2_return): Disable for
1628 cmse_nonsecure_entry functions.
1629 (*thumb2_cmse_entry_return): Duplicate thumb2_return pattern for
1630 cmse_nonsecure_entry functions.
1631
1632 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1633 Thomas Preud'homme <thomas.preudhomme@arm.com>
1634
1635 * config/arm/arm.c (use_return_insn): Change to return with bxns
1636 when cmse_nonsecure_entry.
1637 (output_return_instruction): Likewise.
1638 (arm_output_function_prologue): Likewise.
1639 (thumb_pop): Likewise.
1640 (thumb_exit): Likewise.
1641 (thumb2_expand_return): Assert that entry functions always have simple
1642 returns.
1643 (arm_expand_epilogue): Handle entry functions.
1644 (arm_function_ok_for_sibcall): Disable sibcall for entry functions.
1645 (arm_asm_declare_function_name): New.
1646 * config/arm/arm-protos.h (arm_asm_declare_function_name): New.
1647 * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME): Redefine to
1648 use arm_asm_declare_function_name.
1649
1650 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1651 Thomas Preud'homme <thomas.preudhomme@arm.com>
1652
1653 * config/arm/arm.c (arm_handle_cmse_nonsecure_entry): New.
1654 (arm_attribute_table): Added cmse_nonsecure_entry
1655 (arm_compute_func_type): Handle cmse_nonsecure_entry.
1656 (cmse_func_args_or_return_in_stack): New.
1657 (arm_handle_cmse_nonsecure_entry): New.
1658 * config/arm/arm.h (ARM_FT_CMSE_ENTRY): New macro define.
1659 (IS_CMSE_ENTRY): Likewise.
1660 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
1661
1662 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1663 Thomas Preud'homme <thomas.preudhomme@arm.com>
1664
1665 * config.gcc (extra_headers): Added arm_cmse.h.
1666 * config/arm/arm-arches.def (ARM_ARCH):
1667 (armv8-m): Add FL2_CMSE.
1668 (armv8-m.main): Likewise.
1669 (armv8-m.main+dsp): Likewise.
1670 * config/arm/arm-c.c
1671 (arm_cpu_builtins): Added __ARM_FEATURE_CMSE macro.
1672 * config/arm/arm-flags.h: Define FL2_CMSE.
1673 * config/arm.c (arm_arch_cmse): New.
1674 (arm_option_override): New error for unsupported cmse target.
1675 * config/arm/arm.h (arm_arch_cmse): New.
1676 * config/arm/arm.opt (mcmse): New.
1677 * config/arm/arm_cmse.h: New file.
1678 * doc/invoke.texi (ARM Options): Add -mcmse.
1679 * doc/sourcebuild.texi (arm_cmse_ok): Add new effective target.
1680 * doc/extend.texi: Add ARMv8-M Security Extensions entry.
1681
1682 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1683
1684 * config/avr/avr.c: Fix coding rule glitches.
1685
1686 2016-12-02 Martin Jambor <mjambor@suse.cz>
1687
1688 * hsa.c (hsa_callable_function_p): Return false for artificial
1689 functions.
1690
1691 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
1692
1693 PR rtl-optimization/78561
1694 * varasm.c (recompute_pool_offsets): New.
1695 (output_constant_pool): Call it.
1696
1697 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
1698
1699 PR rtl-optimization/78561
1700 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Rename
1701 get_pool_size to get_pool_size_upper_bound.
1702 (rs6000_stack_info): Likewise.
1703 (rs6000_emit_prologue): Likewise.
1704 (rs6000_elf_declare_function_name): Likewise.
1705 (rs6000_set_up_by_prologue): Likewise.
1706 (rs6000_can_eliminate): Likewise, reformat spaces to tabs.
1707 * output.h (get_pool_size): Rename to...
1708 (get_pool_size_upper_bound): ...This.
1709 * varasm.c (get_pool_size): Rename to...
1710 (get_pool_size_upper_bound): ...This.
1711
1712 2016-12-02 Bin Cheng <bin.cheng@arm.com>
1713
1714 * match.pd: Add new pattern:
1715 (cond (cmp (convert? x) c1) (op x c2) c3) -> (op (minmax x c1) c2).
1716
1717 2016-12-02 Nathan Sidwell <nathan@acm.org>
1718
1719 * diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
1720 braces.
1721
1722 2016-12-02 Aldy Hernandez <aldyh@redhat.com>
1723
1724 PR middle-end/78328
1725 * gimple-ssa-warn-alloca.c (alloca_call_type): Handle
1726 VR_ANTI_RANGE.
1727
1728 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1729
1730 * config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing
1731 problem.
1732
1733 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1734
1735 * config/avr/avr-arch.h (avr_mcu_t) [n_flash]: Remove field.
1736 * config/avr/avr-devices.c (AVR_MCU): Remove N_FLASH macro argument.
1737 * config/avr/avr-mcus.def (AVR_MCU): Remove initializer for n_flash.
1738 * config/avr/avr.c (avr_set_core_architecture) [avr_n_flash]: Use
1739 avr_mcu_types.flash_size to compute default value.
1740 * config/avr/gen-avr-mmcu-specs.c (print_mcu) [cc1_n_flash]: Use
1741 mcu->flash_size to compute value for spec.
1742
1743 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1744
1745 * doc/invoke.texi (AVR Options) [-mabsdata]: Point to absdata.
1746 * doc/extend.texi (AVR Variable Attributes) [progmem]: Hint
1747 about linker description to avoid progmem altogether.
1748 [absdata]: Point to -mabsdata option.
1749
1750 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1751
1752 PR rtl-optimization/78547
1753 * emit-rtl.c (unshare_all_rtl): Make sure DECL_RTL and
1754 DECL_INCOMING_RTL is not shared.
1755 * config/i386/i386.c (convert_scalars_to_vectors): If any
1756 insns have been converted, adjust all parameter's DEC_RTL and
1757 DECL_INCOMING_RTL back from V1TImode to TImode if the parameters have
1758 TImode.
1759
1760 PR rtl-optimization/78575
1761 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses): Use
1762 DF infrastructure to wrap all V1TImode reg uses into TImode subreg
1763 if not already wrapped in a subreg. Make sure df_insn_rescan does not
1764 affect further iterations.
1765
1766 2016-12-02 Martin Liska <mliska@suse.cz>
1767
1768 PR ipa/78555
1769 * sreal.c (sreal::to_int): Make absolute value before shifting.
1770 (sreal::operator/): Likewise.
1771 (sreal_verify_negative_division): New test.
1772 (void sreal_c_tests): Call the new test.
1773 * sreal.h (sreal::normalize_up): Use new SREAL_ABS and
1774 SREAL_SIGN macros.
1775 (sreal::normalize_down): Likewise.
1776
1777 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1778
1779 * combine.c (combine_simplify_rtx): Suppress replacement of
1780 "(and (reg) (const_int bit))" with "if_then_else".
1781
1782 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1783
1784 PR target/77822
1785 * config/s390/s390.md ("extzv")
1786 ("*extzv<mode><clobbercc_or_nocc>")
1787 ("*extzvdi<clobbercc_or_nocc>_lshiftrt")
1788 ("*<risbg_n>_ior_and_sr_ze")
1789 ("*extract1bitdi<clobbercc_or_nocc>")
1790 ("*insv<mode><clobbercc_or_nocc>", "*insv_rnsbg_noshift")
1791 ("*insv_rnsbg_srl", "*insv<mode>_mem_reg")
1792 ("*insvdi_mem_reghigh", "*insvdi_reg_imm"): Use EXTRACT_ARGS_IN_RANGE
1793 to validate the arguments of zero_extract and sign_extract.
1794
1795 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1796
1797 PR target/77822
1798 * rtl.h (EXTRACT_ARGS_IN_RANGE): New.
1799
1800 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1801
1802 * gcc/config/s390/s390.c (s390_builtin_vectorization_cost): New
1803 function.
1804 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Define target
1805 macro.
1806
1807 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1808
1809 * config/s390/vector.md (vec_halfhalf): New mode iterator.
1810 ("vec_pack_trunc_<mode>", "vec_pack_ssat_<mode>")
1811 ("vec_pack_usat_<mode>", "vec_unpacks_hi_v16qi")
1812 ("vec_unpacks_low_v16qi", "vec_unpacku_hi_v16qi")
1813 ("vec_unpacku_low_v16qi", "vec_unpacks_hi_v8hi")
1814 ("vec_unpacks_lo_v8hi", "vec_unpacku_hi_v8hi")
1815 ("vec_unpacku_lo_v8hi", "vec_unpacks_hi_v4si")
1816 ("vec_unpacks_lo_v4si", "vec_unpacku_hi_v4si")
1817 ("vec_unpacku_lo_v4si"): New pattern definitions.
1818 * config/s390/vx-builtins.md: Move VI_HW_HSD mode iterator to
1819 vector.md.
1820
1821 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1822
1823 * config/s390/s390-protos.h (s390_reverse_condition): New
1824 prototype.
1825 * config/s390/s390.c (s390_canonicalize_comparison): Fold compares
1826 of CC mode values.
1827 (s390_reverse_condition): New function.
1828 * config/s390/s390.h (REVERSE_CC_MODE, REVERSE_CONDITION): Define
1829 target macros.
1830
1831 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1832
1833 * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
1834 (CCVHUANY): Remove modes.
1835 (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
1836 documentation.
1837 * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
1838 (s390_expand_vec_compare_scalar): Pick one of the cc consumer
1839 modes.
1840 (s390_branch_condition_mask): Adjust to use the new cc consumer
1841 modes. The new modes allow for proper reversal in the middle-end.
1842 (s390_expand_vec_compare_cc): Determine the proper cc producer and
1843 consumer modes for a comparison.
1844 * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
1845 throughout the file.
1846 * config/s390/vx-builtins.md: Likewise.
1847
1848 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
1849
1850 * asan.c (asan_global_struct): Refactor.
1851 (create_odr_indicator): New function.
1852 (asan_needs_odr_indicator_p): Likewise.
1853 (is_odr_indicator): Likewise.
1854 (asan_add_global): Introduce odr_indicator_ptr. Pass it into global's
1855 constructor.
1856 (asan_protect_global): Do not protect odr indicators.
1857
1858 2016-12-01 Jeff Law <law@redhat.com>
1859
1860 * tree-ssa-threadedge.c
1861 (record_temporary_equivalences_from_stmts_at_dest): Avoid temporary
1862 propagation of operands if there are no operands.
1863
1864 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1865
1866 PR tree-optimization/78586
1867 * gimple-ssa-sprintf.c (format_integer): Don't handle NOP_EXPR,
1868 CONVERT_EXPR or COMPONENT_REF here. Formatting fix. For
1869 SSA_NAME_DEF_STMT with NOP_EXPR only change argtype if the rhs1's
1870 type is INTEGER_TYPE or POINTER_TYPE.
1871
1872 2016-12-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
1873
1874 PR target/78577
1875 * config/rs6000/vsx.md (vextuhlx): Revise mode of operand 2.
1876 (vextuhrx): Likewise.
1877 (vextuwlx): Likewise.
1878 (vextuwrx): Likewise.
1879
1880 2016-12-01 David Malcolm <dmalcolm@redhat.com>
1881
1882 * dwarf2out.c (dwarf2out_c_finalize): Reset early_dwarf and
1883 early_dwarf_finished.
1884
1885 2016-12-01 Eric Botcazou <ebotcazou@adacore.com>
1886 David S. Miller <davem@davemloft.net>
1887
1888 * config/sparc/sparc.opt (mlra): New target option.
1889 * config/sparc/sparc.c (TARGET_LRA_P): Define to...
1890 (sparc_lra_p): ...this. New function.
1891 (D_MODES, DF_MODES): Add missing cast.
1892 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
1893 provide these insns when flag_pic.
1894 (sethi_di_medlow, losum_di_medlow, seth44, setm44, setl44, sethh,
1895 setlm, sethm, setlo, embmedany_sethi, embmedany_losum,
1896 embmedany_brsum, embmedany_textuhi, embmedany_texthi,
1897 embmedany_textulo, embmedany_textlo): Likewise.
1898 (sethi_di_medlow_embmedany_pic): Provide it only with flag_pic.
1899
1900 2016-12-01 David Edelsohn <dje.gcc@gmail.com>
1901
1902 PR debug/66419
1903 PR c++/78235
1904 * dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs.
1905
1906 2016-12-01 Richard Biener <rguenther@suse.de>
1907 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1908
1909 * vec.h (vec<T, A, vl_embed>::quick_grow_cleared): Guard call to
1910 memset if len-oldlen != 0.
1911 (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Likewise.
1912
1913 2016-12-01 Uros Bizjak <ubizjak@gmail.com>
1914
1915 * config/i386/i386.md (*andndi3_doubleword): Depend on TARGET_SSE2.
1916
1917 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
1918
1919 * config/avr/avr.c: Fix coding rule glitches.
1920
1921 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
1922
1923 PR tree-optimization/78598
1924 * tree-ssa-loop-prefetch.c (ddown): Cast to signed to avoid
1925 overflows.
1926
1927 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
1928
1929 PR rtl-optimization/78596
1930 * combine.c (simplify_comparison): Cast to unsigned to avoid
1931 left shifting of negative value.
1932
1933 2016-12-01 Matthias Klose <doko@ubuntu.com>
1934
1935 * doc/install.texi: Don't use pkg-config to check for bdw-gc.
1936
1937 2016-12-01 Richard Biener <rguenther@suse.de>
1938
1939 * tree-ssa-alias.c (indirect_refs_may_alias_p): Do not
1940 treat arrays with same type as objects that cannot overlap.
1941
1942 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
1943
1944 * config/avr/avr.c (avr_print_operand): Use SYMBOL_REF_P if possible.
1945 (avr_handle_addr_attribute, avr_asm_output_aligned_decl_common)
1946 (avr_asm_asm_output_aligned_bss, avr_addr_space_convert): Dito.
1947
1948 2016-12-01 Jakub Jelinek <jakub@redhat.com>
1949
1950 PR debug/78587
1951 * dwarf2out.c (loc_descr_plus_const): For negative offset use
1952 uint_loc_descriptor instead of int_loc_descriptor and perform negation
1953 in unsigned HOST_WIDE_INT type.
1954 (scompare_loc_descriptor): Shift UINTVAL left instead of INTVAL.
1955
1956 PR target/78614
1957 * config/rs6000/rs6000.c (rs6000_frame_related): Call
1958 set_used_flags (pat) before any simplifications. Clear used flag on
1959 PARALLEL copy. Don't guard add_reg_note call. Call
1960 copy_rtx_if_shared on pat before storing it into
1961 REG_FRAME_RELATED_EXPR.
1962
1963 2016-12-01 Alan Modra <amodra@gmail.com>
1964
1965 * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
1966 look inside UNSPEC_VSX_XXSPLTW vec.
1967
1968 2016-12-01 Segher Boessenkool <segher@kernel.crashing.org>
1969
1970 PR rtl-optimization/78607
1971 * combine.c (try_combine): Emit a barrier after a unconditional trap.
1972
1973 2016-11-30 Michael Meissner <meissner@linux.vnet.ibm.com>
1974
1975 PR target/78602
1976 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): If the
1977 element is not a constant or in a register, force it to a
1978 register.
1979
1980 PR target/78560
1981 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Force value
1982 that will be set to a vector element to be in a register.
1983 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Fix thinko that used
1984 the wrong multiplier to convert the element number to a byte
1985 offset.
1986
1987 2016-11-30 Vladimir Makarov <vmakarov@redhat.com>
1988
1989 PR tree-optimization/77856
1990 * lra-constraints.c (inherit_in_ebb): Check original regno for
1991 invalid invariant regs too. Set only clobbered hard regs for the
1992 invalid invariant regs.
1993
1994 2016-11-30 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
1995
1996 Commit files forgotten in r242966.
1997
1998 * config/avr/avr-arch.h (avr_mcu_t) [flash_size]: New member.
1999 * config/avr/avr-devices.c (avr_mcu_types): Add flash size info.
2000 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Remove hard-coded
2001 prefix check to find wrap-around value, instead use MCU flash size.
2002 For 8k flash devices, update link_pmem_wrap spec string to
2003 add --pmem-wrap-around=8k.
2004 * config/avr/specs.h (LINK_RELAX_SPEC): Move link_pmem_wrap from
2005 here...
2006 (LINK_SPEC): ...to here.
2007
2008 2016-11-30 David Malcolm <dmalcolm@redhat.com>
2009
2010 PR c/78498
2011 * selftest.c (selftest::assert_strndup_eq): New function.
2012 (selftest::test_strndup): New function.
2013 (selftest::test_libiberty): New function.
2014 (selftest::selftest_c_tests): Call test_libiberty.
2015
2016 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2017
2018 PR rtl-optimization/78610
2019 * ira.c (combine_and_move_insns): Don't substitute into TRAP_IF
2020 instructions.
2021
2022 2016-11-30 Bin Cheng <bin.cheng@arm.com>
2023
2024 PR tree-optimization/78574
2025 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Skip loop
2026 header PHI that doesn't define biv.
2027
2028 2016-11-30 Jakub Jelinek <jakub@redhat.com>
2029
2030 * emit-rtl.c (verify_insn_sharing): Call verify_rtx_sharing instead of
2031 reset_used_flags.
2032
2033 * config/i386/i386.c (dimode_scalar_chain::convert_op): Avoid
2034 sharing the SUBREG rtx between move and following insn.
2035
2036 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx
2037 for REG_EQUIV argument.
2038
2039 2016-11-30 Thomas Preud'homme <thomas.preudhomme@arm.com>
2040
2041 * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33.
2042
2043 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2044
2045 PR ipa/78555
2046 * real.c (real_hash): Add cast to avoid left
2047 shifting of negative values.
2048
2049 2016-11-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2050
2051 PR target/78362
2052 * config/aarch64/aarch64.md (add<mode>3): Extract inner expression
2053 from a subreg in operands[1] and don't call REGNO on a non-reg
2054 expression when deciding to force operands[2] into a reg.
2055
2056 2016-11-30 Claudiu Zissulescu <claziss@synopsys.com>
2057 Andrew Burgess <andrew.burgess@embecosm.com>
2058
2059 * config/arc/arc-protos.h (arc_store_addr_hazard_p): Declare.
2060 * config/arc/arc.c (arc_store_addr_hazard_p): New function.
2061 (workaround_arc_anomaly): Call arc_store_addr_hazard_p for ARC700.
2062 * config/arc/arc700.md: Add define_bypass for store/load.
2063
2064 2016-11-30 Martin Liska <mliska@suse.cz>
2065
2066 * cgraph.c (symbol_table::initialize): Initialize
2067 ipa_clones_dump_file.
2068 (cgraph_node::remove): Report to ipa_clones_dump_file.
2069 * cgraph.h: Add new argument (suffix) to cloning methods.
2070 * cgraphclones.c (dump_callgraph_transformation): New function.
2071 (cgraph_node::create_clone): New argument.
2072 (cgraph_node::create_virtual_clone): Likewise.
2073 (cgraph_node::create_version_clone): Likewise.
2074 * dumpfile.c: Add .ipa-clones dump file.
2075 * dumpfile.h (enum tree_dump_index): Add TDI_clones
2076 * ipa-inline-transform.c (clone_inlined_nodes): Report operation
2077 to dump_callgraph_transformation.
2078
2079 2016-11-30 Martin Liska <mliska@suse.cz>
2080
2081 PR sanitizer/78541
2082 * asan.c (asan_expand_mark_ifn): Properly
2083 select a VAR_DECL from FRAME.* component reference.
2084
2085 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2086
2087 PR rtl-optimization/78583
2088 * simplify-rtx.c (simplify_truncation): Add check missing from the
2089 previous commit.
2090
2091 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2092
2093 PR rtl-optimization/78590
2094 * combine.c (change_zero_ext): Transform zero_extend of subregs only
2095 if the subreg_reg is a scalar integer mode.
2096
2097 2016-11-30 Jakub Jelinek <jakub@redhat.com>
2098
2099 PR tree-optimization/78586
2100 * gimple-ssa-sprintf.c (format_integer): Use TYPE_MAX_VALUE or
2101 TYPE_MIN_VALUE or build_all_ones_cst instead of folding LSHIFT_EXPR.
2102 Don't build_int_cst min/max twice. Formatting fix.
2103
2104 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2105
2106 PR rtl-optimization/78588
2107 * combine.c (if_then_else_cond): Also guard against BLKmode.
2108 * rtlanal.c (num_sign_bit_copies1): Add assert.
2109
2110 2016-11-29 Jeff Law <law@redhat.com>
2111
2112 * common/config/arc/arc-common.c (arc_handle_option): Remove unused
2113 variables.
2114
2115 * lra-constraints.c (check_and_process_move): Constrain the
2116 range of DCLASS and SCLASS to avoid false positive out of bounds
2117 array index warning.
2118
2119 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2120
2121 * doc/install.texi (--with-target-bdw-gc): Remove stray '@'.
2122
2123 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2124
2125 PR preprocessor/78569
2126 * input.c (get_substring_ranges_for_loc): Fail gracefully if
2127 line directives were present.
2128
2129 2016-11-30 Matthias Klose <doko@ubuntu.com>
2130
2131 * doc/install.texi: Document configure options --enable-objc-gc
2132 and --with-target-bdw-gc.
2133
2134 2016-11-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2135
2136 PR target/78594
2137 * config/rs6000/rs6000.md (mov<mode>_internal, QHI iterator): Add
2138 'x' to stxsi<wd>x print pattern, so that QImode and HImode values
2139 residing in traditional altivec registers can be stored
2140 correctly.
2141
2142 2016-11-29 Max Filippov <jcmvbkbc@gmail.com>
2143
2144 PR target/78603
2145 * config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
2146 overhead loop start between a call and its CALL_ARG_LOCATION
2147 note.
2148
2149 2016-11-29 Waldemar Brodkorb <wbx@openadk.org>
2150
2151 * config/bfin/linux.h (CPP_SPEC): Define.
2152
2153 2016-11-29 Martin Sebor <msebor@redhat.com>
2154
2155 PR tree-optimization/78512
2156 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Remove.
2157 * config/rs6000/linux.h: Same.
2158 * config/rs6000/linux64.h: Same.
2159 * config/sol2.h: Same.
2160 * config/sol2.c (solaris_printf_pointer_format): Remove.
2161 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Remove.
2162 * doc/tm.texi: Regenerate.
2163 * gimple-ssa-sprintf.c (format_pointer): Rempove.
2164 (pass_sprintf_length::compute_format_length): Return bool.
2165 (pass_sprintf_length::handle_gimple_call): Adjust.
2166 * target.def (printf_pointer_format): Remove.
2167 * targhooks.c (default_printf_pointer_format): Remove.
2168 (linux_printf_pointer_format): Same.
2169 * targhooks.h (default_printf_pointer_format): Remove.
2170 (linux_printf_pointer_format, solaris_printf_pointer_format): Same.
2171
2172 2016-11-29 Uros Bizjak <ubizjak@gmail.com>
2173
2174 * config/i386/sse.md (UNSPEC_MASKOP): Move from i386.md.
2175 (mshift): Ditto.
2176 (SWI1248_AVX512BWDQ): Ditto.
2177 (SWI1248_AVX512BW): Ditto.
2178 (k<any_logic:code><mode>): Ditto.
2179 (kandn<mode>): Ditto.
2180 (kxnor<mode>): Ditto.
2181 (knot<mode>): Ditto.
2182 (*k<any_lshift:code><mode>): Ditto.
2183 (kortestzhi, kortestchi): Ditto.
2184 (kunpckhi, kunpcksi, kunpckdi): Ditto.
2185
2186 2016-11-29 Andrew Pinski <apinski@cavium.com>
2187
2188 * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node
2189 for the EQ_EXPR.
2190
2191 2016-11-29 Chen Gang <gang.chen.5i5j@gmail.com>
2192
2193 PR target/71331
2194 * config/tilegx/tilegx.c (tilegx_function_profiler): Save r10
2195 to stack before call mcount.
2196 (tilegx_can_use_return_insn_p): Clean up code.
2197
2198 2016-11-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2199
2200 * config/avr/avr-mcu.def: (avr_mcu_types): Add flash size info.
2201
2202 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2203
2204 PR c++/72774
2205 PR c++/72786
2206 PR c++/77922
2207 PR c++/78313
2208 * spellcheck.c (selftest::test_find_closest_string): Verify that
2209 we don't offer the goal string as a suggestion.
2210 * spellcheck.h (best_match::get_best_meaningful_candidate): Don't
2211 offer the goal string as a suggestion.
2212
2213
2214 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
2215
2216 * config/arc/arc.c (arc_override_options): Avoid selection of
2217 compact casesi for ARCv2.
2218
2219 2016-11-29 Richard Biener <rguenther@suse.de>
2220
2221 * tree-cfg.c (lower_phi_internal_fn): Do not look for further
2222 PHIs after a regular stmt.
2223 (stmt_starts_bb_p): PHIs not preceeded by a PHI or a label
2224 start a new BB.
2225
2226 2016-11-29 Martin Liska <mliska@suse.cz>
2227
2228 PR gcov-profile/78582
2229 * tree-profile.c (gimple_gen_time_profiler): Make one extra BB
2230 to prevent PHI argument clash.
2231
2232 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
2233
2234 * config/arc/arc.opt (marclinux): Fix typo.
2235 (marclinux_prof): Likewise.
2236
2237 2016-11-29 Jiong Wang <jiong.wang@arm.com>
2238
2239 * target.def (stack_protect_runtime_enabled_p): New.
2240 * function.c (expand_function_end): Guard stack_protect_epilogue with
2241 targetm.stack_protect_runtime_enabled_p.
2242 * cfgexpand.c (pass_expand::execute): Likewise.
2243 * calls.c (expand_call): Likewise.
2244 * doc/tm.texi.in (TARGET_STACK_PROTECT_RUNTIME_ENABLED_P): Add it.
2245 * doc/tm.texi: Regenerate.
2246
2247 2016-11-29 Richard Biener <rguenther@suse.de>
2248
2249 PR middle-end/78546
2250 * match.pd: Add CST1 - (CST2 - A) -> CST3 + A missing case.
2251
2252 2016-11-29 Janus Weil <janus@gcc.gnu.org>
2253
2254 * doc/contrib.texi: Add a few missing gfortran contributors.
2255
2256 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
2257
2258 * combine.c (change_zero_ext): Also handle extends from a subreg
2259 to a mode bigger than that of the operand of the subreg.
2260
2261 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
2262
2263 PR target/77687
2264 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Emit the
2265 stack_restore_tie insn instead of stack_tie, for the SVR4 and
2266 SPE ABIs.
2267 * config/rs6000/rs6000.md (stack_restore_tie): New define_insn.
2268
2269 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2270
2271 * shrink-wrap.c (init_separate_shrink_wrap): Do not clear
2272 head_components and tail_components.
2273 (spread_components): New algorithm.
2274 (emit_common_tails_for_components): Clear head_components and
2275 tail_components.
2276 (insert_prologue_epilogue_for_components): Write extra output to the
2277 dump file for sibcalls and abnormal exits.
2278
2279 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2280
2281 PR rtl-optimization/78342
2282 * combine.c: Include "cfghooks.h".
2283 (try_combine): If we create an unconditional trap, break the basic
2284 block in two just after it, and remove the edge between; also, set
2285 the *new_direct_jump_p flag so that cleanup_cfg is run.
2286
2287 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2288
2289 * simplify-rtx.c (simplify_truncation): Handle truncate of zero_extract
2290 and sign_extract.
2291
2292 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
2293
2294 * config/i386/i386.md (*and<mode>_1): Merge insn pattern from
2295 *andsi_1 and *andhi_1 using SWI24 mode iterator. Use multi-line
2296 output template string.
2297 (*anddi_1): Use multi-line output template string.
2298 (*andqi_1): Ditto.
2299
2300 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2301
2302 PR middle-end/78540
2303 * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
2304 * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
2305 note has been removed.
2306 * postreload.c (reload_combine_recognize_pattern): If
2307 remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
2308
2309 2016-11-28 Martin Sebor <msebor@redhat.com>
2310
2311 PR middle-end/78520
2312 * gimple-ssa-sprintf.c (target_max_value): Remove.
2313 (target_int_max, target_size_max): Use TYPE_MAX_VALUE.
2314 (get_width_and_precision): New function.
2315 (format_integer, format_floating, get_string_length, format_string):
2316 Correct handling of width and precision with unknown value.
2317 (format_directive): Add warning.
2318 (pass_sprintf_length::compute_format_length): Allow for precision
2319 to consist of a sole period with no asterisk or digits after it.
2320
2321 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2322
2323 PR rtl-optimization/78546
2324 * simplify-rtx.c (neg_const_int): When negating most negative
2325 number in mode wider than HOST_BITS_PER_WIDE_INT, use
2326 simplify_const_unary_operation to produce CONST_DOUBLE or
2327 CONST_WIDE_INT.
2328 (simplify_plus_minus): Handle the case where neg_const_int
2329 doesn't return a CONST_INT.
2330
2331 2016-11-28 Markus Trippelsdorf <markus@trippelsdorf.de>
2332
2333 PR target/78556
2334 * config/rs6000/rs6000.c (vspltis_constant): Add casts to avoid
2335 left shifting of negative values.
2336
2337 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2338
2339 PR fortran/78298
2340 * tree-nested.c (convert_local_reference_stmt): After adding
2341 shared (FRAME.NN) clause to omp parallel, task or target,
2342 add it also to all outer omp parallel, task or target constructs.
2343
2344 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
2345
2346 * config/i386/i386.md (UNSPEC_KMASKOP): New.
2347 (UNSPEC_KMOV): Remove.
2348 (kmovw): Expand to plain HImode move.
2349 (k<any_logic:code><mode>): Rename from *k<logic><mode>. Use
2350 register_operand predicates. Tag pattern with UNSPEC_KMASKOP.
2351 Remove corresponding clobber-removing splitter.
2352 (*anddi_1): Remove mask register alternatives.
2353 (*andsi_1): Ditto.
2354 (*andhi_1): Ditto.
2355 (*andqi_1): Ditto.
2356 (*<any_or:code><mode>_1): Ditto.
2357 (*<any_or:code>qi_1): Ditto.
2358 (kandn<mode>): Use SWI1248_AVX512BW mode iterator. Remove
2359 general register alternatives. Tag pattern with UNSPEC_KMASKOP.
2360 Remove corresponding splitter to operation with general registers.
2361 (*andn<SWI38:mode>): Rename from *bmi_andn_<mode>.
2362 (*andn<SWI12:mode>): New pattern.
2363 (*kxnor<mode>): Remove general register alternatives. Tag pattern
2364 with UNSPEC_KMASKOP. Remove corresponding splitter to operation
2365 with general registers.
2366 (knot<mode>): New insn pattern.
2367 (*one_cmpl<mode>2_1): Remove mask register alternatives.
2368 (one_cmplqi2_1): Ditto.
2369 (*k<any_lshift:code><mode>): Rename from *k<mshift><mode>3.
2370 Tag pattern with UNSPEC_KMASKOP. Add mode attribute.
2371 * config/i386/predicates.md (mask_reg_operand): Remove predicate.
2372 * config/i386/sse.md (vec_unpacks_hi_hi): Update pattern
2373 to generate kmaskop shift.
2374 (vec_unpacks_hi_<mode>): Ditto.
2375 * config/i386/i386-builtin.def (__builtin_ia32_kandhi):
2376 Use CODE_FOR_kandhi.
2377 (__builtin_ia32_knothi): Use CODE_FOR_knothi.
2378 (__builtin_ia32_korhi): Use CODE_FOR_kiorhi.
2379 (__builtin_ia32_kxorhi): Use CODE_FOR_kxorhi.
2380
2381 2016-11-28 Richard Biener <rguenther@suse.de>
2382
2383 * tree-vrp.c (vrp_visit_assignment_or_call): Handle simplifications
2384 to SSA names via extract_range_from_ssa_name if allowed.
2385
2386 2016-11-28 Richard Biener <rguenther@suse.de>
2387
2388 PR tree-optimization/78542
2389 * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
2390 if allowed.
2391
2392 2016-11-28 Paolo Bonzini <bonzini@gnu.org>
2393
2394 * combine.c (simplify_if_then_else): Simplify IF_THEN_ELSE that
2395 isolates a single bit, even if the condition involves subregs.
2396
2397 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2398
2399 * config/aarch64/aarch64-simd-builtins.def
2400 (BSL_P): Added di and v2di mode.
2401 * config/aarch64/arm_neon.h
2402 (vsriq_n_p64, vsri_n_p64): Added poly type.
2403 (vextq_p64, vext_p64): Likewise.
2404 (vceq_p64, vbslq_p64, vbsl_p64): Likewise.
2405
2406 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2407
2408 * config/aarch64/aarch64-builtins.c (TYPES_SETREGP): Added poly type.
2409 (TYPES_GETREGP): Likewise.
2410 (TYPES_SHIFTINSERTP): Likewise.
2411 (TYPES_COMBINEP): Likewise.
2412 (TYPES_STORE1P): Likewise.
2413 * config/aarch64/aarch64-simd-builtins.def
2414 (combine): Added poly generator.
2415 (get_dregoi): Likewise.
2416 (get_dregci): Likewise.
2417 (get_dregxi): Likewise.
2418 (ssli_n): Likewise.
2419 (ld1): Likewise.
2420 (st1): Likewise.
2421 * config/aarch64/arm_neon.h
2422 (poly64x1x2_t, poly64x1x3_t): New.
2423 (poly64x1x4_t, poly64x2x2_t): Likewise.
2424 (poly64x2x3_t, poly64x2x4_t): Likewise.
2425 (poly64x1_t): Likewise.
2426 (vcreate_p64, vcombine_p64): Likewise.
2427 (vdup_n_p64, vdupq_n_p64): Likewise.
2428 (vld2_p64, vld2q_p64): Likewise.
2429 (vld3_p64, vld3q_p64): Likewise.
2430 (vld4_p64, vld4q_p64): Likewise.
2431 (vld2_dup_p64, vld3_dup_p64): Likewise.
2432 (vld4_dup_p64, vsli_n_p64): Likewise.
2433 (vsliq_n_p64, vst1_p64): Likewise.
2434 (vst1q_p64, vst2_p64): Likewise.
2435 (vst3_p64, vst4_p64): Likewise.
2436 (__aarch64_vdup_lane_p64, __aarch64_vdup_laneq_p64): Likewise.
2437 (__aarch64_vdupq_lane_p64, __aarch64_vdupq_laneq_p64): Likewise.
2438 (vget_lane_p64, vgetq_lane_p64): Likewise.
2439 (vreinterpret_p8_p64, vreinterpretq_p8_p64): Likewise.
2440 (vreinterpret_p16_p64, vreinterpretq_p16_p64): Likewise.
2441 (vreinterpret_p64_f16, vreinterpret_p64_f64): Likewise.
2442 (vreinterpret_p64_s8, vreinterpret_p64_s16): Likewise.
2443 (vreinterpret_p64_s32, vreinterpret_p64_s64): Likewise.
2444 (vreinterpret_p64_f32, vreinterpret_p64_u8): Likewise.
2445 (vreinterpret_p64_u16, vreinterpret_p64_u32): Likewise.
2446 (vreinterpret_p64_u64, vreinterpret_p64_p8): Likewise.
2447 (vreinterpretq_p64_f64, vreinterpretq_p64_s8): Likewise.
2448 (vreinterpretq_p64_s16, vreinterpretq_p64_s32): Likewise.
2449 (vreinterpretq_p64_s64, vreinterpretq_p64_f16): Likewise.
2450 (vreinterpretq_p64_f32, vreinterpretq_p64_u8): Likewise.
2451 (vreinterpretq_p64_u16, vreinterpretq_p64_u32): Likewise.
2452 (vreinterpretq_p64_u64, vreinterpretq_p64_p8): Likewise.
2453 (vreinterpret_f16_p64, vreinterpretq_f16_p64): Likewise.
2454 (vreinterpret_f32_p64, vreinterpretq_f32_p64): Likewise.
2455 (vreinterpret_f64_p64, vreinterpretq_f64_p64): Likewise.
2456 (vreinterpret_s64_p64, vreinterpretq_s64_p64): Likewise.
2457 (vreinterpret_u64_p64, vreinterpretq_u64_p64): Likewise.
2458 (vreinterpret_s8_p64, vreinterpretq_s8_p64): Likewise.
2459 (vreinterpret_s16_p64, vreinterpret_s32_p64): Likewise.
2460 (vreinterpretq_s32_p64, vreinterpret_u8_p64): Likewise.
2461 (vreinterpret_u16_p64, vreinterpretq_u16_p64): Likewise.
2462 (vreinterpret_u32_p64, vreinterpretq_u32_p64): Likewise.
2463 (vset_lane_p64, vsetq_lane_p64): Likewise.
2464 (vget_low_p64, vget_high_p64): Likewise.
2465 (vcombine_p64, vst2_lane_p64): Likewise.
2466 (vst3_lane_p64, vst4_lane_p64): Likewise.
2467 (vst2q_lane_p64, vst3q_lane_p64): Likewise.
2468 (vst4q_lane_p64, vget_lane_p64): Likewise.
2469 (vget_laneq_p64, vset_lane_p64): Likewise.
2470 (vset_laneq_p64, vcopy_lane_p64): Likewise.
2471 (vcopy_laneq_p64, vdup_n_p64): Likewise.
2472 (vdupq_n_p64, vdup_lane_p64): Likewise.
2473 (vdup_laneq_p64, vld1_p64): Likewise.
2474 (vld1q_p64, vld1_dup_p64): Likewise.
2475 (vld1q_dup_p64, vld1q_dup_p64): Likewise.
2476 (vmov_n_p64, vmovq_n_p64): Likewise.
2477 (vst3q_p64, vst4q_p64): Likewise.
2478 (vld1_lane_p64, vld1q_lane_p64): Likewise.
2479 (vst1_lane_p64, vst1q_lane_p64): Likewise.
2480 (vcopy_laneq_p64, vcopyq_laneq_p64): Likewise.
2481 (vdupq_laneq_p64): Likewise.
2482
2483 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2484
2485 * config/arm/arm_neon.h (vget_lane_p64): New.
2486
2487 2016-11-28 Iain Sandoe <iain@codesourcery.com>
2488
2489 PR target/71767
2490 * configure.ac (with_ld64): Use portable method to extract the
2491 major part of the version number.
2492 * configure: Regenerated.
2493
2494 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2495
2496 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Look at
2497 UINTMAX_TYPE rather than SIZE_TYPE. Add gcc_unreachable if
2498 intmax_t couldn't be determined.
2499 (format_integer): Make {,u}intmax_type_node no longer static,
2500 initialize them only when needed. For z and t use
2501 signed_or_unsigned_type_for instead of assuming size_t and
2502 ptrdiff_t have the same precision.
2503
2504 PR lto/78211
2505 * ipa-icf.h (sem_item_optimizer): Add m_classes_vec member.
2506 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Initialize it.
2507 (sem_item_optimizer::~sem_item_optimizer): Traverse m_classes_vec
2508 vector instead of traversing m_classes hash table. Release
2509 m_classes_vec.
2510 (sem_item_optimizer::read_section, sem_item_optimizer::add_class):
2511 Formatting fixes.
2512 (sem_item_optimizer::get_group_by_hash): When inserting a new group,
2513 add it also to m_classes_vec vector.
2514 (sem_item_optimizer::remove_symtab_node,
2515 sem_item_optimizer::build_hash_based_classes,
2516 sem_item_optimizer::parse_nonsingleton_classes): Formatting fixes.
2517 (sem_item_optimizer::subdivide_classes_by_equality,
2518 sem_item_optimizer::subdivide_classes_by_sensitive_refs,
2519 sem_item_optimizer::verify_classes): Traverse m_classes_vec vector
2520 instead of traversing m_classes hash table. Formatting fixes.
2521 (sem_item_optimizer::traverse_congruence_split,
2522 sem_item_optimizer::do_congruence_step_for_index,
2523 sem_item_optimizer::do_congruence_step): Formatting fixes.
2524 (sem_item_optimizer::process_cong_reduction): Traverse m_classes_vec
2525 vector instead of traversing m_classes hash table.
2526 (sem_item_optimizer::dump_cong_classes): Likewise. Formatting fixes.
2527 (sem_item_optimizer::merge_classes): Traverse m_classes_vec vector
2528 instead of traversing m_classes hash table.
2529
2530 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
2531
2532 * config/avr/avr.c (out_movhi_r_mr) [REG_X + PLUS]: Only SBIW if
2533 X is not unused after.
2534
2535 2016-11-28 Bernd Schmidt <bschmidt@redhat.com>
2536
2537 PR rtl-optimization/78120
2538 * rtlanal.c (insn_rtx_cost): Revert previous change.
2539
2540 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
2541
2542 PR 41076
2543 * config/avr/avr.md (SPLIT34): New mode iterator.
2544 (bitop): New code iterator.
2545 (*iorhi3.ashift8-*). New insn-and-split patterns.
2546 (*movhi): Post-reload split reg = 0.
2547 [!MOVW]: Post-reload split reg = reg.
2548 (*mov<mode>) [SI,SF,PSI,SQ,USQ,SA,USA]: Post-reload split reg = reg.
2549 (andhi3, andpsi3, andsi3): Post-reload split reg-reg operations.
2550 (iorhi3, iorpsi3, iorsi3): Same.
2551 (xorhi3, xorpsi3, xorsi3): Same.
2552 * config/avr/avr.c (avr_rtx_costs_1) [IOR && HImode]: Adjust rtx
2553 costs to *iorhi3.ashift8-* patterns.
2554
2555 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2556 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2557
2558 PR target/67710
2559 * config.in: Regenerate
2560 * config/darwin-driver.c (darwin_driver_init): Emit a version string
2561 for the assembler.
2562 * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
2563 * config/darwin.opt(asm_macosx_version_min): New.
2564 * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
2565 * configure: Regenerate
2566 * configure.ac: Check for mmacosx-version-min handling.
2567
2568 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2569
2570 PR target/57438
2571 * config/i386/i386.c (ix86_code_end): Note that we emitted code
2572 where the function might otherwise appear empty for picbase thunks.
2573 (ix86_output_function_epilogue): If we find a zero-sized function
2574 assume that reaching it is UB and trap. If we find a trailing label
2575 append a nop.
2576 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
2577 find a zero-sized function assume that reaching it is UB and trap.
2578 If we find a trailing label, append a nop.
2579
2580 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2581
2582 PR target/71767
2583 * config/darwin-sections.def (picbase_thunk_section): New.
2584 * config/darwin.c (darwin_init_sections): Set up picbase thunk
2585 section. (darwin_rodata_section, darwin_objc2_section,
2586 machopic_select_section, darwin_asm_declare_constant_name,
2587 darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
2588 coalesced with newer linkers.
2589 (darwin_override_options): Decide on usage of coalesed sections
2590 on the basis of the target linker version.
2591 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
2592 * config/darwin.opt (mtarget-linker): New.
2593 * config/i386/i386.c (ix86_code_end): Do not force the thunks into
2594 a coalesced section, instead use a thunks section.
2595
2596 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2597
2598 PR target/71767
2599 * configure.ac (with-ld64): New var, set for Darwin, set on
2600 detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
2601 * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New, define.
2602 * config/darwin10.h(DEF_LD64): Update for this target version.
2603 * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic test.
2604 (DEF_LD64): Update for this target version.
2605 * configure: Regenerated.
2606 * config.in: Regenerated.
2607
2608 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2609
2610 PR target/71767
2611 * config/darwin.c (imachopic_indirection_name): Make data
2612 section indirections linker-visible.
2613 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
2614 constant labels linker-visible.
2615
2616 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2617
2618 * tree.c (build_common_tree_nodes): Initialize ptrdiff_type_node.
2619 (free_lang_data): Remove assignment to ptrdiff_type_node.
2620
2621 2016-11-25 Jakub Jelinek <jakub@redhat.com>
2622
2623 PR rtl-optimization/78526
2624 * simplify-rtx.c (simplify_immed_subreg): Don't use wi::extract_uhwi
2625 beyond val's precision.
2626
2627 PR rtl-optimization/78527
2628 * combine.c (make_compound_operation_int): Ignore LSHIFTRT with
2629 out of bounds shift count.
2630
2631 2016-11-25 Martin Liska <mliska@suse.cz>
2632
2633 PR web/71666
2634 * doc/invoke.texi (-fprofile-use): Fix reference to a section
2635 where -fprofile-generate is documented.
2636
2637 2016-11-25 Martin Liska <mliska@suse.cz>
2638
2639 PR gcov-profile/78086
2640 * coverage.c (build_init_ctor): Don't use priority {cd}tors if
2641 not supported by a target. Set priority to 100 if possible.
2642 (build_gcov_exit_decl): Likewise.
2643
2644 2016-11-25 Richard Biener <rguenther@suse.de>
2645
2646 PR ipa/78515
2647 * ipa-prop.c (compute_complex_assign_jump_func): Properly identify
2648 unary, binary and single RHSs.
2649 * tree.def (BIT_INSERT_EXPR): Adjust tree code name.
2650
2651 2016-11-25 Bin Cheng <bin.cheng@arm.com>
2652
2653 PR middle-end/78507
2654 PR middle-end/78510
2655 PR middle-end/78517
2656 * match.pd ((cond (cmp (convert1? @1) @3) (convert2? @1) @2)): Use
2657 cmp directly, rather than cmp_code. Initialize code to ERROR_MARK
2658 and set it to result code if transformation is valid. Use code EQ
2659 directly in last simplification case.
2660
2661 2016-11-25 Richard Biener <rguenther@suse.de>
2662
2663 * gimple-fold.c (fold_stmt_1): Check may_propagate_copy
2664 before valueizing return stmts.
2665
2666 2016-11-24 Richard Biener <rguenther@suse.de>
2667
2668 PR tree-optimization/78343
2669 * passes.def: Add CD-DCE pass after loop splitting.
2670 * tree-ssa-dce.c (find_obviously_necessary_stmts): Move
2671 SCEV init/finalize ...
2672 (perform_tree_ssa_dce): ... here. Deal with being
2673 executed inside the loop pipeline in aggressive mode.
2674
2675 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2676
2677 * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
2678
2679 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2680
2681 PR tree-optimization/77673
2682 * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
2683 (init_symbolic_number): Initialize src field from src parameter.
2684 (perform_symbolic_merge): Select most dominated statement as the
2685 source statement. Set src field of resulting n structure from the
2686 input src with the lowest address.
2687 (find_bswap_or_nop): Rename source_stmt into ins_stmt.
2688 (bswap_replace): Rename src_stmt into ins_stmt. Initially get source
2689 of load from src field rather than insertion statement. Cancel
2690 optimization if statement analyzed is not dominated by the insertion
2691 statement.
2692 (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt. Compute
2693 dominance information.
2694
2695 2016-11-25 Eric Botcazou <ebotcazou@adacore.com>
2696
2697 PR ada/67205
2698 * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
2699
2700 2016-11-25 Martin Jambor <mjambor@suse.cz>
2701
2702 PR tree-optimization/70965
2703 * passes.def (pass_build_ssa_passes): Add pass_rebuild_cgraph_edges.
2704
2705 2016-11-24 James Greenahlgh <james.greenhalgh@arm.com>
2706
2707 PR target/78509
2708 * config/i386/i386.c (i386_excess_precision): Do not return
2709 FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
2710 EXCESS_PRECISION_TYPE_STANDARD.
2711 * target.def (excess_precision): Document that targets should
2712 not return FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
2713 EXCESS_PRECISION_TYPE_STANDARD or EXCESS_PRECISION_TYPE_FAST.
2714 Fix typo in first sentence.
2715 * doc/tm.texi: Regenerate.
2716
2717 2016-11-25 Richard Biener <rguenther@suse.de>
2718
2719 PR tree-optimization/78396
2720 * tree-vectorizer.c (vectorize_loops): When the if-converted
2721 body contains masked loads or stores do not attempt to
2722 basic-block-vectorize it.
2723
2724 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2725 Alan Hayward <alan.hayward@arm.com>
2726 David Sherwood <david.sherwood@arm.com>
2727
2728 * function.h (spill_slot_alignment): Declare.
2729 * function.c (spill_slot_alignment): New function.
2730 * lra-spills.c (slot): Add align and size fields.
2731 (assign_mem_slot): Use them in the call to assign_stack_local.
2732 (add_pseudo_to_slot): Update the fields.
2733 (assign_stack_slot_num_and_sort_pseudos): Initialise the fields.
2734
2735 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2736 Alan Hayward <alan.hayward@arm.com>
2737 David Sherwood <david.sherwood@arm.com>
2738
2739 * stor-layout.c (layout_type): Allow the caller to set the mode of
2740 a float type. Only choose one here if the mode is still VOIDmode.
2741 * tree.c (build_common_tree_nodes): Set the type mode of decimal
2742 floats before calling layout_type.
2743 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
2744
2745 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2746
2747 * tree-tailcall.c (find_tail_calls): Allow calls to reference
2748 local variables if all references are known to be direct.
2749
2750 2016-11-25 Jakub Jelinek <jakub@redhat.com>
2751 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2752
2753 PR middle-end/78501
2754 * tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
2755 non null and it's precision matches precision of lhs's type.
2756
2757 2016-11-24 Martin Sebor <msebor@redhat.com>
2758
2759 PR tree-optimization/78476
2760 * gimple-ssa-sprintf.c (struct pass_sprintf_length::call_info):
2761 Add a member.
2762 (handle_gimple_call): Adjust signature.
2763 (try_substitute_return_value): Remove calls to bounded functions
2764 with zero buffer size whose result is known.
2765 (pass_sprintf_length::execute): Adjust call to handle_gimple_call.
2766
2767 2016-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2768
2769 * varasm.c (assemble_start_function): Wrap align_log definition in
2770 ASM_OUTPUT_MAX_SKIP_ALIGN.
2771
2772 2016-11-24 Uros Bizjak <ubizjak@gmail.com>
2773
2774 * config/i386/i386.md (wide AND insn to QImode splitter): Use
2775 explicit mode macros.
2776 (wide OR insn to QImode splitter): Ditto.
2777
2778 2016-11-24 Vladimir Makarov <vmakarov@redhat.com>
2779
2780 PR rtl-optimization/77541
2781 * lra-constraints.c (struct input_reload): Add field match_p.
2782 (get_reload_reg): Check modes of input reloads to generate unique
2783 value reload pseudo.
2784 (match_reload): Add input reload pseudo for the current insn.
2785
2786 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2787
2788 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Update
2789 __FLT_EVAL_METHOD__ and __FLT_EVAL_METHOD_C99__ when we switch
2790 architecture levels.
2791 * config/aarch64/aarch64.c (aarch64_promoted_type): Only promote
2792 the aarch64_fp16_type_node, not all HFmode types.
2793 (aarch64_libgcc_floating_mode_supported_p): Support HFmode.
2794 (aarch64_scalar_mode_supported_p): Likewise.
2795 (aarch64_excess_precision): New.
2796 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
2797 (TARGET_SCALAR_MODE_SUPPORTED_P): Likewise.
2798 (TARGET_C_EXCESS_PRECISION): Likewise.
2799
2800 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2801
2802 * config/aarch64/aarch64-c.c (aarch64_scalar_mode_supported_p): New.
2803 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
2804
2805 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2806
2807 * config/aarch64/aarch64.md (<optab>sihf2): Convert to expand.
2808 (<optab>dihf2): Likewise.
2809 (aarch64_fp16_<optab><mode>hf2): New.
2810
2811 2016-11-24 Alexander Monakov <amonakov@ispras.ru>
2812
2813 PR target/67822
2814 * config/nvptx/mkoffload.c (main): Allow -fopenmp.
2815
2816 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2817
2818 * common/config/sparc/sparc-common.c (sparc_option_optimization_table):
2819 Enable REE at -O2 and higher.
2820 * config/sparc/sparc.c (sparc_option_override): Disable it by default
2821 in 32-bit mode.
2822
2823 2016-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2824
2825 PR target/48863
2826 PR inline-asm/70184
2827 * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
2828 (new_temp_expr_table): Initialise reg_vars_cnt.
2829 (free_temp_expr_table): Release reg_vars_cnt.
2830 (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
2831 field of TAB.
2832 (find_replaceable_in_bb): Use the above to record register variable
2833 write occurrences and cancel replacement across them.
2834
2835 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2836
2837 PR rtl-optimization/78437
2838 * ree.c (get_uses): New function.
2839 (combine_reaching_defs): When a copy is needed, return false if any
2840 reaching use of the source register reads it in a mode larger than
2841 the mode it is set in and WORD_REGISTER_OPERATIONS is true.
2842
2843 2016-11-24 Martin Liska <mliska@suse.cz>
2844
2845 * gimple-pretty-print.c (dump_edge_probability): New function.
2846 (dump_gimple_switch): Dump label edge probabilities.
2847 (dump_gimple_cond): Likewise.
2848 (dump_gimple_label): Dump
2849 (dump_gimple_bb_header): Dump basic block frequency.
2850 (pp_cfg_jump): Replace e->dest argument with e.
2851 (dump_implicit_edges): Likewise.
2852 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
2853 Use gimple_bb (at) instead of at->bb.
2854
2855 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
2856
2857 * common.opt (flimit-function-alignment): New.
2858 * doc/invoke.texi (-flimit-function-alignment): Document.
2859 * emit-rtl.h (struct rtl_data): Add max_insn_address field.
2860 * final.c (shorten_branches): Set it.
2861 * varasm.c (assemble_start_function): Limit alignment if
2862 requested.
2863
2864 2016-11-24 Richard Biener <rguenther@suse.de>
2865
2866 PR tree-optimization/71595
2867 * cfgloopmanip.h (remove_path): Add irred_invalidated and
2868 loop_closed_ssa_invalidated parameters, defaulted to NULL.
2869 * cfgloopmanip.c (remove_path): Likewise, pass them along to
2870 called functions. Only fix irred flags if the caller didn't
2871 request state.
2872 * tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
2873 (unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
2874 to remove_path.
2875
2876 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
2877
2878 PR rtl-optimization/78120
2879 * ifcvt.c (noce_conversion_profitable_p): Check original cost in all
2880 cases, and additionally test against max_seq_cost for speed
2881 optimization.
2882 (noce_process_if_block): Compute an estimate for the original cost when
2883 optimizing for speed, using the minimum of then and else block costs.
2884
2885 PR rtl-optimization/78120
2886 * rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
2887
2888 PR rtl-optimization/78120
2889 * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.
2890
2891 2016-11-24 Bin Cheng <bin.cheng@arm.com>
2892
2893 * match.pd: Refine type conversion in result expr for below pattern:
2894 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
2895
2896 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2897
2898 PR middle-end/78429
2899 * tree.h (wi::fits_to_boolean_p): New predicate.
2900 (wi::fits_to_tree_p): Use it for boolean types.
2901 * tree.c (int_fits_type_p): Likewise.
2902
2903 2016-11-24 Martin Liska <mliska@suse.cz>
2904
2905 * print-tree.c (struct bucket): Remove.
2906 (print_node): Add new argument which drives whether a tree node
2907 is printed briefly or not.
2908 (debug_tree): Replace a custom hash table with hash_set<T>.
2909 * print-tree.h (print_node): Add the argument.
2910
2911 2016-11-24 Chung-Lin Tang <cltang@codesourcery.com>
2912
2913 * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
2914
2915 2016-11-23 Peter Bergner <bergner@vnet.ibm.com>
2916
2917 PR target/78458
2918 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
2919 if it is at least NREGS wide.
2920
2921 2016-11-23 Joseph Myers <joseph@codesourcery.com>
2922
2923 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
2924 TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
2925 TFmode, IFmode and KFmode.
2926
2927 2016-11-23 Joseph Myers <joseph@codesourcery.com>
2928
2929 * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
2930 pattern.
2931
2932 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
2933
2934 * combine.c (change_zero_ext): Only change the mode of a hard register
2935 destination if can_change_dest_mode holds for that.
2936
2937 2016-11-23 Jeff Law <law@redhat.com>
2938
2939 * varasm.c (assemble_name): Increase buffer size for name.
2940
2941 * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
2942
2943 2016-11-23 Jakub Kicinski <jakub.kicinski@netronome.com>
2944
2945 * doc/extend.texi: Constify first argument to __builtin_object_size.
2946
2947 2016-11-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
2948
2949 * opth-gen.awk: Use unsigned shifts for bit masks. Allow all bits
2950 to be used. Add brackets around macro argument.
2951
2952 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
2953
2954 * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
2955
2956 2016-11-23 Jakub Jelinek <jakub@redhat.com>
2957
2958 PR sanitizer/69278
2959 * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
2960 restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
2961
2962 2016-11-23 Jakub Jelinek <jakub@redhat.com>
2963
2964 PR middle-end/69183
2965 * omp-low.c (build_outer_var_ref): Change lastprivate argument
2966 to code, pass it recursively, adjust uses. For OMP_CLAUSE_PRIVATE
2967 on worksharing constructs, treat it like clauses on simd construct.
2968 Formatting fix.
2969 (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
2970 OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
2971 (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
2972 of true as last argument to build_outer_var_ref.
2973
2974 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
2975
2976 * config/i386/i386.md (*movqi_internal): Calculate mode
2977 attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
2978 <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
2979 (*k<logic><mode>): Calculate mode attribute depending on
2980 TARGET_AVX512DQ. Emit k<logic>w for MODE_HI insn mode attribute.
2981 (*andqi_1): Calculate mode attribute of alternative 3 depending
2982 on TARGET_AVX512DQ. Emit kandw for MODE_HI insn mode attribute.
2983 (kandn<mode>): Calculate mode attribute of alternative 2 depending
2984 on TARGET_AVX512DQ. Emit kandnw for MODE_HI insn mode attribute.
2985 (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
2986 iterator. Calculate mode attribute of alternative 1 depending
2987 on TARGET_AVX512DQ. Emit kxnorw for MODE_HI insn mode attribute.
2988 (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
2989 on TARGET_AVX512DQ. Emit knotw for MODE_HI insn mode attribute.
2990
2991 2016-11-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2992
2993 PR middle-end/78153
2994 * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
2995 * tree-vrp.c (extract_range_basic): Handle case for
2996 CFN_BUILT_IN_STRLEN.
2997
2998 2016-11-23 Jeff Law <law@redhat.com>
2999
3000 * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
3001
3002 * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
3003 in boolean context warning.
3004
3005 * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
3006
3007 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3008
3009 PR target/63250
3010 * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
3011 (arm_fp16_type_node): ...This, make visibile.
3012 (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
3013 arm_fp16_type_node.
3014 (arm_init_simd_builtin_types): Likewise.
3015 (arm_init_fp16_builtins): Likewise.
3016 * config/arm/arm.c (arm_excess_precision): New.
3017 (arm_floatn_mode): Likewise.
3018 (TARGET_C_EXCESS_PRECISION): Likewise.
3019 (TARGET_FLOATN_MODE): Likewise.
3020 (arm_promoted_type): Only promote arm_fp16_type_node.
3021 * config/arm/arm.h (arm_fp16_type_node): Declare.
3022
3023 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3024
3025 * config/arm/arm.c (arm_convert_to_type): Delete.
3026 (TARGET_CONVERT_TO_TYPE): Delete.
3027 (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
3028 (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
3029 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
3030 * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
3031 are in fast math mode, and have no single step hardware instruction.
3032 (extendhfdf2): Only expand through SFmode if we don't have a
3033 single-step hardware instruction.
3034 * config/arm/vfp.md (*truncdfhf2): New.
3035 (extendhfdf2): Likewise.
3036
3037 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3038
3039 * targhooks.c (default_floatn_mode): Enable _Float16 if a target
3040 provides HFmode.
3041
3042 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3043
3044 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
3045 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
3046 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
3047 * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
3048 * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
3049 * doc/tm.texi: Regenerate.
3050 * system.h (TARGET_FLT_EVAL_METHOD): Poison.
3051
3052 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3053
3054 * toplev.c (init_excess_precision): Delete most logic.
3055 * tree.c (excess_precision_type): Rewrite to use
3056 TARGET_EXCESS_PRECISION.
3057 * doc/invoke.texi (-fexcess-precision): Document behaviour in a
3058 more generic fashion.
3059 * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
3060 __STDC_WANT_IEC_60559_TYPES_EXT__.
3061
3062 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3063
3064 * common.opt (fpermitted-flt-eval-methods): New.
3065 * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
3066 * flag_types.h (permitted_flt_eval_methods): New.
3067
3068 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3069
3070 * config/m68k/m68k.c (m68k_excess_precision): New.
3071 (TARGET_C_EXCESS_PRECISION): Define.
3072
3073 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3074
3075 * config/s390/s390.c (s390_excess_precision): New.
3076 (TARGET_C_EXCESS_PRECISION): Define.
3077
3078 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3079
3080 * config/i386/i386.c (ix86_excess_precision): New.
3081 (TARGET_C_EXCESS_PRECISION): Define.
3082
3083 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3084
3085 * target.def (excess_precision): New hook.
3086 * target.h (flt_eval_method): New.
3087 (excess_precision_type): Likewise.
3088 * targhooks.c (default_excess_precision): New.
3089 * targhooks.h (default_excess_precision): New.
3090 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
3091 * doc/tm.texi: Regenerate.
3092
3093 2016-11-23 Martin Sebor <msebor@redhat.com>
3094
3095 PR middle-end/78461
3096 * gimple-ssa-sprintf.c (format_string): Correct the maxima and
3097 set the minimum number of bytes for an unknown string to zero.
3098
3099 2016-11-23 Martin Jambor <mjambor@suse.cz>
3100 Martin Liska <mliska@suse.cz>
3101
3102 * hsa-builtins.def: New file.
3103 * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
3104 * builtins.def: Include hsa-builtins.def.
3105 (DEF_HSA_BUILTIN): New macro.
3106 * dumpfile.h (OPTGROUP_OPENMP): Define.
3107 * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
3108 * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
3109 GF_OMP_FOR_GRID_GROUP_ITER.
3110 (gimple_omp_for_grid_phony): Added checking assert.
3111 (gimple_omp_for_set_grid_phony): Likewise.
3112 (gimple_omp_for_grid_intra_group): New function.
3113 (gimple_omp_for_set_grid_intra_group): Likewise.
3114 (gimple_omp_for_grid_group_iter): Likewise.
3115 (gimple_omp_for_set_grid_group_iter): Likewise.
3116 * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
3117 previosuly only distribute loop was permitted.
3118 (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
3119 (grid_get_kernel_launch_attributes): Support multiple HSA grid
3120 dimensions.
3121 (grid_expand_omp_for_loop): Likewise and also support standalone
3122 distribute constructs. New parameter INTRA_GROUP, updated both users.
3123 (grid_expand_target_grid_body): Support standalone distribute
3124 constructs.
3125 (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
3126 (pass_data_expand_omp_ssa): Likewise.
3127 (pass_data_omp_device_lower): Likewsie.
3128 (pass_data_lower_omp): Likewise.
3129 (pass_data_diagnose_omp_blocks): Likewise.
3130 (pass_data_oacc_device_lower): Likewise.
3131 (pass_data_omp_target_link): Likewise.
3132 (grid_lastprivate_predicate): New function.
3133 (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
3134 gridified loops.
3135 (lower_omp_for): Support standalone distribute constructs.
3136 (grid_prop): New type.
3137 (grid_safe_assignment_p): Check for assignments to group_sizes, new
3138 parameter GRID.
3139 (grid_seq_only_contains_local_assignments): New parameter GRID, pass
3140 it to callee.
3141 (grid_find_single_omp_among_assignments_1): Likewise, improve missed
3142 optimization info messages.
3143 (grid_find_single_omp_among_assignments): Likewise.
3144 (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
3145 (grid_parallel_clauses_gridifiable): New function.
3146 (grid_inner_loop_gridifiable_p): Likewise.
3147 (grid_dist_follows_simple_pattern): Likewise.
3148 (grid_gfor_follows_tiling_pattern): Likewise.
3149 (grid_call_permissible_in_distribute_p): Likewise.
3150 (grid_handle_call_in_distribute): Likewise.
3151 (grid_dist_follows_tiling_pattern): Likewise.
3152 (grid_target_follows_gridifiable_pattern): Support standalone
3153 distribute constructs.
3154 (grid_var_segment): New enum.
3155 (grid_mark_variable_segment): New function.
3156 (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
3157 if a new argument says so.
3158 (grid_process_grid_body): New function.
3159 (grid_eliminate_combined_simd_part): Likewise.
3160 (grid_mark_tiling_loops): Likewise.
3161 (grid_mark_tiling_parallels_and_loops): Likewise.
3162 (grid_process_kernel_body_copy): Support standalone distribute
3163 constructs.
3164 (grid_attempt_target_gridification): New grid variable holding overall
3165 gridification state. Support standalone distribute constructs and
3166 collapse clauses.
3167 * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
3168 * hsa.h (hsa_bb): Add method method append_phi.
3169 (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
3170 occurences in all files too.
3171 (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
3172 (is_a_helper <hsa_insn_br *>::test): New function.
3173 (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
3174 branch instructions.
3175 (hsa_insn_signal): Make a direct descendant of
3176 hsa_insn_basic. Add memorder constructor parameter and
3177 m_memory_order and m_signalop member variables.
3178 (hsa_insn_queue): Changed constructor parameters to common form.
3179 Added m_segment and m_memory_order member variables.
3180 (hsa_summary_t): Add private member function
3181 process_gpu_implementation_attributes.
3182 (hsa_function_summary): Rename m_binded_function to
3183 m_bound_function.
3184 (hsa_insn_basic_p): Remove typedef.
3185 (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
3186 (hsa_op_reg_p): Remove typedef.
3187 (hsa_function_representation): Change hsa_op_reg_p into plain
3188 pointers.
3189 (hsa_insn_phi): Removed new and delete operators.
3190 (hsa_insn_br): Likewise.
3191 (hsa_insn_cbr): Likewise.
3192 (hsa_insn_sbr): Likewise.
3193 (hsa_insn_cmp): Likewise.
3194 (hsa_insn_mem): Likewise.
3195 (hsa_insn_atomic): Likewise.
3196 (hsa_insn_signal): Likewise.
3197 (hsa_insn_seg): Likewise.
3198 (hsa_insn_call): Likewise.
3199 (hsa_insn_arg_block): Likewise.
3200 (hsa_insn_comment): Likewise.
3201 (hsa_insn_srctype): Likewise.
3202 (hsa_insn_packed): Likewise.
3203 (hsa_insn_cvt): Likewise.
3204 (hsa_insn_alloca): Likewise.
3205 * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
3206 (process_gpu_implementation_attributes): New function.
3207 (link_functions): Move some functionality into it. Adjust after
3208 renaming m_binded_functions to m_bound_functions.
3209 (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
3210 to the list of instructions with no output registers.
3211 (get_in_type): Return this if it is a register of
3212 matching size.
3213 (hsa_get_declaration_name): Moved to...
3214 * hsa-gen.c (hsa_get_declaration_name): ...here. Allocate
3215 temporary string on an obstack instead from ggc.
3216 (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
3217 down to two overloads.
3218 (hsa_allocp_operand_address): Removed.
3219 (hsa_allocp_operand_immed): Likewise.
3220 (hsa_allocp_operand_reg): Likewise.
3221 (hsa_allocp_operand_code_list): Likewise.
3222 (hsa_allocp_operand_operand_list): Likewise.
3223 (hsa_allocp_inst_basic): Likewise.
3224 (hsa_allocp_inst_phi): Likewise.
3225 (hsa_allocp_inst_mem): Likewise.
3226 (hsa_allocp_inst_atomic): Likewise.
3227 (hsa_allocp_inst_signal): Likewise.
3228 (hsa_allocp_inst_seg): Likewise.
3229 (hsa_allocp_inst_cmp): Likewise.
3230 (hsa_allocp_inst_br): Likewise.
3231 (hsa_allocp_inst_sbr): Likewise.
3232 (hsa_allocp_inst_call): Likewise.
3233 (hsa_allocp_inst_arg_block): Likewise.
3234 (hsa_allocp_inst_comment): Likewise.
3235 (hsa_allocp_inst_queue): Likewise.
3236 (hsa_allocp_inst_srctype): Likewise.
3237 (hsa_allocp_inst_packed): Likewise.
3238 (hsa_allocp_inst_cvt): Likewise.
3239 (hsa_allocp_inst_alloca): Likewise.
3240 (hsa_allocp_bb): Likewise.
3241 (hsa_obstack): New.
3242 (hsa_init_data_for_cfun): Initialize obstack.
3243 (hsa_deinit_data_for_cfun): Release memory of the obstack.
3244 (hsa_op_immed::operator new): Use obstack instead of object_allocator.
3245 (hsa_op_reg::operator new): Likewise.
3246 (hsa_op_address::operator new): Likewise.
3247 (hsa_op_code_list::operator new): Likewise.
3248 (hsa_op_operand_list::operator new): Likewise.
3249 (hsa_insn_basic::operator new): Likewise.
3250 (hsa_insn_phi::operator new): Likewise.
3251 (hsa_insn_br::operator new): Likewise.
3252 (hsa_insn_sbr::operator new): Likewise.
3253 (hsa_insn_cmp::operator new): Likewise.
3254 (hsa_insn_mem::operator new): Likewise.
3255 (hsa_insn_atomic::operator new): Likewise.
3256 (hsa_insn_signal::operator new): Likewise.
3257 (hsa_insn_seg::operator new): Likewise.
3258 (hsa_insn_call::operator new): Likewise.
3259 (hsa_insn_arg_block::operator new): Likewise.
3260 (hsa_insn_comment::operator new): Likewise.
3261 (hsa_insn_srctype::operator new): Likewise.
3262 (hsa_insn_packed::operator new): Likewise.
3263 (hsa_insn_cvt::operator new): Likewise.
3264 (hsa_insn_alloca::operator new): Likewise.
3265 (hsa_init_new_bb): Likewise.
3266 (hsa_bb::append_phi): New function.
3267 (gen_hsa_phi_from_gimple_phi): Use it.
3268 (get_symbol_for_decl): Fix dinstinguishing between
3269 global and local functions. Put local variables into a segment
3270 according to their attribute or static flag, if there is one.
3271 (hsa_insn_br::hsa_insn_br): New.
3272 (hsa_insn_br::operator new): Likewise.
3273 (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
3274 (query_hsa_grid_nodim): New function.
3275 (multiply_grid_dim_characteristics): Likewise.
3276 (gen_get_num_threads): Likewise.
3277 (gen_get_num_teams): Reimplemented.
3278 (gen_get_team_num): Likewise.
3279 (gen_hsa_insns_for_known_library_call): Updated calls to the above
3280 helper functions.
3281 (get_memory_order_name): Removed.
3282 (get_memory_order): Likewise.
3283 (hsa_memorder_from_tree): New function.
3284 (gen_hsa_ternary_atomic_for_builtin): Renamed to
3285 gen_hsa_atomic_for_builtin, can also create signals.
3286 (gen_hsa_insns_for_call): Handle many new builtins. Adjust to use
3287 hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
3288 (hsa_insn_atomic): Fix function comment.
3289 (hsa_insn_signal::hsa_insn_signal): Fix comment. Update call to
3290 ancestor constructor and initialization of new member variables.
3291 (hsa_insn_queue::hsa_insn_queue): Added initialization of new
3292 member variables.
3293 (hsa_get_host_function): Handle functions with no bound CPU
3294 implementation. Fix binded to bound.
3295 (get_brig_function_name): Likewise.
3296 (HSA_SORRY_ATV): Remove semicolon after macro.
3297 (HSA_SORRY_AT): Likewise.
3298 (omp_simple_builtin::generate): Add missing semicolons.
3299 (hsa_insn_phi::operator new): Removed.
3300 (hsa_insn_br::operator new): Likewise.
3301 (hsa_insn_cbr::operator new): Likewise.
3302 (hsa_insn_sbr::operator new): Likewise.
3303 (hsa_insn_cmp::operator new): Likewise.
3304 (hsa_insn_mem::operator new): Likewise.
3305 (hsa_insn_atomic::operator new): Likewise.
3306 (hsa_insn_signal::operator new): Likewise.
3307 (hsa_insn_seg::operator new): Likewise.
3308 (hsa_insn_call::operator new): Likewise.
3309 (hsa_insn_arg_block::operator new): Likewise.
3310 (hsa_insn_comment::operator new): Likewise.
3311 (hsa_insn_srctype::operator new): Likewise.
3312 (hsa_insn_packed::operator new): Likewise.
3313 (hsa_insn_cvt::operator new): Likewise.
3314 (hsa_insn_alloca::operator new): Likewise.
3315 (get_symbol_for_decl): Accept CONST_DECLs, put them to
3316 readonly segment.
3317 (gen_hsa_addr): Also process CONST_DECLs.
3318 (gen_hsa_addr_insns): Process CONST_DECLs by creating private
3319 copies.
3320 (gen_hsa_unary_operation): Make sure the function does
3321 not use bittype source type for firstbit and lastbit operations.
3322 (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
3323 source type.
3324 * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
3325 instruction.
3326 (emit_branch_insn): Renamed to emit_cond_branch_insn.
3327 Emit the width stored in the class.
3328 (emit_generic_branch_insn): New function.
3329 (emit_insn): Call emit_generic_branch_insn.
3330 (emit_signal_insn): Remove obsolete comment. Update
3331 member variable name, pick a type according to profile.
3332 (emit_alloca_insn): Remove obsolete comment.
3333 (emit_atomic_insn): Likewise.
3334 (emit_queue_insn): Get segment and memory order from the IR object.
3335 (hsa_brig_section): Make allocate_new_chunk, chunks
3336 and cur_chunk provate, add a default NULL parameter to add method.
3337 (hsa_brig_section::add): Added a new parameter, store pointer to
3338 output data there if it is non-NULL.
3339 (emit_function_directives): Use this new parameter instead of
3340 calculating the pointer itself, fix function comment.
3341 (hsa_brig_emit_function): Add forgotten endian conversion.
3342 (hsa_output_kernels): Remove unnecessary building of
3343 kernel_dependencies_vector_type.
3344 (emit_immediate_operand): Declare.
3345 (emit_directive_variable): Also emit initializers of CONST_DECLs.
3346 (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
3347 (verify_function_arguments): Properly detect variadic
3348 arguments.
3349 * hsa-dump.c (hsa_width_specifier_name): New function.
3350 (dump_hsa_insn_1): Dump generic branch instructions, update signal
3351 member variable name. Special dumping for queue objects.
3352 * ipa-hsa.c (process_hsa_functions): Adjust after renaming
3353 m_binded_functions to m_bound_functions. Copy externally visible flag
3354 to the node.
3355 (ipa_hsa_write_summary): Likewise.
3356 (ipa_hsa_read_section): Likewise.
3357
3358 2016-11-23 Richard Biener <rguenther@suse.de>
3359
3360 PR tree-optimization/78396
3361 * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
3362 vectorize try vectorizing an if-converted body using BB vectorization.
3363
3364 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
3365 Alan Hayward <alan.hayward@arm.com>
3366 David Sherwood <david.sherwood@arm.com>
3367
3368 * rtlanal.c (subreg_get_info): Use more local variables.
3369 Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
3370 occupies at least one register. Assume that full hard registers
3371 have consistent endianness. Share previously-duplicated if block.
3372 Rework the main handling so that it operates on independently-
3373 addressable YMODE-sized blocks. Use subreg_size_lowpart_offset
3374 to check lowpart offsets, without trying to find an equivalent
3375 integer mode first. Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
3376 as a final register-endianness correction.
3377
3378 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
3379
3380 PR target/77881
3381 PR bootstrap/78390
3382 PR target/78438
3383 PR bootstrap/78477
3384 * combine.c (make_compound_operation_int): Do not convert a subreg of
3385 a non-constant logical shift right to a zero_extract. Handle the case
3386 where some zero bits have been shifted into the range covered by that
3387 subreg.
3388
3389 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
3390 Alan Hayward <alan.hayward@arm.com>
3391 David Sherwood <david.sherwood@arm.com>
3392
3393 * rtl.h (subreg_size_offset_from_lsb): Declare.
3394 (subreg_offset_from_lsb): New function.
3395 (subreg_size_lowpart_offset): Declare.
3396 (subreg_lowpart_offset): Turn into an inline function.
3397 (subreg_size_highpart_offset): Declare.
3398 (subreg_highpart_offset): Turn into an inline function.
3399 * emit-rtl.c (subreg_size_lowpart_offset): New function.
3400 (subreg_size_highpart_offset): Likewise
3401 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
3402
3403 2016-11-23 Richard Biener <rguenther@suse.de>
3404
3405 PR tree-optimization/78482
3406 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
3407 (remove_forwarder_block_with_phi): When merging with a loop
3408 header creates a new latch reset number of iteration information
3409 of the loop.
3410
3411 2016-11-23 Eric Botcazou <ebotcazou@adacore.com>
3412
3413 * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
3414 (*ashrsi3_extend0): ...this. Accept constant integers.
3415 (*ashrsi3_extend2): Rename to...
3416 (*ashrsi3_extend1): ...this.
3417 (*ashrsi3_extend2): New pattern.
3418 (*lshrsi3_extend1): Accept constant integers.
3419 (*lshrsi3_extend2): Fix condition on operand 2.
3420
3421 2016-11-23 Martin Liska <mliska@suse.cz>
3422
3423 * config/i386/i386.c: Initialize function pointer to NULL.
3424
3425 2016-11-23 Bin Cheng <bin.cheng@arm.com>
3426
3427 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
3428 for A == C1 ? A : C2 to below.
3429 * match.pd: Move from above to here:
3430 (cond (eq (convert1? x) c1) (convert2? x) c2)
3431 -> (cond (eq x c1) c1 c2).
3432
3433 2016-11-23 Bin Cheng <bin.cheng@arm.com>
3434
3435 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
3436 for A cmp C1 ? A : C2 to below, also simplify remaining code.
3437 * match.pd: Move and extend simplification from above to here:
3438 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
3439 * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
3440 (predicate_scalar_phi): Call fold_stmt using the new valueize func.
3441
3442 2016-11-23 Martin Liska <mliska@suse.cz>
3443 Martin Jambor <mjambor@suse.cz>
3444
3445 * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
3446
3447 2016-11-23 Aldy Hernandez <aldyh@redhat.com>
3448
3449 PR target/78213
3450 * opts.c (finish_options): Set -fsyntax-only if running self tests.
3451
3452 2016-11-23 Richard Biener <rguenther@suse.de>
3453
3454 PR middle-end/71762
3455 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
3456 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
3457
3458 2016-11-23 Richard Biener <rguenther@suse.de>
3459
3460 PR lto/78472
3461 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
3462 fields.
3463
3464 2016-11-23 Richard Biener <rguenther@suse.de>
3465 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
3466
3467 PR tree-optimization/78154
3468 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
3469 returns it's argument and the argument is nonnull.
3470 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
3471 ATT_RETNONNULL_NOTHROW_LEAF.
3472 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
3473 ATTR_RETNONNULL_NOTHROW_LEAF.
3474 (BUILT_IN_STPCPY): Likewise.
3475 (BUILT_IN_STPNCPY): Likewise.
3476 (BUILT_IN_MEMPCPY_CHK): Likewise.
3477 (BUILT_IN_STPCPY_CHK): Likewise.
3478 (BUILT_IN_STPNCPY_CHK): Likewise.
3479 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
3480 (BUILT_IN_STRNCAT): Likewise.
3481 (BUILT_IN_STRNCPY): Likewise.
3482 (BUILT_IN_MEMSET_CHK): Likewise.
3483 (BUILT_IN_STRCAT_CHK): Likewise.
3484 (BUILT_IN_STRCPY_CHK): Likewise.
3485 (BUILT_IN_STRNCAT_CHK): Likewise.
3486 (BUILT_IN_STRNCPY_CHK): Likewise.
3487
3488 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3489
3490 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
3491 * fold-const.h (tree_expr_nonzero_p) : Declare.
3492 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
3493
3494 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
3495
3496 * system.h (HAVE_DESIGNATED_INITIALIZERS,
3497 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
3498 "defined" in macros.
3499 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
3500 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
3501 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
3502
3503 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
3504
3505 PR target/60300
3506 * config/avr/constraints.md (Csp): Widen range to [-11..6].
3507 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
3508 of RCALLs in prologue to 3.
3509
3510 2016-11-22 Michael Collison <michael.collison@arm.com>
3511
3512 * config/aarch64/aarch64-protos.h
3513 (aarch64_and_split_imm1, aarch64_and_split_imm2)
3514 (aarch64_and_bitmask_imm): New prototypes
3515 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
3516 New overloaded function to create bit mask covering the
3517 lowest to highest bits set.
3518 (aarch64_and_split_imm2): New overloaded functions to create bit
3519 mask of zeros between first and last bit set.
3520 (aarch64_and_bitmask_imm): New function to determine if a integer
3521 is a valid two instruction "and" operation.
3522 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
3523 allowing wider range of constants with "and" operations.
3524 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
3525 "and" operator from matching restricted constant range used for
3526 ior and xor operators.
3527 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
3528 for constants in "and" operantions.
3529 (UsP constraint): New DImode constraint for constants
3530 in "and" operations.
3531 * config/aarch64/iterators.md (lconst2): New mode iterator.
3532 (LOGICAL2): New code iterator.
3533 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
3534 predicate.
3535 (aarch64_logical_and_operand): New predicate allowing extended
3536 constants for "and" operations.
3537
3538 2016-11-22 Walter Lee <walt@tilera.com>
3539
3540 * config/tilegx/tilegx.md (trap): New pattern.
3541 * config/tilepro/tilepro.md (trap): Likewise.
3542
3543 2016-11-22 Walter Lee <walt@tilera.com>
3544
3545 * config/tilegx/tilegx.md (*zero_extract): Use
3546 define_insn_and_split instead of define_insn; Handle pos + size >
3547 64.
3548 (*sign_extract): Likewise.
3549
3550 2016-11-22 Marek Polacek <polacek@redhat.com>
3551
3552 PR tree-optimization/78455
3553 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
3554
3555 2016-11-22 Ian Lance Taylor <iant@golang.org>
3556
3557 PR go/78431
3558 PR go/78432
3559 * godump.c (go_format_type): Always pass alignment as 1 when
3560 calling go_append_padding at end of struct/union.
3561
3562 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3563
3564 PR target/78451
3565 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
3566 _mm512_setzero_hi): Removed.
3567 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
3568 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
3569 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
3570 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
3571 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
3572 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
3573 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
3574 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
3575 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
3576 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
3577 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
3578 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
3579 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
3580 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
3581 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
3582 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
3583 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
3584 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
3585 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
3586 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
3587 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
3588 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
3589 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
3590 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
3591 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
3592 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
3593 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
3594 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
3595 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
3596 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
3597 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
3598 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
3599 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
3600 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
3601 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
3602 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
3603 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
3604 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
3605 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
3606 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
3607 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
3608 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
3609 _mm512_setzero_qi or _mm512_setzero_hi.
3610 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
3611 _mm512_maskz_dbsad_epu8): Formatting fixes.
3612 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
3613 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
3614 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
3615 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
3616 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
3617 _mm512_setzero_qi or _mm512_setzero_hi.
3618
3619 2016-11-22 Nathan Sidwell <nathan@acm.org>
3620
3621 * gcc-ar.c (main): Fix indentation.
3622 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
3623 * ggc-page.c (move_ptes_to_front): Fix formatting.
3624 * hsa-dump.c (dump_has_cfun): Fix indentation.
3625 * sel-sched-ir.h: Remove trailing blank lines.
3626
3627 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3628 Alexander Monakov <amonakov@ispras.ru>
3629
3630 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
3631 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
3632 (omp_clause_code_name): Add _simt_ name.
3633 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
3634 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
3635 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
3636 (scan_omp_simd): New function.
3637 (scan_omp_1_stmt): Use it in target regions if needed.
3638 (omp_max_vf): Don't max with omp_max_simt_vf.
3639 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
3640 OMP_CLAUSE__SIMT_ is present.
3641 (lower_rec_input_clauses): Compute maybe_simt from presence of
3642 OMP_CLAUSE__SIMT_.
3643 (lower_lastprivate_clauses): Likewise.
3644 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
3645 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
3646 * internal-fn.def (GOMP_USE_SIMT): New internal function.
3647 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
3648
3649 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
3650
3651 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
3652 (expand_GOMP_SIMT_VF): New.
3653 (expand_GOMP_SIMT_LAST_LANE): New.
3654 (expand_GOMP_SIMT_ORDERED_PRED): New.
3655 (expand_GOMP_SIMT_VOTE_ANY): New.
3656 (expand_GOMP_SIMT_XCHG_BFLY): New.
3657 (expand_GOMP_SIMT_XCHG_IDX): New.
3658 * internal-fn.def (GOMP_SIMT_LANE): New.
3659 (GOMP_SIMT_VF): New.
3660 (GOMP_SIMT_LAST_LANE): New.
3661 (GOMP_SIMT_ORDERED_PRED): New.
3662 (GOMP_SIMT_VOTE_ANY): New.
3663 (GOMP_SIMT_XCHG_BFLY): New.
3664 (GOMP_SIMT_XCHG_IDX): New.
3665 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
3666 (create_omp_child_function): ...here. Set "omp target entrypoint"
3667 or "omp declare target" attribute based on is_gimple_omp_offloaded.
3668 (omp_max_simt_vf): New. Use it...
3669 (omp_max_vf): ...here.
3670 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
3671 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
3672 (lower_omp_ordered): Likewise, for "ordered" lowering.
3673 (expand_omp_simd): Add SIMT transforms.
3674 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
3675 (execute_omp_device_lower): New.
3676 (pass_data_omp_device_lower): New.
3677 (pass_omp_device_lower): New pass.
3678 (make_pass_omp_device_lower): New.
3679 * passes.def (pass_omp_device_lower): Position new pass.
3680 * tree-pass.h (PROP_gimple_lomp_dev): Define.
3681 (make_pass_omp_device_lower): Declare.
3682
3683 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3684
3685 PR target/78451
3686 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
3687 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
3688 _mm_setzero_di.
3689 (_mm_maskz_load_epi64): Likewise.
3690 (_mm_setzero_hi): Removed.
3691 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
3692 _mm_setzero_di.
3693 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
3694 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
3695 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
3696 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
3697 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
3698 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
3699 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
3700 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
3701 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
3702 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
3703 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
3704 Likewise.
3705 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
3706 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
3707 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
3708 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
3709 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
3710 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
3711 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
3712 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
3713 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
3714 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
3715 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
3716 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
3717 instead of _mm_setzero_hi.
3718 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
3719 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
3720 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
3721 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
3722 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
3723 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
3724 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
3725 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
3726 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
3727 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
3728 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
3729 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
3730 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
3731 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
3732 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
3733 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
3734 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
3735 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
3736 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
3737 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
3738 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
3739 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
3740 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
3741 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
3742 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
3743 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
3744 _mm_setzero_di.
3745 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
3746 instead of _mm_setzero_hi.
3747 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
3748 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
3749 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
3750 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
3751 _mm_setzero_si128 instead of _mm_setzero_di.
3752 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
3753 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
3754 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
3755 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
3756 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
3757 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
3758 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
3759 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
3760 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
3761 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
3762 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
3763 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
3764 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
3765 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
3766 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
3767 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
3768 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
3769 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
3770 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
3771 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
3772 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
3773 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
3774 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
3775 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
3776 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
3777 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
3778 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
3779 _mm512_maskz_insertf32x8): Formatting fixes.
3780 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
3781 _mm_setzero_si128 instead of _mm_setzero_di.
3782 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
3783 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
3784 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
3785 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
3786 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
3787 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
3788 _mm_setzero_si128 instead of _mm_setzero_di.
3789 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
3790 Likewise in macros.
3791 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
3792 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
3793 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
3794 _mm_setzero_si128 instead of _mm_setzero_hi.
3795 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
3796 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
3797 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
3798 instead of _mm_setzero_di.
3799 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
3800 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
3801 _mm_setzero_hi.
3802 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
3803 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
3804 _mm_setzero_hi.
3805 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
3806 _mm_setzero_di.
3807 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
3808 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
3809 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
3810
3811 2016-11-22 Carl Love <cel@us.ibm.com>
3812
3813 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
3814 equal and vector compare not equal. The vector compares take two
3815 arguments of type vector bool char, vector bool short, vector bool int,
3816 vector bool long long with the same return type.
3817 * doc/extend.texi: Update built-in documentation file for the new
3818 powerpc built-ins.
3819
3820 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
3821
3822 * Makefile.in ($(lang_checks_parallelized)): Fix detection
3823 of -j argument.
3824
3825 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
3826
3827 * config.gcc: Allow new rmprofile value for configure option
3828 --with-multilib-list.
3829 * config/arm/t-rmprofile: New file.
3830 * doc/install.texi (--with-multilib-list): Document new rmprofile value
3831 for ARM.
3832
3833 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3834
3835 PR target/78439
3836 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
3837 register operand in alternatives 4,5,6.
3838
3839 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
3840
3841 PR target/77904
3842 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
3843 in save register mask if it is needed.
3844
3845 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3846
3847 PR tree-optimization/78436
3848 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
3849 (shift_bytes_in_array, shift_bytes_in_array_right,
3850 merged_store_group::apply_stores): Formatting fixes.
3851 (clear_bit_region): Likewise. Use memset.
3852 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
3853 instead of EXPR and inerted instead of inserted. Use memset instead
3854 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
3855 if shift_amnt is 0.
3856
3857 PR middle-end/78416
3858 * expmed.c (expand_divmod): Use wide_int for computation of
3859 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
3860 Use size <= HOST_BITS_PER_WIDE_INT instead of
3861 HOST_BITS_PER_WIDE_INT >= size.
3862
3863 PR tree-optimization/78445
3864 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
3865 any_complicated_phi, version loop even if flag_tree_loop_if_convert
3866 is 1. Formatting fix.
3867
3868 2016-11-22 Martin Liska <mliska@suse.cz>
3869
3870 PR ipa/78309
3871 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
3872 (sem_function::get_hash): Use the new field.
3873 (sem_function::parse): Remove an argument from ctor.
3874 (sem_variable::parse): Likewise.
3875 (sem_variable::get_hash): Use the new field.
3876 (sem_item_optimizer::read_section): Use new ctor and set hash.
3877 * ipa-icf.h: _hash is removed from sem_item::sem_item,
3878 sem_variable::sem_variable, sem_function::sem_function.
3879
3880 2016-11-21 Jeff Law <law@redhat.com>
3881
3882 PR target/68538
3883 * config/cris/cris.md: Don't call copy_to_mode_reg unless
3884 can_create_pseudo_p is true.
3885
3886 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
3887
3888 PR target/68803
3889 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
3890 *rotldi3_insert_7): New define_insns.
3891
3892 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3893
3894 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
3895 so that DImode can be allocated to FP/vector registers in more
3896 cases, and we can avoid direct move operations. If the register
3897 needs reloading, prefer GPRs over FP/vector registers. In the
3898 case of FPR vs. Altivec registers, prefer FPR registers unless we
3899 have the ISA 3.0 reg+offset scalar instructions.
3900 (movdi_internal64): Likewise.
3901
3902 2016-11-21 Jakub Jelinek <jakub@redhat.com>
3903
3904 PR middle-end/67335
3905 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
3906 for tmp simd array if DECL_NAME (parm) is NULL.
3907
3908 2016-11-20 Jeff Law <law@redhat.com>
3909
3910 PR target/25128
3911 * config/m68k/predicates.md (swap_peephole_relational_operator): New
3912 predicate.
3913 * config/m68k/m68k.md (relational tests against 65535/65536): New
3914 peephole2.
3915
3916 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3917
3918 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
3919
3920 2016-11-21 Martin Sebor <msebor@redhat.com>
3921
3922 * doc/invoke.texi (-fprintf-return-value): Document that option
3923 is enabled by default.
3924
3925 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
3926
3927 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
3928 for-loop declaration of loop variable.
3929 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
3930 * config/avr/avr.c (avr_popcount_each_byte)
3931 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
3932 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
3933 (avr_expand_epilogue, avr_function_arg_advance)
3934 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
3935 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
3936 (avr_adjust_reg_alloc_order, output_reload_in_const)
3937 (avr_conditional_register_usage, avr_find_unused_d_reg)
3938 (avr_map_decompose, avr_fold_builtin): Same.
3939
3940 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
3941
3942 * config/avr/avr.c (avr_popcount): Remove static function.
3943 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
3944
3945 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
3946
3947 * arm.opt (mapcs-float): Delete option.
3948 * arm.c (arm_option_override): Remove hunk relating to
3949 TARGET_APCS_FLOAT.
3950 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
3951
3952 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
3953
3954 * tree-tailcall.c (process_assignment): Simplify the check for
3955 a valid copy, allowing the source to be a local variable as
3956 well as an SSA name.
3957 (find_tail_calls): Allow copies between local variables to follow
3958 the call. Allow the result to be stored in any local variable,
3959 even if it's an aggregate.
3960 (eliminate_tail_call): Check whether the result is an SSA name
3961 before updating its SSA_NAME_DEF_STMT.
3962
3963 2016-11-21 David Malcolm <dmalcolm@redhat.com>
3964
3965 PR preprocessor/78324
3966 * input.c (get_substring_ranges_for_loc): Fail gracefully if
3967 -ftrack-macro-expansion has a value other than 2.
3968
3969 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
3970
3971 PR rtl-optimization/78400
3972 * shrink-wrap.c (try_shrink_wrapping_separate): Call
3973 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
3974 and df_update_exit_block_uses.
3975
3976 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3977
3978 PR c++/71973
3979 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
3980 new default-enabled warning..
3981 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
3982 (BT_PTR_CONST_STRING): Updated.
3983 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
3984 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
3985 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
3986 (strftime): Update builtin function.
3987 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
3988 * tree.h (const_tm_ptr_type_node): New type node.
3989 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
3990 const_tm_ptr_type_node.
3991
3992 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3993
3994 PR tree-optimization/78413
3995 * tree-if-conv.c (versionable_outer_loop_p): Require that both
3996 inner and outer loop latches have single predecessors.
3997
3998 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
3999
4000 PR target/78093
4001 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
4002 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
4003
4004 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4005
4006 * rtl.h: Adjust prototype.
4007 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
4008 (dead_or_set_regno_p): Likewise.
4009
4010 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4011
4012 * rtl.h: Adjust prototype.
4013 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
4014
4015 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4016
4017 * function.c (contains): Change argument type to rtx_insn *.
4018 (prologue_contains): Likewise.
4019 (epilogue_contains): Likewise.
4020 (prologue_epilogue_contains): Likewise.
4021 * function.h: Adjust prototype.
4022
4023 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4024
4025 * optabs.c (emit_libcall_block): Change argument type to
4026 rtx_insn *.
4027 * optabs.h: Adjust prototype.
4028
4029 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4030
4031 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
4032 (fixup_reorder_chain): Adjust.
4033 * cfgrtl.h: Adjust prototype.
4034
4035 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4036
4037 * rtl.h: Adjust prototype.
4038 * rtlanal.c (replace_label_in_insn): Change argument type to
4039 rtx_insn *.
4040
4041 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4042
4043 * config/v850/v850.c (expand_prologue): Adjust.
4044 (expand_epilogue): Likewise.
4045 * expr.c (init_expr_target): Likewise.
4046 * genrecog.c (print_subroutine): Always make the argument type
4047 rtx_insn *.
4048 * recog.h: Adjust prototype.
4049
4050 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4051
4052 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
4053 up variables to make some rtx_insn *.
4054 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
4055 * config/arc/arc.c: Likewise.
4056 * config/arm/arm.c: Likewise.
4057 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
4058 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
4059 Likewise.
4060 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
4061
4062 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4063
4064 * config/arm/arm.c (legitimize_pic_address): Change to use
4065 rtx_insn * as the type of variables.
4066 (arm_pic_static_addr): Likewise.
4067 (arm_emit_movpair): Likewise.
4068 * config/c6x/c6x.c (reorg_split_calls): Likewise.
4069 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
4070 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
4071 * config/frv/frv.md: Likewise.
4072 * config/i386/i386-protos.h: Likewise.
4073 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
4074 (ix86_split_fp_branch): Likewise.
4075 (predict_jump): Likewise.
4076 * config/ia64/ia64.c: Likewise.
4077 * config/mcore/mcore.c: Likewise.
4078 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
4079 * config/s390/s390.c: Likewise.
4080 * config/s390/s390.md: Likewise.
4081 * config/spu/spu.md: Likewise.
4082 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
4083 * lower-subreg.c (resolve_simple_move): Likewise.
4084
4085 2016-11-20 Jeff Law <law@redhat.com>
4086
4087 PR target/48551
4088 * reload.h (struct target_reload): Make x_double_reg_address_ok
4089 be per-mode rather.
4090 * reload.c (find_reloads_address): Check if double_reg_address_ok
4091 is true for the mode of the memory reference.
4092 * reload1.c (init_reload): Initialize double_reg_address_ok for
4093 each mode.
4094
4095 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
4096
4097 PR middle-end/61409
4098 * tree-ssa-uninit.c: Define new global max_phi_args.
4099 (compute_uninit_opnds_pos): Use max_phi_args.
4100 (prune_uninit_phi_opnds): Same.
4101 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
4102 missing NUM_PREDS in function comment.
4103 (can_one_predicate_be_invalidated_p): New.
4104 (can_chain_union_be_invalidated_p): New.
4105 (flatten_out_predicate_chains): New.
4106 (uninit_ops_invalidate_phi_use): New.
4107 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
4108
4109 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
4110
4111 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
4112 * match.pd (A /[ex] B CMP C): New simplifications.
4113
4114 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
4115
4116 * match.pd (0 / X, X / X, X % X): New simplifications.
4117
4118 2016-11-19 Jakub Jelinek <jakub@redhat.com>
4119
4120 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
4121 when checking if callee's isa flags are subset of caller's isa flags.
4122 Fix comment wording.
4123
4124 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
4125 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
4126 instead and using = 0 instead of &= 0.
4127
4128 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
4129 ix86_add_new_builtins): Formatting fixes.
4130 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
4131 (ix86_get_builtin): Likewise.
4132
4133 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
4134 don't initialize it, don't use it for the case where it isn't
4135 provable %{z} nor using the same argument, instead move merge
4136 argument into a new pseudo and use that as target. Formatting fixes.
4137
4138 2016-11-19 Jeff Law <law@redhat.com>
4139
4140 PR target/25111
4141 * config/m68k/m68k.md (bsetdreg): New pattern.
4142 (bchgdreg, bclrdreg): Likewise.
4143
4144 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
4145
4146 PR target/78426
4147 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
4148 instead of force_reg.
4149 (sh_expand_setmem): Likewise.
4150
4151 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
4152
4153 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
4154
4155 2016-11-18 Walter Lee <walt@tilera.com>
4156
4157 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
4158 end-of-bundle marker for consecutive barriers.
4159
4160 2016-11-18 Walter Lee <walt@tilera.com>
4161
4162 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
4163
4164 2016-11-18 Jakub Jelinek <jakub@redhat.com>
4165
4166 PR middle-end/78419
4167 * multiple_target.c (get_attr_len): Start with argnum and increment
4168 argnum on every arg. Use strchr in a loop instead of counting commas
4169 manually.
4170 (get_attr_str): Increment argnum for every comma in the string.
4171 (separate_attrs): Use for instead of while loop, simplify.
4172 (expand_target_clones): Rename defenition argument to definition.
4173 Free attrs and attr_str even when diagnosing errors. Temporarily
4174 change input_location around targetm.target_option.valid_attribute_p
4175 calls. Don't emit warning or errors if that function fails.
4176
4177 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
4178
4179 PR debug/78191
4180 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
4181 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
4182 abbrev_opt_base_type_end only by increasing die_abbrev, before
4183 any other dies.
4184 (optimize_abbrev_table): Don't change abbrev numbers of
4185 base types and CU or optimize implicit consts in them if
4186 calc_base_type_die_sizes has been called during build_abbrev_table.
4187 (calc_base_type_die_sizes): If abbrev_opt_start, set
4188 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
4189
4190 2016-11-18 Jeff Law <law@redhat.com>
4191
4192 PR target/25112
4193 * config/m68k/m68k.c (moveq feeding equality comparison): New
4194 peepholes.
4195 * config/m68k/predicates.md (addq_subq_operand): New predicate.
4196 (equality_comparison_operator): Likewise.
4197
4198 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4199
4200 * rtlanal.c (load_extend_op): Move to...
4201 * rtl.h: ...here and make inline.
4202
4203 2016-11-18 Terry Guo <terry.guo@arm.com>
4204 Thomas Preud'homme <thomas.preudhomme@arm.com>
4205
4206 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
4207 * config/arm/arm-opts.h: Include arm-flags.h.
4208 (struct arm_arch_core_flag): Define.
4209 (arm_arch_core_flags): Define.
4210 * config/arm/arm-protos.h: Include arm-flags.h
4211 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
4212 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
4213 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
4214 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
4215 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
4216 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
4217 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
4218 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
4219 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
4220 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
4221 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
4222 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
4223 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
4224 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
4225 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
4226 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
4227 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
4228 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
4229 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
4230 ARM_FSET_CPU_SUBSET): Move to ...
4231 * config/arm/arm-flags.h: This new file.
4232 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
4233 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
4234 (TARGET_MODE_SPECS): Define.
4235 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
4236
4237 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
4238
4239 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
4240 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
4241 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
4242 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
4243 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
4244 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
4245 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
4246 missing and make value unsigned.
4247 (arm_feature_set): Use unsigned entries instead of unsigned long.
4248
4249 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
4250
4251 Re-apply after PR bootstrap/77359 is fixed:
4252 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4253
4254 * explow.c (get_dynamic_stack_size): Take known alignment of stack
4255 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
4256 size needed.
4257
4258 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
4259
4260 PR bootstrap/77359
4261 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
4262 variables in functions calling alloca. Also update the ASCII
4263 drawings.
4264 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
4265 (STACK_DYNAMIC_OFFSET): Likewise.
4266 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
4267 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
4268 macros to aix.h.
4269
4270 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4271 Alan Hayward <alan.hayward@arm.com>
4272 David Sherwood <david.sherwood@arm.com>
4273
4274 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
4275 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
4276 (add_const_value_attribute): Likewise.
4277 * explow.c (plus_constant): Likewise.
4278 * expmed.c (expand_mult, make_tree): Likewise.
4279 * expr.c (convert_modes): Likewise.
4280 * loop-doloop.c (doloop_optimize): Likewise.
4281 * postreload.c (reload_cse_simplify_set): Likewise.
4282 * simplify-rtx.c (simplify_const_unary_operation): Likewise
4283 (simplify_binary_operation_1, simplify_const_binary_operation):
4284 Likewise.
4285 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
4286 * wide-int.h: Update documentation to recommend rtx_mode_t
4287 instead of std::make_pair.
4288
4289 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4290 Alan Hayward <alan.hayward@arm.com>
4291 David Sherwood <david.sherwood@arm.com>
4292
4293 * tree.h (SET_DECL_MODE): New macro.
4294 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
4295 (expand_gimple_basic_block): Likewise.
4296 * function.c (split_complex_args): Likeise.
4297 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4298 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
4299 * stor-layout.c (layout_decl, relayout_decl): Likewise.
4300 (finish_bitfield_representative): Likewise.
4301 * tree.c (make_node_stat): Likewise.
4302 * tree-inline.c (remap_ssa_name): Likewise.
4303 (tree_function_versioning): Likewise.
4304 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
4305 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
4306 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
4307 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
4308 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
4309 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
4310 * varasm.c (make_debug_expr_from_rtl): Likewise.
4311
4312 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
4313
4314 PR rtl-optimization/71785
4315 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
4316 (duplicate_computed_gotos): New function.
4317 (pass_duplicate_computed_gotos::execute): Rewrite.
4318
4319 2016-11-17 Jeff Law <law@redhat.com>
4320
4321 PR target/47192
4322 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
4323 barrier prior to deallocating the stack.
4324
4325 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
4326
4327 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
4328 to make better use of cmem loads in the case where a single bit is
4329 being accessed.
4330 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
4331
4332 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
4333
4334 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
4335 F_AVX5124FMAPS.
4336 (isa_names_table): Handle new features.
4337
4338 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
4339 Andrew Senkevich <andrew.senkevich@intel.com>
4340
4341 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
4342 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
4343 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
4344 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
4345 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
4346 * config/i386/avx5124fmapsintrin.h: New file.
4347 * config/i386/avx5124vnniwintrin.h: Ditto.
4348 * config/i386/constraints.md (h): New constraint.
4349 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
4350 * config/i386/driver-i386.c (host_detect_local_cpu):
4351 Detect avx5124fmaps, avx5124vnniw.
4352 * config/i386/i386-builtin-types.def: Add types
4353 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
4354 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
4355 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
4356 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
4357 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
4358 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
4359 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
4360 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
4361 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
4362 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
4363 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
4364 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
4365 __builtin_ia32_vp4dpwssds_mask): New.
4366 * config/i386/i386-c.c (ix86_target_macros_internal):
4367 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
4368 * config/i386/i386-modes.def: Fixed comment typos, added new
4369 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
4370 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
4371 -mavx5124vnniw.
4372 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
4373 (ix86_option_override_internal): Handle new options.
4374 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
4375 avx5124vnniw.
4376 (ix86_expand_builtin): Handle new builtins.
4377 (ix86_additional_allocno_class_p): New.
4378 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
4379 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
4380 (reg_class): Add MOD4_SSE_REGS.
4381 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
4382 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
4383 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
4384 avx5124vnniwintrin.h.
4385 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
4386 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
4387 (define_mode_iterator IMOD4): New.
4388 (define_mode_attr imod4_narrow): Ditto.
4389 (define_insn "mov<mode>"): Ditto.
4390 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
4391 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
4392 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
4393 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
4394 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
4395 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
4396 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
4397 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
4398 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
4399 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
4400 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
4401 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
4402 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
4403 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
4404 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
4405 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
4406 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
4407 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
4408 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
4409 * genmodes.c (mode_size_inline): Extend return type.
4410 * machmode.h (mode_size, mode_base_align): Extend type.
4411
4412 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
4413
4414 PR target/78101
4415 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
4416 the appropriate checks for SFmode/DFmode load/stores in GPR
4417 registers.
4418 (fusion_addis_mem_combo_store): Likewise.
4419 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
4420 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
4421 d-form instructions for traditional Altivec registers.
4422 (emit_fusion_p9_load): Likewise.
4423 (emit_fusion_p9_store): Likewise.
4424 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
4425 early clobber from scratch register. Do not match if the register
4426 being stored is the scratch register.
4427 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
4428 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
4429 instructions for traditional Altivec registers.
4430 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
4431 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4432 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4433
4434 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
4435
4436 PR target/77933
4437 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
4438 being live in the function and lr needing to be saved. Distinguish
4439 between already saved pushable registers and registers to push.
4440 Check for LR being an available pushable register.
4441
4442 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4443
4444 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
4445 string input is a string constant.
4446 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
4447 via cmpstrnsi even if neither string is constant.
4448
4449 2016-11-17 Jakub Jelinek <jakub@redhat.com>
4450
4451 PR middle-end/78201
4452 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
4453 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
4454 instead, return false if it is NULL, or doesn't fit into uhwi, or
4455 is larger or equal to targetm.max_anchor_offset.
4456
4457 2016-11-17 Pip Cet <pipcet@gmail.com>
4458 Eric Botcazou <ebotcazou@adacore.com>
4459
4460 PR rtl-optimization/78355
4461 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
4462 needs to deal with unaligned accesses.
4463 * doc/tm.texi: Regenerate.
4464 * lra-constraints.c (simplify_operand_subreg): Only invoke
4465 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
4466
4467 2016-11-17 David Malcolm <dmalcolm@redhat.com>
4468
4469 * input.c (selftest::test_lexer_string_locations_long_line): New
4470 function.
4471 (selftest::test_lexer_string_locations_raw_string_multiline): New
4472 function.
4473 (selftest::input_c_tests): Call the new functions, via
4474 for_each_line_table_case.
4475
4476 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4477
4478 * config/aarch64/aarch64.md (mov<mode>): Call
4479 aarch64_split_dimode_const_store on DImode constant stores.
4480 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
4481 New prototype.
4482 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
4483 function.
4484
4485 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4486 Richard Biener <rguenther@suse.de>
4487
4488 PR tree-optimization/77848
4489 * tree-if-conv.c (tree_if_conversion): Always version loops unless
4490 the user specified -ftree-loop-if-convert.
4491
4492 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
4493
4494 PR target/77308
4495 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
4496 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
4497 *thumb2_strd_base_neg): Recognize insn regardless of
4498 current_tune->prefer_ldrd_strd.
4499 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
4500 whenever possible.
4501
4502 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
4503
4504 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
4505 instruction type.
4506
4507 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
4508
4509 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
4510 for arcem.
4511 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
4512 * config/arc/arc-cpus.def (quarkse_em): Add.
4513 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
4514 * config/arc/arc-opts.h (FPX_QK): Define.
4515 * config/arc/arc-tables.opt: Regenerate.
4516 * config/arc/arc.c (gen_compare_reg): Change.
4517 (arc_register_move_cost): Avoid Dy,Dx moves.
4518 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
4519 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
4520 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
4521 New expands.
4522 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
4523 (fix_truncsfsi2_fpu): Rename.
4524 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
4525 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
4526 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
4527 * config/arc/t-multilib: Regenerate.
4528
4529 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
4530
4531 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
4532 appropriate.
4533 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
4534 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
4535 (avr_rtx_costs_1, extra_constraint_Q): Same.
4536 (avr_address_cost): Use SUBREG_P if possible.
4537
4538 2016-11-17 Richard Biener <rguenther@suse.de>
4539
4540 PR middle-end/78383
4541 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
4542 non-local goto into CFG.
4543
4544 2016-11-17 Richard Biener <rguenther@suse.de>
4545
4546 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
4547 backward compatibility.
4548 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
4549 * tree-if-conv.c (pass_if_conversion::gate): Do not test
4550 flag_tree_loop_if_convert_stores.
4551 (pass_if_conversion::execute): Likewise.
4552
4553 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4554
4555 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
4556 const_double code before calling aarch64_float_const_zero_rtx_p.
4557
4558 2016-11-17 Richard Biener <rguenther@suse.de>
4559
4560 PR tree-optimization/78306
4561 * ipa-inline-analysis.c (initialize_inline_failed): Do not
4562 inhibit inlining if function calls cilk_spawn.
4563 (can_inline_edge_p): Likewise.
4564
4565 2016-11-17 Richard Biener <rguenther@suse.de>
4566
4567 PR middle-end/78305
4568 * fold-const.c (negate_expr_p): Fix multiplication case.
4569
4570 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
4571
4572 PR target/78357
4573 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
4574 condition.
4575 (TARGET_INIT_LIBFUNCS): Delete definition and...
4576 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
4577 comments.
4578
4579 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
4580
4581 * config/netbsd-stdint.h: New.
4582 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
4583 (x86_64-*-netbsd*): Likewise.
4584
4585 2016-11-16 Andrew PInski <apinski@cavium.com>
4586
4587 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
4588 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
4589 flag_aarch64_verbose_cost instead of checking for details dump.
4590 (aarch64_rtx_costs_wrapper): Likewise.
4591
4592 2016-11-16 Jakub Jelinek <jakub@redhat.com>
4593
4594 PR rtl-optimization/78378
4595 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
4596 inner only if pos is 0. Fix up formatting.
4597
4598 2016-11-17 Alan Modra <amodra@gmail.com>
4599
4600 PR rtl-optimization/78325
4601 PR rtl-optimization/70890
4602 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
4603 for dead regno.
4604
4605 2016-11-16 Jason Merrill <jason@redhat.com>
4606
4607 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
4608
4609 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4610 Richard Biener <rguenther@suse.de>
4611
4612 PR tree-optimization/77848
4613 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
4614 an outer loop, only save basic block aux information for the inner
4615 loop.
4616 (versionable_outer_loop_p): New function.
4617 (tree_if_conversion): Version the outer loop instead of the inner
4618 one if the pattern will be recognized for outer-loop
4619 vectorization.
4620
4621 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
4622
4623 * gcc/bb-reorder.c: Remove 'toplev.h' include.
4624 (pass_partition_blocks::gate): No longer check
4625 user_defined_section_attribute, instead check the function decl
4626 for a section attribute.
4627 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
4628 set user_defined_section_attribute.
4629 * gcc/final.c (rest_of_handle_final): Likewise.
4630 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
4631 * gcc/toplev.h: Remove declaration of
4632 user_defined_section_attribute.
4633
4634 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4635
4636 * config/mips/mips.md (casesi_internal_mips16_<mode>):
4637 Explicitly switch between JR and JRC for the table jump. Adjust
4638 instruction count.
4639
4640 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4641
4642 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
4643 `insn_count' to 11 rather than 16.
4644
4645 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4646
4647 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
4648 `ltu' rather than `leu' operation in the RTL pattern
4649
4650 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4651
4652 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
4653 missing <d> instruction prefixes throughout. Correct
4654 formatting.
4655
4656 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4657
4658 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
4659 rather than R_MIPS_JALR relocation in microMIPS code. Do not
4660 cancel short delay slots in PIC call relaxation.
4661
4662 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
4663
4664 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
4665 general register with general register or ARM constant into SP
4666 register.
4667
4668 2016-11-16 Jakub Jelinek <jakub@redhat.com>
4669
4670 PR fortran/78299
4671 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
4672 that loop->header == body_bb if broken_loop.
4673
4674 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
4675
4676 * tree-ssa-math-opts.c (bswap_replace): Remove test
4677 of SLOW_UNALIGNED_ACCESS.
4678
4679 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
4680
4681 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
4682 is selected. Pass -mgomp to offload compiler in OpenMP case.
4683 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
4684 declaration from nvptx.c.
4685 (nvptx_gen_shuffle): Declare.
4686 (nvptx_output_set_softstack): Declare.
4687 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
4688 (need_softstack_decl): New variable.
4689 (need_unisimt_decl): New variable.
4690 (diagnose_openacc_conflict): New. Use it...
4691 (nvptx_option_override): ...here. Handle TARGET_GOMP.
4692 (nvptx_encode_section_info): Handle "shared" attribute.
4693 (write_as_kernel): Restrict to OpenACC target regions.
4694 (init_softstack_frame): New.
4695 (nvptx_init_unisimt_predicate): New.
4696 (write_omp_entry): New. Use it...
4697 (nvptx_declare_function_name): ...here to emit OpenMP target region
4698 entrypoints. Handle TARGET_SOFT_STACK. Call
4699 nvptx_init_unisimt_predicate.
4700 (nvptx_output_set_softstack): New.
4701 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
4702 (nvptx_gen_shuffle): Export.
4703 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
4704 predicate.
4705 (nvptx_print_operand): Fix handling of instruction predicates.
4706 (nvptx_get_unisimt_master): New helper function.
4707 (nvptx_get_unisimt_predicate): Ditto.
4708 (nvptx_call_insn_is_syscall_p): Ditto.
4709 (nvptx_unisimt_handle_set): Ditto.
4710 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
4711 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
4712 (nvptx_handle_shared_attribute): New. Use it...
4713 (nvptx_attribute_table): ... here (new entry).
4714 (nvptx_record_offload_symbol): Handle NULL attributes.
4715 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
4716 (nvptx_simt_vf): New.
4717 (TARGET_SIMT_VF): Define.
4718 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
4719 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
4720 -muniform-simt option is active.
4721 (STACK_SIZE_MODE): Define.
4722 (FIXED_REGISTERS): Adjust.
4723 (SOFTSTACK_SLOT_REGNUM): New.
4724 (SOFTSTACK_PREV_REGNUM): New.
4725 (REGISTER_NAMES): Adjust.
4726 (struct machine_function): New fields.
4727 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
4728 (UNSPEC_VOTE_BALLOT): Ditto.
4729 (UNSPEC_LANEID): Ditto.
4730 (UNSPECV_NOUNROLL): Ditto.
4731 (atomic): New attribute.
4732 (predicable): New attribute. Generate predicated forms via
4733 define_cond_exec.
4734 (br_true): Mark as not predicable.
4735 (br_false): Ditto.
4736 (br_true_uni): Ditto.
4737 (br_false_uni): Ditto.
4738 (return): Ditto.
4739 (trap_if_true): Ditto.
4740 (trap_if_false): Ditto.
4741 (nvptx_fork): Ditto.
4742 (nvptx_forked): Ditto.
4743 (nvptx_joining): Ditto.
4744 (nvptx_join): Ditto.
4745 (nvptx_barsync): Ditto.
4746 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
4747 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
4748 (allocate_stack_<mode>): Remove unused pattern.
4749 (set_softstack_insn): New pattern.
4750 (restore_stack_block): Handle for TARGET_SOFT_STACK.
4751 (nvptx_vote_ballot): New pattern.
4752 (omp_simt_lane): Ditto.
4753 (omp_simt_last_lane): Ditto.
4754 (omp_simt_ordered): Ditto.
4755 (omp_simt_vote_any): Ditto.
4756 (omp_simt_xchg_bfly): Ditto.
4757 (omp_simt_xchg_idx): Ditto.
4758 (nvptx_nounroll): Ditto.
4759 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
4760 (atomic_exchange<mode>): Ditto.
4761 (atomic_fetch_add<mode>): Ditto.
4762 (atomic_fetch_addsf): Ditto.
4763 (atomic_fetch_<logic><mode>): Ditto.
4764 * config/nvptx/nvptx.opt (msoft-stack): New option.
4765 (muniform-simt): Ditto.
4766 (mgomp): Ditto.
4767 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
4768 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
4769 * doc/invoke.texi (msoft-stack): Document.
4770 (muniform-simt): Document
4771 (mgomp): Document.
4772 * doc/tm.texi: Regenerate.
4773 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
4774 * target.def: Define it.
4775 * target-insns.def (omp_simt_lane): New.
4776 (omp_simt_last_lane): New.
4777 (omp_simt_ordered): New.
4778 (omp_simt_vote_any): New.
4779 (omp_simt_xchg_bfly): New.
4780 (omp_simt_xchg_idx): New.
4781
4782 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4783
4784 * config/mips/mips-protos.h (mips_set_text_contents_type): New
4785 prototype.
4786 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
4787 (ASM_OUTPUT_CASE_END): Likewise.
4788 * config/mips/mips.c (mips_set_text_contents_type): New function.
4789 (mips16_emit_constants): Record the pool's initial label number
4790 with the `consttable' insn. Emit a `consttable_end' insn at the end.
4791 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
4792 for `consttable' insns.
4793 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
4794 for `consttable_end' insns.
4795 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
4796 (consttable): Add operand.
4797 (consttable_end): New insn.
4798
4799 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
4800
4801 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
4802 * tree-if-conv.c (tree_if_conversion): Make public.
4803 * * tree-if-conv.h: New file.
4804 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
4805 dynamic alias checks for epilogues.
4806 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
4807 * tree-vect-loop.c: include tree-if-conv.h.
4808 (new_loop_vec_info): Add zeroing orig_loop_info field.
4809 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
4810 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
4811 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
4812 using passed argument.
4813 (vect_transform_loop): Check if created epilogue should be returned
4814 for further vectorization with less vf. If-convert epilogue if
4815 required. Print vectorization success for epilogue.
4816 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
4817 if it is required, pass loop_vinfo produced during vectorization of
4818 loop body to vect_analyze_loop.
4819 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4820 orig_loop_info.
4821 (LOOP_VINFO_ORIG_LOOP_INFO): New.
4822 (LOOP_VINFO_EPILOGUE_P): New.
4823 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
4824 (vect_do_peeling): Change prototype to return epilogue.
4825 (vect_analyze_loop): Add argument of loop_vec_info type.
4826 (vect_transform_loop): Return created loop.
4827
4828 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
4829
4830 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
4831 component as used also if LR_REGNO is a live input to the bb.
4832 * df-scan.c (df_get_entry_block_def_set): Return immediately after
4833 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
4834 (df_get_exit_block_use_set): Ditto.
4835 * df.h (df_scan_flags): New enum.
4836 * shrink-wrap.c (try_shrink_wrapping_separate): Set
4837 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
4838 df_update_entry_block_defs and df_update_exit_block_uses
4839 at the start; clear the flag and call those functions at the end.
4840
4841 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4842 Alan Hayward <alan.hayward@arm.com>
4843 David Sherwood <david.sherwood@arm.com>
4844
4845 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
4846 nb_iterations to the number of latch iterations rather than the
4847 number of loop iterations.
4848
4849 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4850 Alan Hayward <alan.hayward@arm.com>
4851 David Sherwood <david.sherwood@arm.com>
4852
4853 * combine.c (maybe_swap_commutative_operands): New function.
4854 (combine_simplify_rtx): Use it.
4855 (change_zero_ext): Likewise.
4856 (make_compound_operation_int): New function, split out of...
4857 (make_compound_operation): ...here. Use
4858 maybe_swap_commutative_operands for both.
4859
4860 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
4861
4862 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
4863 (neon-vfpv3): New FPU, currently an alias for 'neon'.
4864 * arm/arm-tables.opt: Regenerated.
4865 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
4866 neon-vfpv3.
4867 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
4868 and 'neon' are aliases for specific implementations.
4869
4870 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4871 Alan Hayward <alan.hayward@arm.com>
4872 David Sherwood <david.sherwood@arm.com>
4873
4874 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
4875 and use it in the final call to gen_rtx_fmt_ee.
4876 (expand_vec_cond_expr): Update accordingly.
4877 (expand_vec_cmp_expr): Likewise.
4878
4879 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4880 Alan Hayward <alan.hayward@arm.com>
4881 David Sherwood <david.sherwood@arm.com>
4882
4883 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
4884
4885 2016-11-16 Richard Biener <rguenther@suse.de>
4886
4887 PR middle-end/78333
4888 * gimplify.c (gimplify_function_tree): Do not instrument
4889 GNU extern inline functions.
4890
4891 2016-11-16 Martin Liska <mliska@suse.cz>
4892
4893 PR sanitizer/78270
4894 * gimplify.c (gimplify_switch_expr): Always save previous
4895 gimplify_ctxp->live_switch_vars.
4896
4897 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
4898
4899 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
4900 zero_extract operations to allow a movb to occur.
4901 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
4902 * testsuite/gcc.target/arc/movb-2.c: Likewise.
4903 * testsuite/gcc.target/arc/movb-5.c: Likewise.
4904 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
4905 little endian arc.
4906
4907 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4908 Alan Hayward <alan.hayward@arm.com>
4909 David Sherwood <david.sherwood@arm.com>
4910
4911 * expr.c (emit_group_load_1): Tighten check for whether an
4912 access involves only one operand of a CONCAT. Use extract_bit_field
4913 for constants if the bit range does span the whole operand.
4914
4915 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4916 Alan Hayward <alan.hayward@arm.com>
4917 David Sherwood <david.sherwood@arm.com>
4918
4919 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
4920
4921 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4922 Alan Hayward <alan.hayward@arm.com>
4923 David Sherwood <david.sherwood@arm.com>
4924
4925 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
4926 all three iteration counts with an any_* test. Use a single update
4927 for each count. Fix the calculation of nb_iterations_estimate.
4928
4929 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4930
4931 * config/pdp11/pdp11.c: Include dbxout.h.
4932
4933 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4934
4935 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
4936
4937 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4938
4939 PR target/78364
4940 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
4941 proper ranges for an SBFX instruction.
4942 (extzv_t2): Likewise for UBFX.
4943
4944 2016-11-16 Richard Biener <rguenther@suse.de>
4945
4946 PR tree-optimization/78348
4947 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
4948 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
4949 (classify_partition): Set PKIND_MEMCPY if dependence analysis
4950 revealed no dependency, PKIND_MEMMOVE otherwise.
4951
4952 2016-11-16 Jakub Jelinek <jakub@redhat.com>
4953
4954 PR sanitizer/77823
4955 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
4956 it points to non-NULL tree, use it instead of ubsan_create_data.
4957 (instrument_si_overflow): Handle vector signed integer overflow
4958 checking.
4959 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
4960 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
4961 vector IFN_UBSAN_CHECK_*.
4962 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
4963 pass it through to ubsan_build_overflow_builtin.
4964 (expand_neg_overflow, expand_mul_overflow): Likewise.
4965 (expand_vector_ubsan_overflow): New function.
4966 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
4967 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
4968 (expand_arith_overflow): Adjust expand_*_overflow callers.
4969
4970 2016-11-16 Matthias Klose <doko@ubuntu.com>
4971
4972 * doc/install.texi: Remove references to java/libjava.
4973
4974 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
4975
4976 * tree-ssa-coalesce.c (register_default_def): Remove
4977 register_ssa_partition.
4978 (create_outofssa_var_map): Likewise.
4979 * tree-ssa-live.c (register_ssa_partition_check): Remove.
4980 * tree-ssa-live.h (register_ssa_partition): Likewise.
4981
4982 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
4983
4984 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
4985 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
4986 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
4987 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
4988 rtx when all sub-rtx are also permanent.
4989 (attr_eq): Simplify.
4990 (attr_copy_rtx): Remove.
4991 (make_canonical, get_attr_value): Use attr_equal_p.
4992 (copy_boolean): Rehash NOT.
4993 (simplify_test_exp_in_temp,
4994 optimize_attrs): Remove call to attr_copy_rtx.
4995 (attr_alt_intersection, attr_alt_union,
4996 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
4997 (make_automaton_attrs): Use attr_eq.
4998
4999 2016-11-15 Matthias Klose <doko@ubuntu.com>
5000
5001 * doc/install.texi: Remove references to java/libjava.
5002 * doc/sourcebuild.texi: Likewise.
5003 * doc/invoke.texi: Likewise.
5004 * doc/standards.texi: Likewise.
5005
5006 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5007 Alan Hayward <alan.hayward@arm.com>
5008 David Sherwood <david.sherwood@arm.com>
5009
5010 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
5011 of VOIDmode.
5012 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5013 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5014 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5015 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5016 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5017 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5018 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5019
5020 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5021 Alan Hayward <alan.hayward@arm.com>
5022 David Sherwood <david.sherwood@arm.com>
5023
5024 * dce.c (check_argument_store): Pass the size instead of
5025 the memory reference.
5026 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
5027
5028 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5029 Alan Hayward <alan.hayward@arm.com>
5030 David Sherwood <david.sherwood@arm.com>
5031
5032 * alias.c (canon_rtx): Use simplify_gen_binary.
5033
5034 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5035 Alan Hayward <alan.hayward@arm.com>
5036 David Sherwood <david.sherwood@arm.com>
5037
5038 * rtl.h (load_extend_op): Declare.
5039 * rtlanal.c (load_extend_op): New function.
5040 (nonzero_bits1): Use it.
5041 (num_sign_bit_copies1): Likewise.
5042 * cse.c (cse_insn): Likewise.
5043 * fold-const.c (fold_single_bit_test): Likewise.
5044 (fold_unary_loc): Likewise.
5045 * fwprop.c (free_load_extend): Likewise.
5046 * postreload.c (reload_cse_simplify_set): Likewise.
5047 (reload_cse_simplify_operands): Likewise.
5048 * combine.c (try_combine): Likewise.
5049 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
5050 subreg_lowpart_p checks.
5051
5052 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5053 Alan Hayward <alan.hayward@arm.com>
5054 David Sherwood <david.sherwood@arm.com>
5055
5056 * combine.c (simplify_shift_const_1): Use the number of bits
5057 in the inner mode to determine the range of the shift.
5058 When handling shifts of vectors, skip any rules that apply
5059 only to scalars.
5060
5061 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5062 Alan Hayward <alan.hayward@arm.com>
5063 David Sherwood <david.sherwood@arm.com>
5064
5065 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
5066 handling VOIDmode.
5067
5068 2016-11-15 Matthias Klose <doko@ubuntu.com>
5069
5070 * doc/install.texi: Remove references to gcj/libjava.
5071 * doc/invoke.texi: Likewise.
5072
5073 2016-11-15 Jeff Law <law@redhat.com>
5074
5075 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
5076 parameter. Callers changed.
5077 (check-subpath_and_update_thread_path): Extracted from
5078 fsm_find_control_statement_thread_paths.
5079 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
5080 (handle_phi, handle_assignment): Allow any constant node, not
5081 just INTEGER_CST.
5082
5083 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
5084
5085 * config/arc/arc-arch.h: New file.
5086 * config/arc/arc-arches.def: Likewise.
5087 * config/arc/arc-cpus.def: Likewise.
5088 * config/arc/arc-options.def: Likewise.
5089 * config/arc/t-multilib: Likewise.
5090 * config/arc/genmultilib.awk: Likewise.
5091 * config/arc/genoptions.awk: Likewise.
5092 * config/arc/arc-tables.opt: Likewise.
5093 * config/arc/driver-arc.c: Likewise.
5094 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
5095 * common/config/arc/arc-common.c (arc_handle_option): Trace
5096 toggled options.
5097 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
5098 options; check for supported cpu against arc-cpus.def file.
5099 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
5100 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
5101 * config/arc/arc-c.def: Add emacs local variables.
5102 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
5103 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
5104 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
5105 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
5106 (DEFAULT_arc_fpu_build): Define.
5107 (DEFAULT_arc_mpy_option): Define.
5108 * config/arc/arc-protos.h (arc_init): Delete.
5109 * config/arc/arc.c (arc_cpu_name): New variable.
5110 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
5111 (arc_arc700, arc_arc600, arc_arc601): New variable.
5112 (arc_init): Add static; remove selection of default tune value,
5113 cleanup obsolete error messages.
5114 (arc_override_options): Make use of .def files for selecting the
5115 right cpu and option configurations.
5116 * config/arc/arc.h (stdbool.h): Include.
5117 (TARGET_CPU_DEFAULT): Define.
5118 (CPP_SPEC): Remove mcpu=NPS400 handling.
5119 (arc_cpu_to_as): Declare.
5120 (EXTRA_SPEC_FUNCTIONS): Define.
5121 (OPTION_DEFAULT_SPECS): Likewise.
5122 (ASM_DEFAULT): Remove.
5123 (ASM_SPEC): Use arc_cpu_to_as.
5124 (DRIVER_SELF_SPECS): Remove deprecated options.
5125 (arc_base_cpu): Declare.
5126 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
5127 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
5128 variable.
5129 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
5130 * config/arc/arc.md (attr_cpu): Remove.
5131 * config/arc/arc.opt (mno-mpy): Deprecate.
5132 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
5133 (mcpu=ARCHS): Remove.
5134 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
5135 Deprecate.
5136 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
5137 (arc_fpu): Use new defines.
5138 (mpy-option): Change to use numeric or string like inputs.
5139 * config/arc/t-arc (driver-arc.o): New target.
5140 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
5141 * config/arc/t-arc-newlib: Delete.
5142 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
5143 * doc/invoke.texi (ARC): Update arc options.
5144
5145 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
5146
5147 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
5148 insn at the beginning of the constant pool.
5149 (mips_insert_insn_pseudos): New function.
5150 (mips_machine_reorg2): Call it.
5151 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
5152 UNSPEC_INSN_PSEUDO enum values.
5153 (insn_pseudo, consttable): New insns.
5154
5155 2016-11-15 Michael Matz <matz@suse.de>
5156
5157 PR missed-optimization/77881
5158 * combine.c (simplify_comparison): Remove useless subregs
5159 also inside the loop, not just after it.
5160 (make_compound_operation): Recognize some subregs as being
5161 masking as well.
5162
5163 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5164 Alan Hayward <alan.hayward@arm.com>
5165 David Sherwood <david.sherwood@arm.com>
5166
5167 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
5168 GET_MODE_SIZE typo.
5169
5170 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5171
5172 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
5173 for using xxinsertw and vinsert{b,h} on ISA 3.0.
5174
5175 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
5176 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
5177 vinsert{b,h} on ISA 3.0.
5178
5179 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
5180
5181 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
5182 and cmpnop in two steps: first the ones not accessed in original gimple
5183 expression in a endian independent way and then the ones not accessed
5184 in the final result in an endian-specific way.
5185 (bswap_replace): Stop doing big endian adjustment.
5186
5187 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
5188
5189 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
5190 (*ashl<mode>3_doubleword): Ditto.
5191
5192 2016-11-14 Martin Liska <mliska@suse.cz>
5193
5194 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
5195
5196 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
5197 Richard Biener <rguenther@suse.de>
5198
5199 * doc/invoke.texi (fgimple): Document.
5200 * dumpfile.h (TDF_GIMPLE): Add.
5201 * dumpfile.c (dump_options): Add gimple.
5202 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
5203 for TDF_GIMPLE.
5204 (dump_gimple_label): Likewise.
5205 (dump_gimple_phi): Likewise.
5206 (dump_gimple_bb_header): Likewise.
5207 (dump_phi_nodes): Likewise.
5208 (pp_cfg_jump): Likewise. Pass in dump flags.
5209 (dump_implicit_edges): Adjust.
5210 * passes.c (pass_init_dump_file): Do not dump function header
5211 for TDF_GIMPLE.
5212 * tree-cfg.c (dump_function_to_file): Dump function return type
5213 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
5214 GIMPLE stmts.
5215 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
5216 (dump_generic_node): Likewise.
5217 * function.h (struct function): Add pass_startwith member.
5218 * passes.c (execute_one_pass): Implement startwith.
5219 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
5220 and assign proper version for parsed ssa names.
5221 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
5222 * internal-fn.c (expand_PHI): New function.
5223 * internal-fn.h (expand_PHI): Declared here.
5224 * internal-fn.def: New defination for PHI.
5225 * tree-cfg.c (lower_phi_internal_fn): New function.
5226 (build_gimple_cfg): Call it.
5227 (verify_gimple_call): Condition for passing label as arg in internal
5228 function PHI.
5229 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
5230 present PHIs with arguments.
5231
5232 2016-11-14 Martin Liska <mliska@suse.cz>
5233
5234 PR bootstrap/78069
5235 * common.opt: Add prefer-atomic as a new enum value for
5236 -fprofile-update.
5237 * coretypes.h: Likewise.
5238 * doc/invoke.texi: Document the new option value.
5239 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
5240 * tree-profile.c (tree_profiling): Select default value
5241 of -fprofile-update when 'prefer-atomic' is selected.
5242
5243 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5244
5245 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
5246 (cortex_a57_alu_shift): ...here.
5247
5248 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5249
5250 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
5251 Use bfx attribute.
5252 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
5253 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5254 (<optab>si3_insn_uxtw): Likewise.
5255 (<optab><mode>3_insn): Likewise.
5256 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
5257 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
5258 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
5259 (<optab><mode>): Likewise.
5260 (insv<mode>): Likewise.
5261 (andim_ashift<mode>_bfiz): Likewise.
5262 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
5263 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
5264 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
5265 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
5266 (exynos_m1_alu_p): Likewise.
5267 * config/arm/types.md: Add bfx.
5268 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
5269
5270 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5271
5272 * config/aarch64/aarch64.c (cortexa57_vector_cost):
5273 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
5274
5275 2016-11-14 Richard Biener <rguenther@suse.de>
5276
5277 PR tree-optimization/78312
5278 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
5279 flow-sensitive info.
5280
5281 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
5282
5283 PR target/78093
5284 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
5285 * config/avr/avr.opt (-mabsdata): New option.
5286 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
5287 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
5288 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
5289 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
5290 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
5291 spec depending on AVR_ISA_LDS.
5292 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
5293
5294 2016-11-13 Jakub Jelinek <jakub@redhat.com>
5295
5296 * match.pd: Don't try to compare addresses of variables with
5297 DECL_VALUE_EXPR.
5298
5299 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
5300
5301 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
5302 (propagate_vr_accross_jump_function): Handle unary expressions.
5303 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5304 (load_from_param_1): New.
5305 (load_from_unmodified_param): Factor common part into load_from_param_1.
5306 (load_from_param): New.
5307 (compute_complex_assign_jump_func): Handle unary expressions.
5308 (update_jump_functions_after_inlining): Likewise.
5309 (ipa_write_jump_function): Likewise.
5310 (ipa_read_jump_function): Likewise.
5311
5312 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5313
5314 PR c/35503
5315 * doc/invoke.texi: Document Wrestrict.
5316 * pretty-print.c (pp_format): Add case for "Z" specifier.
5317 (test_pp_format): Test "Z" specifier.
5318
5319 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
5320
5321 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
5322 original function needs a static chain.
5323
5324 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
5325
5326 PR target/78336
5327 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
5328 ASM_OUTPUT_DEF.
5329
5330 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
5331
5332 PR target/77957
5333 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
5334 return early if !optional_tbtab.
5335
5336 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
5337
5338 PR rtl-optimization/59461
5339 * doc/rtl.texi (paradoxical subregs): Add missing word.
5340 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
5341 in modes with precision larger than that of last_set_mode.
5342 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
5343 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
5344 REGs to paradoxical SUBREGs.
5345 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
5346 larger than a word before invoking LOAD_EXTEND_OP on it.
5347
5348 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5349
5350 PR target/78243
5351 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
5352 element order for little endian ordering.
5353
5354 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
5355 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
5356 number.
5357
5358 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
5359
5360 PR target/78310
5361 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
5362 when calculating operand 2.
5363 (rotate to rotatex zext splitter): Ditto.
5364
5365 2016-11-11 Jeff Law <law@redhat.com>
5366
5367 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
5368 function.
5369 (stmt_uses_name_in_undefined_way): New function, extracted from
5370 find_implicit_erroneous_behavior and extended for div/mod case.
5371 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
5372 find_explicit_erroneous_behavior and extended for div/mod case.
5373 (find_implicit_erroneous_behavior): Use new helper function.
5374 (find_explicit_erroneous_behavior): Use new helper function.
5375
5376 2016-11-11 Richard Biener <rguenther@suse.de>
5377
5378 PR tree-optimization/71575
5379 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
5380 bogus assert.
5381
5382 2016-11-11 Richard Biener <rguenther@suse.de>
5383
5384 PR middle-end/78295
5385 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
5386 about uninitialized destination arg of BIT_INSERT_EXPR.
5387
5388 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
5389
5390 PR c/37998
5391 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
5392 terminology. Expand to remove ambiguity.
5393
5394 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5395
5396 PR rtl-optimization/78232
5397 * combine.c (try_combine): Add a big comment about why reusing i2dest
5398 is undesirable.
5399 (change_zero_ext): Do not call simplify_gen_binary, do the
5400 simplifications manually.
5401
5402 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5403
5404 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
5405 enable HImode and QImode to go in vector registers by default if
5406 the -mvsx-small-integer option is enabled.
5407 (rs6000_secondary_reload_simple_move): Likewise.
5408 (rs6000_preferred_reload_class): Don't force integer constants to
5409 be loaded into vector registers that we can easily make into
5410 memory (or being created in the GPRs and moved over with direct move).
5411 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
5412 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
5413 vector extraction on ISA 3.0 when the scalar integer can be
5414 allocated in vector registers. Generate the VEC_SELECT directy,
5415 and don't use UNSPEC's to avoid having the scalar type in a vector
5416 register. Make the expander target registers, and let the
5417 combiner fold in results storing to memory, if the machine
5418 supports stores.
5419 (vsx_extract_<mode>_di): Likewise.
5420 (vsx_extract_<mode>_p9): Likewise.
5421 (vsx_extract_<mode>_di_p9): Likewise.
5422 (vsx_extract_<mode>_store_p9): Likewise.
5423 (vsx_extract_si): Likewise.
5424 (vsx_extract_<mode>_p8): Likewise.
5425 (p9_lxsi<wd>zx): Delete, no longer used.
5426 (p9_stxsi<wd>x): Likewise.
5427 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
5428 integers in vector registers for ISA 3.0.
5429 (QHI): Update comment.
5430 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
5431 vector extract instructions in sign/zero extend.
5432 (zero_extendhi<mode>): Likewise.
5433 (extendqi<mode>): Likewise.
5434 (extendhi<mode>2): Likewise.
5435 (HImode splitter for load/sign extend in vector register): Likewise.
5436 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
5437 optimizing floating point conversions to/from small data types and
5438 rewrite it to support QImode/HImode being allowed in vector
5439 registers on ISA 3.0.
5440 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
5441 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
5442 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
5443 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
5444 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
5445 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
5446 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
5447 VSPLITISW on ISA 2.07.
5448 (movhi_internal): Combine movhi_internal and movqi_internal into
5449 one mov<mode>_internal with an iterator. Add support for QImode
5450 and HImode being allowed in vector registers. Make large number
5451 of attributes and constraints easier to read.
5452 (movqi_internal): Likewise.
5453 (mov<mode>_internal): Likewise.
5454 (movdi_internal64): Fix constraint to allow loading -16..15 with
5455 VSPLITISW on ISA 2.07.
5456 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
5457 well as DImode.
5458
5459 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
5460
5461 PR rtl-optimization/78241
5462 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
5463 but emit initial peel copy if niter expr is not reliable.
5464
5465 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5466
5467 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
5468 (maybe_record_trace_start): If the CFI is different on the new and
5469 old paths, print out both to the dump file before ICEing.
5470
5471 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
5472
5473 * target.def (additional_allocno_class_p): New.
5474 * hooks.h (hook_bool_reg_class_t_false): New prototype.
5475 * hooks.c (hook_bool_reg_class_t_false): New.
5476 * ira.c (setup_allocno_and_important_classes): Use the new hook.
5477 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
5478 * doc/tm.texi: Update.
5479
5480 2016-11-10 Jason Merrill <jason@redhat.com>
5481
5482 * gengtype.c (new_structure): Append to structures list.
5483 (find_structure): Likewise.
5484
5485 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
5486
5487 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
5488 this_dir is 2. Check for this_dir non-zero before dir != this_dir
5489 check.
5490
5491 2016-11-10 Jakub Jelinek <jakub@redhat.com>
5492
5493 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
5494 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
5495 TRUNC_DIV_EXPR.
5496 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
5497 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
5498 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
5499 teams distribute parallel for simd even to distribute and teams
5500 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
5501 OMP_CLAUSE_DEPEND_SINK case.
5502 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
5503 (omp_no_lastprivate): Removed.
5504 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
5505 (gimplify_omp_for): Likewise.
5506 (computable_teams_clause): Fail for automatic vars from current
5507 function not yet seen in bind expr.
5508 * langhooks.c (lhd_omp_scalar_p): New function.
5509 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
5510 * varpool.c (varpool_node::get_create): Set node->offloading
5511 even for DECL_EXTERNAL decls.
5512 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
5513 (LANG_HOOKS_OMP_SCALAR_P): Define.
5514 (LANG_HOOKS_DECLS): Use it.
5515
5516 2016-11-10 Martin Liska <mliska@suse.cz>
5517
5518 PR sanitizer/78270
5519 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
5520 only when SWITCH_BODY is a BIND_EXPR.
5521
5522 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
5523
5524 PR debug/78112
5525 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
5526 on the context only when it has no DIE yet.
5527
5528 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
5529
5530 * arm.h (target_cpus): Delete.
5531 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
5532 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
5533 (all_architectures): Likewise.
5534 (arm_option_override): Adjust use of CPU enums.
5535 (arm_sched_reorder): Likewise.
5536 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
5537 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
5538 * arm/genopt.sh (processor_type): Prefix enumeration entries with
5539 TARGET_CPU_.
5540 * arm-tables.opt: Regenerated.
5541
5542 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
5543
5544 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
5545 (falkor): New core.
5546 * config/aarch64/aarch64-tune.md: Regenerated.
5547 * config/arm/arm-cores.def (falkor): New core.
5548 * config/arm/arm-tables.opt: Regenerated.
5549 * config/arm/arm-tune.md: Regenerated.
5550 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
5551 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
5552 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
5553 (ARM Options/-mtune): Likewise.
5554
5555 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
5556
5557 Revert
5558 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
5559
5560 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
5561 (propagate_vr_accross_jump_function): Likewise.
5562 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5563 (load_from_param_1): New.
5564 (load_from_unmodified_param): Factor common part into load_from_param_1.
5565 (load_from_param): New.
5566 (compute_complex_assign_jump_func): Handle unary expressions.
5567 (ipa_write_jump_function): Likewise.
5568 (ipa_read_jump_function): Likewise.
5569
5570 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
5571
5572 * simplify-rtx.c (simplify_binary_operation_1): Simplify
5573 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
5574 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
5575 is a const_int.
5576
5577 2016-11-09 David Malcolm <dmalcolm@redhat.com>
5578
5579 * print-rtl-function.c: Include varasm.h.
5580 (print_any_param_name): New function.
5581 (print_param): New function.
5582 (print_rtx_function): Call print_param for each argument.
5583 * print-rtl.c (rtx_writer::finish_directive): New function.
5584 * print-rtl.h (rtx_writer::finish_directive): New decl.
5585
5586 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
5587
5588 PR target/78262
5589 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
5590 operand 0 as earlyclobber.
5591 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
5592
5593 2016-11-09 Martin Liska <mliska@suse.cz>
5594
5595 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
5596
5597 2016-11-09 Jakub Jelinek <jakub@redhat.com>
5598
5599 PR target/77718
5600 * builtins.c (expand_builtin_memcmp): Formatting fix.
5601
5602 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
5603 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
5604 or of them, renumber other enumerators.
5605 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
5606 * doc/invoke.texi: Document -fsanitize=shift-base and
5607 -fsanitize-shift-exponent, document -fsanitize=shift as
5608 having those 2 suboptions.
5609
5610 2016-11-09 Richard Biener <rguenther@suse.de>
5611
5612 * fold-const.c (tree_swap_operands_p): Remove unused arg.
5613 * fold-const.c (tree_swap_operands_p): Likewise.
5614 (fold_binary_loc): Adjust.
5615 (fold_ternary_loc): Likewise.
5616 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
5617 * gimple-fold.c (fold_stmt_1): Likewise.
5618 * gimple-match-head.c (gimple_resimplify2): Likewise.
5619 (gimple_resimplify3): Likewise.
5620 (gimple_simplify): Likewise.
5621 * tree-ssa-dom.c (record_equality): Likewise.
5622 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
5623 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
5624 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
5625
5626 2016-11-09 Richard Biener <rguenther@suse.de>
5627
5628 * tree-ssa-dom.c (canonicalize_comparison): Remove.
5629 (optimize_stmt): Remove redundant pre-propagation canonicalization
5630 of comparison operand order.
5631
5632 2016-11-09 Martin Liska <mliska@suse.cz>
5633
5634 * fold-const-call.c (fold_const_call): Fix the folding.
5635
5636 2016-11-09 Richard Biener <rguenther@suse.de>
5637
5638 * common.opt (flag_evaluation_order): Remove.
5639 * expr.c (expand_operands): Remove code guarded by
5640 flag_evaluation_order.
5641 * fold-const.c (reorder_operands_p): Remove, it always returns
5642 true.
5643 (negate_expr_p): Remove calls to reorder_operands_p.
5644 (fold_negate_expr): Likewise.
5645 (tree_swap_operands_p): Likewise.
5646 (fold_binary_loc): Likewise.
5647
5648 2016-11-09 Andreas Schwab <schwab@suse.de>
5649
5650 PR target/78254
5651 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
5652 insns operating on a register.
5653
5654 2016-11-09 Richard Biener <rguenther@suse.de>
5655
5656 PR tree-optimization/78007
5657 * tree-vect-stmts.c (vectorizable_bswap): New function.
5658 (vectorizable_call): Call vectorizable_bswap for
5659 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
5660
5661 2016-11-09 Richard Biener <rguenther@suse.de>
5662
5663 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5664 Look at the DR_BASE_ADDRESS object for forcing alignment.
5665
5666 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
5667
5668 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
5669 (propagate_vr_accross_jump_function): Likewise.
5670 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5671 (load_from_param_1): New.
5672 (load_from_unmodified_param): Factor common part into load_from_param_1.
5673 (load_from_param): New.
5674 (compute_complex_assign_jump_func): Handle unary expressions.
5675 (ipa_write_jump_function): Likewise.
5676 (ipa_read_jump_function): Likewise.
5677
5678 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
5679
5680 PR ipa/78121
5681 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
5682 Also fold constant passed as argument while computing value range.
5683 (propagate_constants_accross_call): Pass param type.
5684 * ipa-prop.c: export ipa_get_callee_param_type.
5685 * ipa-prop.h: export ipa_get_callee_param_type.
5686
5687 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
5688
5689 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
5690 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
5691
5692 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
5693
5694 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
5695 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
5696 ASAN_STACK_MAGIC_MIDDLE.
5697 (asan_global_struct): Increase the size of fields.
5698 (asan_add_global): Add new field constructor.
5699 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
5700 __asan_version_mismatch_check_v8.
5701
5702 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
5703
5704 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
5705 at runtime.
5706
5707 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
5708
5709 PR target/70799
5710 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
5711 Handle ASHIFT and LSHIFTRT.
5712 (dimode_scalar_chain::compute_convert_gain): Ditto.
5713 (dimode_scalar_chain::convert_insn): Ditto.
5714
5715 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5716
5717 * gimple-ssa-store-merging.c: Include selftest.h
5718 (verify_array_eq): New function.
5719 (verify_shift_bytes_in_array): Likewise.
5720 (verify_shift_bytes_in_array_right): Likewise.
5721 (verify_clear_bit_region): Likewise.
5722 (verify_clear_bit_region_be): Likewise.
5723 (store_merging_c_tests): Likewise.
5724 * selftest.h (store_merging_c_tests): Declare prototype.
5725 * selftest-run-tests.c (selftest::run_tests): Run
5726 store_merging_c_tests.
5727
5728 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5729
5730 * config/arm/arm.opt (mold-rtx-costs): Delete.
5731 (mnew-generic-costs): Delete.
5732 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
5733 * config/arm/arm.c (arm_rtx_costs_1): Delete.
5734 (arm_size_rtx_costs): Likewise.
5735 (arm_slowmul_rtx_costs): Likewise.
5736 (arm_fastmul_rtx_costs): Likewise.
5737 (arm_xscale_rtx_costs): Likewise.
5738 (arm_9e_rtx_costs): Likewise.
5739 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
5740 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
5741 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
5742 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
5743 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
5744 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
5745 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
5746 arm_cortex_m7_tune):
5747 Delete rtx_costs field.
5748 (arm_new_rtx_costs): Rename to...
5749 (arm_rtx_costs_internal): ... This.
5750 (arm_rtx_costs): Remove old way of doing rtx costs.
5751
5752 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5753
5754 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
5755 (arm_fastmul_tune): Likewise.
5756 (arm_strongarm_tune): Likewise.
5757 (arm_xscale_tune): Likewise.
5758 (arm_9e_tune): Likewise.
5759 (arm_marvell_pj4_tune): Likewise.
5760 (arm_v6t2_tune): Likewise.
5761 (arm_v6m_tune): Likewise.
5762 (arm_fa726te_tune): Likewise.
5763
5764 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5765
5766 PR tree-optimization/78234
5767 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
5768 in start != 0 case.
5769
5770 2016-11-08 Martin Liska <mliska@suse.cz>
5771
5772 PR testsuite/78242
5773 * dbgcnt.def: Add new debug counter asan_use_after_scope.
5774 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
5775 with a value expr. Do not add artificial variables to
5776 live_switch_vars. Use the debug counter.
5777 (gimplify_target_expr): Use the debug counter.
5778 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
5779 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
5780 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
5781
5782 2016-11-08 Richard Biener <rguenther@suse.de>
5783
5784 * tree-vect-stmts.c (get_group_load_store_type): If the
5785 access is aligned do not trigger peeling for gaps.
5786 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
5787 force alignment of vars with DECL_USER_ALIGN.
5788
5789 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
5790
5791 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
5792
5793 2016-11-08 Richard Biener <rguenther@suse.de>
5794
5795 PR tree-optimization/78205
5796 * tree-vect-stmts.c (vectorizable_load): Move check whether
5797 we may run into gaps when BB vectorizing SLP permutations ...
5798 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
5799 here where we can do a more precise check.
5800
5801 2016-11-08 Richard Biener <rguenther@suse.de>
5802
5803 PR tree-optimization/78224
5804 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
5805 Split the fallthru edge in case its successor may have PHIs.
5806 Do not free dominance info.
5807
5808 2016-11-07 Jakub Jelinek <jakub@redhat.com>
5809
5810 PR target/78229
5811 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
5812 EH info even for bzhi and pdep/pext.
5813
5814 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
5815
5816 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
5817 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
5818
5819 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5820
5821 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
5822 if appropriate.
5823 * config/rs6000/vector.md (div<mode>3): Ditto.
5824
5825 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
5826
5827 * configure.ac (.hidden): Change to conftest_s string. Provide string
5828 for AIX assembler.
5829 (gcc_cv_ld_hidden): Yes for AIX.
5830 * configure: Regenerate.
5831
5832 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
5833
5834 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
5835 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
5836 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
5837 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5838 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
5839 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
5840 from #if to if.
5841 (rs6000_xcoff_visibility): New.
5842 (rs6000_xcoff_declare_function_name): Add visibility support.
5843 (rs6000_xcoff_asm_globalize_decl_name): New.
5844 (rs6000_xcoff_asm_output_aligned_decl_common): New.
5845 (rs6000_asm_weaken_decl): New.
5846 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
5847 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
5848 reference function.
5849
5850 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
5851
5852 PR driver/78206
5853 * incpath.c (remove_dup): Also silently ignore EPERM.
5854
5855 2016-11-07 Martin Jambor <mjambor@suse.cz>
5856
5857 * tree.c (verify_type_variant): Use pointer comparison to check that
5858 TYPE_SIZE_UNIT match.
5859
5860 2016-11-07 Jakub Jelinek <jakub@redhat.com>
5861
5862 PR target/77834
5863 * dse.c (dse_step5): Call scan_reads even if just
5864 insn_info->frame_read. Improve and fix dump file messages.
5865
5866 PR target/78227
5867 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
5868 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
5869
5870 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5871
5872 PR middle-end/35691
5873 * match.pd: Add following two patterns:
5874 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
5875 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
5876
5877 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
5878
5879 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
5880 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
5881 * rtl.h (duplicate_reg_notes): Declare.
5882 * rtlanal.c (duplicate_reg_note): New function.
5883
5884 PR rtl-optimization/77309
5885 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
5886 don't assume an equality comparison for plain COMPARE.
5887 (simplify_comparison): Pass a more accurate code to
5888 make_compound_operation.
5889
5890 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
5891
5892 * target.def (compute_pressure_classes): New target hook.
5893 * doc/tm.texi.in: Document it.
5894 * doc/tm.texi: Regenerate.
5895 * ira.c (setup_pressure_classes): Call target hook if defined.
5896
5897 2016-11-07 David Malcolm <dmalcolm@redhat.com>
5898
5899 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
5900 method.
5901 (rtx_writer::print_rtx): In compact mode, omit trailing operands
5902 that have the default values.
5903 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
5904 method.
5905 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
5906 label string from expected dump.
5907 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
5908 from expected dump.
5909
5910 2016-11-07 Jakub Jelinek <jakub@redhat.com>
5911
5912 PR target/77834
5913 * alias.c (nonoverlapping_memrefs_p): If one decl is
5914 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
5915
5916 2016-11-07 Richard Biener <rguenther@suse.de>
5917
5918 PR target/78229
5919 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
5920 EH info.
5921
5922 2016-11-07 Richard Biener <rguenther@suse.de>
5923
5924 PR tree-optimization/78218
5925 * gimple-ssa-store-merging.c
5926 (pass_store_merging::terminate_all_aliasing_chains):
5927 Drop unused argument, fix alias check to also consider uses.
5928 (pass_store_merging::execute): Adjust.
5929
5930 2016-11-07 Richard Biener <rguenther@suse.de>
5931
5932 PR tree-optimization/78228
5933 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
5934 undefined behavior.
5935
5936 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5937
5938 PR target/77822
5939 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
5940 aarch64_simd_shift_imm_<mode> predicate for operand 1.
5941 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
5942 to restrict them to an appropriate range and add FAIL check if the
5943 region they specify is out of range. Delete useless constraint
5944 strings.
5945 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
5946 2 and 3 to restrict their range and add pattern predicate.
5947
5948 2016-11-07 Martin Liska <mliska@suse.cz>
5949
5950 * asan.c (enum asan_check_flags): Move the enum to header file.
5951 (asan_init_shadow_ptr_types): Make type creation more generic.
5952 (shadow_mem_size): New function.
5953 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
5954 Rewritten stack unpoisoning code.
5955 (build_shadow_mem_access): Add new argument return_address.
5956 (instrument_derefs): Instrument local variables if use after scope
5957 sanitization is enabled.
5958 (asan_store_shadow_bytes): New function.
5959 (asan_expand_mark_ifn): Likewise.
5960 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
5961 * asan.h (enum asan_mark_flags): Moved here from asan.c
5962 (asan_protect_stack_decl): Protect all declaration that need
5963 to live in memory.
5964 (asan_sanitize_use_after_scope): New function.
5965 (asan_no_sanitize_address_p): Likewise.
5966 * cfgexpand.c (partition_stack_vars): Consider
5967 asan_sanitize_use_after_scope in condition.
5968 (expand_stack_vars): Likewise.
5969 * common.opt (-fsanitize-address-use-after-scope): New option.
5970 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
5971 Explain the parameter.
5972 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
5973 * gimplify.c (build_asan_poison_call_expr): New function.
5974 (asan_poison_variable): Likewise.
5975 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
5976 variables that have address taken.
5977 (gimplify_decl_expr): Likewise.
5978 (gimplify_target_expr): Likewise for C++ temporaries.
5979 (sort_by_decl_uid): New function.
5980 (gimplify_expr): Unpoison all variables for a label we can jump
5981 from outside of a scope.
5982 (gimplify_switch_expr): Unpoison variables defined in the switch
5983 context.
5984 (gimplify_function_tree): Clear asan_poisoned_variables.
5985 (asan_poison_variables): New function.
5986 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
5987 * internal-fn.c (expand_ASAN_MARK): New function.
5988 * internal-fn.def (ASAN_MARK): Declare.
5989 * opts.c (finish_options): Handle -fstack-reuse if
5990 -fsanitize-address-use-after-scope is enabled.
5991 (common_handle_option): Enable address sanitization if
5992 -fsanitize-address-use-after-scope is enabled.
5993 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
5994 New parameter.
5995 * params.h: Likewise.
5996 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
5997 * sanitizer.def: Define __asan_poison_stack_memory and
5998 __asan_unpoison_stack_memory functions.
5999 * asan.c (asan_mark_poison_p): New function.
6000 (transform_statements): Handle asan_mark_poison_p calls.
6001 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
6002
6003 2016-11-07 Tamar Christina <tamar.christina@arm.com>
6004
6005 PR driver/78196
6006 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
6007
6008 2016-11-07 Martin Liska <mliska@suse.cz>
6009
6010 * tree-profile.c (gimple_gen_time_profiler): Set proper type
6011 to time_profiler_counter_ptr.
6012
6013 2016-11-07 Richard Biener <rguenther@suse.de>
6014
6015 PR tree-optimization/37150
6016 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
6017 parameter.
6018 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
6019 (vect_analyze_slp_cost_1): Account for the real number of
6020 permutations emitted and for dead loads.
6021 (vect_transform_slp_perm_load): Add n_perms parameter counting
6022 the number of emitted permutations.
6023 * tree-vect-stmts.c (vectorizable_load): Adjust.
6024
6025 2016-11-07 Richard Biener <rguenther@suse.de>
6026
6027 PR tree-optimization/78189
6028 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
6029 alignment computation.
6030
6031 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
6032
6033 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
6034
6035 2016-11-05 Martin Sebor <msebor@redhat.com>
6036
6037 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
6038 documentation.
6039
6040 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
6041
6042 PR bootstrap/78188
6043 PR c++/71848
6044 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
6045
6046 2016-11-04 Jakub Jelinek <jakub@redhat.com>
6047
6048 PR target/77834
6049 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
6050 doesn't have rtl set.
6051
6052 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6053
6054 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
6055 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
6056 rs6000_gimple_fold_builtin.
6057 (rs6000_gimple_fold_builtin): New function. Add handling for
6058 early expansion of vector addition builtins.
6059
6060 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
6061
6062 * expr.h (copy_blkmode_from_reg): Delete.
6063 * expr.c (copy_blkmode_from_reg): Make static.
6064
6065 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
6066
6067 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
6068 * combine.c (LOAD_EXTEND_OP): Delete.
6069 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
6070 * cse.c (LOAD_EXTEND_OP): Delete.
6071 * fold-const.c (LOAD_EXTEND_OP): Likewise.
6072 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
6073 * postreload.c (LOAD_EXTEND_OP): Delete.
6074 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
6075 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
6076 (find_reloads): Likewise.
6077 * reload1.c (eliminate_regs_1): Likewise.
6078 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
6079 (num_sign_bit_copies1): Likewise.
6080
6081 2016-11-04 David Malcolm <dmalcolm@redhat.com>
6082
6083 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
6084 (selftest::ix86_test_dumping_hard_regs): New function.
6085 (selftest::ix86_run_selftests): New function.
6086 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
6087 selftest::ix86_run_selftests.
6088 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
6089 * doc/tm.texi: Regenerate
6090 * selftest-rtl.h: New file.
6091 * rtl-tests.c: Include "selftest-rtl.h".
6092 (selftest::assert_rtl_dump_eq): Make non-static.
6093 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
6094 (selftest::test_dumping_regs): Update comment.
6095 * selftest-run-tests.c: Include "target.h".
6096 (selftest::run_tests): If non-NULL, call
6097 targetm.run_target_selftests.
6098 * target.def (run_target_selftests): New hook.
6099
6100 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6101
6102 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
6103 representative core for this architecture.
6104 * config/arm/arm-cores.def (cortex-m33): Define new processor.
6105 * config/arm/arm-tables.opt: Regenerate.
6106 * config/arm/arm-tune.md: Likewise.
6107 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
6108 valid -mcpu options.
6109 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
6110
6111 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6112
6113 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
6114 representative core for this architecture.
6115 * config/arm/arm-cores.def (cortex-m23): Define new processor.
6116 * config/arm/arm-tables.opt: Regenerate.
6117 * config/arm/arm-tune.md: Likewise.
6118 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
6119 this tuning parameters apply to in the comment.
6120 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
6121 valid -mcpu options.
6122 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
6123
6124 2016-11-04 Bin Cheng <bin.cheng@arm.com>
6125
6126 * fold-const.c (fold_cond_expr_with_comparison): Remove call
6127 to pedantic_non_lvalue_loc. Remove useless code for lvalue
6128 where cond_expr can't be a lvalue.
6129
6130 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
6131
6132 * config/arc/arc.c (arc_process_double_reg_moves): Use
6133 gen_dexcl_2op call.
6134 * config/arc/arc.md (movsi_insn): Disable unsupported move
6135 instructions for ARCv2 cores.
6136 (movdi): Use prepare_move_operands.
6137 (movsf, movdf): Use move_dest_operand predicate.
6138 * config/arc/constraints.md (Chs): Enable when barrel shifter is
6139 present.
6140 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
6141 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
6142 also a destination.
6143 (dexcl_3op_peep2_insn_nores): Likewise.
6144 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
6145 (LINK_COMMAND_SPEC): Remove.
6146
6147 2016-11-04 Richard Biener <rguenther@suse.de>
6148
6149 PR middle-end/78185
6150 * loop-invariant.c (find_exits): Record entering inner
6151 loops as possibly exiting to handle infinite sub-loops.
6152 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
6153 (fill_always_executed_in_1): Honor infinite child loops.
6154
6155 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6156
6157 PR target/78192
6158 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
6159 has already been adjusted for endianness, so don't adjust it any
6160 further.
6161
6162 PR target/77993
6163 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
6164 ICmode unless we have standard PowerPC floating point.
6165 * config/rs6000/rs6000.md (FP iterator): Likewise.
6166 (FMOVE128 iterator): Likewise.
6167
6168 2016-11-03 Jakub Jelinek <jakub@redhat.com>
6169 Alexandre Oliva <aoliva@redhat.com>
6170 Jason Merrill <jason@redhat.com>
6171
6172 PR debug/28767
6173 PR debug/56974
6174 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
6175 langhook.
6176 * langhooks.c (lhd_type_dwarf_attribute): New function.
6177 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
6178 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
6179 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
6180 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
6181 (check_qualified_type, check_aligned_type): Call it.
6182 * dwarf2out.c (modified_type_die): Don't use type_main_variant
6183 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
6184 check_base_type and check_lang_type.
6185 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
6186 return early. For pointer-to-data-member add DW_AT_use_location
6187 attribute.
6188 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
6189 if needed.
6190 (gen_type_die_with_usage): Don't use type_main_variant
6191 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
6192 check_base_type and check_lang_type. Formatting fixes. Call
6193 get_debug_type langhook.
6194
6195 2016-11-03 Jason Merrill <jason@redhat.com>
6196
6197 * tree.c (check_lang_type): New.
6198 (check_qualified_type): Use it.
6199 (check_aligned_type): Use it.
6200 * tree.h: Declare it.
6201
6202 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
6203
6204 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
6205 (arm*-freebsd*): Likewise.
6206 (arm*-*-netbsdelf*): Likewise.
6207 (arm*-*-linux*): Likewise.
6208 (arm*-*-uclinux*eabi*): Likewise.
6209 (arm*-*-phoenix*): Likewise.
6210 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
6211 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
6212 specified. Default to arm6 if target_cpu_cname is not set.
6213 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
6214 default cpu has been correctly configured.
6215 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
6216 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
6217 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
6218 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
6219 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
6220 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
6221 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
6222
6223 2016-11-03 Jiong Wang <jiong.wang@arm.com>
6224
6225 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
6226 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
6227 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
6228 (output_cfa_loc): Support DW_CFA_val_expression.
6229 (output_cfa_loc_raw): Likewise.
6230 (output_cfi): Likewise.
6231 (output_cfi_directive): Likewise.
6232 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
6233 (dw_cfi_oprnd2_desc): Likewise.
6234 (mem_loc_descriptor): Recognize new pattern generated for value
6235 expression.
6236
6237 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
6238
6239 PR rtl-optimization/78186
6240 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
6241 well, when converting to IOR.
6242
6243 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
6244
6245 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
6246 (vec_interleave_highv8qi): Likewise.
6247
6248 2016-11-03 Martin Liska <mliska@suse.cz>
6249
6250 * profile.c (instrument_values): Fix coding style.
6251 (branch_prob): Use renamed function.
6252 * tree-profile.c (init_ic_make_global_vars): Likewise.
6253 (gimple_init_edge_profiler): Rename to
6254 gimple_init_gcov_profiler.
6255 tree_time_profiler_counter variable declaration.
6256 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
6257 emission.
6258 * value-prof.h: Remove an argument.
6259
6260 2016-11-03 Richard Biener <rguenther@suse.de>
6261
6262 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
6263 symtab_node::get_create.
6264
6265 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6266
6267 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
6268 Move comments into more natural position.
6269
6270 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
6271
6272 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
6273 (PTRDIFF_TYPE): Define as int.
6274
6275 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6276
6277 * ccmp.c (expand_ccmp_expr_1): Adjust.
6278 (expand_ccmp_expr): Likewise.
6279 (expand_ccmp_next): Likewise.
6280 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
6281 (aarch64_gen_ccmp_first): Likewise.
6282 * doc/tm.texi: Regenerate.
6283 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
6284 (gen_ccmp_next): Likewise.
6285
6286 2016-11-03 Bin Cheng <bin.cheng@arm.com>
6287
6288 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
6289 (vect_is_simple_reduction): Swap cond_reduction by inversion.
6290
6291 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
6292
6293 * config/i386/i386.c (ix86_init_libfuncs): New. Call
6294 darwin_rename_builtins here.
6295 (ix86_expand_divmod_libfunc): New.
6296 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
6297 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
6298
6299 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
6300 Nathan Sidwell <nathan@acm.org>
6301
6302 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
6303
6304 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
6305
6306 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
6307 New function.
6308 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
6309 to format MODE_INT and MODE_PARTIAL_INT literals.
6310
6311 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
6312
6313 PR target/78168
6314 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
6315 NULL if TARGET_SPE_ABI.
6316
6317 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6318
6319 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
6320 clear padding bits even when they're less than a byte.
6321
6322 2016-11-02 Richard Biener <rguenther@suse.de>
6323
6324 * gimple-ssa-store-merging.c: Include gimplify-me.h.
6325 (imm_store_chain_info::output_merged_stores): Force base_addr
6326 to be proper GIMPLE for a MEM_REF address.
6327 (pass_store_merging::execute): Restrict negative bitpos
6328 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
6329 check. Take into account non-NULL_TREE offset if the base
6330 is already addressable.
6331
6332 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
6333
6334 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
6335 New pattern.
6336 (aarch64_be_crypto_sha1hv4si): New pattern.
6337
6338 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
6339
6340 * config/aarch64/aarch64.md (add<mode>3): Remove
6341 redundant code. Don't split frame based additions.
6342
6343 2016-11-02 Richard Biener <rguenther@suse.de>
6344
6345 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
6346 redundant val and dest members.
6347 (store_immediate_info::store_immediate_info): Adjust.
6348 (merged_store_group::merged_store_group): Adjust.
6349 (merged_store_group::apply_stores): Likewise.
6350 (struct imm_store_chain_info): Add base_addr field.
6351 (imm_store_chain_info::imm_store_chain_info): New constructor.
6352 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
6353 (imm_store_chain_info::output_merged_store): Likewise. Use
6354 addr_base which is already the address.
6355 (imm_store_chain_info::output_merged_stores): Likewise.
6356 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
6357 imm_store_chain_info instead of base. Fix alias check.
6358 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
6359 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
6360 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
6361 use the address of the base and adjust for other changes.
6362
6363 2016-11-02 Martin Liska <mliska@suse.cz>
6364
6365 * fold-const-call.c (host_size_t_cst_p): Test whether
6366 t is convertible to size_t.
6367
6368 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6369
6370 PR tree-optimization/78170
6371 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
6372 introduced by native_encode_expr on little-endian as well.
6373
6374 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6375
6376 PR tree-optimization/78162
6377 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
6378 as invalid.
6379
6380 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6381
6382 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
6383 function comment.
6384 (aarch64_next_callee_save): Likewise.
6385 (aarch64_pushwb_single_reg): Likewise.
6386 (aarch64_gen_storewb_pair): Likewise.
6387 (aarch64_push_regs): Likewise.
6388 (aarch64_gen_loadwb_pair): Likewise.
6389 (aarch64_pop_regs): Likewise.
6390 (aarch64_gen_store_pair): Likewise.
6391 (aarch64_gen_load_pair): Likewise.
6392 (aarch64_save_callee_saves): Likewise.
6393 (aarch64_restore_callee_saves): Likewise.
6394
6395 2016-11-02 Richard Biener <rguenther@suse.de>
6396
6397 PR tree-optimization/78035
6398 PR tree-optimization/77964
6399 * gimple-pretty-print.c (pp_points_to_solution): Print
6400 vars_contains_interposable.
6401 * tree-ssa-alias.c: Include varasm.h.
6402 (ptrs_compare_unequal): Check vars_contains_interposable and
6403 decl_binds_to_current_def_p.
6404 (dump_points_to_solution): Dump vars_contains_interposable.
6405 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
6406 flag.
6407 * tree-ssa-structalias.c: Include varasm.h.
6408 (set_uids_in_ptset): Record whether vars contains a
6409 not decl_binds_to_current_def_p variable in vars_contains_interposable.
6410 (ipa_escaped_pt): Update initializer.
6411
6412 2016-11-02 Richard Biener <rguenther@suse.de>
6413
6414 PR tree-optimization/78047
6415 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
6416 fake field at offset zero conservatively regarding to may_have_pointers.
6417
6418 2016-11-02 Richard Biener <rguenther@suse.de>
6419
6420 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
6421 infer_value_range on stmt ops and update value-ranges.
6422 Dump visited stmts and blocks.
6423 (evrp_dom_walker::push_value_range): Dump changes.
6424 (evrp_dom_walker::pop_value_range): Likewise.
6425 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
6426
6427 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6428
6429 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
6430 rtx_insn *.
6431 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
6432
6433 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6434
6435 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
6436 and adjust for that.
6437 * cfgrtl.h (delete_insn_chain): Adjust prototype.
6438
6439 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6440
6441 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
6442 to rtx_insn *.
6443 (transcode_memory_rtx): Likewise.
6444 (move_to_acc): Likewise.
6445 (move_from_acc): Likewise.
6446 (move_acc_to_reg): Likewise.
6447 (move_to_x): Likewise.
6448 (move_to_hl): Likewise.
6449 (move_to_de): Likewise.
6450 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
6451 (rs6000_emit_savres_rtx): Likewise.
6452 (rs6000_emit_prologue): Likewise.
6453 * reorg.c (update_reg_unused_notes): Likewise.
6454 * rtl.h (remove_note): Adjust prototype.
6455 * rtlanal.c (remove_note): Make argument type rtx_insn *.
6456
6457 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6458
6459 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
6460 variables so some can be rtx_insn *.
6461 (alpha_emit_xfloating_libcall): Likewise.
6462 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
6463 (mips_legitimize_tls_address): Likewise.
6464 * optabs.c (expand_binop): Likewise.
6465 * reload1.c (gen_reload): Likewise.
6466
6467 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6468
6469 * reorg.c (relax_delay_slots): Split up the trial variable.
6470
6471 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6472
6473 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
6474 of variables rtx_insn *.
6475 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
6476 (legitimize_tls_address): Likewise.
6477 * config/bfin/bfin.c (hwloop_optimize): Likewise.
6478 (bfin_gen_bundles): Likewise.
6479 * config/c6x/c6x.c (reorg_split_calls): Likewise.
6480 (c6x_reorg): Likewise.
6481 * config/frv/frv.c (frv_reorder_packet): Likewise.
6482 * config/i386/i386.c (ix86_split_idivmod): Likewise.
6483 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
6484 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
6485 * config/mn10300/mn10300.c: Likewise.
6486 * config/rl78/rl78.c: Likewise.
6487 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
6488 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
6489 (sh_expand_cmpnstr): Likewise.
6490 (sh_expand_strlen): Likewise.
6491 (sh_expand_setmem): Likewise.
6492 * config/sh/sh.md: Likewise.
6493 * emit-rtl.c (emit_pattern_before): Likewise.
6494 * except.c: Likewise.
6495 * final.c: Likewise.
6496 * jump.c: Likewise.
6497
6498 2016-11-01 Jason Merrill <jason@redhat.com>
6499
6500 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
6501 a COND_EXPR with constant condition.
6502
6503 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6504
6505 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
6506 and its initialization.
6507
6508 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6509
6510 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
6511 HAVE_AS_LEB128.
6512
6513 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6514
6515 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
6516 argument, don't call add_linkage_name if it is true.
6517 (gen_variable_die): For C++ inline static data members, consider the
6518 initial call when old_die is NULL to be declaration and call
6519 add_name_and_src_coords_attributes in that case with true as
6520 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
6521 (gen_member_die): For C++ inline static data members, emit a
6522 definition DIE right away in DW_TAG_compile_unit context.
6523
6524 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
6525
6526 PR target/78166
6527 * config/pa/pa.md: Add new shift/add patterns to handle
6528 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
6529
6530 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
6531
6532 * config/xtensa/xtensa-protos.h
6533 (xtensa_use_return_instruction_p): New prototype.
6534 * config/xtensa/xtensa.c (xtensa_current_frame_size,
6535 xtensa_callee_save_size): Remove.
6536 (struct machine_function): Add new fields: current_frame_size,
6537 callee_save_size, frame_laid_out and epilogue_done.
6538 (compute_frame_size, xtensa_expand_prologue,
6539 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
6540 cfun->machine->callee_save_size and xtensa_current_frame_size
6541 with cfun->machine->current_frame_size.
6542 (compute_frame_size): Update cfun->machine->frame_laid_out and
6543 don't update frame layout after reload completion.
6544 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
6545 instead of zeroing xtensa_current_frame_size.
6546 (xtensa_use_return_instruction_p): New function.
6547 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
6548 declaration.
6549 (INITIAL_ELIMINATION_OFFSET): Use return value of
6550 compute_frame_size instead of xtensa_current_frame_size value.
6551 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
6552 function xtensa_use_return_instruction_p instead of inline code.
6553
6554 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6555
6556 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
6557 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
6558 * dwarf2out.c (rnglist_idx): New variable.
6559 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
6560 (DEBUG_RNGLISTS_SECTION): Define.
6561 (ranges_base_label): New variable.
6562 (size_of_die) <case dw_val_class_range_list>: If using
6563 DW_FORM_rnglistx, count size of uleb128 of range list index.
6564 (value_format) <case dw_val_class_range_list>: For
6565 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
6566 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
6567 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
6568 (add_ranges_num): Remove useless prototype. Don't multiply
6569 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
6570 for new fields added to dw_ranges struct.
6571 (add_ranges): Add maybe_new_sec argument and pass it
6572 through to add_ranges_num.
6573 (note_rnglist_head): New function.
6574 (add_ranges_by_labels): Pass true as maybe_new_sec to
6575 add_ranges_num, call note_rnglist_head on the head of the list.
6576 (output_ranges): Add function comment. Switch to
6577 .debug_ranges section here and emit .Ldebug_ranges0 label.
6578 (index_rnglists, output_rnglists): New functions.
6579 (gen_subprogram_die): Formatting fixes.
6580 (add_high_low_attributes): Don't divide offsets
6581 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
6582 first list element or when pointing into the middle of
6583 a list. Pass true as second argument to add_ranges on the
6584 first block fragment after cold/hot section switch.
6585 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
6586 section instead of .debug_ranges. Initialize
6587 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
6588 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
6589 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
6590 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
6591 Call output_rnglists for -gdwarf-5.
6592 (dwarf2out_c_finalize): Clear rnglist_idx.
6593
6594 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
6595
6596 * combine.c (simplify_compare_const): Add gcc_fallthrough.
6597
6598 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
6599 Tamar Christina <tamar.christina@arm.com>
6600
6601 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
6602 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
6603 (vmaxnmq_f32): Likewise.
6604 (vminnm_f32): Likewise.
6605 (vminnmq_f32): Likewise.
6606 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
6607 (vminnm): Likewise.
6608 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
6609 expander.
6610
6611 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
6612
6613 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
6614 binary floating point types supported by the hardware except for
6615 double.
6616 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
6617 vector instruction for optimizing extracting a SImode from a
6618 V4SImode vector and converting it to floating point.
6619 (vsx_xvcvuxwdp_df): Likewise.
6620 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
6621 registers to be any VSX register. Move stores to the end of the
6622 constraints.
6623 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
6624 to optimize extracting a SImode from a V4SImode vector and
6625 converting it to a binary floating point type supported by the
6626 hardware. Use the vector converts instead of extracting the
6627 element, sign extending it, and then converting it to double.
6628 Other floating point types than double first convert to double,
6629 then the double is converted to that type.
6630 (vsx_extract_si_<uns>float_<mode>): Likewise.
6631
6632 2016-10-31 Andrew Pinski <apinski@cavium.com>
6633
6634 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
6635 Rewrite handling of part num to handle the case where
6636 multiple implementers share the same part num.
6637
6638 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6639 Jakub Jelinek <jakub@redhat.com>
6640
6641 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
6642 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
6643
6644 2016-10-31 Jakub Jelinek <jakub@redhat.com>
6645
6646 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
6647 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
6648 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
6649 (is_cu_die, is_unit_die): Likewise.
6650 (should_move_die_to_comdat, break_out_comdat_types): Adjust
6651 comments for DWARF5 DW_UT_type units.
6652 (output_compilation_unit_header): Add UT argument, output
6653 start of DWARF5 .debug_info section header.
6654 (output_comp_unit): Add dwo_id argument. Adjust
6655 output_compilation_unit_header caller, for DW_UT_split_compile
6656 emit dwo_id field, otherwise padding1. Emit padding2 field.
6657 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
6658 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
6659 (output_skeleton_debug_sections): Add dwo_id argument, for
6660 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
6661 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
6662 DW_UT_type or DW_UT_split_type units rather than .debug_types.
6663 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
6664 DW_TAG_compile_unit for skeleton unit die. Don't add
6665 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
6666 address to output_comp_unit and output_skeleton_debug_sections.
6667
6668 * dwarf2out.c (debug_line_str_section): New variable.
6669 (debug_line_str_hash): Likewise.
6670 (DEBUG_LINE_STR_SECTION): Define.
6671 (set_indirect_string): Handle DW_FORM_line_strp like
6672 DW_FORM_strp.
6673 (find_string_form): Fix up formatting.
6674 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
6675 Fix up indentation.
6676 (output_die): Handle DW_FORM_line_strp.
6677 (DWARF5_USE_DEBUG_LINE_STR): Define.
6678 (output_line_string): New function.
6679 (output_file_names): Add -gdwarf-5 support.
6680 (output_line_info): Likewise.
6681 (init_sections_and_labels): Initialize debug_line_str_section.
6682 (output_indirect_string): Change 2nd argument from void *
6683 to enum dwarf_form form, compare with form rather than
6684 DW_FORM_strp.
6685 (output_indirect_strings): Pass DW_FORM_strp to
6686 output_indirect_string traversion.
6687 (dwarf2out_finish): Output .debug_line_str strings.
6688 (dwarf2out_c_finalize): Clear debug_line_str_section and
6689 debug_line_str_hash.
6690
6691 2016-10-31 Tom Tromey <tom@tromey.com>
6692
6693 PR debug/77315
6694 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
6695 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
6696 DW_OP_GNU_push_tls_address case.
6697 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
6698
6699 2016-10-31 Jakub Jelinek <jakub@redhat.com>
6700
6701 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
6702 for frame_offset_rel bit.
6703 (struct array_descr_info): Add rank field.
6704 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
6705 and placeholder_seen fields.
6706 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
6707 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
6708 DW_OP_pick 1 into DW_OP_over.
6709 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
6710 gen_variant_part): Clear placeholder_{arg,seen}.
6711 (loc_list_from_tree_1): Drop const from context argument.
6712 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
6713 (loc_list_for_address_of_addr_expr_of_indirect_ref,
6714 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
6715 context argument.
6716 (add_scalar_info): Drop const from context argument. Handle
6717 context->placeholder_arg.
6718 (add_bound_info): Drop const from context argument.
6719 (gen_descr_array_type_die): Drop const from ctx variable.
6720 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
6721 attribute and use a single DW_TAG_generic_subrange instead of
6722 7 DW_TAG_subrange_type for assumed rank arrays.
6723
6724 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
6725 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
6726 from bool to 1-bit uchar bitfield. Add num_assigned and
6727 offset_emitted bitfields.
6728 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
6729 for dw_val_class_lineptr and dw_val_class_macptr. Handle
6730 dw_val_class_loclistsptr.
6731 (new_addr_loc_descr): Fix up formatting.
6732 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
6733 (add_AT_low_high_pc): Fix up formatting.
6734 (add_AT_loclistsptr): New function.
6735 (AT_lbl): Allow dw_val_class_loclistsptr.
6736 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
6737 Handle dw_val_class_loclistsptr.
6738 (loc_list_idx): New variable.
6739 (output_loclists_offsets, assign_location_list_indexes): New
6740 functions.
6741 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
6742 add size_of_uleb128 of the index. Drop never used
6743 dwarf_split_debug_info AT_index handling. Handle
6744 dw_val_class_loclistsptr.
6745 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
6746 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
6747 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
6748 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
6749 DW_FORM_loclistx indexes.
6750 (output_attr_index_or_value): Fix up formatting. Don't handle
6751 dw_val_class_loc_list here.
6752 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
6753 For dw_val_class_loc_list call output_loc_list_offset rather than
6754 output_attr_index_or_value.
6755 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
6756 or .debug_loclists.dwo section name for debug_loc_section.
6757 (resolve_addr_in_expr): Formatting fix.
6758 (index_location_lists): Likewise.
6759 (dwarf2out_finish): If there are any location lists, for
6760 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
6761 index_location_lists only if have_location_lists. Call
6762 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
6763 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
6764 -gsplit-dwarf also emit offset table.
6765
6766 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
6767 (size_of_die, value_format, output_die): Use
6768 DW_FORM_data16 for 128-bit dw_val_class_const_double or
6769 dw_val_class_wide_int.
6770
6771 * dwarf2out.c (dwarf_op): Renamed to ...
6772 (dwarf_OP): ... this.
6773 (convert_descriptor_to_mode, scompare_loc_descriptor,
6774 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
6775 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
6776 callers.
6777 (dwarf_AT, dwarf_TAG): New functions.
6778 (check_die): Disallow DW_AT_call_all_calls next to
6779 DW_AT_GNU_all_call_sites.
6780 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
6781 and attributes instead of the corresponding GNU tag and attributes.
6782 (gen_subprogram_die): Likewise. Emit call site information even
6783 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
6784 DW_AT_defaulted in comment.
6785 (resolve_addr): Handle DW_AT_call_origin attribute on
6786 DW_TAG_call_site DIE like DW_AT_abstract_origin on
6787 DW_TAG_GNU_call_site DIE.
6788
6789 * dwarf2out.c (dwarf_op): New function.
6790 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
6791 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
6792 (output_loc_operands, output_loc_operands_raw): Likewise.
6793 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
6794 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
6795 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
6796 if dwarf_version < 5.
6797 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
6798 DW_OP_GNU_xxx.
6799 (scompare_loc_descriptor, ucompare_loc_descriptor,
6800 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
6801 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
6802 optimize_location_into_implicit_ptr): Likewise. Only punt for
6803 !dwarf_strict if dwarf_version < 5.
6804 (string_cst_pool_decl): Adjust comment.
6805 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
6806
6807 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
6808 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
6809 (struct dw_val_node): Add val_file_implicit field.
6810 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
6811 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
6812 output_die): Handle dw_val_class_const_implicit,
6813 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
6814 (abbrev_die_table): Change into va_gc vec.
6815 (abbrev_die_table_allocated, abbrev_die_table_in_use,
6816 ABBREV_DIE_TABLE_INCREMENT): Remove.
6817 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
6818 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
6819 variables.
6820 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
6821 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
6822 vectors.
6823 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
6824 functions.
6825 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
6826 the implicit value.
6827 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
6828 vec.
6829 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
6830 unit. Call optimize_abbrev_table.
6831 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
6832 abbrev_die_table being a va_gc vec.
6833
6834 PR tree-optimization/77860
6835 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
6836 also integral complex and vector constants.
6837
6838 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
6839 optimize_macinfo_range, save_macinfo_strings): Replace
6840 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
6841 (output_macinfo): Likewise. Emit .debug_macro* rather than
6842 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
6843 (init_sections_and_labels): Use .debug_macro* labels rather than
6844 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
6845 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
6846 or DW_AT_GNU_macros for -gdwarf-5.
6847
6848 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
6849
6850 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
6851
6852 2016-09-11 Le-Chun Wu <lcwu@google.com>
6853 Mark Wielaard <mjw@redhat.com>
6854
6855 * common.opt (Wshadow=global): New option. Default for -Wshadow.
6856 (Wshadow=local): New option.
6857 (Wshadow-local): Hidden alias for -Wshadow=local.
6858 (Wshadow=compatible-local): New option.
6859 (Wshadow-compatible-local): Hidden alias for
6860 -Wshadow=compatible-local.
6861 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
6862 Wshadow=compatible-local.
6863
6864 2016-10-31 Bin Cheng <bin.cheng@arm.com>
6865
6866 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
6867 Check slp defs for COND_EXPR by swapping/inverting operands if the
6868 new parameter SWAP indicates so.
6869 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
6870 is isomorphic to the first stmt via swapping/inverting. Store swap
6871 information in the new parameter SWAP.
6872 (vect_build_slp_tree): New local array SWAP and pass it to function
6873 vect_build_slp_tree_1. Cleanup result handling code for function
6874 call to vect_get_and_check_slp_defs. Skip operand swapping if the
6875 order of operands has been fixed as indicated by SWAP[i].
6876
6877 2016-10-31 Bin Cheng <bin.cheng@arm.com>
6878
6879 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
6880 unnecessary data dependence check after visited store stmt.
6881
6882 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6883
6884 PR tree-optimization/71915
6885 PR tree-optimization/71490
6886 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
6887 stride_type field.
6888 (find_basis_for_base_expr): Require stride types to match when
6889 seeking a basis.
6890 (alloc_cand_and_find_basis): Record the stride type.
6891 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
6892 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
6893 the expressions having those types.
6894 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
6895 (create_mul_ssa_cand): Likewise.
6896 (create_mul_imm_cand): Likewise.
6897 (create_add_ssa_cand): Likewise.
6898 (create_add_imm_cand): Likewise.
6899 (legal_cast_p_1): Change interface to accept types rather than the
6900 expressions having those types.
6901 (legal_cast_p): Pass types to legal_cast_p_1.
6902 (slsr_process_cast): Pass stride type to
6903 alloc_cand_and_find_basis.
6904 (slsr_process_copy): Likewise.
6905 (dump_candidate): Display stride type when a cast exists.
6906 (create_add_on_incoming_edge): Introduce a cast when necessary for
6907 the stride type.
6908 (analyze_increments): Change the code checking for invalid casts
6909 to rely on the stride type, and update the documentation and
6910 example. Change the code checking for pointer multiplies to rely
6911 on the stride type.
6912 (insert_initializers): Introduce a cast when necessary for the
6913 stride type. Use the stride type for the type of the initializer.
6914
6915 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6916
6917 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
6918
6919 2016-10-29 Jakub Jelinek <jakub@redhat.com>
6920
6921 PR rtl-optimization/77919
6922 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
6923 into memory if both modes are complex and their inner modes have the
6924 same precision. If the two modes are different complex modes, convert
6925 each part separately and generate a new CONCAT.
6926
6927 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
6928
6929 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
6930
6931 2016-10-29 Jakub Jelinek <jakub@redhat.com>
6932
6933 PR target/78148
6934 * gimple-ssa-store-merging.c
6935 (imm_store_chain_info::output_merged_store): Use build_aligned_type
6936 instead of SET_TYPE_ALIGN on shared integral type.
6937
6938 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
6939
6940 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
6941 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
6942 Adjust comment.
6943
6944 2016-10-28 Jeff Law <law@redhat.com>
6945
6946 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
6947 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
6948
6949 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
6950
6951 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
6952
6953 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
6954
6955 * target.def (min_arithmetic_precision): New hook.
6956 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
6957 * doc/tm.texi: Regenerate.
6958 * internal-fn.c (expand_arith_overflow): Adjust handling of target
6959 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
6960 * targhooks.c (default_min_arithmetic_precision): New function.
6961 * targhooks.h (default_min_arithmetic_precision): Declare.
6962 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
6963 (sparc_min_arithmetic_precision): New function.
6964
6965 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
6966
6967 PR target/71847
6968 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
6969 Swap commutative operands in new RTL if needed. Handle zero_ext
6970 in the set_dest.
6971 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
6972 PATTERN (insn).
6973
6974 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6975 Kugan Vivekanandarajah <kuganv@linaro.org>
6976 Jim Wilson <jim.wilson@linaro.org>
6977
6978 PR tree-optimization/43721
6979 * target.def: New hook expand_divmod_libfunc.
6980 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
6981 * doc/tm.texi: Regenerate.
6982 * internal-fn.def: Add new entry for DIVMOD ifn.
6983 * internal-fn.c (expand_DIVMOD): New.
6984 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
6985 targhooks.h.
6986 (widen_mul_stats): Add new field divmod_calls_inserted.
6987 (target_supports_divmod_p): New.
6988 (divmod_candidate_p): Likewise.
6989 (convert_to_divmod): Likewise.
6990 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
6991 renumber_gimple_stmt_uids at beginning of function. Call
6992 convert_to_divmod and record stats for divmod.
6993 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
6994 TARGET_EXPAND_DIVMOD_LIBFUNC.
6995 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
6996 divmod_simode.
6997
6998 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
6999 Segher Boessenkool <segher@kernel.crashing.org>
7000
7001 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
7002 swapping the arms of the branch.
7003 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
7004 sequence for the generic signed-signed-signed case.
7005
7006 2016-10-28 Jeff Law <law@redhat.com>
7007
7008 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
7009 fallthru comment.
7010 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
7011
7012 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
7013
7014 PR rtl-optimization/78029
7015 * function.c (prologue_contains, epilogue_contains): New functions.
7016 (record_prologue_seq, record_epilogue_seq): New functions.
7017 * function.h (prologue_contains, epilogue_contains,
7018 record_prologue_seq, record_epilogue_seq): New declarations.
7019 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
7020 mixing prologue and epilogue insns.
7021 (init_deps): Initialize the new fields in struct deps_desc.
7022 * sched-int.h (struct deps_desc): New fields last_prologue,
7023 last_epilogue, and last_logue_was_epilogue.
7024 * shrink-wrap.c (emit_common_heads_for_components): Record all
7025 emitted prologue and epilogue insns.
7026 (emit_common_tails_for_components): Ditto.
7027 (insert_prologue_epilogue_for_components): Ditto.
7028
7029 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7030
7031 PR middle-end/22141
7032 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
7033 * common.opt (fstore-merging): New Optimization option.
7034 * opts.c (default_options_table): Add entry for
7035 OPT_ftree_store_merging.
7036 * fold-const.h (can_native_encode_type_p): Declare prototype.
7037 * fold-const.c (can_native_encode_type_p): Define.
7038 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
7039 (PARAM_MAX_STORES_TO_MERGE): Likewise.
7040 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
7041 * passes.def: Insert pass_tree_store_merging.
7042 * tree-pass.h (make_pass_store_merging): Declare extern
7043 prototype.
7044 * gimple-ssa-store-merging.c: New file.
7045 * doc/invoke.texi (Optimization Options): Document
7046 -fstore-merging.
7047 (--param documentation): Document store-merging-allow-unaligned
7048 and max-stores-to-merge.
7049
7050 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
7051
7052 PR middle-end/72747
7053 * gimplify.c (gimplify_init_constructor): Move emit of constructor
7054 assignment to earlier in the if/else logic.
7055
7056 2016-10-28 Richard Biener <rguenther@suse.de>
7057
7058 PR middle-end/78128
7059 PR middle-end/71002
7060 * fold-const.c (make_bit_field_ref): Only adjust alias set
7061 when the original alias set was zero.
7062
7063 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7064
7065 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
7066 (s390_adjust_loops): New function.
7067 (s390_reorg): Invoke s390_adjust_loops.
7068 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
7069 ("osc_break"): New insn definition.
7070
7071 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7072
7073 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
7074 * config.gcc: Support alternate archXX cpu levels with
7075 --with-arch= and --with-tune=.
7076 * config/s390/linux.h: Translate new archXX cpu levels to the
7077 original names when calling GAS.
7078 * config/s390/tpf.h: Likewise.
7079 * doc/invoke.texi: Document the alternate cpu level names.
7080
7081 2016-10-28 Jakub Jelinek <jakub@redhat.com>
7082
7083 PR rtl-optimization/77919
7084 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
7085 MEM if mode1 is not a complex mode.
7086
7087 PR rtl-optimization/78132
7088 * ree.c (combine_reaching_defs): Give up if copy_needed and
7089 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
7090
7091 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
7092
7093 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
7094
7095 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
7096
7097 * config/rs6000/constraints.md (wH constraint): Add new
7098 constraints for allowing 32-bit integers (and eventually 8/16-bit
7099 integers) into the vector registers.
7100 (wI constraint): Likewise.
7101 (wJ constraint): Likewise.
7102 (wK constraint): Likewise.
7103 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
7104 -mvsx-small-integer as a default option for ISA 2.07
7105 (i.e. power8).
7106 (POWERPC_MASKS): Likewise.
7107 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
7108 switch to turn off small integer support in vector registers.
7109 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
7110 test for -mupper-regs-di, since it is already done with the
7111 reg_add[mode].scalar_in_vsx_p. Add support for the switch
7112 -mvsx-small-integer.
7113 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
7114 constraints.
7115 (rs6000_setup_reg_addr_masks): Likewise.
7116 (rs6000_init_hard_regno_mode_ok): Likewise.
7117 (rs6000_option_override_internal): Add consistency checks for
7118 -mvsx-small-integer.
7119 (rs6000_secondary_reload_simple_move): SImode is a simple move if
7120 -mvsx-small-integer.
7121 (rs6000_secondary_reload): Use std::swap.
7122 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
7123 VSX_REGS for small integers in vector registers, since there is no
7124 D-FORM address mode for such types.
7125 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
7126 (rs6000_opt_masks): Add -mvsx-small-integer.
7127 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
7128 support.
7129 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
7130 extracts can be done on ISA 2.07.
7131 (vsx_extract_<mode>): Add support for small integers in vsx
7132 registers.
7133 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
7134 longer support V4SImode in this pattern.
7135 (vsx_extract_si): New insn to support extraction of SImode in ISA
7136 2.07 using either xxextractuw or vspltw.
7137 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
7138 longer support V4SImode in this pattern.
7139 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
7140 wJ, and wK constraints.
7141 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
7142 storing SDmode with VSX instructions.
7143 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
7144 GPR load and before the FPR and VSX loads. Remove ??, ! from the
7145 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
7146 small integers in vector registers.
7147 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
7148 load and before the FPR and VSX loads. Remove ??, ! from the
7149 constraints. Add VEXTSW2D support for small integers in vector
7150 registers.
7151 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
7152 integers in vector registers.
7153 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
7154 move instead of using an UNSPEC.
7155 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
7156 integers in vector registers.
7157 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
7158 move instead of using an UNSPEC.
7159 (movsi_internal1): Add support for -mvsx-small-integer. Align
7160 columns so that it is more readable.
7161 (SImode splitter for ISA 3.0 constants): Add splitter for
7162 -128..127 constants that can easily be constructed on ISA 3.0.
7163 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
7164 constraints.
7165
7166 2016-10-27 Jakub Jelinek <jakub@redhat.com>
7167
7168 PR middle-end/78025
7169 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
7170 functions.
7171
7172 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
7173
7174 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
7175 PIC_OFFSET_TABLE_REGNUM twice.
7176
7177 2016-10-27 Bin Cheng <bin.cheng@arm.com>
7178
7179 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
7180 support for constant operand for OP.
7181
7182 2016-10-27 Jakub Jelinek <jakub@redhat.com>
7183
7184 * dwarf2out.c (gen_member_die): Only reparent_child instead of
7185 splice_child_die if child doesn't have DW_AT_specification attribute.
7186
7187 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7188
7189 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
7190 (TARGET_HAVE_LDREXBH): Likewise.
7191 (TARGET_HAVE_LDACQ): Likewise.
7192
7193 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7194
7195 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
7196 logic to to decide whether to copy over old value to register for new
7197 value.
7198 * config/arm/sync.md: Add comments explaning why mode and code
7199 attribute are not defined in iterators.md
7200 (thumb1_atomic_op_str): New code attribute.
7201 (thumb1_atomic_newop_str): Likewise.
7202 (thumb1_atomic_fetch_op_str): Likewise.
7203 (thumb1_atomic_fetch_newop_str): Likewise.
7204 (thumb1_atomic_fetch_oldop_str): Likewise.
7205 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
7206 mirror the more restrictive constraints of the Thumb-1 insns after
7207 split compared to Thumb-2 counterpart insns.
7208 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
7209 in sync with non atomic version.
7210 (atomic_nand<mode>): Likewise.
7211 (atomic_fetch_<sync_optab><mode>): Likewise.
7212 (atomic_fetch_nand<mode>): Likewise.
7213 (atomic_<sync_optab>_fetch<mode>): Likewise.
7214 (atomic_nand_fetch<mode>): Likewise.
7215 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
7216 in sync with atomic version.
7217 (thumb1_subsi3_insn): Likewise.
7218 (thumb1_andsi3_insn): Likewise.
7219 (thumb1_iorsi3_insn): Likewise.
7220 (thumb1_xorsi3_insn): Likewise.
7221
7222 2016-10-27 Nick Clifton <nickc@redhat.com>
7223
7224 * plugin.c (register_plugin_info): Produce an error message if the
7225 plugin is not found in the hash table.
7226
7227 2016-10-27 Bin Cheng <bin.cheng@arm.com>
7228
7229 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
7230 New pattern.
7231
7232 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
7233
7234 PR target/78056
7235 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
7236 define builtin functions from the bdesc_spe_predicates or
7237 bdesc_spe_evsel arrays if the builtin mask is not compatible with
7238 the current compiler configuration.
7239 (paired_init_builtins): Modify loop to not define define builtin
7240 functions from the bdesc_paried_preds array if the builtin mask is
7241 not compatible with the current compiler configuration.
7242 (altivec_init_builtins): Modify loops to not define the
7243 __builtin_altivec_stxvl function nor the builtin functions from
7244 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
7245 builtin mask is not compatible with the current compiler
7246 configuration.
7247
7248 2016-10-26 Jeff Law <law@redhat.com>
7249
7250 * config/sh/sh.c (output_branch): Add missing fallthru comments.
7251 (gen_shl_and): Likewise.
7252 * config/sh/sh.md (movsicc): Add missing fallthru comments.
7253
7254 * config/mips/mips.c (mips16_constant_cost): Add missing
7255 fallthru comments.
7256 (mips16_build_call_stub): Increase buffer size. Adjust
7257 fallthru comment.
7258
7259 2016-10-26 David Malcolm <dmalcolm@redhat.com>
7260
7261 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
7262 INSN_UIDs for all insns in compact mode.
7263 (rtx_writer::print_rtx): Likewise.
7264 * print-rtl.h (rtx_writer::flag_compact): Update comment.
7265 * rtl-tests.c (selftest::test_dumping_insns): Update expected
7266 output to include INSN_UID.
7267 (selftest::test_uncond_jump): Likewise.
7268
7269 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
7270
7271 * haifa-sched.c (call_used_regs_num): Rename to...
7272 (call_saved_regs_num): ...this.
7273 (fixed_regs_num): New variable.
7274 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
7275 regs not call_used.
7276 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
7277
7278 2016-10-26 David Malcolm <dmalcolm@redhat.com>
7279
7280 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
7281 class rtx_writer.
7282 * print-rtl.c (outfile): Delete global.
7283 (sawclose): Likewise.
7284 (indent): Likewise.
7285 (in_call_function_usage): Likewise.
7286 (flag_compact): Likewise.
7287 (flag_simple): Likewise.
7288 (rtx_writer::rtx_writer): New ctor.
7289 (print_rtx_operand_code_0): Convert to...
7290 (rtx_writer::print_rtx_operand_code_0): ...this.
7291 (print_rtx_operand_code_e): Convert to...
7292 (rtx_writer::print_rtx_operand_code_e): ...this.
7293 (print_rtx_operand_codes_E_and_V): Convert to...
7294 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
7295 (print_rtx_operand_code_i): Convert to...
7296 (rtx_writer::print_rtx_operand_code_i): ...this.
7297 (print_rtx_operand_code_r): Convert to...
7298 (rtx_writer::print_rtx_operand_code_r): ...this.
7299 (print_rtx_operand_code_u): Convert to...
7300 (rtx_writer::print_rtx_operand_code_u): ...this.
7301 (print_rtx_operand): Convert to...
7302 (rtx_writer::print_rtx_operand): ...this.
7303 (print_rtx): Convert to...
7304 (rtx_writer::print_rtx): ...this.
7305 (print_inline_rtx): Rewrite in terms of class rtx_writer.
7306 (debug_rtx): Likewise.
7307 (print_rtl): Convert to...
7308 (rtx_writer::print_rtl): ...this.
7309 (print_rtl): Reimplement in terms of class rtx_writer.
7310 (print_rtl_single): Rewrite in terms of class rtx_writer.
7311 (print_rtl_single_with_indent): Convert to..
7312 (rtx_writer::print_rtl_single_with_indent): ...this.
7313 (print_simple_rtl): Rewrite in terms of class rtx_writer.
7314 * print-rtl.h (flag_compact): Delete decl.
7315 (class rtx_writer): New class.
7316 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
7317 class rtx_writer.
7318
7319 2016-10-26 Jeff Law <law@redhat.com>
7320
7321 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
7322 fallthru.
7323
7324 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
7325 (check_if_valid_sleep_operand): Add missing fallthru comment.
7326 (arc_register_move_cost): Increase buffer size.
7327 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
7328 comment.
7329 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
7330
7331 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
7332 comment. Add gcc_unreachable for path that should never happen.
7333
7334 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
7335 fallthru comment.
7336
7337 2016-10-26 Jakub Jelinek <jakub@redhat.com>
7338 Martin Liska <mliska@suse.cz>
7339
7340 PR fortran/77973
7341 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
7342 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
7343 on outer context if any.
7344
7345 2016-10-26 Jakub Jelinek <jakub@redhat.com>
7346
7347 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
7348 by increment rather than double it.
7349 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
7350 emit a space before args[4].
7351 (END): Don't emit a space before with_arg.
7352
7353 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7354
7355 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
7356 Baseline only alternatives to (i) hold store atomic success value in a
7357 return register rather than a scratch register, (ii) use a low register
7358 for it and to (iii) ensure the cbranchsi insn generated by the split
7359 respect the constraints of Thumb-1 cbranchsi4_insn and
7360 cbranchsi4_scratch.
7361 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
7362 constraints must match those in atomic_compare_and_swap.
7363 (cbranchsi4_scratch): Likewise.
7364
7365 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7366
7367 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
7368 variable. Add the new parameter to the insn generator. Set that
7369 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
7370 return value from the negation of that parameter for Thumb-1, keeping
7371 the logic unchanged otherwise except for using bdst as the destination
7372 register of the compare_and_swap insn.
7373 (arm_split_compare_and_swap): Add explanation about how is the value
7374 returned to the function comment. Rename scratch variable to
7375 neg_bval. Adapt initialization of variables holding operands to the
7376 new operand numbers. Use return register to hold result of store
7377 exclusive for Thumb-1, scratch register otherwise. Construct the
7378 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
7379 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
7380 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
7381 for strongly ordered compare_and_swap.
7382 * config/arm/predicates.md (cc_register_operand): New predicate.
7383 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
7384 match_operand with the new predicate to accept either the CC flag or a
7385 destination register for the boolean return value, restricting it to
7386 CC flag only via constraint. Adapt operand numbers accordingly.
7387
7388 2016-10-26 Jeff Law <law@redhat.com>
7389
7390 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
7391
7392 * config/frv/frv.c (comparison_string): Do not fall through after
7393 an error.
7394
7395 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
7396 comment.
7397 (expand_one_builtin): Add missing break.
7398
7399 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
7400 (m32c_legitimate_address_p): Likewise.
7401
7402 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
7403
7404 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
7405
7406 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
7407 fallthru comment.
7408
7409 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
7410 fallthru comment.
7411
7412 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
7413
7414 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
7415 comment.
7416 (rl78_asm_ctor_dtor): Increase buffer size.
7417
7418 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
7419 buffer size.
7420 (xstormy16_asm_output_constructor): Likewise.
7421
7422 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
7423 size.
7424
7425 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
7426 comment to silence warning.
7427
7428 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
7429 (spu_legitimate_address_p): Fix logic error and add missing fallthru
7430 comment.
7431
7432 2016-10-26 Michael Matz <matz@suse.de>
7433
7434 PR tree-optimization/78060
7435 PR tree-optimization/78061
7436 PR tree-optimization/78088
7437 * tree-ssa-loop-split.c (easy_exit_values): New function.
7438 (tree_ssa_split_loops): Use it.
7439 (compute_new_first_bound): Change order of operations,
7440 fix invalid use of types.
7441
7442 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
7443
7444 gen-pass-instances.awk is sensitive to the order in which
7445 passes are added; passes that appear later have to be added first.
7446
7447 PR target/71676
7448 PR target/71678
7449 * config/avr/avr-passes.def: Swap order of directives for
7450 gen-pass-instances.awk.
7451
7452 2016-10-25 Jeff Law <law@redhat.com>
7453
7454 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
7455 (vax_notice_update_cc): Likewise.
7456
7457 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
7458
7459 * config.gcc (sparc*-*-solaris2*): Adjust.
7460 (sparc64-*-linux*): Likewise.
7461 * config/sparc/default-64.h: Rename to...
7462 * config/sparc/default64.h: ...this.
7463 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
7464 with TARGET_ARCH64.
7465 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
7466 * config/sparc/sparc.h: Minor tweaks.
7467 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
7468 TARGET_ARCH32 throughout. Minor various tweaks throughout.
7469
7470 2016-10-25 David Malcolm <dmalcolm@redhat.com>
7471
7472 * input.c (fcache::file_patch): Add comment about lifetime.
7473 (selftest::cpp_reader_ptr): New class.
7474 (selftest::lexer_test): Convert m_parser from cpp_reader *
7475 to a cpp_reader_ptr, and move m_tempfile to after it.
7476 (selftest::lexer_test::lexer_test): Update for above reordering.
7477 (lexer_test::~lexer_test): Move cleanup of m_parser to
7478 cpp_reader_ptr's dtor.
7479
7480 2016-10-25 David Malcolm <dmalcolm@redhat.com>
7481
7482 * toplev.c (toplev::main): Remove call to
7483 location_adhoc_data_fini.
7484
7485 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
7486
7487 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
7488 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
7489
7490 2016-10-25 David Malcolm <dmalcolm@redhat.com>
7491
7492 * ggc-tests.c (forcibly_ggc_collect): Rename to...
7493 (selftest::forcibly_ggc_collect): ...this, and remove "static".
7494 (test_basic_struct): Update for above renaming.
7495 (test_length): Likewise.
7496 (test_union): Likewise.
7497 (test_finalization): Likewise.
7498 (test_deletable_global): Likewise.
7499 (test_inheritance): Likewise.
7500 (test_chain_next): Likewise.
7501 (test_user_struct): Likewise.
7502 (test_tree_marking): Likewise.
7503 * selftest-run-tests.c (selftest::run_tests): Call
7504 selftest::forcibly_ggc_collect at the end of the selftests.
7505 * selftest.h (selftest::forcibly_ggc_collect): New decl.
7506
7507 2016-10-25 Jakub Jelinek <jakub@redhat.com>
7508
7509 PR target/78102
7510 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
7511 * optabs.c (expand_vec_cond_expr): For comparison codes
7512 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
7513 (expand_vec_cmp_expr): For comparison codes
7514 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
7515 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
7516 Add enum tree_code argument.
7517 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
7518 inline functions.
7519 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
7520 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
7521 fallback.
7522 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
7523 NE_EXPR, attempt to use vcondeq_optab as fallback.
7524 * tree-vect-generic.c (expand_vector_comparison,
7525 expand_vector_divmod, expand_vector_condition): Adjust
7526 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
7527 * tree-vect-stmts.c (vectorizable_condition,
7528 vectorizable_comparison): Likewise.
7529 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
7530 check_bool_pattern, search_type_for_mask_1): Likewise.
7531 * expr.c (do_store_flag): Likewise.
7532 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
7533 @code{vcondeq@var{m}@var{n}}): Document.
7534 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
7535 New expanders.
7536
7537 2016-10-25 Jeff Law <law@redhat.com>
7538
7539 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
7540 comment.
7541 (v850_output_aligned_bss): Add missing break.
7542
7543 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
7544
7545 2016-10-25 Martin Liska <mliska@suse.cz>
7546
7547 PR sanitizer/78106
7548 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
7549 statements as they can also contain possibly a freeing call.
7550
7551 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
7552 Martin Liska <mliska@suse.cz>
7553
7554 PR ipa/78099
7555 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
7556 * ipa-icf.c (sem_function::get_hash): Add target optimization
7557 node to hash.
7558
7559 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
7560
7561 PR target/78041
7562 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
7563 Remove partial overlap check for shift by 1.
7564 (ashldi3_neon): Likewise.
7565
7566 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
7567
7568 * config/arm/constraints.md (Q constraint): Document its use for
7569 Thumb-1.
7570 (Pf constraint): New constraint for relaxed, consume or relaxed memory
7571 models.
7572 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
7573 alternatives to allow any register when memory model matches Pf and
7574 thus lda is used, but only low registers otherwise. Use unpredicated
7575 output template for Thumb-1 targets.
7576 (atomic_store<mode>): Likewise for stl.
7577 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
7578 whose output template does not have predication.
7579 (arm_load_acquire_exclusive<mode>): Likewise.
7580 (arm_load_exclusivesi): Likewise.
7581 (arm_load_acquire_exclusivesi): Likewise.
7582 (arm_store_release_exclusive<mode>): Likewise.
7583 (arm_store_exclusive<mode>): Use unpredicated output template for
7584 Thumb-1 targets.
7585
7586 2016-10-25 Jakub Jelinek <jakub@redhat.com>
7587
7588 * internal-fn.def (LAUNDER): New internal function.
7589 * internal-fn.c (expand_LAUNDER): New function.
7590
7591 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
7592 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
7593
7594 New avr target pass to work around performance loss by PR fix.
7595
7596 PR target/71676
7597 PR target/71678
7598 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
7599 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
7600 * config/avr/predicates.md (extend_operator): New.
7601 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
7602 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
7603 (make_avr_pass_casesi): New prototypes.
7604 * config/avr/avr.c (print-rtl.h): Include it.
7605 (pass_data avr_pass_data_casesi): Data for new pass.
7606 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
7607 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
7608 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
7609 (avr_optimize_casesi): New functions.
7610
7611 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
7612 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
7613
7614 PR target/71676
7615 PR target/71678
7616 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
7617
7618 2016-10-24 Jakub Jelinek <jakub@redhat.com>
7619
7620 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
7621 DW_AT_rvalue_reference attributes.
7622
7623 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
7624
7625 * doc/invoke.text (Wint-in-bool-context): Update documentation.
7626 * value-prof.c (stringop_block_profile): Fix a warning.
7627
7628 2016-10-24 Martin Sebor <msebor@redhat.com>
7629
7630 PR middle-end/77735
7631 * builtins.c (string_length): New function.
7632 (c_strlen): Use string_length. Correctly handle wide strings.
7633 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
7634 functions.
7635 (target_int_max): Call target_max_value.
7636 (format_result::knownrange): New data member.
7637 (fmtresult::fmtresult): Define default constructor.
7638 (format_integer): Use it and set format_result::knownrange.
7639 Handle global constants.
7640 (format_floating_max): Add third argument.
7641 (format_floating): Recompute maximum value for %a for each argument.
7642 (get_string_length): Use fmtresult default ctor.
7643 (format_string): Set format_result::knownrange.
7644 (format_directive): Check format_result::knownrange.
7645 (add_bytes): Same. Correct caret placement in diagnostics.
7646 (pass_sprintf_length::compute_format_length): Set
7647 format_result::knownrange.
7648 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
7649
7650 2016-10-24 Jakub Jelinek <jakub@redhat.com>
7651
7652 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
7653 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
7654
7655 2016-10-24 Ximin Luo <infinity0@pwned.gg>
7656
7657 PR debug/77985
7658 * dwarf2out.c (file_table_relative_p): Remove.
7659 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
7660 also for absolute paths.
7661 * doc/tm.texi: Update.
7662 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
7663 * target.def (force_at_comp_dir): Remove hook.
7664 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
7665
7666 2016-10-24 Richard Biener <rguenther@suse.de>
7667
7668 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
7669 backedges when identifying the single predecessor to take
7670 conditional info from. Use SCEV to get at ranges for loop IVs.
7671 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
7672 avoid false warning.
7673
7674 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
7675
7676 PR target/78093
7677 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
7678 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
7679 (avr_address_tiny_absdata_p): New static function.
7680 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
7681 it to determine validity of constant addresses.
7682 (avr_attribute_table) [absdata]: New variable attribute...
7683 (avr_handle_absdata_attribute): ...and handler.
7684 (avr_decl_absdata_p): New static function.
7685 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
7686 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
7687 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
7688
7689 2016-10-24 Richard Biener <rguenther@suse.de>
7690
7691 PR tree-optimization/78076
7692 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
7693 also on the loop tree root.
7694
7695 2016-10-24 Jakub Jelinek <jakub@redhat.com>
7696
7697 * config/i386/i386.c (ix86_fold_builtin): Handle
7698 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
7699 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
7700 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
7701 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
7702
7703 2016-10-24 Martin Liska <mliska@suse.cz>
7704
7705 PR sanitizer/77966
7706 * opts.c (finish_options): Skip conditionally.
7707
7708 2016-10-23 Martin Sebor <msebor@redhat.com>
7709
7710 PR target/77837
7711 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
7712 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
7713
7714 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
7715
7716 * config/sparc/sparc.md (cpu_feature): Minor tweak.
7717 (enabled): Likewise.
7718 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
7719 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
7720 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
7721 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
7722 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
7723 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
7724
7725 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
7726
7727 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
7728 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
7729
7730 2016-10-21 Andrew Pinski <apinski@cavium.com>
7731
7732 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
7733 integer constants.
7734 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
7735 implementer_id to unsigned char.
7736 Change part_no to unsigned int.
7737 (AARCH64_BIG_LITTLE): New define.
7738 (INVALID_IMP): New define.
7739 (INVALID_CORE): New define.
7740 (cpu_data): Change the last element's implementer_id and part_no to
7741 integers.
7742 (valid_bL_string_p): Rewrite to ..
7743 (valid_bL_core_p): this for integers instead of strings.
7744 (parse_field): New function.
7745 (contains_string_p): Rewrite to ...
7746 (contains_core_p): this for integers and only for the part_no.
7747 (host_detect_local_cpu): Rewrite handling of implementation and
7748 par num to be integers; simplifying the code.
7749
7750 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
7751
7752 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
7753 value range for pointers in more cases.
7754
7755 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
7756
7757 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
7758 Add extra argument to allow emitting the move immediate.
7759 Use add/sub with positive immediate.
7760 (aarch64_add_constant): Add inline function.
7761 (aarch64_add_sp): Likewise.
7762 (aarch64_sub_sp): Likewise.
7763 (aarch64_expand_prologue): Call aarch64_sub_sp.
7764 (aarch64_expand_epilogue): Call aarch64_add_sp.
7765 Decide when to leave out move.
7766 (aarch64_output_mi_thunk): Call aarch64_add_constant.
7767
7768 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
7769
7770 * config/aarch64/aarch64.c (aarch64_layout_frame):
7771 Align FP callee-saves.
7772
7773 2016-10-21 Jakub Jelinek <jakub@redhat.com>
7774
7775 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
7776 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
7777 Formatting fixes.
7778 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
7779 _rdseed64_step): Likewise.
7780 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
7781
7782 PR target/78057
7783 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
7784 and tree-ssanames.h.
7785 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
7786 with INTEGER_CST argument.
7787 (ix86_gimple_fold_builtin): New function.
7788 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
7789
7790 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
7791 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
7792 (ranges_table_allocated, ranges_table_in_use,
7793 ranges_by_label_allocated, ranges_by_label_in_use,
7794 RANGES_TABLE_INCREMENT): Removed.
7795 (add_ranges_num): Use vec_safe_push into ranges_table.
7796 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
7797 (output_ranges): Adjust for ranges_table and ranges_by_label
7798 conversion from arrays to vec.
7799 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
7800 conversion from arrays to vec.
7801 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
7802 ranges_table_in_use, ranges_by_label_allocated and
7803 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
7804
7805 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
7806 if needed. Re-add origin_die variable and its initialization.
7807
7808 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
7809 even for -fstack-reuse=none, or for volatile vars etc.
7810
7811 2016-10-21 David Malcolm <dmalcolm@redhat.com>
7812
7813 * print-rtl-function.c (flag_compact): Move extern decl to...
7814 * print-rtl.h (flag_compact): ...here.
7815 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
7816 (ASSERT_RTL_DUMP_EQ): New macro.
7817 (selftest::test_dumping_regs): New function.
7818 (selftest::test_dumping_insns): New function.
7819 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
7820 the insns.
7821 (selftest::rtl_tests_c_tests): Call the new test functions.
7822
7823 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7824
7825 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
7826 (outgoing_edges_match): Likewise.
7827 (try_crossjump_to_edge): Likewise.
7828 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
7829 (rtl_tidy_fallthru_edge): Likewise.
7830 * rtl.h (tablejump_p): Adjust prototype.
7831 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
7832
7833 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7834
7835 * rtl.h (label_ref_label): New function.
7836 (set_label_ref_label): New function.
7837 (LABEL_REF_LABEL): Delete.
7838 * alias.c (rtx_equal_for_memref_p): Adjust.
7839 * cfgbuild.c (make_edges): Likewise.
7840 (purge_dead_tablejump_edges): Likewise.
7841 * cfgexpand.c (convert_debug_memory_address): Likewise.
7842 * cfgrtl.c (patch_jump_insn): Likewise.
7843 * combine.c (distribute_notes): Likewise.
7844 * cse.c (hash_rtx_cb): Likewise.
7845 (exp_equiv_p): Likewise.
7846 (fold_rtx): Likewise.
7847 (check_for_label_ref): Likewise.
7848 * cselib.c (rtx_equal_for_cselib_1): Likewise.
7849 (cselib_hash_rtx): Likewise.
7850 * emit-rtl.c (mark_label_nuses): Likewise.
7851 * explow.c (convert_memory_address_addr_space_1): Likewise.
7852 * final.c (output_asm_label): Likewise.
7853 (output_addr_const): Likewise.
7854 * gcse.c (add_label_notes): Likewise.
7855 * genconfig.c (walk_insn_part): Likewise.
7856 * genrecog.c (validate_pattern): Likewise.
7857 * ifcvt.c (cond_exec_get_condition): Likewise.
7858 (noce_emit_store_flag): Likewise.
7859 (noce_get_alt_condition): Likewise.
7860 (noce_get_condition): Likewise.
7861 * jump.c (maybe_propagate_label_ref): Likewise.
7862 (mark_jump_label_1): Likewise.
7863 (redirect_exp_1): Likewise.
7864 (rtx_renumbered_equal_p): Likewise.
7865 * lra-constraints.c (operands_match_p): Likewise.
7866 * print-rtl.c (print_value): Likewise.
7867 * reload.c (find_reloads): Likewise.
7868 * reload1.c (set_label_offsets): Likewise.
7869 * reorg.c (get_branch_condition): Likewise.
7870 * rtl-tests.c (test_uncond_jump): Likewise.
7871 * rtl.c (rtx_equal_p_cb): Likewise.
7872 (rtx_equal_p): Likewise.
7873 * rtlanal.c (reg_mentioned_p): Likewise.
7874 (rtx_referenced_p): Likewise.
7875 (get_condition): Likewise.
7876 * varasm.c (const_hash_1): Likewise.
7877 (compare_constant): Likewise.
7878 (const_rtx_hash_1): Likewise.
7879 (output_constant_pool_1): Likewise.
7880
7881 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7882
7883 PR target/71627
7884 * reload.c (find_valid_class_1): Allow regclass if atleast one
7885 regno in regclass is ok. Compute and use rclass size based on
7886 actually available regnos for mode in rclass.
7887
7888 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
7889
7890 * config/sparc/sparc-modes.def (CCV): New.
7891 (CCXV): Likewise.
7892 * config/sparc/predicates.md (v_comparison_operator): New.
7893 (icc_comparison_operator): Add support for CCV/CCXV.
7894 (xcc_comparison_operator): Likewise.
7895 * config/sparc/sparc.c (output_cbranch): Likewise.
7896 (sparc_print_operand): Likewise.
7897 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
7898 (uaddvdi4): New expander.
7899 (addvdi4): Likewise.
7900 (uaddvdi4_sp32): New instruction.
7901 (addvdi4_sp32): Likewise.
7902 (uaddvsi4): New expander.
7903 (addvsi4): Likewise.
7904 (cmp_ccc_plus_sltu_set): New instruction.
7905 (cmp_ccv_plus): Likewise.
7906 (cmp_ccxv_plus): Likewise.
7907 (cmp_ccv_plus_set): Likewise.
7908 (cmp_ccxv_plus_set): Likewise.
7909 (cmp_ccv_plus_sltu_set): Likewise.
7910 (uaddvdi4): New expander.
7911 (subvdi4): Likewise.
7912 (usubdi4_sp32): New instruction.
7913 (subvdi4_sp32): Likewise.
7914 (usubvsi4): New expander.
7915 (subvsi4): Likewise.
7916 (cmpsi_minus_sltu_set): New instruction.
7917 (cmp_ccv_minus): Likewise.
7918 (cmp_ccxv_minus): Likewise.
7919 (cmp_ccv_minus_set): Likewise.
7920 (cmp_ccxv_minus_set): Likewise.
7921 (cmp_ccv_minus_sltu_set): Likewise.
7922 (unegvdi3): New expander.
7923 (negvdi3): Likewise.
7924 (unegdi3_sp32): New instruction.
7925 (negvdi3_sp32): Likewise.
7926 (unegvsi3): New expander.
7927 (negvsi3): Likewise.
7928 (cmp_ccc_neg_sltu_set): New instruction.
7929 (cmp_ccv_neg): Likewise.
7930 (cmp_ccxv_neg): Likewise.
7931 (cmp_ccv_neg_set): Likewise.
7932 (cmp_ccxv_neg_set): Likewise.
7933 (cmp_ccv_neg_sltu_set): Likewise.
7934
7935 * tree-ssa-loop-split.c: Remove trailing spaces.
7936 * match.pd: Likewise.
7937
7938 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7939
7940 PR rtl-optimization/78038
7941 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
7942 be deduced to set REG through the RTL structure.
7943 (make_defs_and_copies_lists): Return false on a failing get_defs call.
7944
7945 2016-10-21 Richard Biener <rguenther@suse.de>
7946
7947 PR tree-optimization/78051
7948 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
7949 and mark replaced if folding did something.
7950
7951 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
7952
7953 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
7954 and "protected" in visibility types.
7955 (rs6000_xcoff_declare_function_name): Fix formatting.
7956 (rs6000_xcoff_declare_object_name): Fix formatting.
7957
7958 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
7959
7960 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
7961 and IX86_BUILTIN_HUGE_VALQ here ...
7962 (ix86_expand_builtin): ... not here.
7963
7964 2016-10-20 Jakub Jelinek <jakub@redhat.com>
7965
7966 * doc/gty.texi (for_user): Use @item next to @findex.
7967
7968 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
7969
7970 PR target/78037
7971 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
7972 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
7973 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
7974 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
7975 __builtin_ia32_lzcnt_u16.
7976 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
7977 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
7978 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
7979 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
7980 (bmi_tzcnt_<mode>): New expander.
7981 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
7982 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
7983 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
7984 (lzcnt_<mode>): New expander.
7985 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
7986 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
7987 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
7988 (UINT64_FTYPE_UINT64): New.
7989 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
7990 (__builtin_ia32_lzcnt_u16): New description.
7991 (__builtin_ia32_lzcnt_u32): Ditto.
7992 (__builtin_ia32_lzcnt_u64): Ditto.
7993 (__builtin_ctzs): Remove description.
7994 (__builtin_ia32_tzcnt_u16): New description.
7995 (__builtin_ia32_tzcnt_u32): Ditto.
7996 (__builtin_ia32_tzcnt_u64): Ditto.
7997 * config/i386/i386.c (ix86_expand_args_builtin): Handle
7998 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
7999
8000 2016-10-20 Martin Liska <mliska@suse.cz>
8001
8002 PR lto/78049
8003 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
8004 comparison with STMT_UID_NOT_IN_RANGE.
8005 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
8006 LTRANS.
8007
8008 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
8009
8010 * compare-elim.c (conforming_compare): Accept UNSPECs.
8011 (find_comparison_dom_walker::before_dom_children): Deal with
8012 instructions both using and killing the flags register.
8013 (equivalent_reg_at_start): New function extracted from...
8014 (try_eliminate_compare): ...here. Use it and add support for
8015 registers and UNSPECs as second operand of the compare.
8016 * config/visium/visium-modes.def (CCV): New.
8017 * config/visium/predicates.md (visium_v_comparison_operator): New.
8018 (visium_branch_operator): Deal with CCV mode.
8019 * config/visium/visium.c (visium_select_cc_mode): Likewise.
8020 (output_cbranch): Likewise.
8021 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
8022 (uaddv<mode>4): New expander.
8023 (addv<mode>4): Likewise.
8024 (add<mode>3_insn_set_carry): New instruction.
8025 (add<mode>3_insn_set_overflow): Likewise.
8026 (addsi3_insn_set_overflow): Likewise.
8027 (usubv<mode>4): New expander.
8028 (subv<mode>4): Likewise.
8029 (sub<mode>3_insn_set_carry): New instruction.
8030 (sub<mode>3_insn_set_overflow): Likewise.
8031 (subsi3_insn_set_overflow): Likewise.
8032 (unegv<mode>3): New expander.
8033 (negv<mode>3): Likewise.
8034 (neg<mode>2_insn_set_overflow): New instruction.
8035 (addv_tst<mode>): Likewise.
8036 (subv_tst<mode>): Likewise.
8037 (negv_tst<mode>): Likewise.
8038 (cbranch<mode>4_addv_insn): New splitter and instruction.
8039 (cbranch<mode>4_subv_insn): Likewise.
8040 (cbranch<mode>4_negv_insn): Likewise.
8041
8042 2016-10-20 Richard Biener <rguenther@suse.de>
8043
8044 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
8045 Handle decls possibly not bound.
8046 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
8047 nothing_id for decls that might not be bound if we are interested
8048 for the address.
8049 (get_constraint_for_component_ref): Deal with that.
8050
8051 2016-10-20 Michael Matz <matz@suse.de>
8052
8053 Loop splitting.
8054 * common.opt (-fsplit-loops): New flag.
8055 * passes.def (pass_loop_split): Add.
8056 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
8057 (enable_fdo_optimizations): Add loop splitting.
8058 * timevar.def (TV_LOOP_SPLIT): Add.
8059 * tree-pass.h (make_pass_loop_split): Declare.
8060 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
8061 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
8062 * tree-ssa-loop-split.c: New file.
8063 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
8064 * doc/invoke.texi (fsplit-loops): Document.
8065 * doc/passes.texi (Loop optimization): Add paragraph about loop
8066 splitting.
8067
8068 2016-10-20 Richard Biener <rguenther@suse.de>
8069
8070 * cgraphunit.c (analyze_functions): Set node->definition to
8071 false to signal symbol removal to debug_hooks->late_global_decl.
8072 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
8073 WPA signal symbol removal to the debuginfo machinery.
8074 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
8075 using early_finised to guard the we're called for symbol
8076 removal case look at the symtabs definition flag.
8077 (gen_variable_die): Remove redundant check.
8078
8079 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8080
8081 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
8082
8083 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8084
8085 PR tree-optimization/53979
8086 * match.pd ((a ^ b) | a -> a | b): New pattern.
8087
8088 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
8089
8090 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
8091 config/pa/pa64-hpux-lib.h.
8092 (PA_CRTBEGIN_HACK): Likewise.
8093 (DTOR_LIST_BEGIN): Likewise.
8094
8095 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
8096
8097 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
8098 register only if "in" and "out" are different registers.
8099
8100 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
8101
8102 * omp-low.c (pass_oacc_device_lower::gate): New method.
8103 (execute): Always call execute_oacc_device_lower.
8104
8105 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8106
8107 PR tree-optimization/77916
8108 PR tree-optimization/77937
8109 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
8110 stopgap fix.
8111 (insert_initializers): Requirement of initializer for -1 should be
8112 based on pointer-typedness of the candidate basis.
8113
8114 2016-10-19 Bin Cheng <bin.cheng@arm.com>
8115
8116 PR tree-optimization/78005
8117 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
8118 upper (included) bound for niters of prolog loop.
8119 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
8120 Compute niters of scalar loop above which vectorized loop is
8121 preferred, as well as the upper (included) bound for the niters.
8122 (vect_do_peeling): Record niter bound for loops accordingly.
8123
8124 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
8125
8126 PR lto/77458
8127 * tree-core.h (enum tree_index): Put the complex types after their
8128 component types.
8129 * tree-streamer.c (verify_common_node_recorded): New function.
8130 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
8131
8132 2016-10-19 Martin Liska <mliska@suse.cz>
8133
8134 * cgraph.h (cgraph_edge::binds_to_current_def_p):
8135 Replace NULL with false as a return value.
8136
8137 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
8138
8139 PR tree-optimization/78024
8140 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
8141 don't clear BB_VISITED after processing.
8142
8143 2016-10-19 Richard Biener <rguenther@suse.de>
8144
8145 * domwalk.c (dom_walker::walk): Use RPO order.
8146
8147 2016-10-19 Richard Biener <rguenther@suse.de>
8148
8149 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
8150 stmts_to_remove.
8151 (evrp_dom_walker::~evrp_dom_walker): Free it.
8152 (evrp_dom_walker::stmts_to_remove): Add.
8153 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
8154 whose output we fully propagate for removal. Propagate
8155 into BB destination PHI arguments.
8156 (execute_early_vrp): Remove queued stmts. Dump value ranges
8157 before stmt removal.
8158
8159 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
8160
8161 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
8162 * passes.def: Add two instances of pass_walloca.
8163 * tree-pass.h (make_pass_walloca): New.
8164 * gimple-ssa-warn-alloca.c: New file.
8165 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
8166 -Wvla-larger-than= options.
8167
8168 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
8169
8170 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
8171 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
8172
8173 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
8174
8175 * config/rs6000/altivec.h (vec_xl_len): New macro.
8176 (vec_xst_len): New macro.
8177 (vec_cmpnez): New macro.
8178 (vec_cntlz_lsbb): New macro.
8179 (vec_cnttz_lsbb): New macro.
8180 (vec_xlx): New macro.
8181 (vec_xrx): New macro.
8182 (vec_all_nez): New C++ predicate template.
8183 (vec_any_eqz): New C++ predicate template.
8184 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
8185 conditional compilation.
8186 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
8187 conditional compilation.
8188 (vec_all_nez): New macro.
8189 (vec_any_eqz): New macro.
8190 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
8191 compilation.
8192 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
8193 compilation.
8194 * config/rs6000/vector.md (VI): Moved this mode iterator
8195 definition from altivec.md to vector.md.
8196 (UNSPEC_NEZ_P): New value.
8197 (vector_ne_<mode>_p): New expansion for implementation of
8198 vec_all_ne and vec_any_eq built-in functions.
8199 (vector_nez_<mode>_p): New expansion for implementation of
8200 vec_all_nez and vec_any_eqz built-in functions.
8201 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
8202 and vec_any_eq built-in function.
8203 (cr6_test_for_zero): New commentary to explain this expansion.
8204 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
8205 (cr6_test_for_lt): New commentary to explain this expansion.
8206 (cr6_test_for_lt_reverse): New commentary to explain this
8207 expansion.
8208 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8209 overloaded function prototypes for vec_all_ne, vec_all_nez,
8210 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
8211 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
8212 built-in functions.
8213 (altivec_resolve_overloaded_builtin): Modify the handling of
8214 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
8215 the compiler is configured to support TARGET_P9_VECTOR.
8216 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
8217 to explain the special processing that is given to predicate
8218 built-ins introduced using this macro.
8219 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
8220 the special processing given to predicate built-ins introduced
8221 using this macro.
8222 (BU_VSX_P): Likewise.
8223 (BU_P8V_AV_P): Likewise.
8224 (BU_P9V_AV_P): Likewise.
8225 (BU_P9V_AV_X): New macro.
8226 (BU_P9V_64BIT_AV_X): New macro.
8227 (BU_P9V_VSX_3): New macro.
8228 (BU_P9V_OVERLOAD_P): New macro.
8229 (LXVL): New BU_P9V_64BIT_VSX_2.
8230 (VEXTUBLX): New BU_P9V_AV_2.
8231 (VEXTUBRX): Likewise.
8232 (VEXTUHLX): Likewise.
8233 (VEXTUHRX): Likewise.
8234 (VEXTUWLX): Likewise.
8235 (VEXTUWRX): Likewise.
8236 (STXVL): New BU_P9V_64BIT_AV_X.
8237 (VCLZLSBB): New BU_P9V_AV_1.
8238 (VCTZLSBB): Likewise.
8239 (CMPNEB): New BU_P9V_AV_2.
8240 (CMPNEH): Likewise.
8241 (CMPNEW): Likewise.
8242 (CMPNEF): Likewise.
8243 (CMPNED): Likewise.
8244 (VCMPNEB_P): New BU_P9V_AV_P.
8245 (VCMPNEH_P): Likewise.
8246 (VCMPNEW_P): Likewise.
8247 (VCMPNED_P): Likewise.
8248 (VCMPNEFP_P): Likewise.
8249 (VCMPNEDP_P): Likewise.
8250 (CMPNEZB): New BU_P9V_AV_2.
8251 (CMPNEZH): Likewise.
8252 (CMPNEZW): Likewise.
8253 (VCMPNEZB_P): New BU_P9V_AV_P.
8254 (VCMPNEZH_P): Likewise.
8255 (VCMPNEZW_P): Likewise.
8256 (LXVL): New BU_P9V_OVERLOAD_2.
8257 (STXVL): New BU_P9V_OVERLOAD_3.
8258 (VEXTULX): New BU_P9V_OVERLOAD_2.
8259 (VEXTURX): Likewise.
8260 (CMPNEZ): Likewise.
8261 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
8262 (VCMPNE_P): Likewise.
8263 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
8264 (VCTZLSBB): Likewise.
8265 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
8266 comment to explain mode used for scratch register.
8267 (altivec_expand_stxvl_builtin): New function.
8268 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
8269 (altivec_init_builtins): Add initialized variable
8270 void_ftype_v16qi_pvoid_long and use this type to define the
8271 built-in function __builtin_altivec_stxvl.
8272 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
8273 (UNSPEC_STXVL): New value.
8274 (UNSPEC_VCLZLSBB): New value.
8275 (UNSPEC_VCTZLSBB): New value.
8276 (UNSPEC_VEXTUBLX): New value.
8277 (UNSPEC_VEXTUHLX): New value.
8278 (UNSPEC_VEXTUWLX): New value.
8279 (UNSPEC_VEXTUBRX): New value.
8280 (UNSPEC_VEXTUHRX): New value.
8281 (UNSPEC_VEXTUWRX): New value.
8282 (UNSPEC_VCMPNEB): New value.
8283 (UNSPEC_VCMPNEZB): New value.
8284 (UNSPEC_VCMPNEH): New value.
8285 (UNSPEC_VCMPNEZH): New value.
8286 (UNSPEC_VCMPNEW): New value.
8287 (UNSPEC_VCMPNEZW): New value.
8288 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
8289 vector of integer modes.
8290 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
8291 vector of float or double modes.
8292 (*vector_nez_<mode>_p): New insn for vector test all not equal or
8293 zero.
8294 (lxvl): New expand for load VSX vector with length.
8295 (*lxvl): New insn for load VSX vector with length.
8296 (stxvl): New expand for store VSX vector with length.
8297 (*stxvl): New insn for store VSX vector with length.
8298 (vcmpneb): New insn for vector of byte compare not equal.
8299 (vcmpnezb): New insn for vector of byte compare not equal or zero.
8300 (vcmpneh): New insn for vector of half word compare not equal.
8301 (vcmpnezh): New insn for vector of half word compare not equal or
8302 zero.
8303 (vcmpnew): New insn for vector of word compare not equal.
8304 (vcmpne<VSs>): New insn for vector of float or double compare not
8305 equal.
8306 (vcmpnezw): New insn for vector of word compare not equal or zero.
8307 (vclzlsbb): New insn for vector count leading zero
8308 least-significant bits byte.
8309 (vctzlsbb): New insn for vector count trailing zero least
8310 signficant bits byte.
8311 (vextublx): New insn for vector extract unsigned byte left
8312 indexed.
8313 (vextubrx): New insn for vector extract unsigned byte right
8314 indexed.
8315 (vextuhlx): New insn for vector extract unsigned half word left
8316 indexed.
8317 (vextuhrx): New insn for vector extract unsigned half word right
8318 indexed.
8319 (vextuwlx): New insn for vector extract unsigned word left
8320 indexed.
8321 (vextuwrx): New insn for vector extract unsigned word right
8322 indexed.
8323 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
8324 clarify intent of this constant.
8325 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
8326 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
8327 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
8328 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
8329 and vec_xrx functions.
8330
8331 2016-10-18 Andrew Pinski <apinski@cavium.com>
8332
8333 PR tree-opt/65950
8334 * predict.c (is_exit_with_zero_arg): New function.
8335 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
8336 as nottaken.
8337
8338 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
8339
8340 PR target/77991
8341 * config/i386/i386.c (legitimize_tls_address)
8342 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
8343 convert dest to Pmode if different than Pmode.
8344
8345 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8346
8347 PR tree-optimization/77916
8348 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
8349 stopgap fix, as pointers with -1 increment are still broken.
8350
8351 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
8352
8353 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
8354 mapping class decoration from here...
8355 (rs6000_xcoff_encode_section): ...to here.
8356
8357 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
8358 if shrink-wrapping and optimizing for speed.
8359
8360 2016-10-18 Richard Biener <rguenther@suse.de>
8361
8362 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
8363 not visited but non-executable predecessors. Return taken edge.
8364 Simplify conditions and refactor propagation vs. folding step.
8365
8366 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
8367
8368 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
8369 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
8370 (rs6000_get_separate_components): Assert we do not have those
8371 strategies selected.
8372
8373 2016-10-18 Richard Biener <rguenther@suse.de>
8374
8375 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
8376 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
8377 clearing.
8378 (substitute_and_fold_dom_walker): Adjust constructor.
8379 (substitute_and_fold_dom_walker::before_dom_children): Remove
8380 do_dce flag and handling (always true).
8381 (substitute_and_fold): Likewise.
8382 * tree-vrp.c (vrp_finalize): Adjust.
8383 (execute_early_vrp): Remove final BB_VISITED clearing.
8384 * tree-ssa-ccp.c (ccp_finalize): Adjust.
8385 * tree-ssa-copy.c (fini_copy_prop): Likewise.
8386 * ira.c (ira): Call clear_bb_flags.
8387
8388 2016-10-18 Richard Biener <rguenther@suse.de>
8389
8390 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
8391 get at the operand to look at with TREE_OPERAND for generic
8392 sub-nodes.
8393
8394 2016-10-18 David Malcolm <dmalcolm@redhat.com>
8395
8396 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
8397 copy_md_ptr_loc.
8398 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
8399 (write_test_expr): Use rtx_reader_ptr for calls to
8400 fprint_c_condition.
8401 (write_attr_value): Likewise.
8402 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
8403 call to print_md_ptr_loc.
8404 (write_one_condition): Likewise for calls to print_c_condition.
8405 * genconstants.c: Include "statistics.h" and "vec.h".
8406 (main): Update for conversion to member functions.
8407 * genemit.c (emit_c_code): Use rtx_reader_ptr for
8408 call to print_md_ptr_loc.
8409 * genenums.c: Include "statistics.h" and "vec.h".
8410 (main): Update for conversion of traverse_enum_types to a method.
8411 * genmddeps.c: Include "statistics.h" and "vec.h".
8412 * genoutput.c (process_template): Use rtx_reader_ptr for call to
8413 print_md_ptr_loc.
8414 * genpreds.c (write_predicate_subfunction): Likewise.
8415 (write_predicate_expr): Likewise for calls to print_c_condition.
8416 * genrecog.c (print_test): Likewise.
8417 * gensupport.c (process_rtx): Likewise for calls to
8418 copy_md_ptr_loc and join_c_conditions.
8419 (alter_test_for_insn): Likewise for call to join_c_conditions.
8420 (process_substs_on_one_elem): Likewise.
8421 (gen_mnemonic_setattr): Update for move of string_obstack to a
8422 field of rtx_reader.
8423 (mnemonic_htab_callback): Likewise. Fix formatting.
8424 (gen_mnemonic_attr): Likewise.
8425 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
8426 to print_c_condition.
8427 * read-md.c: Include "statistics.h" and "vec.h".
8428 (string_obstack): Convert this global to field "m_string_obstack"
8429 of class rtx_reader.
8430 (ptr_locs): Likewise, as "m_ptr_locs".
8431 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
8432 (joined_conditions): Likewise, as "m_joined_conditions".
8433 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
8434 (md_constants): Likewise, as "m_md_constants".
8435 (enum_types): Likewise, as "m_enum_types".
8436 (set_md_ptr_loc): Convert to...
8437 (rtx_reader::set_md_ptr_loc): ...member function.
8438 (get_md_ptr_loc): Convert to...
8439 (rtx_reader::get_md_ptr_loc): ...member function.
8440 (copy_md_ptr_loc): Convert to...
8441 (rtx_reader::copy_md_ptr_loc): ...member function.
8442 (fprint_md_ptr_loc): Convert to...
8443 (rtx_reader::fprint_md_ptr_loc): ...member function.
8444 (print_md_ptr_loc): Convert to...
8445 (rtx_reader::print_md_ptr_loc): ...member function.
8446 (join_c_conditions): Convert to...
8447 (rtx_reader::join_c_conditions): ...member function.
8448 (fprint_c_condition): Convert to...
8449 (rtx_reader::fprint_c_condition): ...member function.
8450 (print_c_condition): Convert to...
8451 (rtx_reader::print_c_condition): ...member function.
8452 (read_name): Convert to...
8453 (rtx_reader::read_name): ...member function.
8454 (read_escape): Convert to...
8455 (rtx_reader::read_escape): ...member function.
8456 (read_quoted_string): Convert to...
8457 (rtx_reader::read_quoted_string): ...member function.
8458 (read_braced_string): Convert to...
8459 (rtx_reader::read_braced_string): ...member function.
8460 (read_string): Convert to...
8461 (rtx_reader::read_string): ...member function.
8462 (read_skip_construct): Convert to...
8463 (rtx_reader::read_skip_construct): ...member function.
8464 (handle_constants): Convert to...
8465 (rtx_reader::handle_constants): ...member function.
8466 (traverse_md_constants): Convert to...
8467 (rtx_reader::traverse_md_constants): ...member function.
8468 (handle_enum): Convert to...
8469 (rtx_reader::handle_enum): ...member function.
8470 (lookup_enum_type): Convert to...
8471 (rtx_reader::lookup_enum_type): ...member function.
8472 (traverse_enum_types): Convert to...
8473 (rtx_reader::traverse_enum_types): ...member function.
8474 (rtx_reader::rtx_reader): Move initializations
8475 of various former global data from rtx_reader::read_md_files to
8476 here, as fields, along with the call to unlock_std_streams.
8477 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
8478 the new fields.
8479 (rtx_reader::read_md_files): Move initializations of various
8480 global data from here to the ctor.
8481 * read-md.h (read_name): Convert to...
8482 (rtx_reader::read_name): ...member function.
8483 (rtx_reader::read_escape): New method decl.
8484 (read_quoted_string): Convert to...
8485 (rtx_reader::read_quoted_string): ...member function.
8486 (rtx_reader::read_braced_string): New method decl.
8487 (read_string): Convert to...
8488 (rtx_reader::read_string): ...member function.
8489 (rtx_reader::read_skip_construct): New method decl.
8490 (rtx_reader::set_md_ptr_loc): New method decl.
8491 (rtx_reader::get_md_ptr_loc): New method decl.
8492 (copy_md_ptr_loc): Convert to...
8493 (rtx_reader::copy_md_ptr_loc): ...member function.
8494 (fprint_md_ptr_loc): Convert to...
8495 (rtx_reader::fprint_md_ptr_loc): ...member function.
8496 (print_md_ptr_loc): Convert to...
8497 (rtx_reader::print_md_ptr_loc): ...member function.
8498 (rtx_reader::lookup_enum_type): New method decl.
8499 (rtx_reader::traverse_enum_types): New method decl.
8500 (rtx_reader::handle_constants): New method decl.
8501 (traverse_md_constants): Convert to...
8502 (rtx_reader::traverse_md_constants): ...member function.
8503 (rtx_reader::handle_enum): New method decl.
8504 (rtx_reader::join_c_conditions): New method decl.
8505 (fprint_c_condition): Convert to...
8506 (rtx_reader::fprint_c_condition): ...member function.
8507 (print_c_condition): Convert to...
8508 (rtx_reader::print_c_condition): ...member function.
8509 (rtx_reader::apply_iterator_to_string): New method decl.
8510 (rtx_reader::copy_rtx_for_iterators): New method decl.
8511 (rtx_reader::read_conditions): New method decl.
8512 (rtx_reader::record_potential_iterator_use): New method decl.
8513 (rtx_reader::read_mapping): New method decl.
8514 (rtx_reader::read_rtx): New method decl.
8515 (rtx_reader::read_rtx_code): New method decl.
8516 (rtx_reader::read_rtx_operand): New method decl.
8517 (rtx_reader::read_nested_rtx): New method decl.
8518 (rtx_reader::read_rtx_variadic): New method decl.
8519 (rtx_reader::get_string_obstack): New method.
8520 (rtx_reader::get_md_constants): New method.
8521 (string_obstack): Convert global variable decl to...
8522 (rtx_reader::m_string_obstack): ...this new field.
8523 (rtx_reader::m_ptr_locs): New field.
8524 (rtx_reader::m_ptr_loc_obstack): New field.
8525 (rtx_reader::m_joined_conditions): New field.
8526 (rtx_reader::m_joined_conditions_obstack): New field.
8527 (rtx_reader::m_md_constants): New field.
8528 (rtx_reader::m_enum_types): New field.
8529 * read-rtl.c (apply_iterator_to_string): Convert to...
8530 (rtx_reader::apply_iterator_to_string): ...member function.
8531 (copy_rtx_for_iterators): Convert to...
8532 (rtx_reader::copy_rtx_for_iterators): ...member function.
8533 (add_condition_to_string): Use rtx_reader_ptr for
8534 calls join_c_conditions.
8535 (apply_iterators): Use rtx_reader_ptr for calls to
8536 join_c_conditions and copy_rtx_for_iterators.
8537 (read_conditions): Convert to...
8538 (rtx_reader::read_conditions): ...member function.
8539 (record_potential_iterator_use): Convert to...
8540 (rtx_reader::record_potential_iterator_use): ...member function.
8541 (read_mapping): Convert to...
8542 (rtx_reader::read_mapping): ...member function.
8543 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
8544 (read_rtx): Convert to...
8545 (rtx_reader::read_rtx): ...member function.
8546 (read_rtx_code): Convert to...
8547 (rtx_reader::read_rtx_code): ...member function.
8548 (read_rtx_operand): Convert to...
8549 (rtx_reader::read_rtx_operand): ...member function. Update for move
8550 of string_obstack to a field.
8551 (read_nested_rtx): Convert to..
8552 (rtx_reader::read_nested_rtx): ...member function.
8553 (read_rtx_variadic): Convert to..
8554 (rtx_reader::read_rtx_variadic): ...member function.
8555
8556 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
8557
8558 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
8559
8560 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
8561
8562 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
8563 for pointer type too.
8564 (ipcp_update_vr): set_ptr_nonnull for pointer.
8565
8566 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
8567
8568 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
8569 pt_solution_singleton_p.
8570 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
8571 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
8572 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
8573 pointer nonnull computed by VRP.
8574 Also Conservatively set pt.null to 1.
8575 (pt_solution_reset): Conservatively set pt.null to 1.
8576 (pt_solution_singleton_or_null_p): Renamed from
8577 pt_solution_singleton_p.
8578 * tree-ssanames.h (set_ptr_nonnull): Declare.
8579 (get_ptr_nonnull): Likewise.
8580 * tree-ssanames.c (set_ptr_nonnull): New.
8581 (get_ptr_nonnull): Likewise.
8582 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
8583 (evrp_dom_walker::before_dom_children): Likewise.
8584
8585 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
8586
8587 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
8588 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
8589 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
8590 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
8591 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
8592 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
8593 (rs6000_option_override_internal): Clear it if ABI_AIX.
8594 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
8595 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
8596
8597 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8598
8599 * gimple-ssa-strength-reduction.c (record_increment): Remove
8600 garbage comment.
8601
8602 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
8603
8604 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
8605 that the result is non-zero if it is true.
8606 (maybe_expand_shift): New wrapper around expand_shift_1.
8607 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
8608
8609 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8610
8611 PR tree-optimization/77916
8612 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
8613 Don't allow a MINUS_EXPR for pointer arithmetic for either known
8614 or unknown strides.
8615 (record_increment): Increments of -1 for unknown strides just use
8616 a multiply initializer like other negative values.
8617 (analyze_increments): Remove stopgap solution for -1 increment
8618 applied to pointer arithmetic.
8619
8620 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
8621
8622 * dominance.c (dom_info::dom_info): Add new constructor for region
8623 which is vector of basic blocks.
8624 (dom_init): New method to initialize members common for both
8625 constructors.
8626 (dom_info::dom_info): Invoke dom_init for partial initialization.
8627 (dom_info::get_idom): Add check to corner cases on basic blocks which
8628 are not in region.
8629 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
8630 to detect unreachable bbs.
8631 (dom_info::calc_idoms): Likewise.
8632 (compute_dom_fast_query_in_region): New function.
8633 (calculate_dominance_info_for_region): Likewise.
8634 (free_dominance_info_for_region): Likewise.
8635 * dominance.h: Add prototypes for introduced region-based functions
8636 * tree-if-conv.c (build_region): New function.
8637 (if_convertible_loop_p_1): Invoke local version of post-dominators
8638 calculation before basic block predication with subsequent freeing
8639 post-dominator info.
8640 (tree_if_conversion): Remove free of post-dominator info
8641 (pass_if_conversion::execute): Delete detection of infinite loops
8642 and fake edges to exit block since post-dominator calculation is
8643 performed per if-converted loop only.
8644
8645 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
8646
8647 PR target/77308
8648 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
8649 register explicitly.
8650 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
8651 optimizing for size.
8652
8653 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8654
8655 * config/aarch64/aarch64.c: Delete inclusion of
8656 cortex-a57-fma-steering.h.
8657 (aarch64_override_options): Delete call
8658 to aarch64_register_fma_steering.
8659 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
8660 * config/aarch64/cortex-a57-fma-steering.h: Delete.
8661 * config/aarch64/aarch64-passes.def: New file.
8662 * config/aarch64/cortex-a57-fma-steering.c
8663 (aarch64_register_fma_steering): Delete definition.
8664 (make_pass_fma_steering): Remove static qualifier.
8665 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
8666 (cortex-a57-fma-steering.o): Remove dependency on
8667 cortex-a57-fma-steering.h.
8668
8669 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
8670
8671 * explow.c (validize_mem): Do not modify the argument in-place.
8672
8673 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
8674
8675 * tree-streamer.c (record_common_node): Explicitly list expected
8676 tree codes.
8677
8678 2016-10-17 Richard Biener <rguenther@suse.de>
8679
8680 PR tree-optimization/77988
8681 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
8682
8683 2016-10-17 Marek Polacek <polacek@redhat.com>
8684
8685 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
8686
8687 2016-10-17 Richard Biener <rguenther@suse.de>
8688
8689 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
8690 before using it.
8691
8692 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8693
8694 PR tree-optimization/71636
8695 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
8696
8697 2016-10-17 Richard Biener <rguenther@suse.de>
8698
8699 * gimplify.c (gimplify_function_tree): Do not move the outer
8700 binds block.
8701
8702 2016-10-17 Jakub Jelinek <jakub@redhat.com>
8703
8704 * langhooks.h (struct lang_hooks_for_decls): Remove
8705 function_decl_explicit_p, function_decl_deleted_p and
8706 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
8707 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
8708 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
8709 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
8710 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
8711 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
8712 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
8713 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
8714 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
8715 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
8716 * langhooks.c (lhd_decl_dwarf_attribute): New function.
8717 * dwarf2out.c (gen_subprogram_die): Use
8718 lang_hooks.decls.decl_dwarf_attribute instead of
8719 lang_hooks.decls.function_decl_*.
8720
8721 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
8722
8723 PR ada/37139
8724 PR ada/67205
8725 * common.opt (-ftrampolines): New option.
8726 * doc/invoke.texi (Code Gen Options): Document it.
8727 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
8728 * doc/tm.texi: Regenerate.
8729 * builtins.def: Add init_descriptor and adjust_descriptor.
8730 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
8731 on platforms with descriptors.
8732 (expand_builtin_init_descriptor): New function.
8733 (expand_builtin_adjust_descriptor): Likewise.
8734 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
8735 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
8736 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
8737 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
8738 Set STATIC_CHAIN_REG_P on the static chain register, if any.
8739 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
8740 (expand_call): Likewise. Move around call to prepare_call_address
8741 and pass all flags to it.
8742 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
8743 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
8744 (gimple_call_set_by_descriptor): New setter.
8745 (gimple_call_by_descriptor_p): New getter.
8746 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
8747 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
8748 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
8749 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
8750 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
8751 * rtl.h (STATIC_CHAIN_REG_P): New macro.
8752 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
8753 * target.def (custom_function_descriptors): New POD hook.
8754 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
8755 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
8756 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
8757 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
8758 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
8759 (build_common_builtin_nodes): Initialize init_descriptor and
8760 adjust_descriptor.
8761 * tree-nested.c: Include target.h.
8762 (struct nesting_info): Add 'any_descr_created' field.
8763 (get_descriptor_type): New function.
8764 (lookup_element_for_decl): New function extracted from...
8765 (create_field_for_decl): Likewise.
8766 (lookup_tramp_for_decl): ...here. Adjust.
8767 (lookup_descr_for_decl): New function.
8768 (convert_tramp_reference_op): Deal with descriptors.
8769 (build_init_call_stmt): New function extracted from...
8770 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
8771 * defaults.h (FUNCTION_ALIGNMENT): Define.
8772 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
8773 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
8774 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
8775 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
8776 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
8777
8778 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
8779
8780 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
8781 constants in CONST_VECTORs.
8782
8783 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
8784
8785 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
8786 register as destination of bmask.
8787 (vector_init_bshuffle): Likewise.
8788 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
8789 (bmaskdi_vis): Enable only in 64-bit mode.
8790
8791 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8792
8793 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
8794 make LR a separately shrink-wrapped component unless savres_strategy
8795 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
8796 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
8797 wrapping when not both {SAVE,REST}_INLINE_GPRS.
8798
8799 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
8800
8801 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
8802 and keep looping on failure.
8803
8804 2016-10-14 David Malcolm <dmalcolm@redhat.com>
8805
8806 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
8807 set.
8808 (print_rtx_function): Update example in comment for...
8809 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
8810 non-virtual pseudos with a '%' sigil followed by the regno, offset
8811 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
8812 pseudo is dumped as "%0".
8813
8814 2016-10-14 Jakub Jelinek <jakub@redhat.com>
8815
8816 PR middle-end/77959
8817 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
8818 return a MEM.
8819
8820 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
8821
8822 * config/sparc/sparc-passes.def: New file.
8823 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
8824 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
8825 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
8826
8827 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
8828
8829 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
8830 loop peel to loops with exit test at the beginning.
8831
8832 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
8833
8834 PR rtl-optimization/68212
8835 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
8836 frequency when computing scale factor for peeled copies.
8837 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
8838 values for switch/peel blocks/edges.
8839
8840 2016-10-14 Pedro Alves <palves@redhat.com>
8841
8842 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
8843
8844 2016-10-14 Catherine Moore <clm@codesourcery.com>
8845
8846 * config/mips/mips.c (mips_prepare_pch_save): Initialize
8847 micromips_globals to zero.
8848
8849 2016-10-14 Richard Biener <rguenther@suse.de>
8850
8851 PR tree-optimization/77979
8852 * tree-vrp.c (compare_name_with_value): Handle released SSA names
8853 in the equivalency sets.
8854 (compare_names): Likewise.
8855
8856 2016-10-14 Martin Liska <mliska@suse.cz>
8857
8858 * builtins.h(target_char_cst_p): Declare the function.
8859 * builtins.c (fold_builtin_memchr): Remove.
8860 (target_char_cst_p): Move the function from gimple-fold.c.
8861 (fold_builtin_3): Do not call the function.
8862 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
8863 (gimple_fold_builtin): Call the function.
8864 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
8865
8866 2016-10-14 Martin Liska <mliska@suse.cz>
8867
8868 * builtins.c (fold_builtin_strcmp): Remove function.
8869 (fold_builtin_strncmp): Likewise.
8870 (fold_builtin_2): Remove call of the function.
8871 (fold_builtin_3): Likewise.
8872 * fold-const-call.c (fold_const_call): Add constant folding
8873 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
8874 * fold-const-call.h (build_cmp_result): Declare the function.
8875 * gimple-fold.c (gimple_load_first_char): New function.
8876 (gimple_fold_builtin_string_compare): Likewise.
8877 (gimple_fold_builtin): Call the function.
8878
8879 2016-10-14 Nathan Sidwell <nathan@acm.org>
8880
8881 * gcov-io.c (gcov_open): Deconstify 'mode'.
8882
8883 2016-10-14 Martin Liska <mliska@suse.cz>
8884
8885 * fold-const.c (c_getstr): Support of properly \0-terminated
8886 string constants. New argument is added.
8887 * fold-const.h: New argument is added.
8888
8889 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8890
8891 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
8892 New function.
8893 (aarch64_print_hint_for_core): Likewise.
8894 (aarch64_print_hint_for_arch): Likewise.
8895 (aarch64_validate_march): Use it. Fix indentation in type signature.
8896 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
8897 (aarch64_validate_mtune): Likewise.
8898 (aarch64_handle_attr_arch): Likewise.
8899 (aarch64_handle_attr_cpu): Likewise.
8900 (aarch64_handle_attr_tune): Likewise.
8901
8902 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8903
8904 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
8905 and udivmod_optab.
8906
8907 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
8908
8909 * config/m68k/m68k.c (m68k_option_override): Check
8910 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
8911 instead of stack_limit_rtx.
8912
8913 2016-10-13 Jakub Jelinek <jakub@redhat.com>
8914
8915 * dwarf2out.c (gen_member_die): Handle inline static data member
8916 definitions.
8917
8918 2016-10-13 Nathan Sidwell <nathan@acm.org>
8919
8920 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
8921 gcov_var.mode. Remove unnecessary fstat.
8922
8923 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
8924
8925 PR bootstrap/77962
8926 * function.c (thread_prologue_and_epilogue_insns): Call all
8927 make_*logue_seq in the same order as traditional. Call them
8928 all a second time if shrink_wrapped_separate.
8929
8930 2016-10-13 Marek Polacek <polacek@redhat.com>
8931
8932 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
8933 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
8934 use -Wno-error.
8935
8936 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8937
8938 PR tree-optimization/77937
8939 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
8940 to infinite when we have a pointer with an increment of -1.
8941
8942 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
8943
8944 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
8945 into ...
8946 * memmodel.h: This file.
8947 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
8948 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
8949 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
8950 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
8951 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
8952 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
8953 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
8954 compare-elim.c, config/aarch64/aarch64-builtins.c,
8955 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
8956 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
8957 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
8958 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
8959 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
8960 config/darwin.c, config/epiphany/epiphany.c,
8961 config/epiphany/mode-switch-use.c,
8962 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
8963 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
8964 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
8965 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
8966 config/m68k/m68k.c, config/mcore/mcore.c,
8967 config/microblaze/microblaze.c, config/mmix/mmix.c,
8968 config/mn10300/mn10300.c, config/moxie/moxie.c,
8969 config/msp430/msp430.c, config/nds32/nds32-cost.c,
8970 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
8971 config/nds32/nds32-memory-manipulation.c,
8972 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
8973 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
8974 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
8975 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
8976 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
8977 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
8978 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8979 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
8980 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
8981 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
8982 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
8983 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
8984 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
8985 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
8986 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
8987 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
8988 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
8989 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
8990 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
8991 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
8992 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
8993 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
8994 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
8995 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
8996 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
8997 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
8998 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
8999 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
9000 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
9001 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
9002 var-tracking.c, varasm.c: Include memmodel.h.
9003 * genattrtab.c (write_header): Include memmodel.h in generated file.
9004 * genautomata.c (main): Likewise.
9005 * gengtype.c (open_base_files): Likewise.
9006 * genopinit.c (main): Likewise.
9007 * genconditions.c (write_header): Include memmodel.h earlier in
9008 generated file.
9009 * genemit.c (main): Likewise.
9010 * genoutput.c (output_prologue): Likewise.
9011 * genpeep.c (main): Likewise.
9012 * genpreds.c (write_insn_preds_c): Likewise.
9013 * genrecog.c (write_header): Likewise.
9014 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
9015
9016 2016-10-13 David Malcolm <dmalcolm@redhat.com>
9017
9018 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
9019 for new "compact" param of print_rtx_function. Check for "cinsn"
9020 rather than "insn".
9021 * print-rtl-function.c (flag_compact): New decl.
9022 (print_rtx_function): Add param "compact" and use it to set
9023 flag_compact, adding a description of the effect to the leading
9024 comment, and updating the example output.
9025 * print-rtl.c (flag_compact): New variable.
9026 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
9027 mode.
9028 (print_rtx_operand_code_i): When printing source locations, wrap
9029 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
9030 (print_rtx_operand_code_r): Don't print regnos for hard regs and
9031 virtuals in compact mode.
9032 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
9033 apart from in LABEL_REFs.
9034 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
9035 Don't print basic block ids in compact mode.
9036 (print_rtx): In compact mode, prefix the code of insns with "c",
9037 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
9038 * print-rtl.h (print_rtx_function): Add "compact" param.
9039
9040 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
9041
9042 * arm.h (TARGET_VFP): Delete.
9043 (TARGET_VFPD32): Remove references to TARGET_VFP.
9044 (TARGET_VFP3, TARGET_VFP5): Likewise.
9045 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
9046 (TARGET_NEON_FP16): Likewise.
9047 (TARGET_FMA): Likewise.
9048 (TARGET_CRYPTO): Likewise.
9049 (TARGET_NEON): Likewise.
9050 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9051 (FUNCTION_ARG_REGNO_P): Likewise.
9052 * arm.c (arm_option_check_internal): Likewise.
9053 (arm_option_override): Likewise.
9054 (use_return_insn): Likewise.
9055 (arm_function_value_regno_p): Likewise.
9056 (arm_apply_result_size): Likewise.
9057 (use_vfp_abi): Likewise.
9058 (arm_legitimate_address_outer_p): Likewise.
9059 (thumb2_legitimate_address_p): Likewise.
9060 (arm_legitimate_index_p): Likewise.
9061 (thumb2_legitimate_index_p): Likewise.
9062 (arm_legitimate_address): Likewise.
9063 (arm_get_vfp_saved_size): Likewise.
9064 (arm_emit_vfp_multi_reg_pop): Likewise.
9065 (arm_get_frame_offsets): Likewise.
9066 (arm_save_coproc_regs): Likewise.
9067 (arm_hard_regno_mode_ok): Likewise.
9068 (arm_expand_epilogue_apcs_frame): Likewise.
9069 (arm_expand_epilogue): Likewise.
9070 (arm_file_start): Likewise.
9071 (arm_conditional_register_usage): Likewise.
9072 (arm_validize_comparison): Use vfp_compare_operand directly.
9073 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
9074 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
9075 unsupported usage.
9076 (arm_atomic_assign_expand_fenv): Likewise.
9077 * arm.md (divsf3): Likewise.
9078 (arm_negsi2): Likewise.
9079 (absdf2): Likewise.
9080 (arm_movdi): Likewise.
9081 (arm_movt): Likewise.
9082 (cbranchsf4): Change predicate to vfp_compare_operand.
9083 (cbranchdf4): Change predicate to vfp_compare_operand.
9084 (cstorehf4): Change predicate to vfp_compare_operand.
9085 (cstoresf4): Change predicate to vfp_compare_operand.
9086 (cstoredf4): Change predicate to vfp_compare_operand.
9087 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
9088 (movhi_insn_arch4, movhi_bytes): Likewise.
9089 * constraints.md (Dt): Likewise.
9090 (Dp): Likewise.
9091 * iterators.md (SDF): Likewise.
9092 * predicates.md (arm_float_compare_operand): Delete.
9093 (const_double_vcvt_power_of_two_reciprocal): Remove references to
9094 TARGET_VFP.
9095 (const_double_vcvt_power_of_two): Likewise.
9096 * thumb2.md thumb2_movsi_insn): Likewise.
9097 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
9098 (movhf_vfp): Likewise.
9099 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
9100 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
9101 (movsf_vfp, thumb2_movsf_vfp): Likewise.
9102 (movdf_vfp, thumb2_movdf_vfp): Likewise.
9103 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
9104 (subsf3_vfp, divsf3_vfp): Likewise.
9105 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
9106 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
9107 (mulsf3negsfsubsf_vfp): Likewise.
9108 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
9109 (floatunssisf2, sqrtsf2_vfp): Likewise.
9110 (movcc_vfp): Likewise.
9111 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
9112 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
9113 (push_multi_vfp): Likewise.
9114 (set_fpscr, get_fpscr): Likewise.
9115 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
9116
9117 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
9118
9119 * arm.h (TARGET_VFP): Unconditionally define to 1.
9120 (arm_fpu_desc): Remove 'model' field.
9121 (TARGET_FPU_MODEL): Delete.
9122 * arm.c (all_fpus): Don't initialize the model field.
9123 (arm_can_inline_p): Don't check the FPU model.
9124 * arm-fpus.def: Remove redundant model field from all FPU
9125 descriptions.
9126
9127 2016-10-13 Richard Biener <rguenther@suse.de>
9128
9129 PR middle-end/77826
9130 * genmatch.c (struct capture): Add value_match member.
9131 (commutate): Preserve value_match.
9132 (lower_opt_convert): Likewise.
9133 (lower_cond): Likewise.
9134 (replace_id): Likewise.
9135 (struct dt_operand): Add value_match member.
9136 (decision_tree::cmp_node): Compare it.
9137 (decision_tree::insert_operand): Honor it when finding and
9138 when appending a DT_MATCH.
9139 (dt_operand::gen_match_op): Generate a type check after
9140 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
9141 (parser::get_internal_capture_id): New helper.
9142 (parser::finish_match_operand): New function lowering @@<id>.
9143 (parser::parse_capture): Parse @@<id> as value-match.
9144 (parser::parse_expr): Use get_internal_capture_id.
9145 (parser::parse_simplify): Call finish_match_operand.
9146 (walk_captures): New helper.
9147 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
9148 of operand_equal_p.
9149 ((X /[ex] A) * A -> X): Likewise.
9150 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
9151 convert[12] and value-matching.
9152 ((A | B) & (A | C) -> A | (B & C)): Likewise.
9153 ((X | Y) | Y -> X | Y): Likewise.
9154 ((X ^ Y) ^ Y -> X): Likewise.
9155 (A - (A & B) -> ~B & A): Likewise.
9156 ((T)(P + A) - (T)P -> (T) A): Likewise.
9157 ((T)P - (T)(P + A) -> -(T) A): Likewise.
9158 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
9159 * doc/match-and-simplify.texi: Amend capture section.
9160
9161 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
9162
9163 * config/arc/arc.md (umul_600): Remove predicated variant.
9164 (umul64_600): Likewise.
9165
9166 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
9167
9168 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
9169
9170 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9171
9172 * tree-vect-loop.c (loop_niters_no_overflow): New func.
9173 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
9174 no-overflow information to vect_do_peeling_for_loop_bound and
9175 vect_gen_vector_loop_niters.
9176
9177 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9178
9179 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
9180 iterates 1 time.
9181
9182 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9183
9184 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
9185 adjust_vec automatically.
9186 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
9187 param exit_bb to guard_to.
9188 (slpeel_checking_verify_cfg_after_peeling):
9189 (set_prologue_iterations):
9190 (create_lcssa_for_virtual_phi): New func which is factored out from
9191 slpeel_tree_peel_loop_to_edge.
9192 (slpeel_tree_peel_loop_to_edge):
9193 (iv_phi_p): New func.
9194 (vect_can_advance_ivs_p): Call iv_phi_p.
9195 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
9196 new gimple stmts in basic block.
9197 (vect_gen_niters_for_prolog_loop): Rename to...
9198 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
9199 adjust implementation.
9200 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
9201 sizetype if necessary.
9202 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
9203 it to external function.
9204 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
9205 (vect_gen_vector_loop_niters_mult_vf): New.
9206 (slpeel_update_phi_nodes_for_loops): New.
9207 (slpeel_update_phi_nodes_for_guard1): Reimplement.
9208 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
9209 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
9210 * tree-vect-loop.c (vect_build_loop_niters): Move to file
9211 tree-vect-loop-manip.c
9212 (vect_generate_tmps_on_preheader): Delete.
9213 (vect_transform_loop): Rename vectorization_factor to vf. Call
9214 vect_do_peeling instead of vect_do_peeling-* functions.
9215 * tree-vectorizer.h (vect_do_peeling): New decl.
9216 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
9217 (vect_do_peeling_for_loop_bound): Delete.
9218 (vect_do_peeling_for_alignment): Delete.
9219
9220 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9221
9222 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
9223 duplicated loop after its preheader and after the original loop.
9224
9225 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9226
9227 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
9228 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
9229
9230 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9231
9232 * tree-vect-loop.c (vectorizable_live_operation): Support handling
9233 for live variable outside loop but not in lcssa form.
9234
9235 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9236
9237 * cfg.c (reset_original_copy_tables): New func.
9238 * cfg.h (reset_original_copy_tables): New decl.
9239
9240 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9241
9242 PR c/77946
9243 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
9244 public_flag.
9245 * varasm.c (default_binds_local_p_3): Formatting fix.
9246
9247 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9248
9249 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
9250 style issue.
9251 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
9252 Remove useless code.
9253
9254 2016-10-13 Martin Liska <mliska@suse.cz>
9255
9256 PR tree-optimization/77943
9257 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
9258 a different EH landing pads.
9259
9260 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9261
9262 PR target/77957
9263 * hooks.h (hook_tree_void_null): Declare.
9264 * hooks.c (hook_tree_void_null): New function.
9265 * langhooks.c (lhd_return_null_tree_v): Remove.
9266 * langhooks-def.h (lhd_return_null_tree_v): Remove.
9267 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
9268 set y to const0_rtx.
9269 * function.c (stack_protect_epilogue): Likewise.
9270 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
9271 if TARGET_THREAD_SSP_OFFSET is defined.
9272 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9273 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9274 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9275 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9276 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9277 (ix86_stack_protect_guard): New function.
9278
9279 2016-10-13 Richard Biener <rguenther@suse.de>
9280
9281 * dwarf2out.c (tree_add_const_value_attribute): Do not try
9282 rtl_for_decl_init during early phase.
9283 (gen_variable_die): Do not create locations during early phase.
9284 (gen_label_die): Likewise.
9285 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
9286 twice.
9287
9288 2016-10-12 Richard Biener <rguenther@suse.de>
9289
9290 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
9291 try_add_new_range and made to eturn new range.
9292 (evrp_dom_walker::before_dom_children): Push op1 value range before
9293 pushing op0 value range.
9294
9295 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9296
9297 PR tree-optimization/77937
9298 * gimple-ssa-strength-reduction.c (analyze_increments): Use
9299 POINTER_TYPE_P on the candidate type to determine whether
9300 candidates in this chain require pointer arithmetic.
9301
9302 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
9303
9304 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
9305 correction if the type is smaller than a word.
9306 (visium_select_cc_mode): Add ... fall through ... comment.
9307
9308 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9309
9310 * config/rs6000/rs6000.c (machine_function): Add new fields
9311 gpr_is_wrapped_separately and lr_is_wrapped_separately.
9312 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
9313 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
9314 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
9315 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
9316 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
9317 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
9318 (rs6000_get_separate_components): New function.
9319 (rs6000_components_for_bb): New function.
9320 (rs6000_disqualify_components): New function.
9321 (rs6000_emit_prologue_components): New function.
9322 (rs6000_emit_epilogue_components): New function.
9323 (rs6000_set_handled_components): New function.
9324 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
9325 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
9326 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
9327 (rs6000_emit_epilogue): Don't emit GPR restores if
9328 gpr_is_wrapped_separately for that register. Don't make a
9329 REG_CFA_RESTORE note for registers we did not restore, either.
9330
9331 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9332
9333 * function.c (thread_prologue_and_epilogue_insns): Call
9334 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
9335 if it has possibly changed. Compute the split_prologue_seq and
9336 epilogue_seq later, too.
9337 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
9338 (dump_components): New function.
9339 (struct sw): New struct.
9340 (SW): New function.
9341 (init_separate_shrink_wrap): New function.
9342 (fini_separate_shrink_wrap): New function.
9343 (place_prologue_for_one_component): New function.
9344 (spread_components): New function.
9345 (disqualify_problematic_components): New function.
9346 (emit_common_heads_for_components): New function.
9347 (emit_common_tails_for_components): New function.
9348 (insert_prologue_epilogue_for_components): New function.
9349 (try_shrink_wrapping_separate): New function.
9350 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
9351
9352 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9353
9354 * regrename.c (build_def_use): Invalidate chains that have a
9355 REG_CFA_RESTORE on some instruction.
9356
9357 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9358
9359 * dce.c (delete_unmarked_insns): Don't delete instructions with
9360 a REG_CFA_RESTORE note.
9361
9362 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9363
9364 * common.opt (-fshrink-wrap-separate): New flag.
9365 * doc/invoke.texi: Document it.
9366 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
9367 * doc/tm.texi: Regenerate.
9368 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
9369 * target.def (shrink_wrap): New hook vector.
9370 (get_separate_components, components_for_bb, disqualify_components,
9371 emit_prologue_components, emit_epilogue_components,
9372 set_handled_components): New hooks.
9373
9374 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9375
9376 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
9377 vector return by reference only if -Wpsabi.
9378 (rs6000_pass_by_reference): Similarly, for argument passing.
9379
9380 2016-10-12 David Malcolm <dmalcolm@redhat.com>
9381
9382 * function-tests.c: Include "print-rtl.h".
9383 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
9384 function, and verify what is dumped.
9385 * print-rtl-function.c (print_edge): New function.
9386 (begin_any_block): New function.
9387 (end_any_block): New function.
9388 (can_have_basic_block_p): New function.
9389 (print_rtx_function): Track the basic blocks of insns in the
9390 chain, wrapping those that are within blocks within "(block)"
9391 directives. Remove the "(cfg)" directive.
9392
9393 2016-10-12 David Malcolm <dmalcolm@redhat.com>
9394
9395 * selftest.c (selftest::read_file): New function.
9396 (selftest::test_read_file): New function.
9397 (selftest::selftest_c_tests): Call test_read_file.
9398 * selftest.h (selftest::read_file): New decl.
9399
9400 2016-10-12 Richard Biener <rguenther@suse.de>
9401
9402 PR debug/77947
9403 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
9404 function context.
9405
9406 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
9407
9408 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
9409
9410 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
9411 dwarf2out_assembly_start.
9412
9413 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
9414
9415 * Makefile.in (SELFTEST_FLAGS): New variable.
9416 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
9417
9418 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
9419 early_finish hook.
9420
9421 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
9422
9423 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
9424 dumped in RTL dumps.
9425
9426 2016-10-12 Martin Liska <mliska@suse.cz>
9427
9428 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
9429 (gimple_fold_builtin_memory_op): Use the function.
9430 (gimple_fold_builtin_strchr): Likewise.
9431 (gimple_fold_builtin_strcat): Likewise.
9432 (gimple_build): Likewise.
9433
9434 2016-10-12 Nathan Sidwell <nathan@acm.org>
9435
9436 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
9437
9438 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
9439
9440 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
9441 equivalent 32-bit constant (modulo 2**32) when that yields
9442 smaller instructions.
9443 (size_of_int_loc_descriptor): Update accordingly.
9444
9445 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
9446
9447 * dwarf2out.c (dwarf2out_early_global_decl): For nested
9448 functions, call dwarf2out_decl on the parent function first.
9449
9450 2016-10-12 Richard Biener <rguenther@suse.de>
9451
9452 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
9453 on the conversion.
9454
9455 2016-10-12 Richard Biener <rguenther@suse.de>
9456
9457 * tree-ssa-propagate.c
9458 (substitute_and_fold_dom_walker::before_dom_children): Do not
9459 ignore ASSERT_EXPRs but only preserve them.
9460 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
9461 that have been propagated into.
9462 (vrp_finalize): Enable DCE for substitute_and_fold.
9463
9464 2016-10-12 Richard Biener <rguenther@suse.de>
9465
9466 PR tree-optimization/77920
9467 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
9468 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
9469 (simplify_abs_using_ranges): Likewise.
9470 (simplify_conversion_using_ranges): Likewise.
9471 (simplify_stmt_using_ranges): Adjust.
9472
9473 2016-10-12 Jakub Jelinek <jakub@redhat.com>
9474
9475 PR tree-optimization/77929
9476 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
9477 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
9478
9479 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9480
9481 PR target/77934
9482 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
9483 needs a base register for arg 1.
9484
9485 2016-10-12 Jakub Jelinek <jakub@redhat.com>
9486
9487 * common.opt (Wimplicit-fallthrough) Turn into alias to
9488 -Wimplicit-fallthrough=3. Remove EnabledBy.
9489 (Wimplicit-fallthrough=): New option.
9490 * gimplify.c (warn_implicit_fallthrough_r): Use
9491 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
9492 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
9493 to -Wimplicit-fallthrough=3.
9494 (-Wimplicit-fallthrough=): Document.
9495
9496 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9497
9498 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
9499 and GEU in DImode if TARGET_SUBXC.
9500 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
9501 (seqdi<W:mode>_zero_subxc): Delete.
9502 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
9503 (neg_seqdi<W:mode>_zero_vis3): Delete.
9504 (plus_seqdi<W:mode>_zero): Likewise.
9505 (minus_seqdi<W:mode>_zero): Likewise.
9506 (plus_plus_sltu<W:mode>): Accept only register.
9507 (addx<W:mode>): Likewise.
9508 (plus_sltu<W:mode>_vis3): Likewise.
9509 (plus_plus_sltu<W:mode>_vis3): Likewise.
9510 (neg_sgeu<W:mode>_vis3): Delete.
9511 (minus_sgeu<W:mode>_vis3): Likewise.
9512 (addxc<W:mode>): Accept only registers.
9513 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
9514 (minus_neg_sltu<W:mode>_subxc): Accept only register.
9515 (neg_plus_sltu<W:mode>_subxc): Likewise.
9516 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
9517 (minus_minus_sltu<W:mode>_subxc): Accept only register.
9518 (sgeu<W:mode>_insn_subxc): Delete.
9519 (plus_sgeu<W:mode>_subxc): Likewise.
9520 (subxc<W:mode>): Accept only register.
9521 (scc splitter): Split always GEU again.
9522
9523 2016-10-11 Jeff Law <law@redhat.com>
9524
9525 PR tree-optimization/77424
9526 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
9527 dead conditionals. Assert that all e->aux fields are NULL.
9528
9529 2016-10-11 David Malcolm <dmalcolm@redhat.com>
9530
9531 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
9532 operand-printing "switch" statement into...
9533 (print_rtx_operand_code_0): ...this new function, ...
9534 (print_rtx_operand_code_e): ...this new function, ...
9535 (print_rtx_operand_codes_E_and_V): ...this new function, ...
9536 (print_rtx_operand_code_i): ...this new function, ...
9537 (print_rtx_operand_code_r): ...this new function, ...
9538 (print_rtx_operand_code_u): ...this new function, ...
9539 (print_rtx_operand): ...and this new function.
9540
9541 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
9542
9543 * config/alpha/alpha-passes.def: New file.
9544 * config/alpha/t-alpha: New file.
9545 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
9546 (make_pass_handle_trap_shadows): New prototype.
9547 (make_pass_align_insns): Ditto.
9548 * config/alpha/alpha.c (alpha_option_override): Don't register
9549 passes here.
9550 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
9551
9552 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9553
9554 PR target/77924
9555 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
9556 distinct __ibm128 IBM extended double type if long doubles are
9557 128-bits and the default format for long double is IEEE 128-bit.
9558
9559 2016-10-11 Richard Biener <rguenther@suse.de>
9560
9561 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
9562 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
9563 (verify_die): New function.
9564 (dwarf2out_finish): Call it.
9565 (output_line_info): Handle case of -gsplit-dwarf without
9566 DWARF2_ASM_LINE_DEBUG_INFO.
9567
9568 2016-10-11 Richard Biener <rguenther@suse.de>
9569
9570 PR debug/77931
9571 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
9572 sub-chains of BLOCK_VARS and gimple_bind_vars.
9573
9574 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
9575
9576 * config/i386/znver1.md : Fix imov/imovx load type reservations.
9577
9578 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9579
9580 * config/sparc/sparc.opt (msubxc): New option.
9581 * doc/invoke.texi (SPARC options): Document it and tidy up.
9582 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
9583 * doc/tm.texi: Regenerate.
9584 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
9585 (CCNZ): ...this.
9586 (CCX_NOOV): Rename into...
9587 (CCXNZ): ...this.
9588 (CCC): New.
9589 (CCXC): Likewise.
9590 * config/sparc/predicates.m (fcc_register_operand): Simplify.
9591 (fcc0_register_operand): Likewise.
9592 (icc_register_operand): New.
9593 (icc_or_fcc_register_operand): Simplify.
9594 (nz_comparison_operator): New.
9595 (c_comparison_operator): Likewise.
9596 (noov_compare_operator): Rename into...
9597 (icc_comparison_operator): ...this. Use above predicates.
9598 (noov_compare64_operator): Rename into...
9599 (v9_comparison_operator): ...this and tidy up.
9600 (fcc_comparison_operator): New.
9601 (icc_or_fcc_comparison_operator): Likewise.
9602 (v9_register_compare_operator): Rename info...
9603 (v9_register_comparison_operator): ...this.
9604 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
9605 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
9606 for Niagara-7.
9607 (sparc_fixed_condition_code_regs): New function.
9608 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
9609 renaming and add support for CCC/CCXC.
9610 (output_cbranch): Likewise.
9611 (sparc_print_operand): Likewise.
9612 (gen_v9_scc): Remove obsolete assertion.
9613 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
9614 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
9615 (output_cbcond): Remove bogus handling of CC modes.
9616 (sparc_register_move_cost): Return 100 for NO_REGS.
9617 * config/sparc/sparc.md (W): New mode iterator.
9618 (length): Adjust for noov_compare64_operator renaming.
9619 (cmpsi_sne): New instruction.
9620 (cmpdi_sne): Likewise.
9621 (seqdi_special): Delete.
9622 (seqdi_special): Likewise.
9623 (snesi<P:mode>_special): Likewise.
9624 (snedi_special): Likewise.
9625 (snedi_special_vis3): Likewise.
9626 (snesi patterns): Use W iterator.
9627 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
9628 (sltu patterns): Likewise.
9629 (sgeu patterns): Likewise.
9630 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
9631 (normal_branch): Use icc_comparison_operator predicate.
9632 (inverted_branch): Likewise.
9633 (cbcond_sp32): Use comparison_operator predicate.
9634 (cbcond_sp64): Likewise.
9635 (normal_int_branch_sp64): Adjust for renaming
9636 (inverted_int_branch_sp64): Likewise.
9637 (mov<I:mode>_cc_reg_sp64): Likewise.
9638 (movsf_cc_reg_sp6): Likewise.
9639 (movdf_cc_reg_sp64): Likewise.
9640 (movtf_cc_reg_hq_sp64): Likewise.
9641 (movtf_cc_reg_sp64): Likewise.
9642 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
9643 (movsf_cc_v9): Likewise.
9644 (movdf_cc_v9): Likewise.
9645 (movtf_cc_hq_v9): Likewise.
9646 (movtf_cc_v9): Likewise.
9647 (adddi3): Call gen_adddi3_sp32.
9648 (adddi3_insn_sp32): Rename to...
9649 (adddi3_sp32): ...this. Accept only register_operand as operand #1
9650 and use CCCmode for the carry.
9651 (addx_extend_sp32): Use CCCmode for the carry.
9652 (addx_extend_sp64): Delete.
9653 (adddi3_extend_sp32): Use CCCmode for the carry.
9654 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
9655 (subdi3): Call gen_subdi3_sp32.
9656 (subdi3_insn_sp32): Rename to...
9657 (subdi3_sp32): ...this and use CCmode for the carry.
9658 (subx_extend_sp32): Use CCCmode for the carry.
9659 (subx_extend_sp64): Delete.
9660 (subdi3_extend_sp32): Use CCmode for the carry.
9661 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
9662 (negdi3): Call gen_negdi3_sp32.
9663 (negdi3_sp32): Use CCCmode for the carry.
9664 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
9665 (cmp_nz_ashift_1): Use CCNZ mode.
9666 (cmp_nz_set_ashift_1): Likewise.
9667 (ctrapsi4): Use comparison_operator predicate.
9668 (ctrapdi4): Likewise.
9669 (trapsi_insn): Use icc_comparison_operator predicate.
9670 (trapdi_insn): Likewise.
9671 (edge8 patterns): Use CCNZmode.
9672 (edge16 patterns): Likewise.
9673 (edge32 patterns): Likewise.
9674
9675 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9676
9677 * config/visium/visium-modes.def (CC_NOOV): Rename into...
9678 (CCNZ): ...this.
9679 (CC_BTST): Rename into...
9680 (CCC): ...this.
9681 * config/visium/predicates.md (real_add_operand): New.
9682 (visium_btst_operator): Rename into...
9683 (visium_equality_comparison_operator): ...this.
9684 (visium_noov_operator): Rename into...
9685 (visium_nz_comparison_operator): ...this.
9686 (visium_c_comparison_operator): New.
9687 (visium_branch_operator): Adjust and deal with all CC modes.
9688 * config/visium/visium.c (visium_adjust_cost): Adjust.
9689 (visium_split_double_add): Use the *_set_carry patterns.
9690 (visium_select_cc_mode): Add support for CCC mode and adjust.
9691 (output_cbranch): Adjust and use the carry-based operators for
9692 floating-point comparisons.
9693 * config/visium/visium.md (flags_subst_arith): Adjust.
9694 (addsi3_insn_set_carry): New instruction.
9695 (subsi3_insn_set_carry): Likewise.
9696 (negsi2_insn_set_carry): Likewise.
9697 (btst): Adjust.
9698 (cmp<mode>_sne): Likewise.
9699 (cbranch<mode>4): Use ordered_comparison_operator.
9700 (cbranch<mode>4_insn): Likewise.
9701 (cbranchsi4_btst_insn): Adjust.
9702
9703 2016-10-11 Tom de Vries <tom@codesourcery.com>
9704
9705 PR middle-end/77558
9706 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
9707 special-casing.
9708
9709 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9710
9711 * tree.h (build_complex_type): Add second parameter with default.
9712 * tree.c (build_complex_type): Add NAMED second parameter and adjust
9713 recursive call. Create a TYPE_DECL only if NAMED is true.
9714 (build_common_tree_nodes): Pass true in calls to build_complex_type.
9715
9716 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
9717
9718 New avr-passes.def to register AVR specific passes.
9719
9720 * config/avr/avr-passes.def: New file.
9721 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
9722 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
9723 (make_avr_pass_recompute_note): New proto.
9724 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
9725 (avr_pass_recompute_notes): Use anonymous namespace.
9726 (avr_register_passes): Remove function...
9727 (avr_option_override): ...and its call.
9728
9729 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
9730
9731 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
9732 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
9733 PTF_AVOID_BRANCHLIKELY_SPEED for others.
9734 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
9735 flags.
9736 * config/mips/mips.c (mips_option_override): Enable the branch
9737 likely depending on the tune flags and optimization level.
9738 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
9739 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
9740 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
9741 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
9742
9743 2016-10-11 Richard Biener <rguenther@suse.de>
9744
9745 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
9746 (output_function): Properly stream the whole block tree.
9747 * lto-streamer-in.c (input_function): Likewise.
9748
9749 2016-10-11 Marek Polacek <polacek@redhat.com>
9750
9751 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
9752
9753 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
9754
9755 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
9756 (evrp_dom_walker::before_dom_children): Infer and push new value
9757 ranges for x in y < x.
9758
9759 2016-10-10 Joseph Myers <joseph@codesourcery.com>
9760
9761 PR target/77586
9762 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
9763 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
9764 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
9765 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
9766 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
9767 (IA64_NO_LIBGCC_TFMODE): Likewise.
9768
9769 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
9770
9771 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
9772 copying.
9773
9774 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
9775
9776 * config.gcc: Add aarch64-*-freebsd* support.
9777 * config.host: Likewise.
9778 * config/aarch64/aarch64-freebsd.h: New file.
9779 * config/aarch64/t-aarch64-freebsd: Ditto.
9780
9781 2016-10-10 Jeff Law <law@redhat.com>
9782
9783 PR tree-optimization/71947
9784 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
9785 B with A within a single statement.
9786
9787 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9788
9789 PR tree-optimization/77824
9790 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
9791 zero cost for copies.
9792 (find_candidates_dom_walker::before_dom_children): Replace
9793 MODIFY_EXPR with SSA_NAME.
9794 (replace_mult_candidate): Likewise.
9795 (replace_profitable_candidates): Likewise.
9796
9797 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9798
9799 * config/s390/s390.h: Wrap more macros args in brackets and fix
9800
9801 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
9802
9803 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
9804
9805 2016-10-10 Andreas Schwab <schwab@suse.de>
9806
9807 PR target/77738
9808 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
9809 pseudo is not DImode.
9810
9811 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
9812
9813 * common/config/arc/arc-common.c (arc_option_optimization_table):
9814 Remove compact casesi option.
9815 * config/arc/arc.c (arc_override_options): Use compact casesi
9816 option only for pre-ARCv2 cores.
9817 * doc/invoke.texi (mcompact-casesi): Update text.
9818
9819 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9820
9821 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
9822 Add macro to say we can efficiently handle overlapping unaligned
9823 loads.
9824 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
9825 poor code for processors older than p8.
9826
9827 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
9828
9829 * gen-pass-instances.awk: Remove GNUism.
9830
9831 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9832
9833 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
9834 NULL of (*ipcp_transformations)][node->uid].
9835
9836 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
9837
9838 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
9839 (MALLOC_ABI_ALIGNMENT): Define.
9840
9841 2016-10-09 Jakub Jelinek <jakub@redhat.com>
9842
9843 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
9844 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
9845 VAR_OR_FUNCTION_DECL_P macros.
9846 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
9847 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
9848 chkp_find_bounds_1): Likewise.
9849 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
9850 * hsa-gen.c (get_symbol_for_decl): Likewise.
9851 * cgraphunit.c (check_global_declaration, analyze_functions,
9852 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
9853 Likewise.
9854 * gimple-fold.c (can_refer_decl_in_current_unit_p,
9855 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
9856 Likewise.
9857 * tree.c (set_decl_section_name, copy_node_stat,
9858 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
9859 merge_dllimport_decl_attributes, handle_dll_attribute,
9860 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
9861 verify_type): Likewise.
9862 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
9863 find_explicit_erroneous_behavior): Likewise.
9864 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
9865 * ipa.c (process_references): Likewise.
9866 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
9867 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
9868 notice_global_symbol, assemble_variable, mark_decl_referenced,
9869 build_constant_desc, output_constant_def_contents, do_assemble_alias,
9870 make_decl_one_only, default_section_type_flags,
9871 categorize_decl_for_section, default_encode_section_info): Likewise.
9872 * trans-mem.c (requires_barrier): Likewise.
9873 * gimple-expr.c (mark_addressable): Likewise.
9874 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
9875 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
9876 expand_debug_expr): Likewise.
9877 * tree-dump.c (dequeue_and_dump): Likewise.
9878 * ubsan.c (instrument_bool_enum_load): Likewise.
9879 * tree-pretty-print.c (print_declaration): Likewise.
9880 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
9881 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
9882 * asan.c (asan_protect_global, instrument_derefs): Likewise.
9883 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
9884 pass_build_ssa::execute): Likewise.
9885 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
9886 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
9887 Likewise.
9888 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
9889 Likewise.
9890 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
9891 can_be_nonlocal, remap_decls, copy_debug_stmt,
9892 initialize_inlined_parameters, add_local_variables,
9893 reset_debug_binding, replace_locals_op): Likewise.
9894 * dse.c (can_escape): Likewise.
9895 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
9896 Likewise.
9897 * tree-diagnostic.c (default_tree_printer): Likewise.
9898 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
9899 unpack_ts_decl_with_vis_value_fields,
9900 lto_input_ts_decl_common_tree_pointers): Likewise.
9901 * builtins.c (builtin_save_expr, fold_builtin_expect,
9902 readonly_data_expr): Likewise.
9903 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
9904 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
9905 Likewise.
9906 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
9907 * gimplify.c (force_constant_size, gimplify_bind_expr,
9908 gimplify_decl_expr, gimplify_var_or_parm_decl,
9909 gimplify_compound_lval, gimplify_init_constructor,
9910 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
9911 gimplify_type_sizes): Likewise.
9912 * cgraphbuild.c (record_reference, record_type_list, mark_address,
9913 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
9914 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
9915 remove_unused_locals): Likewise.
9916 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
9917 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
9918 * function.c (instantiate_expr, instantiate_decls_1,
9919 setjmp_vars_warning, add_local_decl): Likewise.
9920 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
9921 Likewise.
9922 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
9923 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
9924 optimize_va_list_gpr_fpr_size): Likewise.
9925 * tree-nrv.c (pass_nrv::execute): Likewise.
9926 * tsan.c (instrument_expr): Likewise.
9927 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
9928 * vtable-verify.c (verify_bb_vtables): Likewise.
9929 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
9930 get_ref_base_and_extent): Likewise.
9931 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
9932 Likewise.
9933 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
9934 analyze_all_variable_accesses): Likewise.
9935 * tree-nested.c (get_nonlocal_debug_decl,
9936 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
9937 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
9938 get_local_debug_decl, convert_local_omp_clauses,
9939 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
9940 Likewise.
9941 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
9942 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
9943 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
9944 dbxout_symbol, dbxout_common_check): Likewise.
9945 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
9946 string_constant): Likewise.
9947 * hsa.c (hsa_get_declaration_name): Likewise.
9948 * passes.c (rest_of_decl_compilation): Likewise.
9949 * tree-ssanames.c (make_ssa_name_fn): Likewise.
9950 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
9951 pack_ts_decl_with_vis_value_fields,
9952 write_ts_decl_common_tree_pointers): Likewise.
9953 * stor-layout.c (place_field): Likewise.
9954 * symtab.c (symtab_node::maybe_create_reference,
9955 symtab_node::verify_base, symtab_node::make_decl_local,
9956 symtab_node::copy_visibility_from,
9957 symtab_node::can_increase_alignment_p): Likewise.
9958 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
9959 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
9960 fortran_common, add_location_or_const_value_attribute,
9961 add_scalar_info, add_linkage_name, set_block_abstract_flags,
9962 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
9963 optimize_one_addr_into_implicit_ptr,
9964 optimize_location_into_implicit_ptr): Likewise.
9965 * gimple-low.c (record_vars_into): Likewise.
9966 * ipa-visibility.c (update_vtable_references): Likewise.
9967 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
9968 Likewise.
9969 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
9970 DFS::DFS_write_tree_body, write_symbol): Likewise.
9971 * langhooks.c (lhd_warn_unused_global_decl,
9972 lhd_set_decl_assembler_name): Likewise.
9973 * attribs.c (decl_attributes): Likewise.
9974 * except.c (output_ttype): Likewise.
9975 * varpool.c (varpool_node::get_create, ctor_for_folding,
9976 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
9977 * fold-const.c (fold_unary_loc): Likewise.
9978 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
9979 ipa_find_agg_cst_from_init): Likewise.
9980 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
9981 expand_omp_target, lower_omp_regimplify_p,
9982 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
9983 find_link_var_op): Likewise.
9984 * tree-chrec.c (chrec_contains_symbols): Likewise.
9985 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
9986 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
9987 execute_fixup_cfg): Likewise.
9988
9989 PR tree-optimization/77901
9990 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
9991 if ranges[i].exp is SSA_NAME when looking for >= and only when
9992 ranges[i].exp is NULL or SSA_NAME when looking for the other
9993 comparison.
9994
9995 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9996
9997 * ipa-cp.c (ipcp_alignment_lattice): Remove.
9998 (ipcp_param_lattices): Remove field alignment.
9999 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
10000 (set_all_contains_variable): Remove call to
10001 ipcp_alignment_lattice::set_to_bottom.
10002 (initialize_node_lattices): Likewise.
10003 (propagate_alignment_accross_jump_function): Remove.
10004 (propagate_constants_accross_call): Remove call to
10005 propagate_alignment_accross_jump_function.
10006 (ipcp_store_alignment_results): Remove.
10007 (ipcp_driver): Remove call to ipcp_store_alignment_results.
10008 (propagate_bits_accross_jump_function): Handle ancestor jump function.
10009 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
10010 pretty-printing of alignment jump function.
10011 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
10012 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
10013 alignments and remove computing ipa_alignment jump function.
10014 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
10015 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
10016 (ipa_read_jump_function): Remove reading of ipa_alignment.
10017 (write_ipcp_transformation_info): Remove streaming for alignment
10018 propagation summary.
10019 (read_ipcp_transformation_info): Remove reading of alignment
10020 propagation summary.
10021 (ipcp_update_alignments): Remove.
10022 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
10023 type.
10024 (ipcp_transform_function): Remove call to ipcp_update_alignments()
10025 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
10026 * ipa-prop.h (ipa_alignment): Remove.
10027 (ipa_jump_func): Remove field alignment.
10028 (ipcp_transformation_summary): Remove field alignments.
10029 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
10030 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
10031 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
10032
10033 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
10034
10035 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
10036
10037 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
10038 change.
10039 (visium_expand_fp_cstore): Likewise.
10040
10041 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10042
10043 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
10044 * diagnostic.c (warning_at_rich_loc_n): New function.
10045 (diagnostic_n_impl_richloc): Likewise.
10046 (diagnostic_n_impl): Move most of the function to
10047 diagnostic_n_impl_richloc and call it.
10048
10049 2016-10-08 Jakub Jelinek <jakub@redhat.com>
10050
10051 * gen-pass-instances.awk: Rewritten.
10052 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
10053 $(PASSES_EXTRA) after passes.def to the script.
10054 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
10055 * config/i386/i386-passes.def: New file.
10056 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
10057 make_pass_stv): Declare.
10058 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
10059 false.
10060 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
10061 or !TARGET_64BIT.
10062 (pass_stv::clone, pass_stv::set_pass_param): New methods.
10063 (pass_stv::timode_p): New non-static data member.
10064 (ix86_option_override): Don't register passes here.
10065
10066 * doc/invoke.texi: Document accepting Else, fallthrough.
10067
10068 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
10069 style changes.
10070
10071 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
10072 FALLTHRU comment styles.
10073
10074 2016-10-07 Andrew Pinski <apinski@cavium.com>
10075
10076 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
10077 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
10078 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
10079 Likewise.
10080 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
10081 Likewise.
10082 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
10083 Likewise.
10084 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
10085 (AARCH64_ARCH): Likewise.
10086 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
10087 Likewise.
10088 (AARCH64_CORE): Likewise.
10089 (AARCH64_ARCH): Likewise.
10090 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
10091 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10092 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
10093 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10094 (AARCH64_ARCH): Likewise.
10095 (AARCH64_CORE): Likewise.
10096 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
10097 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
10098 (AARCH64_CORE): Likewise.
10099 (AARCH64_ARCH): Likewise.
10100
10101 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
10102
10103 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
10104 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
10105 floating point type infrastructre, and -mfloat128 that enables the
10106 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
10107 if -mfloat128-type. Define __ibm128 to be long double by default.
10108 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
10109 the IEEE 128-bit floating point type infrastructure should
10110 automatically be enabled.
10111 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
10112 instead of -mfloat128 to enable KFmode.
10113 (rs6000_option_override_internal): Split the option -mfloat128
10114 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
10115 systems, automatically set -mfloat128-type, but don't enable it on
10116 other operating systems. Move setting the long double size and
10117 IEEE quad support before the IEEE 128-bit floating point changes.
10118 (rs6000_init_builtins): Do not create a unique type for __ibm128
10119 if long double is IBM extended double, instead rely on __ibm128
10120 being defined as 'long double'. If -mfloat128-type and not
10121 -mfloat128, create the KFmode type with an undocumented __ieee128
10122 keyword.
10123 (rs6000_init_libfuncs): Use -mfloat128-type instead of
10124 -mfloat128 for tests about the types, but keep tests for
10125 -mfloat128 to enable the keyword support.
10126 (rs6000_complex_function_value): Likewise.
10127 (rs6000_scalar_mode_supported_p): Likewise.
10128 (rs6000_floatn_mode): Likewise.
10129 (rs6000_c_mode_for_suffix): Likewise.
10130 (rs6000_opt_masks): Add -mfloat128-type.
10131 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
10132 -mfloat128-type being split from -mfloat128. Add
10133 -mfloat128-hardware, which was missing.
10134 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
10135 -mfloat128 and -mfloat128-type:
10136 (-mfloat128-type): Likewise.
10137 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
10138 that 64-bit Linux systems with enable -mfloat128-type by default
10139 on VSX systems.
10140 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
10141 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
10142 -mfloat128-type instead of -mfloat128.
10143 (FLOAT128_2REG_P): Likewise.
10144 (MASK_FLOAT128_TYPE): Likewise.
10145 (ALTIVEC_ARG_MAX_RETURN): Likewise.
10146 (RS6000_BTM_FLOAT128): Likewise.
10147 (TARGET_FLOAT128): Poison old identifiers.
10148 (OPTION_MASK_FLOAT128): Likewise.
10149 (MASK_FLOAT128): Likewise.
10150 * config/rs6000/rs6000.md (FP): Likewise.
10151 (FLOAT128): Likewise.
10152 (fix_trunc<mode>di2): Likewise.
10153 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
10154 (floatdi<mode>2): Likewise.
10155 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
10156 (neg<mode>2, FLOAT128 iterator): Likewise.
10157 (abs<mode>2, FLOAT128 iterator): Likewise.
10158 (ieee_128bit_negative_zero): Likewise.
10159 (ieee_128bit_vsx_neg<mode>2): Likewise.
10160 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
10161 (ieee_128bit_vsx_abs<mode>2): Likewise.
10162 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
10163 (ieee_128bit_vsx_nabs<mode>2): Likewise.
10164 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
10165 (extendiftf2): Likewise.
10166 (extendifkf2): Likewise.
10167 (extendtfkf2): Likewise.
10168 (trunciftf2): Likewise.
10169 (truncifkf2): Likewise.
10170 (trunckftf2): Likewise.
10171 (trunctfif2): Likewise.
10172 (extendkftf2): Likewise.
10173 (trunctfkf2): Likewise.
10174
10175 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10176
10177 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
10178 before merging in bytes to pass down to real_from_target.
10179
10180 2016-10-07 Richard Biener <rguenther@suse.de>
10181
10182 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
10183 required hack.
10184 (substitute_and_fold_dom_walker::before_dom_children):
10185 Substitute and fold before pass specific folding to avoid
10186 feeding that with SSA names that will be later released.
10187 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
10188 introduced by folding and visited by evaluate_stmt called during
10189 ccp_fold_stmt.
10190 (likely_value): Likewise.
10191 (evaluate_stmt): Likewise.
10192 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
10193 (simplify_div_or_mod_using_ranges): Likewise.
10194 (simplify_min_or_max_using_ranges): Likewise.
10195 (simplify_abs_using_ranges): Likewise.
10196 (simplify_conversion_using_ranges): Likewise.
10197 (simplify_float_conversion_using_ranges): Likewise.
10198 (simplify_stmt_using_ranges): Likewise.
10199
10200 2016-10-07 Marek Polacek <polacek@redhat.com>
10201
10202 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
10203 FALLTHROUGH_LABEL_P here...
10204 (warn_implicit_fallthrough_r): ...not here.
10205
10206 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
10207
10208 PR tree-optimization/77880
10209 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
10210 necessary.
10211
10212 2016-10-07 Marek Polacek <polacek@redhat.com>
10213
10214 PR c++/77803
10215 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
10216
10217 2016-10-07 Richard Biener <rguenther@suse.de>
10218
10219 * bitmap.h: Document constraints on bitmap modification while
10220 iterating over it.
10221
10222 2016-10-07 Richard Biener <rguenther@suse.de>
10223
10224 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
10225 * bitmap.h (bmp_iter_set): When advancing to the next element
10226 check that we didn't remove the current one.
10227 (bmp_iter_and): Likewise.
10228 (bmp_iter_and_compl): Likewise.
10229 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
10230 we currently iterate on but keep a one-level queue.
10231 * sched-deps.c (remove_from_deps): Do not clear current bit
10232 but keep a one-level queue.
10233
10234 2016-10-07 Jakub Jelinek <jakub@redhat.com>
10235
10236 PR tree-optimization/77664
10237 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
10238 for the other ranges.
10239 (optimize_range_tests_diff): Fix up formatting.
10240 (optimize_range_tests_var_bound): New function.
10241 (optimize_range_tests): Use it.
10242
10243 2016-10-07 Martin Liska <mliska@suse.cz>
10244
10245 * coverage.c (build_gcov_exit_decl): Fix priority what
10246 should be really 99.
10247
10248 2016-10-07 Richard Biener <rguenther@suse.de>
10249
10250 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
10251 vars in gimple_bind_vars but not in BLOCK_VARS.
10252
10253 2016-10-07 Richard Biener <rguenther@suse.de>
10254
10255 PR tree-optimization/77879
10256 * tree-ssa-structalias.c (handle_const_call): Properly handle
10257 NRV return slots.
10258 (handle_pure_call): Likewise.
10259
10260 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10261
10262 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
10263 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
10264 possible overflow.
10265
10266 2016-10-06 Andrew Pinski <apinski@cavium.com>
10267
10268 * config/aarch64/aarch64-cores.def: Add a comment before each
10269 set of cores.
10270
10271 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
10272
10273 PR tree-optimization/77862
10274 * tree-vrp.c (add_equivalence): Use get_value_range so that
10275 num_vr_values is checked before accessing vr_values.
10276
10277 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
10278
10279 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
10280 POINTER_TYPE_P.
10281
10282 2016-10-05 Jeff Law <law@redhat.com>
10283
10284 PR tree-optimization/71661
10285 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
10286 removal of a forwarder exposes a new natural loop.
10287
10288 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
10289
10290 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
10291 Introduce ssesuffix variable.
10292 (<mask_codefor><code><mode>3<mask_name>): Ditto.
10293 (*<code><mode>3): Ditto.
10294
10295 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
10296
10297 * postreload.c (reload_cse_simplify): Skip also USE when detecting
10298 noop move.
10299
10300 2016-10-06 Richard Biener <rguenther@suse.de>
10301
10302 PR tree-optimization/77855
10303 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
10304 instead of removing the current item while iterating over the set
10305 which is not safe.
10306
10307 2016-10-06 James Clarke <jrtc27@jrtc27.com>
10308 Eric Botcazou <ebotcazou@adacore.com>
10309
10310 PR target/77759
10311 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
10312 (classify_registers): Don't set it
10313 (function_arg_slotno): Don't initialize and test it. Tidy up.
10314
10315 2016-10-06 Richard Biener <rguenther@suse.de>
10316
10317 PR tree-optimization/77839
10318 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
10319 lattice transition.
10320
10321 2016-10-06 Martin Liska <mliska@suse.cz>
10322
10323 * gcc.c: Set -fprofile-update=atomic when profiling is
10324 enabled and -pthread is set. Warn when one combines
10325 -pthread and -fprofile-update=single for an app using
10326 profiling code.
10327
10328 2016-10-06 Martin Liska <mliska@suse.cz>
10329
10330 PR bootstrap/77788
10331 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
10332 * gimple-ssa-strength-reduction.c (slsr_process_cast):
10333 Initialize a pointer to NULL.
10334 (slsr_process_copy): Likewise.
10335 * input.c (location_get_source_line): Likewise.
10336 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
10337
10338 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
10339
10340 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
10341 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
10342 (ix86_handle_option): Deleted handle of OPT_mpcommit.
10343 * config.gcc: Deleted pcommitintrin.h
10344 * config/i386/pcommitintrin.h: Deleted file.
10345 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
10346 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
10347 detection.
10348 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
10349 __PCOMMIT__.
10350 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
10351 (PTA_PCOMMIT): Deleted define.
10352 (ix86_option_override_internal): Deleted handle of option.
10353 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
10354 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
10355 __builtin_ia32_pcommit): Deleted.
10356 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
10357 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
10358 (pcommit): Deleted instruction.
10359 * config/i386/i386.opt: Mention -mpcommit deprecation.
10360 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
10361
10362 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
10363
10364 PR target/77874
10365 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
10366 Remove wrong assert.
10367 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
10368 Use <round_constraint> as operand 1 constraint.
10369
10370 2016-10-05 Jakub Jelinek <jakub@redhat.com>
10371
10372 PR sanitizer/66343
10373 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
10374 (ubsan_instrument_float_cast): And not here.
10375
10376 PR sanitizer/66343
10377 * ubsan.c (ubsan_ids): New GTY(()) array.
10378 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
10379 instead of static local counters.
10380
10381 2016-10-05 Martin Sebor <msebor@redhat.com>
10382
10383 PR bootstrap/77819
10384 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
10385 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
10386 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
10387 (default_printf_pointer_format): Define function.
10388 * targhooks.c (linux_printf_pointer_format): Define new function.
10389 * targhooks.h (linux_printf_pointer_format): Declare.
10390 (gnu_libc_printf_pointer_format): Remove declaration.
10391
10392 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10393
10394 * fold-const.c (native_encode_real): Fix logic for selecting offset
10395 to write to when BYTES_BIG_ENDIAN.
10396
10397 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
10398
10399 * builtins.c (fold_builtin_strchr): Remove function.
10400 (fold_builtin_strrchr): Likewise.
10401 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
10402 * gimple-fold.c (target_char_cst_p): New function.
10403 (gimple_fold_builtin_strchr) Add more foldings.
10404 (gimple_fold_builtin): Add index, strrchr, rindex cases.
10405
10406 2016-10-05 Richard Biener <rguenther@suse.de>
10407
10408 PR middle-end/77863
10409 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
10410 capture ids in c-exprs.
10411
10412 2016-10-05 Richard Biener <rguenther@suse.de>
10413
10414 PR middle-end/77826
10415 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
10416 with types_match for GIMPLE code gen to handle type mismatched
10417 constants properly.
10418 (dt_operand::gen): Adjust.
10419 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
10420 and constant A.
10421
10422 2016-10-05 Richard Biener <rguenther@suse.de>
10423
10424 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
10425
10426 2016-10-05 Richard Biener <rguenther@suse.de>
10427
10428 PR middle-end/77842
10429 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
10430
10431 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
10432
10433 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
10434 version check to protect only DW_TAG_imported_module generation.
10435
10436 2016-10-05 Richard Biener <rguenther@suse.de>
10437
10438 PR middle-end/55152
10439 * match.pd (min(a,-a) -> -abs(a)): New pattern.
10440
10441 2016-10-04 Ian Lance Taylor <iant@golang.org>
10442
10443 * explow.c (allocate_dynamic_stack_space): Call
10444 do_pending_stack_adjust before handling flag_split_stack.
10445
10446 2016-10-04 David Malcolm <dmalcolm@redhat.com>
10447
10448 * genattrtab.c (make_internal_attr): Supply dummy column number to
10449 file_location ctor.
10450 (main): Likewise.
10451 * genoutput.c (init_insn_for_nothing): Likewise.
10452 * gensupport.c (add_define_attr): Likewise.
10453 * read-md.c (message_at_1): Print column number.
10454 (fatal_with_file_and_line): Likewise.
10455 (rtx_reader::read_char): Track column numbers.
10456 (rtx_reader::unread_char): Likewise.
10457 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
10458 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
10459 (rtx_reader::handle_file): Initialize m_read_md_colno.
10460 (rtx_reader::get_current_location): Supply column number to
10461 file_location ctor.
10462 * read-md.h (struct file_location): Add field "colno".
10463 (file_location::file_location): Likewise.
10464 (rtx_reader::get_colno): New accessor.
10465 (rtx_reader::m_read_md_colno): New field.
10466 (rtx_reader::m_last_line_colno): New field.
10467
10468 2016-10-04 Jakub Jelinek <jakub@redhat.com>
10469
10470 * doc/extend.texi (Java Exceptions): Remove.
10471 (java_interface): Remove.
10472
10473 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
10474
10475 PR tree-optimization/77808
10476 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
10477 and addr are different before copying points-to information.
10478
10479 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
10480
10481 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
10482 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
10483 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
10484 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
10485
10486 2016-10-04 Richard Biener <rguenther@suse.de>
10487
10488 PR tree-optimization/77399
10489 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
10490 verify the target can convert.
10491
10492 2016-10-04 Richard Biener <rguenther@suse.de>
10493
10494 PR middle-end/77833
10495 * explow.c (plus_constant): Verify the mode of the constant
10496 pool offset before calling plus_constant.
10497
10498 2016-10-04 Richard Biener <rguenther@suse.de>
10499
10500 PR middle-end/77407
10501 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
10502 type support, mark with :C.
10503 (X / -X -> -1): Mark with :C.
10504
10505 2016-10-04 Jakub Jelinek <jakub@redhat.com>
10506
10507 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
10508 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
10509 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
10510 * doc/tm.texi: Regenerated.
10511 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
10512 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
10513 * config/darwin.h (JCR_SECTION_NAME): Remove.
10514 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
10515 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
10516 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
10517 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
10518 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
10519 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
10520
10521 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10522
10523 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
10524 between "because" and "param" in dump message in call to fprintf.
10525
10526 2016-10-03 Jeff Law <law@redhat.com>
10527
10528 PR tree-optimization/71550
10529 PR tree-optimization/71403
10530 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
10531 (profitable_jump_thread_path): Also return boolean indicating if
10532 the realized path will create an irreducible loop.
10533 Remove loop depth tests from 71403.
10534 (fsm_find_control_statement_thread_paths): Remove loop depth tests
10535 from 71403. If threading will create an irreducible loop, then
10536 throw away loop iteration and related information.
10537
10538 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
10539
10540 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
10541 -Woverloaded-virtual checks for warning options.
10542 * configure: Regenerate.
10543
10544 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10545
10546 PR preprocessor/77699
10547 * input.c (maybe_grow): Don't allocate one byte extra headroom.
10548 (get_next_line): Return false on error.
10549 (read_next_line): Removed, use get_next_line instead.
10550 (read_line_num): Don't copy the line.
10551 (location_get_source_line): Don't use static data.
10552 (selftest::test_reading_source_line): Add more test cases.
10553
10554 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10555
10556 Revert
10557 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10558
10559 * ifcvt.c (noce_try_avoid_const_materialization): New function.
10560 (noce_process_if_block): Use it.
10561
10562 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10563
10564 * doc/invoke.texi: Update -Wint-in-bool-context.
10565
10566 2016-10-02 Jakub Jelinek <jakub@redhat.com>
10567
10568 * dwarf2out.c (output_fde, output_call_frame_info,
10569 dwarf2out_do_cfi_startproc, set_indirect_string,
10570 gen_internal_sym, output_die, output_line_info): Use
10571 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
10572 ASM_GENERATE_INTERNAL_LABEL output.
10573
10574 2016-10-01 Richard Biener <rguenther@suse.de>
10575
10576 PR middle-end/77798
10577 * genmatch.c (get_operand_type): Add operand position arg
10578 and handle COND_EXPR comparison operand with fixed boolean_type_node.
10579 (expr::gen_transform): Adjust.
10580 (dt_simplify::gen_1): Likewise.
10581
10582 2016-10-01 Jakub Jelinek <jakub@redhat.com>
10583
10584 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
10585 comments. Simplify asserts, remove unnecessary conditions.
10586 Formatting fixes.
10587 (*<code><mode>3): Likewise.
10588
10589 2016-09-30 Jakub Jelinek <jakub@redhat.com>
10590
10591 * doc/invoke.texi (-Wregister): Document.
10592
10593 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
10594
10595 * configure.ac: Split CHECKING_P into CHECKING_P and
10596 ENABLE_EXTRA_CHECKING.
10597 * configure: Regenerated.
10598 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
10599 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
10600
10601 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
10602
10603 PR other/31566
10604 * gcc.c (process_command): For @filename handling, output
10605 the correct name if the file does not exist.
10606
10607 2016-09-30 Marek Polacek <polacek@redhat.com>
10608
10609 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
10610 * config/alpha/predicates.md: Likewise.
10611
10612 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10613
10614 * ifcvt.c (noce_try_avoid_const_materialization): New function.
10615 (noce_process_if_block): Use it.
10616
10617 2016-09-30 Martin Liska <mliska@suse.cz>
10618
10619 * doc/invoke.texi: Document asan-use-after-return that
10620 it's disabled by default in runtime.
10621
10622 2016-09-30 Richard Biener <rguenther@suse.de>
10623
10624 * tree-vrp.c (intersect_ranges): If we failed to handle
10625 the intersection choose a constant singleton range if available.
10626
10627 2016-09-30 Richard Biener <rguenther@suse.de>
10628
10629 PR tree-optimization/77399
10630 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
10631 float <-> int conversions.
10632
10633 2016-09-30 Alan Modra <amodra@gmail.com>
10634
10635 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
10636
10637 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
10638
10639 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
10640 ext_level before calling CPUID with 0x80000008.
10641 Simplify xgetbv checks.
10642
10643 2016-09-29 David Malcolm <dmalcolm@redhat.com>
10644
10645 * Makefile.in (OBJS): Add print-rtl-function.o.
10646 * print-rtl-function.c: New file.
10647 * print-rtl.h (print_rtx_function): New decl.
10648
10649 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
10650
10651 PR target/77756
10652 * config/i386/cpuid.h (__get_cpuid_count): New.
10653 (__get_cpuid): Rename __level to __leaf.
10654
10655 2016-09-29 Marek Polacek <polacek@redhat.com>
10656
10657 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
10658
10659 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
10660
10661 PR target/77718
10662 * builtins.c (expand_builtin_memcmp): Don't swap args unless
10663 result is only being compared with zero.
10664
10665 2016-09-29 Marek Polacek <polacek@redhat.com>
10666
10667 * dwarf2out.c (loc_descriptor): Add fall through comment.
10668 (add_const_value_attribute): Likewise.
10669
10670 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
10671
10672 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
10673 with "v6t2". Move "arch" attribute above "pool_range".
10674 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
10675 with "v6t2".
10676 (*thumb2_movhi_vfp): Likewise.
10677 (*arm_movhi_fp16): Likewise.
10678 (*thumb2_movhi_fp16): Likewise.
10679 (*arm_movsi_vfp): Remove "arch" attribute.
10680 (*thumb2_movsi_vfp): Likewise.
10681
10682 2016-09-29 Martin Liska <mliska@suse.cz>
10683
10684 * doc/extend.texi: Remove limitation of Objective C for
10685 __attribute__((constructor)) and __attribute__((destructor)).
10686
10687 2016-09-29 Richard Biener <rguenther@suse.de>
10688
10689 PR tree-optimization/77768
10690 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10691 Handle stores to readonly memory when removing redundant stores.
10692
10693 2016-09-29 Richard Biener <rguenther@suse.de>
10694
10695 PR middle-end/77407
10696 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
10697 X / -X -> -1 simplifications.
10698
10699 2016-09-29 Richard Biener <rguenther@suse.de>
10700
10701 PR middle-end/55152
10702 * match.pd: Add max(a,-a) -> abs(a) pattern.
10703 * tree-ssa-phiopt.c (minmax_replacement): Disable for
10704 HONOR_SIGNED_ZEROS types.
10705
10706 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
10707
10708 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
10709 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
10710
10711 2016-09-29 Richard Biener <rguenther@suse.de>
10712
10713 * tree-vrp.c (set_defs_to_varying): New helper avoiding
10714 writing to vr_const_varying.
10715 (vrp_initialize): Call it.
10716 (vrp_visit_stmt): Likewise.
10717 (evrp_dom_walker::before_dom_children): Likewise.
10718
10719 2016-09-29 Richard Biener <rguenther@suse.de>
10720
10721 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
10722 constructors with vector elements.
10723
10724 2016-09-29 Richard Biener <rguenther@suse.de>
10725
10726 PR tree-optimization/77768
10727 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
10728 with stores to a place we know has a constant value.
10729
10730 2016-09-29 Alan Modra <amodra@gmail.com>
10731
10732 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
10733 * doc/invoke.texi: Document it.
10734 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
10735 (rs6000_passes_float): Comment.
10736 (rs6000_passes_long_double): New static var.
10737 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
10738 (init_cumulative_args): Set up to emit fp .gnu_attribute for
10739 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
10740 to include fp values returned in vectors.
10741 Set rs6000_passes_long_double.
10742 (rs6000_function_arg_advance_1): Likewise for function args.
10743 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
10744 and SPE. Emit long double tag value too.
10745 (rs6000_opt_vars): Add gnu-attr.
10746 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
10747 * configure: Regenerate.
10748 * config.in: Regenerate.
10749
10750 2016-09-28 Jakub Jelinek <jakub@redhat.com>
10751
10752 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
10753 of 0 < x.
10754 (format_floating, format_string, format_directive,
10755 get_destination_size, pass_sprintf_length::handle_gimple_call):
10756 Likewise.
10757
10758 2016-09-28 Jakub Jelinek <jakub@redhat.com>
10759
10760 * gimple-ssa-sprintf.c: Fix comment formatting.
10761 (format_integer): Use is_gimple_assign.
10762 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
10763 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
10764 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
10765 (pass_sprintf_length::execute): Use is_gimple_call.
10766
10767 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
10768
10769 * gimple-fold.c (gimple_fold_builtin): After failing to fold
10770 strchr, also try the generic folding.
10771
10772 2016-09-28 Martin Sebor <msebor@redhat.com>
10773
10774 PR c/77762
10775 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
10776 Fix typos.
10777
10778 2016-09-28 Martin Sebor <msebor@redhat.com>
10779
10780 PR middle-end/77683
10781 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
10782 length modifier is not expected.
10783 (format_floating): Ignore l length modifier and fail gracefuly
10784 when it isn't one of the other expected ones.
10785
10786 2016-09-28 Martin Sebor <msebor@redhat.com>
10787
10788 PR bootstrap/77753
10789 * varasm.c (assemble_addr_to_section): Increase local buffer size.
10790
10791 2016-09-27 Richard Biener <rguenther@suse.de>
10792
10793 * dwarf2out.c (cu_die_list): New global.
10794 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
10795 main_comp_unit_die to cu_die_list if we created it.
10796 Move break_out_includes ...
10797 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
10798 the cu_die_list.
10799
10800 2016-09-28 Richard Biener <rguenther@suse.de>
10801
10802 * dwarf2out.c (struct die_struct): Add removed flag.
10803 (lookup_type_die): If the DIE is marked as removed, clear
10804 TYPE_SYMTAB_DIE and return NULL.
10805 (lookup_decl_die): If the DIE is marked as removed, remove it
10806 from the hash and return NULL.
10807 (mark_removed): New helper.
10808 (prune_unused_types_prune): Call it for removed DIEs.
10809 (gen_subprogram_die): Move the premark_used_types call to after
10810 DIEs for the functions scopes are generated.
10811 (process_scope_var): Do not re-create pruned types or type decls.
10812 Make sure to also re-parent type decls.
10813 (dwarf2out_finish): Move unused type pruning and debug_types
10814 handling ...
10815 (dwarf2out_early_finish): ... here.
10816
10817 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
10818
10819 * config/arc/arc-c.c: New file.
10820 * config/arc/arc-c.def: Likewise.
10821 * config/arc/t-arc: Likewise.
10822 * config.gcc: Include arc-c.o as c and cpp object.
10823 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
10824 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
10825 arc_cpu_cpp_builtins.
10826
10827 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
10828
10829 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
10830 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
10831
10832 2016-09-28 Nathan Sidwell <nathan@acm.org>
10833
10834 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
10835 printing.
10836
10837 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
10838
10839 PR tree-optimization/61056
10840 * gimple-fold.c (gimple_fold_builtin_strchr):
10841 New function to optimize strchr (s, 0) to strlen.
10842 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
10843
10844 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
10845
10846 PR tree-optimization/77724
10847 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
10848 Add tree_fits_shwi_p check.
10849
10850 2016-09-27 Jakub Jelinek <jakub@redhat.com>
10851
10852 * auto-inc-dec.c (try_merge): Remove break after return.
10853 * cselib.c (autoinc_split): Likewise.
10854 * explow.c (promote_mode): Likewise.
10855 * fixed-value.c (fixed_arithmetic): Likewise.
10856 * hsa.c (hsa_internal_fn::get_arity): Likewise.
10857 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
10858 * trans-mem.c (get_attrs_for): Likewise.
10859 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
10860 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
10861 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
10862 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
10863 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
10864 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
10865 * config/cris/cris.c (cris_op_str): Likewise.
10866 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
10867 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
10868
10869 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
10870
10871 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
10872 IFN_GOACC_REDUCTION_CODES): New.
10873 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
10874 ifn_goacc_reduction_kind): Use them.
10875 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
10876 of internal functions, when applicable.
10877
10878 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
10879
10880 * config/mips/constraints.md (d): Fix documentation.
10881 * doc/md.texi (Machine Constraints): Update accordingly.
10882
10883 2016-09-27 Richard Biener <rguenther@suse.de>
10884
10885 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
10886 cur_line_info_table initialization ...
10887 (dwarf2out_assembly_start): ... here.
10888
10889 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
10890
10891 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
10892 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
10893 (*thumb2_movhi_vfp): Likewise.
10894 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
10895 template. Expand predicable attribute to mark VMOV.F16 as not
10896 predicable. Add "arch" attribute.
10897 (*thumb2_movhi_fp16): Likewise.
10898 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
10899 (*thumb2_movsi_vfp): Add "arch" attribute.
10900
10901 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
10902
10903 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
10904 VAR_DECL string.
10905
10906 2016-09-27 Marek Polacek <polacek@redhat.com>
10907
10908 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
10909 comment.
10910
10911 * config/c6x/c6x.h: Adjust fall through comment.
10912 * config/sh/sh.c (final_prescan_insn): Likewise.
10913 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
10914 (visium_expand_fp_cstore): Likewise.
10915
10916 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10917
10918 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
10919 expected by -Wimplicit-fallthrough.
10920 (thumb1_size_rtx_costs): Likewise.
10921 (thumb2_reorg): Likewise.
10922 (tls_mentioned_p): Add "Fall through" comment.
10923 (thumb2_reorg): Likewise.
10924 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
10925 comment form expected by -Wimplicit-fallthrough.
10926
10927 2016-09-27 Martin Liska <mliska@suse.cz>
10928
10929 PR gcov-profile/46266
10930 * input.h (RESERVED_LOCATION_P): New macro.
10931 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
10932 instread of comparison with UNKNOWN_LOCATION.
10933
10934 2016-09-27 Richard Biener <rguenther@suse.de>
10935
10936 PR tree-optimization/77745
10937 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10938 When removing redundant stores make sure to check compatibility
10939 of the TBAA state for downstream accesses.
10940 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
10941 value-numbering virtual operands for store matches.
10942
10943 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
10944
10945 PR target/51244
10946 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
10947 movrt patterns. Match them before anything else in the SET case.
10948
10949 2016-09-27 Martin Liska <mliska@suse.cz>
10950
10951 PR gcov-profile/7970
10952 PR gcov-profile/16855
10953 PR gcov-profile/44779
10954 * coverage.c (build_gcov_exit_decl): New function.
10955 (coverage_obj_init): Call the function and generate __gcov_exit
10956 destructor.
10957 * doc/gcov.texi: Document when __gcov_exit function is called.
10958
10959 2016-09-27 Marek Polacek <polacek@redhat.com>
10960
10961 PR bootstrap/77751
10962 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
10963 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
10964 -Wno-error instead of -Wno-implicit-fallthrough.
10965
10966 2016-09-27 Martin Liska <mliska@suse.cz>
10967
10968 PR bootstrap/77749
10969 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
10970
10971 2016-09-27 Jakub Jelinek <jakub@redhat.com>
10972
10973 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
10974 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
10975 comments. Remove break after return.
10976 (ix86_fp_compare_code_to_integer, has_dispatch,
10977 ix86_simd_clone_usable): Remove break after return.
10978
10979 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
10980
10981 PR rlt-optimization/77714
10982 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
10983 REG_EQUAL note.
10984
10985 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
10986
10987 PR ipa/77677
10988 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
10989 extract_range_from_unary_expr to convert value_range.
10990 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
10991 (extract_range_from_unary_expr): This.
10992 * tree-vrp.h (extract_range_from_unary_expr): Declare.
10993
10994 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
10995
10996 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
10997
10998 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10999
11000 * config/i386/i386.c (ix86_print_operand)
11001 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
11002 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
11003 (epilogue_renumber): Likewise.
11004
11005 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
11006
11007 PR middle-end/77719
11008 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
11009 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
11010
11011 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
11012
11013 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
11014 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
11015 is_mm_seq_cst, is_mm_sync): Move to ...
11016 * memmodel.h: This. New file.
11017 * builtins.c: Include memmodel.h.
11018 * optabs.c: Likewise.
11019 * tsan.c: Likewise.
11020 * config/aarch64/aarch64.c: Likewise.
11021 * config/alpha/alpha.c: Likewise.
11022 * config/arm/arm.c: Likewise.
11023 * config/i386/i386.c: Likewise.
11024 * config/ia64/ia64.c: Likewise.
11025 * config/mips/mips.c: Likewise.
11026 * config/rs6000/rs6000.c: Likewise.
11027 * config/sparc/sparc.c: Likewise.
11028 * genconditions.c: Include memmodel.h in generated file.
11029 * genemit.c: Likewise.
11030 * genoutput.c: Likewise.
11031 * genpeep.c: Likewise.
11032 * genpreds.c: Likewise.
11033 * genrecog.c: Likewise.
11034
11035 2016-09-26 David Malcolm <dmalcolm@redhat.com>
11036
11037 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
11038 "c" instead when parsing characters. Move operand parsing into...
11039 (read_rtx_operand): ...this new function, renaming "i" to "idx",
11040 and tightening the scope of various locals.
11041
11042 2016-09-26 Liu Hao <lh_mouse@126.com>
11043
11044 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
11045
11046 2016-09-26 Marek Polacek <polacek@redhat.com>
11047
11048 * system.h: Use __has_attribute to check whether the fallthrough
11049 attribute is supported.
11050
11051 2016-09-26 Marek Polacek <polacek@redhat.com>
11052
11053 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
11054 gimple_call_internal_p.
11055 * ipa-split.c (find_return_bb): Likewise.
11056 (execute_split_functions): Likewise.
11057 * omp-low.c (dump_oacc_loop_part): Likewise.
11058 (oacc_loop_xform_head_tail): Likewise.
11059 * predict.c (predict_loops): Likewise.
11060 * sanopt.c (pass_sanopt::execute): Likewise.
11061 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
11062 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
11063 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
11064 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
11065 (expand_ifn_va_arg): Likewise.
11066 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
11067 (optimize_mask_stores): Likewise.
11068 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
11069 (vect_transform_stmt): Likewise.
11070 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
11071 * tsan.c (instrument_memory_accesses): Likewise.
11072
11073 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11074 Alexander Monakov <amonakov@ispras.ru>
11075
11076 * regrename.c (rename_chains): Check
11077 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
11078 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
11079 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11080
11081 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11082
11083 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
11084 (s390_sched_score): Likewise.
11085
11086 2016-09-26 Martin Liska <mliska@suse.cz>
11087
11088 * doc/gcov.texi: Update program output of gcov tool.
11089
11090 2016-09-26 Martin Liska <mliska@suse.cz>
11091
11092 PR gcov-profile/23332
11093 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
11094 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
11095 * value-prof.c (dump_histogram_value): Do not handle
11096 HIST_TYPE_CONST_DELTA.
11097 (stream_in_histogram_value): Likewise.
11098 (gimple_find_values_to_profile): Likewise.
11099 * value-prof.h (enum hist_type): Likewise.
11100
11101 2016-09-26 Martin Liska <mliska@suse.cz>
11102
11103 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
11104 from default sanitize recover values.
11105 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
11106 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
11107 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
11108 consistent.
11109 * opts.c (finish_options): Do a generic loop over options
11110 that can be recovered.
11111 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
11112 SANITIZE_RETURN.
11113 (common_handle_option): Likewise.
11114 * opts.h: Declare can_recover to sanitizer_opts_s.
11115
11116 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
11117
11118 * target.def(elf_flags_numeric): Change documentation to present tense.
11119 * doc/tm.texi: Regenerate.
11120
11121 2016-09-26 Marek Polacek <polacek@redhat.com>
11122
11123 PR c/7652
11124 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
11125 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
11126 -Wno-switch-fallthrough.
11127 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
11128 (expand_builtin): Likewise.
11129 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
11130 * convert.c (convert_to_real_1): Likewise.
11131 (convert_to_integer_1): Likewise.
11132 * final.c (output_alternate_entry_point): Likewise.
11133 * genattrtab.c (make_canonical): Likewise.
11134 (write_test_expr): Likewise.
11135 * genpreds.c (validate_exp): Likewise.
11136 * gimple-ssa-strength-reduction.c
11137 (find_candidates_dom_walker::before_dom_children): Likewise.
11138 * godump.c (go_format_type): Likewise.
11139 * reload1.c (elimination_effects): Likewise.
11140 * resource.c (mark_referenced_resources): Likewise.
11141 (mark_set_resources): Likewise.
11142 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
11143 * varasm.c (output_addressed_constants): Likewise.
11144
11145 2016-09-26 Marek Polacek <polacek@redhat.com>
11146
11147 PR c/7652
11148 * common.opt (Wimplicit-fallthrough): New option.
11149 * doc/extend.texi: Document statement attributes and the fallthrough
11150 attribute.
11151 * doc/invoke.texi: Document -Wimplicit-fallthrough.
11152 * gimple.h (gimple_call_internal_p): New function.
11153 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
11154 (struct label_entry): New struct.
11155 (find_label_entry): New function.
11156 (case_label_p): New function.
11157 (collect_fallthrough_labels): New function.
11158 (last_stmt_in_scope): New function.
11159 (should_warn_for_implicit_fallthrough): New function.
11160 (warn_implicit_fallthrough_r): New function.
11161 (maybe_warn_implicit_fallthrough): New function.
11162 (expand_FALLTHROUGH_r): New function.
11163 (expand_FALLTHROUGH): New function.
11164 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
11165 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
11166 (gimplify_label_expr): New function.
11167 (gimplify_case_label_expr): Set location.
11168 (gimplify_expr): Call gimplify_label_expr.
11169 * internal-fn.c (expand_FALLTHROUGH): New function.
11170 * internal-fn.def (FALLTHROUGH): New internal function.
11171 * langhooks.c (lang_GNU_OBJC): New function.
11172 * langhooks.h (lang_GNU_OBJC): Declare.
11173 * system.h (gcc_fallthrough): Define.
11174 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
11175 * tree.h (FALLTHROUGH_LABEL_P): Define.
11176
11177 2016-09-26 Richard Biener <rguenther@suse.de>
11178
11179 * dwarf2out.c (stripattributes): Remove unused function.
11180 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
11181 Push dwarf_split_debug_info handling into init_sections_and_labels.
11182 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
11183 (DEBUG_MACRO_SECTION_FLAGS): Remove.
11184 (debug_macinfo_section_name): New global.
11185 (output_macinfo): Use debug_macinfo_section_name.
11186 (init_sections_and_labels): Split out section and label generation
11187 from dwarf2out_init. Set debug_macinfo_section_name.
11188 (dwarf2out_init): Move text section label generation and emission
11189 to ...
11190 (dwarf2out_assembly_start): ... here.
11191 (dwarf2out_finish): Call init_sections_and_labels before DWARF
11192 output starts.
11193
11194 2016-09-26 Richard Biener <rguenther@suse.de>
11195
11196 PR debug/77692
11197 * cgraphunit.c (analyze_functions): Before early removing
11198 global vars calls the late_global_decl debug handler mark
11199 the variable as readonly.
11200
11201 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
11202
11203 PR target/51244
11204 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
11205 (sh_rtx_costs): Handle SET of movt and movrt patterns.
11206 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
11207 declare new overloads.
11208 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
11209 operand.
11210
11211 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11212
11213 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
11214 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
11215
11216 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
11217
11218 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
11219 * configure: Regenerate.
11220
11221 2016-09-24 Marek Polacek <polacek@redhat.com>
11222
11223 PR c/77490
11224 * doc/invoke.texi: Document -Wbool-operation.
11225
11226 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11227
11228 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
11229 * config/rs6000/rs6000.c (expand_block_compare): New function used by
11230 cmpmemsi pattern to do builtin expansion of memcmp ().
11231 (compute_current_alignment): Add helper function for
11232 expand_block_compare used to compute alignment as the compare proceeds.
11233 (select_block_compare_mode): Used by expand_block_compare to select
11234 the mode used for reading the next chunk of bytes in the compare.
11235 (do_load_for_compare): Used by expand_block_compare to emit the load
11236 insns for the compare.
11237 (rs6000_emit_dot_insn): Moved this function to avoid a forward
11238 reference from expand_block_compare ().
11239 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
11240 prototype for this function.
11241 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
11242 target option for controlling how much code inline expansion of
11243 memcmp() will be allowed to generate.
11244
11245 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11246
11247 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
11248 hook_bool_mode_false, hook_bool_mode_true,
11249 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
11250 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
11251 hook_bool_const_rtx_insn_const_rtx_insn_true,
11252 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
11253 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
11254 hook_bool_const_tree_hwi_hwi_const_tree_false,
11255 hook_bool_const_tree_hwi_hwi_const_tree_true,
11256 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
11257 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
11258 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
11259 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
11260 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
11261 hook_bool_const_tree_true, hook_bool_tree_tree_false,
11262 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
11263 hook_bool_rtx_insn_true, hook_bool_rtx_false,
11264 hook_bool_uintp_uintp_false,
11265 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
11266 hook_rtx_tree_int_null, hook_uint_mode_0,
11267 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
11268 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
11269 hook_constcharptr_const_rtx_insn_null,
11270 hook_constcharptr_const_tree_const_tree_null,
11271 hook_constcharptr_int_const_tree_null,
11272 hook_constcharptr_int_const_tree_const_tree_null,
11273 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
11274 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
11275 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
11276
11277 * vec.h (vNULL): Extend comment to say = vNULL initialization
11278 isn't needed for static vars.
11279
11280 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
11281 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
11282 = vNULL initialization of file scope vec.
11283 * passes.c (pass_tab, enabled_pass_uid_range_tab,
11284 disabled_pass_uid_range_tab): Likewise.
11285 * haifa-sched.c (sched_luids, h_i_d): Likewise.
11286 * tree-chkp-opt.c (check_infos): Likewise.
11287 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
11288
11289 * vec.h (vnull::operator vec): Add constexpr keyword for
11290 C++11 and later.
11291
11292 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
11293
11294 PR tree-optimization/77654
11295 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
11296 to duplicate_ssa_name_ptr_info.
11297
11298 2016-09-23 David Malcolm <dmalcolm@redhat.com>
11299
11300 PR preprocessor/77672
11301 * input.c (selftest::test_lexer_string_locations_simple): Update
11302 test to expect location information of the terminator character
11303 at the location of the final closing quote.
11304 (selftest::test_lexer_string_locations_hex): Likewise.
11305 (selftest::test_lexer_string_locations_oct): Likewise.
11306 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
11307 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
11308 (selftest::test_lexer_string_locations_ucn4): Likewise.
11309 (selftest::test_lexer_string_locations_ucn8): Likewise.
11310 (selftest::test_lexer_string_locations_u8): Likewise.
11311 (selftest::test_lexer_string_locations_utf8_source): Likewise.
11312 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
11313 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
11314 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
11315 (selftest::test_lexer_string_locations_macro): Likewise.
11316 (selftest::test_lexer_string_locations_long_line): Likewise.
11317
11318 2016-09-23 Richard Biener <rguenther@suse.de>
11319
11320 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
11321 virtual definition to virtual use if the call devirtualizes
11322 to a const or pure function.
11323 (visit_use): Also visit calls we can devirtualize to a
11324 const or pure function.
11325
11326 2016-09-23 Richard Biener <rguenther@suse.de>
11327
11328 PR tree-optimization/77697
11329 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
11330 signal error if we have sth ternary or unhandled.
11331
11332 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11333
11334 * config/arm/arm_neon.h (vabd_f16): New.
11335 (vabdq_f16): New.
11336 (vabs_f16): New.
11337 (vabsq_f16): New.
11338 (vadd_f16): New.
11339 (vaddq_f16): New.
11340 (vcage_f16): New.
11341 (vcageq_f16): New.
11342 (vcagt_f16): New.
11343 (vcagtq_f16): New.
11344 (vcale_f16): New.
11345 (vcaleq_f16): New.
11346 (vcalt_f16): New.
11347 (vcaltq_f16): New.
11348 (vceq_f16): New.
11349 (vceqq_f16): New.
11350 (vceqz_f16): New.
11351 (vceqzq_f16): New.
11352 (vcge_f16): New.
11353 (vcgeq_f16): New.
11354 (vcgez_f16): New.
11355 (vcgezq_f16): New.
11356 (vcgt_f16): New.
11357 (vcgtq_f16): New.
11358 (vcgtz_f16): New.
11359 (vcgtzq_f16): New.
11360 (vcle_f16): New.
11361 (vcleq_f16): New.
11362 (vclez_f16): New.
11363 (vclezq_f16): New.
11364 (vclt_f16): New.
11365 (vcltq_f16): New.
11366 (vcltz_f16): New.
11367 (vcltzq_f16): New.
11368 (vcvt_f16_s16): New.
11369 (vcvt_f16_u16): New.
11370 (vcvt_s16_f16): New.
11371 (vcvt_u16_f16): New.
11372 (vcvtq_f16_s16): New.
11373 (vcvtq_f16_u16): New.
11374 (vcvtq_s16_f16): New.
11375 (vcvtq_u16_f16): New.
11376 (vcvta_s16_f16): New.
11377 (vcvta_u16_f16): New.
11378 (vcvtaq_s16_f16): New.
11379 (vcvtaq_u16_f16): New.
11380 (vcvtm_s16_f16): New.
11381 (vcvtm_u16_f16): New.
11382 (vcvtmq_s16_f16): New.
11383 (vcvtmq_u16_f16): New.
11384 (vcvtn_s16_f16): New.
11385 (vcvtn_u16_f16): New.
11386 (vcvtnq_s16_f16): New.
11387 (vcvtnq_u16_f16): New.
11388 (vcvtp_s16_f16): New.
11389 (vcvtp_u16_f16): New.
11390 (vcvtpq_s16_f16): New.
11391 (vcvtpq_u16_f16): New.
11392 (vcvt_n_f16_s16): New.
11393 (vcvt_n_f16_u16): New.
11394 (vcvtq_n_f16_s16): New.
11395 (vcvtq_n_f16_u16): New.
11396 (vcvt_n_s16_f16): New.
11397 (vcvt_n_u16_f16): New.
11398 (vcvtq_n_s16_f16): New.
11399 (vcvtq_n_u16_f16): New.
11400 (vfma_f16): New.
11401 (vfmaq_f16): New.
11402 (vfms_f16): New.
11403 (vfmsq_f16): New.
11404 (vmax_f16): New.
11405 (vmaxq_f16): New.
11406 (vmaxnm_f16): New.
11407 (vmaxnmq_f16): New.
11408 (vmin_f16): New.
11409 (vminq_f16): New.
11410 (vminnm_f16): New.
11411 (vminnmq_f16): New.
11412 (vmul_f16): New.
11413 (vmul_lane_f16): New.
11414 (vmul_n_f16): New.
11415 (vmulq_f16): New.
11416 (vmulq_lane_f16): New.
11417 (vmulq_n_f16): New.
11418 (vneg_f16): New.
11419 (vnegq_f16): New.
11420 (vpadd_f16): New.
11421 (vpmax_f16): New.
11422 (vpmin_f16): New.
11423 (vrecpe_f16): New.
11424 (vrecpeq_f16): New.
11425 (vrnd_f16): New.
11426 (vrndq_f16): New.
11427 (vrnda_f16): New.
11428 (vrndaq_f16): New.
11429 (vrndm_f16): New.
11430 (vrndmq_f16): New.
11431 (vrndn_f16): New.
11432 (vrndnq_f16): New.
11433 (vrndp_f16): New.
11434 (vrndpq_f16): New.
11435 (vrndx_f16): New.
11436 (vrndxq_f16): New.
11437 (vrsqrte_f16): New.
11438 (vrsqrteq_f16): New.
11439 (vrecps_f16): New.
11440 (vrecpsq_f16): New.
11441 (vrsqrts_f16): New.
11442 (vrsqrtsq_f16): New.
11443 (vsub_f16): New.
11444 (vsubq_f16): New.
11445
11446 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11447
11448 * config.gcc (extra_headers): Add arm_fp16.h
11449 * config/arm/arm_fp16.h: New.
11450 * config/arm/arm_neon.h: Include "arm_fp16.h".
11451
11452 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11453
11454 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
11455 variants).
11456 (vmulf): New (v8hf, v4hf variants).
11457 (vfma): New (v8hf, v4hf variants).
11458 (vfms): New (v8hf, v4hf variants).
11459 (vsub): New (v8hf, v4hf variants).
11460 (vcage): New (v8hf, v4hf variants).
11461 (vcagt): New (v8hf, v4hf variants).
11462 (vcale): New (v8hf, v4hf variants).
11463 (vcalt): New (v8hf, v4hf variants).
11464 (vceq): New (v8hf, v4hf variants).
11465 (vcgt): New (v8hf, v4hf variants).
11466 (vcge): New (v8hf, v4hf variants).
11467 (vcle): New (v8hf, v4hf variants).
11468 (vclt): New (v8hf, v4hf variants).
11469 (vceqz): New (v8hf, v4hf variants).
11470 (vcgez): New (v8hf, v4hf variants).
11471 (vcgtz): New (v8hf, v4hf variants).
11472 (vcltz): New (v8hf, v4hf variants).
11473 (vclez): New (v8hf, v4hf variants).
11474 (vabd): New (v8hf, v4hf variants).
11475 (vmaxf): New (v8hf, v4hf variants).
11476 (vmaxnm): New (v8hf, v4hf variants).
11477 (vminf): New (v8hf, v4hf variants).
11478 (vminnm): New (v8hf, v4hf variants).
11479 (vpmaxf): New (v4hf variant).
11480 (vpminf): New (v4hf variant).
11481 (vpadd): New (v4hf variant).
11482 (vrecps): New (v8hf, v4hf variants).
11483 (vrsqrts): New (v8hf, v4hf variants).
11484 (vabs): New (v8hf, v4hf variants).
11485 (vneg): New (v8hf, v4hf variants).
11486 (vrecpe): New (v8hf, v4hf variants).
11487 (vrnd): New (v8hf, v4hf variants).
11488 (vrnda): New (v8hf, v4hf variants).
11489 (vrndm): New (v8hf, v4hf variants).
11490 (vrndn): New (v8hf, v4hf variants).
11491 (vrndp): New (v8hf, v4hf variants).
11492 (vrndx): New (v8hf, v4hf variants).
11493 (vrsqrte): New (v8hf, v4hf variants).
11494 (vmul_lane): Add v4hf and v8hf variants.
11495 (vmul_n): Add v4hf and v8hf variants.
11496 (vext): New (v8hf, v4hf variants).
11497 (vcvts): New (v8hi, v4hi variants).
11498 (vcvts): New (v8hf, v4hf variants).
11499 (vcvtu): New (v8hi, v4hi variants).
11500 (vcvtu): New (v8hf, v4hf variants).
11501 (vcvts_n): New (v8hf, v4hf variants).
11502 (vcvtu_n): New (v8hi, v4hi variants).
11503 (vcvts_n): New (v8hi, v4hi variants).
11504 (vcvtu_n): New (v8hf, v4hf variants).
11505 (vbsl): New (v8hf, v4hf variants).
11506 (vcvtas): New (v8hf, v4hf variants).
11507 (vcvtau): New (v8hf, v4hf variants).
11508 (vcvtms): New (v8hf, v4hf variants).
11509 (vcvtmu): New (v8hf, v4hf variants).
11510 (vcvtns): New (v8hf, v4hf variants).
11511 (vcvtnu): New (v8hf, v4hf variants).
11512 (vcvtps): New (v8hf, v4hf variants).
11513 (vcvtpu): New (v8hf, v4hf variants).
11514
11515 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11516
11517 * config/arm/arm-builtins.c (hf_UP): New.
11518 (si_UP): New.
11519 (vfp_builtin_data): New. Update comment.
11520 (enum arm_builtins): Include "arm_vfp_builtins.def".
11521 (ARM_BUILTIN_VFP_PATTERN_START): New.
11522 (arm_init_vfp_builtins): New.
11523 (arm_init_builtins): Add arm_init_vfp_builtins.
11524 (arm_expand_vfp_builtin): New.
11525 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
11526 long line.
11527 * config/arm/arm_vfp_builtins.def: New file.
11528 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
11529 (arm-builtins.o): Likewise.
11530
11531 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11532
11533 PR ipa/77677
11534 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
11535 from constant while creating value range.
11536
11537 2016-09-23 Renlin Li <renlin.li@arm.com>
11538
11539 * ira.c (ira): Move ira_use_lra_p initialization code to ...
11540 (ira_init_once): Here.
11541
11542 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
11543 Jakub Jelinek <jakub@redhat.com>
11544
11545 * hooks.h (hook_uint_uintp_false): Rename to...
11546 (hook_bool_uint_uintp_false): ... this.
11547 * hooks.c (hook_uint_uintp_false): Rename to...
11548 (hook_bool_uint_uintp_false): ... this.
11549 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
11550 instead of hook_uint_uintp_false.
11551
11552 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11553
11554 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
11555 (arm_init_builtins): Move body of a loop to the standalone
11556 function arm_init_neon_builtin.
11557 (arm_expand_neon_builtin_1): New. Update comment. Function body
11558 moved from arm_neon_builtin with some white-space fixes.
11559 (arm_expand_neon_builtin): Move code into the standalone function
11560 arm_expand_neon_builtin_1.
11561
11562 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11563
11564 * config/arm/iterators.md (VCVTHI): New.
11565 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
11566 (NEON_VAGLTE): New.
11567 (VFM_LANE_AS): New.
11568 (VH_CVTTO): New.
11569 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
11570 (V_HALF): Add V4HF. Fix white-space.
11571 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
11572 (V_s_elem): Likewise.
11573 (V_sz_elem): Fix white-space.
11574 (V_elem_ch): Likewise.
11575 (VH_elem_ch): New.
11576 (scalar_mul_constraint): Add V8HF and V4HF.
11577 (Is_float_mode): Fix white-space.
11578 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
11579 (q): Add HF. Fix white-space.
11580 (float_sup): New.
11581 (float_SUP): New.
11582 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
11583 (neon_vfm_lane_as): New.
11584 * config/arm/neon.md (add<mode>3_fp16): New.
11585 (sub<mode>3_fp16): New.
11586 (mul<mode>3add<mode>_neon): New.
11587 (fma<VH:mode>4_intrinsic): New.
11588 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
11589 (fmsub<VH:mode>4_intrinsic): New.
11590 (<absneg_str><mode>2): New.
11591 (neon_v<absneg_str><mode>): New.
11592 (neon_v<fp16_rnd_str><mode>): New.
11593 (neon_vrsqrte<mode>): New.
11594 (neon_vpaddv4hf): New.
11595 (neon_vadd<mode>): New.
11596 (neon_vsub<mode>): New.
11597 (neon_vmulf<mode>): New.
11598 (neon_vfma<VH:mode>): New.
11599 (neon_vfms<VH:mode>): New.
11600 (neon_vc<cmp_op><mode>): New.
11601 (neon_vc<cmp_op><mode>_fp16insn): New
11602 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
11603 (neon_vca<cmp_op><mode>): New.
11604 (neon_vca<cmp_op><mode>_fp16insn): New.
11605 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
11606 (neon_vc<cmp_op>z<mode>): New.
11607 (neon_vabd<mode>): New.
11608 (neon_v<maxmin>f<mode>): New.
11609 (neon_vp<maxmin>fv4hf: New.
11610 (neon_<fmaxmin_op><mode>): New.
11611 (neon_vrecps<mode>): New.
11612 (neon_vrsqrts<mode>): New.
11613 (neon_vrecpe<mode>): New (VH variant).
11614 (neon_vdup_lane<mode>_internal): New.
11615 (neon_vdup_lane<mode>): New.
11616 (neon_vcvt<sup><mode>): New (VCVTHI variant).
11617 (neon_vcvt<sup><mode>): New (VH variant).
11618 (neon_vcvt<sup>_n<mode>): New (VH variant).
11619 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
11620 (neon_vcvt<vcvth_op><sup><mode>): New.
11621 (neon_vmul_lane<mode>): New.
11622 (neon_vmul_n<mode>): New.
11623 * config/arm/unspecs.md (UNSPEC_VCALE): New
11624 (UNSPEC_VCALT): New.
11625 (UNSPEC_VFMA_LANE): New.
11626 (UNSPECS_VFMS_LANE): New.
11627
11628 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11629
11630 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
11631 ("*extzv<mode><clobbercc_or_nocc>"):
11632 Correct a typo in a comment.
11633 Merged patterns.
11634 ("*insv<mode>_zEC12", "*insv<mode>_z10")
11635 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
11636 ("*insv<mode>_zEC12_appendbitsleft")
11637 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
11638 ("*insv<mode>_z10_appendbitsleft"): Ditto.
11639 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
11640 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
11641 Provide pattern with operands switched.
11642 ("*pre_z10_extv<mode>"):
11643 Use new subst patterns.
11644 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
11645 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
11646 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
11647 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
11648 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
11649 ("*<risbg_n>_sidi_ior_and_lshiftrt")
11650 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
11651 New patterns.
11652 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
11653 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
11654 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
11655 on zEC12.
11656 ("SINT"): New mode_iterator with SI, HI, QI.
11657 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
11658 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
11659 duplication.
11660
11661 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11662
11663 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
11664 new interface of s390_contiguous_bitmask_p.
11665 ("contiguous_bitmask_nowrap_operand"): New predicate.
11666 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
11667 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
11668 of s390_contiguous_bitmask_p.
11669 ("NxxDw"): Rename NxxDq constraint to NxxDw.
11670 ("NxxSw"): New constraint.
11671 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
11672 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
11673 interface.
11674 (s390_contiguous_bitmask_nowrap_p): Export.
11675 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
11676 former s390_contiguous_bitmask_p.
11677 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
11678 detect contiguous bit ranges with wraparound. Change signature to
11679 return START and END position instead of POS and LENGTH.
11680 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
11681 ranges with wraparound.
11682 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
11683 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
11684 Adapt to new signature of s390_contiguous_bitmask_p.
11685
11686 2016-09-23 Bin Cheng <bin.cheng@arm.com>
11687
11688 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
11689 (create_intersect_range_checks): New.
11690 (vect_create_cond_for_alias_checks): Call above function.
11691
11692 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11693
11694 * config/arm/iterators.md (Code iterators): Fix some white-space
11695 in the comments.
11696 (GLTE): New.
11697 (ABSNEG): New
11698 (FCVT): Moved from vfp.md.
11699 (VCVT_HF_US_N): New.
11700 (VCVT_SI_US_N): New.
11701 (VCVT_HF_US): New.
11702 (VCVTH_US): New.
11703 (FP16_RND): New.
11704 (absneg_str): New.
11705 (FCVTI32typename): Moved from vfp.md.
11706 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
11707 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
11708 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
11709 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
11710 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
11711 (vcvth_op): New.
11712 (fp16_rnd_str): New.
11713 (fp16_rnd_insn): New.
11714 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
11715 (UNSPEC_VCVT_HF_U_N): New.
11716 (UNSPEC_VCVT_SI_S_N): New.
11717 (UNSPEC_VCVT_SI_U_N): New.
11718 (UNSPEC_VCVTH_S): New.
11719 (UNSPEC_VCVTH_U): New.
11720 (UNSPEC_VCVTA_S): New.
11721 (UNSPEC_VCVTA_U): New.
11722 (UNSPEC_VCVTM_S): New.
11723 (UNSPEC_VCVTM_U): New.
11724 (UNSPEC_VCVTN_S): New.
11725 (UNSPEC_VCVTN_U): New.
11726 (UNSPEC_VCVTP_S): New.
11727 (UNSPEC_VCVTP_U): New.
11728 (UNSPEC_VCVTP_S): New.
11729 (UNSPEC_VCVTP_U): New.
11730 (UNSPEC_VRND): New.
11731 (UNSPEC_VRNDA): New.
11732 (UNSPEC_VRNDI): New.
11733 (UNSPEC_VRNDM): New.
11734 (UNSPEC_VRNDN): New.
11735 (UNSPEC_VRNDP): New.
11736 (UNSPEC_VRNDX): New.
11737 * config/arm/vfp.md (<absneg_str>hf2): New.
11738 (neon_vabshf): New.
11739 (neon_v<fp16_rnd_str>hf): New.
11740 (neon_vrndihf): New.
11741 (addhf3): New.
11742 (subhf3): New.
11743 (divhf3): New.
11744 (mulhf3): New.
11745 (*mulsf3neghf_vfp): New.
11746 (*negmulhf3_vfp): New.
11747 (*mulsf3addhf_vfp): New.
11748 (*mulhf3subhf_vfp): New.
11749 (*mulhf3neghfaddhf_vfp): New.
11750 (*mulhf3neghfsubhf_vfp): New.
11751 (fmahf4): New.
11752 (neon_vfmahf): New.
11753 (fmsubhf4_fp16): New.
11754 (neon_vfmshf): New.
11755 (*fnmsubhf4): New.
11756 (*fnmaddhf4): New.
11757 (neon_vsqrthf): New.
11758 (neon_vrsqrtshf): New.
11759 (FCVT): Move to iterators.md.
11760 (FCVTI32typename): Likewise.
11761 (neon_vcvth<sup>hf): New.
11762 (neon_vcvth<sup>si): New.
11763 (neon_vcvth<sup>_nhf_unspec): New.
11764 (neon_vcvth<sup>_nhf): New.
11765 (neon_vcvth<sup>_nsi_unspec): New.
11766 (neon_vcvth<sup>_nsi): New.
11767 (neon_vcvt<vcvth_op>h<sup>si): New.
11768 (neon_<fmaxmin_op>hf): New.
11769
11770 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11771
11772 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
11773 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
11774 ("*insv<mode>_zEC12_appendbitsleft")
11775 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
11776 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
11777
11778 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11779
11780 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
11781 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
11782 construct values without normalization.
11783 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
11784 static local lhs_ops to vNULL.
11785
11786 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11787 Jiong Wang <jiong.wang@arm.com>
11788
11789 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
11790 available when FP16 instructions are available.
11791 (output_move_vfp): Add support for 16-bit data moves.
11792 (arm_validize_comparison): Fix some white-space. Support HFmode
11793 by conversion to SFmode.
11794 * config/arm/arm.md (truncdfhf2): Fix a comment.
11795 (extendhfdf2): Likewise.
11796 (cstorehf4): New.
11797 (movsicc): Fix some white-space.
11798 (movhfcc): New.
11799 (movsfcc): Fix some white-space.
11800 (*cmovhf): New.
11801 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
11802 instructions are available.
11803 (*thumb2_movhi_vfp): Likewise.
11804 (*arm_movhi_fp16): New.
11805 (*thumb2_movhi_fp16): New.
11806 (*movhf_vfp_fp16): New.
11807 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
11808 (*movhf_vfp): Likewise.
11809 (extendhfsf2): Enable when VFP FP16 instructions are available.
11810 (truncsfhf2): Enable when VFP FP16 instructions are available.
11811
11812 2016-09-23 Martin Liska <mliska@suse.cz>
11813
11814 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
11815
11816 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11817
11818 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
11819 V4HF modes.
11820 (arm_evpc_neon_vtrn): Likewise.
11821 (arm_evpc_neon_vrev): Likewise.
11822 (arm_evpc_neon_vext): Likewise.
11823 * config/arm/arm_neon.h (vbsl_f16): New.
11824 (vbslq_f16): New.
11825 (vdup_n_f16): New.
11826 (vdupq_n_f16): New.
11827 (vdup_lane_f16): New.
11828 (vdupq_lane_f16): New.
11829 (vext_f16): New.
11830 (vextq_f16): New.
11831 (vmov_n_f16): New.
11832 (vmovq_n_f16): New.
11833 (vrev64_f16): New.
11834 (vrev64q_f16): New.
11835 (vtrn_f16): New.
11836 (vtrnq_f16): New.
11837 (vuzp_f16): New.
11838 (vuzpq_f16): New.
11839 (vzip_f16): New.
11840 (vzipq_f16): New.
11841 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
11842 (vdup_lane): New (v8hf, v4hf variants).
11843 (vext): New (v8hf, v4hf variants).
11844 (vbsl): New (v8hf, v4hf variants).
11845 * config/arm/iterators.md (VDQWH): New.
11846 (VH): New.
11847 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
11848 (Scalar_mul_8_16): Fix white-space.
11849 (Is_d_reg): Add V4HF and V8HF.
11850 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
11851 (neon_vdup_lane<mode>): New.
11852 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
11853 (*neon_vtrn<mode>_insn): Likewise.
11854 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
11855 (*neon_vzip<mode>_insn): Likewise
11856 (neon_vuzp<mode>_internal): Likewise.
11857 (*neon_vuzp<mode>_insn): Likewise
11858 * config/arm/vec-common.md (vec_perm_const<mode>): New.
11859
11860 2016-09-23 Jiong Wang <jiong.wang@arm.com>
11861 Matthew Wahab <matthew.wahab@arm.com>
11862
11863 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
11864 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
11865 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
11866 available. Also fix some white-space.
11867 * config/arm/vfp.md (*arm_movhi_vfp): New.
11868 (*thumb2_movhi_vfp): New.
11869
11870 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11871
11872 * config/arm/arm-c.c (arm_cpu_builtins): Define
11873 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
11874 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
11875
11876 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11877
11878 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
11879 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
11880 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
11881 arm_v8_2a_fp16_neon_hw.
11882 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
11883 arm_v8_2a_neon.
11884
11885 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11886
11887 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
11888 arm_fp16_alternative_ok and arm_fp16_none_ok.
11889
11890 2016-09-23 Martin Liska <mliska@suse.cz>
11891
11892 * ipa-icf.c (sem_variable::merge): Replace adress with address.
11893
11894 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11895
11896 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
11897 ("armv8.2-a"): New.
11898 ("armv8.2-a+fp16"): New.
11899 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
11900 (FL2_FP16INST): New.
11901 (FL2_FOR_ARCH8_2A): New.
11902 * config/arm/arm-tables.opt: Regenerate.
11903 * config/arm/arm.c (arm_arch8_2): New.
11904 (arm_fp16_inst): New.
11905 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
11906 for incompatible fp16-format settings.
11907 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
11908 (TARGET_NEON_FP16INST): New.
11909 (arm_arch8_2): Declare.
11910 (arm_fp16_inst): Declare.
11911 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
11912 march=armv8.2-a and march=armv8.2-a+fp16.
11913 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
11914 and armv8.2-a+fp16.
11915 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
11916 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
11917
11918 2016-09-23 Martin Liska <mliska@suse.cz>
11919
11920 * doc/extend.texi: Remove fused-madd from i386 target options.
11921
11922 2016-09-23 Martin Liska <mliska@suse.cz>
11923
11924 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
11925 Handle movbe.
11926
11927 2016-09-23 Martin Liska <mliska@suse.cz>
11928
11929 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
11930 Handle crc32.
11931
11932 2016-09-23 Martin Liska <mliska@suse.cz>
11933
11934 PR target/71652
11935 * config/i386/i386.c (ix86_option_override_internal): Change
11936 signature and return false when there's an error related to
11937 arch string.
11938 (release_options_strings): New function.
11939 (ix86_valid_target_attribute_tree): Call the function.
11940
11941 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11942
11943 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
11944 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
11945 (gen_hsa_ctor_assignment): Likewise.
11946 * print-tree.c (print_node): Likewise.
11947 * tree-dump.c (dequeue_and_dump): Likewise.
11948 * tree-sra.c (sra_modify_constructor_assign): Likewise.
11949 * expr.c (store_constructor): Likewise.
11950 * fold-const.c (operand_equal_p): Likewise.
11951 * tree-pretty-print.c (dump_generic_node): Likewise.
11952 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
11953 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
11954
11955 2016-09-23 Richard Biener <rguenther@suse.de>
11956
11957 * hooks.h (hook_uint_uintp_false): Declare.
11958
11959 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11960
11961 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
11962 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
11963
11964 2016-09-22 Martin Sebor <msebor@redhat.com>
11965
11966 PR target/77676
11967 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
11968 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
11969 (target_int_min): Correct computation.
11970 (format_integer): Use long long as the argument for the ll length
11971 modifier.
11972 (format_floating): Use target_int_max().
11973 (get_string_length): Same.
11974 (format_string): Avoid setting the bounded flag for strings
11975 of unknown length.
11976 (try_substitute_return_value): Avoid setting range info when
11977 the result isn't bounded.
11978 * varasm.c (assemble_name): Increase buffer size.
11979
11980 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
11981 Terry Guo <terry.guo@arm.com>
11982
11983 * target.def (elf_flags_numeric): New target hook.
11984 * targhooks.h (default_asm_elf_flags_numeric): New.
11985 * varasm.c (default_asm_elf_flags_numeric): New.
11986 (default_elf_asm_named_section): Use new target hook.
11987 * config/arm/arm.opt (mpure-code): New.
11988 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
11989 * config/arm/arm.c (arm_asm_init_sections): Add section
11990 attribute to default text section if -mpure-code.
11991 (arm_option_check_internal): Diagnose use of option with
11992 non supported targets and/or options.
11993 (arm_asm_elf_flags_numeric): New.
11994 (arm_function_section): New.
11995 (arm_elf_section_type_flags): New.
11996 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
11997 for -mpure-code.
11998 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
11999 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
12000
12001 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
12002
12003 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
12004
12005 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12006
12007 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
12008 * rtl.h: Adjust prototype.
12009
12010 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12011
12012 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
12013 (prev_active_insn): Likewise.
12014 (active_insn_p): Likewise.
12015 * rtl.h: Adjust prototypes.
12016 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
12017 * config/arc/arc.md: Likewise.
12018 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
12019 (branch_needs_nop_p): Likewise.
12020 (use_skip_p): Likewise.
12021 * config/sh/sh.c (gen_block_redirect): Likewise.
12022 (split_branches): Likewise.
12023 * reorg.c (optimize_skip): Likewise.
12024 (fill_simple_delay_slots): Likewise.
12025 (fill_slots_from_thread): Likewise.
12026 (relax_delay_slots): Likewise.
12027 * resource.c (mark_target_live_regs): Likewise.
12028
12029 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12030
12031 * config/cris/cris.c (cris_asm_output_case_end): Change argument
12032 type to rtx_insn *.
12033 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
12034 (prev_nonnote_nondebug_insn): Likewise.
12035 * config/cris/cris-protos.h: Adjust prototype.
12036 * rtl.h: Likewise.
12037 * jump.c (rtx_renumbered_equal_p): Adjust.
12038
12039 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12040
12041 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
12042 * rtl.h: Adjust prototype.
12043 * config/sh/sh.md: Adjust.
12044 * dwarf2out.c (add_var_loc_to_decl): Likewise.
12045
12046 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12047
12048 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
12049 (prev_nondebug_insn): Likewise.
12050 * loop-doloop.c (doloop_condition_get): Likewise.
12051 * rtl.h: Adjust prototype.
12052 * cfgloop.h: Likewise.
12053
12054 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12055
12056 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
12057 (prev_nonnote_insn): Likewise.
12058 * jump.c (reversed_comparison_code_parts): Likewise.
12059 (reversed_comparison): Likewise.
12060 * rtl.h: Adjust prototypes.
12061 * config/arc/arc.md: Adjust.
12062 * cse.c (find_comparison_args): Likewise.
12063 * reorg.c (redundant_insn): Change return type to rtx_insn *.
12064 (fix_reg_dead_note): Change argument type to rtx_insn *.
12065 (delete_prior_computation): Likewise.
12066 (delete_computation): Likewise.
12067 (fill_slots_from_thread): Adjust.
12068 (relax_delay_slots): Likewise.
12069 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12070 (simplify_relational_operation_1): Likewise.
12071 (simplify_ternary_operation): Likewise.
12072
12073 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12074
12075 * config/arc/arc-protos.h (arc_label_align): Change type of
12076 variables from rtx to rtx_insn *.
12077 * config/arc/arc.c (arc_label_align): Likewise.
12078 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
12079 * config/bfin/bfin.c (workaround_speculation): Likewise.
12080 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
12081 (find_last_same_clock): Likewise.
12082 (reorg_split_calls): Likewise.
12083 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
12084 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
12085 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
12086 (same_cmp_following_p): Likewise.
12087 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
12088 (same_cmp_following_p): Likwise.
12089 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
12090 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
12091 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
12092 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
12093 (rl78_alloc_physical_registers_cmp): Likewise.
12094 (rl78_alloc_physical_registers_umul): Likewise.
12095 (rl78_calculate_death_notes): Likewise.
12096 * config/s390/s390-protos.h (s390_label_align): Likewise.
12097 * config/s390/s390.c (s390_label_align): Likewise.
12098 * config/sh/sh.c (barrier_align): Likewise.
12099 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
12100 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
12101 (emit_cbcond_nop): Likewise.
12102
12103 2016-09-22 Martin Liska <mliska@suse.cz>
12104
12105 PR ipa/77653
12106 * ipa-icf.c (sem_variable::merge): Yield merge operation if
12107 alias address matters, not necessarily address of original.
12108
12109 2016-09-22 Richard Biener <rguenther@suse.de>
12110
12111 PR middle-end/77697
12112 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
12113 fold fails.
12114
12115 2016-09-22 Richard Biener <rguenther@suse.de>
12116
12117 PR middle-end/77677
12118 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
12119 from constant folding results.
12120 (gimple_resimplify2): Likewise.
12121 (gimple_resimplify3): Likewise.
12122
12123 2016-09-22 Richard Biener <rguenther@suse.de>
12124
12125 PR middle-end/77678
12126 * expr.c (expand_expr_real_1): Guard array access against negative
12127 offset.
12128
12129 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12130
12131 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
12132 of MPFR_RNDN.
12133 (format_floating): Likewise.
12134
12135 2016-09-22 Jakub Jelinek <jakub@redhat.com>
12136
12137 PR fortran/77665
12138 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
12139 for all IFN_GOMP_SIMD_* internal fns, not just for
12140 IFN_GOMP_SIMD_ORDERED_*.
12141
12142 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12143
12144 PR target/77670
12145 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
12146 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
12147 instructions when you want to invert the test.
12148 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
12149 correct order for XXSEL.
12150 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
12151 for using XSCMP{EQ,GT,GE}DP.
12152
12153 2016-09-21 David Malcolm <dmalcolm@redhat.com>
12154
12155 * genconstants.c (main): Introduce noop_reader and convert call
12156 to read_md_files to a method call.
12157 * genenums.c (main): Likewise.
12158 * genmddeps.c (main): Likewise.
12159 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
12160 rtx_reader_ptr->get_top_level_filename ().
12161 (write_tm_preds_h): Likewise.
12162 (write_insn_preds_c): Likewise.
12163 * gensupport.c (class gen_reader): New subclass of rtx_reader.
12164 (rtx_handle_directive): Convert to...
12165 (gen_reader::handle_unknown_directive): ...this.
12166 (init_rtx_reader_args_cb): Convert return type from bool to
12167 rtx_reader *. Create a gen_reader instance, using it for the
12168 call to read_md_files. Return it if no errors occur.
12169 (init_rtx_reader_args): Convert return type from bool to
12170 rtx_reader *.
12171 * gensupport.h (init_rtx_reader_args_cb): Likewise.
12172 (init_rtx_reader_args_cb): Likewise.
12173 * read-md.c (struct file_name_list): Move to class rtx_reader.
12174 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
12175 (read_md_filename): Delete in favor of
12176 rtx_reader::m_read_md_filename.
12177 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
12178 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
12179 (base_dir): Delete in favor of rtx_reader::m_base_dir.
12180 (first_dir_md_include): Delete in favor of
12181 rtx_reader::m_first_dir_md_include.
12182 (last_dir_md_include_ptr): Delete in favor of
12183 rtx_reader::m_last_dir_md_include_ptr.
12184 (max_include_len): Delete.
12185 (rtx_reader_ptr): New.
12186 (fatal_with_file_and_line): Use get_filename and get_lineno
12187 accessors of rtx_reader_ptr.
12188 (require_char_ws): Likewise.
12189 (rtx_reader::read_char): New method, based on ::read_char.
12190 (rtx_reader::unread_char): New method, based on ::unread_char.
12191 (read_escape): Use get_filename and get_lineno accessors of
12192 rtx_reader_ptr.
12193 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
12194 (read_string): Use get_filename and get_lineno accessors of
12195 rtx_reader_ptr.
12196 (rtx_reader::rtx_reader): New ctor.
12197 (rtx_reader::~rtx_reader): New dtor.
12198 (handle_include): Convert from a function to...
12199 (rtx_reader::handle_include): ...this method, converting
12200 handle_directive from a callback to a virtual function.
12201 (handle_file): Likewise, converting to...
12202 (rtx_reader::handle_file): ...this method.
12203 (handle_toplevel_file): Likewise, converting to...
12204 (rtx_reader::handle_toplevel_file): ...this method.
12205 (rtx_reader::get_current_location): New method.
12206 (parse_include): Convert from a function to...
12207 (rtx_reader::add_include_path): ...this method, dropping redundant
12208 update to unused max_include_len.
12209 (read_md_files): Convert from a function to...
12210 (rtx_reader::read_md_files): ...this method, converting
12211 handle_directive from a callback to a virtual function.
12212 (noop_reader::handle_unknown_directive): New method.
12213 * read-md.h (directive_handler_t): Delete this typedef.
12214 (in_fname): Delete.
12215 (read_md_file): Delete.
12216 (read_md_lineno): Delete.
12217 (read_md_filename): Delete.
12218 (class rtx_reader): New class.
12219 (rtx_reader_ptr): New decl.
12220 (class noop_reader): New subclass of rtx_reader.
12221 (read_char): Reimplement in terms of rtx_reader::read_char.
12222 (unread_char): Reimplement in terms of rtx_reader::unread_char.
12223 (read_md_files): Delete.
12224 * read-rtl.c (read_rtx_code): Update for deletion of globals
12225 read_md_filename and read_md_lineno.
12226
12227 2016-09-21 Jason Merrill <jason@redhat.com>
12228
12229 * input.h (from_macro_definition_at): New.
12230
12231 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
12232
12233 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
12234
12235 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12236
12237 PR tree-optimization/77550
12238 * tree-vect-stmts.c (create_array_ref): Change parameters.
12239 (get_group_alias_ptr_type): New function.
12240 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
12241
12242 2016-09-21 Marek Polacek <polacek@redhat.com>
12243
12244 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
12245 Add falls through comment.
12246
12247 2016-09-21 Richard Biener <rguenther@suse.de>
12248
12249 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
12250 (replace_child): Likewise.
12251 (remove_child_TAG): Adjust.
12252 (move_marked_base_types): Likewise.
12253 (prune_unused_types_prune): Clear die_sib of removed children.
12254
12255 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
12256
12257 PR target/77326
12258 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
12259 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
12260
12261 2016-09-21 Richard Biener <rguenther@suse.de>
12262
12263 PR tree-optimization/77648
12264 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
12265 with complex RHS.
12266 (make_transitive_closure_constraints): Adjust comment.
12267 (make_any_offset_constraints): New function.
12268 (handle_rhs_call): Make sure to first expand a pointer to all
12269 subfields before transitively closing it.
12270 (handle_const_call): Likewise. Properly expand returned
12271 pointers as well.
12272 (handle_pure_call): Likewise.
12273
12274 2016-09-21 Richard Biener <rguenther@suse.de>
12275 Jakub Jelinek <jakub@redhat.com>
12276
12277 PR tree-optimization/77621
12278 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
12279 group at non-vectorizable stmts.
12280
12281 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12282
12283 PR tree-optimization/72835
12284 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
12285 (make_new_ssa_for_all_defs): Likewise.
12286 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
12287
12288 2016-09-20 Martin Sebor <msebor@redhat.com>
12289
12290 PR middle-end/49905
12291 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
12292 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
12293 * config/linux.c (gnu_libc_printf_pointer_format): New function.
12294 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
12295 * config/sol2.c (solaris_printf_pointer_format): New function.
12296 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
12297 options.
12298 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
12299 * doc/tm.texi: Regenerate.
12300 * gimple-fold.h (get_range_strlen): New function.
12301 (get_maxval_strlen): Declare existing function.
12302 * gimple-fold.c (get_range_strlen): Add arguments and compute both
12303 maximum and minimum.
12304 (get_range_strlen): Define overload.
12305 (get_maxval_strlen): Adjust.
12306 * gimple-ssa-sprintf.c: New file and pass.
12307 * passes.def (pass_sprintf_length): Add new pass.
12308 * targhooks.h (default_printf_pointer_format): Declare new function.
12309 (gnu_libc_printf_pointer_format): Same.
12310 (solaris_libc_printf_pointer_format): Same.
12311 * targhooks.c (default_printf_pointer_format): Define new function.
12312 * tree-pass.h (make_pass_sprintf_length): Declare new function.
12313 * print-tree.c: Increase buffer size.
12314
12315 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12316
12317 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
12318
12319 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12320
12321 * common.opt: New option -fipa-vrp.
12322 * ipa-cp.c (ipa_get_vr_lat): New.
12323 (ipcp_vr_lattice::print): Likewise.
12324 (print_all_lattices): Call ipcp_vr_lattice::print.
12325 (ipcp_vr_lattice::meet_with): New.
12326 (ipcp_vr_lattice::meet_with_1): Likewise.
12327 (ipcp_vr_lattice::top_p): Likewise.
12328 (ipcp_vr_lattice::bottom_p): Likewsie.
12329 (ipcp_vr_lattice::set_to_bottom): Likewise.
12330 (set_all_contains_variable): Call VR set_to_bottom.
12331 (initialize_node_lattices): Init VR lattices.
12332 (propagate_vr_accross_jump_function): New.
12333 (propagate_constants_accross_call): Call
12334 propagate_vr_accross_jump_function.
12335 (ipcp_store_vr_results): New.
12336 (ipcp_driver): Handle VR.
12337 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
12338 (ipa_set_jf_unknown): Likewise.
12339 (ipa_compute_jump_functions_for_edge): Likewise.
12340 (ipa_node_params_t::duplicate): Likewise.
12341 (ipa_write_jump_function): Likewise.
12342 (ipa_read_jump_function): Likewise.
12343 (write_ipcp_transformation_info): Likewise.
12344 (read_ipcp_transformation_info): Likewise.
12345 (ipcp_update_vr): New.
12346 (ipcp_transform_function): Handle VR.
12347 * ipa-prop.h (struct ipa_vr): New.
12348 * cgraph.c: Include tree-vrp.h.
12349 * cgraphunit.c: Likewise.
12350 * ipa-utils.c: Likewise.
12351 * ipa.c: Likewise.
12352 * opts.c: Likewise.
12353 * toplev.c: Likewise.
12354 * ipa-devirt.c: Likewise.
12355 * ipa-inline-transform.c: Likewise.
12356 * ipa-inline.c: Likewise.
12357 * ipa-profile.c: Likewise.
12358
12359 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12360
12361 * doc/invoke.texi: Document -fdump-tree-evrp.
12362 * passes.def: Define new pass_early_vrp.
12363 * timevar.def: Define new TV_TREE_EARLY_VRP.
12364 * tree-pass.h (make_pass_early_vrp): New.
12365 * tree-ssa-propagate.c: Make replace_uses_in non static.
12366 * tree-ssa-propagate.h: Export replace_uses_in.
12367 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
12368 (extract_range_from_assert): Factor out
12369 extract_range_for_var_from_comparison_expr.
12370 (vrp_initialize_lattice): New.
12371 (vrp_initialize): Factor out vrp_initialize_lattice.
12372 (vrp_valueize): Fix it to reject complex value ranges.
12373 (vrp_free_lattice): New.
12374 (evrp_dom_walker::before_dom_children): Likewise.
12375 (evrp_dom_walker::after_dom_children): Likewise.
12376 (evrp_dom_walker::push_value_range): Likewise.
12377 (evrp_dom_walker::pop_value_range): Likewise.
12378 (execute_early_vrp): Likewise.
12379 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
12380 (make_pass_early_vrp): New.
12381
12382 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
12383
12384 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
12385 instead of exact_log2.
12386
12387 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
12388
12389 PR target/77621
12390 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
12391 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
12392 (ix86_add_stmt_cost): Penalize DFmode vector operations
12393 for !TARGET_VECTORIZE_DOUBLE.
12394
12395 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
12396
12397 * doc/invoke.texi (Warning Options): Simplify language.
12398 (Optimize Options): Complete sentence.
12399
12400 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
12401
12402 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
12403 early_finish hook.
12404
12405 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
12406
12407 PR target/71395
12408 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
12409 inits on power8 and above, use the VMRGEW instruction instead of a
12410 permute.
12411
12412 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
12413 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
12414 initialization.
12415
12416 2016-09-20 Tamar Christina <tamar.christina@arm.com>
12417
12418 * config/aarch64/arm_neon.h
12419 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
12420 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
12421 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
12422
12423 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12424
12425 * config/var/vax.h (ELIMINABLE_REGS): Define.
12426 (INITIAL_ELIMINATION_OFFSET): Define.
12427
12428 2016-09-20 Jakub Jelinek <jakub@redhat.com>
12429
12430 PR middle-end/77624
12431 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
12432 cast to void * if the cast is from some other pointer type.
12433
12434 2016-09-20 Richard Biener <rguenther@suse.de>
12435
12436 PR tree-optimization/77646
12437 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
12438 a VDEF.
12439
12440 2016-09-20 Tamar Christina <tamar.christina@arm.com>
12441
12442 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
12443 attributes to all inlined functions and make them extern.
12444
12445 2016-09-20 Richard Biener <rguenther@suse.de>
12446
12447 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
12448 hook.
12449 * debug.c (do_nothing_debug_hooks): Adjust.
12450 * dbxout.c (dbx_debug_hooks): Likewise.
12451 * sdbout.c (sdb_debug_hooks): Likewise.
12452 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
12453 (dwarf2out_finish): Move producer, filename and
12454 path annotation ...
12455 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
12456 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
12457
12458 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
12459
12460 PR c++/77434
12461 * doc/invoke.texi: Document -Wint-in-bool-context.
12462
12463 PR middle-end/77421
12464 * dwarf2out.c (output_loc_operands): Fix an assertion.
12465
12466 2016-09-19 Joseph Myers <joseph@codesourcery.com>
12467
12468 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
12469 (CR_DECIMAL_DIG): New macro.
12470
12471 2016-09-19 Joseph Myers <joseph@codesourcery.com>
12472
12473 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
12474 element.
12475
12476 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
12477
12478 PR rtl-optimization/77416
12479 * lra-remat.c (operand_to_remat): Process hard coded insn
12480 registers.
12481
12482 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12483
12484 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
12485 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
12486
12487 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
12488
12489 * target.def (lra_p): Wordsmithing.
12490 * doc/tm.texi: Regenerate.
12491
12492 2016-09-19 Jakub Jelinek <jakub@redhat.com>
12493 Jan Hubicka <jh@suse.cz>
12494
12495 PR target/77587
12496 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
12497 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
12498 Call ultimate_alias_target just once, not up to 4 times.
12499
12500 2016-09-19 Richard Biener <rguenther@suse.de>
12501
12502 * dwarf2out.c (early_dwarf_finished): New global.
12503 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
12504 is false.
12505 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
12506 if called from LTO exit early.
12507 (dwarf2out_late_global_decl): When being during the early
12508 debug phase do not add locations but only const value attributes.
12509 Adjust the way we generate early DIEs for LTO.
12510
12511 2016-09-19 Richard Biener <rguenther@suse.de>
12512
12513 PR middle-end/77605
12514 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
12515 proper niter to bound the loops.
12516
12517 2016-09-19 Richard Biener <rguenther@suse.de>
12518
12519 PR tree-optimization/77514
12520 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
12521 search for folded stmt.
12522
12523 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
12524
12525 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
12526 * tree-pass.h (make_pass_early_thread_jumps): Declare.
12527 * tree-ssa-threadbackward.c (fsm_find_thread_path,
12528 fsm_find_thread_path, profitable_jump_thread_path,
12529 fsm_find_control_statement_thread_paths,
12530 find_jump_threads_backwards): Add speed_p parameter.
12531 (pass_data_early_thread_jumps): New pass.
12532 (make_pass_early_thread_jumps): New function.
12533
12534 2016-09-17 Andreas Schwab <schwab@suse.de>
12535
12536 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
12537 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
12538
12539 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
12540
12541 * recog.c (rest_of_handle_split_after_reload): Delete.
12542 (pass_split_after_reload::gate): New method.
12543 (pass_split_after_reload::execute): Call split_all_insns directly.
12544
12545 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
12546
12547 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
12548 parameters for functions taking long long arguments.
12549
12550 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12551
12552 PR target/77613
12553 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
12554 splat with truncate.
12555
12556 2016-09-16 Jason Merrill <jason@redhat.com>
12557
12558 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
12559 New.
12560 * hwint.c (exact_log2): Use pow2p_hwi.
12561 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
12562 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
12563 * builtins.c (get_object_alignment_2, get_object_alignment)
12564 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
12565 least_bit_hwi.
12566 * calls.c (compute_argument_addresses, store_one_arg): Use
12567 least_bit_hwi.
12568 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
12569 * combine.c (force_to_mode): Use least_bit_hwi.
12570 (contains_muldiv, find_split_point, combine_simplify_rtx)
12571 (simplify_if_then_else, simplify_set, force_to_mode)
12572 (if_then_else_cond, simplify_and_const_int_1)
12573 (simplify_compare_const): Use pow2p_hwi.
12574 * cse.c (fold_rtx): Use pow2p_hwi.
12575 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
12576 Use least_bit_hwi.
12577 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
12578 (init_expmed_one_conv): Use pow2p_hwi.
12579 * expr.c (is_aligning_offset): Use pow2p_hwi.
12580 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
12581 (fold_binary_loc): Use pow2p_hwi.
12582 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
12583 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
12584 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
12585 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
12586 Use least_bit_hwi.
12587 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
12588 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
12589 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
12590 * omp-low.c (oacc_loop_fixed_partitions)
12591 (oacc_loop_auto_partitions): Use least_bit_hwi.
12592 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
12593 * stor-layout.c (place_field): Use least_bit_hwi.
12594 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
12595 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
12596 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
12597 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
12598 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
12599 * tree-vect-data-refs.c (vect_analyze_group_access_1)
12600 (vect_grouped_store_supported, vect_grouped_load_supported)
12601 (vect_permute_load_chain, vect_shift_permute_load_chain)
12602 (vect_transform_grouped_load): Use pow2p_hwi.
12603 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
12604 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
12605 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
12606 least_bit_hwi.
12607 * tsan.c (instrument_expr): Use least_bit_hwi.
12608 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
12609
12610 2016-09-16 Andreas Schwab <schwab@suse.de>
12611
12612 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
12613 OFFSET, not offset.
12614 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
12615
12616 2016-09-16 Jakub Jelinek <jakub@redhat.com>
12617
12618 PR target/77526
12619 * combine.c (rest_of_handle_combine): If any edges have been purged,
12620 free dominators if available.
12621
12622 2016-09-16 Jakub Jelinek <jakub@redhat.com>
12623 Eric Botcazou <ebotcazou@adacore.com>
12624
12625 PR middle-end/77594
12626 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
12627 through into expand_addsub_overflow after expand_neg_overflow.
12628
12629 2016-09-15 David Malcolm <dmalcolm@redhat.com>
12630
12631 * diagnostic-show-locus.c
12632 (selftest::test_fixit_insert_containing_newline): New function.
12633 (selftest::test_fixit_replace_containing_newline): New function.
12634 (selftest::diagnostic_show_locus_c_tests): Call the above.
12635
12636 2016-09-15 Bin Cheng <bin.cheng@arm.com>
12637
12638 PR tree-optimization/77503
12639 * tree-vect-loop.c (vectorizable_reduction): Record reduction
12640 code for CONST_COND_REDUCTION at analysis stage and use it at
12641 transform stage.
12642 * tree-vectorizer.h (struct _stmt_vec_info): New field.
12643 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
12644 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
12645 field.
12646
12647 2016-09-15 Richard Biener <rguenther@suse.de>
12648
12649 PR middle-end/77544
12650 * fold-const.c (split_tree): Do not split constant ~X.
12651
12652 2016-09-15 Jakub Jelinek <jakub@redhat.com>
12653
12654 PR rtl-optimization/77425
12655 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
12656 is NULL.
12657
12658 PR middle-end/77475
12659 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
12660 use %qs instead of %s where desirable, use argument instead of arg in
12661 the diagnostic wording, add list of supported strategies and
12662 spellcheck hint.
12663 (ix86_option_override_internal): Emit target("m...") instead of
12664 option("m...") in the diagnostic. Use %qs instead of %s in invalid
12665 -march/-mtune option diagnostic. Add list of supported arches/tunings
12666 and spellcheck hint. Remove prefix, suffix and sw variables, use
12667 main_args_p ? "..." : "..." in diagnostics to make translation
12668 possible.
12669
12670 2016-09-15 Richard Biener <rguenther@suse.de>
12671
12672 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
12673 extra offset argument.
12674 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
12675 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
12676 to reflect new offset parameter.
12677 * doc/tm.texi: Regenerate.
12678 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
12679 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
12680 offset argument.
12681 (darwin_asm_output_dwarf_offset): Likewise.
12682 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
12683 argument.
12684 (darwin_asm_output_dwarf_offset): Pass offset argument through.
12685 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
12686 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
12687
12688 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
12689
12690 PR fortran/72743
12691 * ipa-icf.c (set_alias_uids): New function.
12692 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
12693 all the merged variable's referring aliases.
12694
12695 2016-09-15 Richard Biener <rguenther@suse.de>
12696
12697 PR tree-optimization/77514
12698 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
12699 only forced_stmts sequence.
12700
12701 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
12702
12703 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
12704 * cfgexpand.c (update_alias_info_with_stack_vars): Use
12705 FOR_EACH_SSA_NAME to iterate over SSA variables.
12706 (pass_expand::execute): Likewise.
12707 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
12708 * tree-cfg.c (dump_function_to_file): Likewise.
12709 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
12710 (update_ssa): Likewise.
12711 * tree-ssa-alias.c (dump_alias_info): Likewise.
12712 * tree-ssa-ccp.c (ccp_finalize): Likewise.
12713 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
12714 (create_outofssa_var_map): Likewise.
12715 (coalesce_ssa_name): Likewise.
12716 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
12717 * tree-ssa-pre.c (compute_avail): Likewise.
12718 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
12719 (scc_vn_restore_ssa_info): Likewise.
12720 (free_scc_vn): Likwise.
12721 (run_scc_vn): Likewise.
12722 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
12723 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
12724 * tree-ssa-copy.c (fini_copy_prop): Likewise.
12725 * tree-ssa.c (verify_ssa): Likewise.
12726
12727 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
12728
12729 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
12730 and mips64r2 as default 32-bit and 64-bit architectures.
12731 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
12732 as default 32-bit and 64-bit architectures.
12733
12734 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
12735
12736 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
12737 of succ edge.
12738
12739 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12740
12741 * target.def (lra_p): Change commentary (for the manual) for the
12742 new default.
12743 * doc/tm.texi: Regenerate.
12744
12745 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12746
12747 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
12748 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
12749 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
12750 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
12751
12752 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12753
12754 * targhooks.c (default_lra_p): Return true instead of false.
12755
12756 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12757
12758 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
12759 hook_bool_void_false.
12760 * config/avr/avr.c: Ditto.
12761 * config/bfin/bfin.c: Ditto.
12762 * config/c6x/c6x.c: Ditto.
12763 * config/cr16/cr16.c: Ditto.
12764 * config/cris/cris.c: Ditto.
12765 * config/epiphany/epiphany.c: Ditto.
12766 * config/fr30/fr30.c: Ditto.
12767 * config/frv/frv.c: Ditto.
12768 * config/h8300/h8300.c: Ditto.
12769 * config/ia64/ia64.c: Ditto.
12770 * config/iq2000/iq2000.c: Ditto.
12771 * config/lm32/lm32.c: Ditto.
12772 * config/m32c/m32c.c: Ditto.
12773 * config/m32r/m32r.c: Ditto.
12774 * config/m68k/m68k.c: Ditto.
12775 * config/mcore/mcore.c: Ditto.
12776 * config/microblaze/microblaze.c: Ditto.
12777 * config/mmix/mmix.c: Ditto.
12778 * config/mn10300/mn10300.c: Ditto.
12779 * config/moxie/moxie.c: Ditto.
12780 * config/msp430/msp430.c: Ditto.
12781 * config/nios2/nios2.c: Ditto.
12782 * config/nvptx/nvptx.c: Ditto.
12783 * config/pa/pa.c: Ditto.
12784 * config/pdp11/pdp11.c: Ditto.
12785 * config/rl78/rl78.c: Ditto.
12786 * config/sparc/sparc.c: Ditto.
12787 * config/spu/spu.c: Ditto.
12788 * config/stormy16/stormy16.c: Ditto.
12789 * config/tilegx/tilegx.c: Ditto.
12790 * config/tilepro/tilepro.c: Ditto.
12791 * config/v850/v850.c: Ditto.
12792 * config/vax/vax.c: Ditto.
12793 * config/visium/visium.c: Ditto.
12794 * config/xtensa/xtensa.c: Ditto.
12795
12796 2016-09-14 Jakub Jelinek <jakub@redhat.com>
12797
12798 PR sanitizer/68260
12799 * tsan.c: Include target.h.
12800 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
12801 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
12802 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
12803 BUILT_IN_ATOMIC_TEST_AND_SET entries.
12804 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
12805
12806 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12807 Martin Liska <mliska@suse.cz>
12808
12809 PR middle-end/77574
12810 * predict.c (force_edge_cold): Add braces to a condition.
12811
12812 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12813
12814 PR rtl-optimization/77289
12815 * lra-constraints.c (get_final_hard_regno): Removed.
12816 (get_hard_regno): Add new parameter final_p.
12817 (get_reg_class): Directly call lra_get_elimination_hard_regno.
12818 (operands_match_p): Adjust call to get_hard_regno.
12819 (uses_hard_regs_p): Likewise.
12820 (process_alt_operands): Likewise.
12821
12822 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
12823
12824 PR target/70713
12825 * config/msp430/msp430.c (msp430_start_function): Emit an error
12826 if a function is both weak and specifies an interrupt number.
12827
12828 2016-09-13 Jakub Jelinek <jakub@redhat.com>
12829
12830 PR tree-optimization/77454
12831 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
12832 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
12833 Formatting fix.
12834
12835 2016-09-13 Tamar Christina <tamar.christina@arm.com>
12836
12837 * config/aarch64/aarch64-builtins.c
12838 (aarch64_init_simd_builtins): Fix builtin type signature printing.
12839
12840 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
12841
12842 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
12843 SFmode and SCmode arguments by reference.
12844
12845 2016-09-13 David Malcolm <dmalcolm@redhat.com>
12846
12847 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
12848 Rename to...
12849 (selftest::test_one_liner_fixit_insert_before): ...this, and update
12850 for renaming of add_fixit_insert to add_fixit_insert_before.
12851 (selftest::test_one_liner_fixit_insert_after): New function.
12852 (selftest::test_one_liner_fixit_validation_adhoc_locations):
12853 Update for renaming of add_fixit_insert to add_fixit_insert_before.
12854 (selftest::test_one_liner_many_fixits): Likewise.
12855 (selftest::test_diagnostic_show_locus_one_liner): Update for
12856 renaming, call new test function.
12857 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
12858 renaming of add_fixit_insert to add_fixit_insert_before.
12859 (selftest::test_fixit_consolidation): Likewise.
12860 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
12861 Likewise.
12862 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
12863 (selftest::test_applying_fixits_insert_before): ...this.
12864 (selftest::test_applying_fixits_insert): Update for renaming of
12865 add_fixit_insert to add_fixit_insert_before.
12866 (selftest::test_applying_fixits_insert_after): New function.
12867 (selftest::test_applying_fixits_insert_after_at_line_end): New
12868 function.
12869 (selftest::test_applying_fixits_insert_after_failure): New function.
12870 (selftest::test_applying_fixits_multiple): Update for renaming of
12871 add_fixit_insert to add_fixit_insert_before.
12872 (selftest::change_line): Likewise.
12873 (selftest::test_applying_fixits_unreadable_file): Likewise.
12874 (selftest::test_applying_fixits_line_out_of_range): Likewise.
12875 (selftest::test_applying_fixits_column_validation): Likewise.
12876 (selftest::test_applying_fixits_column_validation): Likewise.
12877 (selftest::edit_context_c_tests): Update for renamed test function;
12878 call new test functions.
12879
12880 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
12881
12882 PR tree-optimization/77536
12883 PR rtl-optimization/68212
12884 * config/rs6000/rs6000.md (div->recip splitter): Remove
12885 optimize_insn_for_speed_p condition.
12886
12887 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
12888
12889 * optabs.c (prepare_cmp_insn): Update documentation comment.
12890
12891 2016-09-13 Jakub Jelinek <jakub@redhat.com>
12892 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12893
12894 PR middle-end/77475
12895 * opts.h (candidates_list_and_hint): Declare.
12896 * opts-common.c (candidates_list_and_hint): New function.
12897 (cmdline_handle_error): Use it.
12898
12899 2016-09-12 David Malcolm <dmalcolm@redhat.com>
12900
12901 * edit-context.c (edited_line::get_len): New accessor.
12902 (edited_file::print_diff): Split out hunk-printing into...
12903 (edited_file::print_diff_hunk): New method.
12904 (edited_file::print_diff_line): New method.
12905
12906 2016-09-12 Andrew Pinski <apinski@cavium.com>
12907
12908 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
12909 New tuning option.
12910 * config/aarch64/aarch64.c (thunderx_tunings): Enable
12911 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
12912 (aarch64_operands_ok_for_ldpstp): Return false if
12913 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
12914 was SImode and the alignment is less than 8 byte.
12915 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
12916
12917 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
12918
12919 PR target/77570
12920 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
12921
12922 2016-09-12 Marek Polacek <polacek@redhat.com>
12923
12924 * doc/extend.texi: Use lowercase "boolean".
12925 * doc/invoke.texi: Likewise.
12926 * doc/md.texi: Likewise.
12927 * target.def: Likewise.
12928 * doc/tm.texi: Regenerated.
12929
12930 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12931
12932 PR middle-end/77426
12933 * expmed.c (synth_mult): Delete duplicate mode check.
12934
12935 2016-09-10 Tom de Vries <tom@codesourcery.com>
12936
12937 PR C/71602
12938 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
12939 va_list type only.
12940 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
12941 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
12942
12943 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
12944
12945 PR rtl-optimization/77289
12946 * lra-constraints.c (get_final_hard_regno): Add support for non hard
12947 register numbers. Remove support for subregs.
12948 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
12949 (get_reg_class): Delete removed get_final_hard_regno() argument.
12950 (uses_hard_regs_p): Call get_final_hard_regno().
12951
12952 2016-09-09 Martin Sebor <msebor@redhat.com>
12953
12954 PR c/77520
12955 PR c/77521
12956 * pretty-print.c (pp_quoted_string): New function.
12957 (pp_format): Call it for %c and %s directives.
12958
12959 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
12960
12961 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
12962 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
12963 INITIAL_ELIMINATION_OFFSET) : Update documentation.
12964 * target.def (frame_pointer_required, can_eliminate): Likewise.
12965 * doc/tm.texi: Regenerated.
12966 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
12967 ELIMINABLE_REGS.
12968 * df-scan.c (df_hard_reg_init): Likewise.
12969 * ira.c (ira_setup_eliminable_regset): Likewise.
12970 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
12971 init_elim_table): Likewise.
12972 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
12973 set_initial_elim_offsets, update_eliminables,
12974 init_elim_table): Likewise.
12975 * rtlanal.c (get_initial_register_offset): Likewise.
12976 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
12977 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
12978 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
12979 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
12980 * config/fr30/fr30.h: Fix comment.
12981 * config/frv/frv.c: Likewise.
12982 * config/frv/frv.h: Likewise.
12983 * config/ft32/ft32.h: Likewise.
12984 * config/visium/visium.h: Likewise.
12985 * config/pa/pa64-linux.h: Likewise.
12986 * config/v850/v850.h: Likewise.
12987 * config/cris/cris.c: Likewise.
12988 * config/ia64/ia64.h: Likewise.
12989 * config/moxie/moxie.h: Likewise.
12990 * config/m32r/m32r.h: Likewise.
12991
12992 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
12993
12994 PR target/77267
12995 * config.in: Regenerate.
12996 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
12997 New macro.
12998 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
12999 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
13000 static-libmpxwrappers case.
13001 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
13002 MPX_LD_AS_NEEDED_GUARD_POP.
13003 * configure: Regenerate.
13004 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
13005 defined if linker support "--push-state"/"--pop-state".
13006
13007 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13008
13009 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
13010
13011 2016-09-09 Joseph Myers <joseph@codesourcery.com>
13012
13013 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
13014 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
13015 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
13016 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
13017 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
13018 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
13019 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
13020 Document.
13021 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
13022 width macros from TS 18661-1.
13023 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
13024
13025 2016-09-08 Jakub Jelinek <jakub@redhat.com>
13026
13027 PR fortran/77516
13028 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
13029 OMP_CLAUSE_SAFELEN_EXPR.
13030
13031 2016-09-07 David Malcolm <dmalcolm@redhat.com>
13032
13033 * Makefile.in (OBJS): Add substring-locations.o.
13034 * langhooks-def.h (class substring_loc): New forward decl.
13035 (lhd_get_substring_location): New decl.
13036 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
13037 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
13038 * langhooks.c (lhd_get_substring_location): New function.
13039 * langhooks.h (class substring_loc): New forward decl.
13040 (struct lang_hooks): Add field get_substring_location.
13041 * substring-locations.c: New file, taking definition of
13042 format_warning_va and format_warning_at_substring from
13043 c-family/c-format.c, making them non-static.
13044 * substring-locations.h (class substring_loc): Move class here
13045 from c-family/c-common.h. Add and rewrite comments.
13046 (format_warning_va): New decl.
13047 (format_warning_at_substring): New decl.
13048 (get_source_location_for_substring): Add comment.
13049
13050 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
13051
13052 * config/i386/i386.c: Add 'U' suffix to processor feature bits
13053 to avoid -Wnarrowing warning.
13054 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
13055 * opts.c: Likewise for SANITIZER_OPT bitmasks.
13056
13057 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
13058
13059 * config/aarch64/aarch64.c (aarch64_legitimize_address):
13060 Avoid use of base_offset if offset already in range.
13061
13062 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
13063
13064 * config/sh/sh-protos.h (struct sh_atomic_model,
13065 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13066 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13067 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
13068 * config/sh/sh.h (struct sh_atomic_model,
13069 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13070 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13071 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
13072 Guard with __cplusplus.
13073
13074 2016-09-06 Jakub Jelinek <jakub@redhat.com>
13075
13076 PR target/69255
13077 * config/i386/i386.c (ix86_expand_builtin): For builtin with
13078 unsupported or unknown ISA, use expand_call.
13079
13080 2016-09-06 Martin Liska <mliska@suse.cz>
13081
13082 PR gcov-profile/77378
13083 PR gcov-profile/77466
13084 * tree-profile.c (tree_profiling): Detect whether target can use
13085 -fprofile-update=atomic.
13086
13087 2016-09-06 Richard Biener <rguenther@suse.de>
13088
13089 PR tree-optimization/77479
13090 * tree-vrp.c (update_value_range): Extend overflow handling to
13091 VARYING.
13092
13093 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13094
13095 PR target/77476
13096 * config/i386/i386.md (isa): Add x64_avx512bw.
13097 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
13098 (kmov_isa): New mode attr.
13099 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
13100 (*zero_extend<mode>si2): Likewise.
13101 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
13102
13103 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
13104
13105 * doc/invoke.texi (SPU Options): nops -> NOPs.
13106 (x86 Options): Ditto.
13107
13108 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13109
13110 PR middle-end/77475
13111 * toplev.c (process_options): Temporarily set input_location
13112 to UNKNOWN_LOCATION around targetm.target_option.override () call.
13113
13114 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
13115
13116 PR rtl-optimization/77452
13117 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
13118 inner-mode reference to a CONST_VECTOR constant in the constant pool.
13119
13120 2016-09-05 Marek Polacek <polacek@redhat.com>
13121
13122 PR c/77423
13123 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
13124
13125 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13126
13127 PR other/77421
13128 * gensupport.c (alter_output_for_subst_insn): Remove redundant
13129 *insn_out == '*' test. Don't copy unnecessary to yet another
13130 memory buffer, and don't leak it.
13131
13132 PR rtl-optimization/77425
13133 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
13134
13135 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
13136
13137 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
13138
13139 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13140
13141 * common.opt (fdiagnostics-generate-patch): New option.
13142 * diagnostic.c: Include "edit-context.h".
13143 (diagnostic_initialize): Initialize context->edit_context_ptr.
13144 (diagnostic_finish): Delete context->edit_context_ptr.
13145 (diagnostic_report_diagnostic): Add fix-it hints from the
13146 diagnostic to context->edit_context_ptr, if any.
13147 * diagnostic.h (class edit_context): Add forward decl.
13148 (struct diagnostic_context): Add field "edit_context_ptr".
13149 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
13150 -fdiagnostics-generate-patch.
13151 (-fdiagnostics-generate-patch): New item.
13152 * toplev.c: Include "edit-context.h".
13153 (process_options): Set global_dc->edit_context_ptr to a new
13154 edit_context if the options need one.
13155 (toplev::main): Handle -fdiagnostics-generate-patch by using
13156 global_dc->edit_context_ptr.
13157
13158 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13159
13160 PR c/65467
13161 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
13162 map and firstprivate clauses on target construct for _Atomic
13163 qualified decls.
13164 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
13165 on target construct for _Atomic qualified decls.
13166 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
13167 decls.
13168 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
13169 _Atomic qualified arguments not mentioned in uniform clause.
13170
13171 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13172
13173 * Makefile.in (OBJS-libcommon): Add edit-context.o.
13174 * diagnostic-color.c (color_dict): Add "diff-filename",
13175 "diff-hunk", "diff-delete", and "diff-insert".
13176 (parse_gcc_colors): Update default value of GCC_COLORS in comment
13177 to reflect above changes.
13178 * doc/invoke.texi (-fdiagnostics-color): Update description of
13179 default GCC_COLORS, and of the supported capabilities.
13180 * edit-context.c: New file.
13181 * edit-context.h: New file.
13182 * input.c (struct fcache): Add field "missing_trailing_newline".
13183 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
13184 true.
13185 (add_file_to_cache_tab): Likewise.
13186 (fcache::fcache): Likewise.
13187 (get_next_line): Update c->missing_trailing_newline.
13188 (location_missing_trailing_newline): New function.
13189 * input.h (location_missing_trailing_newline): New decl.
13190 * selftest-run-tests.c (selftest::run_tests): Call
13191 edit_context_c_tests.
13192 * selftest.h (edit_context_c_tests): New decl.
13193
13194 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13195 Richard Biener <rguenth@suse.de>
13196
13197 PR tree-optimization/77444
13198 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
13199 as steptype, remove redundant initialization.
13200
13201 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13202
13203 PR sanitizer/77396
13204 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
13205 (sanopt_optimize_walker): Optimize away
13206 __asan_before_dynamic_init (...) followed by
13207 __asan_after_dynamic_init () without intervening memory loads/stores.
13208 * ipa-pure-const.c (special_builtin_state): Handle
13209 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
13210 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
13211
13212 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13213
13214 * cfg.c (free_original_copy_tables): Replace second assignment of
13215 bb_copy = NULL by bb_original = NULL.
13216
13217 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13218
13219 PR other/77421
13220 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
13221 assignment added in r216794.
13222
13223 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13224
13225 * Makefile.in (OBJS): Add typed-splay-tree.o.
13226 * selftest-run-tests.c (selftest::run_tests): Call
13227 typed_splay_tree_c_tests.
13228 * selftest.h (typed_splay_tree_c_tests): New decl.
13229 * typed-splay-tree.c: New file.
13230 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
13231 (typed_splay_tree::max): New method.
13232 (typed_splay_tree::min): New method.
13233 (typed_splay_tree::foreach): New method.
13234 (typed_splay_tree::closure): New struct.
13235 (typed_splay_tree::inner_foreach_fn): New function.
13236
13237 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13238
13239 * ipa-cp.c (ipcp_store_bits_results): Change option name from
13240 -fipa-cp-bit to -fipa-bit-cp.
13241
13242 2016-09-01 Martin Sebor <msebor@redhat.com>
13243
13244 PR tree-optimization/71831
13245 * tree-object-size.h: Return bool instead of the size and add
13246 argument for the size.
13247 * tree-object-size.c (compute_object_offset): Update signature.
13248 (addr_object_size): Same.
13249 (compute_builtin_object_size): Return bool instead of the size
13250 and add argument for the size. Handle POINTER_PLUS_EXPR when
13251 optimization is disabled.
13252 (expr_object_size): Adjust.
13253 (plus_stmt_object_size): Adjust.
13254 (pass_object_sizes::execute): Adjust.
13255 * builtins.c (fold_builtin_object_size): Adjust.
13256 * doc/extend.texi (Object Size Checking): Update.
13257 * ubsan.c (instrument_object_size): Adjust.
13258
13259 2016-09-01 Martin Sebor <msebor@redhat.com>
13260
13261 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
13262 it fits the output of the formatted function regardless of its
13263 arguments.
13264 * genmodes.c (parser::parse_expr): Same.
13265 * gimplify.c (gimplify_asm_expr): Same.
13266 * passes.c (pass_manager::register_one_dump_file): Same.
13267 * print-tree.c (print_node): Same.
13268
13269 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13270
13271 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
13272
13273 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13274
13275 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
13276
13277 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13278
13279 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
13280 * config/rs6000/vector.md: Ditto.
13281 * config/rs6000/vsx.md: Ditto.
13282
13283 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
13284
13285 * ipa-inline-analysis.c (param_change_prob): Get to the base object
13286 first in all cases.
13287
13288 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13289
13290 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
13291 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
13292 *return_and_restore_gpregs_<mode>_r11,
13293 *return_and_restore_gpregs_<mode>_r12,
13294 *return_and_restore_gpregs_<mode>_r1,
13295 *return_and_restore_fpregs_<mode>_r11,
13296 *return_and_restore_fpregs_<mode>_r12,
13297 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
13298 directly instead of via the "l" constraint. Renumber operands.
13299 Fix whitespace.
13300
13301 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13302
13303 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
13304 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
13305 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
13306 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
13307 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
13308 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
13309 *call_value_nonlocal_darwin64, reload_macho_picbase,
13310 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
13311 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
13312 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
13313 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
13314 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
13315 *save_fpregs_<mode>_r1): Ditto.
13316 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
13317 *return_and_restore_gpregs_spe): Ditto.
13318
13319 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13320
13321 * config/rs6000/rs6000.md
13322 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
13323 the use of the link register.
13324 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
13325
13326 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13327 Michael Meissner <meissner@linux.vnet.ibm.com>
13328
13329 PR target/72827
13330 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
13331 reg+reg addressing for TImode.
13332 (rs6000_legitimate_address_p): Only allow register indirect
13333 addressing for TImode, even without TARGET_QUAD_MEMORY.
13334
13335 2016-09-01 Richard Biener <rguenther@suse.de>
13336
13337 PR middle-end/77436
13338 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
13339 check whether the result fits the desired result type.
13340
13341 2016-09-01 Nathan Sidwell <nathan@acm.org>
13342
13343 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
13344
13345 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
13346
13347 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
13348 New function.
13349 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
13350
13351 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13352
13353 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
13354 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
13355 for comparisons of integer ZERO_EXTEND against zero.
13356
13357 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
13358
13359 * config/i386/i386.c (ix86_option_override_internal): Also disable the
13360 STV pass if -mstackrealign is enabled.
13361
13362 2016-08-31 Ilya Verbin <iverbin@gmail.com>
13363
13364 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
13365 AVX512IFMA.
13366
13367 2016-08-31 David Malcolm <dmalcolm@redhat.com>
13368
13369 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
13370 (layout_range::intersects_line_p): New method.
13371 (test_range_contains_point_for_single_point): Rename to...
13372 (test_layout_range_for_single_point): ...this, and add testing
13373 for layout_range::intersects_line_p.
13374 (test_range_contains_point_for_single_line): Rename to...
13375 (test_layout_range_for_single_line): ...this, and add testing
13376 for layout_range::intersects_line_p.
13377 (test_range_contains_point_for_multiple_lines): Rename to...
13378 (test_layout_range_for_multiple_lines): ...this, and add testing
13379 for layout_range::intersects_line_p.
13380 (layout::layout): Populate m_fixit_hints.
13381 (layout::get_expanded_location): Handle the case of a line-span
13382 for a fix-it hint.
13383 (layout::validate_fixit_hint_p): New method.
13384 (get_line_span_for_fixit_hint): New function.
13385 (layout::calculate_line_spans): Add spans for fixit-hints.
13386 (layout::should_print_annotation_line_p): New method.
13387 (layout::print_any_fixits): Drop param "richloc", instead using
13388 validated fixits in m_fixit_hints. Add "const" to hint pointers.
13389 (diagnostic_show_locus): Avoid printing blank annotation lines.
13390 (selftest::test_diagnostic_context::test_diagnostic_context):
13391 Initialize show_column and start_span.
13392 (selftest::test_diagnostic_context::start_span_cb): New static
13393 function.
13394 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
13395 (selftest::diagnostic_show_locus_c_tests): Update for function
13396 renamings. Call test_diagnostic_show_locus_fixit_lines.
13397
13398 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
13399
13400 PR tree-optimization/73714
13401 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
13402
13403 2016-08-31 David Malcolm <dmalcolm@redhat.com>
13404
13405 * selftest.c: Move "namespace selftest {" to top of file,
13406 removing explicit "selftest::" qualifiers throughout.
13407
13408 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
13409
13410 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
13411 New types.
13412 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
13413 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
13414 Replace builtin with vector extension.
13415 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
13416 New types.
13417 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
13418 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
13419 Replace builtin with vector extension.
13420 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
13421 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
13422 Replace builtin with vector extension.
13423 * config/i386/xmmintrin.h (__m128_u): New type.
13424 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
13425 (_mm_load_ps, _mm_store_ps): Simplify.
13426
13427 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
13428
13429 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
13430
13431 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13432
13433 * diagnostic-show-locus.c (colorizer::begin_state): Support more
13434 than 3 ranges per diagnostic by alternating between color 1 and
13435 color 2.
13436 (layout::layout): Replace use of rich_location::MAX_RANGES
13437 with richloc->get_num_locations ().
13438 (layout::calculate_line_spans): Replace use of
13439 rich_location::MAX_RANGES with m_layout_ranges.length ().
13440 (layout::print_annotation_line): Handle arbitrary numbers of
13441 ranges in caret-printing by defaulting to '^'.
13442 (selftest::test_one_liner_many_fixits): New function.
13443 (test_diagnostic_show_locus_one_liner): Call it.
13444 * diagnostic.c (diagnostic_initialize): Update for renaming
13445 of rich_location::MAX_RANGES to
13446 rich_location::STATICALLY_ALLOCATED_RANGES.
13447 * diagnostic.h (struct diagnostic_context): Likewise.
13448
13449 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13450
13451 * selftest.c (selftest::named_temp_file::named_temp_file): New
13452 ctor.
13453 (selftest::temp_source_file::~temp_source_file): Move to...
13454 (selftest::named_temp_file::~named_temp_file): ...here.
13455 (selftest::test_named_temp_file): New function.
13456 (selftest::selftest_c_tests): Call test_named_temp_file.
13457 * selftest.h (class named_temp_file): New class.
13458 (class temp_source_file): Convert to a subclass of named_temp_file.
13459
13460 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
13461
13462 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
13463 USEs of LR_REGNO in returns and sibcalls.
13464 (rs6000_output_mi_thunk): Similar.
13465 (rs6000_sibcall_aix): Similar.
13466 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
13467 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
13468 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
13469 Remove the USE of LR_REGNO from the patterns as well. Delete an
13470 obsolete comment.
13471 (return_internal_<mode>): Delete.
13472
13473 2016-08-30 Tamar Christina <tamar.christina@arm.com>
13474
13475 * config/aarch64/aarch64-simd.md
13476 (aarch64_ld2<mode>_dreg_le): New.
13477 (aarch64_ld2<mode>_dreg_be): New.
13478 (aarch64_ld2<mode>_dreg): Removed.
13479 (aarch64_ld3<mode>_dreg_le): New.
13480 (aarch64_ld3<mode>_dreg_be): New.
13481 (aarch64_ld3<mode>_dreg): Removed.
13482 (aarch64_ld4<mode>_dreg_le): New.
13483 (aarch64_ld4<mode>_dreg_be): New.
13484 (aarch64_ld4<mode>_dreg): Removed.
13485 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
13486
13487 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13488
13489 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
13490 redundant location param.
13491 (test_one_liner_fixit_remove): Likewise.
13492 (test_one_liner_fixit_replace): Likewise.
13493 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
13494 * gcc-rich-location.c
13495 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
13496 get_range_from_loc. Drop overload taking a const char *.
13497 * gcc-rich-location.h
13498 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
13499 a const char *.
13500
13501 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
13502
13503 * config/linux.c (linux_libc_has_function): Return true on musl.
13504
13505 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
13506
13507 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
13508
13509 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
13510
13511 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
13512 used for abnormal egdes.
13513
13514 2016-08-30 Jakub Jelinek <jakub@redhat.com>
13515
13516 PR tree-optimization/72866
13517 * tree-vect-patterns.c (search_type_for_mask): Turn into
13518 a small wrapper, move all code to ...
13519 (search_type_for_mask_1): ... this new function. Add caching
13520 and adjust recursive calls.
13521
13522 PR debug/77363
13523 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
13524 instead of lookup_type_die (type_main_variant (type)) even for array
13525 types.
13526
13527 PR middle-end/77377
13528 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
13529 constant pool reference return x instead of c.
13530
13531 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
13532
13533 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
13534 include MQ.
13535
13536 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13537
13538 * input.c
13539 (selftest::test_make_location_nonpure_range_endpoints): Fix
13540 header comment.
13541
13542 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13543
13544 * diagnostic-show-locus.c
13545 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
13546 function.
13547 (selftest::test_diagnostic_show_locus_one_liner): Call it.
13548 * input.c (get_pure_location): Move to libcpp/line-map.c.
13549 * input.h (get_pure_location): Convert decl to an inline function
13550 calling implementation in libcpp.
13551
13552 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
13553
13554 PR target/77403
13555 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
13556 template for intel asm dialect.
13557 (vec_set_hi_<mode><mask_name>): Ditto.
13558
13559 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13560
13561 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
13562 (selftest::fail_formatted): Likewise.
13563
13564 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13565
13566 * input.c (make_location): Call get_start and get_finish
13567 on the endpoints to avoid storing packed ranges or ad-hoc
13568 ranges in them.
13569 (selftest::test_make_location_nonpure_range_endpoints): New function.
13570 (selftest::input_c_tests): Call it.
13571 * input.h (get_start): New inline function.
13572
13573 2016-08-29 Tom de Vries <tom@codesourcery.com>
13574
13575 PR c/77398
13576 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
13577 with assert.
13578
13579 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
13580
13581 * Makefile.in (gcov-iov.h): Add dummy recipe.
13582
13583 2016-08-29 Nathan Sidwell <nathan@acm.org>
13584
13585 * config/nvptx/nvptx.c: #include tree-vrp.h.
13586
13587 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
13588
13589 PR target/77324
13590 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
13591 HIGH+LO construct during reload.
13592
13593 2016-08-28 Tom de Vries <tom@codesourcery.com>
13594
13595 PR lto/70955
13596 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
13597 'sysv_abi va_list' attribute.
13598 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
13599 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
13600 attributes.
13601
13602 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13603
13604 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
13605 * emit-rtl.c (unshare_all_rtl_1): Adjust.
13606 (unshare_all_rtl_again): Likewise.
13607 * function.c (assign_stack_local_1): Likewise.
13608 (assign_stack_temp_for_type): Likewise.
13609
13610 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13611
13612 * cfgbuild.c (make_edges): Adjust.
13613 * cfgrtl.c (can_delete_label_p): Likewise.
13614 * dwarf2cfi.c (create_trace_edges): Likewise.
13615 * except.c (sjlj_emit_dispatch_table): Likewise.
13616 * function.h (struct expr_status): make x_forced_labels a vector.
13617 * jump.c (rebuild_jump_labels_1): Adjust.
13618 * reload1.c (set_initial_label_offsets): Likewise.
13619 * stmt.c (force_label_rtx): Likewise.
13620 (expand_label): Likewise.
13621
13622 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13623
13624 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
13625
13626 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
13627
13628 PR tree-optimization/71077
13629 PR tree-optimization/68542
13630 * fold-const.c (fold_relational_const): Fix folding of
13631 VECTOR_CST comparisons that have a scalar boolean result type.
13632 (selftest::test_vector_folding): New static function.
13633 (selftest::fold_const_c_tests): Call it.
13634
13635 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
13636
13637 * doc/extend.texi (SPU Built-in Functions): Remove stale
13638 references to material formerly at IBM and Sony.
13639
13640 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
13641
13642 PR target/77349
13643 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
13644
13645 2016-08-26 David Malcolm <dmalcolm@redhat.com>
13646
13647 * diagnostic-show-locus.c
13648 (selftest::test_fixit_consolidation): New function.
13649 (selftest::diagnostic_show_locus_c_tests): Call it.
13650 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
13651 constructor based on source_range.
13652
13653 2016-08-26 David Malcolm <dmalcolm@redhat.com>
13654
13655 * diagnostic-color.c (color_dict): Add "fixit-insert" and
13656 "fixit-delete".
13657 (parse_gcc_colors): Update description of default GCC_COLORS.
13658 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
13659 (colorizer::set_fixit_insert): New method.
13660 (colorizer::set_fixit_delete): New method.
13661 (colorizer::get_color_by_name): New method.
13662 (colorizer::STATE_FIXIT_INSERT): New constant.
13663 (colorizer::STATE_FIXIT_DELETE): New constant.
13664 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
13665 fields in favor of new field "m_stop_color". Add fields
13666 "m_fixit_insert" and "m_fixit_delete".
13667 (colorizer::colorizer): Update for above changes. Replace
13668 colorize_start calls with calls to get_color_by_name.
13669 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
13670 STATE_FIXIT_DELETE. Update for field renamings.
13671 (colorizer::finish_state): Simplify by using m_stop_color,
13672 rather than multiple identical "*_ce" fields.
13673 (colorizer::get_color_by_name): New method.
13674 (layout::print_any_fixits): Print insertions and replacements
13675 using the "fixit-insert" color, and deletions using the
13676 "fixit-delete" color.
13677 * doc/invoke.texi (-fdiagnostics-color): Update description of
13678 default GCC_COLORS, and of the supported capabilities.
13679
13680 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
13681
13682 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
13683 current_function_static_stack_size variable with the static
13684 stack frame size of the current function when
13685 flag_stack_usage_info is enabled.
13686
13687 2016-08-26 Nathan Sidwell <nathan@acm.org>
13688
13689 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
13690 assignment inside if condition.
13691
13692 2016-08-26 Richard Biener <rguenther@suse.de>
13693
13694 PR tree-optimization/69047
13695 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
13696 extracts similar to what FRE does.
13697 (non_rewritable_mem_ref_base): Likewise.
13698
13699 2016-08-26 Joseph Myers <joseph@codesourcery.com>
13700
13701 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
13702 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
13703 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13704 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13705 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
13706 Likewise.
13707 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13708 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13709 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13710 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
13711 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13712
13713 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13714
13715 PR target/70473
13716 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
13717 reservation duration to 15 cycles.
13718 (cortex_a8_vfp_macs): Likewise.
13719 (cortex_a8_vfp_macd): Likewise.
13720 (cortex_a8_vfp_divs): Likewise.
13721 (cortex_a8_vfp_divd): Likewise.
13722
13723 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13724
13725 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
13726 (aarch_macro_fusion_pair_p): Use above to avoid early return.
13727
13728 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13729 Martin Jambhor <mjambor@suse.cz>
13730
13731 * common.opt: New option -fipa-bit-cp.
13732 * doc/invoke.texi: Document -fipa-bit-cp.
13733 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
13734 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
13735 * tree-ssa-ccp.h: New header file.
13736 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
13737 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
13738 Replace all occurences of tree parameter by two new params: signop, int.
13739 (bit_value_unop_1): Change to bit_value_unop and export it.
13740 Replace all occurences of tree parameter by two new params: signop,
13741 int.
13742 (bit_value_binop): Change call from bit_value_binop_1 to
13743 bit_value_binop.
13744 (bit_value_assume_aligned): Likewise.
13745 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
13746 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
13747 to ccp_finalize.
13748 (ccp_finalize): Skip processing if val->mask == 0.
13749 * ipa-cp.c: Include tree-ssa-ccp.h
13750 (ipcp_bits_lattice): New class.
13751 (ipcp_param_lattice (bits_lattice): New member.
13752 (print_all_lattices): Call ipcp_bits_lattice::print.
13753 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
13754 (initialize_node_lattices): Likewise.
13755 (propagate_bits_accross_jump_function): New function.
13756 (propagate_constants_accross_call): Call
13757 propagate_bits_accross_jump_function.
13758 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
13759 (ipcp_store_bits_results): New function.
13760 (ipcp_driver): Call ipcp_store_bits_results.
13761 * ipa-prop.h (ipa_bits): New struct.
13762 (ipa_jump_func): Add new member bits of type ipa_bits.
13763 (ipa_param_descriptor): Change decl to decl_or_type.
13764 (ipa_get_param): Change decl to decl_or_type and assert on
13765 PARM_DECL.
13766 (ipa_get_type): New function.
13767 (ipcp_transformation_summary): New member bits.
13768 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
13769 (ipa_populate_param_decls): Likewise.
13770 (ipa_dump_param): Likewise.
13771 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
13772 function.
13773 (ipa_set_jf_unknown): Set ipa_bits::known to false.
13774 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
13775 propagation.
13776 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
13777 (ipa_write_jump_function): Add streaming for ipa_bits.
13778 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
13779 (write_ipcp_transformation_info): Add streaming for ipa_bits
13780 summary for ltrans.
13781 (read_ipcp_transfomration_info): Add support for reading streamed
13782 ipa_bits.
13783 (ipcp_update_bits): New function.
13784 (ipcp_transform_function): Call ipcp_update_bits.
13785
13786 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
13787
13788 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
13789 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
13790
13791 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
13792
13793 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
13794
13795 2016-08-25 Richard Biener <rguenther@suse.de>
13796
13797 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
13798 Only add locations in late dwarf.
13799 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
13800 (dwarf2out_early_finish): But do it here.
13801
13802 2016-08-24 Michael Collison <michael.collison@linaro.org>
13803 Michael Collison <michael.collison@arm.com>
13804
13805 * config/arm/arm-modes.def: Add new condition code mode CC_V
13806 to represent the overflow bit.
13807 * config/arm/arm.c (maybe_get_arm_condition_code):
13808 Add support for CC_Vmode.
13809 (arm_gen_unlikely_cbranch): New function to generate common
13810 rtl conditional branches for overflow patterns.
13811 * config/arm/arm-protos.h: Add prototype for
13812 arm_gen_unlikely_cbranch.
13813 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
13814 addsi3_compareV_upper): New patterns to support signed
13815 builtin overflow add operations.
13816 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
13817 New patterns to support unsigned builtin add overflow operations.
13818 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
13819 builtin overflow subtract operations,
13820 (usubv<mode>4): New patterns to support unsigned builtin subtract
13821 overflow operations.
13822 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
13823 to support builtin overflow negate operations.
13824
13825 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13826
13827 Revert
13828 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13829
13830 * explow.c (get_dynamic_stack_size): Take known alignment of stack
13831 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
13832 needed.
13833
13834 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13835
13836 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
13837 MULTILIB_OPTIONS should be used. Small wording fixes.
13838 * genmultilib: Memorize set of all option combinations in
13839 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
13840 found in MULTILIB_OPTIONS by checking if option set is listed in
13841 combination_space. Output new and existing error message to stderr.
13842
13843 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13844
13845 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
13846 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
13847 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
13848 (MULTILIB_REUSE): Remove reuse rules for option set including
13849 -mfpu=fp-armv8 and -mfpu=vfpv4
13850
13851 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
13852
13853 * config/arm/t-rtems: Add vfp multilib.
13854
13855 2016-08-23 Ian Lance Taylor <iant@golang.org>
13856
13857 * config/s390/s390.c (s390_asm_file_start): Call
13858 default_file_start.
13859
13860 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13861
13862 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
13863 initialization of all 0's to the 0 constant, instead of directly
13864 generating XOR. Add support for V4SImode vector initialization on
13865 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
13866 initialization. Change variables used in V4SFmode vector
13867 intialization. For V4SFmode vector splat on ISA 3.0, make sure
13868 any memory addresses are in index form. Add support for using
13869 VSPLTH/VSPLTB to initialize vector short and vector char vectors
13870 with all of the same element.
13871 (regno_or_subregno): New helper function to return a register
13872 number for either REG or SUBREG.
13873 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
13874 Use regno_or_subregno where possible.
13875 (rs6000_split_v4si_init_di_reg): New helper function to build up a
13876 DImode value from two SImode values in order to generate V4SImode
13877 vector initialization on 64-bit systems with direct move.
13878 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
13879 initialization.
13880 (rtx_is_swappable_p): V4SImode vector initialization insn is not
13881 swappable.
13882 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
13883 declaration.
13884 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
13885 attributes to initialize V8HImode and V16QImode vectors with the
13886 same element.
13887 (VSX_SPLAT_COUNT): Likewise.
13888 (VSX_SPLAT_SUFFIX): Likewise.
13889 (UNSPEC_VSX_VEC_INIT): New unspec.
13890 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
13891 Allow SFmode values to come from Altivec registers.
13892 (vsx_init_v4si): New insn/split for V4SImode vector initialization
13893 on 64-bit systems with direct move.
13894 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
13895 vector initializations, to allow V4SImode vector initializations
13896 on 64-bit systems with direct move.
13897 (vsx_splat_v4si): Likewise.
13898 (vsx_splat_v4si_di): Likewise.
13899 (vsx_splat_v4sf): Likewise.
13900 (vsx_splat_v4sf_internal): Likewise.
13901 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
13902 register classes.
13903 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
13904 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
13905 initializing V8HImode and V16QImode vectors with the same
13906 element.
13907 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
13908 optimization if -maltivec=be.
13909
13910 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
13911
13912 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
13913 attribute for alternatives 3 and 4.
13914
13915 2016-08-23 David Malcolm <dmalcolm@redhat.com>
13916
13917 * selftest.c (selftest::assert_str_contains): New function.
13918 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
13919 * selftest.h (selftest::assert_str_contains): New decl.
13920 (ASSERT_STR_CONTAINS): New macro.
13921
13922 2016-08-23 Richard Biener <rguenther@suse.de>
13923
13924 PR tree-optimization/77286
13925 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
13926 the CFG here.
13927 (vect_transform_loop): Split exit edges of loop and scalar
13928 loop if required and at the appropriate time.
13929
13930 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13931
13932 * explow.c (get_dynamic_stack_size): Take known alignment of stack
13933 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
13934 needed.
13935 Correct a typo in a comment.
13936
13937 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13938
13939 * config/s390/s390.md ("*andc_split"): New splitter for and with
13940 complement.
13941
13942 2016-08-23 Richard Biener <rguenther@suse.de>
13943
13944 PR tree-optimization/27336
13945 * tree-vrp.c (infer_value_range): Handle stmts that can throw
13946 by looking for a non-EH edge.
13947 (process_assert_insertions_for): Likewise.
13948
13949 2016-08-23 Richard Biener <rguenther@suse.de>
13950
13951 PR middle-end/77305
13952 * statistics.c (statistics_counter_event): Robustify against
13953 NULL current_pass.
13954
13955 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13956
13957 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
13958 for targets amdfam10 and barcelona.
13959
13960 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
13961
13962 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
13963 (zero_extend<mode>di2): Ditto.
13964 (*zero_extend<mode>si2): Ditto.
13965 (*zero_extendqihi2): Ditto.
13966
13967 2016-08-22 Joseph Myers <joseph@codesourcery.com>
13968
13969 PR middle-end/77269
13970 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
13971 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
13972
13973 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
13974
13975 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
13976 identical consecutive elements.
13977 [SSA_NAME]: Print the name's def stmt on its own line. When printing
13978 the node's def stmt, avoid printing an unwanted trailing newline by
13979 replacing the call to print_gimple_stmt() with its inlined body and
13980 adjusting it to not set pp_needs_newline and to call pp_flush()
13981 instead of pp_newline_and_flush().
13982
13983 2016-08-22 Joseph Myers <joseph@codesourcery.com>
13984
13985 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
13986 (float32_type_node, float64_type_node, float32x_type_node)
13987 (float128x_type_node): New macros.
13988 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
13989 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
13990 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
13991 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
13992 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
13993 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
13994 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
13995 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
13996 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
13997 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
13998 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
13999 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
14000 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
14001 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
14002 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
14003 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
14004 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
14005 (copysign, fabs, huge_val, inf, nan, nans): Use it.
14006 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
14007 and copysign.
14008 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
14009 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
14010 * doc/extend.texi (Other Builtins): Document these built-in
14011 functions.
14012 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
14013 for nan and nans.
14014
14015 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
14016
14017 * doc/install.texi (Binaries): www.opencsw.org now uses https.
14018
14019 2016-08-22 Richard Biener <rguenther@suse.de>
14020
14021 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
14022
14023 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
14024
14025 PR target/77270
14026 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
14027 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
14028 non-SSE2 athlons only, otherwise prefer SSE prefetches.
14029
14030 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14031
14032 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
14033 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
14034 (vrp_visit_switch_stmt): Likewise.
14035 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
14036 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
14037 (vrp_visit_stmt): Use extract_range_from_stmt.
14038 (vrp_visit_phi_node): Use extract_range_from_phi_node.
14039
14040 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14041
14042 * Makefile.in: Add tree-vrp.h to GTFILES.
14043 * gengtype.c (open_base_files): Add tree-vrp.h.
14044 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
14045 * builtins.c: Likewise.
14046 * fold-const.c: Likewise.
14047 * gimple-builder.c: Likewise.
14048 * gimple-laddress.c: Likewise.
14049 * hsa-gen.c: Likewise.
14050 * internal-fn.c: Likewise.
14051 * ssa.h: Likewise.
14052 * targhooks.c: Liewise,
14053 * tree-ssa-address.c: Likewise.
14054 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
14055 * tree-vrp.c (struct value_range): Move to tree-vrp.h
14056 * tree-vrp.h: New file.
14057
14058 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14059
14060 PR tree-optimization/61839
14061 * tree-vrp.c (two_valued_val_range_p): New.
14062 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
14063 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
14064 Also Convert VAR BINOP CST where VAR is two-valued to
14065 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
14066
14067 2016-08-19 David Malcolm <dmalcolm@redhat.com>
14068
14069 * diagnostic-show-locus.c
14070 (layout::annotation_line_showed_range_p): New method.
14071 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
14072 Reimplement case fixit_hint::REPLACE to cover removals, and
14073 replacements where the range of the replacement isn't one
14074 of the ranges in the rich_location.
14075 (test_one_liner_fixit_replace): Likewise.
14076 (selftest::test_one_liner_fixit_replace_non_equal_range): New
14077 function.
14078 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
14079 New function.
14080 (selftest::test_diagnostic_show_locus_one_liner): Call the new
14081 functions.
14082 * diagnostic.c (print_parseable_fixits): Remove case
14083 fixit_hint::REMOVE.
14084
14085 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
14086
14087 PR target/77270
14088 * config/i386/i386.c (ix86_option_override_internal): Remove
14089 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
14090 Enable SSE prefetch also for TARGET_PREFETCHWT1.
14091 Do not try to enable TARGET_PRFCHW ISA flag here.
14092 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
14093 Rewrite expander function body.
14094 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
14095
14096 2016-08-19 Joseph Myers <joseph@codesourcery.com>
14097
14098 PR c/32187
14099 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
14100 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
14101 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
14102 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
14103 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
14104 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
14105 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
14106 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
14107 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
14108 tree_index values.
14109 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
14110 macros.
14111 (struct floatn_type_info): New structure type.
14112 (floatn_nx_types): New variable declaration.
14113 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
14114 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
14115 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
14116 * tree.c (floatn_nx_types): New variable.
14117 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
14118 corresponding complex types.
14119 * target.def (floatn_mode): New hook.
14120 * targhooks.c: Include "real.h".
14121 (default_floatn_mode): New function.
14122 * targhooks.h (default_floatn_mode): New prototype.
14123 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
14124 types.
14125 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
14126 effective-target and dg-add-options keywords.
14127 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
14128 Document new effective-target keywords.
14129 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
14130 * doc/tm.texi: Regenerate.
14131 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
14132 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
14133 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
14134 18661-3.
14135 * real.h (struct real_format): Add field ieee_bits.
14136 * real.c (ieee_single_format, mips_single_format)
14137 (motorola_single_format, spu_single_format, ieee_double_format)
14138 (mips_double_format, motorola_double_format)
14139 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
14140 (ieee_extended_intel_128_format)
14141 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
14142 (mips_extended_format, ieee_quad_format, mips_quad_format)
14143 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
14144 (decimal_double_format, decimal_quad_format, ieee_half_format)
14145 (arm_half_format, real_internal_format: Initialize ieee_bits
14146 field.
14147 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
14148 float128_type_node. Set float80_type_node to float64x_type_node
14149 if appropriate and long_double_type_node not appropriate.
14150 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
14151 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
14152 Initialize ieee_bits field.
14153 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
14154 (rs6000_init_builtins): Set ieee128_float_type_node to
14155 float128_type_node.
14156 (rs6000_floatn_mode): New function.
14157
14158 2016-08-19 Jakub Jelinek <jakub@redhat.com>
14159
14160 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
14161 _rdseed64_step): Uglify argument names and/or local variable names
14162 in inline functions.
14163 * config/i386/rtmintrin.h (_xabort): Likewise.
14164 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
14165 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
14166 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
14167 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
14168 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
14169 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
14170 _mm_maskz_ternarylogic_epi32): Likewise.
14171 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
14172 __lwpins32, __lwpins64): Likewise.
14173 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
14174 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
14175 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
14176 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
14177 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
14178 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
14179 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
14180 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
14181 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
14182 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
14183 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
14184 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
14185 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
14186 _mm256_mask_i64gather_epi32): Likewise.
14187 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
14188 * config/i386/ia32intrin.h (__writeeflags): Likewise.
14189 * config/i386/pkuintrin.h (_wrpkru): Likewise.
14190 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
14191 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
14192 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
14193 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
14194 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
14195 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
14196 _mm512_mask_prefetch_i64scatter_ps): Likewise.
14197 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
14198 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
14199 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
14200 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
14201 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
14202 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
14203 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
14204 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
14205
14206 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
14207 returning void.
14208 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
14209 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
14210 Likewise.
14211 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
14212 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
14213 function name.
14214 (_rdpkru_u32): Add space after function name.
14215
14216 * config/i386/t-i386 (i386-c.o): Don't depend on
14217 i386-builtin-types.inc.
14218 (i386.o): Depend on i386-builtin-types.inc.
14219
14220 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
14221
14222 PR target/77281
14223 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
14224 Use const_vec_duplicate to check for duplicated elements.
14225
14226 2016-08-19 Richard Biener <rguenther@suse.de>
14227
14228 PR tree-optimization/77290
14229 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14230 Fix flag_tree_parallelize_loops check.
14231
14232 2016-08-19 Richard Biener <rguenther@suse.de>
14233
14234 * match.pd (x | 0 -> x): Add.
14235
14236 2016-08-19 Richard Biener <rguenther@suse.de>
14237
14238 PR tree-optimization/77286
14239 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
14240 Deal with virtual PHIs being out-of-order.
14241
14242 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14243
14244 * doc/invoke.texi (fverbose-asm): Note that source code lines
14245 are emitted, and provide an example.
14246 * final.c (asm_show_source): New function.
14247 (final_scan_insn): Call asm_show_source.
14248
14249 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14250
14251 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
14252 param with diagnostic_kind.
14253 (class colorizer): Similarly replace field m_diagnostic with
14254 m_diagnostic_kind.
14255 (colorizer::colorizer): Replace diagnostic
14256 param with diagnostic_kind.
14257 (colorizer::begin_state): Update for above field change.
14258 (layout::layout): Replace diagnostic param with rich_location *
14259 and diagnostic_kind.
14260 (diagnostic_show_locus): Replace diagnostic param with richloc
14261 and diagnostic_kind.
14262 (class selftest::test_diagnostic_context): New class.
14263 (selftest::test_diagnostic_show_locus_unknown_location): New
14264 function.
14265 (selftest::test_one_liner_simple_caret): New function.
14266 (selftest::test_one_liner_caret_and_range): New function.
14267 (selftest::test_one_liner_multiple_carets_and_ranges): New
14268 function.
14269 (selftest::test_one_liner_fixit_remove): New function.
14270 (selftest::test_one_liner_fixit_replace): New function.
14271 (selftest::test_diagnostic_show_locus_one_liner): New function.
14272 (selftest::diagnostic_show_locus_c_tests): Call the new test
14273 functions.
14274 * diagnostic.c (diagnostic_initialize): Initialize
14275 colorize_source_p, show_ruler_p and parseable_fixits_p.
14276 (default_diagnostic_finalizer): Update for change to
14277 diagnostic_show_locus.
14278 (diagnostic_append_note): Likewise.
14279 * diagnostic.h (diagnostic_show_locus): Replace
14280 const diagnostic_info * param with location * and diagnostic_t.
14281
14282 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14283
14284 * input.c (saved_line_table): New global.
14285 (class selftest::temp_line_table): Rename to line_table_test and
14286 move declaration to selftest.h, and drop field m_old_line_table.
14287 (selftest::temp_line_table::temp_line_table): Rename ctor to...
14288 (selftest::line_table_test::line_table_test): ...this. Add a
14289 default ctor. Store current value of line_table within
14290 saved_line_table.
14291 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
14292 (selftest::line_table_test::~line_table_test): ...this, and
14293 restore line_table from the saved_line_table, rather than
14294 m_old_line_table.
14295 (selftest::test_accessing_ordinary_linemaps): Update for above
14296 renaming.
14297 (selftest::test_lexer): Likewise.
14298 (struct selftest::lexer_test): Likewise.
14299 (selftest::lexer_test::lexer_test): Likewise.
14300 (selftest::input_c_tests): Move the looping over test cases from
14301 here into...
14302 (selftest::for_each_line_table_case): New function.
14303 * input.h (saved_line_table): New decl.
14304 * selftest.h (struct selftest::line_table_case): New forward decl.
14305 (class selftest::line_table_test): New class, moved here from
14306 selftest::temp_line_table in input.c, and renamed.
14307 (selftest::for_each_line_table_case): New decl.
14308
14309 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
14310
14311 PR target/72839
14312 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
14313
14314 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
14315
14316 PR middle-end/70895
14317 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
14318 enclosing parallel construct for reduction variables on OpenACC loop
14319 directives.
14320
14321 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
14322
14323 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
14324 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
14325 -gdwarf-3.
14326 (function_to_dwarf_procedure): Update comment.
14327
14328 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14329
14330 * input.c (diagnostics_file_cache_forcibly_evict_file): New
14331 function.
14332 * input.h (diagnostics_file_cache_forcibly_evict_file): New
14333 declaration.
14334 * selftest.c (selftest::temp_source_file::~temp_source_file):
14335 Evict m_filename from the diagnostic file cache.
14336
14337 2016-08-18 Richard Biener <rguenther@suse.de>
14338
14339 * tree-pass.h (make_pass_materialize_all_clones): Declare.
14340 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
14341 make_pass_materialize_all_clones): New simple IPA pass encapsulating
14342 clone materialization.
14343 * passes.def (all_late_ipa_passes): Start with
14344 pass_materialize_all_clones.
14345 * cgraphunit.c (symbol_table::compile): Remove call to
14346 materialize_all_clones.
14347 * tree-into-ssa.c: Include statistics.h.
14348 (update_ssa): Count number of times we do incremental/rewrite
14349 SSA update.
14350
14351 2016-08-18 Richard Biener <rguenther@suse.de>
14352
14353 PR tree-optimization/77282
14354 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14355 When doing auto-parallelizing also prevent use of PHIs that
14356 carry dependences across loop backedges.
14357
14358 2016-08-18 Tamar Christina <tamar.christina@arm.com>
14359 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14360
14361 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
14362
14363 2016-08-18 Richard Biener <rguenther@suse.de>
14364
14365 * ssa-iterators.h (ssa_vuse_operand): New inline.
14366 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
14367 (predicate_all_scalar_phis): Use remove_phi_node to remove
14368 phi nodes predicated. Delay removing virtual PHIs.
14369 (predicate_mem_writes): Update virtual operands.
14370 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
14371 (tree_if_conversion): Do not rewrite virtual SSA form.
14372 * tree-phinodes.c (release_phi_node): Make static.
14373 * tree-phinodes.h (release_phi_node): Remove.
14374
14375 2016-08-18 Jakub Jelinek <jakub@redhat.com>
14376
14377 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
14378 codes that appear in bdesc_* arrays, instead include i386-builtin.def
14379 twice to define those.
14380 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
14381 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
14382 bdesc_multi_arg): Define by including i386-builtin.def the third time.
14383 * config/i386/i386-builtin.def: New file.
14384
14385 2016-08-17 David Malcolm <dmalcolm@redhat.com>
14386
14387 * input.c (get_source_range_for_char): Rename to...
14388 (selftest::get_source_range_for_char): ...this, and move within
14389 the #if CHECKING_P guard.
14390 (get_num_source_ranges_for_substring): Rename to...
14391 (selftest::get_num_source_ranges_for_substring): ...this, move
14392 within the #if CHECKING_P guard, and make static.
14393 (selftest::assert_num_substring_ranges): Initialize
14394 actual_num_ranges.
14395
14396 2016-08-18 Alan Modra <amodra@gmail.com>
14397
14398 PR rtl-optimization/72771
14399 * reload.c (find_reloads): Don't assume that a subreg mem is OK
14400 when find_reloads_toplev returns address_reloaded==-1.
14401 (alternative_allows_const_pool_ref): Update comment.
14402
14403 2015-08-17 Alan Hayward <alan.hayward@arm.com>
14404
14405 PR tree-optimization/71752
14406 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
14407 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
14408
14409 2016-08-17 Jakub Jelinek <jakub@redhat.com>
14410
14411 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
14412 instead of testing ECF_NORETURN bit in gimple_call_flags.
14413 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
14414 * predict.c (tree_bb_level_predictions): Likewise.
14415 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
14416
14417 PR middle-end/77259
14418 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
14419 turning a call into __builtin_unreachable-like noreturn call, adjust
14420 gimple_call_set_fntype.
14421 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
14422 gimple_call_fntype has void return type.
14423
14424 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
14425
14426 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
14427 maybe_lookup_decl, to handle nested acc loop directives.
14428
14429 2016-08-17 Richard Biener <rguenther@suse.de>
14430
14431 PR tree-optimization/76490
14432 * tree-vrp.c (update_value_range): Preserve overflow infinities
14433 when intersecting with ranges from get_range_info.
14434 (operand_less_p): Handle overflow infinities correctly.
14435 (value_range_constant_singleton): Use vrp_operand_equal_p
14436 to handle overflow max/min correctly.
14437 (vrp_valueize): Likewise.
14438 (union_ranges): Likewise.
14439 (intersect_ranges): Likewise.
14440 (vrp_visit_phi_node): Improve iteration limitation to only
14441 apply when we'll possibly re-visit the PHI via a changed argument
14442 on the backedge.
14443
14444 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
14445
14446 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
14447 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
14448 rather than those that should not be built.
14449
14450 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
14451
14452 PR target/66488
14453 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
14454
14455 2016-08-17 Richard Biener <rguenther@suse.de>
14456
14457 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
14458 (verify_vssa): New function verifying virtual SSA form.
14459 (verify_ssa): Call it.
14460 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
14461 Do not apply loop-closed SSA handling to virtuals.
14462 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
14463 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
14464 when rewriting their symbol.
14465 (prepare_def_site_for): Likewise.
14466 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
14467 operands of moved stmts.
14468
14469 2016-08-17 Richard Biener <rguenther@suse.de>
14470
14471 PR tree-optimization/23855
14472 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
14473 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
14474 find guards to hoist. Do not update SSA form but rewrite virtuals
14475 into loop closed SSA.
14476 (find_loop_guard): Adjust to skip already hoisted guards. Do
14477 not mark virtuals for renaming or update SSA form.
14478
14479 2016-08-17 Martin Liska <mliska@suse.cz>
14480
14481 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
14482 a LONG_LONG_TYPE_SIZE comparison.
14483 * gcov-io.h: Remove macro definitions.
14484 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
14485 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
14486 comparison.
14487
14488 2016-08-16 Jakub Jelinek <jakub@redhat.com>
14489
14490 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
14491 that builtins not mentioned in bdesc_* arrays come first, then
14492 the ones mentioned in bdesc_* arrays in the order they appear in
14493 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
14494 IX86_BUILTIN__BDESC_*_LAST enumerator.
14495 (bdesc_mpx): Fix up a comment typo.
14496 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
14497 __builtin_ia32_vpcomneu[bwdq] builtins.
14498 (BDESC_VERIFY, BDESC_VERIFYS): Define.
14499 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
14500 enum ix86_builtins ordering.
14501 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
14502 for direct bdesc_* array member access instead of searching all the
14503 arrays until an fcode match is found.
14504
14505 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
14506
14507 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
14508 pattern as define_insn_and_split. Split insn before reload to
14509 ashl<mode>3_1.
14510 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
14511 <shift_insn><mode>3_1.
14512 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
14513 <rotate_insn><mode>3_1.
14514
14515 2016-08-16 David Malcolm <dmalcolm@redhat.com>
14516
14517 PR c/72857
14518 * input.c (get_source_range_for_substring): Rename to...
14519 (get_source_location_for_substring): ...this, adding param
14520 "caret_idx", and converting output param from source_range * to
14521 location_t *.
14522 (get_source_range_for_char): New function.
14523 (get_num_source_ranges_for_substring): Update comment to reflect
14524 above renaming.
14525 (assert_char_at_range): Update to use get_source_range_for_char
14526 rather than get_source_range_for_substring.
14527 (test_lexer_string_locations_concatenation_2): Likewise.
14528 * substring-locations.h (get_source_range_for_substring): Rename
14529 to...
14530 (get_source_location_for_substring): ...this, and adding param
14531 "caret_idx", and converting output param from source_range * to
14532 location_t *.
14533
14534 2016-08-16 David Malcolm <dmalcolm@redhat.com>
14535
14536 * input.c (class selftest::temp_source_file): Move to
14537 selftest.h.
14538 (selftest::temp_source_file::temp_source_file): Move to
14539 selftest.c.
14540 (selftest::temp_source_file::~temp_source_file): Likewise.
14541 * selftest.c (selftest::temp_source_file::temp_source_file): Move
14542 here from input.c.
14543 (selftest::temp_source_file::~temp_source_file): Likewise.
14544 * selftest.h (class selftest::temp_source_file): Move here from
14545 input.c
14546
14547 2016-08-16 Jakub Jelinek <jakub@redhat.com>
14548
14549 PR target/71910
14550 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
14551 inlining, add cgraph edge for the added __builtin_unreachable call.
14552
14553 PR middle-end/67485
14554 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
14555 only cast it to SHWI for the final comparison.
14556
14557 2016-08-16 Martin Liska <mliska@suse.cz>
14558
14559 PR gcov-profile/36412
14560 * doc/gcov.texi: Document --hash-filenames(-x).
14561 * gcov.c (print_usage): Add the option.
14562 (process_args): Process the option, sort options alphabetically.
14563 (md5sum_to_hex): New function.
14564 (make_gcov_file_name): Do the md5sum and append it to a
14565 filename.
14566
14567 2016-08-16 Bin Cheng <bin.cheng@arm.com>
14568
14569 PR tree-optimization/69848
14570 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
14571 and swtich operands to avoid additional NOT instruction.
14572 (vcond<v_cmp_mixed><mode>): Ditto.
14573 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
14574
14575 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
14576
14577 * doc/install.texi (*-*-solaris2*): Adjust latest change.
14578
14579 2016-08-16 Richard Biener <rguenther@suse.de>
14580
14581 PR tree-optimization/76783
14582 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
14583 BB visited flags at start.
14584
14585 2016-08-16 Bin Cheng <bin.cheng@arm.com>
14586
14587 PR tree-optimization/72817
14588 PR tree-optimization/73450
14589 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
14590 multiple_of_p for adjusted IV.base.
14591
14592 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
14593
14594 PR target/72867
14595 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
14596 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
14597 for !flag_finite_math_only or flag_signed_zeros.
14598 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
14599 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
14600 depend on flag_finite_math_only.
14601 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
14602 New insn pattern.
14603 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
14604 (*ieee_smin<mode>3): Ditto.
14605 (*ieee_smax<mode>3): Ditto.
14606 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
14607 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
14608 flag_signed_zeros.
14609 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
14610 depend on flag_finite_math_only.
14611 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
14612 (*mmx_<code>v2sf3): Remove.
14613 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
14614 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
14615 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
14616
14617 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
14618
14619 PR rtl-optimization/73650
14620 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
14621 it is not a simple move.
14622
14623 2016-08-15 Martin Liska <mliska@suse.cz>
14624
14625 PR driver/72765
14626 * gcc.c (do_spec_1): Call save_string with the right size.
14627 (save_string): Do an assert about string we copy.
14628
14629 2016-08-15 Richard Biener <rguenther@suse.de>
14630
14631 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
14632 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
14633 TV_MACH_DEP.
14634 (pass_data_stv): Likewise.
14635
14636 2016-08-15 Richard Biener <rguenther@suse.de>
14637
14638 PR tree-optimization/73434
14639 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
14640 TBAA info on the base when forwarding a non-invariant address.
14641
14642 2016-08-15 Jakub Jelinek <jakub@redhat.com>
14643
14644 * dwarf2out.c (struct checksum_attributes): Add
14645 at_string_length_bit_size and at_string_length_byte_size fields.
14646 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
14647 and DW_AT_string_length_byte_size.
14648 (die_checksum_ordered): Handle at_string_length_bit_size and
14649 at_string_length_byte_size.
14650 (gen_array_type_die): For dwarf_version >= 5 emit
14651 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
14652 (adjust_string_types): For dwarf_version >= 5 remove
14653 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
14654 (resolve_addr): Likewise.
14655
14656 PR debug/71906
14657 * dwarf2out.c (string_types): New variable.
14658 (gen_array_type_die): Change early_dwarf handling of
14659 DW_AT_string_length, create DW_OP_call4 referencing the
14660 length var temporarily. Handle parameters that are pointers
14661 to string length.
14662 (adjust_string_types): New function.
14663 (gen_subprogram_die): Temporarily set string_types to local var,
14664 call adjust_string_types if needed.
14665 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
14666 New functions.
14667 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
14668
14669 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
14670
14671 * doc/install.texi (*-*-solaris2*): Fix version number and document
14672 requirement on GNU make for building libjava with the Solaris linker.
14673
14674 2016-08-15 Martin Liska <mliska@suse.cz>
14675 Jakub Jelinek <jakub@redhat.com>
14676
14677 PR tree-optimization/72824
14678 * tree-loop-distribution.c (const_with_all_bytes_same)
14679 <case VECTOR_CST>: Fix a typo.
14680
14681 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
14682
14683 PR target/76342
14684 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
14685 Renamed from _mm512_undefined_si512.
14686 (_mm_undefined_si512): New definition.
14687
14688 2016-08-13 Richard Biener <rguenther@suse.de>
14689
14690 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
14691 into PHIs and update the lattice for its def.
14692
14693 2016-08-12 Jakub Jelinek <jakub@redhat.com>
14694
14695 PR c/71512
14696 * ubsan.c (instrument_si_overflow): Pass true instead of false
14697 to gsi_replace.
14698 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
14699 of bbs. Return TODO_cleanup_cfg if any returned true.
14700
14701 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14702
14703 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
14704 ISA 3.0 MTVSRDD instruction.
14705 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
14706 vecperm.
14707
14708 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
14709
14710 PR tree-optimization/71083
14711 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
14712 bitfield access when possible.
14713
14714 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
14715
14716 PR middle-end/71654
14717 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
14718 sign-changing cast from a shorter unsigned type to a wider
14719 signed type.
14720
14721 2016-08-12 Jakub Jelinek <jakub@redhat.com>
14722
14723 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
14724 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
14725 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
14726
14727 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14728
14729 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
14730 Correct costs for vec_construct.
14731
14732 2016-08-12 Bin Cheng <bin.cheng@arm.com>
14733
14734 PR tree-optimization/69848
14735 * tree-vectorizer.h (enum vect_def_type): New condition reduction
14736 type CONST_COND_REDUCTION.
14737 * tree-vect-loop.c (vectorizable_reduction): Support new condition
14738 reudction type CONST_COND_REDUCTION.
14739
14740 2016-08-12 Richard Biener <rguenther@suse.de>
14741
14742 PR tree-optimization/57326
14743 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
14744 returning an SSA name.
14745 (phi_translate_1): When fully_constant_expression returns a NAME
14746 make sure we have a leader for it.
14747
14748 2016-08-12 Martin Liska <mliska@suse.cz>
14749 Adam Fineman <afineman@afineman.com>
14750
14751 * gcov.c (process_file): Create .gcov file when .gcda
14752 file is missing.
14753
14754 2016-08-12 Marek Polacek <polacek@redhat.com>
14755
14756 PR c/7652
14757 * alias.c (find_base_value): Adjust fall through comment.
14758 * cfgexpand.c (expand_debug_expr): Likewise.
14759 * combine.c (find_split_point): Likewise.
14760 (expand_compound_operation): Likewise. Add FALLTHRU.
14761 (make_compound_operation): Adjust fall through comment.
14762 (canon_reg_for_combine): Add FALLTHRU.
14763 (force_to_mode): Adjust fall through comment.
14764 (simplify_shift_const_1): Likewise.
14765 (simplify_comparison): Likewise.
14766 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
14767 FALLTHRU.
14768 * config/aarch64/predicates.md: Likewise.
14769 * config/i386/i386.c (function_arg_advance_32): Likewise.
14770 (ix86_gimplify_va_arg): Likewise.
14771 (print_reg): Likewise.
14772 (ix86_print_operand): Likewise.
14773 (ix86_build_const_vector): Likewise.
14774 (ix86_expand_branch): Likewise.
14775 (ix86_sched_init_global): Adjust fall through comment.
14776 (ix86_expand_args_builtin): Add FALLTHRU.
14777 (ix86_expand_builtin): Likewise.
14778 (ix86_expand_vector_init_one_var): Likewise.
14779 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
14780 (rs6000_adjust_cost): Likewise.
14781 (insn_must_be_first_in_group): Likewise.
14782 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
14783 * dbxout.c (dbxout_symbol): Adjust fall through comment.
14784 * df-scan.c (df_uses_record): Likewise.
14785 * dojump.c (do_jump): Add FALLTHRU.
14786 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
14787 comment.
14788 (resolve_args_picking_1): Adjust fall through comment.
14789 (loc_list_from_tree_1): Likewise.
14790 * expmed.c (make_tree): Likewise.
14791 * expr.c (expand_expr_real_2): Add FALLTHRU.
14792 (expand_expr_real_1): Likewise. Adjust fall through comment.
14793 * fold-const.c (const_binop): Adjust fall through comment.
14794 (fold_truth_not_expr): Likewise.
14795 (fold_cond_expr_with_comparison): Add FALLTHRU.
14796 (fold_binary_loc): Likewise.
14797 (contains_label_1): Adjust fall through comment.
14798 (multiple_of_p): Likewise.
14799 * gcov-tool.c (process_args): Add FALLTHRU.
14800 * genattrtab.c (check_attr_test): Likewise.
14801 (write_test_expr): Likewise.
14802 * genconfig.c (walk_insn_part): Likewise.
14803 * genpreds.c (validate_exp): Adjust fall through comment.
14804 (needs_variable): Likewise.
14805 * gensupport.c (get_alternatives_number): Add FALLTHRU.
14806 (subst_dup): Likewise.
14807 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
14808 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
14809 (gimplify_scan_omp_clauses): Add FALLTHRU.
14810 (goa_stabilize_expr): Likewise.
14811 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
14812 through comment.
14813 * hsa-gen.c (get_address_from_value): Likewise.
14814 * ipa-icf.c (sem_function::hash_stmt): Likewise.
14815 * ira.c (ira_setup_alts): Add FALLTHRU.
14816 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
14817 comment.
14818 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
14819 * opts.c (common_handle_option): Likewise.
14820 * read-rtl.c (read_rtx_code): Likewise.
14821 * real.c (round_for_format): Likewise.
14822 * recog.c (asm_operand_ok): Likewise.
14823 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
14824 * reload1.c (set_label_offsets): Likewise.
14825 (eliminate_regs_1): Likewise.
14826 (reload_reg_reaches_end_p): Likewise.
14827 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
14828 (rtx_cost): Likewise.
14829 * sched-rgn.c (is_exception_free): Likewise.
14830 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
14831 * stor-layout.c (int_mode_for_mode): Likewise.
14832 * toplev.c (print_to_asm_out_file): Likewise.
14833 (print_to_stderr): Likewise.
14834 * tree-cfg.c (gimple_verify_flow_info): Likewise.
14835 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
14836 (chrec_fold_multiply): Likewise.
14837 (evolution_function_is_invariant_rec_p): Likewise.
14838 (for_each_scev_op): Likewise.
14839 * tree-data-ref.c (siv_subscript_p): Likewise.
14840 (get_references_in_stmt): Likewise.
14841 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
14842 (substitute_in_expr): Likewise.
14843 (type_cache_hasher::equal): Likewise.
14844 (walk_type_fields): Likewise.
14845 * var-tracking.c (adjust_mems): Add FALLTHRU.
14846 (set_dv_changed): Adjust fall through comment.
14847 * varasm.c (default_function_section): Add FALLTHRU.
14848
14849 2016-08-12 Marek Polacek <polacek@redhat.com>
14850
14851 PR c/7652
14852 * tree-complex.c (expand_complex_division): Add missing break.
14853
14854 2016-08-12 Richard Biener <rguenther@suse.de>
14855
14856 * passes.c (execute_todo): Do not push/pop TV_TODO.
14857 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
14858 (execute_one_pass): Likewise.
14859 * common.opt (ftime-report-details): New switch.
14860 * doc/invoke.texi (ftime-report-details): Document.
14861 * timevar.h (timer::print_row): Adjust signature.
14862 (timer::all_zero): New static helper.
14863 (timer::child_map_t): New typedef.
14864 (timer::time_var_def): Add children field.
14865 * timevar.c (timer::named_items::print): Adjust.
14866 (timer::~timer): Free timevar recorded children.
14867 (timer::pop_internal): When -ftime-report-details record
14868 time spent in sub-timevars.
14869 (timer::print_row): Adjust.
14870 (timer::print): Print sub-timevar stats, use all_zero.
14871 * timevar.def (TV_TODO): Remove.
14872
14873 2016-08-12 Richard Biener <rguenther@suse.de>
14874
14875 PR tree-optimization/72851
14876 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
14877 worklists to use bitmaps indexed in execution order.
14878 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
14879 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
14880 (cfg_blocks): Make a bitmap.
14881 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
14882 New globals.
14883 (cfg_blocks_empty_p): Adjust.
14884 (cfg_blocks_add): Likewise.
14885 (cfg_blocks_get): Likewise.
14886 (add_ssa_edge): Likewise.
14887 (add_control_edge): Likewise.
14888 (simulate_stmt): Likewise.
14889 (process_ssa_edge_worklist): Likewise.
14890 (simulate_block): Likewise.
14891 (ssa_prop_init): Compute PRE order and stmt UIDs.
14892 (ssa_prop_fini): Adjust.
14893 (ssa_propagate): Adjust.
14894
14895 2016-08-12 Richard Biener <rguenther@suse.de>
14896
14897 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
14898 the currently executable edges have fixed ranges. Always
14899 go through update_value_range.
14900
14901 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
14902
14903 PR debug/63240
14904 * langhooks-def.h
14905 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
14906 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
14907 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
14908 (LANG_HOOKS_DECLS): Add it.
14909 * langhooks.h (struct lang_hooks_for_decls): Add
14910 function_decl_defaulted. Const_tree-ify
14911 function_decl_explicit_p and function_decl_deleted_p.
14912 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
14913 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
14914 also at strict DWARF v5.
14915
14916 PR debug/55641
14917 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
14918 TYPE_QUAL_CONST in reference-typed decls.
14919
14920 PR debug/49366
14921 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
14922 in DW_OP_pieces, just enough to handle pointers to member
14923 functions.
14924 (gen_remaining_tmpl_value_param_die_attribute): Use a location
14925 expression on DWARFv5 if a constant value doesn't work.
14926
14927 2016-08-11 David Malcolm <dmalcolm@redhat.com>
14928
14929 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
14930 * selftest.c (selftest::test_assertions): New function.
14931 (selftest::selftest_c_tests): New function.
14932 * selftest.h (selftest::selftest_c_tests): New declaration.
14933
14934 2016-08-11 Richard Biener <rguenther@suse.de>
14935 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14936
14937 PR rtl-optimization/72855
14938 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
14939
14940 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14941
14942 PR target/72863
14943 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
14944 (vsx_store_<mode>): Likewise.
14945
14946 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
14947
14948 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
14949 TImode CONST_WIDE_INT store.
14950 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
14951
14952 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
14953
14954 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
14955 mode if unaligned SSE load and store are optimal.
14956
14957 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
14958
14959 PR tree-optimization/71083
14960 * tree-predcom.c (ref_at_iteration): Correctly align the
14961 reference type.
14962
14963 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14964
14965 * config/s390/s390-builtin-types.def: Add INT128 types.
14966 * config/s390/s390-builtins.def: Add INT128 variants for the add
14967 sub low-level builtins dealing with TImode.
14968 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
14969 via subreg when expanding a builtin.
14970 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
14971 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
14972 Fix comment.
14973 * config/s390/vecintrin.h: Adjust builtin names accordingly.
14974 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
14975 ("vec_addc<mode>", "vec_addc_u128"): Merge to
14976 "vacc<bhfgq>_<mode>".
14977 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
14978 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
14979 ("vec_subc<mode>", "vec_subc_u128"): Merge to
14980 "vscbi<bhfgq>_<mode>".
14981 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
14982 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
14983
14984 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14985
14986 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
14987
14988 2016-08-11 Bin Cheng <bin.cheng@arm.com>
14989
14990 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
14991 unused declaration.
14992 (vcond<v_cmp_mixed><mode>): Ditto.
14993 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
14994
14995 2016-08-11 Bin Cheng <bin.cheng@arm.com>
14996
14997 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
14998 variable explicitly, also assert on it before use.
14999
15000 2016-08-11 Richard Biener <rguenther@suse.de>
15001
15002 PR tree-optimization/72772
15003 * cfgloopmanip.c (create_preheader): Use split_edge if there
15004 is a single loop entry, avoiding degenerate PHIs.
15005
15006 2016-08-11 Richard Biener <rguenther@suse.de>
15007
15008 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
15009 unconditional TODO_cleanup_cfg.
15010 (pass_thread_jumps::execute): Initialize loops, perform a CFG
15011 cleanup only if we threaded a jump.
15012
15013 2016-08-11 Alan Modra <amodra@gmail.com>
15014
15015 PR target/71680
15016 * lra-constraints.c (simplify_operand_subreg): Allow subreg
15017 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
15018 slow. Emit two reloads for slow mem case, first loading in
15019 fast innermode, then converting to required mode.
15020
15021 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
15022
15023 * config/rs6000/altivec.h (vec_extract_exp): New macro.
15024 (vec_extract_sig): New macro.
15025 (vec_insert_exp): New macro.
15026 (vec_test_data_class): New macro.
15027 (scalar_extract_exp): New macro.
15028 (scalar_extract_sig): New macro.
15029 (scalar_insert_exp): New macro.
15030 (scalar_test_data_class): New macro.
15031 (scalar_test_neg): New macro.
15032 (scalar_cmp_exp_gt): New macro.
15033 (scalar_cmp_exp_lt): New macro.
15034 (scalar_cmp_exp_eq): New macro.
15035 (scalar_cmp_exp_unordered): New macro.
15036 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
15037 to enforce constraint that operand is a 7-bit unsigned literal.
15038 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
15039 for power9 built-ins.
15040 (BU_P9V_VSX_2): Likewise.
15041 (BU_P9V_64BIT_VSX_2): Likewise.
15042 (VSEEDP): Add scalar extract exponent support.
15043 (VSEESP): Add scalar extract signature support.
15044 (VSTDCNDP): Add scalar test negative support.
15045 (VSTDCNSP): Likewise.
15046 (VSIEDP): Add scalar insert exponent support.
15047 (VSCEDPGT): Add scalar compare exponent greater than support.
15048 (VSCEDPLT): Add scalar compare exponent less than support.
15049 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
15050 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
15051 (VSTDCDP): Add scalar test data class support.
15052 (VSTDCSP): Likewise.
15053 (VSEEDP): Add overload support for scalar extract exponent
15054 operation.
15055 (VSESDP): Add overload support for scalar extract signature
15056 operation.
15057 (VSTDCN): Add overload support for scalar test negative
15058 operation.
15059 (VSTDCNDP): Add overload support for scalar test negative
15060 operation.
15061 (VSTDCNSP): Add overload support for scalar test negative
15062 operation.
15063 (VSIEDP): Add overload support for scalar insert exponent
15064 operation.
15065 (VSTDC): Add overload support for scalar test data class
15066 operation.
15067 (VSTDCDP): Add overload support for scalar test data class
15068 operation.
15069 (VSTDCSP): Add overload support for scalar test data class
15070 opreation.
15071 (VSCEDPGT): Add overload support for scalar compare exponent
15072 greater than operation.
15073 (VSCEDPLT): Add overload support for scalar compare exponent
15074 less than operation.
15075 (VSCEDPEQ): Add overload support for scalar compare exponent
15076 test-for-equality operation.
15077 (VSCEDPUO): Add overload support for scalar compare exponent
15078 test-for-unordered operation.
15079 (VEEDP): Add vector extract exponent support.
15080 (VEESP): Likewise.
15081 (VESDP): Add vector extract significand support.
15082 (VESSP): Likewise.
15083 (VIEDP): Add vector insert exponent support.
15084 (VIESP): Likewise.
15085 (VTDCDP): Add vector test data class support.
15086 (VTDCSP): Likewise.
15087 (VES): Add overload support for vector extract significand operation.
15088 (VESDP): Likewise.
15089 (VESSP): Likewise
15090 (VEE): Add overload support for vector extract exponent operation.
15091 (VEEDP): Likewise.
15092 (VEESP): Likewise.
15093 (VTDC): Add overload support for vector test data class operation.
15094 (VTDCDP): Likewise.
15095 (VTDCSP): Likewise.
15096 (VIE): Add overload support for vector insert exponent operation.
15097 (VIEDP): Likewise.
15098 (VIESP): Likewise.
15099 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15100 overloaded binary floating point functions.
15101 (altivec_resolve_overloaded_builtin): Improve error messages to
15102 distinguish between functions not supported in the current
15103 compiler configuration and functions that were invoked with an
15104 invalid parameter combination, and include the built-in function
15105 name in both error messages.
15106 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
15107 New prototype.
15108 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
15109 function.
15110 (rs6000_expand_binop_builtin): Add check to enforce that argument
15111 2 of the test data class operations is a 7-bit unsigned literal.
15112 (rs6000_invalid_builtin): Add code to issue an error message if a
15113 built-in function that requires the power9_vector and -m32
15114 command-line options is compiled without these options.
15115 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
15116 (UNSPEC_VSX_SXSIGDP): New value.
15117 (UNSPEC_VSX_SXSIGPDP): New value.
15118 (UNSPEC_VSX_SIEXPDP): New value.
15119 (UNSPEC_VSX_SCMPEXPDP): New value.
15120 (UNSPEC_VSX_STSTDC): New value.
15121 (UNSPEC_VSX_VXEXP): New value.
15122 (UNSPEC_VSX_VXSIG): New value.
15123 (UNSPEC_VSX_VIEXP): New value.
15124 (UNSPEC_VSX_VTSTDC): New value.
15125 (xsxexpdp): New insn for scalar extract exponent.
15126 (xsxsigdp): New insn for scalar extract significand.
15127 (xsiexpdp): New insn for scalar insert exponent.
15128 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
15129 (*xscmpexpdp): New insn for scalar compare exponents.
15130 (xststdc<Fvsx): New expansion for both single- and
15131 double-precision scalar test data class operations.
15132 (xststdcneg<Fvsx>): New expansion for both single- and
15133 double-precision scalar test for negative value operations.
15134 (*xststdc<Fvsx>): New insn for scalar test data class
15135 operation.
15136 (xvxexp<VSs>): New insn for single- and double-precision
15137 vector extract exponent operation.
15138 (xvxsig<VSs>): New insn for single- and double-precision
15139 vector extract significand operation.
15140 (xviexp<VSs>): New insn for single- and double-precision
15141 vector insert exponent operation.
15142 (xvtstdc<VSs>): New insn for single- and double-precision
15143 vector test data class operation.
15144 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
15145 built-in functions to represent the Power9 binary floating-point
15146 support instructions.
15147
15148 2016-08-10 bin cheng <bin.cheng@arm.com>
15149
15150 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
15151
15152 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
15153 Renlin Li <renlin.li@arm.com>
15154 Bin Cheng <bin.cheng@arm.com>
15155
15156 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
15157 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
15158 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
15159 (aarch64_vcond_internal<mode><mode>): Delete pattern.
15160 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
15161 (vcond<v_cmp_result><mode>): Ditto.
15162 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
15163 (vcondu<mode><mode>): Ditto.
15164 (vcond<v_cmp_mixed><mode>): New pattern.
15165 (vcondu<mode><v_cmp_mixed>): New pattern.
15166 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
15167 of aarch64_vcond_internal.
15168
15169 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
15170 Renlin Li <renlin.li@arm.com>
15171 Bin Cheng <bin.cheng@arm.com>
15172
15173 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
15174 (vec_cmp<mode><v_cmp_result>): New pattern.
15175 (vec_cmpu<mode><mode>): New pattern.
15176 (vcond_mask_<mode><v_cmp_result>): New pattern.
15177
15178 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
15179
15180 PR tree-optimization/71734
15181 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
15182 REF_LOOP, invoke ref_indep_loop_p_1.
15183 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
15184 to ref_indep_loop_p.
15185 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
15186 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
15187 is inside LOOP, do not cache dpendence value for loops with
15188 non-zero SAFELEN.
15189 (ref_indep_loop_p_2): Delete function.
15190 (can_sm_ref_p): Pass LOOP as additional argument to
15191 ref_indep_loop_p.
15192
15193 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
15194
15195 PR target/72853
15196 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
15197 being an offsettable address.
15198
15199 2016-08-10 Martin Liska <mliska@suse.cz>
15200
15201 PR gcov-profile/58306
15202 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
15203 atomic variants of profile update functions.
15204
15205 2016-08-10 Martin Liska <mliska@suse.cz>
15206
15207 Cherry picked (and modified) from google-4_7 branch
15208 2012-12-26 Rong Xu <xur@google.com>
15209 * common.opt (fprofile-update): Add new flag.
15210 * coretypes.h: Define enum profile_update.
15211 * doc/invoke.texi: Document -fprofile-update.
15212 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
15213 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
15214 * tree-profile.c (gimple_init_edge_profiler): Generate
15215 also atomic profiler update.
15216 (gimple_gen_edge_profiler): Likewise.
15217
15218 2016-08-10 David Malcolm <dmalcolm@redhat.com>
15219
15220 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
15221 stack_usage_file to NULL after fclose calls.
15222
15223 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15224
15225 PR target/71873
15226 * reload.c (push_reload): Compute subreg_in_class for
15227 subregs of constants and plus expressions. Remove special
15228 handling of SYMBOL_REFs.
15229
15230 2016-08-10 Alan Modra <amodra@gmail.com>
15231
15232 PR target/71680
15233 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
15234 SImode for TARGET_E500_DOUBLE when given SImode.
15235
15236 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
15237
15238 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
15239 unused variable __O.
15240
15241 2016-08-09 Martin Liska <mliska@suse.cz>
15242
15243 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
15244 _gcov_reset to __gcov_reset.
15245 * doc/gcov-tool.texi: Fix typo.
15246
15247 2016-08-09 Martin Liska <mliska@suse.cz>
15248
15249 * value-prof.c (gimple_divmod_values_to_profile): Do not
15250 instrument MOD histogram if a value is not a SSA name.
15251
15252 2016-08-09 Martin Liska <mliska@suse.cz>
15253
15254 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
15255 values.
15256
15257 2016-08-09 Renlin Li <renlin.li@arm.com>
15258
15259 PR middle-end/64971
15260 * calls.c (prepare_call_address): Convert funexp to Pmode when
15261 necessary.
15262 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
15263 (sibcall_value): Likewise.
15264
15265 2016-08-09 Marek Polacek <polacek@redhat.com>
15266
15267 PR c/7652
15268 * cselib.c (cselib_expand_value_rtx_1): Add return.
15269 * gengtype.c (dbgprint_count_type_at): Likewise.
15270 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
15271 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
15272
15273 2016-08-09 Martin Jambor <mjambor@suse.cz>
15274
15275 PR ipa/71981
15276 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
15277 if instance is a MEM_REF.
15278
15279 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
15280
15281 PR target/72843
15282 * config/i386/i386.md (*movtf_internal): Use
15283 lra_in_progress || reload_completed instead of !can_create_pseudo_p
15284 in the insn constraint.
15285 (*movxf_internal): Ditto.
15286 (*movdf_internal): Ditto.
15287 (*movsf_internal): Ditto.
15288
15289 2016-08-09 Bin Cheng <bin.cheng@arm.com>
15290
15291 PR tree-optimization/72772
15292 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
15293 for expanded base.
15294
15295 2016-08-09 Bin Cheng <bin.cheng@arm.com>
15296
15297 PR tree-optimization/72772
15298 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
15299 parameter STOP.
15300 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
15301 parameter STOP and update calls. Move expand_simple_operations
15302 function call from here...
15303 (simplify_using_initial_conditions): ...to here. Delete parameter
15304 STOP.
15305 (tree_simplify_using_condition): Delete parameter STOP.
15306 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
15307 simplify_using_initial_conditions.
15308
15309 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
15310
15311 PR c/65345
15312 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
15313 Use create_tmp_var_raw instead of create_tmp_var.
15314
15315 2016-08-09 Richard Biener <rguenther@suse.de>
15316
15317 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
15318 Treat same SSA names related.
15319
15320 2016-08-09 Jakub Jelinek <jakub@redhat.com>
15321
15322 PR tree-optimization/72824
15323 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
15324 real_zerop is not negative.
15325
15326 2016-08-09 Richard Biener <rguenther@suse.de>
15327
15328 PR tree-optimization/71802
15329 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
15330 all merge opportunities with the predecessor.
15331
15332 2016-08-09 Richard Biener <rguenther@suse.de>
15333
15334 PR ipa/68273
15335 * ipa-prop.c (ipa_modify_formal_parameters): Build
15336 parameter types with natural alignment also for the
15337 over-aligned case.
15338
15339 2016-08-08 Andi Kleen <ak@linux.intel.com>
15340
15341 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
15342
15343 2016-08-08 David Malcolm <dmalcolm@redhat.com>
15344
15345 PR c/64955
15346 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
15347 do-nothing langhook.
15348 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
15349 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
15350 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
15351 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
15352
15353 2016-08-08 David Malcolm <dmalcolm@redhat.com>
15354
15355 PR bootstrap/72844
15356 * input.c: Ensure that HAVE_ICONV is defined.
15357
15358 2016-08-08 Jakub Jelinek <jakub@redhat.com>
15359
15360 PR middle-end/72781
15361 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
15362 private vars for lastprivate and for linear iterator.
15363
15364 PR middle-end/68762
15365 * omp-simd-clone.c: Include varasm.h.
15366 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
15367 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
15368 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
15369 update function name.
15370
15371 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15372
15373 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
15374 (avr_diagnose_devicespecs_error): Remove.
15375 (avr_devicespecs_file): Remove composing absolute path for specfile
15376 and its verbose info. Remove conditions to check specs-file,
15377
15378 2016-08-08 Jakub Jelinek <jakub@redhat.com>
15379
15380 PR rtl-optimization/72821
15381 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
15382 just return false for them.
15383
15384 2016-08-08 Alan Modra <amodra@gmail.com>
15385
15386 PR target/72771
15387 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
15388 toc refs created during reload. Update function comment.
15389
15390 2016-08-08 Alan Modra <amodra@gmail.com>
15391
15392 PR target/72802
15393 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
15394 alternatives. Put loads first, then stores, and reg/reg moves
15395 within same class later. Delete attr length.
15396
15397 2016-08-08 Alan Modra <amodra@gmail.com>
15398
15399 PR target/72802
15400 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
15401 (mem_operand_ds_form): New predicate.
15402 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
15403 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
15404 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
15405 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
15406 (extendsfdf2_fpr): Replace o constraint with wY.
15407
15408 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
15409
15410 * tree-ssa-threadbackward.c: Include tree-inline.h
15411 (profitable_jump_thread_path): Use estimate_num_insns to estimate
15412 size of copied block; for cold paths reduce duplication.
15413 (find_jump_threads_backwards): Remove redundant tests.
15414 (pass_thread_jumps::gate): Enable for -Os.
15415
15416 2016-08-07 Jakub Jelinek <jakub@redhat.com>
15417
15418 PR c/72816
15419 * stor-layout.c (layout_decl): Fix up formatting.
15420 (relayout_decl): Allow DECL to be FIELD_DECL.
15421
15422 2016-08-07 Alan Modra <amodra@gmail.com>
15423
15424 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
15425
15426 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
15427
15428 * data-streamer-in.c (streamer_read_wide_int): New.
15429 (streamer_read_widest_int): Renamed function.
15430 * data-streamer-out.c (streamer_write_wide_int): New
15431 (streamer_write_widest_int): Renamed function.
15432 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
15433 data-stream-in.c.
15434 (input_cfg): Call renamed function.
15435 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
15436 data-stream-out.c.
15437 (output_cfg): Call renamed function.
15438 * data-streamer.h: Add declarations.
15439
15440 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15441
15442 * tree-ssa-ccp.c (extend_mask): New param sgn.
15443 Remove ORing with wi::mask.
15444 (get_default_value): Adjust call to extend_mask to pass sign.
15445 (evaluate_stmt): Likewise.
15446
15447 2016-08-06 Jakub Jelinek <jakub@redhat.com>
15448
15449 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
15450 INT64_MAX.
15451
15452 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15453
15454 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
15455 transform if operand's type is pointer to function or method.
15456
15457 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
15458
15459 PR tree-optimization/18046
15460 * tree-ssa-threadedge.c: Include cfganal.h.
15461 (simplify_control_statement_condition): If simplifying a
15462 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
15463 with the dominating ASSERT_EXPR before handing it off to VRP.
15464 Mention that a CASE_LABEL_EXPR may be returned.
15465 (thread_around_empty_blocks): Adjust to handle
15466 simplify_control_statement_condition() returning a
15467 CASE_LABEL_EXPR.
15468 (thread_through_normal_block): Likewise.
15469 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
15470 a switch statement by trying to determine which case label
15471 will be taken.
15472
15473 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
15474
15475 PR rtl-optimization/69847
15476 * lra-constraints.c (process_invariant_for_inheritance): Save
15477 pattern instead of src.
15478 (remove_inheritance_pseudos): Use the pattern. Add assert.
15479
15480 2016-08-05 David Malcolm <dmalcolm@redhat.com>
15481
15482 * input.c (string_concat::string_concat): New constructor.
15483 (string_concat_db::string_concat_db): New constructor.
15484 (string_concat_db::record_string_concatenation): New method.
15485 (string_concat_db::get_string_concatenation): New method.
15486 (string_concat_db::get_key_loc): New method.
15487 (class auto_cpp_string_vec): New class.
15488 (get_substring_ranges_for_loc): New function.
15489 (get_source_range_for_substring): New function.
15490 (get_num_source_ranges_for_substring): New function.
15491 (class selftest::lexer_test_options): New class.
15492 (struct selftest::lexer_test): New struct.
15493 (class selftest::ebcdic_execution_charset): New class.
15494 (selftest::ebcdic_execution_charset::s_singleton): New variable.
15495 (selftest::lexer_test::lexer_test): New constructor.
15496 (selftest::lexer_test::~lexer_test): New destructor.
15497 (selftest::lexer_test::get_token): New method.
15498 (selftest::assert_char_at_range): New function.
15499 (ASSERT_CHAR_AT_RANGE): New macro.
15500 (selftest::assert_num_substring_ranges): New function.
15501 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
15502 (selftest::assert_has_no_substring_ranges): New function.
15503 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
15504 (selftest::test_lexer_string_locations_simple): New function.
15505 (selftest::test_lexer_string_locations_ebcdic): New function.
15506 (selftest::test_lexer_string_locations_hex): New function.
15507 (selftest::test_lexer_string_locations_oct): New function.
15508 (selftest::test_lexer_string_locations_letter_escape_1): New function.
15509 (selftest::test_lexer_string_locations_letter_escape_2): New function.
15510 (selftest::test_lexer_string_locations_ucn4): New function.
15511 (selftest::test_lexer_string_locations_ucn8): New function.
15512 (selftest::uint32_from_big_endian): New function.
15513 (selftest::test_lexer_string_locations_wide_string): New function.
15514 (selftest::uint16_from_big_endian): New function.
15515 (selftest::test_lexer_string_locations_string16): New function.
15516 (selftest::test_lexer_string_locations_string32): New function.
15517 (selftest::test_lexer_string_locations_u8): New function.
15518 (selftest::test_lexer_string_locations_utf8_source): New function.
15519 (selftest::test_lexer_string_locations_concatenation_1): New
15520 function.
15521 (selftest::test_lexer_string_locations_concatenation_2): New
15522 function.
15523 (selftest::test_lexer_string_locations_concatenation_3): New
15524 function.
15525 (selftest::test_lexer_string_locations_macro): New function.
15526 (selftest::test_lexer_string_locations_stringified_macro_argument):
15527 New function.
15528 (selftest::test_lexer_string_locations_non_string): New function.
15529 (selftest::test_lexer_string_locations_long_line): New function.
15530 (selftest::test_lexer_char_constants): New function.
15531 (selftest::input_c_tests): Call the new test functions once per
15532 case within the line_table test matrix.
15533 * input.h (struct string_concat): New struct.
15534 (struct location_hash): New struct.
15535 (class string_concat_db): New class.
15536 * substring-locations.h: New header.
15537
15538 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
15539
15540 PR tree-optimization/72810
15541 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
15542 the type of the case labels when truncating.
15543
15544 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
15545
15546 PR Target/72819
15547 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
15548 (aarch64_fp16_ptr_type_node): Likewise.
15549 * config/aarch64/aarch64-simd-builtins.c
15550 (aarch64_fp16_ptr_type_node): Define.
15551 (aarch64_init_fp16_types): New, refactored out of...
15552 (aarch64_init_builtins): ...here, update to call
15553 aarch64_init_fp16_types.
15554 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
15555 HFmode.
15556 (aapcs_vfp_sub_candidate): Likewise.
15557
15558 2016-08-05 Martin Liska <mliska@suse.cz>
15559 Joshua Cranmer <Pidgeot18@gmail.com>
15560
15561 * gcov.c (line_t::has_block): New function.
15562 (enum loop_type): New enum.
15563 (handle_cycle): New function.
15564 (unblock): Likewise.
15565 (circuit): Likewise.
15566 (get_cycles_count): Likewise.
15567 (accumulate_line_counts): Use new loop detection algorithm.
15568
15569 2016-08-05 Martin Liska <mliska@suse.cz>
15570
15571 * gcov.c (output_intermediate_file): Rename
15572 function_info::line_next to next_file_fn.
15573 (process_file): Likewise.
15574 (read_graph_file): Likewise.
15575 (accumulate_line_counts): Likewise.
15576 (output_lines): Likewise.
15577
15578 2016-08-05 Richard Biener <rguenther@suse.de>
15579
15580 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
15581 restriction on threading to a loop header.
15582
15583 2016-08-05 Richard Biener <rguenther@suse.de>
15584
15585 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
15586 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
15587 adjust loop info accordingly.
15588
15589 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
15590
15591 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
15592 before folding call to __builtin_constant_p with parameters to false.
15593
15594 2016-08-05 Alan Modra <amodra@gmail.com>
15595
15596 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
15597 code accidentally committed 2016-05-02 providing class when given
15598 NO_REGS.
15599
15600 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
15601
15602 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
15603 the case label ranges that partially overlap with OP's value
15604 range.
15605
15606 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
15607
15608 PR target/72805
15609 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
15610 Cast builtin function result to __mmask16 instead of __mmask8.
15611 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
15612 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
15613 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
15614
15615 2016-08-04 David Malcolm <dmalcolm@redhat.com>
15616
15617 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
15618 (ASSERT_TRUE_AT): New macro.
15619 (ASSERT_FALSE): Reimplement in terms of...
15620 (ASSERT_FALSE_AT): New macro.
15621 (ASSERT_STREQ_AT): Fix typo in comment.
15622
15623 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
15624
15625 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
15626 labels are exhaustive, designate the label with the widest
15627 range to be the default label.
15628
15629 2016-08-04 Andrew Pinski <apinski@cavium.com>
15630
15631 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
15632 (thunderx_tunings): Use thunderx_vector_cost instead of
15633 generic_vector_cost.
15634
15635 2016-08-04 Martin Liska <mliska@suse.cz>
15636
15637 * gcov.c (main): Fix GNU coding style.
15638 (output_intermediate_file): Likewise.
15639 (process_file): Likewise.
15640 (generate_results): Likewise.
15641 (release_structures): Likewise.
15642 (create_file_names): Likewise.
15643 (find_source): Likewise.
15644 (read_graph_file): Likewise.
15645 (find_exception_blocks): Likewise.
15646 (canonicalize_name): Likewise.
15647 (make_gcov_file_name): Likewise.
15648 (mangle_name): Likewise.
15649 (accumulate_line_counts): Likewise.
15650 (output_branch_count): Likewise.
15651 (read_line): Likewise.
15652
15653 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
15654
15655 PR rtl-optimization/71779
15656 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
15657 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
15658 or if it was truncated.
15659
15660 PR rtl-optimization/70903
15661 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
15662
15663 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
15664
15665 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
15666 accessing SSA_NAME_PTR_INFO.
15667
15668 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
15669
15670 PR 70677
15671 * common/config/avr/avr-common.c (avr_option_optimization_table)
15672 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
15673
15674 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
15675
15676 PR 55181
15677 * config/avr/avr.md: New pattern to work around do_store_flag
15678 generating shift instructions for bit extractions.
15679
15680 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
15681
15682 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
15683 BITMAP_ALLOC.
15684 (add_equivalence): Likewise.
15685 (get_value_range): Allocate value range with vrp_value_range_pool.
15686 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
15687 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
15688
15689 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
15690
15691 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
15692 the default for the rs6000 port.
15693
15694 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15695
15696 PR middle-end/71876
15697 * calls.c (special_function_p): Remove special handling of
15698 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
15699 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
15700 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
15701
15702 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
15703
15704 PR middle-end/72778
15705 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
15706 Don't stop on regular insns.
15707
15708 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
15709
15710 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
15711 size to DImode boundary.
15712 (nvptx_propagate): Likewise.
15713
15714 2016-08-03 Alan Modra <amodra@gmail.com>
15715
15716 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
15717 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
15718 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
15719 from -mefficient-unaligned-vector. Note that this affects fp too.
15720
15721 2016-08-03 Alan Modra <amodra@gmail.com>
15722
15723 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
15724 cost more.
15725
15726 2016-08-03 Alan Modra <amodra@gmail.com>
15727
15728 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
15729 to a reg. Localize vars.
15730
15731 2016-08-03 Alan Modra <amodra@gmail.com>
15732
15733 * config/rs6000/rs6000.opt: Remove negatives from help strings
15734 and comments.
15735
15736 2016-08-03 Alan Modra <amodra@gmail.com>
15737
15738 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
15739 Delete duplicated code.
15740
15741 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
15742
15743 PR middle-end/72778
15744 * lra-spills.c (regno_in_use_p): New.
15745 (lra_final_code_change): Use it.
15746
15747 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
15748
15749 PR rtl-optimization/69847
15750 * lra-int.h (struct lra-reg): Use restore_rtx instead of
15751 restore_regno.
15752 (lra_rtx_hash): New.
15753 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
15754 of restore_regno.
15755 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
15756 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
15757 * lra-spills.c (lra_final_code_change): Don't delete insn when the
15758 next insn is USE with the same reg as the current insn source.
15759 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
15760 of restore_regno.
15761 (lra_constraints_init): Call initiate_invariants.
15762 (lra_constraints_finish): Call finish_invariants.
15763 (struct invariant, invariant_t, invariant_ptr_t): New.
15764 (const_invariant_ptr_t, invariants, invariants_pool): New.
15765 (invariant_table, invariant_hash, invariant_eq_p): New.
15766 (insert_invariant, initiate_invariants, finish_invariants): New.
15767 (clear_invariants, invalid_invariant_regs): New.
15768 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
15769 instead of restore_regno.
15770 (invariant_p, process_invariant_for_inheritance): New.
15771 (inherit_in_ebb): Implement invariant inheritance.
15772 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
15773 (remove_inheritance_pseudos): Implement undoing invariant
15774 inheritance.
15775 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
15776 instead of restore_regno.
15777 * lra-assigns.c (regno_live_length): New.
15778 (reload_pseudo_compare_func): Use regno_live_length.
15779 (assign_by_spills): Use restore_rtx instead of restore_regno.
15780 (lra_assign): Ditto. Initiate regno_live_length.
15781
15782 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
15783
15784 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
15785 __builtin_aarch64_fmindf.
15786
15787 2016-08-02 Bin Cheng <bin.cheng@arm.com>
15788
15789 PR tree-optimization/34114
15790 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
15791 information for more control IVs.
15792
15793 2016-08-02 Bin Cheng <bin.cheng@arm.com>
15794
15795 PR tree-optimization/34114
15796 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
15797 PLUS_EXPR case. Handle SSA_NAME case.
15798
15799 2016-08-02 Tamar Christina <tamar.christina@arm.com>
15800
15801 * config/aarch64/aarch64-simd-builtins.def
15802 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
15803 (__builtin_aarch64_fmaxdf): Likewise.
15804 (__builtin_aarch64_smin_nandf): Likewise.
15805 (__builtin_aarch64_smax_nandf): Likewise.
15806 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
15807 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
15808 (<fmaxmin><mode>3): ...this.
15809 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
15810 (vminnm_f64): Likewise.
15811 (vmin_f64): Likewise.
15812 (vmax_f64): Likewise.
15813 * config/aarch64/iterators.md (FMAXMIN): Merge with...
15814 (FMAXMIN_UNS): ...this.
15815 (fmaxmin): Merged with
15816 (fmaxmin_op): ...this...
15817 (maxmin_uns_op): ...in to this.
15818
15819 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15820
15821 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15822 Add support for vec_extract on vector float, vector int, vector
15823 short, and vector char vector types.
15824 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15825 vector float, vector int, vector short, and vector char
15826 optimizations on 64-bit ISA 2.07 systems for both constant and
15827 variable element numbers.
15828 (rs6000_split_vec_extract_var): Likewise.
15829 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
15830 Altivec registers on ISA 2.07 and above.
15831 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
15832 which never was matched due to the split occuring before register
15833 allocation (and the code would not have worked on little endian
15834 systems if it did match). Allow extracts to go to the Altivec
15835 registers if ISA 2.07 (power8). Change from using "" around the
15836 C++ code to using {}'s.
15837 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
15838 vec_extracts when the vector is in memory.
15839 (vsx_extract_v4sf_var): New insn to optimize vector float
15840 vec_extracts when the element number is variable on 64-bit ISA
15841 2.07 systems.
15842 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
15843 for 64-bit ISA 2.07 as well as ISA 3.0.
15844 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
15845 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
15846 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
15847 optimize vector int, vector short, and vector char vec_extracts
15848 when the vector is in memory.
15849 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
15850 optimize vector int, vector short, and vector char vec_extracts
15851 when the element number is variable.
15852
15853 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
15854
15855 PR target/71948
15856 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
15857 does not overlap with other symbol flags.
15858
15859 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
15860
15861 * config/aarch64/aarch64.h (aarch64_frame):
15862 Remove padding0 and hardfp_offset. Add locals_offset,
15863 initial_adjust, callee_adjust, callee_offset and final_adjust.
15864 * config/aarch64/aarch64.c (aarch64_layout_frame):
15865 Remove unused padding0 and hardfp_offset initializations.
15866 Choose frame layout and set frame variables accordingly.
15867 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
15868 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
15869 (aarch64_pop_regs): Likewise.
15870 (aarch64_expand_prologue): Remove all decision code, just emit
15871 prolog according to frame variables.
15872 (aarch64_expand_epilogue): Remove all decision code, just emit
15873 epilog according to frame variables.
15874 (aarch64_initial_elimination_offset): Use offset to local/arg area.
15875
15876 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
15877
15878 PR target/72748
15879 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
15880 fix_debug_reg_uses after changing source register mode to
15881 V1TImode if source register is undefined.
15882
15883 2015-08-01 Alan Hayward <alan.hayward@arm.com>
15884
15885 PR tree-optimization/71818
15886 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
15887 with non invariant evolutions
15888
15889 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
15890
15891 PR target/72767
15892 * config/avr/avr.md (length) [branch]: Correct insn length
15893 attribute for forward branches.
15894
15895 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
15896
15897 * doc/extend.texi (AVR Built-in Functions): Document
15898 __builtin_avr_nops.
15899 * config/avr/builtins.def (NOPS): New.
15900 * config/avr/avr.c (avr_expand_nops): New static function.
15901 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
15902
15903 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15904
15905 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
15906 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
15907 addresses.
15908
15909 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
15910
15911 * config/aarch64/aarch64.c (vulcan_tunings): Update
15912 vulcan L1 cache_line_size.
15913
15914 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
15915
15916 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
15917 function that takes a vector memory address, a hard register, an
15918 element number and a temporary base register, and recreates an
15919 address that points to the appropriate element within the vector.
15920 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
15921 (rs6000_split_vec_extract_var): Add support for the target of a
15922 vec_extract with variable element number being a scalar memory
15923 location.
15924 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
15925 swappable.
15926 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
15927 vsx_extract_<mode>_load insn with a new insn that optimizes
15928 storing either element to a memory location, using scratch
15929 registers to pick apart the vector and reconstruct the address.
15930 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
15931 (vsx_extract_<mode>_store): Rework alternatives to more correctly
15932 support Altivec registers. Add support for ISA 3.0 Altivec d-form
15933 store instruction.
15934 (vsx_extract_<mode>_var): Add support for extracting a variable
15935 element number from memory.
15936
15937 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
15938
15939 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
15940 when testing for compares against constants of the form 0xabab.
15941
15942 2016-07-29 Bin Cheng <bin.cheng@arm.com>
15943
15944 PR tree-optimization/57558
15945 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
15946 function.
15947 (vect_loop_versioning): Support versioning with niter assumptions.
15948 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
15949 (vect_get_loop_niters): New parameter. Reimplement to support
15950 assumptions in loop niter info.
15951 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
15952 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
15953 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
15954 Support loop versioning for niters.
15955 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
15956 (vect_free_loop_info_assumptions): New function.
15957 (vectorize_loops): Free loop niter info for loops with flag
15958 LOOP_F_ASSUMPTIONS set if vectorization failed.
15959 * tree-vectorizer.h (struct _loop_vec_info): New field
15960 num_iters_assumptions.
15961 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
15962 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
15963 (LOOP_REQUIRES_VERSIONING): New macro.
15964 (vect_free_loop_info_assumptions): New decl.
15965
15966 2016-07-29 Bin Cheng <bin.cheng@arm.com>
15967
15968 * cfgloop.h (struct loop): New field constraints.
15969 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
15970 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
15971 functions.
15972 * cfgloop.c (alloc_loop): Initialize new field.
15973 * cfgloopmanip.c (copy_loop_info): Copy constraints.
15974 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
15975 Adjust niter analysis wrto loop constraints.
15976 * doc/loop.texi (@node Number of iterations): Add description for loop
15977 constraints.
15978
15979 2016-07-29 Marek Polacek <polacek@redhat.com>
15980
15981 PR c/7652
15982 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
15983 (ix86_expand_round_builtin): Likewise.
15984
15985 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
15986 Georg-Johann Lay <avr@gjlay.de>
15987
15988 PR rtl-optimization/71976
15989 * combine.c (get_last_value): Return 0 if the argument for which
15990 the function is called has a wider mode than the recorded value.
15991
15992 2016-07-29 Marek Polacek <polacek@redhat.com>
15993
15994 PR c/7652
15995 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
15996 (altivec_expand_st_builtin): Likewise.
15997
15998 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
15999
16000 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
16001 introduced in r238381.
16002
16003 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
16004
16005 PR middle-end/68217
16006 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
16007 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
16008
16009 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
16010
16011 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
16012 New declaration.
16013 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16014 Add support for vec_extract of vector double or vector long having
16015 a variable element number on 64-bit ISA 2.07 systems or newer.
16016 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
16017 Likewise.
16018 (rs6000_split_vec_extract_var): New function to split a
16019 vec_extract built-in function with variable element number.
16020 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
16021 swappable.
16022 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
16023 (UNSPEC_VSX_EXTRACT): Likewise.
16024 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
16025 direct move instructions to be generated on 64-bit ISA 2.07
16026 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
16027 instruction.
16028 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
16029 arguments for vec_extract variable element.
16030 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
16031 vec_extract with variable element on V2DFmode and V2DImode
16032 vectors.
16033 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
16034 -mupper-regs-df requirement, since it isn't needed.
16035 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
16036 do direct moves on 64-bit systems, which allows optimization of
16037 vec_extract on 64-bit ISA 2.07 systems and newer.
16038
16039 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
16040 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
16041
16042 * config/aarch64/aarch64.md
16043 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
16044 statement and type.
16045 (<optab>qihi2_aarch64): Likewise, and split into two.
16046 (extendqihi2_aarch64): New.
16047 (zero_extendqihi2_aarch64): New.
16048 * config/aarch64/iterators.md (ldrxt): Remove.
16049 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
16050 uxtb/uxth.
16051
16052 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
16053
16054 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
16055
16056 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
16057
16058 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
16059 (aarch64_push_reg): New function to push 1 or 2 registers.
16060 (aarch64_pop_reg): New function to pop 1 or 2 registers.
16061 (aarch64_expand_prologue): Use aarch64_push_regs.
16062 (aarch64_expand_epilogue): Use aarch64_pop_regs.
16063
16064 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
16065
16066 PR tree-optimization/71734
16067 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
16068 attribute instead of REF_LOOP and use it.
16069 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
16070 set it for Loops having non-zero safelen attribute.
16071 (ref_indep_loop_p): Pass zero as initial value for safelen.
16072
16073 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
16074
16075 PR middle-end/72657
16076 PR target/72683
16077 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
16078 call using chkp_gimple_call_builtin_p.
16079 (chkp_copy_bounds_for_assign): Likewise.
16080
16081 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16082
16083 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
16084 * config/arm/arm-protos.h (struct tune_params): Likewise.
16085 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16086 (cortex_a9_sched_adjust_cost): Likewise.
16087 (fa726te_sched_adjust_cost): Likewise.
16088 (arm_adjust_cost): Likewise.
16089 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
16090 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
16091 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
16092 * config/i386/i386.c (ix86_adjust_cost): Likewise.
16093 * config/ia64/ia64.c: Likewise.
16094 * config/m68k/m68k.c: Likewise.
16095 * config/mep/mep.c (mep_adjust_cost): Likewise.
16096 * config/microblaze/microblaze.c (microblaze_adjust_cost):
16097 * Likewise.
16098 * config/mips/mips.c (mips_adjust_cost): Likewise.
16099 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
16100 * Likewise.
16101 * config/pa/pa.c (pa_adjust_cost): Likewise.
16102 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
16103 (rs6000_debug_adjust_cost): Likewise.
16104 * config/sh/sh.c (sh_adjust_cost): Likewise.
16105 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
16106 (hypersparc_adjust_cost): Likewise.
16107 (sparc_adjust_cost): Likewise.
16108 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
16109 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
16110 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
16111 * Likewise.
16112 * config/visium/visium.c (visium_adjust_cost): Likewise.
16113 * doc/tm.texi: Regenerate.
16114 * haifa-sched.c (dep_cost_1): Adjust.
16115 * target.def: Merge adjust_cost and adjust_cost_2.
16116
16117 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16118
16119 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
16120
16121 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16122
16123 * store-motion.c (struct st_expr): Make pattern_regs a vector.
16124 (extract_mentioned_regs): Append to a vector instead of
16125 returning a rtx_expr_list.
16126 (st_expr_entry): Adjust.
16127 (free_st_expr_entry): Likewise.
16128 (store_ops_ok): Likewise.
16129 (store_killed_in_insn): Likewise.
16130 (find_moveable_store): Likewise.
16131
16132 2016-07-28 Martin Liska <mliska@suse.cz>
16133
16134 PR gcov-profile/68025
16135 * tree-profile.c (tree_profiling): Respect
16136 no_profile_instrument_function attribute.
16137 * doc/extend.texi: Document no_profile_instrument_function
16138 attribute.
16139
16140 2016-07-28 Martin Liska <mliska@suse.cz>
16141
16142 PR rtl-optimization/70944
16143 * combine.c (make_compound_operation):
16144 Do not allow make_compound_operation for vector mode
16145
16146 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
16147
16148 PR middle-end/71994
16149 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
16150 before calling get_ops.
16151
16152 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16153
16154 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
16155 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
16156 (BITS_PER_UNIT_LOG): Remove.
16157 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
16158 * expr.c (expand_assignment): Likewise.
16159 * stor-layout.c (initialize_sizetypes): Likewise.
16160
16161 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16162
16163 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
16164 signature of rs6000_expand_vector_extract so that the element
16165 number is a RTX instead of a constant integer.
16166 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
16167 Likewise.
16168 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
16169 (altivec_expand_vec_ext_builtin): Likewise.
16170 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
16171 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
16172 MFVSRLD instruction.
16173
16174 2016-07-27 David Malcolm <dmalcolm@redhat.com>
16175
16176 * input.c (get_pure_location): Move here from tree.c.
16177 (make_location): Likewise. Add header comment.
16178 (selftest::test_accessing_ordinary_linemaps): Verify
16179 pure_location_p, make_location, get_location_from_adhoc_loc and
16180 get_range_from_loc.
16181 * input.h (get_pure_location): Move declaration here from tree.h.
16182 (get_finish): Likewise for inline function.
16183 (make_location): Likewise for declaration.
16184 * tree.c (get_pure_location): Move to input.c.
16185 (make_location): Likewise.
16186 * tree.h (get_pure_location): Move declaration to tree.h.
16187 (get_finish): Likewise for inline function.
16188 (make_location): Likewise for declaration.
16189
16190 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16191
16192 PR middle-end/71078
16193 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
16194
16195 2016-07-27 David Malcolm <dmalcolm@redhat.com>
16196
16197 * system.h (STATIC_ASSERT): Use static_assert if building
16198 with C++11 onwards.
16199
16200 2016-07-27 Richard Biener <rguenther@suse.de>
16201
16202 PR tree-optimization/72517
16203 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
16204 Revert change to not compute read-read dependences.
16205
16206 2016-07-27 Richard Biener <rguenther@suse.de>
16207
16208 * predict.c (set_even_probabilities): Make nedges unsigned.
16209
16210 2016-07-27 Martin Liska <mliska@suse.cz>
16211
16212 * predict.c (set_even_probabilities): Handle unlikely edges.
16213 (combine_predictions_for_bb): Likewise.
16214
16215 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16216
16217 PR target/71869
16218 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
16219 __float128 support when we don't have hardware support, so that
16220 the IEEE built-in functions like isgreater, first call __unordkf3
16221 to make sure neither operand is a NaN, and if both operands are
16222 ordered, do the normal comparison.
16223
16224 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
16225
16226 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
16227 name.
16228 (extract_code_and_val_from_cond_with_ops): Verify that name is
16229 either cond_op0 or cond_op1.
16230
16231 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
16232
16233 PR tree-optimization/18046
16234 * genmodes.c (emit_mode_size_inline): Emit an assert that
16235 verifies that mode is a valid array index.
16236 (emit_mode_nuinits_inline): Likewise.
16237 (emit_mode_inner_inline): Likewise.
16238 (emit_mode_unit_size_inline): Likewise.
16239 (emit_mode_unit_precision_inline): Likewise.
16240 * tree-vrp.c: Include params.h.
16241 (find_switch_asserts): Register edge assertions for the default
16242 label which correspond to the anti-ranges of each case label.
16243 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
16244 * doc/invoke.texi: Document it.
16245
16246 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16247
16248 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
16249 and unnecessary call to gimple_bb.
16250
16251 2016-07-26 Richard Biener <rguenther@suse.de>
16252
16253 PR rtl-optimization/71984
16254 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
16255 for VOIDmode.
16256
16257 2016-07-26 Richard Biener <rguenther@suse.de>
16258
16259 PR middle-end/72517
16260 * expmed.c (extract_bit_field_1): Constrain the vector mode
16261 with element size matching the extraction mode size when
16262 choosing a better vector mode to do the extraction from.
16263
16264 2016-07-26 Richard Biener <rguenther@suse.de>
16265 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16266
16267 PR middle-end/70920
16268 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
16269 pattern.
16270
16271 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16272
16273 * tree-ssa-structalias.c (struct scc_info): Change types of
16274 members to auto_sbitmap and auto_vec.
16275 (scc_info::scc_info): New constructor.
16276 (scc_info::~scc_info): New destructor.
16277 (init_scc_info): Remove.
16278 (free_scc_info): Remove.
16279 (find_indirect_cycles): Adjust.
16280 (perform_var_substitution): Likewise.
16281 (free_var_substitution_info): Likewise.
16282
16283 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16284
16285 * tree-outof-ssa.c (struct elim_graph): Change type of members
16286 to auto_vec and auto_sbitmap.
16287 (elim_graph::elim_graph): New constructor.
16288 (delete_elim_graph): Remove.
16289 (expand_phi_nodes): Adjust.
16290
16291 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16292
16293 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
16294 (new_elim_graph): Adjust.
16295 (clear_elim_graph): Likewise.
16296 (delete_elim_graph): Likewise.
16297 (elim_graph_size): Likewise.
16298 (elim_graph_add_node): Likewise.
16299 (elim_graph_add_edge): Likewise.
16300 (elim_graph_remove_succ_edge): Likewise.
16301 (eliminate_name): Likewise.
16302 (eliminate_build): Likewise.
16303 (elim_forward): Likewise.
16304 (elim_unvisited_predecessor): Likewise.
16305 (elim_backward): Likewise.
16306 (elim_create): Likewise.
16307 (eliminate_phi): Likewise.
16308 (expand_phi_nodes): Likewise.
16309
16310 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16311
16312 * bt-load.c (compute_out): Use auto_sbitmap class.
16313 (link_btr_uses): Likewise.
16314 * cfganal.c (mark_dfs_back_edges): Likewise.
16315 (post_order_compute): Likewise.
16316 (inverted_post_order_compute): Likewise.
16317 (pre_and_rev_post_order_compute_fn): Likewise.
16318 (single_pred_before_succ_order): Likewise.
16319 * cfgexpand.c (pass_expand::execute): Likewise.
16320 * cfgloop.c (verify_loop_structure): Likewise.
16321 * cfgloopmanip.c (fix_bb_placements): Likewise.
16322 (remove_path): Likewise.
16323 (update_dominators_in_loop): Likewise.
16324 * cfgrtl.c (break_superblocks): Likewise.
16325 * ddg.c (check_sccs): Likewise.
16326 (create_ddg_all_sccs): Likewise.
16327 * df-core.c (df_worklist_dataflow): Likewise.
16328 * dse.c (dse_step3): Likewise.
16329 * except.c (eh_region_outermost): Likewise.
16330 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16331 * gcse.c (prune_expressions): Likewise.
16332 (prune_insertions_deletions): Likewise.
16333 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
16334 * graph.c (draw_cfg_nodes_no_loops): Likewise.
16335 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
16336 * lcm.c (compute_earliest): Likewise.
16337 (compute_farthest): Likewise.
16338 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
16339 (unroll_loop_runtime_iterations): Likewise.
16340 (unroll_loop_stupid): Likewise.
16341 * lower-subreg.c (decompose_multiword_subregs): Likewise.
16342 * lra-lives.c: Likewise.
16343 * lra.c (lra): Likewise.
16344 * modulo-sched.c (schedule_reg_moves): Likewise.
16345 (optimize_sc): Likewise.
16346 (get_sched_window): Likewise.
16347 (sms_schedule_by_order): Likewise.
16348 (check_nodes_order): Likewise.
16349 (order_nodes_of_sccs): Likewise.
16350 (order_nodes_in_scc): Likewise.
16351 * recog.c (split_all_insns): Likewise.
16352 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
16353 * reload1.c (reload): Likewise.
16354 * sched-rgn.c (haifa_find_rgns): Likewise.
16355 (split_edges): Likewise.
16356 (compute_trg_info): Likewise.
16357 * sel-sched.c (init_seqno): Likewise.
16358 * store-motion.c (remove_reachable_equiv_notes): Likewise.
16359 * tree-into-ssa.c (update_ssa): Likewise.
16360 * tree-ssa-live.c (live_worklist): Likewise.
16361 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
16362 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
16363 * Likewise.
16364 (try_peel_loop): Likewise.
16365 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
16366 * Likewise.
16367 * tree-ssa-pre.c (compute_antic): Likewise.
16368 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
16369 * tree-stdarg.c (reachable_at_most_once): Likewise.
16370 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
16371 * var-tracking.c (vt_find_locations): Likewise.
16372
16373 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16374
16375 * sbitmap.h (auto_sbitmap): New class.
16376
16377 2016-07-26 Alan Modra <amodra@gmail.com>
16378
16379 PR target/72103
16380 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
16381 sri->t_icode.
16382
16383 2016-07-25 David Malcolm <dmalcolm@redhat.com>
16384
16385 * input.c (selftest::temp_source_file::temp_source_file): Fix
16386 missing "%s" in fprintf.
16387
16388 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
16389
16390 PR middle-end/71732
16391 * cselib.c (cselib_process_insn): Invalidate argument slots for
16392 const/pure calls.
16393
16394 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16395
16396 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
16397 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
16398 vmulxh_lane_f16, vmulxh_laneq_f16): New.
16399
16400 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16401
16402 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16403 * config/aarch64/aarch64.md (fma, fnma): Support HF.
16404 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
16405
16406 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16407
16408 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16409 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
16410 New.
16411 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
16412 (add<mode>3): Likewise.
16413 (sub<mode>3): Likewise.
16414 (mul<mode>3): Likewise.
16415 (div<mode>3): Likewise.
16416 (*div<mode>3): Likewise.
16417 (<fmaxmin><mode>3): Extend to HF.
16418 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
16419 (fabd<mode>3): Likewise.
16420 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
16421 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
16422 (aarch64_fmulx<mode>): Likewise.
16423 (aarch64_fac<optab><mode>): Likewise.
16424 (aarch64_frecps<mode>): Likewise.
16425 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
16426 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
16427 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
16428 (VSDQ_HSDI): Support HI.
16429 (fcvt_target, FCVT_TARGET): Likewise.
16430 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
16431 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
16432 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
16433 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
16434 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
16435 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
16436 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
16437 vrsqrtsh_f16): New.
16438
16439 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16440
16441 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
16442 * config/aarch64/aarch64-builtins.c (hi_UP): New.
16443 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16444 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
16445 mode.
16446 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
16447 (aarch64_cm<optab><mode>): Likewise.
16448 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
16449 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
16450 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
16451 (sqrt<mode>2): Likewise.
16452 (*sqrt<mode>2): Likewise.
16453 (abs<mode>2): Likewise.
16454 (<optab><mode>hf2): New pattern for HF mode.
16455 (<optab>hihf2): Likewise.
16456 * config/aarch64/arm_neon.h: Include arm_fp16.h.
16457 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
16458 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
16459 Support HF mode.
16460 * config/aarch64/arm_fp16.h: New file.
16461 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
16462 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
16463 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
16464 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
16465 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
16466 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
16467 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
16468 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
16469 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
16470 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
16471 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
16472 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
16473 vsqrth_f16): New.
16474
16475 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16476
16477 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
16478 reduc_smin_scal_): Use VDQIF_F16.
16479 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
16480 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
16481 Use VHSDF.
16482 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
16483 * config/aarch64/iterators.md (VDQIF_F16): New.
16484 (vp): Support HF modes.
16485 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
16486 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
16487
16488 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16489
16490 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
16491 "*aarch64_mulx_elt_from_dup<mode>".
16492 (*aarch64_mul3_elt<mode>): Update schedule type.
16493 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
16494 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
16495 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
16496 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
16497 (f, fp): Support HF modes.
16498 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
16499 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
16500 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
16501 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
16502 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
16503 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
16504
16505 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16506
16507 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16508 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
16509 modes.
16510 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
16511 vfmsq_f16): New.
16512
16513 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16514
16515 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16516 * config/aarch64/aarch64-simd.md
16517 (aarch64_rsqrts<mode>): Extend to HF modes.
16518 (fabd<mode>3): Likewise.
16519 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
16520 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
16521 (aarch64_<maxmin_uns>p<mode>): Likewise.
16522 (<su><maxmin><mode>3): Likewise.
16523 (<maxmin_uns><mode>3): Likewise.
16524 (<fmaxmin><mode>3): Likewise.
16525 (aarch64_faddp<mode>): Likewise.
16526 (aarch64_fmulx<mode>): Likewise.
16527 (aarch64_frecps<mode>): Likewise.
16528 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
16529 (add<mode>3): Extend to HF modes.
16530 (sub<mode>3): Likewise.
16531 (mul<mode>3): Likewise.
16532 (div<mode>3): Likewise.
16533 (*div<mode>3): Likewise.
16534 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
16535 HF, V4HF and V8HF.
16536 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
16537 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
16538 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
16539 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
16540 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
16541 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
16542 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
16543 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
16544 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
16545 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
16546 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
16547 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
16548 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
16549 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
16550
16551 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16552
16553 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
16554 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16555 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
16556 (neg<mode>2): Likewise.
16557 (abs<mode>2): Likewise.
16558 (<frint_pattern><mode>2): Likewise.
16559 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
16560 (<optab><VDQF:mode><fcvt_target>2): Likewise.
16561 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
16562 (ftrunc<VDQF:mode>2): Likewise.
16563 (<optab><fcvt_target><VDQF:mode>2): Likewise.
16564 (sqrt<mode>2): Likewise.
16565 (*sqrt<mode>2): Likewise.
16566 (aarch64_frecpe<mode>): Likewise.
16567 (aarch64_cm<optab><mode>): Likewise.
16568 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
16569 HF, V4HF and V8HF.
16570 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
16571 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
16572 (stype): New.
16573 * config/aarch64/arm_neon.h (vdup_n_f16): New.
16574 (vdupq_n_f16): Likewise.
16575 (vld1_dup_f16): Use vdup_n_f16.
16576 (vld1q_dup_f16): Use vdupq_n_f16.
16577 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
16578 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
16579 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
16580 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
16581 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
16582 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
16583 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
16584 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
16585 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
16586 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
16587 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
16588 vsqrt_f16, vsqrtq_f16): New.
16589
16590 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16591
16592 * config/aarch64/aarch64-simd.md
16593 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
16594 (aarch64_ext<mode>): Likewise.
16595 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
16596 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
16597 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
16598 and V8HFmode.
16599 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
16600 float16x8_t.
16601 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
16602 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
16603 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
16604 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
16605 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
16606 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
16607 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
16608 New.
16609 (vmov_n_f16): Reimplement using vdup_n_f16.
16610 (vmovq_n_f16): Reimplement using vdupq_n_f16..
16611
16612 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16613
16614 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
16615 "frame_related_p". Generate CFA annotation when it's necessary.
16616 (aarch64_expand_prologue): Use aarch64_add_constant.
16617 (aarch64_expand_epilogue): Likewise.
16618 (aarch64_output_mi_thunk): Pass "false" when calling
16619 aarch64_add_constant.
16620
16621 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16622
16623 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
16624 sequences.
16625
16626 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16627
16628 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
16629 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
16630 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
16631 (aarch64_build_constant): Delete.
16632
16633 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
16634
16635 Revert
16636 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
16637
16638 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
16639 flag_toplevel_reorder.
16640
16641 2016-07-25 Richard Biener <rguenther@suse.de>
16642
16643 * cgraph.c (cgraph_node::verify_node): Compare against builtin
16644 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
16645 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
16646 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
16647 (streamer_get_builtin_tree): Likewise.
16648 (streamer_write_builtin): Likewise.
16649 * lto-streamer.h (LTO_builtin_decl): Remove.
16650 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
16651 (lto_input_scc): Remove LTO_builtin_decl handling.
16652 (lto_input_tree_1): Liekwise.
16653 * lto-streamer-out.c (lto_output_tree_1): Remove special
16654 handling of builtins.
16655 (DFS::DFS): Likewise.
16656 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
16657 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
16658 assert.
16659 (streamer_write_builtin): Remove.
16660
16661 2016-07-25 Martin Liska <mliska@suse.cz>
16662
16663 * lto-cgraph.c (input_symtab): Don't call get_working_sets
16664 if flag_auto_profile is set to true.
16665
16666 2016-07-25 Martin Liska <mliska@suse.cz>
16667
16668 PR gcov-profile/71868
16669 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
16670 have a function with multiple latches, count them all.
16671
16672 2016-07-25 Martin Liska <mliska@suse.cz>
16673
16674 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
16675
16676 2016-07-25 Martin Liska <mliska@suse.cz>
16677
16678 PR tree-optimization/71987
16679 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
16680 just for SSA_NAMEs. Fix GNU coding style.
16681
16682 2016-07-25 Martin Liska <mliska@suse.cz>
16683
16684 PR gcov-profile/64874
16685 * gcov-io.h: Update command about file format.
16686 * gcov-iov.c (main): Adapt the numbering scheme.
16687
16688 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
16689
16690 PR middle-end/66726
16691 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
16692 whose result is used in PHI.
16693 (final_range_test_p): Likewise.
16694 (maybe_optimize_range_tests): Likewise.
16695
16696 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
16697
16698 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16699 Reformat two multi-line strings.
16700
16701 2016-07-22 Martin Sebor <msebor@redhat.com>
16702
16703 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
16704
16705 2016-07-22 Martin Sebor <msebor@redhat.com>
16706
16707 PR c/71560
16708 * doc/extend.texi (Compound Literals): Correct and clarify.
16709 (Cast to Union): Same.
16710
16711 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
16712
16713 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
16714 comments to explain why certain error messages make mention of
16715 undocumented options.
16716 (rs6000_invalid_builtin): Change error messages to replace mention
16717 of undocumented options with mention of the -mcpu=power9 option
16718 that enables those undocumented options.
16719 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
16720 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
16721 definition of this macro to correct an existing error.
16722 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
16723 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
16724 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
16725 descriptions of built-in functions so that they depend on
16726 -mcpu=power9 instead of on the corresponding undocumented flags.
16727 * doc/invoke.texi (Option Summary): Remove all mention of newly
16728 undocumented flags.
16729 (IBM RS/6000 and PowerPC Options): Likewise.
16730 * doc/md.texi (Constraints for Particuliar Machines): Remove all
16731 mention of newly undocumented flags.
16732
16733 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
16734
16735 * ipa-cp.c (determine_versionability): Do not create constprop clones,
16736 when target_clones attribute is set.
16737
16738 2016-07-22 Bin Cheng <bin.cheng@arm.com>
16739
16740 * common.opt (funsafe-loop-optimizations): Mark ignore.
16741 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
16742 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
16743 related code.
16744 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
16745 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
16746
16747 2016-07-22 Bin Cheng <bin.cheng@arm.com>
16748
16749 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
16750 Parameter.
16751 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
16752 Parameter.
16753 (number_of_iterations_exit): Warn missed loop optimization for
16754 possible infinite loops.
16755
16756 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
16757
16758 PR target/71216
16759 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
16760 when to emit a ".machine" pseudo-op.
16761
16762 2016-07-22 Martin Liska <mliska@suse.cz>
16763
16764 PR gcov-profile/69028
16765 PR gcov-profile/62047
16766 * coverage.c (coverage_compute_lineno_checksum): Do not
16767 calculate checksum for fns w/o xloc.file.
16768 (coverage_compute_profile_id): Likewise.
16769
16770 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
16771
16772 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
16773 (avr_secondary_reload): ...and implementation.
16774 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
16775 * config/avr/avr.md (reload_in<mode>): Remove insns.
16776 (adjust_len) [lpm]: Remove insn attribute value.
16777 * config/avr/predicates.md (flash_operand): Remove insn predicate.
16778
16779 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
16780
16781 PR middle-end/71876
16782 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
16783 attribute.
16784 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
16785 * calls.c (special_function_p): Remove the special handling of the
16786 "__builtin_" prefix.
16787
16788 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
16789
16790 PR middle-end/71876
16791 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
16792 if STMT may be an alloca call.
16793 (gimple_alloca_call_p, alloca_call_p): Return only true for the
16794 builtin alloca call.
16795 * calls.h (gimple_maybe_alloca_call_p): New function.
16796 * tree-inline.c (inline_forbidden_p_stmt): Use
16797 gimple_maybe_alloca_call_p here.
16798
16799 2016-07-21 David Malcolm <dmalcolm@redhat.com>
16800
16801 * spellcheck-tree.c (best_macro_match::best_macro_match):
16802 Explictly specify the template arguments when invoking the base
16803 class constructor, to help older C++ compilers.
16804
16805 2016-07-21 Jakub Jelinek <jakub@redhat.com>
16806
16807 PR sanitizer/71953
16808 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
16809 before builtin_decl_implicit.
16810
16811 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16812
16813 * optabs.c (emit_condiitonal_move): Short circuit for identical
16814 sources.
16815
16816 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16817
16818 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
16819 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
16820 (noce_conversion_profitable_p): New.
16821 (noce_try_store_flag_constants): Use it.
16822 (noce_try_addcc): Likewise.
16823 (noce_try_store_flag_mask): Likewise.
16824 (noce_try_cmove): Likewise.
16825 (noce_try_cmove_arith): Likewise.
16826 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
16827 overwriting it.
16828 (noce_convert_multiple_sets): Move cost model to here, from...
16829 (bb_ok_for_noce_convert_multiple_sets) ...here.
16830 (noce_process_if_block): Update calls for above changes.
16831 (noce_find_if_block): Record new noce_if_info parameters.
16832
16833 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16834
16835 * target.def (max_noce_ifcvt_seq_cost): New.
16836 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
16837 * doc/tm.texi: Regenerate.
16838 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
16839 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
16840 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
16841 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
16842 * doc/invoke.texi: Document new params.
16843
16844 2016-07-21 Richard Biener <rguenther@suse.de>
16845
16846 PR tree-optimization/71947
16847 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
16848 ranges have useful limit_vr information.
16849
16850 2016-07-21 Richard Biener <rguenther@suse.de>
16851
16852 * function-tests.c (build_trivial_generic_function): Set
16853 BLOCK_SUPERCONTEXT of DECL_INITIAL.
16854 * omp-low.c (create_omp_child_function): Likewise.
16855 (grid_expand_target_grid_body): Likewise.
16856 * cgraphunit.c (init_lowered_empty_function): Likewise.
16857 (cgraph_node::expand_thunk): Likewise.
16858 * tree-parloops.c (create_loop_fn): Likewise.
16859 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
16860
16861 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16862
16863 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
16864 in comment.
16865
16866 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
16867
16868 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
16869 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
16870 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
16871 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
16872 values for insn attribute.
16873 * config/avr/avr.c (avr_out_insert_notbit): New function.
16874 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
16875 ADJUST_LEN_INSV_NOTBIT_0/_7.
16876 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
16877
16878 2016-07-21 Bin Cheng <bin.cheng@arm.com>
16879
16880 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
16881 (chrec_convert_1, chrec_convert): Ditto.
16882 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
16883 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
16884 * tree-vrp.c (adjust_range_with_scev): Ditto.
16885 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
16886 (scev_var_range_cant_overflow): New function.
16887 (scev_probably_wraps_p): New parameter. Call above function.
16888 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
16889
16890 2016-07-21 Bin Cheng <bin.cheng@arm.com>
16891
16892 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
16893 by removing computation of may_be_zero.
16894
16895 2016-07-21 Jakub Jelinek <jakub@redhat.com>
16896
16897 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
16898
16899 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
16900
16901 Improving concepts performance and diagnostics.
16902 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
16903 for constraint satisfaction and subsumption.
16904 * timevar.h (auto_timevar): New constructor that matches the push/pop
16905 pattern of usage in pt.c.
16906
16907 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
16908
16909 * hwint.h (HOST_WIDE_INT_0): New define.
16910 (HOST_WIDE_INT_0U): Ditto.
16911 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
16912 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
16913 * simplify-rtx.c: Ditto.
16914 * tree-object-size.c: Ditto.
16915
16916 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16917
16918 * config/s390/s390.c (s390_encode_section_info): Remove mode size
16919 check.
16920
16921 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
16922
16923 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
16924 * combine.c: Use HOST_WIDE_INT_M1U instead of
16925 ~(unsigned HOST_WIDE_INT) 0.
16926 * double-int.h: Ditto.
16927 * dse.c: Ditto.
16928 * dwarf2asm.c:Ditto.
16929 * expmed.c: Ditto.
16930 * genmodes.c: Ditto.
16931 * match.pd: Ditto.
16932 * read-rtl.c: Ditto.
16933 * tree-ssa-loop-ivopts.c: Ditto.
16934 * tree-ssa-loop-prefetch.c: Ditto.
16935 * tree-vect-generic.c: Ditto.
16936 * tree-vect-patterns.c: Ditto.
16937 * tree.c: Ditto.
16938
16939 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16940
16941 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
16942 constant addresses outside [0,0xc0] into a register.
16943 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
16944 cases where the base address register is unused after.
16945 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
16946 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
16947 (avr_out_store_psi_reg_disp_tiny): Same.
16948
16949 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16950
16951 Implement attribute progmem on reduced Tiny cores by adding
16952 flash offset 0x4000 to respective symbols.
16953
16954 PR target/71948
16955 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
16956 documentation how it works on reduced Tiny cores.
16957 (AVR Named Address Spaces): No support for reduced Tiny.
16958 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
16959 (avr_address_tiny_pm_p): New static function.
16960 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
16961 if the address is in progmem.
16962 (avr_assemble_integer): Same.
16963 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
16964 for symbol_ref in progmem.
16965 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
16966 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
16967 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
16968
16969 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
16970
16971 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
16972 * configure: Regenerate.
16973 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
16974 (USE_THIN_ARCHIVES): New variable.
16975 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
16976 this archive as a thin archive.
16977
16978 2016-07-20 David Malcolm <dmalcolm@redhat.com>
16979
16980 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
16981 same location as last time, don't skip if we have fix-it hints.
16982 Clarify the skipping logic by converting it from one "if" clause
16983 to repeated "if" clauses.
16984 * spellcheck-tree.c: Include "cpplib.h".
16985 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
16986 (best_macro_match::best_macro_match): New constructor.
16987 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
16988 Move here from c/c-decl.c.
16989 (class best_macro_match): Move here from c/c-decl.c, converting
16990 from a typedef to a subclass, gaining a ctor.
16991
16992 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16993
16994 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
16995 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
16996 define...
16997 (avr_addr_space_diagnose_usage): ...and implementation.
16998 (avr_addr_space_supported_p): New function.
16999 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
17000 report bad address space usage if that space is supported.
17001 (avr_insert_attributes): Same. No more complain about unsupported
17002 address spaces.
17003 * config/avr/avr-c.c (tm_p.h): Include it.
17004 (avr_cpu_cpp_builtins): Only define addr-space related built-in
17005 macro if avr_addr_space_supported_p.
17006
17007 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
17008
17009 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
17010 flag_toplevel_reorder.
17011
17012 2016-07-20 David Malcolm <dmalcolm@redhat.com>
17013
17014 * gcc-rich-location.c
17015 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
17016 a const char *.
17017 * gcc-rich-location.h
17018 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
17019
17020 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17021
17022 * target.def (addr_space): Add new diagnose_usage to hook vector.
17023 * targhooks.c (default_addr_space_diagnose_usage): Add default
17024 implementation and...
17025 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
17026 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
17027 is some address space, call targetm.addr_space.diagnose_usage.
17028 * doc/tm.texi.in (Named Address Spaces): Add anchor for
17029 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
17030 * doc/tm.texi: Regenerate.
17031
17032 2016-07-20 Martin Liska <mliska@suse.cz>
17033
17034 PR middle-end/71898
17035 * graphite-isl-ast-to-gimple.c (later_of_the_two):
17036 Properly handly PHI stmts.
17037
17038 2016-07-20 Bin Cheng <bin.cheng@arm.com>
17039
17040 PR tree-optimization/71503
17041 PR tree-optimization/71683
17042 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
17043 and break.
17044
17045 2016-07-20 Martin Liska <mliska@suse.cz>
17046
17047 * doc/invoke.texi (-fipa-ra): Document when the option is
17048 disabled. Fix a typo.
17049
17050 2016-07-20 Martin Liska <mliska@suse.cz>
17051
17052 * Makefile.in: Include fibonacci_heap.c
17053 * fibonacci_heap.c: New file.
17054 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
17055 (fibonacci_heap::union_with): Fix deletion of the second heap.
17056 * selftest-run-tests.c (selftest::run_tests): Incorporate
17057 fibonacci heap tests.
17058 * selftest.h: Declare fibonacci_heap_c_tests.
17059
17060 2016-07-20 Martin Liska <mliska@suse.cz>
17061
17062 * selftest-run-tests.c (selftest::run_tests): New function.
17063 * selftest.h (sreal_c_tests): Declare.
17064 * sreal.c (sreal_verify_basics): New function.
17065 (verify_aritmetics): Likewise.
17066 (sreal_verify_arithmetics): Likewise.
17067 (verify_shifting): Likewise.
17068 (sreal_verify_shifting): Likewise.
17069 (void sreal_c_tests): Likewise.
17070
17071 2016-07-19 Jakub Jelinek <jakub@redhat.com>
17072
17073 PR rtl-optimization/71916
17074 * cfgrtl.c (contains_no_active_insn_p): Return false also for
17075 bb which have a single succ fake edge.
17076
17077 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
17078
17079 PR debug/71855
17080 * dwarf2out.c (gen_subprogram_die): Only call
17081 gen_unspecified_parameters_die while dumping early dwarf.
17082
17083 2016-07-19 Jakub Jelinek <jakub@redhat.com>
17084
17085 PR middle-end/71874
17086 * gimple-fold.c (fold_builtin_memory_op): Use
17087 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
17088
17089 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
17090
17091 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
17092 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
17093 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
17094 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
17095 * combine.c: Ditto.
17096 * cse.c: Ditto.
17097 * dojump.c: Ditto.
17098 * double-int.c: Ditto.
17099 * dse.c: Ditto.
17100 * dwarf2out.c: Ditto.
17101 * expmed.c: Ditto.
17102 * expr.c: Ditto.
17103 * fold-const.c: Ditto.
17104 * function.c: Ditto.
17105 * fwprop.c: Ditto.
17106 * genmodes.c: Ditto.
17107 * hwint.c: Ditto.
17108 * hwint.h: Ditto.
17109 * ifcvt.c: Ditto.
17110 * loop-doloop.c: Ditto.
17111 * loop-invariant.c: Ditto.
17112 * loop-iv.c: Ditto.
17113 * match.pd: Ditto.
17114 * optabs.c: Ditto.
17115 * real.c: Ditto.
17116 * reload.c: Ditto.
17117 * rtlanal.c: Ditto.
17118 * simplify-rtx.c: Ditto.
17119 * stor-layout.c: Ditto.
17120 * toplev.c: Ditto.
17121 * tree-ssa-loop-ivopts.c: Ditto.
17122 * tree-vect-generic.c: Ditto.
17123 * tree-vect-patterns.c: Ditto.
17124 * tree.c: Ditto.
17125 * tree.h: Ditto.
17126 * ubsan.c: Ditto.
17127 * varasm.c: Ditto.
17128 * wide-int-print.cc: Ditto.
17129 * wide-int.cc: Ditto.
17130 * wide-int.h: Ditto.
17131
17132 2016-07-19 David Malcolm <dmalcolm@redhat.com>
17133
17134 * selftest.c (selftest::assert_streq): Handle NULL values of
17135 val_actual and val_expected.
17136
17137 2016-07-19 Martin Jambor <mjambor@suse.cz>
17138
17139 PR fortran/71688
17140 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
17141 rather than cgraph_create_node to get a call graph node.
17142
17143 2016-07-19 Richard Biener <rguenther@suse.de>
17144
17145 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
17146 handle all tcc_constant bases and valueize SSA names.
17147 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
17148 tcc_constant bases.
17149
17150 2016-07-19 David Malcolm <dmalcolm@redhat.com>
17151
17152 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
17153 the flags of the exit block and bb2, not just the entry block.
17154
17155 2016-07-19 Richard Biener <rguenther@suse.de>
17156
17157 PR tree-optimization/71901
17158 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
17159 align member, group stuff with the bitfield.
17160 (vn_ref_op_align_unit): New inline.
17161 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
17162 record element alignment and operand 3 unchanged.
17163 (ao_ref_init_from_vn_reference): Adjust.
17164 (valueize_refs_1): Likewise.
17165 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
17166
17167 2016-07-19 Richard Biener <rguenther@suse.de>
17168
17169 PR tree-optimization/71908
17170 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
17171 symbolic constants in a more reliable way.
17172
17173 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
17174
17175 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
17176 comment.
17177 (vect_update_inits_of_drs): Likewise.
17178 (vect_create_cond_for_alias_checks): Likewise.
17179 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
17180
17181 2016-07-19 Richard Biener <rguenther@suse.de>
17182
17183 PR lto/71907
17184 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
17185 with an abstract origin that is not an inlined function outer
17186 scope add a self-reference as abstract origin.
17187 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
17188
17189 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
17190
17191 PR target/71493
17192 * config/rs6000/rs6000.c (rs6000_function_value): Fix
17193 unintentional System V.4 structure return breakage for structures
17194 with a single floating point element.
17195
17196 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
17197
17198 PR tree-optimization/71734
17199 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
17200 contains REF, use it to check safelen, assume that safelen value
17201 must be greater 1, fix style.
17202 (ref_indep_loop_p_2): Add REF_LOOP argument.
17203 (ref_indep_loop_p): Pass LOOP as additional argument to
17204 ref_indep_loop_p_2.
17205
17206 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
17207
17208 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
17209 allocation in the prologue.
17210 * explow.c (get_dynamic_stack_base): New function to return an address
17211 expression for the dynamic stack base.
17212 (get_dynamic_stack_size): New function to do the required dynamic stack
17213 space size calculations.
17214 (allocate_dynamic_stack_space): Use new functions.
17215 (align_dynamic_address): Move some code from
17216 allocate_dynamic_stack_space to new function.
17217 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
17218
17219 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17220
17221 * config/s390/s390.c (s390_encode_section_info): Always set
17222 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
17223 found.
17224
17225 2016-07-18 Richard Biener <rguenther@suse.de>
17226
17227 PR tree-optimization/71893
17228 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
17229 for sizetype cast added by array_ref_element_size.
17230 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
17231
17232 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
17233
17234 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
17235 register parameters. Remove code to initialize argument pointer
17236 on TARGET_64BIT. Optimize call to _mcount when it can be reached
17237 using a pc-relative branch. Cleanup conditional code.
17238 * config/pa/pa.md (call_mcount): New expander.
17239 (call_mcount_nonpic): New insn.
17240 (call_mcount_pic): New insn and split.
17241 (call_mcount_pic_post_reload): New insn.
17242 (call_mcount_64bit): New insn and split.
17243 (call_mcount_64bit_post_reload): New insn.
17244
17245 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
17246
17247 * config/avr/predicates.md (const_m255_to_m1_operand): New.
17248 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
17249 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
17250 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
17251 (*usum_widenqihi3, *udiff_widenqihi3)
17252 (*addhi3_zero_extend.const): New combiner insns.
17253 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
17254 just 1 bit is affected.
17255 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
17256 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
17257
17258 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
17259
17260 * omp-low.c (lower_omp_target): Mark data clauses with
17261 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
17262 zero-length subarrays.
17263
17264 2016-07-15 Richard Biener <rguenther@suse.de>
17265
17266 PR tree-optimization/71881
17267 * tree-loop-distribution.c (destroy_loop): Remove blocks in
17268 reverse DOM order to make debug temp generation happy.
17269
17270 2016-07-15 Richard Biener <rguenther@suse.de>
17271
17272 PR tree-optimization/71887
17273 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
17274 verify it is not zero for division / modulo handling.
17275 (value_replacement): Adjust.
17276
17277 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
17278 Julian Brown <julian@codesourcery.com>
17279
17280 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
17281 * config/aarch64/aarch64-cost-tables.h
17282 (vulcan_extra_costs): New variable.
17283 * config/aarch64/aarch64.c
17284 (vulcan_addrcost_table): Likewise.
17285 (vulcan_regmove_cost): Likewise.
17286 (vulcan_vector_cost): Likewise.
17287 (vulcan_branch_cost): Likewise.
17288 (vulcan_tunings): Likewise.
17289
17290 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
17291
17292 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
17293 (output_in_order): Loop over undefined variables too. Output them
17294 via assemble_undefined_decl. Skip variables that correspond to hard
17295 registers or have value-exprs.
17296 * varpool.c (symbol_table::output_variables): Handle undefined
17297 variables together with defined ones.
17298
17299 2016-07-15 Richard Biener <rguenther@suse.de>
17300
17301 * tree-ssa-pre.c (get_representative_for): Make sure to return
17302 the value number of SSA names.
17303 (phi_translate_1): get_representative_for cannot return NULL.
17304 (do_pre_regular_insertion): Remove redundant call to
17305 fully_constant_expression.
17306 (do_pre_partial_partial_insertion): Likewise.
17307
17308 2016-07-15 Bin Cheng <bin.cheng@arm.com>
17309
17310 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
17311 (derive_simple_iv_with_niters): New function.
17312 (simple_iv): Rewrite using simple_iv_with_niters.
17313 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
17314 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
17315 function.
17316 (number_of_iterations_exit): Rewrite using above function.
17317 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
17318 Decl.
17319
17320 2016-07-15 Richard Biener <rguenther@suse.de>
17321
17322 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
17323 vec_construct cost.
17324
17325 2016-07-14 Jakub Jelinek <jakub@redhat.com>
17326
17327 PR tree-optimization/71872
17328 * tree-data-ref.c (get_references_in_stmt): Ignore references
17329 with is_gimple_constant get_base_address.
17330
17331 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17332
17333 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
17334 (TARGET_HAVE_LDACQD): New macro.
17335 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
17336 than TARGET_HAVE_LDACQ.
17337 (arm_load_acquire_exclusivedi): Likewise.
17338 (arm_store_release_exclusivedi): Likewise.
17339
17340 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17341
17342 PR rtl-optimization/71878
17343 * lra-constraints.c (match_reload): Pass information about other
17344 output operands. Create new unique register value if matching input
17345 operand shares same register value as output operand being considered.
17346 (curr_insn_transform): Record output operands already processed.
17347
17348 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17349
17350 PR target/65951
17351 PR tree-optimization/70923
17352 * tree-vect-patterns.c: Include mult-synthesis.h.
17353 (target_supports_mult_synth_alg): New function.
17354 (synth_lshift_by_additions): Likewise.
17355 (apply_binop_and_append_stmt): Likewise.
17356 (vect_synth_mult_by_constant): Likewise.
17357 (target_has_vecop_for_code): Likewise.
17358 (vect_recog_mult_pattern): Use above functions to synthesize vector
17359 multiplication by integer constants.
17360
17361 2016-07-14 Alan Modra <amodra@gmail.com>
17362
17363 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
17364 gpr alternatives. Correct '*' placement on Y,r alternative.
17365 Add '*' on operand 1 of r,r alternative.
17366
17367 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17368
17369 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
17370 * expmed.h: ... Here.
17371
17372 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
17373
17374 * gimple.h (stmt_can_terminate_bb_p): New function.
17375 * tree-cfg.c (need_fake_edge_p): Rename to ...
17376 (stmt_can_terminate_bb_p): ... this; return true if stmt can
17377 throw external; handle const and pure calls.
17378 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
17379
17380 2016-07-14 Richard Biener <rguenther@suse.de>
17381
17382 PR tree-optimization/71866
17383 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
17384 (do_hoist_insertion): Avoid endless recursion when we
17385 didn't insert anything because we managed to simplify
17386 things down to a constant or SSA name.
17387 (fully_constant_expression): Re-write in terms of ...
17388 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
17389 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
17390 vn_nary_build_or_lookup_1.
17391 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
17392 (vn_nary_build_or_lookup): ... this which now wraps it.
17393
17394 2016-07-14 Alan Modra <amodra@gmail.com>
17395
17396 PR target/71733
17397 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
17398 with p9_vector override before power9-dform override.
17399
17400 2016-07-13 Andi Kleen <ak@linux.intel.com>
17401
17402 * value-prof.c (gimple_value_profile_transformations): Don't run
17403 when auto_profile is on.
17404
17405 2016-07-13 Andi Kleen <ak@linux.intel.com>
17406
17407 * auto-profile.c (update_inlined_ind_target,
17408 afdo_indirect_call): Print information to dump file.
17409
17410 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
17411
17412 * genrecog.c (special_predicate_operand_p): New function.
17413 (predicate_name): Move function.
17414 (validate_pattern): Don't warn about missing mode for all
17415 define_special_predicate predicates.
17416
17417 2016-07-13 Bin Cheng <bin.cheng@arm.com>
17418
17419 * tree-vect-data-refs.c (vect_no_alias_p): New function.
17420 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
17421 resolve alias checks which are known at compilation time.
17422 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
17423 alias checks are resolved. Move dump info for too many runtime
17424 alias checks to here...
17425 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
17426
17427 2016-07-13 Richard Biener <rguenther@suse.de>
17428
17429 PR tree-optimization/24574
17430 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
17431 position and add shift, rotate, divison and modulo support
17432 for left zero.
17433 (value_replacement): Pass in argument position to absorbing_element_p.
17434
17435 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
17436
17437 PR ipa/71633
17438 * ipa-inline-transform.c (inline_call): Support
17439 instrumented thunks.
17440
17441 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17442
17443 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
17444 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
17445 divide feature.
17446 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
17447 Baseline. Make initial alternative TARGET_32BIT only.
17448 (udivsi3): Likewise.
17449 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
17450 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
17451 target.
17452
17453 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17454
17455 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
17456 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
17457 availability with TARGET_HAVE_MOVT.
17458 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
17459 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
17460 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
17461 UINTVAL.
17462 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
17463 extra instruction if MOVW is available. Use a cost variable
17464 incremented by COSTS_N_INSNS (1) when the condition match rather than
17465 returning an arithmetic expression based on COSTS_N_INSNS. Make
17466 constant with bottom half word zero cost 2 instruction if MOVW is
17467 available.
17468 * config/arm/arm.md (define_attr "arch"): Add v8mb.
17469 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
17470 target is ARMv8-M Baseline.
17471 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
17472 (arm_movtas_ze): Likewise.
17473 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
17474 alternative for constants satisfying j constraint.
17475 (thumb1_movsi_insn): Likewise.
17476 (movsi splitter for K alternative): Tighten condition to not trigger
17477 if movt is available and j constraint is satisfied.
17478 (Pe immediate splitter): Likewise.
17479 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
17480 constant fitting in an halfword to use MOVW.
17481 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
17482 effective target.
17483
17484 2016-07-13 Richard Biener <rguenther@suse.de>
17485
17486 PR middle-end/71104
17487 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
17488 gimplifying the LHS. Make sure to gimplify a returning twice
17489 call LHS without using SSA names.
17490
17491 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17492
17493 * tree-data-ref.c (find_data_references_in_stmt): Remove
17494 unnecessary call to vec::release.
17495 (graphite_find_data_references_in_stmt): Likewise.
17496 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
17497 * tree-vect-stmts.c (vectorizable_condition): Likewise.
17498
17499 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17500
17501 * cfgexpand.c (expand_used_vars): Make the type of a local
17502 variable auto_vec.
17503 * genmatch.c (lower_for): Likewise.
17504 * haifa-sched.c (haifa_sched_init): Likewise.
17505 (add_to_speculative_block): Likewise.
17506 (create_check_block_twin): Likewise.
17507 * predict.c (handle_missing_profiles): Likewise.
17508 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
17509 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
17510 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
17511 Likewise.
17512 (maybe_lower_iteration_bound): Likewise.
17513 * tree-ssa-sccvn.c (DFS): Likewise.
17514 * tree-stdarg.c (reachable_at_most_once): Likewise.
17515 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
17516 (vectorizable_store): Likewise.
17517
17518 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17519
17520 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
17521 (sccvn_dom_walker): make cond_stack an auto_vec.
17522
17523 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17524
17525 * ree.c (struct ext_state): Make type of members auto_vec.
17526 (find_and_remove_re): Adjust.
17527
17528 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17529
17530 * cfgexpand.c (struct stack_vars_data): Make type of fields
17531 auto_vec.
17532 (expand_used_vars): Adjust.
17533
17534 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17535
17536 * ipa.c (record_cdtor_fn): Adjust.
17537 (build_cdtor_fns): Likewise.
17538 (ipa_cdtor_merge): Make static_ctors and static_dtors local
17539 variables.
17540
17541 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17542
17543 * genextract.c (struct accum_extract): Add constructor and make
17544 members auto_vec.
17545 (gen_insn): Adjust.
17546
17547 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17548
17549 * tree.c (struct free_lang_data_d): Add constructor and change
17550 types of members to ones that automatically manage resources.
17551 (fld_worklist_push): Adjust.
17552 (find_decls_types): Likewise.
17553 (find_decls_types_in_eh_region): Likewise.
17554 (free_lang_data_in_cgraph): Stop manually creating and
17555 destroying members of free_lang_data_d.
17556
17557 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
17558
17559 PR rtl-optimization/68961
17560 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
17561 peephole variant. Use sse_reg_operand predicates.
17562
17563 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
17564
17565 * config/i386/predicates.md (x86_64_immediate_operand)
17566 <case CONST_INT>: Remove unneeded truncation to DImode.
17567 <case CONST>: Ditto.
17568 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
17569
17570 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17571
17572 PR target/71805
17573 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
17574 The xxperm and xxpermr instructions require that the 2nd input
17575 operand overlap with the output operand, and not the 1st.
17576 (altivec_vperm_v8hiv16qi): Likewise.
17577 (altivec_vperm_<mode>_uns_internal): Likewise.
17578 (altivec_vpermr_<mode>_internal): Likewise.
17579 (vperm_v8hiv4si): Likewise.
17580 (vperm_v16qiv8hi): Likewise.
17581
17582 2016-07-12 Nathan Sidwell <nathan@acm.org>
17583
17584 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
17585 when -mno-pic-data-is-text-relative is in effect, by default.
17586 * doc/invoke.texi (mpic-data-is-text-relative): Document new
17587 behavior and clarify.
17588
17589 2016-07-12 Martin Liska <mliska@suse.cz>
17590
17591 * params.def: Add avg-loop niter.
17592 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
17593 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
17594 * doc/invoke.texi: Document the new parameter.
17595
17596 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17597
17598 PR middle-end/71700
17599 * expr.c (store_constructor): Mask sign-extended bits when widening
17600 sub-word constructor element at the start of a word.
17601
17602 2016-07-12 Martin Liska <mliska@suse.cz>
17603
17604 * Makefile.in: Append rule for params-options.h.
17605 * params-options.h: New file.
17606
17607 2016-07-12 Martin Liska <mliska@suse.cz>
17608
17609 * ira-build.c (mark_loops_for_removal): Properly iterate
17610 loops.
17611
17612 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
17613 Richard Biener <rguenther@suse.de>
17614
17615 PR tree-optimization/23286
17616 PR tree-optimization/70159
17617 * doc/invoke.texi: Document -fcode-hoisting.
17618 * common.opt (fcode-hoisting): New flag.
17619 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
17620 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
17621 (do_regular_insertion): Rename to ...
17622 (do_pre_regular_insertion): ... this and amend general comments
17623 on insertion strathegy.
17624 (do_partial_partial_insertion): Rename to ...
17625 (do_pre_partial_partial_insertion): ... this.
17626 (do_hoist_insertion): New function.
17627 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
17628 and call do_hoist_insertion properly.
17629 (insert): Adjust.
17630 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
17631 (pass_pre::execute): Register hoist_insert stats.
17632
17633 2016-07-12 Jakub Jelinek <jakub@redhat.com>
17634
17635 PR middle-end/71716
17636 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
17637 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
17638 is different from mode's bitsize. Small cleanup.
17639
17640 2016-07-12 Richard Biener <rguenther@suse.de>
17641
17642 PR rtl-optimization/68961
17643 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
17644 to simplify to a non-constant.
17645
17646 2016-07-11 Jakub Jelinek <jakub@redhat.com>
17647
17648 PR middle-end/71758
17649 * omp-low.c (expand_omp_target): Gimplify device.
17650
17651 PR tree-optimization/71823
17652 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
17653 to get vec_oprnds2 from op2.
17654
17655 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
17656
17657 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
17658 Hoist common subexpressions.
17659 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
17660
17661 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
17662
17663 PR target/71800
17664 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
17665 prevent generation of 'stxsiwx' on pre Power8 hardware.
17666
17667 2016-07-11 David Malcolm <dmalcolm@redhat.com>
17668
17669 * input.c: Include cpplib.h.
17670 (selftest::temp_source_file): New class.
17671 (selftest::temp_source_file::temp_source_file): New ctor.
17672 (selftest::temp_source_file::~temp_source_file): New dtor.
17673 (selftest::should_have_column_data_p): New function.
17674 (selftest::test_should_have_column_data_p): New function.
17675 (selftest::temp_line_table): New class.
17676 (selftest::temp_line_table::temp_line_table): New ctor.
17677 (selftest::temp_line_table::~temp_line_table): New dtor.
17678 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
17679 it to create a temp_line_table.
17680 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
17681 locations that are known to have column data.
17682 (selftest::line_table_case): New struct.
17683 (selftest::test_reading_source_line): Move tempfile handling
17684 to class temp_source_file.
17685 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
17686 (selftest::assert_token_loc_eq): New function.
17687 (ASSERT_TOKEN_LOC_EQ): New macro.
17688 (selftest::test_lexer): New function.
17689 (selftest::boundary_locations): New array.
17690 (selftest::input_c_tests): Call test_should_have_column_data_p.
17691 Loop over a test matrix of interesting values of location and
17692 default_range_bits, calling test_lexer on each case in the matrix.
17693 Move call to test_accessing_ordinary_linemaps into the matrix.
17694 * selftest.h (ASSERT_EQ): Reimplement in terms of...
17695 (ASSERT_EQ_AT): New macro.
17696
17697 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
17698
17699 PR target/71801
17700 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
17701 Don't convert TImode in debug insn.
17702
17703 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
17704
17705 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
17706 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
17707 (tree_type_common::lang_flag_7): New.
17708 (tree_type_common::spare): Reduce size.
17709 * tree.h (TYPE_ALIGN_OK): Remove.
17710 (TYPE_LANG_FLAG_7): New.
17711 (get_inner_reference): Adjust header.
17712 * print-tree.c (print_node): Adjust.
17713 * expr.c (get_inner_reference): Remove parameter keep_aligning.
17714 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
17715 calls to get_inner_reference.
17716 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
17717 handling of TYPE_ALIGN_OK.
17718 * builtins.c (get_object_alignment_2): Adjust call to
17719 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
17720 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
17721 TYPE_ALIGN_OK.
17722 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
17723 * cfgexpand.c (expand_debug_expr): Likewise.
17724 * dbxout.c (dbxout_expand_expr): Likewise.
17725 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
17726 loc_list_from_tree, fortran_common): Likewise.
17727 * fold-const.c (optimize_bit_field_compare,
17728 decode_field_reference, fold_unary_loc, fold_comparison,
17729 split_address_to_core_and_offset): Likewise.
17730 * gimple-laddress.c (execute): Likewise.
17731 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
17732 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
17733 * hsa-gen.c (gen_hsa_addr): Likewise.
17734 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
17735 * tsan.c (instrument_expr): Likewise.
17736 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
17737 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
17738 * tree-affine.c (tree_to_aff_combination,
17739 get_inner_reference_aff): Adjust calls to get_inner_reference.
17740 * tree-data-ref.c (split_constant_offset_1,
17741 dr_analyze_innermost): Likewise.
17742 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
17743 * tree-sra.c (ipa_sra_check_caller): Likewise.
17744 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
17745 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
17746 bswap_replace): Likewise.
17747 * tree-vect-data-refs.c (vect_check_gather,
17748 vect_analyze_data_refs): Likewise.
17749 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
17750 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
17751 TYPE_ALIGN_OK.
17752
17753 2016-07-11 David Malcolm <dmalcolm@redhat.com>
17754
17755 * Makefile.in (selftest-valgrind): New phony target.
17756 * function-tests.c (selftest::build_cfg): Delete pass instances
17757 created by the test.
17758 (selftest::convert_to_ssa): Likewise.
17759 (selftest::test_expansion_to_rtl): Likewise.
17760 * tree-cfg.c (selftest::test_linear_chain): Release dominator
17761 vectors.
17762 (selftest::test_diamond): Likewise.
17763
17764 2016-07-11 Richard Biener <rguenther@suse.de>
17765
17766 PR tree-optimization/71816
17767 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
17768 than replacing all of its operands.
17769
17770 2016-07-11 Alan Modra <amodra@gmail.com>
17771
17772 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
17773 (ctr<mode>): Add unspec.
17774 (ctr<mode>_internal*): Likewise.
17775
17776 2016-07-08 James Bowman <james.bowman@ftdichip.com>
17777
17778 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
17779 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
17780
17781 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
17782
17783 PR rtl-optimization/71621
17784 * lra-constraints.c (process_alt_operands): Check combination of
17785 reg class and mode.
17786
17787 2016-07-08 Jason Merrill <jason@redhat.com>
17788 Richard Biener <rguenther@suse.de>
17789
17790 P0145: Refining Expression Order for C++.
17791 * gimplify.c (initial_rhs_predicate_for): New.
17792 (gimplfy_modify_expr): Gimplify RHS before LHS.
17793
17794 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17795
17796 PR target/71297
17797 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17798 Allow standard error handling to take over when a wrong number
17799 of arguments is presented to __builtin_vec_ld () or
17800 __builtin_vec_st ().
17801
17802 2016-07-08 Jiong Wang <jiong.wang@arm.com>
17803
17804 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
17805 variants.
17806 (smin): Likewise.
17807 (fmax): New entry.
17808 (fmin): Likewise.
17809 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
17810 __builtin_aarch64_fmaxv2sf.
17811 (vmaxnmq_f32): Likewise.
17812 (vmaxnmq_f64): Likewise.
17813 (vminnm_f32): Likewise.
17814 (vminnmq_f32): Likewise.
17815 (vminnmq_f64): Likewise.
17816
17817 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
17818
17819 PR target/71806
17820 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
17821 enable -mfloat128-hardware by default.
17822 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
17823 that IEEE 128-bit hardware support needs.
17824 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
17825 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
17826 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
17827 floating point requires.
17828 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
17829 -mfloat128 and -mfloat128-hardware changes.
17830
17831 2016-07-08 Alan Hayward <alan.hayward@arm.com>
17832
17833 PR tree-optimization/71667
17834 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
17835
17836 2016-07-08 Martin Liska <mliska@suse.cz>
17837
17838 PR middle-end/71606
17839 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
17840 folding produces SAVE_EXPRs, thus return false for the type.
17841
17842 2016-07-07 Martin Liska <mliska@suse.cz>
17843
17844 * file-find.c (remove_prefix): New function.
17845 * file-find.h (remove_prefix): Declare the function.
17846 * gcc-ar.c (main): Skip a folder of the wrapper if
17847 a wrapped binary would point to the same file.
17848
17849 2016-07-07 Jan Hubicka <jh@suse.cz>
17850
17851 * tree-scalar-evolution.c (iv_can_overflow_p): export.
17852 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
17853 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
17854
17855 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
17856
17857 PR ipa/71624
17858 * ipa-inline-analysis.c (compute_inline_parameters): Set
17859 local.can_change_signature to false for intrumentation
17860 thunk callees.
17861
17862 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17863
17864 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
17865 with TARGET_HAVE_MOVT.
17866 (TARGET_HAVE_MOVT): Define.
17867 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
17868 availability with TARGET_HAVE_MOVT.
17869 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
17870 availability.
17871 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
17872 TARGET_THUMB2.
17873 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
17874 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
17875 * config/arm/constraints.md (define_constraint "j"): Use
17876 TARGET_HAVE_MOVT to check MOVT availability.
17877
17878 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17879
17880 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
17881
17882 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17883
17884 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
17885 (armv8-m.main): Likewise.
17886 (armv8-m.main+dsp): Likewise.
17887 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
17888 (FL_FOR_ARCH8M_MAIN): Likewise.
17889 * config/arm/arm-tables.opt: Regenerate.
17890 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
17891 armv8-m.main+dsp to BE8_LINK_SPEC.
17892 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
17893 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
17894 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
17895 Baseline and Mainline.
17896 (arm_option_override_internal): Also disable arm_restrict_it when
17897 !arm_arch_notm. Update comment for -munaligned-access to also cover
17898 ARMv8-M Baseline.
17899 (arm_file_start): Increase buffer size for printing architecture name.
17900 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
17901 and armv8-m.main+dsp.
17902 (mno-unaligned-access): Clarify that this is disabled by default for
17903 ARMv8-M Baseline architectures as well.
17904
17905 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17906
17907 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
17908 decide whether to prevent some libgcc routines being included for some
17909 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
17910 link between this condition and the one in
17911 libgcc/config/arm/lib1func.S.
17912
17913 2016-07-07 Richard Biener <rguenther@suse.de>
17914
17915 * tree-ssa-pre.c: Include alias.h.
17916 (compute_avail): If we have multiple VN_REFERENCEs with the
17917 same hashtable entry adjust that to make it a valid replacement
17918 for all of them with respect to alignment and aliasing
17919 when doing insertion.
17920 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
17921 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
17922
17923 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
17924
17925 PR target/70098
17926 PR target/71763
17927 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
17928 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
17929 constraint.
17930
17931 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17932
17933 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
17934 (adjust_mems): Adjust.
17935 (adjust_insn): Likewise.
17936 (prepare_call_arguments): Likewise.
17937
17938 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17939
17940 * gcse.c (struct ls_expr): Make stores field a vector.
17941 (ldst_entry): Adjust.
17942 (free_ldst_entry): Likewise.
17943 (print_ldst_list): Likewise.
17944 (compute_ld_motion_mems): Likewise.
17945 (update_ld_motion_stores): Likewise.
17946
17947 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17948
17949 * gcse.c (struct ls_expr): Remove loads field.
17950 (ldst_entry): Adjust.
17951 (free_ldst_entry): Likewise.
17952 (print_ldst_list): Likewise.
17953 (compute_ld_motion_mems): Likewise.
17954
17955 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17956
17957 * store-motion.c (struct st_expr): Make antic_stores a vector.
17958 (st_expr_entry): Adjust.
17959 (free_st_expr_entry): Likewise.
17960 (print_store_motion_mems): Likewise.
17961 (find_moveable_store): Likewise.
17962 (compute_store_table): Likewise.
17963 (remove_reachable_equiv_notes): Likewise.
17964 (replace_store_insn): Likewise.
17965 (build_store_vectors): Likewise.
17966
17967 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17968
17969 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
17970 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
17971
17972 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
17973
17974 PR tree-optimization/71518
17975 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
17976 misalign also for outer loops with negative step.
17977
17978 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
17979
17980 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
17981 (cortex_a53_shift): Add mov_shift.
17982 (cortex_a53_shift_reg): Add new reservation for register shifts.
17983 (cortex_a53_alu): Remove bfm.
17984 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
17985 (cortex_a53_alu_extr): Add new reservation for EXTR.
17986 (bypasses): Improve bypass modelling.
17987
17988 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17989
17990 PR target/50739
17991 * config/avr/avr.c (avr_asm_select_section): Strip off
17992 SECTION_DECLARED from flags when calling get_section.
17993
17994 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17995
17996 * tree-vectorizer.h (vect_memory_access_type): Add
17997 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
17998 * tree-vect-stmts.c (compare_step_with_zero): New function.
17999 (perm_mask_for_reverse): Move further up file.
18000 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
18001 step is negative.
18002 (get_negative_load_store_type): New function.
18003 (get_load_store_type): Call it. Add an ncopies argument.
18004 (vectorizable_mask_load_store): Update call accordingly and
18005 remove tests for negative steps.
18006 (vectorizable_store, vectorizable_load): Likewise. Handle new
18007 memory_access_types.
18008
18009 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18010
18011 * tree-vectorizer.h (vect_memory_access_type): New enum.
18012 (_stmt_vec_info): Add a memory_access_type field.
18013 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
18014 (vect_model_store_cost): Take an access type instead of a boolean.
18015 (vect_model_load_cost): Likewise.
18016 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
18017 vect_model_store_cost and vect_model_load_cost.
18018 * tree-vect-stmts.c (vec_load_store_type): New enum.
18019 (vect_model_store_cost): Take an access type instead of a
18020 store_lanes_p boolean. Simplify tests.
18021 (vect_model_load_cost): Likewise, but for load_lanes_p.
18022 (get_group_load_store_type, get_load_store_type): New functions.
18023 (vectorizable_store): Use get_load_store_type. Record the access
18024 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
18025 (vectorizable_load): Likewise.
18026 (vectorizable_mask_load_store): Likewise. Replace is_store
18027 variable with vls_type.
18028
18029 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18030
18031 * tree-vectorizer.h (vect_grouped_load_supported): Add a
18032 single_element_p parameter.
18033 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
18034 Check the PR65518 case here rather than in vectorizable_load.
18035 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
18036 * tree-vect-stmts.c (vectorizable_load): Likewise.
18037
18038 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18039
18040 * tree-vectorizer.h (gather_scatter_info): New structure.
18041 (vect_check_gather_scatter): Return a bool rather than a decl.
18042 Replace return-by-pointer arguments with a single
18043 gather_scatter_info *.
18044 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
18045 (vect_analyze_data_refs): Update call accordingly.
18046 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
18047 (vectorizable_mask_load_store): Likewise. Also record the
18048 offset dt and vectype in the gather_scatter_info.
18049 (vectorizable_store): Likewise.
18050 (vectorizable_load): Likewise.
18051
18052 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18053
18054 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
18055 strided groups, use the cost of N scalar accesses instead
18056 of ncopies vector accesses.
18057 (vect_model_load_cost): Likewise.
18058
18059 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18060
18061 * tree-vect-stmts.c (vect_cost_group_size): Delete.
18062 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
18063 variable to indicate when once-per-group costs are being used.
18064 (vect_model_load_cost): Likewise. Fix comment and misindented code.
18065
18066 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18067
18068 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
18069 peeling-for-gaps condition.
18070
18071 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18072
18073 * config/s390/s390.c (s390_expand_vec_init): Force initializer
18074 element to register if it doesn't match general_operand.
18075
18076 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
18077 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18078
18079 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
18080 prototype.
18081 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
18082 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
18083 (SIGNBIT): New mode iterator.
18084 (Fsignbit): New mode attribute.
18085 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
18086 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
18087 when direct moves are available.
18088 (signbit<mode>2_dm): New define_insn_and_split).
18089 (signbit<mode>2_dm2): New define_insn.
18090
18091 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18092
18093 PR rtl-optimization/71594
18094 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
18095 into subregs of appropriate mode before trying to emit a conditional
18096 move.
18097
18098 2016-07-05 Jan Hubicka <jh@suse.cz>
18099
18100 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
18101 (simple_iv): Use it.
18102
18103 2016-07-05 Jan Hubicka <jh@suse.cz>
18104
18105 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
18106
18107 2016-07-05 Jiong Wang <jiong.wang@arm.com>
18108
18109 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
18110 "offmemok".
18111
18112 2016-07-05 Jan Hubicka <jh@suse.cz>
18113
18114 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
18115 IV can overflow.
18116
18117 2016-07-05 Richard Biener <rguenther@suse.de>
18118
18119 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
18120 Handle empty else block.
18121 (is_feasible_trace): Likewise.
18122 (split_paths): Likewise.
18123
18124 2016-07-05 Richard Biener <rguenther@suse.de>
18125
18126 * tree-loop-distribution.c (distribute_loop): Fix issue with
18127 the cost model loop.
18128
18129 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
18130
18131 * config/arm/neon-testgen.ml: Delete.
18132 * config/arm/neon.ml: Delete.
18133
18134 2016-07-04 Jakub Jelinek <jakub@redhat.com>
18135
18136 PR c++/71739
18137 * tree.c (attribute_value_equal): Use get_attribute_name instead of
18138 directly using TREE_PURPOSE.
18139
18140 2016-07-04 Jiong Wang <jiong.wang@arm.com>
18141
18142 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
18143 * config/aarch64/aarch64_neon.h: Likewise.
18144 * config/aarch64/arm_neon.h: Likewise.
18145 * config/aarch64/atomics.md: Likewise.
18146 * config/aarch64/aarch64-simd-builtins.def: Likewise.
18147 * doc/invoke.texi: Likewise.
18148
18149 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
18150
18151 * config/s390/s390.md: Add "z13" cpu_facility.
18152 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
18153 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
18154 condition" type instructions.
18155
18156 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
18157 Jeff Law <law@redhat.com>
18158
18159 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
18160 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
18161
18162 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
18163
18164 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
18165 permutation for TARGET_AVX512F.
18166 (ix86_expand_vec_one_operand_perm_avx512): New function.
18167 (expand_vec_perm_1): Invoke introduced function.
18168 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
18169 it may be not valid after vectorization.
18170
18171 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18172
18173 PR target/63874
18174 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
18175 typo in comment. Only force to memory if it is a weak
18176 external reference.
18177
18178 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
18179 Jiong Wang <jiong.wang@arm.com>
18180
18181 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
18182 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
18183 (AARCH64_FL_F16): New.
18184 (AARCH64_FL_FOR_ARCH8_2): New.
18185 (AARCH64_ISA_8_2): New.
18186 (AARCH64_ISA_F16): New.
18187 (TARGET_FP_F16INST): New.
18188 (TARGET_SIMD_F16INST): New.
18189 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
18190 ("fp"): Disabling "fp" also disables "fp16".
18191 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
18192 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
18193 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
18194 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
18195
18196 2016-07-04 Jan Beulich <jbeulich@suse.com>
18197
18198 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
18199
18200 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
18201
18202 PR target/71720
18203 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
18204 the insns, use an insn form that does not adjust the offset on
18205 little endian systems.
18206
18207 2016-07-01 Jan Beulich <jbeulich@suse.com>
18208
18209 * varasm.c (get_variable_section): Validate initializer in
18210 named .bss-like sections.
18211
18212 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
18213
18214 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
18215 Exchange the order of the second and third operands in the vpermr
18216 instruction tmeplate.
18217
18218 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
18219
18220 PR target/71698
18221 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
18222 Disallow TDmode values.
18223
18224 2016-07-01 Alan Modra <amodra@gmail.com>
18225
18226 PR rtl-optimization/71709
18227 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
18228 being set, not referenced.
18229
18230 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18231
18232 PR tree-optimization/70729
18233 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
18234 of loop since it can be not valid after transformation.
18235
18236 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18237
18238 * config/arm/arm.c (thumb_reload_in_hi): Delete.
18239 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
18240
18241 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
18242
18243 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
18244 for NULL decl.
18245
18246 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
18247
18248 PR target/71677
18249 * config/rs6000/constraints.md (wY constraint): New constraint to
18250 match the requirements for the LXSD and STXSD instructions.
18251 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
18252 predicate to match the requirements for the LXSD and STXSD
18253 instructions.
18254 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
18255 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
18256 to make sure that the bottom 2 bits of offset are 0, the address
18257 form is offsettable, and no updating is done in the address mode.
18258 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
18259 (movdi_internal32): Likewise
18260 (movdi_internal64): Likewise.
18261
18262 2016-06-30 Jakub Jelinek <jakub@redhat.com>
18263
18264 PR tree-optimization/71707
18265 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
18266 strinfo even for ADDR_EXPR ptr.
18267
18268 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
18269
18270 * config/rs6000/altivec.md (darn_32): Change the condition to
18271 TARGET_P9_MISC instead of TARGET_MODULO.
18272 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
18273 condition expression.
18274 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
18275 condition expression.
18276 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
18277 (DFP_TEST): New code iterator.
18278 (dfptstsfi_<code>_mode>): New define_expand.
18279 (*dfp_sgnfcnc_<mode>): New define_insn.
18280 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
18281 definition next to BU_P9_MISC_1 definition and change the MASK
18282 value to RS6000_BTM_P9_MISC.
18283 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
18284 (BU_P9_64BIT_MISC_0): Likewise.
18285 (BU_P9_DFP_MISC_0): New macro definition.
18286 (BU_P9_DFP_MISC_1): New macro definition.
18287 (BU_P9_DFP_MISC_2): New macro definition.
18288 (BU_P9_DFP_OVERLOAD_1): New macro definition.
18289 (BU_P9_DFP_OVERLOAD_2): New macro definition.
18290 (BU_P9_DFP_OVERLOAD_3): New macro definition.
18291 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
18292 (TSTSFI_LT_TD): Likewise.
18293 (TSTSFI_EQ_DD): Likewise.
18294 (TSTSFI_EQ_TD): Likewise.
18295 (TSTSFI_GT_DD): Likewise.
18296 (TSTSFI_GT_TD): Likewise.
18297 (TSTSFI_OV_DD): Likewise.
18298 (TSTSFI_OV_TD): Likewise.
18299 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
18300 (TSTSFI_LT_DD): Likewise.
18301 (TSTSFI_LT_TD): Likewise.
18302 (TSTSFI_EQ): Likewise.
18303 (TSTSFI_EQ_DD): Likewise.
18304 (TSTSFI_EQ_TD): Likewise.
18305 (TSTSFI_GT): Likewise.
18306 (TSTSFI_GT_DD): Likewise.
18307 (TSTSFI_GT_TD): Likewise.
18308 (TSTSFI_OV): Likewise.
18309 (TSTSFI_OV_DD): Likewise.
18310 (TSTSFI_OV_TD): Likewise.
18311 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18312 overloaded test significance functions.
18313 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
18314 OPTION_MASK_P9_MISC into the representation of this mask.
18315 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
18316 of this mask.
18317 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
18318 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
18319 non-zero.
18320 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
18321 argument is a 6-bit unsigned literal value if the icode argument
18322 represents a DFP test significance built-in call.
18323 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
18324 flag used independently and in combination with the
18325 RS6000_BTM_64BIT flag.
18326 (rs6000_opt_masks): Add entry for power9-misc command-line option.
18327 (rs6000_builtin_mask_names): Add entry for power9-misc
18328 command-line option.
18329 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
18330 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
18331 RS6000_BTM_P9_MISC macros.
18332 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
18333 option and change the description of the -mpower9-vector option to
18334 enable only vector instructions, removing its erroneously claimed
18335 support for scalar instructions.
18336 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
18337 the ISA 3.0 digital floating point test significance built-in
18338 functions.
18339
18340 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
18341
18342 * config/aarch64/aarch64.c (cortexa35_tunings):
18343 Enable AES fusion. Use cortexa57_branch_cost.
18344 (cortexa53_tunings): Use cortexa57_branch_cost.
18345 (cortexa72_tunings): Use cortexa57_branch_cost.
18346 Use AUTOPREFETCHER_WEAK.
18347 (cortexa73_tunings): Use cortexa57_branch_cost.
18348
18349 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18350 James Greenhalgh <james.greenhalgh@arm.com>
18351
18352 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
18353 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
18354 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
18355 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
18356 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
18357 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
18358 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
18359 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
18360 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
18361 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
18362 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
18363 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
18364 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
18365 New intrinsics.
18366
18367 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
18368 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18369
18370 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
18371 New define_insn.
18372 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
18373
18374 2016-06-30 David Malcolm <dmalcolm@redhat.com>
18375
18376 PR driver/71651
18377 * gcc.c (driver::build_option_suggestions): Pass "option" to
18378 add_misspelling_candidates.
18379 * opts-common.c (add_misspelling_candidates): Add "option" param;
18380 use it to avoid adding negated forms for options marked with
18381 RejectNegative.
18382 * opts.h (add_misspelling_candidates): Add "option" param.
18383
18384 2016-06-30 Jakub Jelinek <jakub@redhat.com>
18385
18386 PR middle-end/71693
18387 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
18388 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
18389 first when permuting bitwise operation with rotate. Cast
18390 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
18391
18392 2016-06-29 David Malcolm <dmalcolm@redhat.com>
18393
18394 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
18395 for misspelled param names.
18396 * params.c: Include spellcheck.h.
18397 (find_param_fuzzy): New function.
18398 * params.h (find_param_fuzzy): New prototype.
18399 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
18400 * spellcheck.h (struct edit_distance_traits<const char *>):
18401 ...here.
18402
18403 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
18404
18405 * config/rs6000/predicates.md (const_0_to_7_operand): New
18406 predicate, recognize 0..7.
18407 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18408 support for doing extracts from V16QImode, V8HImode, V4SImode
18409 under ISA 3.0.
18410 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
18411 vector extract support.
18412 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
18413 for ISA 3.0 vector extract.
18414 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
18415 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
18416 extracts of a constant element number from small integer vectors
18417 on 64-bit ISA 3.0 systems.
18418 (vsx_extract_<mode>_di): Likewise.
18419 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
18420 say when we can do ISA 3.0 vector extracts.
18421 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
18422 registers, using the stxsiwx instruction.
18423
18424 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
18425
18426 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
18427 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
18428 qdf24xx_regmove_cost, qdf24xx_tunings): New.
18429 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
18430 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
18431 * config/arm/arm.c (arm_qdf24xx_tune): New.
18432
18433 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
18434
18435 * config/aarch64/aarch64.c (cortexa53_tunings):
18436 Increase loop alignment to 8. Set function alignment to 16.
18437 (cortexa35_tunings): Likewise.
18438 (cortexa57_tunings): Increase loop alignment to 8.
18439 (cortexa72_tunings): Likewise.
18440 (cortexa73_tunings): Likewise.
18441
18442 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
18443
18444 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
18445 for arm_fp16_ok and arm_fp16_hw.
18446 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
18447 arm_fp16_alternative.
18448
18449 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
18450
18451 PR tree-optimization/71655
18452 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
18453 types when swapping operands.
18454
18455 2016-06-29 Martin Liska <mliska@suse.cz>
18456
18457 PR middle-end/71585
18458 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
18459 * ipa-inline-transform.c (inline_call): Remove unnecessary call
18460 of build_optimization_node.
18461
18462 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
18463
18464 PR tree-optimization/70729
18465 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
18466 independent in loops having positive safelen value.
18467 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
18468 it may be not valid after vectorization.
18469
18470 2016-06-29 Jakub Jelinek <jakub@redhat.com>
18471
18472 PR tree-optimization/71625
18473 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
18474 is sorted by ascending list->offset. If PTR is non-NULL and there is
18475 previous strinfo, call get_stridx_plus_constant.
18476 (get_stridx): Pass exp as second argument to get_addr_stridx.
18477 (addr_stridxptr): Add missing list = list->next, so that there can be
18478 more than one entries in the list. Bump limit from 16 to 32. Ensure
18479 the list is sorted by ascending list->offset.
18480 (get_stridx_plus_constant): Adjust so that it can be also called with
18481 ADDR_EXPR instead of SSA_NAME as PTR.
18482 (handle_char_store): Pass NULL_TREE as second argument to
18483 get_addr_stridx.
18484
18485 2016-06-29 Richard Biener <rguenther@suse.de>
18486
18487 PR rtl-optimization/68961
18488 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
18489
18490 2016-06-29 Richard Biener <rguenther@suse.de>
18491
18492 PR middle-end/71002
18493 * alias.c (component_uses_parent_alias_set_from): Handle
18494 type punning through union accesses by using the union alias set.
18495 * gimple.c (gimple_get_alias_set): Remove union type punning case.
18496
18497 2016-07-29 Richard Biener <rguenther@suse.de>
18498
18499 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
18500 precision not matching mode precision.
18501
18502 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
18503
18504 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
18505 pa_output_arg_descriptor.
18506 (call_val_symref_64bit_post_reload): Likewise.
18507 (call_val_powf_64bit_post_reload): Likewise.
18508 (sibcall_internal_symref_64bit): Likewise.
18509 (sibcall_value_internal_symref_64bit): Likewise.
18510
18511 2016-06-28 Jakub Jelinek <jakub@redhat.com>
18512
18513 PR middle-end/71626
18514 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
18515 a constant, force its SUBREG_REG into memory or register instead
18516 of whole op1.
18517
18518 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18519
18520 PR target/58655
18521 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
18522 * doc/invoke.texi (AVR Options): Document it.
18523
18524 2016-06-28 Walter Lee <walt@tilera.com>
18525
18526 * config/tilegx/linux.h: Do not include arch/icache.h
18527 (CLEAR_INSN_CACHE): Provide inlined definition directly.
18528 * config/tilepro/linux.h: Do not include arch/icache.h
18529 (CLEAR_INSN_CACHE): Provide inlined definition directly.
18530
18531 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
18532
18533 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
18534 for big-endian BIT_FIELD_REF.
18535
18536 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
18537
18538 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
18539 ('size' attribute): Add '128'.
18540 Include power9.md.
18541 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
18542 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
18543 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
18544 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
18545 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
18546 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
18547 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
18548 *trunc<mode>df2_odd): Set size attribute to '128'.
18549 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
18550 * config/rs6000/power6.md (power6-fp): Include dfp type.
18551 * config/rs6000/power7.md (power7-fp): Likewise.
18552 * config/rs6000/power8.md (power8-fp): Likewise.
18553 * config/rs6000/power9.md: New file.
18554 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
18555 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
18556 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
18557 htmsimple.
18558 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
18559 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
18560 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
18561 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
18562 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
18563 dfp_dscri_<mode>): Change type attribute to dfp.
18564 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
18565 attribute to vecsimple.
18566 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
18567 and prefetch streams.
18568 (rs6000_option_override_internal): Remove temporary code setting
18569 tuning to power8. Don't set rs6000_sched_groups for power9.
18570 (last_scheduled_insn): Change to rtx_insn *.
18571 (divide_cnt, vec_load_pendulum): New variables.
18572 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
18573 (rs6000_issue_rate): Set issue rate for Power9.
18574 (is_power9_pairable_vec_type): New.
18575 (power9_sched_reorder2): New.
18576 (rs6000_sched_reorder2): Call new function for Power9 specific
18577 reordering.
18578 (insn_must_be_first_in_group): Remove Power9.
18579 (insn_must_be_last_in_group): Likewise.
18580 (force_new_group): Likewise.
18581 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
18582 Initialize divide_cnt/vec_load_pendulum.
18583 (_rs6000_sched_context, rs6000_init_sched_context,
18584 rs6000_set_sched_context): Handle context save/restore of new
18585 variables.
18586
18587 2016-06-28 Richard Biener <rguenther@suse.de>
18588
18589 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
18590 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
18591 COMPONENT_REF operand.
18592 (nonoverlapping_component_refs_p): Likewise.
18593 * stor-layout.c (start_bitfield_representative): Mark
18594 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
18595
18596 2016-06-28 Jakub Jelinek <jakub@redhat.com>
18597
18598 * Makefile.in: Don't cat ../stage_current if it does not exist.
18599
18600 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
18601 last argument is a bit-field.
18602
18603 PR rtl-optimization/71673
18604 * internal-fn.c (expand_arith_overflow_result_store): Use
18605 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
18606 expand_simple_binop.
18607
18608 PR middle-end/66867
18609 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
18610 expand_ifn_atomic_compare_exchange): New functions.
18611 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
18612 * tree.h (build_call_expr_internal_loc): Rename to ...
18613 (build_call_expr_internal_loc_array): ... this. Fix up type of
18614 last argument.
18615 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
18616 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
18617 ATOMIC_COMPARE_EXCHANGE result.
18618 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
18619 * gimple-fold.h (optimize_atomic_compare_exchange_p,
18620 fold_builtin_atomic_compare_exchange): New prototypes.
18621 * gimple-fold.c (optimize_atomic_compare_exchange_p,
18622 fold_builtin_atomic_compare_exchange): New functions..
18623 * tree-ssa.c (execute_update_addresses_taken): If
18624 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
18625 of call when finding addressable vars, and if such var becomes
18626 non-addressable, call fold_builtin_atomic_compare_exchange.
18627
18628 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
18629
18630 PR target/71670
18631 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
18632 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
18633
18634 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
18635
18636 * config/rs6000/rs6000.md ('type' attribute): Add
18637 veclogical,veccmpfx,vecexts,vecmove insn types.
18638 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
18639 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
18640 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
18641 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
18642 *nabs<mode>2_hw): Change type to vecmove.
18643 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
18644 *boolcc<mode>3_internal, *eqv<mode>3_internal,
18645 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
18646 *ieee_128bit_vsx_abs<mode>2_internal,
18647 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
18648 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
18649 *ieee128_mtvsrd_32bit): Change type to veclogical.
18650 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
18651 *movdi_internal32, *movdi_internal64): Update insn types.
18652 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
18653 vsx_extract_<mode>): Change type to veclogical.
18654 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
18655 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
18656 *vsx_sign_extend_si_v2di): Change type to vecexts.
18657 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
18658 type to veclogical.
18659 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
18660 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
18661 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
18662 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
18663 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
18664 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
18665 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
18666 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
18667 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
18668 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
18669 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
18670 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
18671 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
18672 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
18673 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
18674 (ppc7450-vecsimple): Add veclogical, vecmove.
18675 (ppc7450-veccmp): Add veccmpfx.
18676 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
18677 vecmove.
18678 (ppc8540_vector_compare): Add veccmpfx.
18679 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
18680 * config/rs6000/cell.md (cell-fp): Add fpsimple.
18681 (cell-vecsimple): Add veclogical, vecmove.
18682 (cell-veccmp): Add veccmpfx.
18683 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
18684 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
18685 veccmpfx.
18686 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
18687 * config/rs6000/power4.md (power4-fp): Add fpsimple.
18688 (power4-vecsimple): Add veclogical, vecmove.
18689 (power4-veccmp): Add veccmpfx.
18690 * config/rs6000/power5.md (power5-fp): Add fpsimple.
18691 * config/rs6000/power6.md (power6-fp): Add fpsimple.
18692 (power6-vecsimple): Add veclogical, vecmove.
18693 (power6-veccmp): Add veccmpfx.
18694 * config/rs6000/power7.md (power7-fp): Add fpsimple.
18695 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
18696 * config/rs6000/power8.md (power8-fp): Add fpsimple.
18697 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
18698 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
18699 * config/rs6000/titan.md (titan_fp): Add fpsimple.
18700 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
18701 fpsimple.
18702 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
18703
18704 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
18705
18706 PR target/71656
18707 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
18708 OPTION_MASK_P9_DFORM_VECTOR.
18709 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
18710 disable -mpower9-dform-vector when using reload.
18711 (quad_address_p): Remove 'gpr_p' argument and all associated code.
18712 New 'strict' argument. Update all callers. Add strict addressing
18713 support.
18714 (rs6000_legitimate_offset_address_p): Remove call to
18715 virtual_stack_registers_memory_p.
18716 (rs6000_legitimize_reload_address): Add quad address support.
18717 (rs6000_legitimate_address_p): Move call to quad_address_p above
18718 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
18719 to account for new strict usage.
18720 (rs6000_output_move_128bit): Adjust quad_address_p args to account
18721 for new strict usage.
18722 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
18723
18724 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
18725
18726 PR target/70902
18727 PR target/71453
18728 PR target/71555
18729 PR target/71596
18730 PR target/71657
18731 * config/i386/i386.c (ix86_spill_class): Disable condition to
18732 always return NO_REGS.
18733
18734 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
18735
18736 * predict.c: Include gimple-pretty-print.h
18737 (predicted_by_loop_heuristics_p): Check also
18738 PRED_LOOP_EXIT_WITH_RECURSION
18739 (predict_loops): Find self recursive calls and use special purpose
18740 predictors for them; dump log about decisions.
18741 (pass_profile::execute): Dump info about #of iterations.
18742 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
18743 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
18744
18745 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
18746
18747 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
18748 output_asm_insn calls and shorten long lines. Output .CALL
18749 argument descriptor using pa_output_arg_descriptor. Add various
18750 inline $$dyncall and other optimizations.
18751 (pa_attr_length_indirect_call): Adjust ordering and lengths.
18752
18753 2016-06-25 Jakub Jelinek <jakub@redhat.com>
18754
18755 PR tree-optimization/71643
18756 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
18757 EH preds.
18758
18759 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
18760 leak a bitmap if dep_bb is NULL.
18761
18762 PR tree-optimization/71631
18763 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
18764 to rewrite_expr_tree even if negate_result, move new_lhs var
18765 declaration and initialization earlier, for powi_result set afterwards
18766 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
18767 if new_lhs != lhs, and don't shadow gsi var.
18768
18769 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
18770
18771 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
18772 Add in_loop parameter.
18773 (predict_loops): Add loop guard heuristics.
18774 * predict.def (PRED_LOOP_GUARD): New heuristics.
18775
18776 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
18777
18778 * predict.c: Include ipa-utils.h
18779 (tree_bb_level_prediction): Predict recursive calls.
18780 (tree_estimate_probability_bb): Skip inexpensive calls for call
18781 predictor.
18782 * predict.def (PRED_RECURSIVE_CALL): New.
18783
18784 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18785
18786 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
18787 (BU_FLOAT128_1): Likewise.
18788 (FABSQ): Likewise.
18789 (COPYSIGNQ): Likewise.
18790 (RS6000_BUILTIN_NANQ): Likewise.
18791 (RS6000_BUILTIN_NANSQ): Likewise.
18792 (RS6000_BUILTIN_INFQ): Likewise.
18793 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
18794 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
18795 (TARGET_FOLD_BUILTIN): New #define.
18796 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
18797 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
18798 (rs6000_fold_builtin): New target hook implementation, handling
18799 folding of 128-bit NaNs and infinities.
18800 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
18801 entries are filled in to avoid problems during bootstrap
18802 self-test; define builtins for 128-bit NaNs and infinities.
18803 (rs6000_opt_mask): Add entry for float128.
18804 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
18805 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
18806 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
18807 (const_str_type_node): New #define.
18808 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
18809 to a define_expand that dispatches to either copysign<mode>3_soft
18810 or copysign<mode>3_hard.
18811 (copysign<mode>3_hard): Rename from copysign<mode>3.
18812 (copysign<mode>3_soft): New define_insn.
18813 * doc/extend.texi: Document new builtins.
18814
18815 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18816
18817 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
18818 PRIu64 instead of lu.
18819
18820 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
18821
18822 PR debug/71642
18823 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
18824 copy the type name.
18825
18826 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18827
18828 PR tree-optimization/71647
18829 * omp-low.c (lower_rec_input_clauses): Convert
18830 omp_clause_aligned_alignment (c) to size_type_node for the
18831 last argument of __builtin_assume_aligned.
18832
18833 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
18834
18835 * configure.ac (calling ___tls_get_addr via GOT): New
18836 assembler/linker check.
18837 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
18838 assembler and linker supports calling ___tls_get_addr via GOT.
18839 Otherise, defined to 0.
18840 * config.in: Regenerated.
18841 * configure: Likewise.
18842 * config/i386/constraints.md (Yb): New constraint.
18843 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
18844 (REG_CLASS_NAMES): Likewise.
18845 (REG_CLASS_CONTENTS): Likewise.
18846 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
18847 the b constraint with the Yb constraint. Call ___tls_get_addr
18848 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
18849 is 1.
18850 (*tls_local_dynamic_base_32_gnu): Likewise.
18851 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
18852 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
18853 (*tls_local_dynamic_base_64_<mode>): Likewise.
18854
18855 2016-06-24 Martin Liska <mliska@suse.cz>
18856
18857 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
18858 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
18859 few functions.
18860 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
18861 argument to true if the expected number of iterations is
18862 loop-based.
18863
18864 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
18865
18866 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
18867 assemble for 32bit target.
18868 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
18869 and $ld_ix86_gld_32_opt to link for 32bit target.
18870 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
18871 * configure: Regenerate.
18872
18873 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18874
18875 * config/arm/arm.c (int_log2): Delete definition and prototype.
18876 (shift_op): Use exact_log2 instead of int_log2.
18877 (vfp3_const_double_for_fract_bits): Likewise.
18878
18879 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18880
18881 * internal-fn.c (expand_arith_set_overflow): New function.
18882 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
18883 Use it.
18884 (expand_arith_overflow_result_store): Likewise. Handle precision
18885 smaller than mode precision.
18886 * tree-vrp.c (extract_range_basic): For imag part, handle
18887 properly signed 1-bit precision result.
18888 * doc/extend.texi (__builtin_add_overflow): Document that last
18889 argument can't be pointer to enumerated or boolean type.
18890 (__builtin_add_overflow_p): Document that last argument can't
18891 have enumerated or boolean type.
18892
18893 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
18894 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18895
18896 * config/rs6000/predicates.md (splat_input_operand): Rework.
18897 Don't allow constants, since the insns that use this predicate
18898 don't support constants. Constants are handled by other insns
18899 that are created via combine. During and after register
18900 allocation, only allow indexed or indirect addresses, and not
18901 general addresses. Only allow modes supported by the hardware.
18902 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
18903 comment. Move check for using VSPLTIS<x> to a common location,
18904 instead of doing it in two different places.
18905
18906 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
18907
18908 * config/i386/driver-i386.c (host_detect_local_cpu): Set
18909 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
18910 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
18911 signature_CENTAUR_ebx.
18912
18913 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
18914
18915 PR target/66232
18916 PR target/67400
18917 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
18918 (as_ix86_gas_32_opt): This.
18919 (ld_ix86_tls_ldm_opt): Renamed to ...
18920 (ld_ix86_gld_32_opt): This.
18921 (R_386_TLS_LDM reloc): Updated.
18922 (R_386_GOT32X reloc): New assembler/linker check.
18923 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
18924 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
18925 defined to 0.
18926 * config.in: Regenerated.
18927 * configure: Likewise.
18928 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
18929 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
18930 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
18931 if ix86_force_load_from_GOT_p returns true.
18932 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
18933 ix86_force_load_from_GOT_p returns true.
18934 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
18935 the external function address via the GOT slot.
18936 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
18937 HAVE_AS_IX86_GOT32X before returning false.
18938 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
18939 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
18940
18941 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
18942
18943 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
18944
18945 2016-06-23 Andi Kleen <ak@linux.intel.com>
18946
18947 * Makefile.in: Regenerate.
18948 * doc/install.texi: Document autoprofiledbootstrap.
18949
18950 2016-06-23 Andi Kleen <ak@linux.intel.com>
18951
18952 * config/i386/gcc-auto-profile: New file.
18953
18954 2016-06-23 Martin Liska <mliska@suse.cz>
18955
18956 PR middle-end/71619
18957 * predict.c (predict_loops): Revert the hunk that was removed
18958 in r237103.
18959
18960 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
18961
18962 * config.gcc: Add support for arm*-*-phoenix* targets.
18963 * config/arm/t-phoenix: New.
18964 * config/phoenix.h: New.
18965
18966 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
18967 H.J. Lu <hongjiu.lu@intel.com>
18968
18969 PR target/67400
18970 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
18971 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
18972 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
18973 ix86_force_load_from_GOT_p returns true.
18974 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
18975 ix86_force_load_from_GOT_p returns true.
18976 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
18977 ix86_force_load_from_GOT_p returns true.
18978 (ix86_expand_move): Load the external function address via the
18979 GOT slot if ix86_force_load_from_GOT_p returns true.
18980 * config/i386/predicates.md (x86_64_immediate_operand): Return
18981 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
18982 (x86_64_zext_immediate_operand): Ditto.
18983
18984 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
18985
18986 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
18987
18988 2016-06-22 David Malcolm <dmalcolm@redhat.com>
18989
18990 PR c/70339
18991 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
18992 * diagnostic.c (pedwarn_at_rich_loc): New function.
18993 * spellcheck.h (best_match::best_match): Add a
18994 "best_distance_so_far" optional parameter.
18995 (best_match::set_best_so_far): New method.
18996 (best_match::get_best_distance): New accessor.
18997 (best_match::get_best_candidate_length): New accessor.
18998
18999 2016-06-22 Nick Clifton <nickc@redhat.com>
19000
19001 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
19002 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
19003 modes are accepted as well.
19004 (ucompare_loc_descriptor): Likewise.
19005 (minmax_loc_descriptor): Likewise.
19006 (clz_loc_descriptor): Likewise.
19007 (popcount_loc_descriptor): Likewise.
19008 (bswap_loc_descriptor): Likewise.
19009 (rotate_loc_descriptor): Likewise.
19010 (mem_loc_descriptor): Likewise.
19011 (loc_descriptor): Likewise.
19012
19013 2016-06-22 David Malcolm <dmalcolm@redhat.com>
19014
19015 * common.opt (fdiagnostics-parseable-fixits): New option.
19016 * diagnostic.c: Include "selftest.h".
19017 (print_escaped_string): New function.
19018 (print_parseable_fixits): New function.
19019 (diagnostic_report_diagnostic): Call print_parseable_fixits.
19020 (selftest::assert_print_escaped_string): New function.
19021 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
19022 (selftest::test_print_escaped_string): New function.
19023 (selftest::test_print_parseable_fixits_none): New function.
19024 (selftest::test_print_parseable_fixits_insert): New function.
19025 (selftest::test_print_parseable_fixits_remove): New function.
19026 (selftest::test_print_parseable_fixits_replace): New function.
19027 (selftest::diagnostic_c_tests): New function.
19028 * diagnostic.h (struct diagnostic_context): Add field
19029 "parseable_fixits_p".
19030 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
19031 -fdiagnostics-parseable-fixits.
19032 (-fdiagnostics-parseable-fixits): New option.
19033 * opts.c (common_handle_option): Handle
19034 -fdiagnostics-parseable-fixits.
19035 * selftest-run-tests.c (selftest::run_tests): Call
19036 selftest::diagnostic_c_tests.
19037 * selftest.h (selftest::diagnostic_c_tests): New prototype.
19038
19039 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
19040
19041 PR tree-optimization/71488
19042 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
19043 comparison of boolean vectors.
19044 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
19045 of boolean vectors using bitwise operations.
19046
19047 2016-06-22 Andreas Schwab <schwab@suse.de>
19048
19049 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
19050 Remove declaration.
19051
19052 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
19053
19054 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
19055
19056 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
19057
19058 * config/i386/i386.c (print_reg): Emit an error message on attempt to
19059 print FLAGS_REG.
19060
19061 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19062
19063 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
19064 * config/arm/arm-cores.def (cortex-a73): New entry.
19065 (cortex-a73.cortex-a35): Likewise.
19066 (cortex-a73.cortex-a53): Likewise.
19067 * config/arm/arm-tables.opt: Regenerate.
19068 * config/arm/arm-tune.md: Likewise.
19069 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
19070 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19071 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
19072 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19073 * doc/invoke.texi (ARM Options): Document cortex-a73,
19074 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
19075
19076 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19077
19078 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
19079 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
19080 (cortex-a73.cortex-a35): Likewise.
19081 (cortex-a73.cortex-a53): Likewise.
19082 * config/aarch64/aarch64-tune.md: Regenerate.
19083 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
19084 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
19085 -mcpu and -mtune.
19086
19087 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19088
19089 * configure.ac (gcc_cv_as_compress_debug): Remove
19090 --compress-debug-sections as extra as switch.
19091 Handle gas --compress-debug-sections=type.
19092 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
19093 Handle gld --compress-debug-sections=type.
19094 * configure: Regenerate.
19095
19096 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
19097
19098 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
19099
19100 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
19101
19102 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
19103 (do_rewrite): likewise.
19104
19105 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19106
19107 * common/config/mep/mep-common.c: Remove.
19108 * config.gcc: Remove mep-* support.
19109 * config/mep/constraints.md: Remove.
19110 * config/mep/default.h: Remove.
19111 * config/mep/intrinsics.h: Remove.
19112 * config/mep/intrinsics.md: Remove.
19113 * config/mep/ivc2-template.h: Remove.
19114 * config/mep/mep-c5.cpu: Remove.
19115 * config/mep/mep-core.cpu: Remove.
19116 * config/mep/mep-default.cpu: Remove.
19117 * config/mep/mep-ext-cop.cpu: Remove.
19118 * config/mep/mep-intrin.h: Remove.
19119 * config/mep/mep-ivc2.cpu: Remove.
19120 * config/mep/mep-pragma.c: Remove.
19121 * config/mep/mep-protos.h: Remove.
19122 * config/mep/mep.c: Remove.
19123 * config/mep/mep.cpu: Remove.
19124 * config/mep/mep.h: Remove.
19125 * config/mep/mep.md: Remove.
19126 * config/mep/mep.opt: Remove.
19127 * config/mep/predicates.md: Remove.
19128 * config/mep/t-mep: Remove.
19129 * doc/install.texi: Remove mep-* documentation.
19130 * doc/md.texi: Likewise.
19131
19132 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19133
19134 * config.gcc: Remove support for avr-rtems.
19135 * config/avr/gen-avr-mmcu-specs.c: Likewise.
19136 * config/avr/rtems.h: Remove.
19137 * config/avr/t-rtems: Remove.
19138
19139 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19140
19141 * config.gcc: Remove m32r-rtems support.
19142 * config/m32r/rtems.h: Remove.
19143
19144 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19145
19146 * config.gcc: Remove h8300-rtems support.
19147 * config/h8300/rtems.h: Remove.
19148 * config/h8300/t-rtems: Remove.
19149
19150 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19151
19152 * config.gcc: Remove support for knetbsd.
19153 * configure.ac: Likewise.
19154 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
19155 * config/knetbsd-gnu.h: Remove.
19156 * configure: Regenerate.
19157
19158 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19159
19160 * config.gcc: Remove support for openbsd 2 and 3.
19161 * config/openbsd-oldgas.h: Remove.
19162
19163 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19164
19165 * config.gcc: Remove interix support.
19166 * config/i386/i386-interix.h: Remove.
19167 * config/i386/interix.opt: Remove.
19168 * config/i386/t-interix: Remove.
19169 * configure: Regenerate.
19170 * configure.ac: Remove interix support.
19171 * doc/install.texi: Remove interix documentation.
19172
19173 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
19174
19175 * config/rs6000/rs6000.h: Add conditional preprocessing directives
19176 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
19177 not defined.
19178
19179 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
19180
19181 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
19182 they are both PLACEHOLDER_EXPRs.
19183
19184 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19185
19186 * stor-layout.c (layout_type): Move setting complex MODE to
19187 layout_type, instead of setting it ahead of time by the caller.
19188 * tree.c (build_complex_type): Likewise.
19189
19190 2016-06-21 Martin Liska <mliska@suse.cz>
19191
19192 * predict.c (force_edge_cold): Replace imposisble with
19193 impossible.
19194
19195 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
19196
19197 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
19198 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
19199
19200 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
19201
19202 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
19203
19204 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
19205 Ilya Enkovich <ilya.enkovich@intel.com>
19206
19207 PR target/71549
19208 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
19209 New member function to convert V1TImode register to SUBREG
19210 TImode in debug insn.
19211 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
19212 after changing register mode to V1TImode.
19213
19214 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
19215
19216 * config/aarch64/aarch64-cores.def (vulcan): New core.
19217 * config/aarch64/aarch64-tune.md: Regenerate.
19218 * doc/invoke.texi: Document vulcan as an available option.
19219
19220 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
19221
19222 * cse.c (canon_asm_operands): New function extracted from...
19223 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
19224 either standalone or member of a PARALLEL.
19225
19226 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
19227
19228 PR target/30417
19229 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
19230 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
19231 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
19232
19233 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
19234
19235 PR target/71103
19236 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
19237 constant addresses if can_create_pseudo_p.
19238
19239 2016-06-21 Jakub Jelinek <jakub@redhat.com>
19240
19241 PR tree-optimization/71588
19242 * tree-ssa-strlen.c (valid_builtin_call): New function.
19243 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
19244 it.
19245
19246 2016-06-20 Jakub Jelinek <jakub@redhat.com>
19247
19248 PR middle-end/71581
19249 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
19250 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
19251 for conversion of scalar user var to complex type and use the
19252 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
19253 punt.
19254
19255 PR rtl-optimization/71591
19256 * toplev.c (toplev::run_self_tests): If no_backend, complain and
19257 don't run any tests.
19258
19259 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
19260
19261 PR target/71571
19262 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
19263 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
19264 space for PIC with non-v32 and the common non-PIC "jump".
19265
19266 2016-06-20 Jakub Jelinek <jakub@redhat.com>
19267
19268 PR target/71559
19269 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
19270 returned values and add UN*/LTGT/*ORDERED cases with values matching
19271 D operand modifier on vcmp for AVX.
19272
19273 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19274
19275 * config/aarch64/aarch64.opt
19276 (mpc-relative-literal-loads): Rename internal option name.
19277 * config/aarch64/aarch64.c
19278 (aarch64_nopcrelative_literal_loads): Rename to
19279 aarch64_pcrelative_literal_loads.
19280 (aarch64_expand_mov_immediate): Likewise.
19281 (aarch64_secondary_reload): Likewise.
19282 (aarch64_can_use_per_function_literal_pools_p): Likewise.
19283 (aarch64_override_options_after_change_1): Rename and simplify logic.
19284 (aarch64_classify_symbol): Merge large model checks into switch,
19285 remove pc-relative load check.
19286
19287 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19288
19289 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
19290 costs relative to the cost of a register move.
19291
19292 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19293
19294 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
19295 (vcvt_n_f64_u64): Likewise.
19296 (vcvt_n_s64_f64): Likewise.
19297 (vcvt_n_u64_f64): Likewise.
19298 (vcvt_f64_s64): Likewise.
19299 (vrecpe_f64): Likewise.
19300 (vcvt_f64_u64): Likewise.
19301 (vrecps_f64): Likewise.
19302
19303 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19304
19305 * config/aarch64/aarch64.md
19306 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
19307 iterators.
19308 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
19309 attributes.
19310 * config/aarch64/aarch64-builtins.c
19311 (aarch64_types_binop_uss_qualifiers): Delete.
19312 (TYPES_BINOP_USS): Likewise.
19313 (aarch64_types_binop_sus_qualifiers): Likewise.
19314 (TYPES_BINOP_SUS): Likewise.
19315 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
19316 (TYPES_FCVTIMM_SUS): Likewise.
19317 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
19318 rather than BINOP.
19319 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
19320 (fcvtzs): Use SHIFTIMM rather than BINOP.
19321 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
19322
19323 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19324
19325 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
19326 costs relative to the cost of a register move.
19327
19328 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19329
19330 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
19331 Allow scalar/single vector modes to be tieable.
19332
19333 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19334
19335 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
19336
19337 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19338
19339 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
19340 "alignement".
19341 * tree.h (TYPE_ALIGN): Likewise.
19342
19343 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
19344
19345 PR target/71103
19346 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
19347
19348 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
19349
19350 * config/avr/avr.c (avr_print_operand): Fix "format not a string
19351 literal" build warnings.
19352 (avr_print_operand_address): Dito.
19353
19354 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
19355
19356 PR target/71375
19357 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
19358 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
19359
19360 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
19361
19362 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
19363
19364 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
19365
19366 PR bootstrap/71435
19367 * reload1.c (reload): Pass 0 to finish_spills when called because
19368 update_eliminables_and_spill returns true and remove did_spill.
19369 (finish_spills): Adjust comment and document GLOBAL parameter.
19370
19371 2016-06-17 DJ Delorie <dj@redhat.com>
19372
19373 PR target/71338
19374 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
19375 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
19376 (umulqihi3_virt): Likewise.
19377 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
19378 (umulqihi3_real): Likewise.
19379
19380 2016-06-17 Martin Liska <mliska@suse.cz>
19381
19382 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
19383
19384 2016-06-17 Martin Liska <mliska@suse.cz>
19385
19386 * predict.def: PRED_LOOP_EXIT from 92 to 85.
19387
19388 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
19389
19390 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
19391 __FAST_MATH__.
19392 (vaddq_f32): Likewise.
19393 (vmul_f32): Likewise.
19394 (vmulq_f32): Likewise.
19395 (vsub_f32): Likewise.
19396 (vsubq_f32): Likewise.
19397
19398 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19399
19400 PR tree-optimization/71347
19401 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
19402 cost for all uses in group.
19403
19404 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19405
19406 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
19407 insert gimple seq if it's not empty.
19408
19409 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19410
19411 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
19412 member OFFSET.
19413 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
19414 rather than OFFSET.
19415 (comp_dr_with_seg_len_pair): Ditto.
19416 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
19417 struct dr_with_seg_len_pair against DR_OFFSET.
19418 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
19419 DR_OFFSET directly.
19420
19421 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
19422
19423 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
19424
19425 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
19426
19427 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
19428 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
19429 (pa_output_millicode_call): Likewise.
19430 (pa_output_call): Likewise.
19431 (pa_output_indirect_call): Likewise.
19432 (pa_asm_output_mi_thunk): Likewise.
19433
19434 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19435
19436 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
19437
19438 2016-06-16 Martin Liska <mliska@suse.cz>
19439
19440 * predict.c (combine_predictions_for_insn): When we find a first
19441 match predictor, we should consider just predictors with
19442 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
19443 DS theory predictor.
19444 (combine_predictions_for_bb): Likewise.
19445
19446 2016-06-16 Jakub Jelinek <jakub@redhat.com>
19447
19448 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
19449 with base of reference to struct.
19450
19451 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
19452
19453 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
19454
19455 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19456
19457 PR target/71151
19458 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
19459 progmem_swtable_section.
19460 (progmem_swtable_section): Remove.
19461 (avr_asm_function_rodata_section): Remove.
19462 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
19463 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
19464
19465 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
19466
19467 * config/i386/driver-i386.c (host_detect_local_cpu): Set
19468 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
19469 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
19470 signature_CENTAUR_ebx.
19471 * config/i386/i386.c (ix86_option_override_internal): Add
19472 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
19473 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
19474 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
19475
19476 2016-06-16 Martin Liska <mliska@suse.cz>
19477
19478 * predict.def: Add fortran loop preheader predictor.
19479 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
19480 fold IFN_BUILTIN_EXPECT with a known constant argument.
19481
19482 2016-06-16 Martin Liska <mliska@suse.cz>
19483
19484 * predict.def: Add 'Fortran' to display text of all
19485 PRED_FORTRAN_* predictors.
19486
19487 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
19488
19489 PR target/71242
19490 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
19491 [IA64_BUILTIN_NANSQ]: Ditto.
19492 (ia64_fold_builtin): New function.
19493 (TARGET_FOLD_BUILTIN): New define.
19494 (ia64_init_builtins) Declare const_string_type node.
19495 Add __builtin_nanq and __builtin_nansq builtin functions.
19496 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
19497
19498 2016-06-16 Nick Clifton <nickc@redhat.com>
19499
19500 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
19501 MSP430_HWMULT_ prefix to enum values.
19502 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
19503 * config/msp430/msp430.c: Update use of enum values.
19504 * config/msp430/msp430.md: Likewise.
19505 * config/msp430/msp430.opt: Likewise.
19506
19507 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
19508
19509 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
19510 of comparsions in the last iteration.
19511
19512 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
19513 Joern Rennecke <joern.rennecke@embecosm.com>
19514
19515 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
19516 addresses.
19517 (arc_needs_pcl_p): Add GOTOFFPC.
19518 (arc_legitimate_pic_addr_p): Likewise.
19519 (arc_output_pic_addr_const): Likewise.
19520 (arc_legitimize_pic_address): Generate a pc-relative address using
19521 GOTOFFPC.
19522 (arc_output_libcall): Use @pcl syntax.
19523 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
19524 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
19525 (*movsi_insn): Use @pcl syntax.
19526 (doloop_begin_i): Likewise.
19527
19528 2016-06-16 Martin Liska <mliska@suse.cz>
19529
19530 * predict.def: Define a new predictor.
19531
19532 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
19533
19534 * config/arc/arc.opt (mtp-regno): Update text.
19535
19536 2016-06-16 Renlin Li <renlin.li@arm.com>
19537
19538 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
19539
19540 2016-06-16 Jakub Jelinek <jakub@redhat.com>
19541
19542 PR target/71554
19543 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
19544 (setcc + and peephole2): Likewise.
19545
19546 PR rtl-optimization/71532
19547 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
19548 memory slots.
19549
19550 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
19551
19552 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
19553 DImode constants with XXSPLTIB in vector registers.
19554 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
19555 vsx_extract_<mode>_internal{1,2} into a single insn that handles
19556 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
19557 extraction of the element at the top of the register as a scalar
19558 value.
19559 (vsx_extract_<mode>_internal1): Likewise.
19560 (vsx_extract_<mode>_internal2): Likewise.
19561 * config/rs6000/constraints.md (wi constraint): Remove a comment
19562 about DImode not being allowed in Altivec registers.
19563 (wB constraint): New constraint for constants that can be
19564 generated in Altivec registers with VSPLTISW/VUPKHSW.
19565 * config/rs6000/predicates.md (xxspltib_constant_split): Update
19566 comments.
19567 (xxspltib_constant_nosplit): Likewise.
19568 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
19569 support for -mupper-regs-di to enable DImode to go into Altivec
19570 registers.
19571 (POWERPC_MASKS): Likewise.
19572 (power7 cpu): Likewise.
19573 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
19574 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
19575 for DImode being allowed in Altivec registers. Update wi/wj
19576 constraints. Set scalar_in_vmx_p flag.
19577 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
19578 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
19579 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
19580 (rs6000_opt_masks): Add -mupper-regs-di.
19581 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
19582 direct move to use wi and not wj.
19583 (lfiwzx): Likewise.
19584 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
19585 alternative.
19586 (floatunssi<mode>2_lfiwzx_mem): Likewise.
19587 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
19588 any VSX register, instead of just Altivec registers, to allow
19589 either operand to be an Altivec register or both.
19590 (fixuns_trunc<mode>di2_fctiduz): Likewise.
19591 (movdi_internal32): Add support for -mupper-regs-di. Add support
19592 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
19593 the alternatives and attributes to be lined up to be easier to
19594 read.
19595 (movdi_internal64): Likewise.
19596 (64-bit DImode splitters): Change predicates to only split loading
19597 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
19598 load constants in ISA 3.0 or ISA 2.07 respectively.
19599 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
19600 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
19601 mention -mcpu=power9 sets these options.
19602 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
19603 wB constraint.
19604
19605 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19606
19607 PR target/67353
19608 * config/avr/avr.c (avr_set_current_function): Warn misspelled
19609 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
19610 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
19611 by default to warn misspelled interrupt/ signal handler.
19612 * doc/invoke.texi (AVR Options): Document it. Update description
19613 for -nodevicelib option.
19614
19615 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19616
19617 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
19618 up parentheses. Use GET_MODE_UNIT_BITSIZE.
19619 (aarch64_<sur>shll2_n<mode>): Likewise.
19620
19621 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
19622
19623 PR middle-end/71529
19624 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
19625 DECL_CONTEXT for copied arguments.
19626
19627 2016-06-15 Alan Hayward <alan.hayward@arm.com>
19628
19629 PR tree-optimization/71483
19630 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
19631 for slp
19632
19633 2016-06-15 Martin Liska <mliska@suse.cz>
19634
19635 * predict.c (tree_predict_by_opcode): Call predict_edge_def
19636 instead of predict_edge w/o a probability.
19637
19638 2016-06-15 Alan Hayward <alan.hayward@arm.com>
19639
19640 PR tree-optimization/71439
19641 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
19642 live PHIs.
19643
19644 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19645
19646 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
19647 register subregs in SET_SRC.
19648
19649 2016-06-15 Richard Biener <rguenther@suse.de>
19650
19651 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
19652 store restrictions.
19653
19654 2016-06-15 Richard Biener <rguenther@suse.de>
19655
19656 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
19657 not consider dependences between accesses that belong to the
19658 same group.
19659 (vect_analyze_data_ref_dependences): Do not analyze read-read
19660 or self-dependences.
19661
19662 2016-06-14 David Malcolm <dmalcolm@redhat.com>
19663
19664 * spellcheck-tree.c: Include spellcheck-tree.h rather than
19665 spellcheck.h.
19666 (find_closest_identifier): Reimplement in terms of
19667 best_match<tree,tree>.
19668 * spellcheck-tree.h: New file.
19669 * spellcheck.c (struct edit_distance_traits<const char *>): New
19670 struct.
19671 (find_closest_string): Reimplement in terms of
19672 best_match<const char *, const char *>.
19673 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
19674 overload to spellcheck-tree.h.
19675 (find_closest_identifier): Likewise.
19676 (struct edit_distance_traits<T>): New template.
19677 (class best_match): New class.
19678
19679 2016-06-14 David Malcolm <dmalcolm@redhat.com>
19680
19681 * selftest-run-tests.c (selftest::run_tests): Call
19682 selftest::spellcheck_tree_c_tests.
19683 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
19684 * spellcheck-tree.c: Include selftest.h and stringpool.h.
19685 (selftest::test_find_closest_identifier): New function.
19686 (selftest::spellcheck_tree_c_tests): New function.
19687 * spellcheck.c (selftest::test_find_closest_string): Verify that
19688 the order of the vec does not affect the results for this case.
19689 (selftest::test_data): New array.
19690 (selftest::test_metric_conditions): New function.
19691 (selftest::spellcheck_c_tests): Add a test of case-comparison.
19692 Call selftest::test_metric_conditions.
19693
19694 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19695
19696 * config/rs6000/rs6000-builtin.def (commentary): Typo.
19697 (BU_P9_MISC_1): Likewise.
19698 (BU_P9_64BIT_MISC_0): Likewise.
19699 (BU_P9_MISC_0): Likewise.
19700
19701 2016-06-14 David Malcolm <dmalcolm@redhat.com>
19702
19703 * gcc-rich-location.c
19704 (gcc_rich_location::add_fixit_misspelled_id): New method.
19705 * gcc-rich-location.h
19706 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
19707
19708 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
19709
19710 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
19711 FreeBSD 11 and above.
19712
19713 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
19714
19715 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
19716
19717 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19718
19719 * expmed.h: Close parenthesis in "at your option" in copyright
19720 boilerplate.
19721 * lower-subreg.h: Likewise.
19722
19723 2016-06-14 Richard Biener <rguenther@suse.de>
19724
19725 PR middle-end/71526
19726 * genmatch.c (expr::gen_transform): Use in_type for comparisons
19727 if available.
19728
19729 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19730
19731 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
19732 New function.
19733 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
19734 mask+shift version.
19735 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
19736 New prototype.
19737 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
19738 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
19739
19740 2016-06-14 Richard Biener <rguenther@suse.de>
19741
19742 PR tree-optimization/71522
19743 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
19744 copying into float copying.
19745
19746 2016-06-14 Jakub Jelinek <jakub@redhat.com>
19747
19748 PR tree-optimization/71520
19749 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
19750 (replace_block_by): Move user labels from bb1 to bb2.
19751
19752 2016-06-14 Richard Biener <rguenther@suse.de>
19753
19754 PR middle-end/71310
19755 PR bootstrap/71510
19756 * expr.h (get_bit_range): Declare.
19757 * expr.c (get_bit_range): Export.
19758 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
19759 word_mode again to constrain the bitfield access.
19760
19761 2016-06-14 Richard Biener <rguenther@suse.de>
19762
19763 PR tree-optimization/71521
19764 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
19765 division int_const_binop against zero divisor.
19766
19767 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
19768
19769 * config/i386/i386.md (signbittf2): New expander.
19770 * config/i386/sse.md (ptesttf2): New insn pattern.
19771
19772 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19773
19774 PR bootstrap/71481
19775 * input.c (selftest::test_reading_source_line): Avoid reading from
19776 __FILE__ by creating a tempfile with known content and reading
19777 from that instead.
19778
19779 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19780
19781 * pretty-print.c (assert_pp_format_colored): Skip the test if
19782 GCC_COLORS is set.
19783 (test_pp_format): Remove comment about GCC_COLORS.
19784
19785 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19786
19787 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
19788 * pretty-print.c (assert_pp_format_va): Add location param and use
19789 it with ASSERT_STREQ_AT.
19790 (assert_pp_format): Add location param and pass it to
19791 assert_pp_format_va.
19792 (assert_pp_format_colored): Likewise.
19793 (ASSERT_PP_FORMAT_1): New.
19794 (ASSERT_PP_FORMAT_2): New.
19795 (ASSERT_PP_FORMAT_3): New.
19796 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
19797 explicitly, or implicitly via the above macros.
19798 * selftest.c (selftest::pass): Use a selftest::location rather
19799 than file and line.
19800 (selftest::fail): Likewise. Print the function name.
19801 (selftest::fail_formatted): Likewise.
19802 (selftest::assert_streq): Use a selftest::location rather than
19803 file and line.
19804 * selftest.h (selftest::location): New struct.
19805 (SELFTEST_LOCATION): New macro.
19806 (selftest::pass): Accept a const location & rather than file
19807 and line.
19808 (selftest::fail): Likewise.
19809 (selftest::fail_formatted): Likewise.
19810 (selftest::assert_streq): Likewise.
19811 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
19812 (ASSERT_FALSE): Likewise.
19813 (ASSERT_EQ): Likewise.
19814 (ASSERT_NE): Likewise.
19815 (ASSERT_STREQ): Likewise.
19816 (ASSERT_PRED1): Likewise.
19817 (ASSERT_STREQ_AT): New macro.
19818
19819 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19820
19821 * selftest.c (selftest::fail_formatted): New function.
19822 (selftest::assert_streq): New function.
19823 * selftest.h (selftests::fail_formatted): New decl.
19824 (selftest::assert_streq): New decl.
19825 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
19826
19827 2016-06-13 Jeff Law <law@redhat.com>
19828
19829 PR tree-optimization/71403
19830 * tree-ssa-threadbackward.c
19831 (convert_and_register_jump_thread_path): No longer accept reference
19832 to path. Do not pop items off the path anymore.
19833 (fsm_find_control_statement_thread_paths): Do not allow threading
19834 to a deeper loop nest. Pop the last item off the path here rather
19835 than in convert_and_register_jump_thread_path.
19836
19837 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
19838 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
19839
19840 [AArch64] Emit division using the Newton series
19841
19842 * config/aarch64/aarch64-protos.h
19843 (cpu_approx_modes): Add new member "division".
19844 (aarch64_emit_approx_div): Declare new function.
19845 * config/aarch64/aarch64.c
19846 (generic_approx_modes): New member "division".
19847 (exynosm1_approx_modes): Likewise.
19848 (xgene1_approx_modes): Likewise.
19849 (aarch64_emit_approx_div): Define new function.
19850 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
19851 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
19852 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
19853 * doc/invoke.texi (-mlow-precision-div): Describe new option.
19854
19855 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
19856 Wilco Dijkstra <wilco.dijkstra@arm.com>
19857
19858 [AArch64] Emit square root using the Newton series
19859
19860 * config/aarch64/aarch64-protos.h
19861 (aarch64_emit_approx_rsqrt): Replace with new function
19862 "aarch64_emit_approx_sqrt".
19863 (cpu_approx_modes): New member "sqrt".
19864 * config/aarch64/aarch64.c
19865 (generic_approx_modes): New member "sqrt".
19866 (exynosm1_approx_modes): Likewise.
19867 (xgene1_approx_modes): Likewise.
19868 (aarch64_emit_approx_rsqrt): Replace with new function
19869 "aarch64_emit_approx_sqrt".
19870 (aarch64_override_options_after_change_1): Handle new option.
19871 * config/aarch64/aarch64-simd.md
19872 (rsqrt<mode>2): Use new function instead.
19873 (sqrt<mode>2): New expansion and insn definitions.
19874 * config/aarch64/aarch64.md: Likewise.
19875 * config/aarch64/aarch64.opt
19876 (mlow-precision-sqrt): Add new option description.
19877 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
19878
19879 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
19880
19881 [AArch64] Add more choices for the reciprocal square root approximation
19882
19883 Allow a target to prefer such operation depending on the operation mode.
19884
19885 * config/aarch64/aarch64-protos.h
19886 (AARCH64_APPROX_MODE): New macro.
19887 (AARCH64_APPROX_{NONE,ALL}): Likewise.
19888 (cpu_approx_modes): New structure.
19889 (tune_params): New member "approx_modes".
19890 * config/aarch64/aarch64-tuning-flags.def
19891 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
19892 * config/aarch64/aarch64.c
19893 (generic_approx_modes): New core "cpu_approx_modes" structure.
19894 (exynosm1_approx_modes): Likewise.
19895 (xgene1_approx_modes): Likewise.
19896 (generic_tunings): New member "approx_modes".
19897 (cortexa35_tunings): Likewise.
19898 (cortexa53_tunings): Likewise.
19899 (cortexa57_tunings): Likewise.
19900 (cortexa72_tunings): Likewise.
19901 (exynosm1_tunings): Likewise.
19902 (thunderx_tunings): Likewise.
19903 (xgene1_tunings): Likewise.
19904 (use_rsqrt_p): New argument for the mode and use new member from
19905 "tune_params".
19906 (aarch64_builtin_reciprocal): Devise mode from builtin.
19907 (aarch64_optab_supported_p): New argument for the mode.
19908 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
19909
19910 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
19911
19912 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
19913 RS6000_BTM_MODULO flag into the set of flags that are considered
19914 to be part of the common configuration.
19915
19916 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
19917
19918 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
19919 difference unsigned.
19920 (vec_absdb): New macro for vector absolute difference unsigned
19921 byte.
19922 (vec_absdh): New macro for vector absolute difference unsigned
19923 half-word.
19924 (vec_absdw): New macro for vector absolute difference unsigned word.
19925 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
19926 (vadu<mode>3): New insn.
19927 (*p9_vadu<mode>3): New insn.
19928 * config/rs6000/rs6000-builtin.def (vadub): New built-in
19929 definition.
19930 (vaduh): New built-in definition.
19931 (vaduw): New built-in definition.
19932 (vadu): New overloaded built-in definition.
19933 (vadub): New overloaded built-in definition.
19934 (vaduh): New overloaded built-in definition.
19935 (vaduw): New overloaded built-in definition.
19936 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19937 overloaded vector absolute difference unsigned functions.
19938 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
19939 the ISA 3.0 vector absolute difference unsigned built-in functions.
19940
19941 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
19942
19943 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
19944 update shared_lookup_references only once after changing operands.
19945
19946 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
19947
19948 PR middle-end/71373
19949 * tree-nested.c (convert_nonlocal_omp_clauses)
19950 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
19951
19952 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
19953 * tree.def (CASE_LABEL_EXPR): Likewise.
19954
19955 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
19956
19957 PR bootstrap/71481
19958 * input.c (test_builtins): Fix an assertion.
19959
19960 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
19961
19962 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
19963 (paritysi2): Ditto.
19964 (isinfxf2): Ditto.
19965 (isinf<mode>2): Ditto.
19966
19967 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
19968
19969 * ggc-tests.c (test_finalization): Only test need_finalization_p
19970 for GCC_VERSION >= 4003.
19971
19972 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19973
19974 * config/s390/vecintrin.h: Fix file description in comment.
19975
19976 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19977
19978 * config/s390/s390-builtin-types.def: Change builtin type naming
19979 scheme to match builtin-types.def.
19980
19981 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
19982
19983 * fold-const.c (optimize_minmax_comparison): Remove.
19984 (fold_comparison): Remove call to the above.
19985 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
19986 New transformations.
19987
19988 2016-06-13 Alan Hayward <alan.hayward@arm.com>
19989
19990 PR tree-optimization/71416
19991 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
19992 multiple entries
19993
19994 2016-06-13 Martin Liska <mliska@suse.cz>
19995
19996 * predict.c (enum predictor_reason): Prefix enum with REASON_.
19997 (combine_predictions_for_insn): Likewise.
19998 (prune_predictions_for_bb): Likewise.
19999 (combine_predictions_for_bb): Likewise.
20000
20001 2016-06-13 Richard Biener <rguenther@suse.de>
20002
20003 PR tree-optimization/71505
20004 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
20005 assert match comment.
20006
20007 2016-06-13 Marek Polacek <polacek@redhat.com>
20008
20009 PR middle-end/71476
20010 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
20011 gimplify_switch_expr.
20012 (warn_switch_unreachable_r): New function.
20013
20014 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20015
20016 PR target/71379
20017 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
20018 one.
20019
20020 2016-06-13 Richard Biener <rguenther@suse.de>
20021
20022 PR middle-end/64516
20023 * fold-const.c (fold_unary_loc): Preserve alignment when
20024 folding a VIEW_CONVERT_EXPR into a MEM_REF.
20025
20026 2016-06-13 Martin Liska <mliska@suse.cz>
20027
20028 PR sanitizer/71458
20029 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
20030 w/ -fsanitize=bounds.
20031
20032 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
20033
20034 * config/i386/i386.c (ix86_init_builtins): Calculate
20035 FLOAT128_FTYPE_CONST_STRING function type only once.
20036 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
20037 built-in functions are available for x86-32 and x86-64 targets.
20038
20039 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
20040
20041 PR target/71241
20042 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
20043 New primitive type.
20044 (FLOAT128_FTYPE_CONST_STRING): New function type.
20045 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
20046 [IX86_BUILTIN_NANSQ]: Ditto.
20047 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20048 (ix86_init_builtin_types): Declare const_string_type_node.
20049 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
20050 builtin functions.
20051 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20052 * doc/extend.texi (x86 Built-in Functions): Document
20053 __builtin_nanq and __builtin_nansq.
20054
20055 2016-06-11 Jiong Wang <jiong.wang@arm.com>
20056
20057 PR target/71061
20058 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
20059 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
20060 length for pop patterns.
20061 (arm_attr_length_push_multi): Update comments.
20062 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
20063 attribute.
20064 (*pop_multiple_with_writeback_and_return): Likewise.
20065 (*pop_multiple_with_return): Likewise.
20066
20067 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
20068
20069 PR middle-end/71310
20070 * fold-const.c (optimize_bit_field_compare): Don't try to use
20071 word_mode unconditionally for reading the bit field, look at
20072 DECL_BIT_FIELD_REPRESENTATIVE instead.
20073
20074 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
20075
20076 PR middle-end/71478
20077 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
20078 vector integer type.
20079
20080 2016-06-10 Jakub Jelinek <jakub@redhat.com>
20081
20082 PR middle-end/71494
20083 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
20084 without LABEL_DECL, set *handled_ops_p to false instead of true.
20085
20086 2016-06-10 Martin Sebor <msebor@redhat.com>
20087
20088 PR c/71392
20089 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
20090 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
20091 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
20092 them.
20093 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
20094 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
20095 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
20096 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
20097 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
20098 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
20099 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
20100 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
20101
20102 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20103
20104 * config/arm/arm.h (pool_vector_label,
20105 return_used_this_function): Remove.
20106
20107 2016-06-10 Jeff Law <law@redhat.com>
20108
20109 PR tree-optimization/71335
20110 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
20111 zero length paths here.
20112 (convert_and_register_jump_thread_path): Remove hacks related to
20113 duplicated blocks in the jump thread path.
20114 (fsm_find_control_statement_thread_paths): Avoid putting the same
20115 block on the thread path twice, but ensure the thread path is
20116 unchanged from the caller's point of view.
20117
20118 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
20119
20120 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
20121 * predict.def (PRED_LOOP_BRANCH): Remove.
20122
20123 2016-06-10 David Malcolm <dmalcolm@redhat.com>
20124
20125 * Makefile.in (OBJS): Add ggc-tests.o.
20126 (GTFILES): Add ggc-tests.c.
20127 * ggc-tests.c: New file.
20128 * selftest-run-tests.c (selftest::run_tests): Call
20129 selftest::ggc_tests_c_tests.
20130 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
20131
20132 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
20133
20134 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
20135
20136 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
20137
20138 PR sanitizer/71480
20139 * varasm.c (place_block_symbol): Adjust alignment for asan protected
20140 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
20141
20142 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
20143
20144 * profile.c: Include cfgloop.h.
20145 (branch_prob): Compute estimated number of iterations.
20146 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
20147 recompute estimate number of iterations from profile.
20148
20149 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20150
20151 PR inline-asm/68843
20152 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
20153 must be grouped on top of stack. Don't force early clobber
20154 on ordinary reg outputs.
20155
20156 2016-06-10 Richard Biener <rguenther@suse.de>
20157
20158 * targhooks.c (default_builtin_vectorization_cost): Adjust
20159 vec_construct cost.
20160
20161 2016-06-10 Richard Biener <rguenther@suse.de>
20162
20163 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
20164 to fold the RHS to a constant if possible.
20165
20166 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
20167
20168 PR middle-end/71373
20169 * tree-nested.c (convert_nonlocal_omp_clauses)
20170 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
20171 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
20172 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
20173
20174 * gimplify.c (gimplify_adjust_omp_clauses): Discard
20175 OMP_CLAUSE_TILE.
20176 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
20177
20178 * omp-low.c (scan_sharing_clauses): Don't expect
20179 OMP_CLAUSE__CACHE_.
20180
20181 2016-06-10 Alan Hayward <alan.hayward@arm.com>
20182
20183 PR tree-optimization/71407
20184 PR tree-optimization/71416
20185 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
20186 BIT_FIELD_REF type.
20187
20188 2016-06-10 Richard Biener <rguenther@suse.de>
20189
20190 PR middle-end/71477
20191 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
20192
20193 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
20194
20195 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
20196
20197 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
20198 Jiong Wang <jiong.wang@arm.com>
20199
20200 PR rtl-optimization/70751
20201 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
20202 spilled into memory.
20203
20204 2016-06-09 Jonathan Yong <10walls@gmail.com>
20205
20206 Revert:
20207 2015-09-21 Jonathan Yong <10walls@gmail.com>
20208
20209 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
20210 sysroot/usr/lib/32api for additional win32 libraries,
20211 fixes failing Cygwin bootstrapping.
20212
20213 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
20214
20215 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
20216 Delete.
20217
20218 2016-06-09 David Malcolm <dmalcolm@redhat.com>
20219
20220 PR bootstrap/71471
20221 * pretty-print.c (pp_indent): Specify that %p is printed in a
20222 host-dependent manner.
20223 (test_pp_format): Remove the test for %p.
20224
20225 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
20226
20227 * config/mips/mips.c (mips_output_jump): Fix formatting.
20228
20229 2016-06-09 Richard Biener <rguenther@suse.de>
20230
20231 PR tree-optimization/71462
20232 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
20233 removed blocks.
20234
20235 2016-06-09 Martin Liska <mliska@suse.cz>
20236
20237 * predict.c (dump_prediction): Add new argument.
20238 (enum predictor_reason): New enum.
20239 (struct predictor_hash): New struct.
20240 (predictor_hash::hash): New function.
20241 (predictor_hash::equal): Likewise.
20242 (not_removed_prediction_p): New function.
20243 (prune_predictions_for_bb): Likewise.
20244 (combine_predictions_for_bb): Prune predictions.
20245
20246 2016-06-09 Martin Liska <mliska@suse.cz>
20247
20248 * predict.c (filter_predictions): New function.
20249 (remove_predictions_associated_with_edge): Use the filter
20250 function.
20251 (equal_edge_p): New function.
20252
20253 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
20254
20255 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
20256 Correct usage of @samp vs @option, add @samp where appropriate.
20257 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
20258 Add armv6s-m and document it, as it is no official ARM name.
20259
20260 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20261
20262 * ifcvt.c (struct noce_if_info): Add transform_name field.
20263 (noce_try_move): Set if_info->transform_name to the function name.
20264 (noce_try_ifelse_collapse): Likewise.
20265 (noce_try_store_flag): Likewise.
20266 (noce_try_inverse_constants): Likewise.
20267 (noce_try_store_flag_constants): Likewise.
20268 (noce_try_addcc): Likewise.
20269 (noce_try_store_flag_mask): Likewise.
20270 (noce_try_cmove): Likewise.
20271 (noce_try_cmove_arith): Likewise.
20272 (noce_try_minmax): Likewise.
20273 (noce_try_abs): Likewise.
20274 (noce_try_sign_mask): Likewise.
20275 (noce_try_bitop): Likewise.
20276 (noce_convert_multiple_sets): Likewise.
20277 (noce_process_if_block): Print if_info->transform_name to
20278 dump_file if transformation succeeded.
20279
20280 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20281
20282 * config/arm/cortex-a57.md (cortex_a57_alu):
20283 Handle csel type.
20284
20285 2016-06-08 Martin Sebor <msebor@redhat.com>
20286 Jakub Jelinek <jakub@redhat.com>
20287
20288 PR c++/70507
20289 PR c/68120
20290 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
20291 BUILT_IN_MUL_OVERFLOW_P): New builtins.
20292 * builtins.c: Include gimple-fold.h.
20293 (fold_builtin_arith_overflow): Handle
20294 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
20295 (fold_builtin_3): Likewise.
20296 * doc/extend.texi (Integer Overflow Builtins): Document
20297 __builtin_{add,sub,mul}_overflow_p.
20298
20299 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
20300
20301 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
20302 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
20303
20304 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
20305
20306 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
20307 Rewrite, looking one level down for records and arrays.
20308
20309 2016-06-08 David Malcolm <dmalcolm@redhat.com>
20310
20311 * pretty-print.c: Include "selftest.h".
20312 (pp_format): Fix comment.
20313 (identifier_to_locale): Likewise.
20314 (selftest::test_basic_printing): New function.
20315 (selftest::assert_pp_format): New function.
20316 (selftest::test_pp_format): New function.
20317 (selftest::pretty_print_c_tests): New function.
20318 * selftest-run-tests.c (selftest::run_tests): Call
20319 selftest::pretty_print_c_tests.
20320 * selftest.h (pretty_print_c_tests): New declaration.
20321
20322 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20323
20324 * invoke.texi (max-loop-headers-insns): Document.
20325 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
20326 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
20327 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
20328
20329 2016-06-08 Richard Biener <rguenther@suse.de>
20330
20331 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
20332 on strided SLP loads and fall back to scalar loads in case
20333 we can't chunk them.
20334
20335 2016-06-08 Richard Biener <rguenther@suse.de>
20336
20337 PR tree-optimization/71452
20338 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
20339 type used for the SSA rewrite has enough precision to cover
20340 the dynamic type of the location.
20341
20342 2016-06-08 Jakub Jelinek <jakub@redhat.com>
20343 Richard Biener <rguenther@suse.de>
20344
20345 PR c++/71448
20346 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
20347 the same as DECL_P (base0) for indirect_base0. Use equality_code
20348 in one further place.
20349
20350 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
20351
20352 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
20353 to one word if the field is known to overlap other words.
20354 (extract_bit_field_1): Likewise.
20355 (store_split_bit_field): Remove compensating code.
20356 (extract_split_bit_field): Likewise.
20357
20358 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
20359
20360 PR debug/71432
20361 PR ada/71413
20362 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
20363
20364 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20365
20366 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
20367 VDQF.
20368 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
20369 (arch64_addpv4sf): Delete.
20370 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
20371 "gen_aarch64_addpv4sf".
20372 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
20373 builtin.
20374 (vpadds_f32): Likewise.
20375 (vpaddq_f32): Likewise.
20376 (vpaddq_f64): Likewise.
20377
20378 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20379
20380 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
20381 VALLF.
20382 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
20383 to VALLF. Rename to "fabd<mode>3".
20384 "*fabd_scalar<mode>3): Delete.
20385 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
20386 Use builtin.
20387 (vabdd_f64): Likewise.
20388 (vabd_f32): Likewise.
20389 (vabd_f64): Likewise.
20390 (vabdq_f32): Likewise.
20391 (vabdq_f64): Likewise.
20392
20393 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20394
20395 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
20396 VALLF.
20397 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
20398 "aarch64_rsqrts<mode>".
20399 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
20400 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
20401 builtin.
20402 (vrsqrtsd_f64): Likewise.
20403 (vrsqrts_f32): Likewise.
20404 (vrsqrts_f64): Likewise.
20405 (vrsqrtsq_f32): Likewise.
20406 (vrsqrtsq_f64): Likewise.
20407
20408 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20409
20410 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
20411 VALLF.
20412 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
20413 "aarch64_rsqrte<mode>".
20414 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
20415 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
20416 builtin.
20417 (vrsqrted_f64): Likewise.
20418 (vrsqrte_f32): Likewise.
20419 (vrsqrte_f64): Likewise.
20420 (vrsqrteq_f32): Likewise.
20421 (vrsqrteq_f64): Likewise.
20422
20423 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20424
20425 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
20426 (ucvtf): Likewise.
20427 (fcvtzs): Likewise.
20428 (fcvtzu): Likewise.
20429 * config/aarch64/aarch64-simd.md
20430 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
20431 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
20432 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
20433 Use builtin.
20434 (vcvt_n_f32_u32): Likewise.
20435 (vcvt_n_s32_f32): Likewise.
20436 (vcvt_n_u32_f32): Likewise.
20437 (vcvtq_n_f32_s32): Likewise.
20438 (vcvtq_n_f32_u32): Likewise.
20439 (vcvtq_n_f64_s64): Likewise.
20440 (vcvtq_n_f64_u64): Likewise.
20441 (vcvtq_n_s32_f32): Likewise.
20442 (vcvtq_n_s64_f64): Likewise.
20443 (vcvtq_n_u32_f32): Likewise.
20444 (vcvtq_n_u64_f64): Likewise.
20445 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
20446 (VSDQ_SDI): Likewise.
20447 (fcvt_target): Support V4DI, V4SI and V2SI.
20448 (FCVT_TARGET): Likewise.
20449
20450 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20451
20452 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
20453 (TYPES_BINOP_SUS): Likewise.
20454 (aarch64_simd_builtin_data): Update include file name.
20455 (aarch64_builtins): Likewise.
20456 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
20457 for conversion between scalar float-point and fixed-point.
20458 (ucvtf): Likewise.
20459 (fcvtzs): Likewise.
20460 (fcvtzu): Likewise.
20461 * config/aarch64/aarch64.md
20462 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
20463 pattern for conversion between scalar float to fixed-pointer.
20464 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
20465 (UNSPEC_FCVTZS): New UNSPEC enumeration.
20466 (UNSPEC_FCVTZU): Likewise.
20467 (UNSPEC_SCVTF): Likewise.
20468 (UNSPEC_UCVTF): Likewise.
20469 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
20470 Use builtin.
20471 (vcvtd_n_f64_u64): Likewise.
20472 (vcvtd_n_s64_f64): Likewise.
20473 (vcvtd_n_u64_f64): Likewise.
20474 (vcvtd_n_f32_s32): Likewise.
20475 (vcvts_n_f32_u32): Likewise.
20476 (vcvtd_n_s32_f32): Likewise.
20477 (vcvts_n_u32_f32): Likewise.
20478 * config/aarch64/iterators.md (fcvt_target): Support integer to float
20479 mapping.
20480 (FCVT_TARGET): Likewise.
20481 (FCVT_FIXED2F): New iterator.
20482 (FCVT_F2FIXED): Likewise.
20483 (fcvt_fixed_insn): New define_int_attr.
20484
20485 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20486
20487 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
20488 some statements was removed.
20489
20490 2016-06-08 Alan Hayward <alan.hayward@arm.com>
20491
20492 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
20493 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
20494 (vect_can_advance_ivs_p): likewise.
20495 (vect_update_ivs_after_vectorizer): likewise.
20496 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
20497 (vect_analyze_scalar_cycles_1): likewise.
20498 (vect_analyze_loop_operations): likewise.
20499 (report_vect_op): likewise.
20500 (vect_is_slp_reduction): likewise.
20501 (vect_is_simple_reduction): likewise.
20502 (get_initial_def_for_induction): likewise.
20503 (vect_transform_loop): likewise.
20504 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
20505 (vect_recog_sad_pattern): likewise.
20506 (vect_recog_widen_sum_pattern): likewise.
20507 (vect_recog_widening_pattern): likewise.
20508 (vect_recog_divmod_pattern): likewise.
20509 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
20510 (vect_analyze_slp_instance): likewise.
20511 (vect_transform_slp_perm_load): likewise.
20512 (vect_schedule_slp_instance): likewise.
20513
20514 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20515
20516 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
20517 (return_prediction): PRED_CONST_RETURN predict return as not taken.
20518 * predict.def (PRED_CONTINUE): Change hitrate 50->67
20519 (PRED_LOOP_BRANCH): Document predictor as broken.
20520 (PRED_LOOP_EXIT): Change hitrate 91->92.
20521 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
20522 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
20523 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
20524 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
20525 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
20526 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
20527 (PRED_CALL): Chane hitrate 71->67.
20528 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
20529 (PRED_GOTO): Document as unused right now.
20530 (PRED_CONST_RETURN): Change hitrate 67->69
20531 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
20532 (PRED_NULL_RETURN): Change hitrate 91->90.
20533 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
20534 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
20535 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
20536
20537 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
20538
20539 * config/rs6000/altivec.h: Add __builtin_vec_mul.
20540 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
20541 special case Altivec builtin.
20542 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
20543 VSX_BUILTIN_VEC_MUL (replaced with special case code).
20544 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
20545 code for ALTIVEC_BUILTIN_VEC_MUL.
20546 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
20547 for __builtin_vec_mul.
20548
20549 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
20550
20551 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
20552 -mno-htm.
20553
20554 2016-06-07 David Malcolm <dmalcolm@redhat.com>
20555
20556 * spellcheck.c (selftest::test_find_closest_string): New function.
20557 (spellcheck_c_tests): Call the above.
20558
20559 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20560
20561 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
20562
20563 2016-06-07 Jakub Jelinek <jakub@redhat.com>
20564
20565 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
20566 Yv=Yv,C alternatives.
20567
20568 2016-06-07 Richard Biener <rguenther@suse.de>
20569
20570 PR c/61564
20571 * common.opt (ffast-math): Make Optimization.
20572
20573 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
20574 Prachi Godbole <prachi.godbole@imgtec.com>
20575
20576 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
20577 `fabs' and `fneg' type attributes.
20578 (p5600_fpu_fabs): Add `fmove' to the comment.
20579
20580 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20581
20582 * gimple.c: Include builtins.h
20583 (gimple_inexpensive_call_p): New function.
20584 * gimple.h (gimple_inexpensive_call_p): Declare.
20585 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
20586 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
20587 fix formatting.
20588
20589 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
20590
20591 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
20592 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
20593 warning_at_rich_loc, warning_n, pedwarn, permerror,
20594 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
20595 sorry, fatal_error, internal_error, internal_error_no_backtrace):
20596 Use the above.
20597
20598 2016-06-07 Richard Biener <rguenther@suse.de>
20599
20600 PR tree-optimization/71428
20601 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
20602 BIT_FIELD_REF op vs. load.
20603
20604 2016-06-07 Richard Biener <rguenther@suse.de>
20605
20606 PR middle-end/71423
20607 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
20608 for signed ops.
20609
20610 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
20611
20612 * config/pa/pa.md (call): Generate indirect long calls to non-local
20613 functions on TARGET_64BIT.
20614 (call_value): Likewise.
20615
20616 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
20617
20618 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
20619 pattern and subsequent splitters.
20620 (call_val_reg_64bit_post_reload): Likewise.
20621
20622 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
20623
20624 PR middle-end/71408
20625 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
20626 propagate_op_to_single_use.
20627
20628 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
20629
20630 PR middle-end/71281
20631 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
20632
20633 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
20634
20635 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
20636 (enum x86_dirflag_state): New enum.
20637 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
20638 (machine_function): Remove needs_cld.
20639 (ix86_current_function_needs_cld): Remove.
20640 * config/i386/i386.c (ix86_set_func_type): Set
20641 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
20642 (ix86_expand_prologue): Do not emit CLD here.
20643 (ix86_dirflag_mode_needed): New function.
20644 (ix86_dirflag_mode_entry): Ditto.
20645 (ix86_mode_needed): Handle X86_DIRFLAG entity.
20646 (ix86_mode_after): Ditto.
20647 (ix86_mode_entry): Ditto.
20648 (ix86_mode_exit): Ditto.
20649 (ix86_emit_mode_set): Ditto.
20650 * config/i386/i386.md (strmov_singleop): Set
20651 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
20652 Do not set ix86_current_function_needs_cld.
20653 (rep_mov): Ditto.
20654 (strset_singleop): Ditto.
20655 (rep_stos): Ditto.
20656 (cmpstrnqi_nz_1): Ditto.
20657 (cmpstrnqi_1): Ditto.
20658 (strlenqi_1): Ditto.
20659
20660 2016-06-06 Jakub Jelinek <jakub@redhat.com>
20661
20662 PR tree-optimization/71259
20663 * tree-vect-slp.c (vect_get_constant_vectors): For
20664 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
20665 one for constant op, and use COND_EXPR for non-constant.
20666
20667 2016-06-06 David Malcolm <dmalcolm@redhat.com>
20668
20669 * Makefile.in (OBJS): Add function-tests.o,
20670 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
20671 selftest-run-tests.o.
20672 (OBJS-libcommon): Add selftest.o.
20673 (OBJS-libcommon-target): Add selftest.o.
20674 (all.internal): Add "selftest".
20675 (all.cross): Likewise.
20676 (selftest): New phony target.
20677 (s-selftest): New target.
20678 (selftest-gdb): New phony target.
20679 (COLLECT2_OBJS): Add selftest.o.
20680 * bitmap.c: Include "selftest.h".
20681 (selftest::test_gc_alloc): New function.
20682 (selftest::test_set_range): New function.
20683 (selftest::test_clear_bit_in_middle): New function.
20684 (selftest::test_copying): New function.
20685 (selftest::test_bitmap_single_bit_set_p): New function.
20686 (selftest::bitmap_c_tests): New function.
20687 * common.opt (fself-test): New.
20688 * diagnostic-show-locus.c: Include "selftest.h".
20689 (make_range): New function.
20690 (test_range_contains_point_for_single_point): New function.
20691 (test_range_contains_point_for_single_line): New function.
20692 (test_range_contains_point_for_multiple_lines): New function.
20693 (assert_eq): New function.
20694 (test_get_line_width_without_trailing_whitespace): New function.
20695 (selftest::diagnostic_show_locus_c_tests): New function.
20696 * et-forest.c: Include "selftest.h".
20697 (selftest::test_single_node): New function.
20698 (selftest::test_simple_tree): New function.
20699 (selftest::test_disconnected_nodes): New function.
20700 (selftest::et_forest_c_tests): New function.
20701 * fold-const.c: Include "selftest.h".
20702 (selftest::assert_binop_folds_to_const): New function.
20703 (selftest::assert_binop_folds_to_nonlvalue): New function.
20704 (selftest::test_arithmetic_folding): New function.
20705 (selftest::fold_const_c_tests): New function.
20706 * function-tests.c: New file.
20707 * gimple.c: Include "selftest.h".
20708 Include "gimple-pretty-print.h".
20709 (selftest::verify_gimple_pp): New function.
20710 (selftest::test_assign_single): New function.
20711 (selftest::test_assign_binop): New function.
20712 (selftest::test_nop_stmt): New function.
20713 (selftest::test_return_stmt): New function.
20714 (selftest::test_return_without_value): New function.
20715 (selftest::gimple_c_tests): New function.
20716 * hash-map-tests.c: New file.
20717 * hash-set-tests.c: New file.
20718 * input.c: Include "selftest.h".
20719 (selftest::assert_loceq): New function.
20720 (selftest::test_accessing_ordinary_linemaps): New function.
20721 (selftest::test_unknown_location): New function.
20722 (selftest::test_builtins): New function.
20723 (selftest::test_reading_source_line): New function.
20724 (selftest::input_c_tests): New function.
20725 * rtl-tests.c: New file.
20726 * selftest-run-tests.c: New file.
20727 * selftest.c: New file.
20728 * selftest.h: New file.
20729 * spellcheck.c: Include "selftest.h".
20730 (selftest::levenshtein_distance_unit_test_oneway): New function,
20731 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
20732 (selftest::levenshtein_distance_unit_test): Likewise.
20733 (selftest::spellcheck_c_tests): Likewise.
20734 * toplev.c: Include selftest.h.
20735 (toplev::run_self_tests): New.
20736 (toplev::main): Handle -fself-test.
20737 * toplev.h (toplev::run_self_tests): New.
20738 * tree.c: Include "selftest.h".
20739 (selftest::test_integer_constants): New function.
20740 (selftest::test_identifiers): New function.
20741 (selftest::test_labels): New function.
20742 (selftest::tree_c_tests): New function.
20743 * tree-cfg.c: Include "selftest.h".
20744 (selftest::push_fndecl): New function.
20745 (selftest::test_linear_chain): New function.
20746 (selftest::test_diamond): New function.
20747 (selftest::test_fully_connected): New function.
20748 (selftest::tree_cfg_c_tests): New function.
20749 * vec.c: Include "selftest.h".
20750 (selftest::safe_push_range): New function.
20751 (selftest::test_quick_push): New function.
20752 (selftest::test_safe_push): New function.
20753 (selftest::test_truncate): New function.
20754 (selftest::test_safe_grow_cleared): New function.
20755 (selftest::test_pop): New function.
20756 (selftest::test_safe_insert): New function.
20757 (selftest::test_ordered_remove): New function.
20758 (selftest::test_unordered_remove): New function.
20759 (selftest::test_block_remove): New function.
20760 (selftest::reverse_cmp): New function.
20761 (selftest::test_qsort): New function.
20762 (selftest::vec_c_tests): New function.c.
20763 * wide-int.cc: Include selftest.h and wide-int-print.h.
20764 (selftest::from_int <wide_int>): New function.
20765 (selftest::from_int <offset_int>): New function.
20766 (selftest::from_int <widest_int>): New function.
20767 (selftest::assert_deceq): New function.
20768 (selftest::assert_hexeq): New function.
20769 (selftest::test_printing <VALUE_TYPE>): New function template.
20770 (selftest::test_ops <VALUE_TYPE>): New function template.
20771 (selftest::test_comparisons <VALUE_TYPE>): New function template.
20772 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
20773 template.
20774 (selftest::wide_int_cc_tests): New function.
20775
20776 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20777
20778 PR middle-end/37780
20779 * ifcvt.c (noce_try_ifelse_collapse): New function.
20780 Declare prototype.
20781 (noce_process_if_block): Call noce_try_ifelse_collapse.
20782 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
20783 (simplify_ternary_operation): Use the above to simplify
20784 conditional CLZ/CTZ expressions.
20785
20786 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20787
20788 PR middle-end/37780
20789 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
20790 define_insn_and_split.
20791
20792 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20793
20794 PR middle-end/37780
20795 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
20796
20797 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
20798
20799 PR c/24414
20800 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
20801 Implicitly clobber memory for basic asm with non-empty assembler
20802 string. Use targetm.md_asm_adjust also here.
20803 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
20804 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
20805 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
20806 non-empty assembler string.
20807 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
20808 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
20809 (decode_asm_operands): Handle basic asm in PARALLEL block.
20810 (extract_insn): Handle basic asm in PARALLEL block.
20811 * doc/extend.texi: Mention new behavior of basic asm.
20812 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
20813 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
20814 branch_needs_nop_p): Use asm_noperands.
20815
20816 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
20817
20818 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
20819 Include the M7 SPARC DFA scheduler.
20820 New attribute v3pipe.
20821 Annotate insns with v3pipe where appropriate.
20822 Define cpu_feature vis4.
20823 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
20824 Add (V8QI "8") to vbits.
20825 Add insns {add,sub}v8qi3
20826 Add insns ss{add,sub}v8qi3
20827 Add insns us{add,sub}{v8qi,v4hi}3
20828 Add insns {min,max}{v8qi,v4hi,v2si}3
20829 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
20830 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
20831 * config/sparc/niagara4.md: Add a comment explaining the
20832 discrepancy between the documented latenty numbers and the
20833 implemented ones.
20834 * config/sparc/niagara7.md: New file.
20835 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
20836 supports SPARC5 and VIS 4.0 instructions.
20837 * configure: Regenerate.
20838 * config.in: Likewise.
20839 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
20840 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
20841 TARGET_CPU_niagara7.
20842 (ASM_CPU64_DEFAULT_SPEC): Likewise.
20843 (CPP_CPU_SPEC): Handle niagara7.
20844 (ASM_CPU_SPEC): Likewise.
20845 * config/sparc/sparc-opts.h (processor_type): Add
20846 PROCESSOR_NIAGARA7.
20847 (mvis4): New option.
20848 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
20849 (AS_NIAGARA7_FLAG): Define.
20850 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
20851 (CPP_CPU64_DEFAULT_SPEC): Likewise.
20852 (CPP_CPU_SPEC): Handle niagara7.
20853 (ASM_CPU_SPEC): Likewise.
20854 * config/sparc/sparc.c (niagara7_costs): Define.
20855 (sparc_option_override): Handle niagara7 and adjust cache-related
20856 parameters with better values for niagara cpus. Also support VIS4.
20857 (sparc32_initialize_trampoline): Likewise.
20858 (sparc_use_sched_lookahead): Likewise.
20859 (sparc_issue_rate): Likewise.
20860 (sparc_register_move_cost): Likewise.
20861 (dump_target_flag_bits): Support VIS4.
20862 (sparc_vis_init_builtins): Likewise.
20863 (sparc_builtins): Likewise.
20864 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
20865 VIS4 4.0.
20866 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
20867 UltraSparc M7.
20868 * config/sparc/sparc.opt (sparc_processor_type): New value
20869 niagara7.
20870 * config/sparc/visintrin.h (__attribute__): Prototypes for the
20871 VIS4 builtins.
20872 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
20873 -mvis4.
20874 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
20875 VIS4 builtins.
20876
20877 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
20878
20879 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
20880
20881 2016-06-06 Richard Biener <rguenther@suse.de>
20882
20883 PR tree-optimization/71398
20884 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
20885 remove edges.
20886
20887 2016-06-05 James Bowman <james.bowman@ftdichip.com>
20888
20889 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
20890 ft32_expand_prolog, ft32_expand_epilogue):
20891 Handle pretend_args.
20892 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
20893 * config/ft32/ft32.md: Add pretend_returner.
20894
20895 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
20896
20897 PR target/71389
20898 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
20899 Copy op1 RTX to avoid invalid sharing.
20900 (ix86_expand_vector_move_misalign): Ditto.
20901
20902 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
20903
20904 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
20905 ATTRIBUTE_UNUSED.
20906
20907 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
20908
20909 * predict.c (predicted_by_loop_heuristics_p): New function.
20910 (predict_iv_comparison): Use it.
20911 (predict_loops): Walk from innermost loops; do not predict edges
20912 leaving multiple loops multiple times; implement
20913 PRED_LOOP_ITERATIONS_MAX heuristics.
20914 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
20915
20916 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
20917
20918 * cfg.c (check_bb_profile): Do not report mismatched profiles when
20919 only edges out of BB are EH edges.
20920
20921 2016-06-04 Martin Sebor <msebor@redhat.com>
20922 Marcin Baczyński <marbacz@gmail.com>
20923
20924 PR c/48116
20925 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
20926 a void expression in a void function.
20927
20928 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
20929
20930 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
20931 aux; dump reasons of decisions.
20932 (should_duplicate_loop_header_p): Likewise.
20933 (do_while_loop_p): Likewise.
20934 (ch_base::copy_headers): Dump asi num insns duplicated.
20935
20936 2016-06-04 Jakub Jelinek <jakub@redhat.com>
20937
20938 PR tree-optimization/71405
20939 * tree-ssa.c (execute_update_addresses_taken): For clobber with
20940 incompatible type, build a new clobber with the right type instead
20941 of building a VIEW_CONVERT_EXPR around it.
20942
20943 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
20944
20945 PR tree-optimization/52171
20946 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
20947 by_pieces_ninsns instead of move_by_pieces_ninsns.
20948
20949 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
20950
20951 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
20952 for reg+reg addressing mode.
20953
20954 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20955
20956 * rs6000-c.c (c/c-tree.h): Add #include.
20957 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
20958 in C++ when found in the base position of vec_ld or vec_st.
20959
20960 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
20961
20962 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
20963 use of profile unless profile status is PROFILE_READ.
20964 * profile.c (compute_branch_probabilities): Set profile status
20965 only after reporting predictor hitrates.
20966
20967 2016-06-03 Joseph Myers <joseph@codesourcery.com>
20968
20969 PR target/71276
20970 PR target/71277
20971 * common.opt (ffp-int-builtin-inexact): New option.
20972 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
20973 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
20974 (ceil@var{m}2): Document dependence on this option.
20975 * ipa-inline-transform.c (inline_call): Handle
20976 flag_fp_int_builtin_inexact.
20977 * ipa-inline.c (can_inline_edge_p): Likewise.
20978 * config/i386/i386.md (rintxf2): Do not test
20979 flag_unsafe_math_optimizations.
20980 (rint<mode>2_frndint): New define_insn.
20981 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
20982 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
20983 for 387 instead of extending and truncating.
20984 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
20985 !flag_trapping_math instead of flag_unsafe_math_optimizations.
20986 Change to frndint<mode>2_<rounding>.
20987 (frndintxf2_<rounding>_i387): Likewise. Change to
20988 frndint<mode>2_<rounding>_i387.
20989 (<rounding_insn>xf2): Likewise.
20990 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
20991 !flag_trapping_math instead of flag_unsafe_math_optimizations for
20992 x87. Test TARGET_ROUND || !flag_trapping_math ||
20993 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
20994 SSE. Use ROUND_NO_EXC in constant operand of
20995 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
20996 for 387 instead of extending and truncating.
20997
20998 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
20999 Julia Koval <julia.koval@intel.com>
21000
21001 PR target/66960
21002 PR target/67630
21003 PR target/67634
21004 PR target/67841
21005 PR target/68037
21006 PR target/68618
21007 PR target/68661
21008 PR target/69575
21009 PR target/69596
21010 PR target/69734
21011 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
21012 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
21013 all registers, except for function return registers if there are
21014 no caller-saved registers.
21015 (ix86_set_func_type): New function.
21016 (ix86_set_current_function): Call ix86_set_func_type to set
21017 no_caller_saved_registers and func_type. Call reinit_regs if
21018 caller-saved registers are changed. Don't allow MPX, SSE, MMX
21019 nor x87 instructions in interrupt handler nor function with
21020 no_caller_saved_registers attribute.
21021 (ix86_function_ok_for_sibcall): Return false if there are no
21022 caller-saved registers.
21023 (type_natural_mode): Don't warn ABI change for MMX in interrupt
21024 handler.
21025 (ix86_function_arg_advance): Skip for callee in interrupt handler.
21026 (ix86_function_arg): Return special arguments in interrupt handler.
21027 (ix86_promote_function_mode): Promote pointer to word_mode only
21028 for normal functions.
21029 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
21030 interrupt handler.
21031 (ix86_epilogue_uses): New function.
21032 (ix86_hard_regno_scratch_ok): Likewise.
21033 (ix86_save_reg): Preserve all registers in interrupt handler
21034 after reload. Preserve all registers, except for function return
21035 registers, if there are no caller-saved registers after reload.
21036 (find_drap_reg): Always use callee-saved register if there are
21037 no caller-saved registers.
21038 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
21039 for interrupt handler.
21040 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
21041 Emit cld instruction if stringops are used in interrupt handler
21042 or interrupt handler isn't a leaf function.
21043 (ix86_expand_epilogue): Generate interrupt return for interrupt
21044 handler and pop the 'ERROR_CODE' off the stack before interrupt
21045 return in exception handler.
21046 (ix86_expand_call): Disallow calling interrupt handler directly.
21047 If there are no caller-saved registers, mark all registers that
21048 are clobbered by the call which returns as clobbered.
21049 (ix86_handle_no_caller_saved_registers_attribute): New function.
21050 (ix86_handle_interrupt_attribute): Likewise.
21051 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
21052 attributes.
21053 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
21054 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
21055 accumulation in interrupt function if stack may be realigned to
21056 avoid DRAP.
21057 (EPILOGUE_USES): New.
21058 (function_type): New enum.
21059 (machine_function): Add func_type and no_caller_saved_registers.
21060 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
21061 (interrupt_return): New pattern.
21062 * doc/extend.texi: Document x86 interrupt and
21063 no_caller_saved_registers attributes.
21064
21065 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
21066
21067 PR tree-optimization/52171
21068 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
21069 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
21070 Look for constant strings. Move some code to emit_block_cmp_hints
21071 and use it.
21072 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
21073 * defaults.h (COMPARE_MAX_PIECES): New macro.
21074 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
21075 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
21076 (clear_by_pieces_1): Don't declare. Move definition before use.
21077 (can_do_by_pieces): New static function.
21078 (can_move_by_pieces): Use it. Return bool.
21079 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
21080 OP. All callers changed. Handle COMPARE_BY_PIECES.
21081 (class pieces_addr); New.
21082 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
21083 pieces_addr::adjust, pieces_addr::increment_address,
21084 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
21085 functions for it.
21086 (class op_by_pieces_d): New.
21087 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
21088 functions for it.
21089 (class move_by_pieces_d, class compare_by_pieces_d,
21090 class store_by_pieces_d): New subclasses of op_by_pieces_d.
21091 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
21092 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
21093 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
21094 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
21095 compare_by_pieces_d::finish_mode): New member functions.
21096 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
21097 functions.
21098 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
21099 (emit_block_cmp_hints): New function.
21100 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
21101 use the newly defined classes.
21102 * expr.h (by_pieces_constfn): New typedef.
21103 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
21104 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
21105 (move_by_pieces_ninsns): Don't declare.
21106 (can_move_by_pieces): Change return value to bool.
21107 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
21108 (compare_by_pieces_branch_ratio): New hook.
21109 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
21110 (by_pieces_ninsns): Declare.
21111 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
21112 COMPARE_BY_PIECES.
21113 (default_compare_by_pieces_branch_ratio): New function.
21114 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
21115 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
21116 * doc/tm.texi: Regenerate.
21117 * tree-ssa-strlen.c: Include "builtins.h".
21118 (handle_builtin_memcmp): New static function.
21119 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
21120 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
21121
21122 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21123
21124 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
21125 relevant stmts which are simple and invariant.
21126 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
21127 instead of simple and invariant
21128
21129 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21130
21131 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
21132 (vectorizable_reduction): Check for new relevant state.
21133 (vectorizable_live_operation): vectorize live stmts using
21134 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
21135 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
21136 (vect_stmt_relevant_p): Check for stmts which are only used live.
21137 (process_use): Use of a stmt does not inherit it's live value.
21138 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
21139 (vect_analyze_stmt): Check for new relevant state.
21140 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
21141 outside the loop, but not inside it.
21142
21143 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21144
21145 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
21146 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
21147 (vect_get_vec_def_for_operand): Split out code.
21148
21149 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
21150
21151 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
21152
21153 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21154
21155 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
21156
21157 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21158
21159 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
21160
21161 2016-06-03 Jakub Jelinek <jakub@redhat.com>
21162
21163 PR middle-end/71387
21164 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
21165 to noreturn e->callee->decl that has void return type and void
21166 arguments, adjust gimple_call_fntype and remove lhs even if it had
21167 previously addressable type.
21168
21169 2016-06-02 Jeff Law <law@redhat.com>
21170
21171 PR tree-optimization/71328
21172 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
21173 error when checking for a jump back onto the copied path.
21174
21175 2016-06-02 David Malcolm <dmalcolm@redhat.com>
21176
21177 * config/microblaze/microblaze.c (get_branch_target): Add return
21178 NULL_RTX for the non-CALL_P case.
21179 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
21180 (insert_wic): Remove unused local "j".
21181
21182 2016-06-02 Martin Liska <mliska@suse.cz>
21183
21184 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
21185
21186 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
21187 Julia Koval <julia.koval@intel.com>
21188
21189 * function.c (assign_parm_setup_stack): Force source into a
21190 register if needed.
21191 * target.def (function_incoming_arg): Update documentation to
21192 allow arbitrary address computation based on hard register.
21193 * doc/tm.texi: Regenerated.
21194
21195 2016-06-02 Martin Liska <mliska@suse.cz>
21196
21197 * predict.c (combine_predictions_for_bb): Fix first match in
21198 cases where a first predictor contains more than one occurence
21199 in list of predictors. Take the best value in such case.
21200
21201 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21202
21203 PR rtl-optimization/71295
21204 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
21205 offset would go over the size of the inner mode reject it.
21206
21207 2016-06-02 Jakub Jelinek <jakub@redhat.com>
21208
21209 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
21210 x=x,x and v=v,m instead of x=x,m.
21211
21212 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
21213 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
21214 alternative to v=rm,C.
21215
21216 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
21217 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
21218 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
21219 instead of vex for the last two above mentioned alternatives.
21220
21221 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21222
21223 PR target/70830
21224 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
21225
21226 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
21227
21228 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
21229
21230 2016-06-01 David Malcolm <dmalcolm@redhat.com>
21231
21232 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
21233 from int to unsigned.
21234
21235 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21236
21237 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
21238 alternatives, eliminating preferred register class. Add support
21239 for the MTVSRDD instruction in ISA 3.0.
21240 (vsx_splat_v4si_internal): Use splat_input_operand instead of
21241 reg_or_indexed_operand.
21242 (vsx_splat_v4sf_internal): Likewise.
21243
21244 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21245
21246 PR target/71186
21247 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
21248 for loading up all 0's or all 1's.
21249
21250 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
21251
21252 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
21253
21254 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
21255
21256 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
21257 extension.
21258 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
21259 * gcc.c (set_source_date_epoch_envvar): New function, sets
21260 the SOURCE_DATE_EPOCH environment variable to the current time.
21261
21262 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
21263
21264 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
21265 the factor for live Phi nodes.
21266
21267 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
21268
21269 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
21270 * tree-parloops.c (parallelize_loops): likewise.
21271 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
21272 tree_unswitch_outer_loop): likewise.
21273
21274 2016-06-01 Jakub Jelinek <jakub@redhat.com>
21275
21276 PR middle-end/71371
21277 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
21278 around creation of the temporary.
21279
21280 2016-06-01 Richard Biener <rguenther@suse.de>
21281
21282 PR tree-optimization/71366
21283 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
21284 (unloop_loops): Move removing edges here ...
21285 (try_unroll_loop_completely): ... from here.
21286 (try_peel_loop): ... and here.
21287 (tree_unroll_loops_completely_1): Track parent loops via
21288 bitmap of header BBs.
21289 (tree_unroll_loops_completely): Adjust for that.
21290
21291 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
21292
21293 * config/rs6000/altivec.h (vec_slv): New macro.
21294 (vec_srv): New macro.
21295 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
21296 (UNSPEC_VSRV): New value.
21297 (vslv): New insn.
21298 (vsrv): New insn.
21299 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
21300 (vsrv): New builtin definition.
21301 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
21302 define argument types for new builtin.
21303 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
21304 new builtin.
21305 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
21306 functions.
21307
21308 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
21309 Jocelyn Mayer <l_indien@magic.fr>
21310
21311 PR target/67310
21312 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
21313 detect processor family for signature_CENTAUR_ebx.
21314 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
21315 signature_CENTAUR_ebx.
21316 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
21317 <default>: Pass x86-64 for has_longmode.
21318
21319 2016-06-01 Nathan Sidwell <nathan@acm.org>
21320
21321 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
21322 undefined weak.
21323
21324 2016-06-01 Richard Biener <rguenther@suse.de>
21325
21326 PR tree-optimization/71261
21327 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
21328 of stmts successfully put in the bool pattern. Remove
21329 single-use restriction.
21330 (adjust_bool_pattern_cast): Add cast at the use site via the
21331 pattern def sequence.
21332 (adjust_bool_pattern): Remove recursion, maintain a hash-map
21333 of patterned defs. Use the pattern def seqence instead of
21334 multiple independent patterns.
21335 (sort_after_uid): New qsort compare function.
21336 (adjust_bool_stmts): New function to process stmts in the bool
21337 pattern in IL order.
21338 (vect_recog_bool_pattern): Adjust.
21339 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
21340 (ifcvt_walk_pattern_tree): Likewise.
21341 (stmt_is_root_of_bool_pattern): Likewise.
21342 (ifcvt_repair_bool_pattern): Likewise.
21343 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
21344
21345 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
21346
21347 * loop-unroll.c (decide_unroll_constant_iterations,
21348 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
21349 likely upper bounds.
21350 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
21351
21352 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
21353
21354 * tree-core.h (enum omp_clause_code): Remove
21355 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
21356
21357 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21358
21359 * config/arm/sync.md (arm_store_exclusive<mode>):
21360 Use 'H' output modifier on operands[2] rather than creating a new
21361 entry in out-of-bounds memory of the operands array.
21362 (arm_store_release_exclusivedi): Likewise.
21363
21364 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21365
21366 * config/arm/arm.c (arm_fusion_enabled_p): New function.
21367 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
21368 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
21369 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
21370
21371 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
21372
21373 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
21374 into account live statements for mask producers.
21375
21376 2016-06-01 Richard Biener <rguenther@suse.de>
21377
21378 PR tree-optimization/71311
21379 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
21380 restrict to non-INTEGER_CST @0.
21381
21382 2016-06-01 Richard Biener <rguenther@suse.de>
21383
21384 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
21385 (relational patterns): Use :c to avoid pattern duplications.
21386
21387 2016-06-01 Richard Biener <rguenther@suse.de>
21388
21389 * genmatch.c (comparison_code_p): New predicate.
21390 (swap_tree_comparison): New function.
21391 (commutate): Add for_vec parameter to append new for entries.
21392 Support commutating relational operators by swapping it alongside
21393 operands.
21394 (lower_commutative): Adjust.
21395 (dt_simplify::gen): Do not pass artificial operators to gen
21396 functions.
21397 (decision_tree::gen): Do not add artificial operators as parameters.
21398 (parser::parse_expr): Verify operator commutativity when :c is
21399 applied. Allow :C to override this.
21400 * match.pd: Adjust patterns to use :C instead of :c where required.
21401
21402 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
21403
21404 PR tree-optimization/71077
21405 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
21406 the combining step, use boolean_false_node and boolean_true_node
21407 as the designated false/true return values.
21408
21409 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21410
21411 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
21412 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
21413 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
21414 PRED_LOOP_EXIT.
21415
21416 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21417
21418 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
21419 of flags impliying the register renaming.
21420 * toplev.c (process_options): Do not imply flag_rename_registers with
21421 loop peeling.
21422
21423 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21424
21425 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
21426 default implementation.
21427
21428 2016-05-31 Nathan Sidwell <nathan@acm.org>
21429
21430 * dwarf2out.c (cur_line_info_table): Add GTY marker.
21431
21432 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21433
21434 * config/sh/constraints.md (b): Remove constraint.
21435 * config/sh/predicates.md (arith_reg_operand): Remove
21436 TARGET_REGISTER_P.
21437 * config/sh/sh-modes.def (PDI): Remove.
21438 * config/sh/sh.c (sh_target_reg_class,
21439 sh_optimize_target_register_callee_saved): Remove functions.
21440 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
21441 (sh_expand_epilogue): Update comment.
21442 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
21443 sh_secondary_reload): Remove TARGET_REGS related code.
21444 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
21445 TARGET_REGISTER_P): Remove macros.
21446 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
21447 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
21448 TR1_REG, TR2_REG): Remove constants.
21449 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
21450
21451 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21452
21453 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
21454 define_expand patterns.
21455 (adddi3_compact): Rename to adddi3.
21456 (subdi3_compact): Rename to subdi3.
21457 (*negdi2): Rename to negdi2.
21458 (*abs<mode>2): Rename to abs<mode>2.
21459
21460 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21461
21462 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
21463 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
21464 (atomic_sub_fetchsi): ... this new pattern.
21465 (mvtc): Add CC_REG clobber.
21466
21467 2016-05-31 Marek Polacek <polacek@redhat.com>
21468
21469 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
21470
21471 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21472
21473 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
21474 aarch64_fusion_enabled_p to check for fusion capabilities.
21475
21476 2016-05-31 Richard Biener <rguenther@suse.de>
21477
21478 PR tree-optimization/71352
21479 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
21480 minus one and a negate.
21481
21482 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21483
21484 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
21485 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
21486 Delete prototype.
21487 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
21488 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
21489 Remove use of aarch64_simd_attr_length_move, set length attribute
21490 directly.
21491 (*aarch64_be_movoi): Likewise.
21492 (*aarch64_be_movci): Likewise.
21493 (*aarch64_be_movxi): Likewise.
21494
21495 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21496
21497 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
21498 It no longer does that.
21499 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
21500
21501 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
21502
21503 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
21504 attribute __unused__.
21505
21506 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
21507
21508 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
21509 * config/arm/arm.c (arm_arch_thumb1): Define.
21510 (arm_option_override): Initialize arm_arch_thumb1.
21511 * config/arm/arm.h (arm_arch_thumb1): Declare.
21512 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
21513 support Thumb-1 ISA.
21514
21515 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
21516
21517 PR target/71346
21518 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
21519 `Yv' for scalar operand.
21520
21521 2016-05-31 Tom de Vries <tom@codesourcery.com>
21522
21523 PR tree-optimization/69068
21524 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
21525 phis with more than two args.
21526
21527 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
21528
21529 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
21530 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
21531 target.
21532
21533 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
21534
21535 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
21536 tune_64.
21537 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
21538 support on SPARC.
21539 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
21540 cpu_32, cpu_64, tune_32 and tune_64.
21541 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
21542
21543 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
21544
21545 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
21546
21547 2016-05-30 Andi Kleen <ak@linux.intel.com>
21548
21549 * auto-profile.c (read_profile): Replace asserts with errors
21550 when file does not exist.
21551 * gcov-io.c (gcov_read_words): Dito.
21552
21553 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21554
21555 * tree-cfg.c (print_loop): Print likely upper bounds.
21556
21557 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21558
21559 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
21560 * opts.c (default_options): Enable peel loops at -O3.
21561 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
21562 (try_peel_loop): Do not re-peel already peeled loops;
21563 use likely upper bounds; fix profile updating.
21564 (pass_complete_unroll::execute): Initialize peeled_loops.
21565
21566 2016-05-30 Martin Liska <mliska@suse.cz>
21567
21568 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
21569 computed costs by frequency of BB they belong to.
21570 (get_scaled_computation_cost_at): New function.
21571
21572 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
21573 Marc Glisse <marc.glisse@inria.fr>
21574
21575 PR tree-optimization/71289
21576 * match.pd (-1 / B < A, A > -1 / B): New transformations.
21577
21578 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21579
21580 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
21581
21582 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21583
21584 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
21585 for peeled copies; avoid underflow when updating estimates; correctly
21586 scale loop profile.
21587
21588 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
21589
21590 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
21591 r236875. Corrected oe3 to oe2 as obvious.
21592
21593 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
21594
21595 PR middle-end/71269
21596 PR middle-end/71252
21597 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
21598 that inserted stmt will not dominate stmts that defines its operand.
21599 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
21600 (rewrite_expr_tree_parallel): Likewise.
21601
21602 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
21603
21604 PR middle-end/71252
21605 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
21606 all fields including stmt_to_insert are swapped.
21607
21608 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21609
21610 * predict.h (force_edge_cold): Declare.
21611 * predict.c (force_edge_cold): New function.
21612 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
21613 updating.
21614 (canonicalize_loop_induction_variables): Fix formating.
21615
21616 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
21617
21618 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
21619 (visium_expand_copysign): Use gen_int_mode directly.
21620 (visium_compute_frame_size): Minor tweaks.
21621
21622 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21623
21624 * tree-vect-loop.c (vect_analyze_loop_2): Use
21625 likely_max_stmt_executions_int.
21626
21627 2016-05-30 Tom de Vries <tom@codesourcery.com>
21628
21629 PR tree-optimization/69067
21630 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
21631
21632 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
21633
21634 PR target/71245
21635 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
21636 New peepholes to remove unneeded fild/fistp pairs.
21637 (define_peephole2 atomic_loaddi_fpu): Ditto.
21638
21639 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21640
21641 * predict.c (maybe_hot_frequency_p): Avoid division.
21642
21643 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
21644
21645 * doc/install.texi: Use https for shop.fsf.org.
21646
21647 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21648
21649 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
21650 likely_max_stmt_executions_int.
21651
21652 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21653
21654 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
21655 likely_max_stmt_executions_int.
21656
21657 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21658
21659 * profile.c (compute_branch_probabilities): Do not report hitrates
21660 here.
21661 (branch_prob): Report hitrates here.
21662 * predict.c (gimple_predict_edge): Do not assert profile status;
21663 fix formatting issues.
21664
21665 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21666
21667 * predict.c (edge_predicted_by_p): New function.
21668 (predict_paths_for_bb): Do not put multiple predictions of the same type
21669 on one edge.
21670
21671 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21672
21673 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
21674 commit.
21675
21676 2016-05-28 Alan Modra <amodra@gmail.com>
21677
21678 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
21679
21680 2016-05-28 Alan Modra <amodra@gmail.com>
21681
21682 PR rtl-optimization/71275
21683 * ira.c (ira): Free dominance info.
21684
21685 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
21686
21687 * doc/sourcebuild.texi: New address for upstream Go repository.
21688
21689 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
21690
21691 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
21692 (TARGET_ARM_V7M): Likewise.
21693
21694 2016-05-26 Jeff Law <law@redhat.com>
21695
21696 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
21697 (thread_across_edge): Remove calls to find_jump_threads_backwards.
21698 * passes.def: Add jump threading passes before DOM/VRP.
21699 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
21700 argument to a basic block from an edge. Remove tests which are
21701 handled elsewhere.
21702 (pass_data_thread_jumps, class pass_thread_jumps): New.
21703 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
21704 (make_pass_thread_jumps): Likewise.
21705 * tree-pass.h (make_pass_thread_jumps): Declare.
21706
21707 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
21708
21709 * config/visium/visium-protos.h (split_double_move): Rename into...
21710 (visium_split_double_move): ...this.
21711 (visium_split_double_add): Declare.
21712 * config/visium/visium.c (split_double_move): Rename into...
21713 (visium_split_double_move): ...this.
21714 (visium_split_double_add): New function.
21715 (visium_expand_copysign): Renumber operands for consistency.
21716 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
21717 (DFmode move splitter): Likewise.
21718 (*addi3_insn): Split by means of visium_split_double_add.
21719 (*adddi3_insn_flags): Delete.
21720 (*plus_plus_sltu<subst_arith>): New insn.
21721 (*subdi3_insn): Split by means of visium_split_double_add.
21722 (subdi3_insn_flags): Delete.
21723 (*minus_minus_sltu<subst_arith>): New insn.
21724 (*negdi2_insn): Split by means of visium_split_double_add.
21725 (*negdi2_insn_flags): Delete.
21726
21727 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
21728
21729 * configure.ac: Treat a --with-headers option without argument
21730 the same as the default (i.e. consult sys-include directory).
21731 * configure: Regenerate.
21732
21733 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21734
21735 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
21736 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
21737 prototype.
21738 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
21739 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
21740
21741 2016-05-27 Jiong Wang <jiong.wang@arm.com>
21742
21743 PR target/63596
21744 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
21745 tree-stdarg analysis results.
21746 (aarch64_setup_incoming_varargs): Likewise.
21747
21748 2016-05-27 Jiong Wang <jiong.wang@arm.com>
21749
21750 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
21751 va_list_gpr_counter_field and va_list_fpr_counter_field.
21752
21753 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
21754
21755 PR67609
21756 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
21757 * config/aarch64/aarch64.c
21758 (aarch64_cannot_change_mode_class): Remove function.
21759 * config/aarch64/aarch64-protos.h
21760 (aarch64_cannot_change_mode_class): Remove.
21761
21762 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21763
21764 * cfgloop.c (record_niter_bound): Record likely upper bounds.
21765 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
21766 get_likely_max_loop_iterations_int): New.
21767 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
21768 any_likely_upper_bound.
21769 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
21770 Declare.
21771 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
21772 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
21773 upper bound.
21774 (unroll_loop_constant_iterations): Likewise.
21775 (unroll_loop_runtime_iterations): Likewise.
21776 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
21777 * lto-streamer-out.c (output_cfg): Likewise.
21778 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
21779 bounds.
21780 (canonicalize_loop_induction_variables): Dump likely upper bounds.
21781 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
21782 (likely_max_loop_iterations): New.
21783 (likely_max_loop_iterations_int): New.
21784 (likely_max_stmt_executions): New.
21785 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
21786 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
21787 likely_max_stmt_executions): Declare.
21788
21789 2016-05-27 Marek Polacek <polacek@redhat.com>
21790
21791 PR middle-end/71308
21792 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
21793
21794 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21795
21796 * config/s390/s390.md (2x risbg splitters): Use
21797 reg_overlap_mentioned_p instead of rtx_equal_p.
21798
21799 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
21800
21801 * combine.c (make_compound_operation): Take known zero bits into
21802 account when checking for possible zero_extend.
21803
21804 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21805
21806 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
21807 Use const_int_operand for operand 2 predicate. Simplify expand code
21808 as a result.
21809
21810 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
21811
21812 PR middle-end/71279
21813 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
21814 into comparison.
21815
21816 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21817
21818 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
21819 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
21820 that returns CC_SESWPmode and CC_ZESWPmode.
21821 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
21822 and CC_SESWPmode.
21823 (aarch64_rtx_costs): Likewise.
21824
21825 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
21826
21827 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
21828 for ISA 3.0 min/max support.
21829 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
21830 conditional move support.
21831 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
21832 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
21833 available.
21834 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
21835 conditional moves where the comparison type is different from move
21836 type.
21837 (fp_minmax): New code iterator for smin/smax.
21838 (minmax): New code attributes for min/max.
21839 (SMINMAX): Likewise.
21840 (smax<mode>3): Combine min, max insns into one insn using the
21841 fp_minmax code iterator. Add support for ISA 3.0 min/max
21842 instructions that don't need -ffast-math.
21843 (s<minmax><mode>3): Likewise.
21844 (smax<mode>3_vsx): Likewise.
21845 (smin<mode>3): Likewise.
21846 (s<minmax><mode>3_vsx): Likewise.
21847 (smin<mode>3_vsx): Likewise.
21848 (pre-VSX min/max splitters): Likewise.
21849 (s<minmax><mode>3_fpr): Likewise.
21850 (movsfcc): Rewrite floating point conditional moves to combine
21851 SFmode/DFmode into a single insn.
21852 (mov<mode>cc): Likewise.
21853 (movdfcc): Likewise.
21854 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
21855 SFDF2 iterators to handle all combinations.
21856 (fseldfsf4): Likewise.
21857 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
21858 (fseldfdf4): Likewise.
21859 (fselsfdf4): Likewise.
21860 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
21861 comparison instructions that set a 0/-1 mask, and use it for
21862 floating point conditional move via XXSEL.
21863 (fpmask<mode>): Likewise.
21864 (xxsel<mode>): Likewise.
21865 * config/rs6000/predicates.md (min_max_operator): Delete, no
21866 longer used.
21867 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
21868 instructions that generate a 0/-1 mask for use with XXSEL.
21869 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
21870 say whether floating point min/max is available, either through
21871 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
21872 (TARGET_MINMAX_DF): Likewise.
21873
21874 2016-05-27 Alan Modra <amodra@gmail.com>
21875
21876 PR rtl-optimization/71275
21877 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
21878 for update_equiv_regs and combine_and_move_insns.
21879
21880 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
21881
21882 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
21883 if_then_else or cond RTXes to calculate attribute value.
21884 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
21885 <attr "length_immediate>: Ditto.
21886 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
21887 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
21888 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
21889 <attr "type">: Ditto.
21890 <attr "prefix_data16">: Ditto.
21891 <attr "prefix_extra">: Ditto.
21892 <attr "length_immediate">: Ditto.
21893 <attr "prefix">: Ditto.
21894 (vec_set<mode>_0) <attr "isa">: Ditto.
21895 <attr "prefix_extra">: Ditto.
21896 <attr "length_immediate">: Ditto.
21897 <attr "prefix">: Ditto.
21898 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
21899 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
21900 (sse2_storelpd) <attr "prefix_data16">: Ditto.
21901 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
21902 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
21903 <attr "length_immediate">: Ditto.
21904 <attr "prefix">: Ditto.
21905 (sse2_movsd) <attr "length_immediate">: Ditto.
21906 <attr "prefix">: Ditto.
21907 (vec_concatv2df) <attr "isa">: Ditto.
21908 <attr "prefix">: Ditto.
21909 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
21910 (*vec_extractv2di_1) <attr "isa">: Ditto.
21911 <attr "type">: Ditto.
21912 <attr "length_immediate">: Ditto.
21913 <attr "prefix_rex">: Ditto.
21914 <attr "prefix_extra">: Ditto.
21915 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
21916 <attr "prefix_extra">: Ditto.
21917 <attr "length_immediate">: Ditto.
21918 (vec_concatv2di) <attr "isa">: Ditto.
21919 <attr "prefix_extra">: Ditto.
21920 <attr "length_immediate">: Ditto.
21921 <attr "prefix">: Ditto.
21922
21923 2016-05-26 Martin Liska <mliska@suse.cz>
21924
21925 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
21926 function.
21927 (operator+): Likewise.
21928 (operator-): Likewise.
21929 (comp_cost::operator+=): Likewise.
21930 (comp_cost::operator-=): Likewise.
21931 (comp_cost::operator/=): Likewise.
21932 (comp_cost::operator*=): Likewise.
21933 (operator<): Likewise.
21934 (operator==): Likewise.
21935 (operator<=): Likewise.
21936 (new_cost): Remove.
21937 (infinite_cost_p): Likewise.
21938 (add_costs): Likewise.
21939 (sub_costs): Likewise.
21940 (compare_costs): Likewise.
21941 (set_group_iv_cost): Use the newly introduced functions.
21942 (get_address_cost): Likewise.
21943 (get_shiftadd_cost): Likewise.
21944 (force_expr_to_var_cost): Likewise.
21945 (split_address_cost): Likewise.
21946 (ptr_difference_cost): Likewise.
21947 (difference_cost): Likewise.
21948 (get_computation_cost_at): Likewise.
21949 (determine_group_iv_cost_generic): Likewise.
21950 (determine_group_iv_cost_address): Likewise.
21951 (determine_group_iv_cost_cond): Likewise.
21952 (autoinc_possible_for_pair): Likewise.
21953 (determine_group_iv_costs): Likewise.
21954 (cheaper_cost_pair): Likewise.
21955 (iv_ca_recount_cost): Likewise.
21956 (iv_ca_set_no_cp): Likewise.
21957 (iv_ca_set_cp): Likewise.
21958 (iv_ca_cost): Likewise.
21959 (iv_ca_new): Likewise.
21960 (iv_ca_dump): Likewise.
21961 (iv_ca_narrow): Likewise.
21962 (iv_ca_prune): Likewise.
21963 (iv_ca_replace): Likewise.
21964 (try_add_cand_for): Likewise.
21965 (try_improve_iv_set): Likewise.
21966 (find_optimal_iv_set): Likewise.
21967
21968 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
21969
21970 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
21971 that internal functions will clobber all caller-saved registers.
21972
21973 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
21974
21975 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
21976 Return a better case_values_threshold when optimizing.
21977
21978 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
21979
21980 * config/aarch64/aarch64-simd.md (aarch64_combinez):
21981 Add ? to integer variant.
21982 (aarch64_combinez_be): Likewise.
21983
21984 2016-05-26 Jakub Jelinek <jakub@redhat.com>
21985
21986 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
21987 instead of x constraint.
21988 (vcvtps2ph256<mask_name>): Likewise.
21989
21990 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
21991 alternative. Formatting fix.
21992
21993 * config/i386/sse.md
21994 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
21995 to ...
21996 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
21997 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
21998 maybe_evex prefix instead of vex.
21999 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
22000 EXT_REX_SSE_REG_P (op0) case in the splitter.
22001
22002 2016-05-25 Jeff Law <law@redhat.com>
22003
22004 PR tree-optimization/71272
22005 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
22006 Update comments. Add test for empty path.
22007
22008 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22009
22010 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
22011 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
22012 special case builtin.
22013 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
22014 code for ALTIVEC_BUILTIN_VEC_CMPNE.
22015 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
22016 for __builtin_vec_cmpne.
22017
22018 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
22019
22020 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
22021 redundant test and bail out if the type of the new operand is not
22022 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
22023
22024 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
22025
22026 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
22027 (x_ix86_target_flags_explicit): Remove.
22028 * config/i386/i386.c (ix86_function_specific_save): Do not copy
22029 x_ix86_target_flags_explicit.
22030 (ix86_function_specific_restore): Ditto.
22031
22032 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
22033 H.J. Lu <hongjiu.lu@intel.com>
22034
22035 PR target/70738
22036 * common/config/i386/i386-common.c
22037 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
22038 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
22039 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
22040 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
22041 (-mgeneral-regs-only): Add new option.
22042 * config/i386/i386.c (ix86_option_override_internal): Don't enable
22043 x87 instructions if only general registers are allowed.
22044 (ix86_target_string): Add ix86_flags argument. Handle additional
22045 flags options through ix86_flags argument. Update all callers.
22046 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
22047
22048 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22049
22050 PR rtl-optimization/66940
22051 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
22052 decrementing desired_val will not overflow before performing these
22053 operations.
22054
22055 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
22056
22057 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
22058 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
22059 * config/i386/i386.c (enum ix86_builtins): Add
22060 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
22061 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
22062 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
22063 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
22064 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
22065 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
22066 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
22067 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
22068 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
22069 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
22070 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
22071 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
22072 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
22073 __builtin_ia32_cvtps2dq512_mask.
22074 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
22075 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
22076 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
22077 * config/i386/sse.md
22078 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
22079 Rename to ...
22080 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
22081 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
22082 to ...
22083 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
22084 (avx512f_vec_pack_sfix_v8df): New define_expand.
22085 (avx512f_roundpd512): Rename to ...
22086 (avx512f_round<castmode>512): ... this. Change iterator.
22087 (avx512f_roundps512_sfix): New define_expand.
22088 (round<mode>2_sfix): Change iterator.
22089
22090 2016-05-25 Nick Clifton <nickc@redhat.com>
22091
22092 * config/msp430/msp430.c (msp430_attr): Produce an error if a
22093 static interrupt handler is detected.
22094 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
22095 default linker script.
22096 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
22097 the low part of a symbolic pointer.
22098
22099 2016-05-25 Richard Biener <rguenther@suse.de>
22100
22101 PR tree-optimization/71261
22102 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
22103 interesting stmt instead of immediate uses when looking
22104 for the use operand to replace.
22105
22106 2016-05-25 Martin Liska <mliska@suse.cz>
22107
22108 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
22109
22110 2016-05-25 Richard Biener <rguenther@suse.de>
22111
22112 PR tree-optimization/71264
22113 * tree-vect-stmts.c (vect_init_vector): Properly deal with
22114 vector type val.
22115
22116 2016-05-25 Martin Liska <mliska@suse.cz>
22117
22118 PR tree-optimization/71239
22119 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
22120 if DECL_SIZE is NULL.
22121
22122 2016-05-25 Richard Biener <rguenther@suse.de>
22123
22124 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
22125 * tree-if-conv.c (pass_data_if_conversion): Use it.
22126
22127 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
22128
22129 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
22130 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
22131 * varpool.c (varpool_node::get_availability): Likewise.
22132
22133 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22134
22135 * config/rs6000/altivec.md (VNEG iterator): New iterator for
22136 VNEGW/VNEGD instructions.
22137 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
22138 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
22139 support for ISA 3.0 VNEGW/VNEGD instructions.
22140
22141 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
22142
22143 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
22144 pointers inside OACC_DATA regions.
22145 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
22146 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
22147 (gimplify_adjust_omp_clauses): Fix typo in comment.
22148
22149 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22150
22151 * config/rs6000/altivec.md (VParity): New mode iterator for vector
22152 parity built-in functions.
22153 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
22154 zeros.
22155 (p9v_parity<mode>2): Likewise.
22156 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
22157 parity.
22158 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
22159 (parity<mode>2): ISA 3.0 expander for vector parity.
22160 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
22161 power9 built-ins.
22162 (BU_P9_64BIT_MISC_0): Likewise.
22163 (BU_P9_MISC_0): Likewise.
22164 (BU_P9V_AV_1): Likewise.
22165 (BU_P9V_AV_2): Likewise.
22166 (BU_P9V_AV_3): Likewise.
22167 (BU_P9V_AV_P): Likewise.
22168 (BU_P9V_VSX_1): Likewise.
22169 (BU_P9V_OVERLOAD_1): Likewise.
22170 (BU_P9V_OVERLOAD_2): Likewise.
22171 (BU_P9V_OVERLOAD_3): Likewise.
22172 (VCTZB): Add vector count trailing zeros support.
22173 (VCTZH): Likewise.
22174 (VCTZW): Likewise.
22175 (VCTZD): Likewise.
22176 (VPRTYBD): Add vector parity support.
22177 (VPRTYBQ): Likewise.
22178 (VPRTYBW): Likewise.
22179 (VCTZ): Add overloaded vector count trailing zeros support.
22180 (VPRTYB): Add overloaded vector parity support.
22181 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22182 overloaded vector count trailing zeros and parity instructions.
22183 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
22184 vector parity support.
22185 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
22186 trailing zeros support.
22187 (vec_cntlz): Likewise.
22188 (vec_vctzb): Likewise.
22189 (vec_vctzd): Likewise.
22190 (vec_vctzh): Likewise.
22191 (vec_vctzw): Likewise.
22192 (vec_vprtyb): Add ISA 3.0 vector parity support.
22193 (vec_vprtybd): Likewise.
22194 (vec_vprtybw): Likewise.
22195 (vec_vprtybq): Likewise.
22196 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
22197 the ISA 3.0 vector count trailing zeros and vector parity built-in
22198 functions.
22199
22200 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22201
22202 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
22203 when there is stmt_to_insert.
22204
22205 2016-05-24 Martin Sebor <msebor@redhat.com>
22206
22207 PR c++/71147
22208 * tree.h (complete_or_array_type_p): New inline function.
22209
22210 2016-05-24 Jakub Jelinek <jakub@redhat.com>
22211
22212 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
22213 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
22214 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
22215
22216 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
22217 Limit 1st alternative to noavx isa, split 2nd alternative into one
22218 noavx and one avx alternative, use *x and Bm in the former and
22219 x and m in the latter.
22220
22221 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
22222 of sse4 for the first alternative, drop %v from the template
22223 and d operand modifier. Split second alternative into one sse4_noavx
22224 and one avx alternative, use *x instead of *v in the former and v
22225 instead of *v in the latter.
22226 (*sse4_1_extractps): Use noavx isa instead of * for the first
22227 alternative, drop %v from the template. Split second alternative into
22228 one noavx and one avx alternative, use *x instead of *v in the
22229 former and v instead of *v in the latter.
22230 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
22231 with noavx and the last one with avx.
22232 (sse4_1_phminposuw): Guard first alternative with noavx isa,
22233 split the second one into one noavx and one avx alternative,
22234 use *x and Bm in the former and x and m in the latter one.
22235 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
22236 alternatives.
22237
22238 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
22239 first two alternatives to noavx, use *x instead of *v in the second
22240 one, add avx alternative without *.
22241 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
22242 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
22243 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
22244
22245 2016-05-24 Jeff Law <law@redhat.com>
22246
22247 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
22248 New function, extracted from...
22249 (fsm_find_control_statement_thread_paths): Here. Use the new function.
22250 Allow simple copies and constant initializations in the SSA chain.
22251
22252 2016-05-24 Marek Polacek <polacek@redhat.com>
22253
22254 PR c/71249
22255 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
22256 scope.
22257
22258 2016-05-24 Jakub Jelinek <jakub@redhat.com>
22259
22260 PR c++/71257
22261 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
22262 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
22263 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
22264 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
22265 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
22266
22267 2016-05-24 Richard Biener <rguenther@suse.de>
22268
22269 PR tree-optimization/71240
22270 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
22271 has integral type.
22272
22273 2016-05-24 Richard Biener <rguenther@suse.de>
22274
22275 PR tree-optimization/71230
22276 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
22277
22278 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22279
22280 * tree-vectorizer.h (vectorizable_comparison): Delete.
22281 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
22282 PURE_SLP_STMT check.
22283 * tree-vect-stmts.c (vectorizable_call): Likewise.
22284 (vectorizable_simd_clone_call): Likewise.
22285 (vectorizable_conversion): Likewise.
22286 (vectorizable_assignment): Likewise.
22287 (vectorizable_shift): Likewise.
22288 (vectorizable_operation): Likewise.
22289 (vectorizable_load): Likewise.
22290 (vectorizable_condition): Likewise.
22291 (vectorizable_store): Likewise. Assert that we don't have
22292 hybrid SLP.
22293 (vectorizable_comparison): Make static. Remove redundant
22294 PURE_SLP_STMT check.
22295 (vect_transform_stmt): Assert that we always have an slp_node
22296 if PURE_SLP_STMT.
22297
22298 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22299
22300 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
22301 operands[2] against 1 with comparison against CONST1_RTX.
22302 (<shift>di3_neon): Likewise.
22303 * config/arm/predicates.md (const0_operand): Replace with comparison
22304 against CONST0_RTX.
22305
22306 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22307
22308 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
22309 operands[2] against 1 with comparison against CONST1_RTX.
22310 (ashrdi3): Likewise.
22311 (lshrdi3): Likewise.
22312 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
22313 UINTVAL.
22314 (ashrsi3): Likewise.
22315 (lshrsi3): Likewise.
22316 (rotrsi3): Likewise.
22317 (define_split above *compareqi_eq0): Likewise.
22318 (define_split above "prologue"): Likewise.
22319 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
22320 * config/arm/predicates.md (shift_operator): Likewise.
22321 (shift_nomul_operator): Likewise.
22322 (sat_shift_operator): Likewise.
22323 (thumb1_cmp_operand): Likewise.
22324 (const_neon_scalar_shift_amount_operand): Replace manual range
22325 check with IN_RANGE.
22326 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
22327 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
22328
22329 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22330
22331 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
22332 with HOST_WIDE_INT_1.
22333 (insv): Likewise.
22334 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
22335 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
22336 (arm_canonicalize_comparison): Likewise.
22337 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
22338 HOST_WIDE_INT_1.
22339 (thumb1_size_rtx_costs): Likewise.
22340 (vfp_const_double_index): Replace cast of 1 to unsigned
22341 HOST_WIDE_INT with HOST_WIDE_INT_1U.
22342 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
22343 HOST_WIDE_INT_1.
22344 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
22345 HOST_WIDE_INT with HOST_WIDE_INT_1U.
22346 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
22347 HOST_WIDE_INT with HOST_WIDE_INT_1.
22348
22349 2016-05-24 Marek Polacek <polacek@redhat.com>
22350
22351 * tree-cfg.h (should_remove_lhs_p): New predicate.
22352 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
22353 * gimplify.c (gimplify_modify_expr): Likewise.
22354 * tree-cfg.c (verify_gimple_call): Likewise.
22355 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
22356 * gimple-fold.c: Include "tree-cfg.h".
22357 (gimple_fold_call): Use should_remove_lhs_p.
22358
22359 2016-05-24 Richard Biener <rguenther@suse.de>
22360
22361 PR tree-optimization/71253
22362 * cfganal.h (control_dependences): Make robust against edge
22363 and BB removal.
22364 (control_dependences::control_dependences): Remove edge_list argument.
22365 (control_dependences::get_edge): Remove.
22366 (control_dependences::get_edge_src): Add.
22367 (control_dependences::get_edge_dest): Likewise.
22368 (control_dependences::m_el): Make a vector of edge src/dest index.
22369 * cfganal.c (control_dependences::find_control_dependence): Adjust.
22370 (control_dependences::control_dependences): Likewise.
22371 (control_dependences::~control_dependence): Likewise.
22372 (control_dependences::get_edge): Remove.
22373 (control_dependences::get_edge_src): Add.
22374 (control_dependences::get_edge_dest): Likewise.
22375 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
22376 get_edge_src.
22377 (perform_tree_ssa_dce): Adjust.
22378 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
22379 get_edge_src.
22380 (pass_loop_distribution::execute): Adjust. Do loop destroying
22381 conditional on changed.
22382
22383 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22384
22385 PR target/69857
22386 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
22387 return. Reindent transformation comment and mention the ARM state
22388 behavior.
22389
22390 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22391
22392 PR middle-end/71252
22393 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
22394 after build_and_add_sum creates new use stmt.
22395
22396 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22397
22398 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
22399 load_lanes/grouped_load classification comes first. Don't check
22400 whether the vectorization factor is a multiple of the group size
22401 for load_lanes.
22402
22403 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22404
22405 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
22406 GROUP_GAP for single-element interleaving.
22407 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
22408 variable.
22409
22410 2016-05-24 Richard Biener <rguenther@suse.de>
22411
22412 PR middle-end/70434
22413 PR c/69504
22414 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
22415 bases which are accessed with non-invariant indices.
22416 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
22417 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
22418
22419 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22420
22421 PR middle-end/71170
22422 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
22423 (add_to_ops_vec): Add stmt_to_insert.
22424 (add_repeat_to_ops_vec): Init stmt_to_insert.
22425 (insert_stmt_before_use): New.
22426 (transform_add_to_multiply): Remove mult_stmt insertion and add it
22427 to ops vector.
22428 (get_ops): Init stmt_to_insert.
22429 (maybe_optimize_range_tests): Likewise.
22430 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
22431 (rewrite_expr_tree_parallel): Likewise.
22432 (reassociate_bb): Likewise.
22433
22434 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22435
22436 PR target/71201
22437 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
22438 ISA 3.0 xxperm fusion alternative.
22439 (altivec_vperm_v8hiv16qi): Likewise.
22440 (altivec_vperm_<mode>_uns_internal): Likewise.
22441 (vperm_v8hiv4si): Likewise.
22442 (vperm_v16qiv8hi): Likewise.
22443
22444 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22445 Kelvin Nilsen <kelvin@gcc.gnu.org>
22446
22447 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
22448 vpermr/xxpermr on ISA 3.0.
22449 (altivec_expand_vec_perm_le): Likewise.
22450 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
22451 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
22452 ISA 3.0.
22453
22454 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
22455
22456 * config/i386/i386.h (IS_STACK_MODE): Enable for
22457 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
22458 SSE_FLOAT_MODE_P macros.
22459 * config/i386/i386.c (ix86_preferred_reload_class): Use
22460 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
22461 Cleanup regclass processing for CONST_DOUBLE_P.
22462 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
22463 (ix86_rtx_costs): Remove redundant TARGET_80387 check
22464 with IS_STACK_MODE macro.
22465 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
22466 with TARGET_SSE2.
22467 (*movdf_internal): Use IS_STACK_MODE macro.
22468 (*movsf_internal): Ditto.
22469
22470 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
22471
22472 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
22473 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
22474
22475 2016-05-23 Jeff Law <law@redhat.com>
22476
22477 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
22478 extracted from ...
22479 (fsm_find_control_statement_thread_paths): Call it.
22480
22481 2016-05-23 Martin Jambor <mjambor@suse.cz>
22482
22483 PR ipa/71234
22484 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
22485 from_global_constant if t is not NULL.
22486
22487 2016-05-23 Marek Polacek <polacek@redhat.com>
22488
22489 PR c/49859
22490 * common.opt (Wswitch-unreachable): New option.
22491 * doc/invoke.texi: Document -Wswitch-unreachable.
22492 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
22493 warning.
22494
22495 2016-05-23 Bin Cheng <bin.cheng@arm.com>
22496
22497 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
22498 TMR_INDEX is non-NULL.
22499
22500 2016-05-23 Richard Biener <rguenther@suse.de>
22501
22502 PR tree-optimization/71230
22503 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
22504 (try_special_add_to_ops): ... here. Always test for single-use.
22505
22506 2016-05-23 Martin Jambor <mjambor@suse.cz>
22507
22508 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
22509 default block if a PHI node in the original one would be resized.
22510
22511 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22512
22513 PR tree-optimization/58135
22514 * tree-vect-slp.c: When group size is not multiple
22515 of vector size, allow splitting of store group at
22516 vector boundary.
22517
22518 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
22519
22520 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
22521
22522 2016-05-22 Jakub Jelinek <jakub@redhat.com>
22523
22524 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
22525 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
22526 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
22527 of 64x2.
22528
22529 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
22530 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
22531 v constraint instead of x and vinserti32x4 insn.
22532
22533 * config/i386/sse.md (i128vldq): New mode iterator.
22534 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
22535 avx512dq and avx512vl alternatives.
22536
22537 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
22538 constraint, use maybe_evex prefix instead of vex.
22539 (vec_dupv4sf): Use v constraint instead of x for output
22540 operand except for noavx alternative, use Yv constraint
22541 instead of x for input. Use maybe_evex prefix instead of vex.
22542 (*vec_dupv4si): Likewise.
22543 (*vec_dupv2di): Likewise.
22544
22545 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
22546
22547 PR middle-end/40921
22548 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
22549 (linearize_expr_tree): Call try_special_add_to_ops.
22550 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
22551
22552 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22553
22554 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
22555 to computed stack_usage.
22556
22557 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22558
22559 PR target/71103
22560 * config/avr/avr.md (define_expand "mov<mode>"): If the source
22561 operand is subreg (symbol_ref) then move the symbol ref to register.
22562
22563 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
22564
22565 * tree.c (array_at_struct_end_p): Look through MEM_REF.
22566
22567 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
22568
22569 PR middle-end/71179
22570 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
22571 VECTOR type.
22572
22573 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
22574
22575 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
22576 ranges by calling get_single_symbol and tidy up. Look more closely
22577 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
22578
22579 2016-05-20 Jeff Law <law@redhat.com>
22580
22581 * bitmap.c (bitmap_find_bit): Remove useless test.
22582
22583 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
22584
22585 * function.c (thread_prologue_and_epilogue_insns): Commit the
22586 insertion of the epilogue.
22587
22588 2016-05-20 Martin Jambor <mjambor@suse.cz>
22589
22590 PR tree-optimization/70884
22591 * tree-sra.c (initialize_constant_pool_replacements): Do not check
22592 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
22593 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
22594 of constant pool data as a reason for scalarization.
22595
22596 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
22597
22598 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
22599 for naked functions.
22600 (thumb1_expand_prologue): Likewise.
22601
22602 2016-05-20 Nathan Sidwell <nathan@acm.org>
22603
22604 * config/nvptx/nptx.c (nvptx_option_override): Only set
22605 flag_toplevel_reorder, if not explicitly specified. Set
22606 flag_no_common, unless explicitly specified.
22607
22608 2016-05-20 David Malcolm <dmalcolm@redhat.com>
22609
22610 * calls.c (can_implement_as_sibling_call_p): Mark param
22611 reg_parm_stack_space with ATTRIBUTE_UNUSED.
22612
22613 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
22614
22615 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
22616 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
22617 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
22618 constants.
22619 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
22620 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
22621 and CASE_CONST_ANY.
22622
22623 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
22624
22625 * config/nvptx/nvptx.md (sincossf3): New pattern.
22626
22627 2016-05-20 David Malcolm <dmalcolm@redhat.com>
22628
22629 * calls.c (maybe_complain_about_tail_call): New function.
22630 (initialize_argument_information): Call
22631 maybe_complain_about_tail_call when clearing *may_tailcall.
22632 (can_implement_as_sibling_call_p): Call
22633 maybe_complain_about_tail_call when returning false.
22634 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
22635 ensure try_tail_call is set. Call maybe_complain_about_tail_call
22636 if tail-call optimization fails.
22637 * cfgexpand.c (expand_call_stmt): Initialize
22638 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
22639 * gimple-pretty-print.c (dump_gimple_call): Dump
22640 gimple_call_must_tail_p.
22641 * gimple.c (gimple_build_call_from_tree): Call
22642 gimple_call_set_must_tail with the value of
22643 CALL_EXPR_MUST_TAIL_CALL.
22644 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
22645 (gimple_call_set_must_tail): New function.
22646 (gimple_call_must_tail_p): New function.
22647 * print-tree.c (print_node): Update printing of TREE_STATIC
22648 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
22649 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
22650 trailing comment listing applicable flags.
22651 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
22652
22653 2016-05-20 David Malcolm <dmalcolm@redhat.com>
22654
22655 * calls.c (expand_call): Move "Rest of purposes for tail call
22656 optimizations to fail" to...
22657 (can_implement_as_sibling_call_p): ...this new function, and
22658 split into multiple "if" statements.
22659
22660 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
22661
22662 * cfgloop.h (expected_loop_iterations_unbounded,
22663 expected_loop_iterations): Unconstify.
22664 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
22665 profile with known upper bound; return 3 when profile is absent.
22666 (expected_loop_iterations): Update.
22667
22668 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
22669
22670 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
22671 and get_max_loop_iterations_int.
22672
22673 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
22674
22675 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
22676 realistic upper bounds here.
22677
22678 2016-05-20 Jakub Jelinek <jakub@redhat.com>
22679
22680 PR c++/71210
22681 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
22682 calls if the LHS is variable length or has addressable type.
22683 If targets[0]->decl is a noreturn call with void return type and
22684 zero arguments, adjust fntype and remove lhs in that case.
22685
22686 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
22687
22688 PR tree-optimization/71079
22689 PR tree-optimization/71206
22690 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
22691
22692 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22693
22694 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
22695 (get_vec_alignment_for_array_decl): Likewise.
22696 (get_vec_alignment_for_record_decl): Likewise.
22697 (increase_alignment::execute): Move code to find alignment to
22698 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
22699 (type_align_map): New hash_map.
22700
22701 2016-05-20 Richard Guenther <rguenther@suse.de>
22702
22703 PR tree-optimization/29756
22704 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
22705 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
22706 * fold-const.c (operand_equal_p): Likewise.
22707 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
22708 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
22709 * tree-inline.c (estimate_operator_cost): Likewise.
22710 * tree-pretty-print.c (dump_generic_node): Likewise.
22711 * tree-ssa-operands.c (get_expr_operands): Likewise.
22712 * cfgexpand.c (expand_debug_expr): Likewise.
22713 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
22714 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
22715 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
22716 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
22717 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
22718 (execute_update_addresses_taken): Do it.
22719
22720 2016-05-20 Richard Biener <rguenther@suse.de>
22721
22722 PR tree-optimization/71185
22723 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
22724 register operations.
22725
22726 2016-05-20 Richard Biener <rguenther@suse.de>
22727
22728 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
22729 gimple_seq_add_seq_without_update.
22730 (release_bb_predicate): Assert we have no operands to free.
22731 (if_convertible_loop_p_1): Calculate post dominators later.
22732 Do not free BB predicates here.
22733 (combine_blocks): Do not recompute BB predicates.
22734 (version_loop_for_if_conversion): Save BB predicates around
22735 loop versioning.
22736
22737 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22738
22739 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
22740 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
22741 code. Ignore sibcalls on EDGE_IGNORE edges.
22742 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
22743 on edges for sibcalls that run without prologue. The rest of the
22744 function is combined from...
22745 (fix_fake_fallthrough_edge): ... this, and ...
22746 (try_shrink_wrapping): ... a part of this. Remove the bb_with
22747 function argument, make it a local variable.
22748
22749 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
22750
22751 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
22752 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
22753 for 32-bit mode and SEH for 64-bit.
22754 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
22755 TARGET_64BIT_DEFAULT.
22756
22757 2016-05-19 Ryan Burn <contact@rnburn.com>
22758
22759 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
22760 * gengtype.c (open_base_files): Add cilk.h to ifiles.
22761
22762 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
22763
22764 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
22765 force pending loads from memory.
22766
22767 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
22768
22769 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
22770 (UNSPEC_DARN_32): New unspec constant.
22771 (UNSPEC_DARN_RAW): New unspec constant.
22772 (darn_32): New instruction.
22773 (darn_raw): New instruction.
22774 (darn): New instruction.
22775 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
22776 support and documentation for this macro.
22777 (BU_P9_MISC_1): New macro definition.
22778 (BU_P9_64BIT_MISC_0): New macro definition.
22779 (BU_P9_MISC_0): New macro definition.
22780 (darn_32): New builtin definition.
22781 (darn_raw): New builtin definition.
22782 (darn): New builtin definition.
22783 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
22784 RS6000_BUILTIN_0 directives to surround each occurrence of
22785 #include "rs6000-builtin.def".
22786 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
22787 RS6000_BTM_64BIT flags to the returned mask, depending on
22788 configuration.
22789 (def_builtin): Correct an error in the assignments made to the
22790 debugging variable attr_string.
22791 (rs6000_expand_builtin): Add support for no-operand built-in
22792 functions.
22793 (builtin_function_type): Remove fatal_error assertion that is no
22794 longer valid.
22795 (rs6000_common_init_builtins): Add support for no-operand built-in
22796 functions.
22797 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
22798 definition.
22799 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
22800 definition.
22801 (RS6000_BTM_64BIT): New macro definition.
22802 * doc/extend.texi: Document __builtin_darn (void),
22803 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
22804 functions.
22805
22806 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
22807
22808 * tree-vect-loop.c (vect_analyze_loop_2): Use also
22809 max_loop_iterations_int.
22810
22811 2016-05-19 Marek Polacek <polacek@redhat.com>
22812
22813 PR tree-optimization/71031
22814 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
22815 condition and adjust the code a bit.
22816
22817 2016-05-19 Martin Liska <mliska@suse.cz>
22818
22819 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
22820 auto_vec instead of vec.
22821
22822 2016-05-19 Martin Liska <mliska@suse.cz>
22823
22824 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
22825
22826 2016-05-19 Martin Liska <mliska@suse.cz>
22827
22828 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
22829
22830 2016-05-19 Martin Liska <mliska@suse.cz>
22831
22832 * ipa-pure-const.c (set_function_state): Remove an existing
22833 funct_state.
22834 (remove_node_data): Do not free it as it's released
22835 in set_function_state.
22836
22837 2016-05-19 Martin Liska <mliska@suse.cz>
22838
22839 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
22840 bitmap.
22841
22842 2016-05-19 Martin Liska <mliska@suse.cz>
22843
22844 * omp-simd-clone.c (simd_clone_adjust): Release vector.
22845
22846 2016-05-19 Martin Liska <mliska@suse.cz>
22847
22848 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
22849 an auto_vec instead of re-creating it.
22850
22851 2016-05-19 Martin Liska <mliska@suse.cz>
22852
22853 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
22854 auto_vec instead of vec.
22855
22856 2016-05-19 Martin Liska <mliska@suse.cz>
22857
22858 * lto-section-in.c (lto_get_section_data): Call
22859 lto_check_version with additional argument.
22860 * lto-streamer.c (lto_check_version): Add new argument.
22861 * lto-streamer.h (lto_check_version): Likewise.
22862
22863 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22864
22865 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
22866 Don't add cost of inner memory when handling sign-extended loads.
22867
22868 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
22869
22870 PR rtl-optimization/71148
22871 * cse.c (cse_main): Free dominance info.
22872 (rest_of_handle_cse): Don't free dominance info.
22873 (rest_of_handle_cse2): Likewise.
22874 (rest_of_handle_cse_after_global_opts): Likewise.
22875
22876 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22877
22878 PR target/71056
22879 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
22880 NULL_TREE early if NEON is not available. Remove now redundant check
22881 in ARM_CHECK_BUILTIN_MODE.
22882
22883 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
22884
22885 PR sanitizer/64354
22886 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
22887 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
22888 * doc/cpp.texi: Document new macros.
22889
22890 2016-05-19 Bin Cheng <bin.cheng@arm.com>
22891
22892 PR tree-optimization/69848
22893 * tree-vect-loop.c (vectorizable_reduction): Don't factor
22894 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
22895
22896 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22897
22898 * function.c (thread_prologue_and_epilogue_insn): Move the
22899 "goto epilogue_done" one block later.
22900
22901 2016-05-19 Richard Biener <rguenther@suse.de>
22902
22903 PR tree-optimization/70729
22904 * passes.def: Move LIM pass before PRE. Remove no longer
22905 required copyprop and move first DCE out of the loop pipeline.
22906
22907 2016-05-18 David Malcolm <dmalcolm@redhat.com>
22908
22909 PR driver/69265
22910 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
22911 (OBJS-libcommon-target): ...here.
22912 * opts-common.c: Include spellcheck.h.
22913 (cmdline_handle_error): Build a vec of valid options and use it
22914 to suggest provide hints for misspelled arguments.
22915
22916 2016-05-18 Jakub Jelinek <jakub@redhat.com>
22917
22918 PR c++/71100
22919 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
22920 lhs if it has TREE_ADDRESSABLE type.
22921
22922 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
22923
22924 PR target/71145
22925 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
22926 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
22927
22928 2016-05-18 Martin Jambor <mjambor@suse.cz>
22929
22930 PR ipa/69708
22931 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
22932 input for NOP_EXPR pass-through functions.
22933 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
22934 aggregate global constant VAR_DECLs in constant jump functions.
22935
22936 2016-05-18 Martin Jambor <mjambor@suse.cz>
22937
22938 PR ipa/69708
22939 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
22940 from TREE_READONLY parameters.
22941
22942 2016-05-18 Martin Jambor <mjambor@suse.cz>
22943
22944 PR ipa/69708
22945 * cgraph.h (cgraph_indirect_call_info): New field
22946 guaranteed_unmodified.
22947 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
22948 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
22949 appropriate.
22950 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
22951 pass the parameter value to ipa_find_agg_cst_for_param.
22952 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
22953 guaranteed_unmodified, store AA results there instead of bailing out
22954 if present.
22955 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
22956 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
22957 (find_constructor_constant_at_offset): New function.
22958 (ipa_find_agg_cst_from_init): Likewise.
22959 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
22960 static initializers of contants, report back through a new paameter
22961 from_global_constant if that was the case.
22962 (try_make_edge_direct_simple_call): Also pass parameter value to
22963 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
22964 appropriate.
22965 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
22966 (ipa_read_indirect_edge_info): Likewise.
22967 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
22968 (ipa_load_from_parm_agg): Likewise.
22969
22970 2016-05-18 Jiong Wang <jiong.wang@arm.com>
22971
22972 PR rtl-optimization/71150
22973 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
22974 check.
22975
22976 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
22977
22978 PR target/70915
22979 * config/rs6000/constraints.md (wE constraint): New constraint
22980 for a vector constant that can be loaded with XXSPLTIB.
22981 (wM constraint): New constraint for a vector constant of a 1's.
22982 (wS constraint): New constraint for a vector constant that can be
22983 loaded with XXSPLTIB and a vector sign extend instruction.
22984 * config/rs6000/predicates.md (xxspltib_constant_split): New
22985 predicates for wE/wS constraints.
22986 (xxspltib_constant_nosplit): Likewise.
22987 (easy_vector_constant): Add support for constants that can be
22988 loaded via XXSPLTIB.
22989 (all_ones_constant): New predicate for vector constant with all
22990 1's set.
22991 (splat_input_operand): Add support for ISA 3.0 word splat operations.
22992 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
22993 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
22994 instruction and possibly with a sign extension.
22995 (output_vec_const_move): Add support for XXSPLTIB. If we are
22996 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
22997 instead of XXLXOR/XXLORC.
22998 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
22999 operations.
23000 (rs6000_legitimize_reload_address): Likewise.
23001 (rs6000_output_move_128bit): Use output_vec_const_move to emit
23002 constants.
23003 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
23004 combine VSX_M and VSX_M2 into one iterator.
23005 (VSX_M2): Likewise.
23006 (VSINT_84): New iterators for loading constants with XXSPLTIB.
23007 (VSINT_842): Likewise.
23008 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
23009 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
23010 XXSPLTIB instruction.
23011 (xxspltib_<mode>_nosplit): Likewise.
23012 (xxspltib_<mode>_split): New insn to load up constants with
23013 XXSPLTIB and a sign extend instruction.
23014 (vsx_mov<mode>): Replace single move that handled all vector types
23015 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
23016 moves (when -mvsx-timode is in effect) into the main vector
23017 moves. Eliminate separate moves for <VSr> <VSa>, where the
23018 preferred register class (<VSr>) is listed first, and the
23019 secondary register class (<VSa>) is listed second with a '?' to
23020 discourage use. Prefer loading 0/-1 in any VSX register for ISA
23021 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
23022 that if the register was involved in a slow operation, the
23023 clear/set operation does not wait for the slow operation to
23024 finish. Adjust the length attributes for 32-bit mode. Use
23025 rs6000_output_move_128bit and drop the use of the string
23026 instructions for 32-bit movti when -mvsx-timode is in effect. Use
23027 spacing so that the alternatives and attributes don't generate
23028 long lines, and put things in columns, so that it is easier to
23029 match up the operands and attributes with the insn alternatives.
23030 (vsx_mov<mode>_64bit): Likewise.
23031 (vsx_mov<mode>_32bit): Likewise.
23032 (vsx_movti_64bit): Fold movti into normal vector moves.
23033 (vsx_movti_32bit): Likewise.
23034 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
23035 splat instructions.
23036 (vsx_splat_v4si_internal): Likewise.
23037 (vsx_splat_v4sf_internal): Likewise.
23038 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
23039 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
23040 extend vector elements.
23041 (vsx_sign_extend_hi_<mode>): Likewise.
23042 (vsx_sign_extend_si_v2di): Likewise.
23043 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
23044 declaration.
23045 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
23046 constraints. Add trailing period to wL documentation.
23047
23048 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
23049
23050 PR middle-end/71020
23051 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
23052 * tree-dfa.c (replace_abnormal_ssa_names): New function.
23053 * tree-call-cdce.c: Include tree-dfa.h.
23054 (can_guard_call_p): New function, extracted from...
23055 (can_use_internal_fn): ...here.
23056 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
23057 and return void.
23058 (shrink_wrap_one_built_in_call): Likewise.
23059 (use_internal_fn): Likewise.
23060 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
23061 and return void. Call replace_abnormal_ssa_names.
23062 (pass_call_cdce::execute): Check can_guard_call_p during the
23063 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
23064 will always change something.
23065
23066 2016-05-18 Martin Jambor <mjambor@suse.cz>
23067
23068 PR ipa/70646
23069 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
23070 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
23071
23072 2016-05-18 Martin Jambor <mjambor@suse.cz>
23073
23074 PR ipa/70646
23075 * ipa-inline.h (condition): New field size.
23076 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
23077 for comaprison and store it into the new condition.
23078 (evaluate_conditions_for_known_args): Use condition size to check
23079 access sizes for all but CHANGED conditions.
23080 (unmodified_parm_1): New parameter size_p, store access size into it.
23081 (unmodified_parm): Likewise.
23082 (unmodified_parm_or_parm_agg_item): Likewise.
23083 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
23084 (set_cond_stmt_execution_predicate): Extract access sizes and store
23085 them to conditions.
23086 (set_switch_stmt_execution_predicate): Likewise.
23087 (will_be_nonconstant_expr_predicate): Likewise.
23088 (will_be_nonconstant_predicate): Likewise.
23089 (inline_read_section): Stream condition size.
23090 (inline_write_summary): Likewise.
23091
23092 2016-05-18 Richard Biener <rguenther@suse.de>
23093
23094 * tree-ssa-loop-im.c (determine_max_movement): Properly add
23095 condition cost to PHI cost instead of total_cost.
23096
23097 2016-05-18 Martin Liska <mliska@suse.cz>
23098
23099 PR fortran/70856
23100 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
23101 merged variables.
23102
23103 2016-05-18 Richard Biener <rguenther@suse.de>
23104
23105 * lto-streamer.h (LTO_major_version): Bump to 6.
23106
23107 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
23108
23109 * function.c (make_split_prologue_seq, make_prologue_seq,
23110 make_epilogue_seq): New functions, factored out from...
23111 (thread_prologue_and_epilogue_insns): Here.
23112
23113 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
23114
23115 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
23116 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
23117 of before. Add a comment.
23118
23119 2016-05-18 Bin Cheng <bin.cheng@arm.com>
23120
23121 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
23122 expression pointer, not pointer to the pointer.
23123
23124 2016-05-18 Jakub Jelinek <jakub@redhat.com>
23125
23126 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
23127 (avx2_pbroadcast<mode>): Add another alternative with v instead
23128 of x constraints in it, using <pbroadcast_evex_isa> isa.
23129 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
23130
23131 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
23132 constraint x instead of v in second alternative, add avx512bw
23133 alternative.
23134
23135 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
23136 constraint x instead of v in second alternative, add avx512bw
23137 alternative.
23138
23139 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
23140 constraint x instead of v in second alternative, add avx512bw
23141 alternative.
23142
23143 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
23144 avx512bw alternative.
23145
23146 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
23147
23148 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
23149 array to 128 chars.
23150 (define_insn "*andnottf3"): Ditto.
23151 (define_insn "*<code><mode>3"/any_logic): Ditto.
23152 (define_insn "*<code>tf3"/any_logic): Ditto.
23153 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
23154 operand to block AVX-512VL insn variant emit when it is not enabled.
23155
23156 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
23157
23158 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
23159 constraint fot SF mode.
23160
23161 2016-05-18 Petr Murzin <petr.murzin@intel.com>
23162 Kirill Yukhin <kirill.yukhin@intel.com>
23163
23164 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
23165 modifiers.
23166 (define_insn "rsqrt14<mode>"): Ditto.
23167 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
23168 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
23169 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
23170 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
23171 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
23172 Ditto.
23173 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
23174 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
23175 * config/i386/i386.c (ix86_print_operand): Expand check for size
23176 override codes for Intel syntax.
23177
23178 2016-05-18 Richard Biener <rguenther@suse.de>
23179
23180 PR tree-optimization/71168
23181 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
23182 initialization earlier.
23183
23184 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
23185
23186 * config/aarch64/aarch64-simd.md
23187 (aarch64_reduc_plus_internal<mode>): Rename to...
23188 (reduc_plus_scal): ...This, and remove previous implementation.
23189
23190 2016-05-18 Richard Biener <rguenther@suse.de>
23191
23192 * passes.def: Put late dse and cd_dce in canonical order.
23193
23194 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
23195
23196 * ipa-inline-transform.c (preserve_function_body_p): Look for
23197 first non-thunk clone.
23198 (save_function_body): Save into first non-thunk.
23199 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
23200 up call stmt id.
23201 (lto_output_node): Inline thunks don't need body in every
23202 partition.
23203 * lto-streamer-in.c: Do not fixup thunk clones.
23204 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
23205 thunks.
23206 * tree-inline.c (copy_bb): Be prepared for target node to be new after
23207 folding suceeds.
23208
23209 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
23210
23211 PR middle-end/63586
23212 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
23213 (reassociate_bb): Call transform_add_to_multiply.
23214
23215 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
23216
23217 * config/aarch64/aarch64.c (all_extensions): Removed unused
23218 static variable.
23219
23220 2016-05-17 Nathan Sidwell <nathan@acm.org>
23221
23222 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
23223 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
23224
23225 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
23226
23227 PR tree-optimization/54579
23228 PR middle-end/55299
23229 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
23230
23231 2016-05-17 Marek Polacek <polacek@redhat.com>
23232
23233 PR ipa/71146
23234 * tree-inline.c (expand_call_inline): Call
23235 maybe_remove_unused_call_args.
23236
23237 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
23238
23239 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
23240 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
23241 * doc/md.texi (fmin@var{m}3): Likewise.
23242
23243 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23244
23245 * match.pd (X & C): New transformation.
23246
23247 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23248
23249 * match.pd (~X & Y): New transformation.
23250
23251 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23252
23253 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
23254 information for new SSA_NAME.
23255 (simplify_conversion_using_ranges): Get range through get_range_info
23256 instead of get_value_range.
23257
23258 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23259
23260 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
23261 Remove inline assembly.
23262 (vmvn_s16): Likewise.
23263 (vmvn_s32): Likewise.
23264 (vmvn_u8): Likewise.
23265 (vmvn_u16): Likewise.
23266 (vmvn_u32): Likewise.
23267 (vmvnq_s8): Likewise.
23268 (vmvnq_s16): Likewise.
23269 (vmvnq_s32): Likewise.
23270 (vmvnq_u8): Likewise.
23271 (vmvnq_u16): Likewise.
23272 (vmvnq_u32): Likewise.
23273 (vmvn_p8): Likewise.
23274 (vmvnq_p16): Likewise.
23275
23276 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23277
23278 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
23279 Use builtin.
23280 (vmul_n_s16): Likewise.
23281 (vmul_n_s32): Likewise.
23282 (vmul_n_u16): Likewise.
23283 (vmul_n_u32): Likewise.
23284 (vmulq_n_f32): Likewise.
23285 (vmulq_n_f64): Likewise.
23286 (vmulq_n_s16): Likewise.
23287 (vmulq_n_s32): Likewise.
23288 (vmulq_n_u16): Likewise.
23289 (vmulq_n_u32): Likewise.
23290
23291 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23292
23293 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
23294 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
23295
23296 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23297
23298 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
23299 to *aarch64_fma4_elt_from_dup<mode>.
23300 (*aarch64_fnma4_elt_to_128df): Rename to
23301 *aarch64_fnma4_elt_from_dup<mode>.
23302 * config/aarch64/arm_neon.h (vfma_n_f64): New.
23303 (vfms_n_f32): Likewise.
23304 (vfms_n_f64): Likewise.
23305 (vfmsq_n_f32): Likewise.
23306 (vfmsq_n_f64): Likewise.
23307
23308 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
23309
23310 * wide-int.h: Change fixed_wide_int_storage from class to struct.
23311
23312 2016-05-17 Richard Biener <rguenther@suse.de>
23313
23314 PR tree-optimization/71132
23315 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
23316 Only add control dependences for blocks in the loop.
23317 (build_rdg): Adjust.
23318 (generate_code_for_partition): Return whether loop should
23319 be destroyed and delay that.
23320 (distribute_loop): Likewise.
23321 (pass_loop_distribution::execute): Record loops to be destroyed
23322 and perform delayed destroying of loops.
23323
23324 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23325
23326 PR target/70809
23327 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
23328
23329 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23330
23331 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
23332
23333 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
23334
23335 PR target/71114
23336 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
23337 insertion point for instructions generated by validize_mem.
23338
23339 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23340
23341 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
23342 in brackets.
23343
23344 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23345
23346 * config/aarch64/aarch64.c
23347 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
23348 rather than a macro.
23349
23350 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23351
23352 * doc/invoke.texi (AArch64 Options): Various updates.
23353
23354 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23355
23356 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
23357 into instrumentation thunks.
23358 * cif-code.def (CIF_CHKP): New.
23359
23360 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
23361
23362 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
23363
23364 2016-05-16 Martin Jambor <mjambor@suse.cz>
23365
23366 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
23367 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
23368
23369 2016-05-16 Marek Polacek <polacek@redhat.com>
23370
23371 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
23372 commentary.
23373
23374 2016-05-16 Martin Jambor <mjambor@suse.cz>
23375
23376 PR hsa/70857
23377 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
23378 the outlined kernel function.
23379
23380 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
23381
23382 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
23383 (ISA_HAS_DLSA): Ditto.
23384
23385 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
23386
23387 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
23388
23389 2016-05-16 Nathan Sidwell <nathan@acm.org>
23390
23391 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
23392 (nvptx_name_replacement): Restore. Add comment.
23393 (write_fn_proto, write_fn_proto_from_insn,
23394 nvptx_output_call_insn): Restore
23395 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
23396
23397 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23398
23399 * config/aarch64/aarch64.md
23400 (add<mode>3_compareC_cconly_imm): Remove use of %w.
23401 (add<mode>3_compareC_imm): Likewise.
23402 (<optab>si3_uxtw): Split into register and immediate variants.
23403 (andsi3_compare0_uxtw): Likewise.
23404 (and<mode>3_compare0): Likewise.
23405 (and<mode>3nr_compare0): Likewise.
23406 (stack_protect_test_<mode>): Don't use %x for memory operands.
23407
23408 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
23409
23410 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
23411
23412 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23413
23414 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
23415 Split integer shifts into shift_reg and bfm.
23416 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
23417 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
23418 (ror<mode>3_insn): Likewise.
23419 (<optab>si3_insn_uxtw): Likewise.
23420 (<optab><mode>3_insn): Change to rotate_imm.
23421 (extr<mode>5_insn_alt): Likewise.
23422 (extrsi5_insn_uxtw): Likewise.
23423 (extrsi5_insn_uxtw_alt): Likewise.
23424
23425 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23426
23427 * doc/tm.texi: Regenerate.
23428 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
23429 (TARGET_INVALID_RETURN_TYPE): Remove.
23430 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
23431 TARGET_INVALID_RETURN_TYPE.
23432 * target.def (invalid_parameter_type): Remove.
23433 (invalid_return_type): Remove.
23434
23435 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23436
23437 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
23438 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
23439 calls from thunk.
23440 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
23441 gimple body.
23442 (preserve_function_body_p): No need to preserve function body
23443 * cif-codes.def (CIF_THUNK): Remove.
23444 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
23445
23446 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23447
23448 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
23449
23450 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23451
23452 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
23453 for thunks.
23454
23455 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23456
23457 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
23458 (inline_small_functions): Do not look for function symbol when
23459 resetting caches.
23460
23461 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23462
23463 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
23464 of inline thunks
23465
23466 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23467 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23468 Jiong Wang <jiong.wang@arm.com>
23469
23470 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
23471 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
23472 Define __ARM_FP16_ARGS when appropriate.
23473 * config/arm/arm.c (arm_invalid_parameter_type): Remove
23474 declaration.
23475 (arm_invalid_return_type): Likewise.
23476 (TARGET_INVALID_PARAMETER_TYPE): Remove.
23477 (TARGET_INVALID_RETURN_TYPE): Remove.
23478 (aapcs_vfp_sub_candidate): Allow HFmode.
23479 (aapcs_vfp_allocate): Add comment. Support HFmode.
23480 (aapcs_vfp_allocate_return_reg): Likewise.
23481 (struct aapcs_cp_arg_layout): Slightly reword comments for
23482 is_return_candidate and allocate_return_reg.
23483 (output_mov_vfp): Update assert.
23484 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
23485 condition.
23486 (arm_invalid_parameter_type): Remove.
23487 (amr_invalid_return_type): Remove.
23488 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
23489 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
23490 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
23491
23492 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23493
23494 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
23495 * config/aarch64/arch64-protos.h
23496 (aarch64_legitimize_reload_address): Remove.
23497 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
23498 Remove.
23499
23500 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
23501
23502 * configure.ac: Add ACX_NONCANONICAL_HOST.
23503 * configure: Regenerate.
23504 * Makefile.in: Set host_noncanonical.
23505
23506 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
23507
23508 PR target/71097
23509 * config/i386/i386.md (*movtf_internal): Before register allocation,
23510 do not allow FP constants for CM_MEDIUM memory model, allow only
23511 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
23512 (*movxf_internal): Ditto.
23513 (*movdf_internal): Ditto.
23514 (*movsf_internal): Ditto.
23515
23516 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
23517
23518 PR rtl-optimization/67483
23519 * combine.c (make_compound_operation): Don't call extract_left_shift
23520 with negative shift amounts.
23521
23522 2016-05-13 Jakub Jelinek <jakub@redhat.com>
23523
23524 PR bootstrap/71071
23525 * fold-const.c (fold_checksum_tree): Allow modification
23526 of TYPE_ALIAS_SET during folding.
23527
23528 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
23529 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
23530 (ix86_split_to_parts): Likewise. Fix up formatting.
23531
23532 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
23533
23534 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
23535 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
23536 printf format.
23537
23538 2016-05-13 Nathan Sidwell <nathan@acm.org>
23539
23540 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
23541 (nvptx_name_replacement): Delete.
23542 (write_fn_proto, write_fn_proto_from_insn,
23543 nvptx_output_call_insn): Remove nvptx_name_replacement call.
23544 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
23545 * langhooks.c (add_builtin_funcction_common): Call
23546 targetm.mangle_decl_assembler_name.
23547
23548 * config/nvptx/nvptx.c (write_fn_proto): Handle
23549 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
23550
23551 2016-05-13 Martin Liska <mliska@suse.cz>
23552
23553 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
23554 and PRIu64 in printf format.
23555
23556 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23557
23558 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
23559 comment.
23560
23561 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23562
23563 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
23564 Change --param max-completely-peeled-times to
23565 --param max-completely-peel-times in dump file printing.
23566
23567 2016-05-13 Richard Biener <rguenther@suse.de>
23568
23569 PR tree-optimization/42587
23570 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
23571 (find_bswap_or_nop_1): Likewise.
23572 (bswap_replace): Likewise.
23573
23574 2016-05-13 Martin Liska <mliska@suse.cz>
23575
23576 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
23577 Initialize a variable with default value.
23578
23579 2016-05-13 Martin Liska <mliska@suse.cz>
23580
23581 * doc/invoke.texi: Enhance explanation of error recovery
23582 of sanitizers.
23583
23584 2016-05-13 Martin Liska <mliska@suse.cz>
23585
23586 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
23587 (struct cost_pair): Change inv_expr_id (int) to inv_expr
23588 (iv_inv_expr_ent *).
23589 (struct iv_inv_expr_ent): Comment struct fields.
23590 (sort_iv_inv_expr_ent): New function.
23591 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
23592 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
23593 a hash_map between iv_inv_expr_ent and number of usages.
23594 (niter_for_exit): Fix coding style.
23595 (tree_ssa_iv_optimize_init): Use renamed variable.
23596 (determine_base_object): Fix coding style.
23597 (alloc_iv): Likewise.
23598 (find_interesting_uses_outside): Likewise.
23599 (add_candidate_1): Likewise.
23600 (add_standard_iv_candidates): Likewise.
23601 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
23602 (prepare_decl_rtl): Fix coding style.
23603 (get_address_cost): Likewise.
23604 (get_shiftadd_cost): Likewise.
23605 (force_expr_to_var_cost): Likewise.
23606 (compare_aff_trees): Likewise.
23607 (get_expr_id): Restructure the function.
23608 (get_loop_invariant_expr_id): Renamed to
23609 get_loop_invariant_expr.
23610 (get_computation_cost_at): Replace usage of inv_expr_id with
23611 inv_expr.
23612 (get_computation_cost): Likewise.
23613 (determine_group_iv_cost_generic): Likewise.
23614 (determine_group_iv_cost_address): Likewise.
23615 (iv_period): Fix coding style.
23616 (iv_elimination_compare_lt): Likewise.
23617 (may_eliminate_iv): Likewise.
23618 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
23619 inv_expr.
23620 (determine_group_iv_costs): Dump invariant expressions.
23621 (iv_ca_recount_cost): Use the newly added hash_map.
23622 (iv_ca_set_remove_invariants): Fix coding style.
23623 (iv_ca_set_add_invariants): Fix coding style.
23624 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
23625 invariants.
23626 (iv_ca_set_cp): Likewise.
23627 (iv_ca_new): Initialize the newly added hash_map and remove
23628 initialization of fields.
23629 (iv_ca_free): Delete the hash_map.
23630 (iv_ca_dump): Dump invariant expressions.
23631 (iv_ca_extend): Fix coding style.
23632 (try_add_cand_for): Likewise.
23633 (create_new_ivs): Dump information about # of avg iterations and
23634 # of used invariant expressions.
23635 (rewrite_use_compare): Fix coding style.
23636 (free_loop_data): Set default value for max_inv_expr_id.
23637
23638 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
23639
23640 * cse.c (rest_of_handle_cse): Use cleanup_cfg
23641 returned value cse_cfg_altered computation.
23642 (rest_of_handle_cse2): Likewise.
23643 (rest_of_handle_cse_after_global_opts): Likewise.
23644
23645 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23646
23647 PR target/53440
23648 * config/arm/arm.c (arm32_output_mi_thunk): New.
23649 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
23650 to split Thumb1 vs TARGET_32BIT functionality.
23651 (arm_thumb1_mi_thunk): New.
23652
23653 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23654
23655 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
23656 to true.
23657
23658 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23659
23660 PR target/71080
23661 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
23662
23663 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
23664
23665 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
23666 (expand_builtin_trap): Emit a regular call.
23667 (set_builtin_user_assembler_name): Remove obsolete cases.
23668 * dse.c (scan_insn): Adjust.
23669 * except.c: Include calls.h.
23670 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
23671 emit a regular call to setjmp.
23672 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
23673 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
23674 (emit_block_move_via_libcall): Delete.
23675 (block_move_fn): Delete.
23676 (init_block_move_fn): Likewise.
23677 (emit_block_move_libcall_fn): Likewise.
23678 (emit_block_op_via_libcall): New function.
23679 (set_storage_via_libcall): Tidy up and use memset builtin.
23680 (block_clear_fn): Delete.
23681 (init_block_clear_fn): Likewise.
23682 (clear_storage_libcall_fn): Likewise.
23683 (expand_assignment): Call emit_block_move_via_libcall.
23684 Do not include gt-expr.h.
23685 * expr.h (emit_block_op_via_libcall): Declare.
23686 (emit_block_copy_via_libcall): New inline function.
23687 (emit_block_move_via_libcall): Likewise.
23688 (emit_block_comp_via_libcall): Likewise.
23689 (block_clear_fn): Delete.
23690 (init_block_move_fn): Likewise.
23691 (init_block_clear_fn): Likewise.
23692 (emit_block_move_via_libcall): Likewise.
23693 (set_storage_via_libcall): Add default parameter value.
23694 * libfuncs.h (enum libfunc_index): Remove obsolete values.
23695 (abort_libfunc): Delete.
23696 (memcpy_libfunc): Likewise.
23697 (memmove_libfunc): Likewise.
23698 (memcmp_libfunc): Likewise.
23699 (memset_libfunc): Likewise.
23700 (setbits_libfunc): Likewise.
23701 (setjmp_libfunc): Likewise.
23702 (longjmp_libfunc): Likewise.
23703 (profile_function_entry_libfunc): Likewise.
23704 (profile_function_exit_libfunc): Likewise.
23705 (gcov_flush_libfunc): Likewise.
23706 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
23707 and DECL_VISIBILITY on the declaration.
23708 (init_optabs): Do not initialize obsolete libfuncs.
23709 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
23710 * tree-core.h (ECF_RET1): Define.
23711 (ECF_TM_PURE): Adjust.
23712 (ECF_TM_BUILTIN): Likewise.
23713 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
23714 (build_common_builtin_nodes): Initialize abort builtin.
23715 Add ECF_RET1 on memcpy, memmove and memset builtins.
23716 Pass final flags for alloca and alloca_with_align builtins.
23717 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
23718 obsolete builtins.
23719 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
23720 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
23721 set_storage_via_libcall and call emit_block_copy_via_libcall.
23722
23723 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
23724
23725 * config/i386/i386.md (*call_got_x32): Change operand 0 to
23726 DImode before it is passed to ix86_output_call_operand.
23727 (*call_value_got_x32): Ditto for operand 1.
23728
23729 2016-05-12 Jiong Wang <jiong.wang@arm.com>
23730
23731 PR rtl-optimization/70904
23732 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
23733 reload for wide mode.
23734
23735 2016-05-12 Marek Polacek <polacek@redhat.com>
23736
23737 PR c/70756
23738 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
23739 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
23740 * langhooks.h (incomplete_type_error): Likewise.
23741 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
23742 parameter, pass it down to incomplete_type_error.
23743 * tree.h (size_in_bytes): New inline overload.
23744 (size_in_bytes_loc): Renamed from size_in_bytes.
23745
23746 2016-05-12 Richard Biener <rguenther@suse.de>
23747
23748 PR tree-optimization/71059
23749 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
23750 nary before looking up or entering the expression into the VN
23751 hashes.
23752 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
23753 Make sure to re-use NARYs without result as inserted by
23754 phi-translation.
23755
23756 2016-05-12 Richard Biener <rguenther@suse.de>
23757
23758 PR tree-optimization/71062
23759 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
23760 field.
23761 * tree-ssa-structalias.c (set_uids_in_ptset): Set
23762 vars_contains_restrict if the var is a restrict tag.
23763 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
23764 do not disambiguate pointers against it.
23765 (dump_points_to_solution): Re-structure and adjust for new
23766 vars_contains_restrict flag.
23767 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
23768
23769 2016-05-12 Martin Liska <mliska@suse.cz>
23770
23771 * doc/invoke.texi: Explain connection between
23772 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
23773
23774 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
23775
23776 PR tree-optimization/71006
23777 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
23778 consider COND_EXPR as a mask producer.
23779
23780 2016-05-12 Marek Polacek <polacek@redhat.com>
23781
23782 PR driver/71063
23783 * opts.c (common_handle_option): Detect missing argument for --help^.
23784
23785 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23786
23787 PR target/70830
23788 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
23789 when popping the PC and within an interrupt handler routine.
23790 Add missing tab to output of "ldmfd".
23791 (output_return_instruction): Output LDMFD with SP update rather
23792 than POP when returning from interrupt handler.
23793
23794 2016-05-12 Jakub Jelinek <jakub@redhat.com>
23795
23796 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
23797 TARGET_64BIT && TARGET_AVX512DQ.
23798 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
23799 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
23800 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
23801 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
23802 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
23803 (*vec_extractv4si_zext): Add avx512dq alternative.
23804 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
23805 use v instead of x constraint in other alternatives where possible.
23806
23807 * config/i386/sse.md (sse2_loadld): Use v instead of x
23808 constraint in alternatives 0,1,4.
23809
23810 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
23811 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
23812 v constraints instead of x and <pinsr_evex_isa> isa attribute.
23813
23814 PR target/71019
23815 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
23816 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
23817 is not emitted unless TARGET_AVX512BW.
23818 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
23819 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
23820 for the result operand.
23821
23822 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
23823 constraint instead of x in avx alternatives. Use maybe_evex instead
23824 of vex prefix.
23825
23826 * config/i386/constraints.md (Yv): New constraint.
23827 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
23828 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
23829 * config/i386/i386.md (avx512fvecmode): New mode attr.
23830 (*pushtf): Use v constraint instead of x.
23831 (*movtf_internal): Likewise. For TARGET_AVX512VL and
23832 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
23833 (*absneg<mode>2): Use Yv constraint instead of x constraint.
23834 (*absnegtf2_sse): Likewise.
23835 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
23836 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
23837 avx512f alternatives.
23838 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
23839
23840 2016-05-12 Richard Biener <rguenther@suse.de>
23841
23842 PR tree-optimization/71060
23843 * tree-data-ref.c (initialize_data_dependence_relation): Do not
23844 require exact match of DR_BASE_OBJECT but only matching address and
23845 type.
23846
23847 2016-05-12 Richard Biener <rguenther@suse.de>
23848
23849 PR tree-optimization/70986
23850 * cfganal.c: Include cfgloop.h.
23851 (dfs_find_deadend): Prefer to take edges exiting loops.
23852
23853 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23854
23855 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
23856 compile and run time.
23857
23858 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
23859
23860 PR c/43651
23861 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
23862
23863 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
23864
23865 * config/i386/i386.c (legitimize_pic_address): Use
23866 copy_to_suggested_reg instead of gen_movsi.
23867
23868 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23869
23870 * config/rs6000/predicates.md (quad_memory_operand): Move most of
23871 the code into quad_address_p and call it to share code with
23872 vsx_quad_dform_memory_operand.
23873 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
23874 d-form support.
23875 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
23876 bit instead of being a separate word. Split -mpower9-dform into
23877 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
23878 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
23879 for the register class supporting 128-bit quad word memory offsets.
23880 (mode_supports_vsx_dform_quad): Helper function to return if the
23881 register class uses quad word memory offsets.
23882 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
23883 (rs6000_debug_reg_global): Always print if we are using LRA or not.
23884 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
23885 instructions are enabled, set up the appropriate addr_masks for
23886 128-bit types.
23887 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
23888 -mpower9-dform-scalar, instead of -mpower9-dform.
23889 (rs6000_option_override_internal): Split -mpower9-dform into two
23890 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
23891 -mpower9-dform switch sets or clears both. If we are not using
23892 the LRA register allocator, do not enable -mpower9-dform-vector by
23893 default. If we are using LRA, enable -mpower9-dform-vector and
23894 -mvsx-timode if it is appropriate. Issue a warning if either
23895 -mpower9-dform-vector or -mvsx-timode are explicitly used without
23896 enabling LRA.
23897 (quad_address_offset_p): New helper function to return if the
23898 offset is legal for quad word memory instructions.
23899 (quad_address_p): New function to determin if GPR or vector
23900 register quad word memory addresses are legal.
23901 (mem_operand_gpr): Validate quad word address offsets.
23902 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
23903 d-form (register + offset) instructions.
23904 (offsettable_ok_by_alignment): Likewise.
23905 (rs6000_legitimate_offset_address_p): Likewise.
23906 (legitimate_lo_sum_address_p): Likewise.
23907 (rs6000_legitimize_address): Likewise.
23908 (rs6000_legitimize_reload_address): Add more debug statements for
23909 -mdebug=addr.
23910 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
23911 d-form instructions.
23912 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
23913 d-form instructions. Distinguish different cases in debug
23914 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
23915 d-form instructions.
23916 (rs6000_preferred_reload_class): Likewise.
23917 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
23918 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
23919 of the ISA 2.06 indexed memory instructions.
23920 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
23921 use them to save/restore the saved vector registers instead of
23922 using Altivec instructions.
23923 (rs6000_emit_epilogue): Likewise.
23924 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
23925 (rs6000_opt_masks): Split -mpower9-dform into
23926 -mpower9-dform-scalar and -mpower9-dform-vector.
23927 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
23928 was not selected.
23929 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
23930 ISA 3.0 vector indexed memory instructions, and fold the code into
23931 the normal mov<mode> patterns.
23932 (p9_vecstore_<mode>): Likewise.
23933 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
23934 instructions.
23935 (vsx_movti_64bit): Likewise.
23936 (vsx_movti_32bit): Likewise.
23937 * config/rs6000/constraints.md (wO constraint): New constraint for
23938 ISA 3.0 vector d-form support.
23939 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
23940 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
23941 include -mpower9-dform-vector until we switch over to LRA.
23942 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
23943 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
23944 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
23945 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
23946 for -mpower9-dform and -mlra.
23947 * doc/md.texi (wO constraint): Document wO constraint.
23948
23949 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
23950
23951 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
23952 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
23953 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
23954 Move handling of non-insn arguments inline into the sole user:
23955 (output_trans_func): ...here.
23956 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
23957 in emitted function prototype.
23958 (output_internal_insn_latency_func): Ditto. Simplify.
23959 (output_internal_maximal_insn_latency_func): Ditto. Delete
23960 always-unused argument.
23961 (output_insn_latency_func): Ditto.
23962 (output_maximal_insn_latency_func): Ditto.
23963
23964 2016-05-11 Richard Biener <rguenther@suse.de>
23965
23966 PR tree-optimization/71055
23967 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
23968 sth with precision not equal to access size verify we don't chop
23969 off bits.
23970
23971 2016-05-11 Richard Biener <rguenther@suse.de>
23972
23973 PR debug/71057
23974 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
23975 (dwarf2out_finish): Move retry_incomplete_types call ...
23976 (dwarf2out_early_finish): ... here.
23977
23978 2016-05-11 Richard Biener <rguenther@suse.de>
23979
23980 PR middle-end/71002
23981 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
23982 if the langhook insists on it.
23983 * fold-const.c (make_bit_field_ref): Add arg for the original
23984 reference and preserve its alias-set.
23985 (decode_field_reference): Take exp by reference and adjust it
23986 to the original memory reference.
23987 (optimize_bit_field_compare): Adjust callers.
23988 (fold_truth_andor_1): Likewise.
23989 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
23990
23991 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
23992
23993 PR middle-end/70807
23994 * cfgrtl.h (delete_insn_and_edges): Now return bool.
23995 * cfgrtl.c (delete_insn_and_edges): Likewise.
23996 * config/i386/i386.c (convert_scalars_to_vector): Remove
23997 redundant code.
23998 * cse.c (cse_insn): Compute cse_cfg_altered.
23999 (delete_trivially_dead_insns): Likewise.
24000 (cse_cc_succs): Likewise.
24001 (rest_of_handle_cse): Free dominance info if required.
24002 (rest_of_handle_cse2): Likewise.
24003 (rest_of_handle_cse_after_global_opts): Likewise.
24004
24005 2016-05-11 Alan Modra <amodra@gmail.com>
24006
24007 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
24008 abi_v4_pass_in_fpr): New functions.
24009 (rs6000_function_arg_boundary): Exclude complex IBM long double
24010 from 64-bit alignment when ABI_V4.
24011 (rs6000_function_arg, rs6000_function_arg_advance_1,
24012 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
24013
24014 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
24015
24016 PR rtl-optimization/71028
24017 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
24018 jump with just a return in the fallthrough block if the branch
24019 block contains just a return as well.
24020
24021 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
24022
24023 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
24024 * match.pd ((X & Y) ^ Y): ... this.
24025 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
24026 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
24027
24028 2016-05-10 David Malcolm <dmalcolm@redhat.com>
24029
24030 * read-md.c (require_char_ws): New function.
24031 (read_string): Simplify using require_char_ws.
24032 (handle_constants): Likewise.
24033 (handle_enum): Likewise.
24034 (handle_file): Likewise.
24035 * read-md.h (require_char_ws): New declaration.
24036 * read-rtl.c (read_conditions): Simplify using require_char_ws.
24037 (read_mapping): Likewise.
24038 (read_rtx_code): Likewise.
24039 (read_nested_rtx): Likewise.
24040
24041 2016-05-10 James Norris <jnorris@codesourcery.com>
24042
24043 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
24044 if offloading is enabled and -fopenacc or -fopenmp is specified.
24045 (CRTOFFLOADEND): Likewise.
24046 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
24047 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
24048
24049 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
24050
24051 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
24052 gotoff_operand code paths. Use copy_to_suggested_regs and
24053 expand_simple_binop where appropriate. Cleanup.
24054
24055 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24056
24057 PR target/70799
24058 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
24059 integer constants.
24060 (dimode_scalar_chain::vector_const_cost): New.
24061 (dimode_scalar_chain::compute_convert_gain): Handle constants.
24062 (dimode_scalar_chain::convert_op): Likewise.
24063 (dimode_scalar_chain::convert_insn): Likewise.
24064
24065 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
24066
24067 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
24068 unary operation, not a binary one.
24069
24070 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24071
24072 PR middle-end/70877
24073 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
24074 calls with type casted fndecl.
24075
24076 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24077
24078 PR tree-optimization/70786
24079 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
24080 * calls.c (initialize_argument_information): Bind bounds
24081 with corresponding args passed by reference.
24082
24083 2016-05-10 Jakub Jelinek <jakub@redhat.com>
24084
24085 PR target/70927
24086 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
24087 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
24088 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
24089 accordingly.
24090
24091 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24092
24093 PR target/70963
24094 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
24095 code for a zero scale factor.
24096 (vsx_xvcvdpuxds_scale): Likewise.
24097
24098 2016-05-10 David Malcolm <dmalcolm@redhat.com>
24099
24100 * diagnostic-show-locus.c (layout::layout): Call show_ruler
24101 if show_ruler_p was set on the context.
24102 (layout::show_ruler): New method.
24103 * diagnostic.h (struct diagnostic_context): Add field
24104 "show_ruler_p".
24105
24106 2016-05-10 Richard Biener <rguenther@suse.de>
24107
24108 PR tree-optimization/71039
24109 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
24110 (chk_uses): New function.
24111 (propagate_with_phi): Verify we can safely replicate the lhs of an
24112 aggregate assignment on all incoming edges.
24113
24114 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
24115
24116 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
24117 Forward declare.
24118 (rx_atomic_sequence): New class.
24119 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
24120 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
24121 non-inline.
24122 (rx_atomic_sequence::rx_atomic_sequence,
24123 rx_atomic_sequence::~rx_atomic_sequence): New functions.
24124 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
24125 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
24126 CTRLREG_INTB): New constants.
24127 (FETCHOP): New code iterator.
24128 (fethcop_name, fetchop_name2): New iterator code attributes.
24129 (QIHI): New mode iterator.
24130 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
24131 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
24132 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
24133
24134 2016-05-10 Martin Liska <mliska@suse.cz>
24135
24136 * tree-inline.c (remap_dependence_clique): Do not remap
24137 debugging statements.
24138
24139 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24140
24141 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
24142 ("*fixuns_truncdfdi2_z13")
24143 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
24144 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
24145 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
24146
24147 2016-05-10 Richard Biener <rguenther@suse.de>
24148
24149 PR tree-optimization/70497
24150 PR tree-optimization/28367
24151 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
24152 split out from ...
24153 (visit_reference_op_load): ... here.
24154 (vn_reference_lookup_3): Use it to handle subreg-like accesses
24155 with simplified BIT_FIELD_REFs.
24156 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
24157 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
24158 correctly.
24159
24160 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
24161
24162 * dwarf2out.c (add_abstract_origin_attribute): Adjust
24163 documentation comment. For BLOCK nodes, add a
24164 DW_AT_abstract_origin attribute that points to the DIE generated
24165 for the origin BLOCK.
24166 (gen_lexical_block_die): Call add_abstract_origin_attribute for
24167 blocks from inlined functions.
24168
24169 2016-05-10 Alan Modra <amodra@gmail.com>
24170
24171 PR target/70947
24172 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
24173 regrename modifying insns saving lr before __morestack call.
24174 * config/rs6000/rs6000.md (split_stack_return): Similarly for
24175 insns restoring lr after __morestack call.
24176
24177 2016-05-09 Jakub Jelinek <jakub@redhat.com>
24178
24179 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
24180 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
24181 expanders.
24182 * config/i386/sse.md (vec_interleave_high<mode>,
24183 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
24184 <avx512>_vpermt2var<mode>3_maskz): Likewise.
24185
24186 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
24187
24188 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
24189 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
24190 parallel reassociation for power8 and forward.
24191
24192 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
24193
24194 * config/i386/i386.md (absneg splitters with general regs): Use
24195 general_reg_operand predicate.
24196 (btsq peephole2): Use x86_64_immediate_operand to check if new
24197 value is suitable for immediate operand. Generate emitted insn
24198 using RTL expressions.
24199 (btcq peephole2): Ditto.
24200 (btrq peephole2): Ditto. Generate correct immediate operand
24201 for AND masking.
24202
24203 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
24204
24205 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
24206 bitpos.
24207
24208 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
24209
24210 * tree-affine.c (wide_int_constant_multiple_p): Add missing
24211 pointer dereference.
24212
24213 2016-05-09 Richard Biener <rguenther@suse.de>
24214
24215 PR tree-optimization/70985
24216 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
24217 op0 isn't a gimple register.
24218
24219 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
24220
24221 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
24222 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
24223 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
24224 (i6400_fpu_mult): New cpu units.
24225 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
24226 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
24227 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
24228 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
24229 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
24230 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
24231 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
24232 (i6400_msa_long_float4, i6400_msa_long_float5)
24233 (i6400_msa_long_float8, i6400_msa_fdiv_df)
24234 (i6400_msa_fdiv_sf): New reservations.
24235 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
24236 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
24237 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
24238 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
24239 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
24240 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
24241 (msa_short_cmp, msa_short_float2, msa_short_logic3)
24242 (msa_short_store4, msa_long_load, msa_short_store)
24243 (msa_long_logic, msa_long_float2, msa_long_float4)
24244 (msa_long_float5, msa_long_float8, msa_long_mult)
24245 (msa_long_fdiv, msa_long_div): New reservations.
24246
24247 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
24248 Sameera Deshpande <sameera.deshpande@imgtec.com>
24249 Matthew Fortune <matthew.fortune@imgtec.com>
24250 Graham Stott <graham.stott@imgtec.com>
24251 Chao-ying Fu <chao-ying.fu@imgtec.com>
24252
24253 * config.gcc: Add MSA header file for mips*-*-* target.
24254 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
24255 (Ubv8i, Urv8): New constraints.
24256 * config/mips/mips-ftypes.def: Add function types for MSA
24257 builtins.
24258 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
24259 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
24260 * config/mips/mips-msa.md: New file.
24261 * config/mips/mips-protos.h
24262 (mips_split_128bit_const_insns): New prototype.
24263 (mips_msa_idiv_insns): Likewise.
24264 (mips_split_128bit_move): Likewise.
24265 (mips_split_128bit_move_p): Likewise.
24266 (mips_split_msa_copy_d): Likewise.
24267 (mips_split_msa_insert_d): Likewise.
24268 (mips_split_msa_fill_d): Likewise.
24269 (mips_expand_msa_branch): Likewise.
24270 (mips_const_vector_same_val_p): Likewise.
24271 (mips_const_vector_same_bytes_p): Likewise.
24272 (mips_const_vector_same_int_p): Likewise.
24273 (mips_const_vector_shuffle_set_p): Likewise.
24274 (mips_const_vector_bitimm_set_p): Likewise.
24275 (mips_const_vector_bitimm_clr_p): Likewise.
24276 (mips_msa_vec_parallel_const_half): Likewise.
24277 (mips_msa_output_division): Likewise.
24278 (mips_ldst_scaled_shift): Likewise.
24279 (mips_expand_vec_cond_expr): Likewise.
24280 * config/mips/mips.c (enum mips_builtin_type): Add
24281 MIPS_BUILTIN_MSA_TEST_BRANCH.
24282 (mips_gen_const_int_vector_shuffle): New prototype.
24283 (mips_const_vector_bitimm_set_p): New function.
24284 (mips_const_vector_bitimm_clr_p): Likewise.
24285 (mips_const_vector_same_val_p): Likewise.
24286 (mips_const_vector_same_bytes_p): Likewise.
24287 (mips_const_vector_same_int_p): Likewise.
24288 (mips_const_vector_shuffle_set_p): Likewise.
24289 (mips_symbol_insns): Forbid loading symbols via immediate for
24290 MSA.
24291 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
24292 stores.
24293 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
24294 MSA.
24295 (mips_lx_address_p): Add support load indexed address for MSA.
24296 (mips_address_insns): Add calculation of instructions needed for
24297 stores and loads for MSA.
24298 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
24299 CONST_VECTOR for MSA and let it fall through.
24300 (mips_ldst_scaled_shift): New function.
24301 (mips_subword_at_byte): Likewise.
24302 (mips_msa_idiv_insns): Likewise.
24303 (mips_legitimize_move): Validate MSA moves.
24304 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
24305 calculation of costs for MSA division.
24306 (mips_split_move_p): Check if MSA moves need splitting.
24307 (mips_split_move): Split MSA moves if necessary.
24308 (mips_split_128bit_move_p): New function.
24309 (mips_split_128bit_move): Likewise.
24310 (mips_split_msa_copy_d): Likewise.
24311 (mips_split_msa_insert_d): Likewise.
24312 (mips_split_msa_fill_d): Likewise.
24313 (mips_output_move): Handle MSA moves.
24314 (mips_expand_msa_branch): New function.
24315 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
24316 Reinstate 'y' modifier.
24317 (mips_file_start): Add MSA .gnu_attribute.
24318 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
24319 FPRs.
24320 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
24321 (mips_class_max_nregs): Add register size for MSA supported mode.
24322 (mips_cannot_change_mode_class): Allow conversion between MSA
24323 vector modes and TImode.
24324 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
24325 instruction.
24326 (mips_secondary_reload_class): Force MSA loads/stores via memory.
24327 (mips_preferred_simd_mode): Add preffered modes for MSA.
24328 (mips_vector_mode_supported_p): Add MSA supported modes.
24329 (mips_autovectorize_vector_sizes): New function.
24330 (mips_msa_output_division): Likewise.
24331 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
24332 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
24333 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
24334 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
24335 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
24336 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
24337 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
24338 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
24339 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
24340 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
24341 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
24342 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
24343 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
24344 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
24345 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
24346 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
24347 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
24348 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
24349 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
24350 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
24351 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
24352 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
24353 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
24354 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
24355 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
24356 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
24357 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
24358 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
24359 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
24360 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
24361 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
24362 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
24363 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
24364 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
24365 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
24366 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
24367 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
24368 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
24369 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
24370 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
24371 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
24372 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
24373 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
24374 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
24375 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
24376 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
24377 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
24378 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
24379 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
24380 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
24381 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
24382 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
24383 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
24384 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
24385 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
24386 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
24387 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
24388 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
24389 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
24390 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
24391 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
24392 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
24393 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
24394 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
24395 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
24396 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
24397 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
24398 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
24399 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
24400 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
24401 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
24402 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
24403 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
24404 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
24405 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
24406 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
24407 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
24408 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
24409 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
24410 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
24411 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
24412 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
24413 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
24414 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
24415 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
24416 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
24417 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
24418 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
24419 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
24420 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
24421 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
24422 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
24423 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
24424 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
24425 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
24426 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
24427 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
24428 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
24429 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
24430 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
24431 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
24432 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
24433 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
24434 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
24435 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
24436 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
24437 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
24438 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
24439 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
24440 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
24441 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
24442 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
24443 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
24444 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
24445 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
24446 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
24447 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
24448 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
24449 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
24450 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
24451 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
24452 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
24453 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
24454 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
24455 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
24456 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
24457 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
24458 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
24459 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
24460 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
24461 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
24462 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
24463 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
24464 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
24465 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
24466 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
24467 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
24468 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
24469 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
24470 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
24471 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
24472 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
24473 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
24474 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
24475 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
24476 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
24477 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
24478 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
24479 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
24480 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
24481 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
24482 move_v builtins.
24483 (mips_get_builtin_decl_index): New array.
24484 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
24485 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
24486 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
24487 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
24488 (mips_init_builtins): Initialize mips_get_builtin_decl_index
24489 array.
24490 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
24491 hook.
24492 (mips_expand_builtin_insn): Prepare operands for
24493 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
24494 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
24495 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
24496 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
24497 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
24498 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
24499 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
24500 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
24501 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
24502 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
24503 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
24504 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
24505 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
24506 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
24507 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
24508 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
24509 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
24510 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
24511 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
24512 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
24513 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
24514 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
24515 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
24516 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
24517 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
24518 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
24519 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
24520 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
24521 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
24522 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
24523 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
24524 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
24525 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
24526 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
24527 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
24528 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
24529 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
24530 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
24531 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
24532 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
24533 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
24534 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
24535 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
24536 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
24537 These are set implicitly and an error is reported if overridden.
24538 (mips_expand_builtin_msa_test_branch): New function.
24539 (mips_expand_msa_shuffle): Likewise.
24540 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
24541 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
24542 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
24543 (mips_expand_vec_unpack): Add support for MSA.
24544 (mips_expand_vector_init): Likewise.
24545 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
24546 instead of const0_rtx.
24547 (mips_msa_vec_parallel_const_half): New function.
24548 (mips_gen_const_int_vector): Likewise.
24549 (mips_gen_const_int_vector_shuffle): Likewise.
24550 (mips_expand_msa_cmp): Likewise.
24551 (mips_expand_vec_cond_expr): Likewise.
24552 * config/mips/mips.h
24553 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
24554 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
24555 specified.
24556 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
24557 (ISA_HAS_MSA): New macro.
24558 (UNITS_PER_MSA_REG): Likewise.
24559 (BITS_PER_MSA_REG): Likewise.
24560 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
24561 (MSA_REG_FIRST): New macro.
24562 (MSA_REG_LAST): Likewise.
24563 (MSA_REG_NUM): Likewise.
24564 (MSA_REG_P): Likewise.
24565 (MSA_REG_RTX_P): Likewise.
24566 (MSA_SUPPORTED_MODE_P): Likewise.
24567 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
24568 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
24569 * config/mips/mips.md: Include mips-msa.md.
24570 (alu_type): Add simd_add.
24571 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
24572 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
24573 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
24574 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
24575 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
24576 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
24577 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
24578 simd_move, simd_load, simd_store. Choose "multi" for moves
24579 for "qword_mode".
24580 (qword_mode): New attribute.
24581 (insn_count): Add instruction count for quad moves.
24582 Increase the count for MIPS SIMD division.
24583 (UNITMODE): Add UNITMODEs for vector types.
24584 (addsub): New code iterator.
24585 * config/mips/mips.opt (mmsa): New option.
24586 * config/mips/msa.h: New file.
24587 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
24588 specified.
24589 * config/mips/mti-linux.h: Likewise.
24590 * config/mips/predicates.md
24591 (const_msa_branch_operand): New constraint.
24592 (const_uimm3_operand): Likewise.
24593 (const_uimm4_operand): Likewise.
24594 (const_uimm5_operand): Likewise.
24595 (const_uimm8_operand): Likewise.
24596 (const_imm5_operand): Likewise.
24597 (aq10b_operand): Likewise.
24598 (aq10h_operand): Likewise.
24599 (aq10w_operand): Likewise.
24600 (aq10d_operand): Likewise.
24601 (const_m1_operand): Likewise.
24602 (reg_or_m1_operand): Likewise.
24603 (const_exp_2_operand): Likewise.
24604 (const_exp_4_operand): Likewise.
24605 (const_exp_8_operand): Likewise.
24606 (const_exp_16_operand): Likewise.
24607 (const_vector_same_val_operand): Likewise.
24608 (const_vector_same_simm5_operand): Likewise.
24609 (const_vector_same_uimm5_operand): Likewise.
24610 (const_vector_same_uimm6_operand): Likewise.
24611 (const_vector_same_uimm8_operand): Likewise.
24612 (par_const_vector_shf_set_operand): Likewise.
24613 (reg_or_vector_same_val_operand): Likewise.
24614 (reg_or_vector_same_simm5_operand): Likewise.
24615 (reg_or_vector_same_uimm6_operand): Likewise.
24616 * doc/extend.texi (MIPS SIMD Architecture Functions): New
24617 section.
24618 * doc/invoke.texi (-mmsa): Document new option.
24619
24620 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24621
24622 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
24623 * configure: Regenerate.
24624 * config.in: Regenerate.
24625 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
24626 on -fvtable-verify.
24627 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
24628 (ENDFILE_VTV_SPEC): Define.
24629
24630 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
24631
24632 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
24633 registers in all interrupt handlers if necessary.
24634 (rl78_option_override): Add warning.
24635 (MUST_SAVE_MDUC_REGISTERS): New macro.
24636 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
24637 * config/rl78/rl78.c (check_mduc_usage): New function.
24638 (mduc_regs): New structure to hold MDUC register data.
24639 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
24640 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
24641 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
24642 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
24643 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
24644 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
24645
24646 2016-05-09 Bin Cheng <bin.cheng@arm.com>
24647
24648 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
24649 (tree-ssa-loop-niter.h): Ditto.
24650 (idx_within_array_bound, ref_within_array_bound): New functions.
24651 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
24652 Factor out check on writable base object to ...
24653 (base_object_writable): ... here.
24654
24655 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24656
24657 * config/arm/arm.md (probe_stack): Add modes to set source
24658 and destination.
24659
24660 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
24661
24662 * regrename.c (base_reg_class_for_rename): New static function.
24663 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
24664
24665 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
24666
24667 * cgraph.c (thunk_adjust): Export.
24668 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
24669 * cgraphunit.c (thunk_adjust): Export.
24670 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
24671 thunks.
24672 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
24673 inlinable.
24674 * tree-inline.c (expand_call_inline): Expand thunks inline.
24675
24676 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
24677
24678 PR target/70998
24679 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
24680 (*sse2_vd_cvtss2sd): Ditto.
24681 * config/i386/i386.md
24682 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
24683 Generate *sse2_vd_cvtsd2ss pattern.
24684 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
24685 Generate *sse2_vd_cvtss2sd pattern.
24686
24687 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
24688
24689 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
24690 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
24691 users.
24692
24693 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
24694
24695 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
24696 * config/sh/sh.c: Define and declare variables on first use throughout
24697 the file.
24698 (current_function_interrupt): Change to bool type.
24699 (frame_insn): Rename to emit_frame_insn and update users.
24700 (push_regs): Use bool for 'interrupt_handler' argument.
24701 (save_schedule_s): Remove.
24702 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
24703 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
24704 targetm.asm_out.unaligned_op.di.
24705 (gen_far_branch): Remove redundant forward declaration.
24706 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
24707 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
24708 (sh_set_return_address, sh_function_ok_for_sibcall,
24709 scavenge_reg): Update comments.
24710 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
24711 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
24712 (sh_attr_renesas_p): Remove unnecessary parentheses.
24713 (branch_dest): Simplify.
24714 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
24715 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
24716 (CUMULATIVE_ARGS): Change macro to typedef.
24717 (current_function_interrupt): Change to bool type.
24718 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
24719 Surround with __cplusplus ifdef.
24720 (sh_compare_op0, sh_compare_op1): Remove.
24721 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
24722
24723 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
24724
24725 * config/arm/arm.md (arch): Add neon.
24726 (arch_enabled): Return yes for arch neon when TARGET_NEON.
24727 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
24728 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
24729 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
24730 attributes for alt renumbering. Mark alt 3 as non-predicable.
24731 (thumb2_movdf_vfp): Likewise.
24732
24733 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
24734
24735 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
24736 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
24737 (*andqi_1): Add preferred_for_speed attribute to disparage
24738 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
24739 (*<code>qi_1): Ditto.
24740 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
24741 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
24742 (*ashlqi3_1): Ditto.
24743 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
24744 Add preferred_for_size attribute to disparage alternative 0 and
24745 preferred_for_speed attribute to disparage alternative 1 for
24746 TARGET_PARTIAL_REG_STALL targets.
24747
24748 2016-05-07 Tom de Vries <tom@codesourcery.com>
24749
24750 PR tree-optimization/70956
24751 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
24752 def.
24753
24754 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
24755
24756 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
24757 * config/sh/sh.c (sh_cbranch_distance): Implement it.
24758 * config/sh/sh.md (branch_zero): Remove define_attr.
24759 (define_delay): Disable delay slot if branch distance is one insn.
24760
24761 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24762
24763 * config/i386/i386.md (LEAMODE): New mode attribute.
24764 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
24765 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
24766 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
24767 operand 2 predicate.
24768 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
24769 (*lea<mode>_general_3): Ditto.
24770 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
24771
24772 2016-05-06 Jakub Jelinek <jakub@redhat.com>
24773
24774 * genmddump.c (main): Convert argv from char ** to const char **.
24775
24776 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24777
24778 * coretypes.h (OVERRIDE): New macro.
24779 (FINAL): New macro.
24780
24781 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
24782
24783 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
24784 allow coalescing if the types are compatible.
24785
24786 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24787
24788 * pass_manager.h (pass_manager::register_pass_name): New method.
24789 (pass_manager::get_pass_by_name): New method.
24790 (pass_manager::create_pass_tab): New method.
24791 (pass_manager::m_name_to_pass_map): New field.
24792 * passes.c (name_to_pass_map): Delete global in favor of field
24793 "m_name_to_pass_map" of pass_manager.
24794 (register_pass_name): Rename from a function to...
24795 (pass_manager::register_pass_name): ...this method, updating
24796 for renaming of global "name_to_pass_map" to field
24797 "m_name_to_pass_map".
24798 (create_pass_tab): Rename from a function to...
24799 (pass_manager::create_pass_tab): ...this method, updating
24800 for renaming of global "name_to_pass_map" to field.
24801 (get_pass_by_name): Rename from a function to...
24802 (pass_manager::get_pass_by_name): ...this method.
24803 (enable_disable_pass): Convert use of get_pass_by_name to
24804 a method call, locating the pass_manager singleton.
24805
24806 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24807
24808 * genattr-common.c (main): Convert argv from char ** to const char **.
24809 * genattr.c (main): Likewise.
24810 * genattrtab.c (main): Likewise.
24811 * genautomata.c (initiate_automaton_gen): Likewise.
24812 (main): Likewise.
24813 * gencodes.c (main): Likewise.
24814 * genconditions.c (main): Likewise.
24815 * genconfig.c (main): Likewise.
24816 * genconstants.c (main): Likewise.
24817 * genemit.c (main): Likewise.
24818 * genenums.c (main): Likewise.
24819 * genextract.c (main): Likewise.
24820 * genflags.c (main): Likewise.
24821 * genmddeps.c (main): Likewise.
24822 * genopinit.c (main): Likewise.
24823 * genoutput.c (main): Likewise.
24824 * genpeep.c (main): Likewise.
24825 * genpreds.c (main): Likewise.
24826 * genrecog.c (main): Likewise.
24827 * gensupport.c (init_rtx_reader_args_cb): Likewise.
24828 (init_rtx_reader_args): Likewise.
24829 * gensupport.h (init_rtx_reader_args_cb): Likewise.
24830 (init_rtx_reader_args): Likewise.
24831 * gentarget-def.c (main): Likewise.
24832 * read-md.c (read_md_files): Likewise.
24833 * read-md.h (read_md_files): Likewise.
24834
24835 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24836
24837 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
24838 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
24839 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
24840 Remove unused predicate.
24841 (register_and_not_fp_reg_operand): Ditto.
24842
24843 2016-05-06 Martin Liska <mliska@suse.cz>
24844
24845 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
24846 instead of vec as the vector is local to the function.
24847
24848 2016-05-06 Jakub Jelinek <jakub@redhat.com>
24849
24850 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
24851 avx512bw alternative.
24852
24853 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
24854 before the ashr<mode>3 pattern.
24855
24856 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
24857 v instead of x in vex or maybe_vex alternatives, use
24858 maybe_evex instead of vex in prefix.
24859
24860 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
24861 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
24862 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
24863 in vex or maybe_vex alternatives, use maybe_evex instead of vex
24864 in prefix.
24865
24866 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
24867 v instead of x in vex or maybe_vex alternatives, use
24868 maybe_evex instead of vex in prefix.
24869
24870 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
24871 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
24872 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
24873 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
24874 alternatives, use maybe_evex instead of vex in prefix.
24875
24876 * config/i386/sse.md (vec_interleave_lowv4sf,
24877 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
24878 v instead of x in vex or maybe_vex alternatives, use
24879 maybe_evex instead of vex in prefix.
24880
24881 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
24882 v instead of x in vex or maybe_vex alternatives, use
24883 maybe_evex instead of vex in prefix.
24884
24885 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
24886 v constraint instead of x.
24887
24888 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
24889
24890 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
24891 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
24892 equality first.
24893
24894 2016-05-06 Richard Biener <rguenther@suse.de>
24895
24896 PR tree-optimization/70948
24897 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24898 Properly clobber all fields of va_list for __builtin_va_start.
24899
24900 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
24901
24902 PR debug/70935
24903 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
24904 loop latch destination.
24905
24906 2016-05-06 Martin Liska <mliska@suse.cz>
24907
24908 * tree-ssa-uninit.c: Apply manual changes
24909 to the GNU coding style.
24910 (prune_uninit_phi_opnds): Rename from
24911 prune_uninit_phi_opnds_in_unrealizable_paths.
24912
24913 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24914
24915 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
24916 mspace): Remove deprecated options.
24917 * doc/invoke.texi (SH options): Remove -mspace.
24918
24919 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24920
24921 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
24922
24923 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24924
24925 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
24926 corresponding combine split pattern.
24927
24928 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24929
24930 PR target/58219
24931 * config/sh/predicates.md (long_displacement_mem_operand): New.
24932 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
24933 Add movi20, movi20s alternatives. Adjust length attribute for
24934 alternatives.
24935 (movsi_ie): Allow for any FPU. Adjust length attribute for
24936 alternatives.
24937 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
24938 attribute for alternatives.
24939 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
24940 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
24941 length attribute for alternatives.
24942
24943 2016-05-06 Richard Biener <rguenther@suse.de>
24944
24945 PR tree-optimization/70960
24946 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
24947
24948 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24949
24950 PR target/52933
24951 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
24952 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
24953
24954 2016-05-06 Marek Polacek <polacek@redhat.com>
24955
24956 PR sanitizer/70875
24957 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
24958
24959 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24960
24961 PR target/54089
24962 * config/sh/sh.md (*rotcr): Add another variant.
24963
24964 2016-05-06 Richard Biener <rguenther@suse.de>
24965
24966 PR middle-end/70931
24967 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
24968
24969 2016-05-06 Richard Biener <rguenther@suse.de>
24970
24971 PR middle-end/70941
24972 * fold-const.c (split_tree): Always convert to the original type
24973 before negating.
24974
24975 2016-05-06 Richard Biener <rguenther@suse.de>
24976
24977 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
24978 (fwprop_addr): Likewise.
24979
24980 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24981
24982 PR target/70873
24983 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
24984 New prototype.
24985 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
24986 * config/i386/i386.md (push mem splitter): Use find_constant_src in
24987 the splitter condition.
24988 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
24989 the splitter condition.
24990 (FP float_extend load splitter): Ditto.
24991
24992 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
24993
24994 * config/i386/i386.md (peehole2 patterns): Change true_regnum
24995 to REGNO in all peephole2 patterns.
24996 (post-reload splitters): Change true_regnum to REGNO in
24997 post-reload splitters.
24998 (zero_extend splitters): Use general_reg_operand and
24999 nonimmediate_gr_operand predicates.
25000
25001 2016-05-05 Jakub Jelinek <jakub@redhat.com>
25002
25003 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
25004 v constraint instead of x.
25005
25006 2016-05-05 Alan Modra <amodra@gmail.com>
25007
25008 PR target/68662
25009 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
25010 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
25011 TARGET_NO_FP_IN_TOC for -mrelocatable.
25012 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
25013 TARGET_RELOCATABLE test.
25014 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25015 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25016 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25017 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25018 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25019 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25020 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25021 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25022 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
25023 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25024 Likewise.
25025 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
25026 (rs6000_stack_info): Likewise.
25027 (rs6000_elf_asm_out_constructor): Likewise.
25028 (rs6000_elf_asm_out_destructor): Likewise.
25029 (rs6000_elf_declare_function_name): Likewise.
25030 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
25031 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
25032 Don't define.
25033
25034 2016-05-05 Alan Modra <amodra@gmail.com>
25035
25036 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
25037
25038 2016-05-05 Alan Modra <amodra@gmail.com>
25039
25040 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
25041 out-of-line gpr restore for one or two regs if that would add
25042 a save of lr.
25043
25044 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
25045
25046 PR target/70873
25047 * config/i386/i386.md
25048 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
25049 Change to post-epilogue_completed late splitter. Use sse_reg_operand
25050 as operand 0 predicate.
25051 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
25052 Ditto.
25053 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
25054 Ditto. Emit the pattern using RTX.
25055
25056 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
25057 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
25058 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
25059 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
25060 Ditto.
25061 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
25062 sse_reg_operand as operand 0 predicate.
25063
25064 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
25065 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
25066 instead of gen_rtx_REG.
25067 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
25068 Ditto.
25069
25070 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25071
25072 * function.c (emit_use_return_register_into_block): Delete.
25073 (gen_return_pattern): Delete.
25074 (emit_return_into_block): Delete.
25075 (active_insn_between): Delete.
25076 (convert_jumps_to_returns): Delete.
25077 (emit_return_for_exit): Delete.
25078 (thread_prologue_and_epilogue_insns): Delete all code dealing with
25079 simple_return for shrink-wrapped blocks.
25080 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
25081 end of blocks that need one.
25082 (get_unconverted_simple_return): Delete.
25083 (convert_to_simple_return): Delete.
25084 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
25085 (convert_to_simple_return): Ditto.
25086
25087 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25088
25089 * cfgcleanup.c (bb_is_just_return): New function.
25090 (try_optimize_cfg): Simplify jumps to return, branches to return,
25091 and branches around return.
25092
25093 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25094
25095 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
25096 branch to a return.
25097
25098 2016-05-04 Jakub Jelinek <jakub@redhat.com>
25099
25100 PR c++/70906
25101 PR c++/70933
25102 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
25103 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
25104 assert flags & OEP_HASH_CHECK, instead of asserting it
25105 never happens. Handle TARGET_EXPR.
25106 * fold-const.c (operand_equal_p): For hash verification,
25107 or in OEP_HASH_CHECK into flags.
25108
25109 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
25110
25111 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
25112 comment.
25113 (compute_samebase_partition_bases): Fix typo.
25114
25115 2016-05-04 Jakub Jelinek <jakub@redhat.com>
25116
25117 * config/i386/sse.md (vec_interleave_highv8sf,
25118 vec_interleave_lowv8sf, vec_interleave_highv4df,
25119 vec_interleave_lowv4df): Remove constraints from expanders.
25120
25121 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
25122
25123 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
25124
25125 * tree-inline.c (expand_call_inline): Fix path dealing with
25126 making lhs of call statement undefined.
25127
25128 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
25129
25130 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25131 Check availability on NODE, too.
25132 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
25133 (cgraph_node::call_for_symbol_and_aliases): Likewise.
25134 (varpool_node::call_for_symbol_and_aliase): Likewise.
25135 * ipa-pure-const.c (add_new_function): Analyze all bodies.
25136 (propagate_pure_const): Propagate across interposable functions, too.
25137 (skip_function_for_local_pure_const): Do not skip interposable bodies
25138 with aliases.
25139 (pass_local_pure_const::execute): Update.
25140
25141 2016-05-04 Marek Polacek <polacek@redhat.com>
25142
25143 * doc/invoke.texi: Document -Wdangling-else.
25144
25145 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
25146
25147 * config.gcc: Error out when conflicting multilib is detected. Do not
25148 loop over multilibs since no combination is legal.
25149
25150 2016-05-04 Alan Modra <amodra@gmail.com>
25151
25152 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
25153 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
25154 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25155 Align .toc.
25156
25157 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
25158
25159 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
25160 Clean up p5600 comments.
25161
25162 2016-05-04 Richard Biener <rguenther@suse.de>
25163
25164 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
25165 constructor simplifications.
25166 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
25167
25168 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
25169
25170 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
25171 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
25172 result.set_rtx is null instead of aborting.
25173 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
25174 Always enable.
25175 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
25176 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
25177 *mov<mode>_store_postinc): New patterns.
25178
25179 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
25180
25181 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
25182 as commutative. Check both conversions are NOP.
25183 ((A & B) OP (C & B)): Remove.
25184
25185 2016-05-04 Alan Modra <amodra@gmail.com>
25186
25187 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
25188
25189 2016-05-04 Alan Modra <amodra@gmail.com>
25190
25191 PR target/70866
25192 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
25193 when cr2,3,4 are all fixed regs.
25194
25195 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
25196
25197 PR rtl-optimization/57193
25198 * opts.c (default_options_table): Revert OPT_frename_registers change.
25199 * doc/invoke.texi (-frename-registers, -O2): Likewise.
25200
25201 2016-05-03 Martin Sebor <msebor@redhat.com>
25202
25203 PR c++/66561
25204 * builtins.c (fold_builtin_FILE): New function.
25205 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
25206 (fold_builtin_0): Call them.
25207 * gimplify.c (gimplify_call_expr): Remove the handling of
25208 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
25209
25210 PR c++/66561
25211 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
25212 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
25213 constants.
25214
25215 PR c++/66639
25216 * doc/extend.texi (Function Names as Strings): Update __func__,
25217 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
25218 constants.
25219
25220 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25221 Richard Biener <rguenther@suse.de>
25222
25223 PR tree-optimization/70916
25224 * tree-if-conv.c: Include cfganal.h.
25225 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
25226 and remove_fake_exit_edges around the optimization pass.
25227
25228 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
25229
25230 * cgraph.c (symbol_table::create_edge): Set inline_failed.
25231 (cgraph_edge::make_direct): Likewise.
25232 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
25233 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
25234 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
25235 (CIF_THUNK): New code.
25236 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
25237 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
25238 (compute_inline_parameters): Set inline_failed for thunks.
25239 (inline_analyze_function): Cleanup.
25240 * ipa-inline.c (can_inline_edge_p): Do not deal with
25241 call_stmt_cannot_inline_p.
25242 (can_early_inline_edge_p): Likewise.
25243 (early_inliner): Initialize inline_failed.
25244 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
25245
25246 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
25247
25248 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
25249 from nonimm_ssenomem_operand.
25250 (nonimm_ssenomem_operand): New predicate.
25251 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
25252 as operand 0 predicate.
25253 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
25254 Disable unsupported alternatives using "enabled" attribute.
25255 Use register_ssemem_operand as operand 0 predicate.
25256 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
25257
25258 2016-05-03 Marek Polacek <polacek@redhat.com>
25259
25260 PR c/70859
25261 * input.c (expansion_point_location): New function.
25262 * input.h (expansion_point_location): Declare.
25263
25264 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
25265
25266 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
25267 occurence with frame_offset_ ones.
25268
25269 2016-05-03 Alan Modra <amodra@gmail.com>
25270
25271 PR rtl-optimization/70890
25272 * ira.c (combine_and_move_insns): When moving def_insn, remove
25273 equivs on use_insn.
25274
25275 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
25276
25277 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
25278 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
25279 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
25280 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
25281
25282 2016-05-03 Alan Modra <amodra@gmail.com>
25283
25284 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
25285 for SAVE_MULTIPLE/STORE_MULTIPLE.
25286
25287 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25288
25289 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
25290 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
25291
25292 2016-05-03 Richard Biener <rguenther@suse.de>
25293
25294 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
25295 default true.
25296 (gimplify_arg): Likewise.
25297 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
25298 re-writing the result to a decl if required.
25299 (internal_get_tmp_var): Add allow_ssa parameter
25300 and override into_ssa with it.
25301 (get_formal_tmp_var): Adjust.
25302 (get_initialized_tmp_var): Add allow_ssa parameter.
25303 (gimplify_arg): Add allow_ssa parameter and avoid generating
25304 SSA names for the result false.
25305 (gimplify_call_expr): If the call may return twice do not
25306 gimplify parameters into SSA.
25307 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
25308 (gimplify_modify_expr): Adjust assert. For noreturn calls
25309 with a SSA name LHS adjust its def.
25310 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
25311 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
25312 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
25313 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
25314 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
25315 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
25316 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
25317 (optimize_target_teams): Do not allow SSA names for clause operands.
25318 (gimplify_expr): Likewise for where we mark the result addressable.
25319 * passes.def (pass_init_datastructures): Remove.
25320 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
25321 (rewrite_stmt): Likewise.
25322 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
25323 (replace_locals_op): Replace SSA names.
25324 (copy_gimple_seq_and_replace_locals): Init src_cfun.
25325 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
25326 * cgraph.c (release_function_body): Free CFG annotations only
25327 when we have a CFG. Simplify.
25328 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
25329 force_gimple_operand instead of get_initialized_tmp_var.
25330 * tree-pass.h (make_pass_init_datastructures): Remove.
25331 * tree-ssa.c (execute_init_datastructures): Remove.
25332 (pass_data_init_datastructures): Likewise.
25333 (class pass_init_datastructures): Likewise.
25334 (make_pass_init_datastructures): Likewise.
25335 * omp-low.c (create_omp_child_function): Init SSA data structures.
25336 (grid_expand_target_grid_body): Likewise.
25337 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
25338 name before adding it to names_to_release.
25339 (remove_bb): Always release SSA defs.
25340 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
25341 before dereferencing it.
25342 * cgraphunit.c (init_lowered_empty_function): Always
25343 int SSA data structures.
25344 * tree-ssanames.c (release_defs): Remove assert that we are in
25345 SSA form.
25346 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
25347
25348 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25349 Uros Bizjak <ubizjak@gmail.com>
25350
25351 PR rtl-optimization/70467
25352 * config/i386/predicates.md (x86_64_hilo_int_operand,
25353 x86_64_hilo_general_operand): New predicates.
25354 * config/i386/constraints.md (Wd): New constraint.
25355 * config/i386/i386.md (mode attr di): Use Wd instead of e.
25356 (general_hilo_operand): New mode attr.
25357 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
25358 instead of <general_operand>.
25359 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
25360 x86_64_hilo_general_operand instead of <general_operand>.
25361
25362 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25363
25364 PR tree-optimization/70916
25365 * tree-if-conv.c (constant_or_ssa_name): Removed.
25366 (fold_build_cond_expr): Use is_gimple_val instead of
25367 constant_or_ssa_name.
25368
25369 PR tree-optimization/70916
25370 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
25371 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
25372
25373 PR target/49244
25374 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
25375 (optimize_atomic_bit_test_and): New function.
25376 (pass_fold_builtins::execute): Use it.
25377 * optabs.def (atomic_bit_test_and_set_optab,
25378 atomic_bit_test_and_complement_optab,
25379 atomic_bit_test_and_reset_optab): New optabs.
25380 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
25381 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
25382 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
25383 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
25384 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
25385 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
25386 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
25387 * doc/md.texi (atomic_bit_test_and_set@var{mode},
25388 atomic_bit_test_and_complement@var{mode},
25389 atomic_bit_test_and_reset@var{mode}): Document.
25390 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
25391 atomic_bit_test_and_complement<mode>,
25392 atomic_bit_test_and_reset<mode>): New expanders.
25393 (atomic_bit_test_and_set<mode>_1,
25394 atomic_bit_test_and_complement<mode>_1,
25395 atomic_bit_test_and_reset<mode>_1): New insns.
25396
25397 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
25398
25399 PR rtl-optimization/70687
25400 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
25401 instead of unsigned HOST_WIDE_INT.
25402
25403 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
25404
25405 PR rtl-optimization/44281
25406 * hard-reg-set.h (struct target_hard_regs): New field
25407 x_fixed_nonglobal_reg_set.
25408 (fixed_nonglobal_reg_set): New macro.
25409 * reginfo.c (init_reg_sets_1): Initialize it.
25410 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
25411 of fixed_reg_set.
25412 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
25413
25414 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25415
25416 PR tree-optimization/56541
25417 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
25418 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
25419 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
25420 (any_complicated_phi): new static variable.
25421 (aggressive_if_conv): delete.
25422 (if_convertible_phi_p): support phis with more than two arguments.
25423 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
25424 critical pred edges.
25425 (ifcvt_split_critical_edges): support phis with more than two
25426 arguments by checking new parameter. only split critical edges
25427 if needed.
25428 (tree_if_conversion): handle simd pragma marked loop using new
25429 local variable aggressive_if_conv. check any_complicated_phi.
25430
25431 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25432
25433 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
25434 before using it.
25435
25436 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25437
25438 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
25439 cbase.
25440
25441 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
25442
25443 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
25444 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
25445 define_insn_and_split.
25446 (mulsi3_i): New define_insn_and_split.
25447 (mulsi3_call): Convert to define_insn.
25448 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
25449 Remove constraints.
25450
25451 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25452
25453 * machmode.h (mode_complex): Add support to give the complex mode
25454 for a given mode.
25455 (GET_MODE_COMPLEX_MODE): Likewise.
25456 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
25457 stored by build_complex_type and gfc_build_complex_type instead of
25458 trying to figure out the appropriate mode based on the size. Raise
25459 an assertion error, if the type was not set.
25460 * genmodes.c (struct mode_data): Add field for the complex type of
25461 the given type.
25462 (blank_mode): Likewise.
25463 (make_complex_modes): Remember the complex mode created in the
25464 base type.
25465 (emit_mode_complex): Write out the mode_complex array to map a
25466 type mode to the complex version.
25467 (emit_insn_modes_c): Likewise.
25468 * tree.c (build_complex_type): Set the complex type to use before
25469 calling layout_type.
25470 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
25471 support for __float128 complex datatypes.
25472 (rs6000_hard_regno_mode_ok): Likewise.
25473 (rs6000_setup_reg_addr_masks): Likewise.
25474 (rs6000_complex_function_value): Likewise.
25475 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
25476 __float128 and __ibm128 complex.
25477 (FLOAT128_IBM_P): Likewise.
25478 (ALTIVEC_ARG_MAX_RETURN): Likewise.
25479 * doc/extend.texi (Additional Floating Types): Document that
25480 -mfloat128 must be used to enable __float128. Document complex
25481 __float128 and __ibm128 support.
25482
25483 2016-05-02 Jakub Jelinek <jakub@redhat.com>
25484
25485 PR target/49244
25486 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
25487 char/short arguments promoted to int because of promote_prototypes.
25488
25489 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
25490
25491 * config/i386/predicates.md (register_ssemem_operand): New predicate.
25492 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
25493 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
25494 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
25495 alternatives using "enabled" attribute. Use register_ssemem_operand
25496 as operand 1 predicate.
25497 (*cmpi<unord>xf_i387): Split XFmode pattern from
25498 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
25499 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
25500 *absneg<mode>2_i387. Disable unsupported alternatives using
25501 "enabled" attribute.
25502 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
25503
25504 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
25505
25506 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
25507 marker.
25508 (oacc_loop_process): Check mask for loop termination.
25509
25510 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
25511
25512 * cif-code.def (CIF_THUNK): Add.
25513 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
25514 accidental change.
25515
25516 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
25517
25518 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
25519 (dump_inline_summary): Dump it.
25520 (fp_expression_p): New predicate.
25521 (estimate_function_body_sizes): Use it.
25522 (inline_merge_summary): Merge fp_expressions.
25523 (inline_read_section): Read fp_expressions.
25524 (inline_write_summary): Write fp_expressions.
25525 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
25526 codegen boundary if either caller or callee is !fp_expressions.
25527 * ipa-inline.h (inline_summary): Add fp_expressions.
25528 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
25529 to fp_expressions be sure the fp generation flags are updated.
25530
25531 2016-05-02 Jakub Jelinek <jakub@redhat.com>
25532
25533 PR rtl-optimization/70467
25534 * cse.c (cse_insn): Handle no-op MEM moves after folding.
25535
25536 PR rtl-optimization/70467
25537 * ipa-pure-const.c (check_call): Handle internal calls even in
25538 ipa mode like in local mode.
25539
25540 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
25541
25542 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
25543
25544 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
25545
25546 * match.pd (X u< X, X u> X): New transformations.
25547
25548 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
25549
25550 * flag-types.h (enum warn_strict_overflow_code): Move ...
25551 * coretypes.h: ... here.
25552 * fold-const.h (fold_overflow_warning): Declare.
25553 * fold-const.c (fold_overflow_warning): Make non-static.
25554 (fold_comparison): Move the transformation of X +- C1 CMP C2
25555 into X CMP C2 -+ C1 ...
25556 * match.pd: ... here.
25557 * gimple-fold.c (fold_stmt_1): Protect with
25558 fold_defer_overflow_warnings.
25559
25560 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
25561
25562 * omp-low.c (struct oacc_loop): Add 'inner' field.
25563 (new_oacc_loop_raw): Initialize it to zero.
25564 (oacc_loop_fixed_partitions): Initialize it.
25565 (oacc_loop_auto_partitions): Partition outermost loop to outermost
25566 available partitioning.
25567
25568 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
25569
25570 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
25571 register_operand.
25572 (umulsidi3): Likewise.
25573 (indirect_jump): Fix jump instruction assembly patterns.
25574
25575 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
25576
25577 PR target/70860
25578 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
25579 (nvptx_function_value): Assert non-NULL cfun.
25580
25581 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
25582
25583 PR rtl-optimization/70886
25584 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
25585
25586 * cselib.h (rtx_equal_for_cselib_1): Declare.
25587 (rtx_equal_for_cselib_p: New inline function.
25588 * cselib.c (rtx_equal_for_cselib_p): Delete.
25589 (rtx_equal_for_cselib_1): Make public.
25590
25591 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
25592
25593 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
25594 (register_mixssei387nonimm_operand): Remove predicate.
25595 * config/i386/i386.md (*fop_<mode>_comm): Merge from
25596 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
25597 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
25598 for TARGET_MIX_SSE_I387 alternatives.
25599 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
25600 Disable unsupported alternatives using "enabled" attribute. Use
25601 nonimm_ssenomem_operand as operand 1 predicate. Also check
25602 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
25603
25604 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25605
25606 * tree.c (cst_and_fits_in_hwi): Simplify.
25607
25608 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25609
25610 * tree.h (wi::to_wide): New function.
25611 * expr.c (expand_expr_real_1): Use wi::to_wide.
25612 * fold-const.c (int_const_binop_1): Likewise.
25613 (extract_muldiv_1): Likewise.
25614
25615 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25616
25617 * wide-int.h: Update offset_int and widest_int documentation.
25618 (WI_SIGNED_SHIFT_RESULT): New macro.
25619 (wi::binary_shift): Define signed_shift_result_type for
25620 shifts on offset_int- and widest_int-like types.
25621 (generic_wide_int): Support <<= and >>= if << and >> are supported.
25622 * tree.h (int_bit_position): Use shift operators instead of wi::
25623 shifts.
25624 * alias.c (adjust_offset_for_component_ref): Likewise.
25625 * expr.c (get_inner_reference): Likewise.
25626 * fold-const.c (fold_comparison): Likewise.
25627 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
25628 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
25629 * tree-dfa.c (get_ref_base_and_extent): Likewise.
25630 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
25631 (stmt_kills_ref_p): Likewise.
25632 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
25633 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
25634 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
25635 (ao_ref_init_from_vn_reference): Likewise.
25636
25637 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25638
25639 * wide-int.h: Update offset_int and widest_int documentation.
25640 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
25641 (wi::binary_traits): Allow ordered comparisons between offset_int and
25642 offset_int, between widest_int and widest_int, and between either
25643 of these types and basic C types.
25644 (operator <, <=, >, >=): Define for the same combinations.
25645 * tree.h (tree_int_cst_lt): Use comparison operators instead
25646 of wi:: comparisons.
25647 (tree_int_cst_le): Likewise.
25648 * gimple-fold.c (fold_array_ctor_reference): Likewise.
25649 (fold_nonarray_ctor_reference): Likewise.
25650 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
25651 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
25652 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
25653 * tree-sra.c (completely_scalarize): Likewise.
25654 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
25655 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
25656 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
25657 (check_for_binary_op_overflow): Likewise.
25658 (search_for_addr_array): Likewise.
25659 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
25660
25661 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
25662
25663 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
25664 (arc_save_restore): Likewise.
25665 (arc_dwarf_register_span): Likewise.
25666 (arc_output_pic_addr_const): Initialize suffix variable.
25667
25668 2016-05-02 Martin Liska <mliska@suse.cz>
25669
25670 * symbol-summary.h (function_summary::function_summary):
25671 Remove checking assert for all cgraph nodes.
25672 (function_summary::get): Check summary_uid.
25673 (symtab_insertion): Check summary_uid.
25674
25675 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
25676
25677 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
25678 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
25679 bmaskn instruction.
25680 (arc_dwarf_register_span): Remove enum keyword.
25681 (compact_memory_operand_p): New function.
25682 * config/arc/arc.h (reg_class): Add code density register classes.
25683 (REG_CLASS_NAMES): Likewise.
25684 (REG_CLASS_CONTENTS): Likewise.
25685 * config/arc/arc.md (*movqi_insn): Add code density instructions.
25686 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
25687 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
25688 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
25689 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
25690 constraints.
25691 (h, Rcd, Rsd, Rzd): New register constraints.
25692 (T): Use compact_memory_operand_p function.
25693 * config/arc/predicates.md (compact_load_memory_operand): Remove.
25694
25695 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
25696
25697 * config/sh/sh.md (*negnegt, *movtt): Remove.
25698
25699 2016-05-02 Marek Polacek <polacek@redhat.com>
25700 Tom de Vries <tom@codesourcery.com>
25701
25702 PR tree-optimization/70700
25703 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
25704 bigger than FIRST_REF_NODE.
25705
25706 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
25707
25708 PR target/52898
25709 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
25710 TARGET_CMPEQDI_T.
25711 (prepare_cbranch_operands): Don't use scratch register. Assume that
25712 function is used when pseudos can be created.
25713 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
25714 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
25715 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
25716 define_expand. Allow it only when pseudos can be created.
25717 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
25718
25719 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
25720
25721 * config/i386/constraints.md (BC): Only allow -1 operands.
25722 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
25723 Add "enabled" attribute. Update XI mode attribute calculation.
25724 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
25725 (*movoi_internal_avx): Update XI mode attribute calculation.
25726 (*movti_internal): Ditto.
25727
25728 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25729
25730 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
25731 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
25732
25733 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
25734
25735 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
25736 statement on instruction code. Remove trailing spaces.
25737 (altivec_expand_stv_builtin): Likewise.
25738
25739 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25740
25741 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
25742 (TARGET_FPU_DOUBLE): Simplify.
25743 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
25744 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
25745 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
25746 with 'TARGET_FPU_DOUBLE'.
25747 * config/sh/sh.md: Likewise.
25748
25749 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
25750
25751 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
25752 SH_DIV_STR_FOR_SIZE): Remove.
25753 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
25754 SH_DIV_STR_FOR_SIZE): Remove.
25755
25756 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25757
25758 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
25759 logical_reg_operand): Delete.
25760 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
25761 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
25762 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
25763 match_operand and match_test.
25764 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
25765 variables on their first use. Return bool values.
25766 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
25767 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
25768 arith_reg_operand for input operand. Remove empty constraints.
25769 (xorsi3): Delete.
25770 (*xorsi3_compact): Rename to xorsi3.
25771 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
25772 (*zero_extend<mode>si2_disp_mem): Update comment.
25773 (mov_nop): Delete.
25774
25775 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
25776
25777 * config/sh/t-sh: Remove SH5 support.
25778 * config.gcc: Likewise.
25779 * configure: Likewise.
25780
25781 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25782
25783 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
25784
25785 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
25786
25787 * config/sh/sh.c (register_sh_passes, sh_option_override,
25788 sh_print_operand, prepare_move_operands,
25789 sh_can_follow_jump): Remove TARGET_SH1 checks.
25790 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
25791 PROMOTE_MODE): Likewise.
25792 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
25793 movdi): Likewise.
25794
25795 2016-04-30 Alan Modra <amodra@gmail.com>
25796
25797 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
25798 restoring when fixed_reg_p, but allow out-of-line or stmw save.
25799 Check for user regs later to avoid unnecessary looping over regs.
25800 Merge user reg check with non-saved reg check. Don't force
25801 inline VR restore when static chain used.
25802 (rs6000_frame_related): Omit eh_frame info for user regs when
25803 saving.
25804 (fixed_regs_p): Delete.
25805
25806 2016-04-30 Alan Modra <amodra@gmail.com>
25807
25808 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
25809 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
25810 Update all uses.
25811
25812 2016-04-30 Alan Modra <amodra@gmail.com>
25813
25814 PR target/69645
25815 * config/rs6000/rs6000.c (fixed_reg_p): New function.
25816 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
25817 Update all uses.
25818
25819 2016-04-30 Alan Modra <amodra@gmail.com>
25820
25821 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
25822 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
25823 flag_pic test for Darwin.
25824
25825 2016-04-30 Alan Modra <amodra@gmail.com>
25826
25827 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
25828 throw_calls_crossed.
25829 (REG_FREQ_CALLS_CROSSED): Delete.
25830 (REG_N_THROWING_CALLS_CROSSED): Delete.
25831 * regstat.c (regstat_bb_compute_ri): Don't calculate
25832 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
25833 (dump_reg_info): Don't print call cross frequency.
25834 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
25835 and REG_N_THROWING_CALLS_CROSSED.
25836
25837 2016-04-30 Alan Modra <amodra@gmail.com>
25838
25839 * regs.h (struct reg_info_t): Delete live_length.
25840 (REG_LIVE_LENGTH): Delete macro.
25841 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
25842 local_live, local_processed and local_live_last_luid params.
25843 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
25844 Formatting fixes.
25845 (regstat_compute_ri): Adjust for above. Don't set
25846 REG_LIVE_LENGTH.
25847 (dump_reg_info): Don't print live length.
25848 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
25849 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
25850 Localize loop_depth var.
25851
25852 2016-04-30 Alan Modra <amodra@gmail.com>
25853
25854 * ira.c (enum valid_equiv): New.
25855 (validate_equiv_mem): Return enum.
25856 (update_equiv_mem): Create replacement in more cases.
25857 (add_store_equivs): Update validate_equiv_mem call.
25858
25859 2016-04-30 Alan Modra <amodra@gmail.com>
25860
25861 * ira.c (combine_and_move_insns): Rather than scanning insns,
25862 use DF infrastucture to find use and def insns.
25863
25864 2016-04-30 Alan Modra <amodra@gmail.com>
25865
25866 ira.c (combine_and_move_insns): Move invariant conditions..
25867 (ira.c): ..to here. Call combine_and_move_insns before
25868 add_store_equivs. Call grow_reg_equivs later. Allocate
25869 req_equiv later using max_reg_num() rather than global max_regno.
25870 (contains_replace_regs): Delete.
25871 (add_store_equivs): Remove contains_replace_regs test.
25872
25873 2016-04-30 Alan Modra <amodra@gmail.com>
25874
25875 * ira.c (struct equiv_mem_data): New.
25876 (equiv_mem, equiv_mem_modified): Delete static vars.
25877 (validate_equiv_mem_from_store): Use "data" param to communicate..
25878 (validate_equiv_mem): ..from here.
25879
25880 2016-04-30 Alan Modra <amodra@gmail.com>
25881
25882 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
25883 split out from..
25884 (update_reg_equivs): ..here. Move allocation and freeing of
25885 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
25886 end_alias_analysis to..
25887 (ira): ..here.
25888
25889 2016-04-30 Alan Modra <amodra@gmail.com>
25890
25891 * ira.c (pdx_subregs): Delete.
25892 (struct equivalence): Add pdx_subregs field.
25893 (set_paradoxical_subreg): Remove pdx_subregs param. Update
25894 pdx_subregs access.
25895 (update_equiv_regs): Don't create or free pdx_subregs. Update
25896 pdx_subregs access.
25897
25898 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25899
25900 * config/rs6000/altivec.h: Change definitions of vec_xl and
25901 vec_xst.
25902 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
25903 (LD_ELEMREV_V2DI): New.
25904 (LD_ELEMREV_V4SF): New.
25905 (LD_ELEMREV_V4SI): New.
25906 (LD_ELEMREV_V8HI): New.
25907 (LD_ELEMREV_V16QI): New.
25908 (ST_ELEMREV_V2DF): New.
25909 (ST_ELEMREV_V2DI): New.
25910 (ST_ELEMREV_V4SF): New.
25911 (ST_ELEMREV_V4SI): New.
25912 (ST_ELEMREV_V8HI): New.
25913 (ST_ELEMREV_V16QI): New.
25914 (XL): New.
25915 (XST): New.
25916 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25917 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
25918 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
25919 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
25920 (altivec_expand_builtin): Add handling for
25921 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
25922 (rs6000_invalid_builtin): Add error-checking for
25923 RS6000_BTM_P9_VECTOR.
25924 (altivec_init_builtins): Define builtins used to implement vec_xl
25925 and vec_xst.
25926 (rs6000_builtin_mask_names): Define power9-vector.
25927 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
25928 (RS6000_BTM_P9_VECTOR): Define.
25929 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
25930 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
25931 (vsx_ld_elemrev_v2df): Likewise.
25932 (vsx_ld_elemrev_v4sf): Likewise.
25933 (vsx_ld_elemrev_v4si): Likewise.
25934 (vsx_ld_elemrev_v8hi): Likewise.
25935 (vsx_ld_elemrev_v16qi): Likewise.
25936 (vsx_st_elemrev_v2df): Likewise.
25937 (vsx_st_elemrev_v2di): Likewise.
25938 (vsx_st_elemrev_v4sf): Likewise.
25939 (vsx_st_elemrev_v4si): Likewise.
25940 (vsx_st_elemrev_v8hi): Likewise.
25941 (vsx_st_elemrev_v16qi): Likewise.
25942 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
25943 grammar.
25944
25945 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
25946
25947 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
25948 out into ...
25949 (simplify_control_stmt_condition_1): ... here. Recurse into
25950 BIT_AND_EXPRs and BIT_IOR_EXPRs.
25951
25952 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
25953
25954 PR target/69810
25955 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
25956 (zero_extendqi<mode>2_dot): Revert earlier conversion from
25957 define_insn_and_split to define_insn.
25958 (zero_extendqi<mode>2_dot2): Same.
25959 (extendqi<mode>2_dot): Same.
25960 (extendqi<mode>2_dot2): Same.
25961
25962 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25963
25964 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
25965 (probe_stack): New expander.
25966 (probe_stack_<mode>): New insn pattern.
25967
25968 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25969
25970 * config/i386/i386.md
25971 (operations with memory inputs setting flags peephole2):
25972 Remove uneeded REG_P checks. Cleanup pattern generation.
25973
25974 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
25975
25976 * tree-vect-loop.c (vect_transform_loop): Fix
25977 nb_iterations_upper_bound computation for vectorized loop.
25978
25979 2016-04-29 Marek Polacek <polacek@redhat.com>
25980 Jakub Jelinek <jakub@redhat.com>
25981
25982 PR sanitizer/70342
25983 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
25984 TARGET_EXPR_SLOT as a base.
25985
25986 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
25987
25988 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
25989 with 'rCm2' constraints to limit possible immediate size.
25990 (*load_zeroextendqisi_update): Likewise.
25991 (*load_signextendqisi_update): Likewise.
25992 (*loadhi_update): Likewise.
25993 (*load_zeroextendhisi_update): Likewise.
25994 (*load_signextendhisi_update): Likewise.
25995 (*loadsi_update): Likewise.
25996 (*loadsf_update): Likewise.
25997
25998 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25999
26000 * config/i386/predicates.md (constm1_operand): Fix comparison.
26001
26002 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
26003
26004 * testsuite/gcc.target/arc/ieee_eq.c: New test.
26005
26006 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
26007
26008 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
26009 remaining SH5 related settings.
26010 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
26011 shmedia_prepare_call_address): Delete.
26012 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
26013 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
26014 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
26015 UNSUPPORTED_SH2A): Remove m5 checks.
26016 (sh_divide_strategy_e): Remove SH5 division strategies.
26017 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
26018 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
26019
26020 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
26021
26022 * config/s390/s390.c (s390_rtx_costs): Update documentation.
26023
26024 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26025
26026 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
26027 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
26028 Change lder to ldr.
26029 * config/s390/vector.md ("mov<mode>"): Likewise.
26030
26031 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
26032
26033 * config/s390/constraints.md ("U", "W"): Invoke
26034 s390_mem_constraint with "ZR" and "ZT".
26035 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
26036 addresses when using LRA. Accept also short displacements for S
26037 and T constraints. Do not check for long displacement target for
26038 S and T constraints.
26039 (s390_mem_constraint): Remove handling of U and W constraints.
26040 * config/s390/s390.md (various patterns): Remove the short
26041 displacement constraints (Q and R) if a long displacement
26042 constraint is present. Add longdisp as required CPU capability.
26043 * config/s390/vector.md: Likewise.
26044 * config/s390/vx-builtins.md: Likewise.
26045
26046 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26047
26048 PR target/60040
26049 * reload1.c (reload): Call finish_spills before
26050 restarting reload loop. Skip select_reload_regs
26051 if update_eliminables_and_spill returns true.
26052
26053 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
26054
26055 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
26056 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
26057 (umulhisi3_imm): Update predicates and constraint letters.
26058 (umulhisi3_reg): Declare instruction as commutative.
26059 * config/arc/constraints.md (J12, J16): New constraints.
26060 * config/arc/predicates.md (short_unsigned_const_operand): New
26061 predicate.
26062 (arc_short_operand): Likewise.
26063 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
26064
26065 2016-04-29 Richard Biener <rguenther@suse.de>
26066
26067 PR tree-optimization/13962
26068 PR tree-optimization/65686
26069 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
26070 * tree-ssa-alias.c (ptrs_compare_unequal): New function
26071 using PTA to compare pointers.
26072 * match.pd: Add pattern for pointer equality compare simplification
26073 using ptrs_compare_unequal.
26074
26075 2016-04-29 Richard Biener <rguenther@suse.de>
26076
26077 * stor-layout.c (layout_type): Do not build a pointer-to-element
26078 type for arrays.
26079
26080 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26081
26082 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
26083 Use SWI mode iterator. Use general_reg_operand predicate.
26084 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
26085 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
26086 predicates.
26087
26088 2016-04-29 Jakub Jelinek <jakub@redhat.com>
26089
26090 PR middle-end/70843
26091 * fold-const.c (operand_equal_p): Don't verify hash value equality
26092 if arg0 == arg1.
26093 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
26094 and OMP_CLAUSE.
26095
26096 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26097
26098 PR target/70858
26099 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
26100 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
26101 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
26102 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
26103 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
26104
26105 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26106
26107 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
26108 to info. Don't initialize separate fields to 0. Clean up
26109 formatting a bit.
26110
26111 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26112
26113 * config/i386/i386.md (peephole2s for operations with memory inputs):
26114 Use SWI mode iterator.
26115 (peephole2s for operations with memory outputs): Ditto.
26116 Do not check for stack checking probe.
26117
26118 (probe_stack): Remove expander.
26119
26120 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26121 Andrew Burgess <andrew.burgess@embecosm.com>
26122
26123 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
26124 operands as 32-bits.
26125
26126 2016-04-28 Jason Merrill <jason@redhat.com>
26127
26128 * gdbinit.in: Skip line-map.h.
26129
26130 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26131 Andrew Burgess <andrew.burgess@embecosm.com>
26132
26133 * config/arc/arc.c (arc_conditional_register_usage): Take
26134 TARGET_RRQ_CLASS into account.
26135 (arc_print_operand): Support printing 'p' and 's' operands.
26136 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
26137 as 0.
26138 (TARGET_RRQ_CLASS): Define.
26139 (IS_POWEROF2_OR_0_P): Define.
26140 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
26141 alternatives.
26142 (*tst_movb): New define_insn.
26143 (*tst): Avoid recognition if it could prevent '*tst_movb'
26144 combination; replace c/CnL with c/Chs alternative.
26145 (*tst_bitfield_tst): New define_insn.
26146 (*tst_bitfield_asr): New define_insn.
26147 (*tst_bitfield): New define_insn.
26148 (andsi3_i): Add Rrq variant.
26149 (extzv): New define_expand.
26150 (insv): New define_expand.
26151 (*insv_i): New define_insn.
26152 (*movb): New define_insn.
26153 (*movb_signed): New define_insn.
26154 (*movb_high): New define_insn.
26155 (*movb_high_signed): New define_insn.
26156 (*movb_high_signed + 1): New define_split pattern.
26157 (*mrgb): New define_insn.
26158 (*mrgb + 1): New define_peephole2 pattern.
26159 (*mrgb + 2): New define_peephole2 pattern.
26160 * config/arc/arc.opt (mbitops): New option for nps400, uses
26161 TARGET_NPS_BITOPS_DEFAULT.
26162 * config/arc/constraints.md (q): Make register class conditional.
26163 (Rrq): New register constraint.
26164 (Chs): New constraint.
26165 (Clo): New constraint.
26166 (Chi): New constraint.
26167 (Cbf): New constraint.
26168 (Cbn): New constraint.
26169 (C18): New constraint.
26170 (Cbi): New constraint.
26171
26172 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26173
26174 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
26175 dst->popcount.
26176 (bitmap_intersection_of_preds): Ditto.
26177 (bitmap_union_of_succs): Ditto.
26178 (bitmap_union_of_preds): Ditto.
26179 * sbitmap.c (do_popcount): Delete.
26180 (BITMAP_DEBUGGING): Delete.
26181 (sbitmap_verify_popcount): Delete.
26182 (sbitmap_alloc): Don't initialize the popcount field.
26183 (sbitmap_alloc_with_popcount): Delete.
26184 (sbitmap_resize): Don't resize the popcount array.
26185 (sbitmap_vector_alloc): Don't initialize the popcount field.
26186 (bitmap_copy): Don't copy the popcount array.
26187 (bitmap_clear): Don't clear the popcount array.
26188 (bitmap_clear): Delete the popcount array handling.
26189 (bitmap_ior_and_compl): Delete the popcount assert.
26190 (bitmap_not): Ditto.
26191 (bitmap_and_compl): Ditto.
26192 (bitmap_and): Delete the popcount array handling.
26193 (bitmap_xor): Ditto.
26194 (bitmap_ior): Ditto.
26195 (bitmap_or_and): Delete the popcount assert.
26196 (bitmap_and_or): Ditto.
26197 (popcount_table): Delete.
26198 (sbitmap_elt_popcount): Delete.
26199 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
26200 (bitmap_set_bit): Delete the popcount assert.
26201 (bitmap_clear_bit): Ditto.
26202 (sbitmap_free): Don't free the popcount array.
26203 (sbitmap_alloc_with_popcount): Delete declaration.
26204 (sbitmap_popcount): Ditto.
26205
26206 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26207 Andrew Burgess <andrew.burgess@embecosm.com>
26208
26209 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
26210 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
26211 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
26212 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
26213 * config/arc/arc.opt (mcmem): New option.
26214 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
26215 supply length for r/m alternative.
26216 (*extendqisi2_ac): Likewise.
26217 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
26218 r/Uex alternative.
26219 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
26220 (movhi_insn): Likewise.
26221 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
26222 (*zero_extendqihi2_i): Add r/Ucm alternative.
26223 (*zero_extendqisi2_ac): Likewise.
26224 (*zero_extendhisi2_i): Likewise.
26225 * config/arc/constraints.md (Uex): New memory constraint.
26226 (Ucm): New define_constraint.
26227 * config/arc/predicates.md (long_immediate_loadstore_operand):
26228 Return 0 for MEM with cmem_address address.
26229 (cmem_address_0): New predicates.
26230 (cmem_address_1): Likewise.
26231 (cmem_address_2): Likewise.
26232 (cmem_address): Likewise.
26233
26234 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26235
26236 * config/rs6000/rs6000.c (machine_function): Rename
26237 insn_chain_scanned_p to spe_insn_chain_scanned_p.
26238 (rs6000_stack_info): Adjust.
26239
26240 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26241 Andrew Burgess <andrew.burgess@embecosm.com>
26242
26243 * config/arc/constraints.md (Usd): Convert to define_constraint.
26244 (Us<): Likewise.
26245 (Us>): Likewise.
26246
26247 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26248
26249 PR target/70821
26250 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
26251 Add new peephole2 where the first insn is *mov<mode>_or instead of
26252 *mov<mode>_internal.
26253
26254 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
26255
26256 * tracer.c (bb_seen): Make static.
26257
26258 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
26259
26260 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
26261 support, setup defaults.
26262 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
26263 * config/arc/arc.c (arc_init): Add NPS400 support.
26264 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
26265 (TARGET_ARC700): NPS400 is also an ARC700.
26266 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
26267
26268 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26269
26270 PR target/70668
26271 * config/nds32/nds32.md (casesi): Don't access the operands array
26272 out of bounds.
26273
26274 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26275
26276 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
26277 (or $-1,reg peephole2): Ditto.
26278 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
26279
26280 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
26281
26282 * doc/extend.texi (Common Function Attributes) [optimize]:
26283 Discourage use of the optimize attribute.
26284
26285 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
26286
26287 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
26288 special case builtin.
26289 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26290 ALTIVEC_BUILTIN_VEC_ADDE.
26291 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
26292 support for ALTIVEC_BUILTIN_VEC_ADDE.
26293 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
26294 for __builtin_vec_adde.
26295
26296 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26297
26298 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
26299 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
26300
26301 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26302
26303 PR testsuite/70595
26304 * doc/sourcebuild.texi (Effective-Target Keywords, Other
26305 attributes): Document cilkplus_runtime.
26306
26307 2016-04-28 Martin Jambor <mjambor@suse.cz>
26308
26309 * tree-cfg.c (verify_expr): Verify that local declarations belong to
26310 this function. Call verify_expr on MEM_REFs and bases of other
26311 handled_components.
26312
26313 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26314
26315 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
26316 for WORD_REGISTER_OPERATIONS to runtime check.
26317
26318 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26319
26320 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
26321
26322 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26323
26324 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
26325 big-endian compilation.
26326 * config/arc/arc.md (addf3): Likewise.
26327 (subdf3): Likewise.
26328 (muldf3): Likewise.
26329
26330 2016-04-28 Richard Biener <rguenther@suse.de>
26331
26332 PR tree-optimization/70840
26333 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
26334 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
26335 Mark x * pow(x,c) -> pow(x,c+1) commutative.
26336 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
26337
26338 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26339
26340 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
26341 and explain why in a comment.
26342
26343 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26344
26345 * config/arc/arc.md (cpu_facility): Add fpx variant.
26346 (subdf3): Prohibit use reverse sub when assist operations option
26347 is enabled.
26348 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
26349 instructions only when FPX is enabled.
26350 * testsuite/gcc.target/arc/trsub.c: New test.
26351
26352 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26353
26354 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
26355 mult_operator when calculating "type" attribute.
26356 (*fop_<mode>_1_i387): Ditto.
26357 (*fop_xf_1_i387): Ditto.
26358 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
26359 Use std::swap to swap operands. Use RTL expressions to generate
26360 converted pattern.
26361
26362 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26363 Joern Rennecke <joern.rennecke@embecosm.com>
26364
26365 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
26366 declaration.
26367 (emit_pic_move): Remove.
26368 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
26369 * config/arc/arc.c (emit_pic_move): Removed.
26370 (TARGET_HAVE_TLS): Define.
26371 (arc_conditional_register_usage): Test for arc_tp_regno.
26372 (arc_print_operand, arc_print_operand_address): Handle TLS
26373 unspecs.
26374 (arc_needs_pcl_p): New function.
26375 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
26376 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
26377 (arc_raw_symbolic_reference_mentioned_p): Likewise.
26378 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
26379 (arc_legitimize_tls_address): Likewise.
26380 (DTPOFF_ZERO_SYM): Define.
26381 (arc_legitimize_pic_address): Make it static, handle TLS cases.
26382 (arc_output_pic_addr_const): Print TLS unspecs.
26383 (prepare_pic_move): New function, replaces emit_pic_move.
26384 (arc_legitimate_constant_p): Handle TLS unspecs.
26385 (arc_legitimate_address_p): Likewise.
26386 (arc_rewrite_small_data_p): Use assert for TLS constants.
26387 (prepare_move_operands): Use prepare_pic_move.
26388 (arc_legitimize_address): Legitimize tls addresses.
26389 (arc_epilogue_uses): Check for arc_tp_regno.
26390 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
26391 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
26392 Define.
26393 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
26394 Likewise.
26395 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
26396 %(arc_tls_extra_start_spec).
26397 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
26398 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
26399 (EH_USES): Define.
26400 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
26401 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
26402 (UNSPEC_TLS_OFF): Add.
26403 (R10_REG): Define.
26404 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
26405 (get_thread_pointersi): New patterns.
26406 * config/arc/arc.opt (mtp-regno): New option.
26407 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
26408 (move_dest_operand): Likewise.
26409 * configure: Regenerate.
26410 * configure.ac: Add arc*-*-* case to test for tls.
26411 * doc/invoke.texi (ARC options): Document mtp-regno.
26412
26413 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26414
26415 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
26416 the new ARC HS SIMD instructions.
26417 (arc_preferred_simd_mode): New function.
26418 (arc_autovectorize_vector_sizes): Likewise.
26419 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
26420 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
26421 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
26422 (arc_init_builtins): Add new SIMD builtin types.
26423 (arc_split_move): Handle 64 bit vector moves.
26424 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
26425 (TARGET_PLUS_QMACW): Define.
26426 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
26427 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
26428 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
26429 (VSUBADD4H): New builtins.
26430 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
26431 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
26432
26433 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
26434 Matthias Klose <doko@debian.org>
26435
26436 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
26437
26438 2016-04-28 Richard Biener <rguenther@suse.de>
26439
26440 PR middle-end/70777
26441 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
26442 canonicalization.
26443
26444 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
26445
26446 * common/config/sh/sh-common.c: Remove SH5 support.
26447 * config/sh/constraints.md: Likewise.
26448 * config/sh/config/sh/elf.h: Likewise.
26449 * config/sh/linux.h: Likewise.
26450 * config/sh/netbsd-elf.h: Likewise.
26451 * config/sh/predicates.md: Likewise.
26452 * config/sh/sh-c.c: Likewise.
26453 * config/sh/sh-protos.h: Likewise.
26454 * config/sh/sh.c: Likewise.
26455 * config/sh/sh.h: Likewise.
26456 * config/sh/sh.md: Likewise.
26457 * config/sh/sh.opt: Likewise.
26458 * config/sh/sync.md: Likewise.
26459 * config/sh/sh64.h: Delete.
26460 * config/sh/shmedia.h: Likewise.
26461 * config/sh/shmedia.md: Likewise.
26462 * config/sh/sshmedia.h: Likewise.
26463 * config/sh/t-netbsd-sh5-64: Likewise.
26464 * config/sh/t-sh64: Likewise.
26465 * config/sh/ushmedia.h: Likewise.
26466
26467 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26468
26469 * config/i386/i386.md (sign_extend to memory peephole2s): Use
26470 general_reg_operand instead of register_operand predicate.
26471
26472 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26473
26474 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
26475
26476 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
26477
26478 * match.pd (A - B > A, A + B < A): New transformations.
26479
26480 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
26481
26482 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
26483 which defaults to true. Emit an outer pair of parentheses only if
26484 EMIT_PARENS. When continuing a chain of && or || (or & or |),
26485 don't emit parentheses for the right-hand operand.
26486
26487 2016-04-27 Jeff Law <law@redhat.com>
26488
26489 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
26490
26491 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26492
26493 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
26494 (altivec_lvx_<mode>_internal): Document.
26495 (altivec_lvx_<mode>_2op): New define_insn.
26496 (altivec_lvx_<mode>_1op): Likewise.
26497 (altivec_lvx_<mode>_2op_si): Likewise.
26498 (altivec_lvx_<mode>_1op_si): Likewise.
26499 (altivec_stvx_<mode>): Remove.
26500 (altivec_stvx_<mode>_internal): Document.
26501 (altivec_stvx_<mode>_2op): New define_insn.
26502 (altivec_stvx_<mode>_1op): Likewise.
26503 (altivec_stvx_<mode>_2op_si): Likewise.
26504 (altivec_stvx_<mode>_1op_si): Likewise.
26505 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26506 Expand vec_ld and vec_st during parsing.
26507 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
26508 changes.
26509 (altivec_expand_stvx_be): Likewise.
26510 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
26511 address-masking behavior in RTL.
26512 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
26513 address-masking behavior in RTL.
26514 (altivec_expand_builtin): Change builtin code arguments for calls
26515 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
26516 (insn_is_swappable_p): Avoid incorrect swap optimization in the
26517 presence of lvx/stvx patterns.
26518 (alignment_with_canonical_addr): New function.
26519 (alignment_mask): Likewise.
26520 (find_alignment_op): Likewise.
26521 (recombine_lvx_pattern): Likewise.
26522 (recombine_stvx_pattern): Likewise.
26523 (recombine_lvx_stvx_patterns): Likewise.
26524 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
26525 stvx patterns from expand.
26526 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
26527 expansions.
26528 (vector_altivec_store_<mode>): Likewise.
26529
26530 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
26531
26532 * config/aarch64/aarch64.md
26533 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
26534 remove the "fp" attributes.
26535 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
26536 add the "simd" attributes.
26537 (*movdf_aarch64): Likewise.
26538 (*movtf_aarch64): Remove the "fp" attributes.
26539 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
26540 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
26541
26542 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26543
26544 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
26545 rtx to rtx_code_label *.
26546 * rtl.h (maybe_set_first_label_num): Likewise.
26547
26548 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26549
26550 * df-core.c (df_add_problem): Make the problem param be const.
26551 (df_remove_problem): Make local "problem" be const.
26552 * df-problems.c (problem_RD): Make const.
26553 (problem_LR): Likewise.
26554 (problem_LIVE): Likewise.
26555 (problem_MIR): Likewise.
26556 (problem_CHAIN): Likewise.
26557 (problem_WORD_LR): Likewise.
26558 (problem_NOTE): Likewise.
26559 (problem_MD): Likewise.
26560 * df-scan.c (problem_SCAN): Likewise.
26561 * df.h (struct df_problem): Make field "dependent_problem" be
26562 const.
26563 (struct dataflow): Likewise for field "problem".
26564 (df_add_problem): Make param const.
26565
26566 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
26567
26568 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
26569 inter-unit moves to/from vector registers are enabled. Do not disable
26570 for TARGET_MMX.
26571
26572 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26573
26574 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
26575 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
26576 #define to...
26577 (enum df_problem_id): ...this new enum.
26578 (struct df_problem): Convert field "id" from "int" to
26579 enum df_problem_id.
26580
26581 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26582
26583 * rtl.def: Update comment for "things in the instruction chain" to
26584 reflect the removal of the leading "i" field for INSN_UID in
26585 r210360. Fix bogus apostrophe.
26586
26587 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
26588
26589 * config/i386/i386.md
26590 (lea arith with mem operand + setcc peephole2): Set operator mode.
26591
26592 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
26593
26594 PR target/70155
26595 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
26596 (dimode_scalar_to_vector_candidate_p): This.
26597 (timode_scalar_to_vector_candidate_p): New function.
26598 (scalar_to_vector_candidate_p): Likewise.
26599 (timode_check_non_convertible_regs): Likewise.
26600 (timode_remove_non_convertible_regs): Likewise.
26601 (remove_non_convertible_regs): Likewise.
26602 (remove_non_convertible_regs): Renamed to ...
26603 (dimode_remove_non_convertible_regs): This.
26604 (scalar_chain::~scalar_chain): Make it virtual.
26605 (scalar_chain::compute_convert_gain): Make it pure virtual.
26606 (scalar_chain::mark_dual_mode_def): Likewise.
26607 (scalar_chain::convert_insn): Likewise.
26608 (scalar_chain::convert_registers): Likewise.
26609 (scalar_chain::add_to_queue): Make it protected.
26610 (scalar_chain::emit_conversion_insns): Likewise.
26611 (scalar_chain::replace_with_subreg): Likewise.
26612 (scalar_chain::replace_with_subreg_in_insn): Likewise.
26613 (scalar_chain::convert_op): Likewise.
26614 (scalar_chain::convert_reg): Likewise.
26615 (scalar_chain::make_vector_copies): Likewise.
26616 (scalar_chain::convert_registers): New pure virtual function.
26617 (class dimode_scalar_chain): New class.
26618 (class timode_scalar_chain): Likewise.
26619 (scalar_chain::mark_dual_mode_def): Renamed to ...
26620 (dimode_scalar_chain::mark_dual_mode_def): This.
26621 (timode_scalar_chain::mark_dual_mode_def): New function.
26622 (timode_scalar_chain::convert_insn): Likewise.
26623 (dimode_scalar_chain::convert_registers): Likewise.
26624 (scalar_chain::compute_convert_gain): Renamed to ...
26625 (dimode_scalar_chain::compute_convert_gain): This.
26626 (scalar_chain::replace_with_subreg): Renamed to ...
26627 (dimode_scalar_chain::replace_with_subreg): This.
26628 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
26629 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
26630 (scalar_chain::make_vector_copies): Renamed to ...
26631 (dimode_scalar_chain::make_vector_copies): This.
26632 (scalar_chain::convert_reg): Renamed to ...
26633 (dimode_scalar_chain::convert_reg ): This.
26634 (scalar_chain::convert_op): Renamed to ...
26635 (dimode_scalar_chain::convert_op): This.
26636 (scalar_chain::convert_insn): Renamed to ...
26637 (dimode_scalar_chain::convert_insn): This.
26638 (scalar_chain::convert): Call convert_registers.
26639 (convert_scalars_to_vector): Change to scalar_chain pointer to
26640 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
26641 in 32-bit mode. Delete scalar_chain pointer. Call
26642 free_dominance_info in 64-bit mode.
26643 (pass_stv::gate): Remove TARGET_64BIT check.
26644 (ix86_option_override): Put the 64-bit STV pass before the CSE
26645 pass.
26646
26647 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
26648
26649 * dwarf2out.h (struct dw_loc_descr_node): Remove the
26650 dw_loc_frame_offset field.
26651 * dwarf2out.c (new_loc_descr): Likewise.
26652 (resolve_args_picking_1): Turn the VISITED hash set into a
26653 FRAME_OFFSET hash map. Use it to associate a frame offset to
26654 visited nodes. Remove uses of the CHECKING_P macro.
26655 (resolve_args_picking): Update call to resolve_args_picking_1.
26656
26657 2016-04-27 Martin Liska <mliska@suse.cz>
26658
26659 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
26660 (free_loop_data): Release vuses of groups.
26661
26662 2016-04-27 Bin Cheng <bin.cheng@arm.com>
26663
26664 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
26665 instead of redundant use_id and boolean have_use_for.
26666 (struct iv_use): Change sub_id into group_id. Remove field next.
26667 Move fields: related_cands, n_map_members, cost_map and selected
26668 to ...
26669 (struct iv_group): ... here. New structure.
26670 (struct iv_common_cand): Use structure declaration directly.
26671 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
26672 (MAX_CONSIDERED_USES): Rename macro to ...
26673 (MAX_CONSIDERED_GROUPS): ... here.
26674 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
26675 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
26676 (dump_uses): Rename to ...
26677 (dump_groups): ... here. Update all uses.
26678 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
26679 (find_induction_variables): Refactor format of dump information.
26680 (record_sub_use): Delete.
26681 (record_use): Update all uses.
26682 (record_group): New function.
26683 (record_group_use, find_interesting_uses_op): Call above functions.
26684 Update all uses.
26685 (find_interesting_uses_cond): Ditto.
26686 (group_compare_offset): New function.
26687 (split_all_small_groups): Rename to ...
26688 (split_small_address_groups_p): ... here. Update all uses.
26689 (split_address_groups): Update all uses.
26690 (find_interesting_uses): Refactor format of dump information.
26691 (add_candidate_1): Update all uses. Remove redundant check on iv,
26692 base and step.
26693 (add_candidate, record_common_cand): Remove redundant assert.
26694 (add_iv_candidate_for_biv): Update use.
26695 (add_iv_candidate_derived_from_uses): Update all uses.
26696 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
26697 (alloc_use_cost_map): Ditto.
26698 (set_use_iv_cost, get_use_iv_cost): Rename to ...
26699 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
26700 (determine_use_iv_cost_generic): Ditto.
26701 (determine_group_iv_cost_generic): Ditto.
26702 (determine_use_iv_cost_address): Ditto.
26703 (determine_group_iv_cost_address): Ditto.
26704 (determine_use_iv_cost_condition): Ditto.
26705 (determine_group_iv_cost_cond): Ditto.
26706 (determine_use_iv_cost): Ditto.
26707 (determine_group_iv_cost): Ditto.
26708 (set_autoinc_for_original_candidates): Update all uses.
26709 (find_iv_candidates): Update all uses. Refactor dump information.
26710 (determine_use_iv_costs): Ditto.
26711 (determine_iv_costs): Ditto.
26712 (iv_ca_cand_for_use): Rename to ...
26713 (iv_ca_cand_for_group): ... here. Update all uses.
26714 (iv_ca_add_use, iv_ca_add_group): Ditto.
26715 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
26716 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
26717 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
26718 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
26719 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
26720 (create_new_iv, adjust_iv_update_pos): Ditto.
26721 (rewrite_use_address): Delete.
26722 (rewrite_use_address_1): Rename to ...
26723 (rewrite_use_address): ... here.
26724 (rewrite_use_compare): Update all uses.
26725 (rewrite_use): Delete.
26726 (rewrite_uses): Rename to ...
26727 (rewrite_groups): ... here. Update all uses.
26728 (remove_unused_ivs, free_loop_data): Update all uses.
26729 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
26730
26731 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26732
26733 * rtlanal.c (nonzero_bits1): Convert preprocessor check
26734 for WORD_REGISTER_OPERATIONS to runtime check.
26735
26736 2016-04-27 Richard Biener <rguenther@suse.de>
26737
26738 PR ipa/70760
26739 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
26740 aggregate_value_p to determine if a function result is
26741 returned by reference.
26742 (ipa_pta_execute): Functions having their address taken are
26743 not automatically nonlocal.
26744
26745 2016-04-27 Jakub Jelinek <jakub@redhat.com>
26746
26747 PR sanitizer/70683
26748 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
26749 * fold-const.c (operand_equal_p): If flag_checking and
26750 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
26751 and if it returns non-zero, assert iterative_hash_expr on both
26752 args is the same.
26753
26754 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
26755
26756 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
26757
26758 2016-04-27 Nick Clifton <nickc@redhat.com>
26759
26760 PR middle-end/49889
26761 * varasm.c (merge_weak): Generate an error if an attempt is made
26762 to convert a non-weak static function into a weak, public function.
26763
26764 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26765
26766 * params.def (MAX_PARTITION_SIZE): New param.
26767 * doc/invoke.texi: Document lto-max-partition.
26768
26769 2016-04-27 Richard Biener <rguenther@suse.de>
26770
26771 PR ipa/70785
26772 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
26773 function cummulating used_from_other_partition, externally_visible
26774 and force_output from aliases.
26775 (refered_from_nonlocal_var): Likewise.
26776 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
26777 node flags properly.
26778
26779 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
26780
26781 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
26782 (-Wmemset-elt-size): New item.
26783
26784 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
26785
26786 PR ada/70759
26787 * stor-layout.h (internal_reference_types): Delete.
26788 * stor-layout.c (reference_types_internal): Likewise.
26789 (internal_reference_types): Likewise.
26790 (layout_type) <REFERENCE_TYPE>: Adjust.
26791
26792 2016-04-27 Jakub Jelinek <jakub@redhat.com>
26793
26794 PR sanitizer/70683
26795 * tree.h (inchash::add_expr): Add FLAGS argument.
26796 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
26797 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
26798 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
26799 Formatting fix. Adjust recursive calls. For tcc_comparison,
26800 if swap_tree_comparison (code) is smaller than code, hash that
26801 and arguments in the other order. Hash CONVERT_EXPR the same
26802 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
26803 of ADDR_EXPR of decl as the decl itself. Add or remove
26804 OEP_ADDRESS_OF from recursive flags as needed. For
26805 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
26806 operands commutatively and only the third one normally.
26807 For internal CALL_EXPR hash in CALL_EXPR_IFN.
26808
26809 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
26810
26811 * config/rtems.h (LIB_SPEC): Add -latomic.
26812
26813 2016-04-27 Joel Sherrill <joel@rtems.org>
26814
26815 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
26816 xilink.ld and flags not relevant to RTEMS.
26817
26818 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
26819
26820 * toplev.c (backend_init_target): Avoid calling init_reload when using
26821 LRA.
26822
26823 2016-04-26 Jakub Jelinek <jakub@redhat.com>
26824
26825 * reorg.c (try_merge_delay_insns): Declare i and j inside the
26826 for loops rather than one for the whole function.
26827
26828 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
26829
26830 * match.pd (X + CST CMP X): New transformation.
26831
26832 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
26833
26834 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
26835 * fold-const.c (fold_binary_loc): Remove 2 transformations
26836 superseded by match.pd.
26837 * match.pd (x+x -> x*2): Generalize to integers.
26838
26839 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
26840
26841 * config/i386/i386.md (operation on memory peephole): Duplicate an
26842 existing peephole and adapt it to match lea rather than an operation
26843 that clobbers CC.
26844
26845 PR rtl-optimization/57193
26846 * opts.c (default_options_table): Add OPT_frename_registers at -O2
26847 and above.
26848 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
26849
26850 2016-04-26 Bin Cheng <bin.cheng@arm.com>
26851
26852 * tree-if-conv.c (any_pred_load_store): New static variable.
26853 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
26854 any_pred_load_store instead of and_mask_load_store.
26855 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
26856 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
26857 (combine_blocks, tree_if_conversion): Ditto.
26858
26859 2016-04-26 Bin Cheng <bin.cheng@arm.com>
26860
26861 PR tree-optimization/70771
26862 PR tree-optimization/70775
26863 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
26864 virtual PHI nodes. Delete parameter.
26865 (if_convertible_loop_p_1): Delete argument to above function.
26866 (predicate_all_scalar_phis): Delete code handling single-argument
26867 PHIs.
26868 (tree_if_conversion): Mark and update virtual SSA.
26869
26870 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26871
26872 PR target/61821
26873 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
26874 (x86_elf_aligned_common): Rename to ...
26875 (x86_elf_aligned_decl_common): ... this.
26876 Add decl arg. Switch to .lbss for largecomm object. Use
26877 LARGECOMM_SECTION_ASM_OP.
26878 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
26879 renaming.
26880 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
26881 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
26882 Pass new decl arg.
26883 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
26884 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
26885
26886 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26887
26888 PR target/59407
26889 * config/i386/i386.c (SECTION_LARGE): Define.
26890 (x86_64_elf_select_section): Set it for large data/bss sections.
26891 Only clear SECTION_WRITE for .lrodata.
26892 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
26893 data/bss sections.
26894 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
26895 * varasm.c (default_elf_asm_named_section): Grow flagchars.
26896 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
26897 SECTION_MACH_DEP.
26898 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
26899 * doc/tm.texi: Regenerate.
26900
26901 2016-04-26 Jakub Jelinek <jakub@redhat.com>
26902
26903 PR bootstrap/70704
26904 * configure.ac (--enable-checking): Document extra flag, for
26905 non-release builds default to --enable-checking=yes,extra.
26906 If misc checking and extra checking, define CHECKING_P to 2 instead
26907 of 1.
26908 * common.opt (fchecking=): Add.
26909 * doc/invoke.texi (-fchecking=): Document.
26910 * doc/install.texi: Document --enable-checking changes.
26911 * configure: Regenerated.
26912 * config.in: Regenerated.
26913
26914 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26915
26916 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
26917 attribute instead of which_alternative.
26918 * config/i386/sse.md (*mov<mode>_internal): Ditto.
26919 Use EXT_REX_SSE_REG_P where appropriate.
26920
26921 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26922
26923 * config/i386/predicates.md (const0_operand): Do not match
26924 const_wide_int code.
26925 (const1_operand): Ditto.
26926
26927 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26928
26929 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
26930 for SSE constm1 operands and TARGET_AVX512VL.
26931 (*movti_internal): Ditto.
26932 (*mov<mode>_or): Use constm1_operand predicate.
26933 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
26934 for SSE vector_all_ones operands and TARGET_AVX512VL.
26935 * config/i386/predicates.md (constm1_operand): New predicate.
26936 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
26937 emission of constant -1 load.
26938
26939 2016-04-25 Jason Merrill <jason@redhat.com>
26940
26941 * gdbinit.in: Skip is-a.h.
26942
26943 * attribs.c (register_scoped_attributes): Fix logic.
26944 * attribs.h: Declare register_scoped_attributes.
26945
26946 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26947
26948 * config/rs6000/rs6000-builtin.def: Correct pasto error for
26949 stxvd2x and stxvw4x built-in functions.
26950
26951 2016-04-25 DJ Delorie <dj@redhat.com>
26952
26953 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
26954 (ashrhi3): Likewise.
26955 (lshrhi3): Likewise.
26956
26957 2016-04-25 Richard Biener <rguenther@suse.de>
26958
26959 PR tree-optimization/70780
26960 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
26961 wasn't visited yet.
26962 (compute_antic): Mark blocks with abnormal preds as visited as
26963 they have a final empty antic-in solution already.
26964
26965 2016-04-25 Michael Collison <michael.collison@linaro.org>
26966
26967 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
26968
26969 2016-04-25 Michael Collison <michael.collison@linaro.org>
26970
26971 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
26972 mode is VQI to improve mixed mode vectorization.
26973 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
26974 define_insn to match low half of signed vaddw.
26975 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
26976 define_insn to match high half of signed vaddw.
26977 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
26978 define_insn to match low half of unsigned vaddw.
26979 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
26980 define_insn to match high half of unsigned vaddw.
26981 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
26982 (arm_simd_check_vect_par_cnst_half_p): Likewise.
26983 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
26984 for new function.
26985 (arm_simd_check_vect_par_cnst_half_p): Likewise.
26986 * config/arm/predicates.md (vect_par_constant_high): Support
26987 big endian and simplify by calling
26988 arm_simd_check_vect_par_cnst_half
26989 (vect_par_constant_low): Likewise.
26990
26991 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26992
26993 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
26994 predicate for operand 2.
26995
26996 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
26997 H.J. Lu <hongjiu.lu@intel.com>
26998
26999 * config/i386/i386-protos.h (standard_sse_constant_p): Add
27000 machine_mode argument.
27001 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
27002 constm1_rtx operands. For VOIDmode constants, get mode from
27003 pred_mode. Check mode size if the mode is supported by ABI.
27004 (standard_sse_constant_opcode): Do not use standard_constant_p.
27005 Strictly check ABI support for all-ones operands.
27006 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
27007 immediates. Update calls to standard_sse_constant_p.
27008 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
27009 (ix86_rtx_costs): Ditto.
27010 * config/i386/i386.md (*movxi_internal_avx512f): Use
27011 nonimmediate_or_sse_const_operand instead of vector_move_operand.
27012 Use (v,BC) alternative instead of (v,C). Use register_operand
27013 checks instead of MEM_P.
27014 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
27015 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
27016 isa attribute. Use register_operand checks instead of MEM_P.
27017 (*movti_internal): Use nonimmediate_or_sse_const_operand for
27018 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
27019 alternative and corresponding sse2 isa attribute.
27020 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
27021 to standard_sse_constant_p.
27022 (FP constant splitters): Ditto.
27023 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
27024 (C): Ditto.
27025 * config/i386/predicates.md (constm1_operand): Remove.
27026 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
27027 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
27028 vector_all_ones_operand instead of constm1_operand.
27029
27030 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27031
27032 * print-rtl.c (print_rtx_insn_vec): New function.
27033 * print-rtl.h: New prototype.
27034 * store-motion.c (struct st_expr): Make avail_stores a vector.
27035 (st_expr_entry): Adjust.
27036 (free_st_expr_entry): Likewise.
27037 (print_store_motion_mems): Likewise.
27038 (find_moveable_store): Likewise.
27039 (compute_store_table): Likewise.
27040 (delete_store): Likewise.
27041 (build_store_vectors): Likewise.
27042
27043 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27044
27045 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
27046
27047 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27048
27049 * vec.h (vec_safe_contains): New function.
27050 (vec::contains): Likewise.
27051 (vec::begin): Likewise.
27052 (vec::end): Likewise.
27053
27054 2016-04-23 Jakub Jelinek <jakub@redhat.com>
27055
27056 PR sanitizer/70712
27057 * cfgexpand.c (expand_stack_vars): Fix typo.
27058
27059 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27060
27061 * system.h (list, map, set, vector): Include conditionally.
27062 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
27063 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
27064 * ipa-icf.c (INCLUDE_LIST): Define.
27065 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
27066 * config/sh/sh.c (INCLUDE_VECTOR): Define.
27067 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
27068 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
27069 * cp/logic.cc (INCLUDE_LIST): Define.
27070 * fortran/trans-common.c (INCLUDE_MAP): Define.
27071
27072 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27073
27074 * auto-profile.c: Remove <string.h> include.
27075 * ipa-icf-gimple.c: Remove <list> include.
27076 * diagnostic.c: Remove <new> include.
27077 * genmatch.c: Likewise.
27078 * pretty-print.c: Likewise.
27079 * toplev.c: Likewise
27080 * c/c-objc-common.c: Likewise.
27081 * cp/error.c: Likewise.
27082 * fortran/error.c: Likewise.
27083
27084 2016-04-22 Richard Biener <rguenther@suse.de>
27085
27086 * lto-streamer-in.c (input_ssa_names): Do not allocate
27087 GIMPLE_NOP for all SSA names.
27088 * lto-streamer-out.c (output_ssa_names): Do not output
27089 SSA names that should have been released.
27090
27091 2016-04-22 Richard Biener <rguenther@suse.de>
27092
27093 PR tree-optimization/70740
27094 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
27095 VDEF.
27096
27097 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
27098
27099 PR target/70750
27100 * config/i386/predicates.md (call_insn_operand): Replace
27101 sibcall_memory_operand with memory_operand.
27102
27103 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
27104
27105 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
27106 has_single_use() tests.
27107 (register_edge_assert_for_1): Likewise.
27108 (find_assert_locations_1): Check the liveness bitmap instead of
27109 checking has_single_use().
27110
27111 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
27112
27113 PR target/70728
27114 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
27115 Extract AVX-512BW constraint from AVX.
27116
27117 2016-04-21 Richard Biener <rguenther@suse.de>
27118
27119 PR tree-optimization/70725
27120 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
27121 for phi_convertible_by_degenerating_args.
27122 (predicate_all_scalar_phis): Handle single-argument PHIs.
27123
27124 2016-04-21 Richard Biener <rguenther@suse.de>
27125
27126 PR middle-end/70747
27127 * fold-const.c (fold_comparison): Return properly typed
27128 constant boolean.
27129
27130 2016-04-21 Bin Cheng <bin.cheng@arm.com>
27131
27132 PR tree-optimization/70715
27133 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
27134 after expanding BASE using expand_simple_operations.
27135
27136 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
27137
27138 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
27139 New transformations.
27140
27141 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
27142
27143 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
27144
27145 2016-04-20 Jan Hubicka <jh@suse.cz>
27146
27147 * ipa-inline.c (can_inline_edge_p): Pass caller info to
27148 ultiimate_alias_target.
27149 (update_callee_keys): Likewise.
27150 (lookup_recursive_calls): Likewise.
27151 (speculation_useful_p): Likewise.
27152
27153 2016-04-20 Jan Hubicka <jh@suse.cz>
27154
27155 PR ipa/70018
27156 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
27157 (set_nothrow_flag_1): ... this; handle interposition correctly;
27158 recurse on aliases and thunks.
27159 (cgraph_node::set_nothrow_flag): New.
27160 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
27161 functions compiled with non-call exceptions that binds to current
27162 def.
27163 (propagate_nothrow): Be safe WRT interposition.
27164 * cgraph.h (set_nothrow_flag): Update prototype.
27165
27166 2016-04-18 Jan Hubicka <jh@suse.cz>
27167
27168 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
27169 max_loop_iterations_int.
27170 (tree_unswitch_outer_loop): Likewise.
27171
27172 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27173
27174 PR tree-optimization/69489
27175 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
27176 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
27177 Revise dump message.
27178 (if_convertible_bb_p): Remove check on edge count of basic block's
27179 predecessors.
27180
27181 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27182
27183 PR tree-optimization/56625
27184 PR tree-optimization/69489
27185 * tree-data-ref.h (DR_INNERMOST): New macro.
27186 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
27187 hashing struct innermost_loop_behavior.
27188 (ref_DR_map): Remove.
27189 (innermost_DR_map): New map.
27190 (baseref_DR_map): Revise comment.
27191 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
27192 to innermost_DR_map accroding to its innermost loop behavior.
27193 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
27194 to its innermost loop behavior.
27195 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
27196 Add initialization for innermost_DR_map. Record memory reference
27197 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
27198 have innermost loop behavior.
27199 (if_convertible_loop_p): Remove release for ref_DR_map. Release
27200 innermost_DR_map.
27201
27202 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
27203
27204 * config/i386/i386.md (*lea<mode>_general_1): Rename from
27205 *lea_general_1. Use explicit SWI12 mode interator.
27206 (*lea<mode>_general_2): Rename from *lea_general_2.
27207 Use explicit SWI12 mode interator.
27208 (*lea<mode>_general_3): Rename from *lea_general_3.
27209 Use explicit SWI12 mode interator.
27210 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
27211 Use explicit SWI12 mode interator.
27212 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
27213 Use explicit SWI48 mode interator.
27214
27215 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
27216
27217 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
27218 Short-cut unaligned load and store cases. Handle all integer
27219 vector modes.
27220 (ix86_expand_vector_move_misalign): Short-cut unaligned load
27221 and store cases. Call ix86_avx256_split_vector_move_misalign
27222 directly without checking mode class.
27223
27224 2016-04-20 Andrew Pinski <apinski@cavium.com>
27225 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27226
27227 PR target/64971
27228 * config/aarch64/aarch64.md (sibcall): Force call
27229 address to be DImode for ILP32.
27230 (sibcall_value): Likewise.
27231
27232 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
27233
27234 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
27235
27236 2016-04-20 Richard Biener <rguenther@suse.de>
27237
27238 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
27239 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
27240 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
27241 (maybe_push_res_to_seq): Adjust.
27242 * gimple-fold.c (maybe_build_generic_op): Likewise.
27243
27244 2016-04-20 Marek Polacek <polacek@redhat.com>
27245
27246 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
27247 rather than true.
27248
27249 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
27250
27251 * config/i386/sse.md (vec_unpacks_lo_hi): Always
27252 use kmovw to support AVX512F target.
27253
27254 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27255
27256 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
27257
27258 2016-04-20 Marek Polacek <polacek@redhat.com>
27259
27260 PR tree-optimization/70725
27261 * tree-if-conv.c (is_false_predicate): New function.
27262 (predicate_mem_writes): Use it.
27263
27264 2016-04-20 Richard Biener <rguenther@suse.de>
27265
27266 PR tree-optimization/70726
27267 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
27268 shift amounts from a pattern stmt operand.
27269
27270 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27271
27272 PR target/70674
27273 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
27274 stack_restore_from_fpr pattern when restoring r15.
27275 (s390_optimize_prologue): Strip away the memory barrier in the
27276 parallel when trying to get rid of restore insns.
27277 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
27278 definition for loading the stack pointer from an FPR. Compared to
27279 the normal move insn this pattern includes a full memory barrier.
27280
27281 2016-04-19 Jakub Jelinek <jakub@redhat.com>
27282
27283 PR middle-end/70680
27284 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
27285 implicitly linear or lastprivate iterator on the outer context.
27286
27287 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
27288
27289 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
27290 alignment check.
27291 * config/i386/i386.md (ssememalign): Removed.
27292 * config/i386/sse.md: Remove ssememalign attribute from patterns.
27293
27294 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
27295
27296 PR target/69201
27297 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
27298 const short * to __builtin_ia32_loaddquhi512_mask.
27299 (_mm512_maskz_loadu_epi16): Likewise.
27300 (_mm512_mask_storeu_epi16): Pass short * to
27301 __builtin_ia32_storedquhi512_mask.
27302 (_mm512_mask_loadu_epi8): Pass const char * to
27303 __builtin_ia32_loaddquqi512_mask.
27304 (_mm512_maskz_loadu_epi8): Likewise.
27305 (_mm512_mask_storeu_epi8): Pass char * to
27306 __builtin_ia32_storedquqi512_mask.
27307 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
27308 const double * to __builtin_ia32_loadupd512_mask.
27309 (_mm512_mask_loadu_pd): Likewise.
27310 (_mm512_maskz_loadu_pd): Likewise.
27311 (_mm512_storeu_pd): Pass double * to
27312 __builtin_ia32_storeupd512_mask.
27313 (_mm512_mask_storeu_pd): Likewise.
27314 (_mm512_loadu_ps): Pass const float * to
27315 __builtin_ia32_loadups512_mask.
27316 (_mm512_mask_loadu_ps): Likewise.
27317 (_mm512_maskz_loadu_ps): Likewise.
27318 (_mm512_storeu_ps): Pass float * to
27319 __builtin_ia32_storeups512_mask.
27320 (_mm512_mask_storeu_ps): Likewise.
27321 (_mm512_mask_loadu_epi64): Pass const long long * to
27322 __builtin_ia32_loaddqudi512_mask.
27323 (_mm512_maskz_loadu_epi64): Likewise.
27324 (_mm512_mask_storeu_epi64): Pass long long *
27325 to __builtin_ia32_storedqudi512_mask.
27326 (_mm512_loadu_si512): Pass const int * to
27327 __builtin_ia32_loaddqusi512_mask.
27328 (_mm512_mask_loadu_epi32): Likewise.
27329 (_mm512_maskz_loadu_epi32): Likewise.
27330 (_mm512_storeu_si512): Pass int * to
27331 __builtin_ia32_storedqusi512_mask.
27332 (_mm512_mask_storeu_epi32): Likewise.
27333 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
27334 char * to __builtin_ia32_storedquqi256_mask.
27335 (_mm_mask_storeu_epi8): Likewise.
27336 (_mm256_mask_loadu_epi16): Pass const short * to
27337 __builtin_ia32_loaddquhi256_mask.
27338 (_mm256_maskz_loadu_epi16): Likewise.
27339 (_mm_mask_loadu_epi16): Pass const short * to
27340 __builtin_ia32_loaddquhi128_mask.
27341 (_mm_maskz_loadu_epi16): Likewise.
27342 (_mm256_mask_loadu_epi8): Pass const char * to
27343 __builtin_ia32_loaddquqi256_mask.
27344 (_mm256_maskz_loadu_epi8): Likewise.
27345 (_mm_mask_loadu_epi8): Pass const char * to
27346 __builtin_ia32_loaddquqi128_mask.
27347 (_mm_maskz_loadu_epi8): Likewise.
27348 (_mm256_mask_storeu_epi16): Pass short * to.
27349 __builtin_ia32_storedquhi256_mask.
27350 (_mm_mask_storeu_epi16): Pass short * to.
27351 __builtin_ia32_storedquhi128_mask.
27352 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
27353 const double * to __builtin_ia32_loadupd256_mask.
27354 (_mm256_maskz_loadu_pd): Likewise.
27355 (_mm_mask_loadu_pd): Pass onst double * to
27356 __builtin_ia32_loadupd128_mask.
27357 (_mm_maskz_loadu_pd): Likewise.
27358 (_mm256_mask_storeu_pd): Pass double * to
27359 __builtin_ia32_storeupd256_mask.
27360 (_mm_mask_storeu_pd): Pass double * to
27361 __builtin_ia32_storeupd128_mask.
27362 (_mm256_mask_loadu_ps): Pass const float * to
27363 __builtin_ia32_loadups256_mask.
27364 (_mm256_maskz_loadu_ps): Likewise.
27365 (_mm_mask_loadu_ps): Pass const float * to
27366 __builtin_ia32_loadups128_mask.
27367 (_mm_maskz_loadu_ps): Likewise.
27368 (_mm256_mask_storeu_ps): Pass float * to
27369 __builtin_ia32_storeups256_mask.
27370 (_mm_mask_storeu_ps): ass float * to
27371 __builtin_ia32_storeups128_mask.
27372 (_mm256_mask_loadu_epi64): Pass const long long * to
27373 __builtin_ia32_loaddqudi256_mask.
27374 (_mm256_maskz_loadu_epi64): Likewise.
27375 (_mm_mask_loadu_epi64): Pass const long long * to
27376 __builtin_ia32_loaddqudi128_mask.
27377 (_mm_maskz_loadu_epi64): Likewise.
27378 (_mm256_mask_storeu_epi64): Pass long long * to
27379 __builtin_ia32_storedqudi256_mask.
27380 (_mm_mask_storeu_epi64): Pass long long * to
27381 __builtin_ia32_storedqudi128_mask.
27382 (_mm256_mask_loadu_epi32): Pass const int * to
27383 __builtin_ia32_loaddqusi256_mask.
27384 (_mm256_maskz_loadu_epi32): Likewise.
27385 (_mm_mask_loadu_epi32): Pass const int * to
27386 __builtin_ia32_loaddqusi128_mask.
27387 (_mm_maskz_loadu_epi32): Likewise.
27388 (_mm256_mask_storeu_epi32): Pass int * to
27389 __builtin_ia32_storedqusi256_mask.
27390 (_mm_mask_storeu_epi32): Pass int * to
27391 __builtin_ia32_storedqusi128_mask.
27392 * config/i386/i386-builtin-types.def (PCSHORT): New.
27393 (PINT64): Likewise.
27394 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
27395 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
27396 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
27397 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
27398 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
27399 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
27400 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
27401 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
27402 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
27403 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
27404 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
27405 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
27406 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
27407 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
27408 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
27409 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
27410 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
27411 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
27412 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
27413 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
27414 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
27415 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
27416 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
27417 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
27418 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
27419 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
27420 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
27421 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
27422 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
27423 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
27424 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
27425 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
27426 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
27427 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
27428 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
27429 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
27430 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
27431 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
27432 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
27433 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
27434 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
27435 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
27436 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
27437 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
27438 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
27439 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
27440 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
27441 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
27442 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
27443 use UNSPEC_STOREU.
27444 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
27445 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
27446 load nor store.
27447 (ix86_expand_vector_move_misalign): Likewise.
27448 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
27449 to scalar function prototype for unaligned load/store builtins.
27450 (ix86_expand_special_args_builtin): Updated.
27451 * config/i386/sse.md (UNSPEC_LOADU): Removed.
27452 (UNSPEC_STOREU): Likewise.
27453 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
27454 (VI_ULOADSTORE_F_AVX512VL): Likewise.
27455 (ssescalarsize): Handle V4TI, V2TI and V1TI.
27456 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
27457 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
27458 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
27459 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
27460 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
27461 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
27462 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
27463 (<avx512>_storedqu<mode>_mask): Likewise.
27464 (*sse4_2_pcmpestr_unaligned): Likewise.
27465 (*sse4_2_pcmpistr_unaligned): Likewise.
27466 (*mov<mode>_internal): Renamed to ...
27467 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
27468 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
27469 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
27470 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
27471
27472 2016-04-19 Richard Biener <rguenther@suse.de>
27473
27474 PR tree-optimization/70171
27475 * tree-ssa-phiprop.c: Include stor-layout.h.
27476 (phiprop_insert_phi): Handle the aggregate copy case.
27477 (propagate_with_phi): Likewise.
27478
27479 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
27480
27481 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
27482 instead of simplify_gen_subreg (... , 0).
27483 (ix86_delegitimize_address): Ditto.
27484 (ix86_split_divmod): Ditto.
27485 (ix86_split_copysign_const): Ditto.
27486 (ix86_split_copysign_var): Ditto.
27487 (ix86_expand_args_builtin): Ditto.
27488 (ix86_expand_round_builtin): Ditto.
27489 (ix86_expand_special_args_builtin): Ditto.
27490 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
27491 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
27492 (udivmodqi4): Ditto.
27493 (absneg splitters): Ditto.
27494 (*jcc_bt<mode>_1): Ditto.
27495
27496 2016-04-19 Richard Biener <rguenther@suse.de>
27497
27498 PR tree-optimization/70724
27499 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
27500 restoring out from ...
27501 (free_scc_vn): ... here.
27502 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
27503 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
27504 tail merging.
27505 (pass_fre::execute): Restore SSA info.
27506
27507 2016-04-19 Richard Biener <rguenther@suse.de>
27508
27509 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
27510 * gimple-walk.c (walk_gimple_op): Initialize it.
27511 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
27512 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
27513 remapping SSA names of defs.
27514 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
27515 adjustment.
27516
27517 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
27518
27519 PR middle-end/70689
27520 * lra-constraints.c (equiv_substition_p): New.
27521 (process_alt_operands): Use it.
27522 (swap_operands): Swap it.
27523 (curr_insn_transform): Update it.
27524
27525 2016-04-18 Michael Matz <matz@suse.de>
27526
27527 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
27528 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
27529 * tree-core.h (tree_type_common.align): Use bit-field.
27530 (tree_type_common.spare): New.
27531 (tree_decl_common.off_align): Make smaller.
27532 (tree_decl_common.align): Use bit-field.
27533
27534 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
27535 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
27536 (scan_sharing_clauses): Ditto.
27537 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
27538 (omp_finish_file): Ditto.
27539 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
27540 (layout_decl): Ditto.
27541 (relayout_decl): Ditto.
27542 (finalize_record_size): Use SET_TYPE_ALIGN.
27543 (finalize_type_size): Ditto.
27544 (finish_builtin_struct): Ditto.
27545 (layout_type): Ditto.
27546 (initialize_sizetypes): Ditto.
27547 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
27548 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
27549 (lookup_field_for_decl): Use SET_DECL_ALIGN.
27550 (get_chain_field): Ditto.
27551 (get_trampoline_type): Ditto.
27552 (get_nl_goto_field): Ditto.
27553 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27554 SET_DECL_ALIGN.
27555 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
27556 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
27557 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
27558 (build_qualified_type): Use SET_TYPE_ALIGN.
27559 (build_aligned_type, build_range_type_1): Ditto.
27560 (build_atomic_base): Ditto.
27561 (build_common_tree_nodes): Ditto.
27562 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
27563 (expand_one_stack_var_at): Ditto.
27564 * coverage.c (build_var): Use SET_DECL_ALIGN.
27565 * except.c (init_eh): Ditto.
27566 * function.c (assign_parm_setup_block): Ditto.
27567 * symtab.c (increase_alignment_1): Ditto.
27568 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
27569 * tree-vect-stmts.c (ensure_base_align): Ditto.
27570 * varasm.c (align_variable): Ditto.
27571 (assemble_variable): Ditto.
27572 (build_constant_desc): Ditto.
27573 (output_constant_def_contents): Ditto.
27574
27575 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
27576 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
27577 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
27578 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
27579 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
27580
27581 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
27582
27583 PR target/70708
27584 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
27585 replace %vmovsd with "%vmovq".
27586 (vec_concatv2df): Likewise.
27587
27588 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
27589
27590 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
27591 (*vec_extractv2si_0): Ditto.
27592 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
27593 (zero_extended_scalar_load_operand splitters): Ditto.
27594 (vec_extract splitters): Ditto.
27595 (*vec_extractv4si_0_zext): Ditto.
27596 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
27597 and lowpart_subreg.
27598 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
27599 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
27600 (*sse4_1_extractps): Use lowpart_subreg.
27601 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
27602
27603 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27604
27605 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
27606 gld requirements.
27607 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
27608 Mention Solaris 11 packaging changes.
27609 Update gas and gld requirements.
27610 Remove reference to pre-Solaris 10 bug.
27611 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
27612 systems and bugs.
27613 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
27614 with cc.
27615
27616 2016-04-17 Jan Hubicka <jh@suse.cz>
27617
27618 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
27619 max_loop_iterations_int.
27620
27621 2016-04-18 Richard Biener <rguenther@suse.de>
27622
27623 PR tree-optimization/43434
27624 * tree-ssa-structalias.c (struct vls_data): New.
27625 (visit_loadstore): Handle all pointer-based accesses.
27626 (compute_dependence_clique): Compute a bitmap of restrict tags
27627 assigned bases and pass it to visit_loadstore.
27628
27629 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
27630
27631 PR target/70711
27632 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
27633 armv8.1-a and armv8.1-a+crc.
27634
27635 2016-04-18 Richard Biener <rguenther@suse.de>
27636
27637 PR tree-optimization/70701
27638 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
27639 references after translating through a memcpy.
27640
27641 2016-04-18 Richard Biener <rguenther@suse.de>
27642
27643 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
27644 (compute_antic): ... here. For partial antic use regular
27645 postorder and scrap iteration.
27646 (compute_partial_antic_aux): Remove unused return value.
27647 (init_pre): Do not allocate postorder.
27648 (fini_pre): Do not free postorder.
27649
27650 2016-04-18 Richard Biener <rguenther@suse.de>
27651
27652 PR middle-end/37870
27653 * expmed.c (extract_bit_field_1): Remove broken case
27654 using a wider MODE_INT mode.
27655
27656 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
27657
27658 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
27659 unless compiling with at least GCC-4.8.
27660
27661 2016-04-17 Jan Hubicka <jh@suse.cz>
27662
27663 PR bootstrap/70706
27664 * graphite.c (graphite_finalize): Update call to
27665 tree_estimate_probability.
27666 * predict.h (tree_estimate_probability): Update prototype.
27667
27668 2016-04-17 Jan Hubicka <jh@suse.cz>
27669
27670 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
27671 (tree_estimate_probability): Likewise.
27672 (pass_profile::execute): Update.
27673 (report_predictor_hitrates): New function.
27674 * profile.c (compute_branch_probabilities): Use it.
27675 * predict.h (report_predictor_hitrates): Declare.
27676
27677 2016-04-17 Jan Hubicka <jh@suse.cz>
27678
27679 PR ipa/70018
27680 * cgraph.h (cgraph_node::set_const_flag,
27681 cgraph_node::set_pure_flag): Update prototype to return bool;
27682 update comment.
27683 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
27684 of interposable symbol are interposable, too.
27685 (cgraph_set_const_flag_1): Rename to ...
27686 (set_const_flag_1): ... this one; change to self recursive function
27687 instead of call_for_symbol_thunks_and_aliases. Handle correctly
27688 clearnig the flag in all variants and also virtual thunks of const
27689 functions are pure; track if any change was done.
27690 (cgraph_node::set_const_flag): Update.
27691 (struct set_pure_flag_info): New struct.
27692 (cgraph_set_pure_flag_1): Rename to ...
27693 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
27694 rather than pointer encoded flags; track if any changes was done;
27695 handle correctly clearning flag and setting flag of aliases already
27696 declared const.
27697 (cgraph_node::set_pure_flag): Update.
27698 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
27699
27700 2016-04-17 Tom de Vries <tom@codesourcery.com>
27701
27702 PR other/70433
27703 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
27704 backslash in label.
27705
27706 2016-04-17 Tom de Vries <tom@codesourcery.com>
27707
27708 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
27709 '{}<> ' as escape-for-record.
27710
27711 2016-04-17 Tom de Vries <tom@codesourcery.com>
27712
27713 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
27714 structure.
27715
27716 2016-04-17 Tom de Vries <tom@codesourcery.com>
27717
27718 PR other/70185
27719 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
27720 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
27721 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
27722 * passes.c (finish_optimization_passes): Only call
27723 finish_graph_dump_file if dfi->graph_dump_initialized.
27724 (execute_function_dump, pass_init_dump_file): Use
27725 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
27726
27727 2016-04-17 Tom de Vries <tom@codesourcery.com>
27728
27729 PR tree-optimization/70256
27730 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
27731 (debug_varmap): New function.
27732
27733 2016-04-17 Tom de Vries <tom@codesourcery.com>
27734
27735 PR other/70183
27736 * passes.c (pass_manager::register_pass): Propagate pflags.
27737
27738 2016-04-17 Tom de Vries <tom@codesourcery.com>
27739
27740 PR other/68875
27741 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
27742 * passes.c (pass_manager::pass_manager): Declare and init p_start in
27743 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
27744 check if it's equal to p_start.
27745 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
27746
27747 2016-04-15 Jan Hubicka <jh@suse.cz>
27748
27749 PR ipa/70018
27750 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
27751 function does not bind to current def.
27752 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
27753 handle conservatively calls to functions that does not need to bind
27754 to current def.
27755 (check_call): Update call of worse_state.
27756 (ignore_edge_for_nothrow): Update.
27757 (ignore_edge_for_pure_const): Likewise.
27758 (propagate_pure_const): Update calls to worse_state.
27759 (skip_function_for_local_pure_const): Reformat comments.
27760
27761 2016-04-15 Jan Hubicka <jh@suse.cz>
27762
27763 PR ipa/70018
27764 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
27765 (cgraph_node::function_symbol): Likewise.
27766 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
27767 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
27768 (symtab_node::ultimate_alias_target): Add REF parameter.
27769 (symtab_node::binds_to_current_def_p): Declare.
27770 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
27771 (cgraph_node::function_symbol): Likewise.
27772 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
27773 (cgraph_node::get_availability): Likewise.
27774 (cgraph_edge::binds_to_current_def_p): New inline function.
27775 (varpool_node::get_availability): Add REF parameter.
27776 (varpool_node::ultimate_alias_target): Likewise.
27777 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
27778 (symtab_node::binds_to_current_def_p): Likewise.
27779 * varpool.c (varpool_node::get_availability): Likewise.
27780
27781 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
27782
27783 PR target/70662
27784 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
27785 Fix mode size check.
27786
27787 2016-04-15 Jakub Jelinek <jakub@redhat.com>
27788
27789 * BASE-VER: Set to 7.0.0.
27790
27791 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
27792
27793 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
27794
27795 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27796
27797 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
27798 architecture revisions.
27799
27800 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
27801
27802 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
27803 * config/i386/i386.c (ix86_using_red_zone): No longer static.
27804 * config/i386/i386.md (stack decrement to push peepholes): Guard
27805 with !x86_using_red_zone ().
27806
27807 2016-04-15 Jakub Jelinek <jakub@redhat.com>
27808
27809 PR c++/70675
27810 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
27811 to dump_generic_node.
27812 (NIY): Pass also flags to do_niy.
27813
27814 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
27815
27816 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
27817 (simd_clone_vector_of_formal_parm_types)
27818 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
27819 (simd_clone_mangle, simd_clone_create)
27820 (simd_clone_adjust_return_type, create_tmp_simd_array)
27821 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
27822 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
27823 (ipa_simd_modify_function_body, simd_clone_linear_addend)
27824 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
27825 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
27826 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
27827 * omp-simd-clone.c: ... this new file.
27828 (simd_clone_vector_of_formal_parm_types): Make it static.
27829 * Makefile.in (OBJS): Add omp-simd-clone.o.
27830
27831 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
27832
27833 PR target/70662
27834 * config/i386/sse.md: Use proper memory operand modifiers.
27835
27836
27837 2016-04-15 Richard Biener <rguenther@suse.de>
27838 Alan Modra <amodra@gmail.com>
27839
27840 PR tree-optimization/70130
27841 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
27842 when alignment stays not the same and no not use the realign
27843 scheme then.
27844
27845 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27846
27847 PR target/70669
27848 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
27849 direct move handlers for KFmode. Change TFmode handlers test from
27850 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
27851
27852 2016-04-14 Jakub Jelinek <jakub@redhat.com>
27853
27854 PR c++/70594
27855 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
27856 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
27857 (inlined_polymorphic_ctor_dtor_block_p): Use it.
27858 * tree-ssa-live.c (remove_unused_scope_block_p): When
27859 in_ctor_dtor_block, avoid discarding not just BLOCKs with
27860 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
27861 block_ultimate_origin is FUNCTION_DECL.
27862 (remove_unused_locals): If current_function_decl is
27863 polymorphic_ctor_dtor_p, pass initial true to
27864 remove_unused_scope_block_p' is_ctor_dtor_block.
27865
27866 2016-04-14 Martin Sebor <msebor@redhat.com>
27867
27868 PR c++/69517
27869 PR c++/70019
27870 PR c++/70588
27871 * doc/extend.texi (Variable Length): Revert.
27872
27873 2016-04-14 Marek Polacek <polacek@redhat.com>
27874 Jan Hubicka <hubicka@ucw.cz>
27875
27876 PR c++/70029
27877 * tree.c (verify_type): Disable the canonical type of main variant
27878 check.
27879
27880 2016-04-14 Jason Merrill <jason@redhat.com>
27881
27882 * cfgexpand.c, expr.c: Revert previous change.
27883
27884 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
27885
27886 PR middle-end/70643
27887 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
27888 when building a mem ref for the incoming reduction variable.
27889
27890 2016-04-14 Richard Biener <rguenther@suse.de>
27891
27892 PR tree-optimization/70614
27893 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
27894 loop if the evolution dropped to chrec_dont_know.
27895 (interpret_condition_phi): Likewise.
27896
27897 2016-04-14 Richard Biener <rguenther@suse.de>
27898
27899 PR tree-optimization/70623
27900 * tree-ssa-pre.c (changed_blocks): Make global ...
27901 (compute_antic): ... local here. Move and fix worklist
27902 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
27903 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
27904 worklist handling, dump when ANTIC_IN changed.
27905 (compute_partial_antic_aux): Remove worklist handling.
27906 (init_pre): Do not compute post dominators. Add a comment about
27907 the CFG order chosen.
27908 (fini_pre): Do not free post dominators.
27909
27910 2016-04-13 Martin Sebor <msebor@redhat.com>
27911
27912 PR c++/69517
27913 PR c++/70019
27914 PR c++/70588
27915 * doc/extend.texi (Variable Length): Document C++ specifics.
27916
27917 2016-04-13 Jakub Jelinek <jakub@redhat.com>
27918
27919 PR c++/70641
27920 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
27921 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
27922 eh edges have been purged.
27923
27924 PR c++/70594
27925 * tree-sra.c (create_access_replacement,
27926 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
27927 gets fancy name.
27928 * tree-pretty-print.c (dump_fancy_name): New function.
27929 (dump_decl_name, dump_generic_node): Use it.
27930
27931 2016-04-13 Jason Merrill <jason@redhat.com>
27932
27933 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
27934 * expr.c (expand_expr_real_1): Likewise.
27935
27936 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
27937
27938 * config/i386/i386.md (kunpckhi): Swap operands.
27939 (kunpcksi): Likewise.
27940 (kunpckdi): Likewise.
27941 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
27942 (vec_pack_trunc_<mode>): Likewise.
27943
27944 2016-04-13 Jakub Jelinek <jakub@redhat.com>
27945
27946 PR debug/70628
27947 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
27948
27949 PR middle-end/70633
27950 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
27951 gimplification turns some element into non-constant.
27952
27953 PR debug/70628
27954 * rtl.h (convert_memory_address_addr_space_1): New prototype.
27955 * explow.c (convert_memory_address_addr_space_1): No longer static,
27956 add NO_EMIT argument and don't call convert_modes if true, pass
27957 it down recursively, remove break after return.
27958 (convert_memory_address_addr_space): Adjust caller.
27959 * simplify-rtx.c (simplify_unary_operation_1): Call
27960 convert_memory_address_addr_space_1 instead of convert_memory_address,
27961 if it returns NULL, don't simplify.
27962
27963 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
27964
27965 PR target/70630
27966 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
27967
27968 2016-04-12 Jakub Jelinek <jakub@redhat.com>
27969
27970 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
27971 Bump the upper SIMDLEN limits, so that if the return type or
27972 characteristic type if the return type is void can be passed in
27973 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
27974 allowed.
27975
27976 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
27977
27978 PR target/70640
27979 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
27980 Do not use "=" constraint on an input constraint.
27981 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
27982 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
27983 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
27984 generates (neg (abs ...)) instead of (abs ...).
27985
27986 2016-04-12 Jakub Jelinek <jakub@redhat.com>
27987
27988 PR rtl-optimization/70596
27989 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
27990 just invalidate LRA data and reset them. Adjust dump wording.
27991
27992 2016-04-12 Martin Liska <mliska@suse.cz>
27993
27994 Revert
27995 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
27996
27997 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
27998 estimates here.
27999 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
28000 max_loop_iterations_int.
28001 (tree_unswitch_outer_loop): Likewise.
28002 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
28003 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
28004
28005 2016-04-12 Tom de Vries <tom@codesourcery.com>
28006
28007 PR tree-optimization/68756
28008 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
28009 instead of new_name.
28010
28011 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28012
28013 PR tree-optimization/70602
28014 * tree-sra.c (generate_subtree_copies): Don't write anything into
28015 constant pool decls.
28016
28017 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
28018 regardless whether there are depend clauses or not.
28019
28020 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28021
28022 PR target/70381
28023 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
28024 target attribute and pragma from changing the -mfloat128
28025 and -mfloat128-hardware options.
28026
28027 * doc/extend.texi (Additional Floating Types): Document PowerPC
28028 __float128 restrictions.
28029
28030 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28031
28032 PR target/70133
28033 * config/aarch64/driver-aarch64.c
28034 (aarch64_get_extension_string_for_isa_flags): New.
28035 (arch_extension): Rename to...
28036 (aarch64_arch_extension): ...This.
28037 (ext_to_feat_string): Rename to...
28038 (aarch64_extensions): ...This.
28039 (aarch64_core_data): Keep track of architecture extension flags.
28040 (cpu_data): Rename to...
28041 (aarch64_cpu_data): ...This.
28042 (aarch64_arch_driver_info): Keep track of architecture extension
28043 flags.
28044 (get_arch_name_from_id): Rename to...
28045 (get_arch_from_id): ...This, change return type.
28046 (host_detect_local_cpu): Update and reformat for renames, handle
28047 extensions through common infrastructure.
28048
28049 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28050
28051 PR target/70133
28052 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
28053 track of a canonical flag name.
28054 (all_extensions): Likewise.
28055 (arch_to_arch_name): Also track extension flags enabled by the arch.
28056 (all_architectures): Likewise.
28057 (aarch64_parse_extension): Move to here.
28058 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
28059 rework.
28060 (aarch64_rewrite_selected_cpu): Update for above change.
28061 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
28062 are handled, such that the single explicit value enabled by an
28063 extension is kept seperate from the implicit values it also enables.
28064 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
28065 to here.
28066 (aarch64_parse_extension): New.
28067 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
28068 here to config/aarch64/aarch64-protos.h.
28069 (aarch64_parse_extension): Move from here to
28070 common/config/aarch64/aarch64-common.c.
28071 (aarch64_option_print): Update.
28072 (aarch64_declare_function_name): Likewise.
28073 (aarch64_start_file): Likewise.
28074 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
28075 the canonical flag for extensions.
28076 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
28077 flags.
28078
28079 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28080
28081 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
28082 AARCH64_FL_CRC.
28083
28084 2016-04-09 Tom de Vries <tom@codesourcery.com>
28085
28086 PR tree-optimization/68953
28087 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
28088 first to last subscript.
28089
28090 2016-04-09 Jakub Jelinek <jakub@redhat.com>
28091
28092 PR tree-optimization/70586
28093 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
28094 for any calls.
28095
28096 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
28097
28098 PR lto/70289
28099 PR ipa/70348
28100 PR tree-optimization/70373
28101 PR middle-end/70533
28102 PR middle-end/70534
28103 PR middle-end/70535
28104 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
28105 clauses for acc parallel reductions as necessary. Error on those
28106 that are private.
28107 * omp-low.c (scan_sharing_clauses): Don't install variables which
28108 are used in acc parallel reductions.
28109 (lower_rec_input_clauses): Remove dead code.
28110 (lower_oacc_reductions): Add support for reference reductions.
28111 (lower_reduction_clauses): Remove dead code.
28112 (lower_omp_target): Don't remap variables appearing in acc parallel
28113 reductions.
28114 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
28115
28116 2016-04-08 Jakub Jelinek <jakub@redhat.com>
28117
28118 PR middle-end/70593
28119 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
28120 with multiple SSA_NAME defs, force the outputs other than first
28121 to be live before calling live_track_process_def on each output.
28122
28123 PR rtl-optimization/70574
28124 * fwprop.c (forward_propagate_and_simplify): Don't add
28125 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
28126 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
28127 paradoxical subregs within *loc.
28128
28129 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
28130
28131 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
28132 -ftree-parallelize-loops={0,1}.
28133 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
28134 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
28135 * config/ia64/hpux.h (LIB_SPEC): Likewise.
28136 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28137 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
28138
28139 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
28140
28141 PR sanitizer/70541
28142 * asan.c (instrument_derefs): If we get unknown location, extract it
28143 with EXPR_LOCATION.
28144 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
28145
28146 2016-04-08 Tom de Vries <tom@codesourcery.com>
28147
28148 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
28149 implicit firstprivate clause.
28150
28151 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28152
28153 PR target/70566
28154 * config/arm/thumb2.md (tst + branch-> lsls + branch
28155 peephole below *orsi_not_shiftsi_si): Require that condition
28156 register is dead after the peephole.
28157 (second peephole after the above): Likewise.
28158
28159 2016-04-08 Alan Modra <amodra@gmail.com>
28160
28161 PR target/70117
28162 * builtins.c (fold_builtin_classify): For IBM extended precision,
28163 look at just the high-order double to test for NaN.
28164 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
28165 test just the high double for Inf but both doubles for subnormal
28166 limit.
28167
28168 2016-04-07 Jakub Jelinek <jakub@redhat.com>
28169
28170 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
28171 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
28172 node->simdclone->mask_mode != VOIDmode masks.
28173 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
28174 earlier, use it instead of node->simdclone.
28175 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28176 Set clonei->mask_mode.
28177
28178 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
28179
28180 PR c/70436
28181 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
28182 Pass it through to cp_parser_already_scoped_statement.
28183 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
28184 it through to cp_parser_statement.
28185 (cp_parser_statement): Pass IF_P through to
28186 cp_parser_iteration_statement.
28187 (cp_parser_pragma): Adjust call to
28188 cp_parser_iteration_statement.
28189
28190 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
28191
28192 PR c/70436
28193 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
28194 resolve a future -Wparentheses warning.
28195 * omp-low.c (scan_sharing_clauses): Likewise.
28196 * tree-parloops.c (eliminate_local_variables): Likewise.
28197
28198 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
28199
28200 PR rtl-optimization/70398
28201 * lra-constraints.c (process_address_1): Check zero scale and code
28202 for reloading with zero scale.
28203
28204 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
28205
28206 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
28207 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
28208
28209 2016-04-06 Jakub Jelinek <jakub@redhat.com>
28210
28211 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28212 Add support for AVX512F clones, include them by default for
28213 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
28214 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
28215 up to 128.
28216
28217 PR middle-end/70550
28218 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
28219 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
28220 firstprivate clauses.
28221 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
28222 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
28223 (lower_omp_target): Set TREE_NO_WARNING for
28224 non-addressable possibly uninitialized vars which are copied into
28225 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
28226
28227 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
28228
28229 * config/pa/predicates.md (integer_store_memory_operand): Accept
28230 REG+D operands with a large offset when reload_in_progress is true.
28231 (floating_point_store_memory_operand): Likewise.
28232
28233 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28234
28235 PR c++/70336
28236 * match.pd (nested int casts): Limit to GIMPLE.
28237
28238 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
28239
28240 PR ipa/66223
28241 * ipa-devirt.c (maybe_record_node): Fix comment; use
28242 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
28243
28244 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28245
28246 PR rtl-optimization/70542
28247 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
28248 if there are any uses other than insn or debug insns.
28249
28250 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
28251 Jakub Jelinek <jakub@redhat.com>
28252
28253 PR tree-optimization/70509
28254 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
28255 Shift HOST_WIDE_INT_1U instead of 1.
28256
28257 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
28258
28259 PR tree-optimization/70509
28260 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
28261 of the vector base type for index.
28262
28263 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
28264
28265 PR target/70510
28266 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
28267
28268 2016-04-05 Richard Biener <rguenther@suse.de>
28269
28270 PR tree-optimization/70526
28271 * tree-sra.c (build_ref_for_offset): Use prev_base to
28272 extract the alias pointer type.
28273
28274 2016-04-05 Richard Biener <rguenther@suse.de>
28275
28276 * dse.c (struct store_info): Remove alias_set member.
28277 (struct read_info_type): Likewise.
28278 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
28279 spill_deleted, clear_alias_set_lookup): Remove.
28280 (get_group_info): Remove dead base == NULL_RTX case.
28281 (dse_step0): Remove initialization of removed variables.
28282 (delete_dead_store_insn): Reomve alias set dumping.
28283 (free_read_records): Remove alias_set handling.
28284 (canon_address): Remove alias_set_out parameter.
28285 (record_store): Remove spill_alias_set, it's always zero.
28286 (check_mem_read_rtx): Likewise.
28287 (dse_step2): Rename from ...
28288 (dse_step2_nospill): ... this. Adjust.
28289 (scan_stores): Rename from ...
28290 (scan_stores_nospill): ... this.
28291 (scan_reads): Rename from ...
28292 (scan_reads_nospill): ... this.
28293 (scan_stores_spill, scan_reads_spill): Remove.
28294 (dse_step3_scan): Remove for_spills argument which is always false.
28295 (dse_step3): Likewise.
28296 (dse_step5): Rename from ...
28297 (dse_step5_nospill): ... this. Remove alias_set handling.
28298 (rest_of_handle_dse): Adjust.
28299
28300 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28301
28302 PR target/70525
28303 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
28304 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
28305 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
28306 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
28307
28308 2016-04-05 Richard Biener <rguenther@suse.de>
28309
28310 PR middle-end/70499
28311 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
28312 non-register type temporaries into SSA.
28313
28314 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
28315
28316 PR ipa/66223
28317 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
28318 calls when sanitizing.
28319 (possible_polymorphic_call_target_p): Fix formatting.
28320
28321 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28322 Jakub Jelinek <jakub@redhat.com>
28323
28324 PR middle-end/70457
28325 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
28326 to ensure a call statement is compatible with a built-in's
28327 prototype.
28328 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
28329 Likewise.
28330
28331 2016-04-04 Richard Biener <rguenther@suse.de>
28332
28333 PR rtl-optimization/70484
28334 * rtl.h (canon_output_dependence): Declare.
28335 * alias.c (canon_output_dependence): New function.
28336 * dse.c (record_store): Use canon_output_dependence rather
28337 than canon_true_dependence.
28338
28339 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28340
28341 PR ipa/68881
28342 * cgraph.h (symtab_node::copy_visibility_from): New function.
28343 * symtab.c (symtab_node::copy_visibility_from): New function.
28344 * ipa-visibility.c (optimize_weakref): New function.
28345 (function_and_variable_visibility): Use it.
28346
28347 2016-04-04 Martin Liska <mliska@suse.cz>
28348
28349 PR hsa/70402
28350 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
28351 value that is really in range handled by SBR instruction.
28352 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
28353 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
28354 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
28355
28356 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
28357
28358 PR target/70416
28359 PR target/67391
28360 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
28361 set, but not for SP_REG operands.
28362
28363 2016-04-02 Martin Sebor <msebor@redhat.com>
28364
28365 PR c++/67376
28366 * fold-const.c (maybe_nonzero_address): New function.
28367 (fold_comparison): Call it. Fold equality and relational
28368 expressions involving null pointers.
28369 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
28370
28371 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
28372
28373 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
28374 the "Y" constraint (scalar FP 0.0 immediate).
28375
28376 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
28377 Add the "const_double" to the list of operand constraints.
28378
28379 2016-04-01 Jakub Jelinek <jakub@redhat.com>
28380
28381 PR rtl-optimization/70467
28382 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
28383 If low word of the last operand is 0, just emit addition/subtraction
28384 for the high word.
28385
28386 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28387
28388 PR target/70404
28389 * config/s390/s390.c (s390_expand_insv): Check for everything
28390 constant instead of just VOIDmode stuff.
28391
28392 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28393
28394 PR target/70496
28395 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
28396
28397 2016-04-01 Nathan Sidwell <nathan@acm.org>
28398
28399 * tree.def (TRY_CATCH_EXPR): Correct documentation.
28400
28401 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
28402
28403 PR rtl-optimization/70461
28404 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
28405 is necessary.
28406
28407 2016-03-31 Martin Liska <mliska@suse.cz>
28408
28409 PR hsa/70399
28410 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
28411 a tree value or an immediate integer value to a buffer
28412 that is eventually copied to a BRIG section.
28413 (emit_immediate_operand): Call the function here.
28414 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
28415 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
28416 of class' fields that are removed.
28417 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
28418 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
28419 m_brig_repr_size fields.
28420
28421 2016-03-31 Martin Liska <mliska@suse.cz>
28422
28423 PR hsa/70391
28424 * hsa-gen.c (hsa_function_representation::update_dominance): New
28425 function.
28426 (convert_addr_to_flat_segment): Likewise.
28427 (gen_hsa_memory_set): New alignment argument.
28428 (gen_hsa_ctor_assignment): Likewise.
28429 (gen_hsa_insns_for_single_assignment): Provide alignment
28430 to gen_hsa_ctor_assignment.
28431 (gen_hsa_insns_for_direct_call): Add new argument.
28432 (expand_lhs_of_string_op): New function.
28433 (expand_string_operation_builtin): Likewise.
28434 (expand_memory_copy): New function.
28435 (expand_memory_set): New function.
28436 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
28437 (convert_switch_statements): Change signature.
28438 (generate_hsa): Use a return value of the function.
28439 (pass_gen_hsail::execute): Do not call
28440 convert_switch_statements here.
28441 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
28442 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
28443 (hsa_function_representation::update_dominance): New function.
28444
28445 2016-03-31 Martin Liska <mliska@suse.cz>
28446
28447 PR hsa/70391
28448 * hsa-brig.c (emit_directive_variable): Emit alignment
28449 according to hsa_symbol::m_align.
28450 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
28451 (dump_hsa_symbol): Dump alignment of HSA symbols.
28452 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
28453 (gen_hsa_addr_with_align): New function.
28454 (hsa_bitmemref_alignment): Use newly added function.
28455 (gen_hsa_insns_for_load): Likewise.
28456 (gen_hsa_insns_for_store): Likewise.
28457 (gen_hsa_memory_copy): New argument added.
28458 (gen_hsa_insns_for_single_assignment): Respect
28459 alignment for assignments processed via gen_hsa_memory_copy.
28460 (gen_hsa_insns_for_direct_call): Likewise.
28461 (gen_hsa_insns_for_return): Likewise.
28462 (gen_function_def_parameters): Set default alignment.
28463 * hsa.c (hsa_object_alignment): New function.
28464 (hsa_byte_alignment): Pasted function.
28465 * hsa.h (hsa_symbol::m_align): New field.
28466
28467 2016-03-31 Bin Cheng <bin.cheng@arm.com>
28468
28469 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
28470 scratch field for goto case.
28471
28472 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
28473
28474 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
28475
28476 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
28477
28478 PR target/70442
28479 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
28480 (scalar_chain::convert_insn): Call convert_op for reg
28481 moves to handle undefined registers.
28482
28483 2016-03-31 Nathan Sidwell <nathan@acm.org>
28484
28485 PR c++/70393
28486 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
28487 Assert we don't want to move backwards.
28488
28489 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
28490
28491 PR target/70453
28492 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
28493
28494 2016-03-31 Jakub Jelinek <jakub@redhat.com>
28495
28496 PR rtl-optimization/70460
28497 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
28498 with operand from REG_LABEL_OPERAND, instead substitute
28499 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
28500 Don't do anything for REG_NON_LOCAL_GOTO jumps.
28501
28502 2016-03-31 Martin Liska <mliska@suse.cz>
28503
28504 * passes.c (execute_one_pass): Do not call
28505 todo_after for a discarded function.
28506
28507 2016-03-31 Bin Cheng <bin.cheng@arm.com>
28508
28509 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
28510 (no_cost, infinite_cost): Initialize the new field.
28511 (get_computation_cost_at): Record setup cost.
28512 (determine_use_iv_cost_address): Skip cost computation for sub
28513 uses if we can estimate it without losing accuracy.
28514
28515 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28516
28517 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
28518 estimates here.
28519 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
28520 max_loop_iterations_int.
28521 (tree_unswitch_outer_loop): Likewise.
28522 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
28523 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
28524
28525 2016-03-30 Richard Biener <rguenther@suse.de>
28526
28527 PR middle-end/70450
28528 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
28529
28530 2016-03-30 Jakub Jelinek <jakub@redhat.com>
28531
28532 PR target/70421
28533 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
28534 in gen_blendm expander.
28535
28536 2016-03-30 Nick Clifton <nickc@redhat.com>
28537
28538 PR target/62254
28539 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
28540 case where we are already provided with an SImode SUBREG.
28541
28542 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
28543
28544 PR target/70439
28545 * config/i386/i386.c (ix86_expand_epilogue): Properly check
28546 conflict between DRAP register and __builtin_eh_return.
28547
28548 2016-03-30 Michael Matz <matz@suse.de>
28549 Richard Biener <rguenther@suse.de>
28550
28551 PR ipa/12392
28552 * ipa-polymorphic-call.c (struct type_change_info): Change
28553 speculative to an unsigned allowing to limit the work we do.
28554 (csftc_abort_walking_p): New inline function..
28555 (check_stmt_for_type_change): Limit the number of may-defs
28556 skipped for speculative devirtualization to
28557 max-speculative-devirt-maydefs.
28558 * params.def (max-speculative-devirt-maydefs): New param.
28559 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
28560
28561 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
28562
28563 PR target/63890
28564 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
28565 and TARGET_MACHO.
28566
28567 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
28568
28569 PR tree-optimization/59124
28570 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
28571 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
28572
28573 2016-03-29 Jeff Law <law@redhat.com>
28574
28575 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
28576
28577 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28578
28579 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
28580 to HOST_WIDE_INT.
28581
28582 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
28583
28584 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
28585 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
28586 gcrt0.o if linking dynamically.
28587
28588 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28589
28590 PR ipa/70283
28591 * ipa-devirt.c (methods_equal_p): New function.
28592 (compare_virtual_tables): Use it.
28593 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
28594 * cgraphclones.c (clone_function_name_1): Use
28595 symbol_table::symbol_suffix_separator.
28596 * coverage.c (build_var): Likewise.
28597 * symtab.c (symbol_table::symbol_suffix_separator): New.
28598
28599 2016-03-29 Jakub Jelinek <jakub@redhat.com>
28600
28601 PR rtl-optimization/70429
28602 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
28603 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
28604 mode != result_mode.
28605
28606 PR c++/70353
28607 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
28608
28609 PR tree-optimization/70405
28610 * ssa-iterators.h (num_imm_uses): Add missing braces.
28611
28612 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
28613
28614 PR rtl-optimization/68695
28615 * ira-color.c (allocno_copy_cost_saving): New.
28616 (improve_allocation): Use it.
28617
28618 2016-03-29 Richard Henderson <rth@redhat.com>
28619
28620 PR middle-end/70355
28621 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
28622
28623 2016-03-29 Richard Biener <rguenther@suse.de>
28624
28625 PR middle-end/70424
28626 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
28627 use alignment returned by get_pointer_alignment_1 if it is
28628 bigger than BITS_PER_UNIT.
28629 * builtins.c (get_pointer_alignment_1): Do not return true
28630 for alignment extracted from SSA info.
28631
28632 2016-03-28 James Bowman <james.bowman@ftdichip.com>
28633
28634 * config/ft32/ft32.opt (mnodiv): New.
28635 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
28636 * doc/invoke.texi (FT32 Options -mnodiv): New.
28637
28638 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
28639
28640 PR target/70406
28641 * config/i386/i386.md (define_split, andn): Fix modes.
28642
28643 2016-03-26 Richard Biener <rguenther@suse.de>
28644 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28645
28646 PR ipa/70366
28647 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
28648 instead of
28649 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
28650 as 2nd argument to cl_optimization_restore().
28651
28652 2016-03-25 Richard Henderson <rth@redhat.com>
28653
28654 PR target/70120
28655 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
28656 * config/aarch64/aarch64-protos.h: Declare it.
28657 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
28658
28659 2016-03-25 Alan Modra <amodra@gmail.com>
28660
28661 PR target/70052
28662 * config/rs6000/constraints.md (j): Simplify.
28663 * config/rs6000/predicates.md (easy_fp_constant): Exclude
28664 decimal float 0.D.
28665 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
28666 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
28667 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
28668 in all constraint alternatives.
28669 (movtd_64bit_nodm): Delete "j" constraint alternative.
28670
28671 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
28672
28673 * tree-ssa-propagate.c: Enhance docs for
28674 SSA_PROP_NOT_INTERESTING.
28675
28676 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
28677
28678 * doc/extend.texi: Fix typo in documentation to pure attribute.
28679
28680 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
28681
28682 PR target/70319
28683 * config/pa/pa.md (bswapdi2): Use a scratch register.
28684
28685 2016-03-24 Richard Henderson <rth@redhat.com>
28686
28687 PR middle-end/69845
28688 * fold-const.c (extract_muldiv_1): Correct test for multiplication
28689 overflow.
28690
28691 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
28692
28693 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
28694 using ix86_expand_binary_operator instead of gen_andsi3.
28695
28696 2016-03-24 Richard Biener <rguenther@suse.de>
28697
28698 PR tree-optimization/70396
28699 * tree-vect-stmts.c (vectorizable_comparison): Use
28700 get_vectype_for_scalar_type.
28701
28702 2016-03-24 Richard Biener <rguenther@suse.de>
28703
28704 PR middle-end/70370
28705 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
28706 with register bases.
28707
28708 2016-03-24 Richard Biener <rguenther@suse.de>
28709
28710 PR tree-optimization/70372
28711 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
28712 build_all_ones_cst to also handle vector types correctly.
28713
28714 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
28715
28716 PR target/70381
28717 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
28718 -mfloat128 here.
28719
28720 2016-03-23 Marek Polacek <polacek@redhat.com>
28721
28722 PR c++/69884
28723 * doc/invoke.texi: Document -Wignored-attributes.
28724
28725 2016-03-23 Bin Cheng <bin.cheng@arm.com>
28726
28727 PR tree-optimization/69042
28728 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
28729 parameter from 30 to 40.
28730
28731 2016-03-23 Bin Cheng <bin.cheng@arm.com>
28732
28733 PR tree-optimization/69042
28734 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
28735 for use with constant offset stripped in base.
28736
28737 2016-03-23 Richard Biener <rguenther@suse.de>
28738
28739 PR middle-end/70251
28740 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
28741 mode compatibility check.
28742 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
28743
28744 2016-03-23 Jeff Law <law@redhat.com>
28745
28746 PR tree-optimization/64058
28747 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
28748 CONFLICT_COUNT.
28749 (struct ssa_conflicts): Move up earlier in the file.
28750 (conflicts_, var_map_): New static variables.
28751 (initialize_conflict_count): New function to initialize the
28752 CONFLICT_COUNT field for each conflict pair.
28753 (compare_pairs): Lazily initialize the conflict count and use it
28754 as the first tie-breaker.
28755 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
28756 and wipe conflicts_ and map_ around the call to qsort. Remove
28757 special case for 2 coalesce pairs.
28758 * bitmap.c (bitmap_count_unique_bits): New function.
28759 (bitmap_count_bits_in_word): New function, extracted from
28760 bitmap_count_bits.
28761 (bitmap_count_bits): Use bitmap_count_bits_in_word.
28762 * bitmap.h (bitmap_count_unique_bits): Declare it.
28763
28764 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
28765
28766 PR target/69917
28767 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
28768 transparent alias chain for decl assembler name.
28769 * config/sol2.c (solaris_assemble_visibility): Likewise.
28770
28771 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28772
28773 * config/arm/arm1020e.md (1020call_op): Reduce reservation
28774 duration.
28775 (v10_fdivs): Likewise.
28776 (v10_fdivd): Likewise.
28777
28778 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28779
28780 PR driver/70132
28781 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
28782 to not call fclose twice on file.
28783
28784 2016-03-23 Jakub Jelinek <jakub@redhat.com>
28785
28786 PR tree-optimization/70354
28787 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
28788 oprnd0 is wider than oprnd1 and there is a cast from the wider
28789 type to oprnd1, mask it with the mask of the narrower type.
28790
28791 PR target/70321
28792 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
28793 Optimize TARGET_STV splitters, if high or low word of last argument
28794 is 0 or -1.
28795
28796 2016-03-22 Jeff Law <law@redhat.com>
28797
28798 PR target/70232
28799 tree-ssa-threadbackward.c
28800 (fsm_find_control_statement_thread_paths): Correctly distinguish
28801 between old style jump threads vs FSM jump threads.
28802
28803 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
28804
28805 PR target/70302
28806 * config/i386/i386.c (scalar_chain::convert_op): Support
28807 uninitialized register usage case.
28808
28809 2016-03-22 Richard Biener <rguenther@suse.de>
28810
28811 PR middle-end/70251
28812 * genmatch.c (gen_transform): Adjust last parameter to a three-state
28813 int...
28814 (capture::gen_transform): ... to change behavior when substituting
28815 a condition into cond or not-cond expr context.
28816 (dt_simplify::gen_1): Adjust.
28817 * gimple-match-head.c: Include gimplify.h for unshare_expr.
28818 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
28819 last change and instead change to
28820 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
28821 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
28822
28823 2016-03-22 Anthony Green <green@moxielogic.com>
28824
28825 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
28826 issue for moxiebox targets.
28827 (CC1PLUS_SPEC): Ditto.
28828
28829 2016-03-22 Richard Biener <rguenther@suse.de>
28830
28831 PR middle-end/70333
28832 * fold-const.c (extract_muldiv_1): Properly perform multiplication
28833 in the wide type.
28834
28835 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
28836
28837 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
28838
28839 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
28840
28841 PR target/70325
28842 * config/i386/i386.c (def_builtin): Handle
28843 OPTION_MASK_ISA_AVX512VL to be and-ed with other
28844 bits.
28845 (const struct builtin_description bdesc_special_args[]):
28846 Remove duplicate ISA bits.
28847
28848 2016-03-22 Jakub Jelinek <jakub@redhat.com>
28849
28850 PR target/70329
28851 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
28852 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
28853 in a way that works also for AVX512BW.
28854
28855 PR target/70300
28856 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
28857 instead of source if operands[1] is xmm16 and above and
28858 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
28859 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
28860
28861 PR c++/70295
28862 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
28863 on assign if (*from_p) is a comparison, set it to
28864 TREE_NO_WARNING (*from_p).
28865
28866 2016-03-21 Jakub Jelinek <jakub@redhat.com>
28867
28868 PR middle-end/70326
28869 * lra.c (restore_scratches): Ignore deleted insns.
28870
28871 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
28872 Jakub Jelinek <jakub@redhat.com>
28873
28874 PR tree-optimization/70317
28875 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
28876 to HONOR_NANS.
28877
28878 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
28879
28880 PR target/70327
28881 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
28882 of ix86_expand_move.
28883 (movoi): Ditto.
28884 (movti): Use general_operand for operand 1 predicate.
28885
28886 2016-03-21 Martin Liska <mliska@suse.cz>
28887
28888 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
28889 insns.
28890 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
28891
28892 2016-03-21 Martin Liska <mliska@suse.cz>
28893
28894 PR ipa/70306
28895 * ipa-icf.c (sem_function::parse): Skip static
28896 constructors and destructors.
28897
28898 2016-03-21 Jakub Jelinek <jakub@redhat.com>
28899
28900 PR target/70296
28901 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
28902 function-like macro, peek following token(s) if it is followed
28903 by CPP_OPEN_PAREN token with optional padding in between, and
28904 if not, don't treat it like a macro.
28905
28906 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
28907 Alexander Monakov <amonakov@ispras.ru>
28908
28909 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
28910 for the stabs debug format.
28911
28912 2016-03-21 Richard Biener <rguenther@suse.de>
28913
28914 PR tree-optimization/70310
28915 * tree-vect-generic.c (expand_vector_condition): Fold the built
28916 condition.
28917
28918 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
28919
28920 PR target/70293
28921 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
28922 Block third alternative for AVX-512VL target,
28923
28924 2016-03-21 Martin Liska <mliska@suse.cz>
28925
28926 PR hsa/70234
28927 * hsa-brig.c (emit_function_directives): Mark unemitted
28928 global variables for emission.
28929 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
28930 (get_symbol_for_decl): Likewise.
28931 * hsa.h (struct hsa_symbol): New flag.
28932
28933 2016-03-21 Richard Biener <rguenther@suse.de>
28934
28935 PR tree-optimization/70288
28936 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
28937 we do not estimate unsimplified all-constant conditionals or
28938 switches as optimized away.
28939
28940 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
28941
28942 PR rtl-optimization/69102
28943 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
28944 when we have a readonly dependency context.
28945
28946 2016-03-18 Jeff Law <law@redhat.com>
28947
28948 PR rtl-optimization/70263
28949 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
28950 (update_equiv_regs): When trying to move a store to after the insn
28951 that sets the source of the store, make sure the store occurs after
28952 the insn that sets the source of the store. When successful note
28953 the REG_EQUIV note created in the dump file.
28954
28955 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
28956 Bernd Schmidt <bschmidt@redhat.com>
28957
28958 * doc/extend.texi: Document more potential problems with basic asms.
28959
28960 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
28961
28962 PR rtl-optimization/70278
28963 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
28964 VOIDmode.
28965
28966 2016-03-18 Jason Merrill <jason@redhat.com>
28967
28968 * calls.c (load_register_parameters): Fix zero size sibcall logic.
28969
28970 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
28971
28972 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
28973 values to 128b regs.
28974
28975 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
28976
28977 PR tree-optimization/70252
28978 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
28979 boolean vector has a proper number of elements.
28980 (supportable_narrowing_operation): Likewise.
28981
28982 2016-03-18 Tom de Vries <tom@codesourcery.com>
28983
28984 PR ipa/70269
28985 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
28986
28987 2016-03-18 Jakub Jelinek <jakub@redhat.com>
28988
28989 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
28990 instead of replace_rtx for DEBUG_INSNs.
28991
28992 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28993
28994 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
28995 load type reservations.
28996
28997 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
28998
28999 PR target/70188
29000 * config/pa/constraints.md: Revert 2015-02-13 change. Use
29001 define_constraint for "Q" and "T" constraints.
29002
29003 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
29004
29005 Tweak the pipeline model for Exynos M1
29006
29007 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
29008 model.
29009
29010 2016-03-17 David Malcolm <dmalcolm@redhat.com>
29011
29012 PR c/70264
29013 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
29014 where one or both locations aren't within a line_map.
29015
29016 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
29017
29018 PR driver/70192
29019 * opts.c (finish_options): Don't set flag_pie to the default if
29020 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
29021 if it is -1.
29022
29023 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
29024
29025 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
29026 true as ALL_REGS argument to replace_rtx.
29027
29028 2016-03-17 Richard Biener <rguenther@suse.de>
29029
29030 PR debug/70271
29031 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
29032 last.
29033
29034 2016-03-17 Jakub Jelinek <jakub@redhat.com>
29035
29036 PR target/70245
29037 * rtl.h (replace_rtx): Add ALL_REGS argument.
29038 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
29039 equality and assert mode is the same, instead of just rtx pointer
29040 equality.
29041 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
29042 true as ALL_REGS argument to replace_rtx.
29043
29044 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
29045
29046 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
29047 for boolean vector with vector mode only.
29048 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29049
29050 2016-03-17 Nick Clifton <nickc@redhat.com>
29051
29052 PR target/70162
29053 * config/rx/rx.c (rx_print_integer): Print negative constants in
29054 decimal.
29055
29056 2016-03-17 Jakub Jelinek <jakub@redhat.com>
29057
29058 PR target/70261
29059 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
29060
29061 2016-03-16 Richard Henderson <rth@redhat.com>
29062 Richard Biener <rguenth@suse.de>
29063
29064 PR middle-end/70240
29065 PR middle-end/68215
29066 PR tree-opt/68714
29067 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
29068 first operand as is_gimple_condexpr.
29069
29070 PR middle-end/70240
29071 PR middle-end/68215
29072 Revert r231575
29073 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
29074 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
29075 Do not gimplify the result.
29076 (do_unop): Adjust call to tree_vec_extract.
29077 (do_binop): Likewise.
29078 (do_compare): Likewise.
29079 (do_plus_minus): Likewise.
29080 (do_negate): Likewise.
29081 (expand_vector_condition): Likewise.
29082 (do_cond): Likewise.
29083
29084 2016-03-16 Richard Henderson <rth@redhat.com>
29085
29086 PR target/70048
29087 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
29088 (aarch64_classify_address): Use it.
29089 (aarch64_legitimize_address): Force all subexpressions of PLUS
29090 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
29091
29092 2016-03-16 Jakub Jelinek <jakub@redhat.com>
29093 Richard Biener <rguenth@suse.de>
29094
29095 PR target/70245
29096 * rtlanal.c (replace_rtx): For REG, if from is a REG,
29097 return to even if only REGNO is equal, and assert
29098 mode is the same.
29099
29100 2016-03-11 Jeff Law <law@redhat.com>
29101
29102 PR rtl-optimization/70224
29103 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
29104
29105 2016-03-16 Richard Henderson <rth@redhat.com>
29106
29107 PR middle-end/70199
29108 * function.h (struct function): Add has_forced_label_in_static.
29109 * gimplify.c (force_labels_r): Set it.
29110 * lto-streamer-in.c (input_struct_function_base): Read it.
29111 * lto-streamer-out.c (output_struct_function_base): Write it.
29112 * tree-inline.c (has_label_address_in_static_1): Remove.
29113 (copy_forbidden): Remove fndecl parameter; test
29114 has_forced_label_in_static.
29115 (inline_forbidden_p): Update call to copy_forbidden.
29116 (tree_versionable_function_p): Likewise.
29117 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
29118 (chkp_versioning): Likewise.
29119 * tree-inline.h (copy_forbidden): Update decl.
29120
29121 2016-03-16 Marek Polacek <polacek@redhat.com>
29122
29123 PR c/70093
29124 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
29125 function being thunked if the result type doesn't have fixed size.
29126 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
29127 doesn't have fixed size.
29128
29129 2016-03-16 Bin Cheng <bin.cheng@arm.com>
29130
29131 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
29132 reporting malformed loop nest.
29133
29134 2016-03-16 Tom de Vries <tom@codesourcery.com>
29135
29136 PR lto/70187
29137 * ipa-devirt.c (possible_polymorphic_call_targets): Move
29138 nodes.length () == 1 test to before first nodes[0] access.
29139
29140 2016-03-16 Tom de Vries <tom@codesourcery.com>
29141
29142 PR tree-optimization/68715
29143 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
29144 single_pred_p test.
29145
29146 2016-03-16 Tom de Vries <tom@codesourcery.com>
29147
29148 PR tree-optimization/68809
29149 * graphite-scop-detection.c (same_close_phi_node): Test if result types
29150 are the same.
29151
29152 2016-03-16 Carlos O'Donell <carlos@redhat.com>
29153 Sandra Loosemore <sandra@codesourcery.com>
29154
29155 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
29156 on leaf attribute. Mention ELF interposition problems.
29157
29158 2016-03-16 Alan Modra <amodra@gmail.com>
29159
29160 PR rtl-optimization/69195
29161 PR rtl-optimization/47992
29162 * ira.c (indirect_jump_optimize): Ignore artificial defs.
29163 Add comments.
29164
29165 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
29166
29167 PR bootstrap/69513
29168 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
29169
29170 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29171
29172 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
29173
29174 2016-03-15 Jakub Jelinek <jakub@redhat.com>
29175
29176 PR rtl-optimization/70222
29177 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
29178 optimization if mode is different from result_mode, queue up masking
29179 of the result in outer_op. Formatting fix.
29180
29181 PR middle-end/70239
29182 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
29183 of safe_grow.
29184
29185 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29186
29187 PR rtl-optimization/69032
29188 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
29189 looping backwards over basic block insns.
29190
29191 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29192
29193 PR target/66660
29194 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
29195 to non-speculative when propagating trap bits.
29196
29197 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29198
29199 PR rtl-optimization/63384
29200 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
29201 DEBUG_INSN_P insns.
29202
29203 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29204
29205 PR target/64411
29206 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
29207 factored out from ...
29208 (sched_analyze_insn): ... here.
29209 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
29210 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
29211 get_implicit_reg_pending_clobbers in it.
29212 (setup_id_reg_sets): Use setup_id_implicit_regs.
29213 (deps_init_id): Ditto.
29214
29215 2016-03-15 Tom de Vries <tom@codesourcery.com>
29216
29217 PR ipa/70161
29218 * cgraph.c (cgraph_node::get_body): Save, reset and restore
29219 dump_file_name.
29220 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
29221 execute_function_dump.
29222 (execute_one_pass): Don't dump function if it will be dumped after ipa
29223 transform.
29224
29225 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
29226
29227 * genrecog.c (match_pattern_2): If pred is NULL don't call
29228 safe_predicate_mode on it.
29229
29230 2016-03-14 Jakub Jelinek <jakub@redhat.com>
29231
29232 PR middle-end/70219
29233 * lra-constraints.c (delete_move_and_clobber): Change assertion
29234 to also allow dregno == 0.
29235
29236 2016-03-14 Richard Henderson <rth@redhat.com>
29237
29238 PR tree-opt/68714
29239 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
29240 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
29241 (reassociate_bb): Use optimize_vec_cond_expr; avoid
29242 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
29243 on vectors.
29244
29245 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
29246
29247 PR target/70083
29248 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
29249 regs.
29250 (lra_create_live_ranges_1): initialize hard register biggest_mode to
29251 VOIDmode.
29252 * lra-constraints.c (split_reg): For hard regs, try to find the
29253 biggest single-register mode used in the function.
29254
29255 2016-03-14 Richard Biener <rguenther@suse.de>
29256
29257 PR tree-optimization/56365
29258 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
29259 constants to compare against.
29260
29261 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
29262
29263 PR target/70098
29264 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
29265 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
29266 (define_split for the GPR case): Use int_reg_operand instead of
29267 gpc_reg_operand for the output.
29268
29269 2016-03-14 Tom de Vries <tom@codesourcery.com>
29270
29271 PR tree-optimization/70045
29272 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
29273 create_empty_if_region_on_edge argument.
29274
29275 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
29276
29277 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
29278 (STACK_CHECK_PROTECT): Likewise.
29279 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
29280 (STACK_CHECK_PROTECT): Likewise.
29281 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
29282 (STACK_CHECK_PROTECT): Likewise.
29283 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
29284 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
29285 (STACK_CHECK_PROTECT): Likewise.
29286
29287 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
29288
29289 PR rtl-optimization/69307
29290 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
29291 registers in modes that span more than one register.
29292
29293 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
29294
29295 PR target/69614
29296 * lra-constraints.c (delete_move_and_clobber): New.
29297 (remove_inheritance_pseudos): Use it.
29298
29299 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
29300
29301 PR ada/70017
29302 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
29303 the libcall is LCT_THROW.
29304 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
29305 for the checking routine.
29306
29307 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29308
29309 PR target/70131
29310 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
29311 optimization if we have direct move.
29312 (roundu32<mode>2_fprs): Likewise.
29313
29314 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
29315
29316 PR target/70123
29317 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
29318 be rematerialized.
29319 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
29320 Arguments swapped. All callers changed. Take reg_renumber into
29321 account, and Calculate and compare register ranges for hard regs.
29322
29323 2016-03-11 Jeff Law <law@redhat.com>
29324
29325 PR tree-optimization/70190
29326 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29327 Handle cases where we can not extract the taken edge, even though we
29328 found a constant value.
29329
29330 PR tree-optimization/64058
29331 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
29332 (num_coalesce_pairs): Move up earlier in file.
29333 (find_coalesce_pair): Initialize the INDEX field for each pair
29334 discovered.
29335 (compare_pairs): No longer sort on the elements in each pair.
29336 Instead break ties with the index of the coalesce pair.
29337
29338 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29339
29340 PR target/70002
29341 * config/aarch64/aarch64-protos.h
29342 (aarch64_save_restore_target_globals): New prototype.
29343 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
29344 Call the above when popping pragma.
29345 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
29346 New function.
29347 (aarch64_set_current_function): Rewrite using the above.
29348
29349 2016-03-11 Jakub Jelinek <jakub@redhat.com>
29350
29351 PR tree-optimization/70177
29352 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
29353 (extract_ops_from_tree): ... this. In the 2 argument
29354 overload remove _1 suffix.
29355 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
29356 (extract_ops_from_tree): ... this.
29357 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
29358 Adjust callers.
29359 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
29360 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
29361 extract_ops_from_tree instead of 2 operand one.
29362
29363 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
29364
29365 PR tree-optimization/70013
29366 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
29367 for constant-pool entries.
29368
29369 2016-03-11 Jakub Jelinek <jakub@redhat.com>
29370
29371 PR rtl-optimization/70174
29372 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
29373 followed by gen_lowpart on force_reg instead of just gen_lowpart.
29374
29375 PR tree-optimization/70169
29376 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
29377 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
29378 for unknown codes.
29379
29380 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
29381 Jakub Jelinek <jakub@redhat.com>
29382
29383 PR target/70160
29384 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
29385 of uninitialized values.
29386
29387 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29388
29389 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
29390 define_expand.
29391 ("*trunctddd2"): New pattern definition.
29392 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
29393 TD->DD truncation.
29394
29395 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29396
29397 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
29398 definitions for BFP and DFP rounding modes.
29399 ("fixuns_truncdddi2", "fixuns_trunctddi2")
29400 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
29401 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
29402 ("fix_trunctf<mode>2"): Use the new constants instead of magic
29403 numbers.
29404
29405 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29406
29407 * config/s390/constraints.md: Adjust comment.
29408 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
29409 s390_decompose_addrstyle_without_index.
29410 * config/s390/predicates.md (shift_count_or_setmem_operand):
29411 Rename to setmem_operand.
29412 * config/s390/s390-protos.h
29413 (s390_decompose_shift_count): Rename to
29414 s390_decompose_addrstyle_without_index.
29415 * config/s390/s390.c (s390_decompose_shift_count)
29416 (s390_mem_constraint, print_shift_count_operand)
29417 (print_operand_address, print_operand): Rename
29418 s390_decompose_shift_count to
29419 s390_decompose_addrstyle_without_index and rename
29420 print_shift_count_operand to print_addrstyle_operand troughout the
29421 file.
29422 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
29423 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
29424 Rename shift_count_or_setmem_operand to setmem_operand.
29425 * config/s390/vx-builtins.md ("vec_insert<mode>")
29426 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
29427 nonmemory_operand.
29428
29429 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29430
29431 PR target/70168
29432 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
29433 Handle overlapping retval and newval.
29434
29435 2016-03-10 Nick Clifton <nickc@redhat.com>
29436
29437 PR target/7044
29438 * config/aarch64/aarch64.c
29439 (aarch64_override_options_after_change_1): When forcing
29440 flag_omit_frame_pointer to be true, use a special value that can
29441 be detected if this function is called again, thus preventing
29442 flag_omit_leaf_frame_pointer from being forced to be false.
29443
29444 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29445
29446 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
29447 Set x_flag_omit_leaf_frame_pointer when handling
29448 -momit-leaf-frame-pointer.
29449
29450 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29451
29452 PR lto/69589
29453 * cgraph.c (cgraph_node::dump): Dump split_part and
29454 indirect_call_target.
29455 * cgraph.h (cgraph_node): Add indirect_call_target flag.
29456 * ipa.c (has_addr_references_p): Cleanup.
29457 (is_indirect_call_target_p): New.
29458 (walk_polymorphic_call_targets): Do not mark virtuals that may be
29459 called indirectly as local.
29460 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
29461
29462 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29463
29464 PR ipa/69630
29465 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
29466 on cxa_pure_virtual.
29467
29468 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29469
29470 PR lto/69589
29471 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
29472
29473 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29474
29475 PR lto/69589
29476 * tree.c (need_assembler_name_p): Only record main variant type names.
29477
29478 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
29479
29480 PR target/70113.
29481 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
29482 Always define to 0 or 1.
29483 (TARGET_FIX_ERR_A53_843419): New macro.
29484 * config/aarch64/aarch64-elf-raw.h
29485 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
29486 * config/aarch64/aarch64-linux.h: Likewise.
29487 * config/aarch64/aarch64.c
29488 (aarch64_override_options_after_change_1): Do not default
29489 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
29490 843419 is on.
29491 (aarch64_attributes): Handle fix-cortex-a53-843419.
29492 (aarch64_can_inline_p): Likewise.
29493 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
29494
29495 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
29496 Jakub Jelinek <jakub@redhat.com>
29497
29498 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
29499 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
29500 DECL_COMMONS if flag_unconstrained_commons is set.
29501 * tree-dfa.c (get_ref_base_and_extent): Likewise.
29502 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
29503 (funconstrained-commons): Document.
29504
29505 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
29506
29507 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
29508 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
29509
29510 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
29511
29512 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
29513 has a proper number of elements.
29514
29515 2016-03-10 Alan Modra <amodra@gmail.com>
29516
29517 PR rtl-optimization/69195
29518 PR rtl-optimization/47992
29519 * ira.c (recorded_label_ref): Delete.
29520 (update_equiv_regs): Return void.
29521 (indirect_jump_optimize): New function.
29522 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
29523 before regstat_compute_ri. Don't rebuild_jump_labels here.
29524 Delete update_regstat.
29525
29526 2016-03-10 Richard Biener <rguenther@suse.de>
29527
29528 PR tree-optimization/70128
29529 * tree-ssa-structalias.c (set_uids_in_ptset): Set
29530 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
29531
29532 2016-03-09 Jakub Jelinek <jakub@redhat.com>
29533
29534 PR tree-optimization/70152
29535 * tree-sra.c (replace_removed_params_ssa_names): Copy over
29536 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
29537
29538 PR target/70086
29539 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
29540 instead of gen_sse2_loadlpd.
29541 * config/i386/sse.md (*vec_concatv2df): Rename to...
29542 (vec_concatv2df): ... this.
29543
29544 PR tree-optimization/70127
29545 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
29546
29547 2016-03-09 David Malcolm <dmalcolm@redhat.com>
29548
29549 PR c/68473
29550 PR c++/70105
29551 * diagnostic-show-locus.c (compatible_locations_p): New function.
29552 (layout::layout): Sanitize ranges using compatible_locations_p.
29553
29554 2016-03-09 David Malcolm <dmalcolm@redhat.com>
29555
29556 PR c/68473
29557 PR c++/70105
29558 * diagnostic-show-locus.c (layout_range::layout_range): Replace
29559 location_range param with three const expanded_locations * and a
29560 bool.
29561 (layout::layout): Replace call to
29562 rich_location::lazily_expand_location with get_expanded_location.
29563 Extract the range and perform location expansion here, passing
29564 the results to the layout_range ctor.
29565 * diagnostic.c (source_range::debug): Delete.
29566 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
29567 of rich_location::get_expanded_location.
29568 * gcc-rich-location.c (get_range_for_expr): Delete.
29569 (gcc_rich_location::add_expr): Reimplement to avoid the
29570 rich_location::add_range overload that took a location_range,
29571 passing a location_t instead.
29572
29573 2016-03-09 Richard Biener <rguenther@suse.de>
29574 Jakub Jelinek <jakub@redhat.com>
29575
29576 PR tree-optimization/70138
29577 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
29578 Also skip vect_double_reduction_def.
29579
29580 2016-03-09 Jakub Jelinek <jakub@redhat.com>
29581
29582 PR target/70049
29583 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
29584 if the operand is "m".
29585
29586 2016-03-09 Nathan Sidwell <nathan@acm.org>
29587
29588 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
29589
29590 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29591
29592 * config/i386/i386.c (processor_target_table): Fix cost table
29593 intialization order for znver1.
29594
29595 2016-03-08 Jakub Jelinek <jakub@redhat.com>
29596
29597 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
29598 - becuase -> because.
29599 * ipa-reference.c (ignore_module_statics): Likewise.
29600 * cgraph.c (cgraph_node::get_body): Likewise.
29601 * ipa-inline.c (early_inliner): Likewise.
29602 * ipa-devirt.c (types_same_for_odr): Likewise.
29603 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
29604 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
29605
29606 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29607
29608 * tree-ssa-math-opts.c: Fix typo in comment.
29609
29610 2016-03-08 Jakub Jelinek <jakub@redhat.com>
29611
29612 PR target/70110
29613 * config/i386/i386.c (scalar_chain::make_vector_copies,
29614 scalar_chain::convert_reg): Call end_sequence in between
29615 get_insns and emit_conversion_insns rather than after both
29616 calls.
29617
29618 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
29619
29620 PR target/70064
29621 * config/i386/i386.h (machine_function): Add
29622 pc_thunk_call_expanded flag.
29623 (ix86_pc_thunk_call_expanded): New define.
29624 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
29625 (*set_got): Rename insn pattern from set_got.
29626 (*set_got_labelled): Rename inst pattern from set_got_labelled.
29627 * config/i386/i386.c (ix86_compute_frame_layout): Use
29628 ix86_pc_thunk_call_expanded to prevent red-zone.
29629
29630 2016-03-07 Martin Jambor <mjambor@suse.cz>
29631
29632 * hsa.h (hsa_get_ctor_statements): Declare.
29633 (hsa_get_dtor_statements): Likewise.
29634 (hsa_get_kernel_dispatch_type): Likewise.
29635 * hsa.c (hsa_get_ctor_statements): New function.
29636 (hsa_get_dtor_statements): Likewise.
29637 (hsa_get_kernel_dispatch_type): Likewise.
29638 * hsa-brig.c (hsa_cdtor_statements): Removed.
29639 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
29640 hsa_get_dtor_statements.
29641 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
29642 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
29643
29644 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
29645
29646 * config/arm/arm-cores.def (cortex-r8): New.
29647 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
29648 * config/arm/arm-tune.md: Likewise.
29649 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
29650
29651 2016-03-07 Martin Sebor <msebor@redhat.com>
29652
29653 PR rtl-optimization/19705
29654 * doc/invoke.texi (Options That Control Optimization): Clarify
29655 -fno-branch-count-reg.
29656
29657 2016-02-26 Richard Biener <rguenther@suse.de>
29658 Jeff Law <law@redhat.com>
29659
29660 PR tree-optimization/69740
29661 * cfghooks.c (remove_edge): Request loop fixups if we delete
29662 an edge that might turn an irreducible loop into a natural
29663 loop.
29664 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
29665 Move after definition of loops_state_clear.
29666
29667 2016-03-07 Bin Cheng <bin.cheng@arm.com>
29668
29669 PR rtl-optimization/69052
29670 * rtlanal.c (commutative_operand_precedence): Set higher precedence
29671 to CONST_WIDE_INT.
29672
29673 2016-03-07 Tom de Vries <tom@codesourcery.com>
29674
29675 PR tree-optimization/70116
29676 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
29677 is_tm_ending stmts and ubsan/asan internal functions.
29678 (find_duplicate): Use it. Don't test is_tm_ending here.
29679
29680 2016-03-07 Richard Biener <rguenther@suse.de>
29681
29682 PR tree-optimization/70115
29683 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
29684 (propagate_constants_for_unrolling): Use replace_uses_by.
29685
29686 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
29687
29688 PR middle-end/69916
29689 * omp-low.c (struct oacc_loop): Add ifns.
29690 (new_oacc_loop_raw): Initialize it.
29691 (finish_oacc_loop): Clear mask & flags if no ifns.
29692 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
29693 (oacc_loop_xform_loop): Add ifns arg & adjust.
29694 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
29695
29696 2016-03-07 Richard Henderson <rth@redhat.com>
29697
29698 PR rtl-opt/70061
29699 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
29700 (insert_value_copy_on_edge): Likewise.
29701
29702 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29703
29704 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
29705
29706 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29707
29708 PR target/62281
29709 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
29710
29711 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
29712
29713 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
29714
29715 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
29716
29717 Fix sseimul type attribute.
29718 * config/i386/znver1.md
29719 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
29720 znver1_sseimul_avx256_load) : Fix the type attribute.
29721 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
29722 pipe usage and latency.
29723
29724 2016-03-05 Jakub Jelinek <jakub@redhat.com>
29725
29726 PR c++/70084
29727 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
29728 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
29729 to the right type.
29730
29731 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
29732
29733 PR c/69973
29734 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
29735
29736 PR rtl-optimization/69941
29737 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
29738 the reg share its mode.
29739
29740 2016-03-04 Jeff Law <law@redhat.com>
29741
29742 PR tree-optimization/69196
29743 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29744 If the both SSA_NAMEs are anonymous, then consider them unassociated
29745 and include the PHI in the statement count.
29746
29747 2016-03-05 Tom de Vries <tom@codesourcery.com>
29748
29749 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
29750 construct in oacc routine. Check for oacc region in oacc routine.
29751
29752 2016-03-04 Jakub Jelinek <jakub@redhat.com>
29753
29754 PR target/70062
29755 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
29756 2016-02-22 changes, instead don't recurse if RECUR is already true.
29757 Don't change *dynamic_check if RECUR. Adjust recursive caller
29758 to pass true to the new argument.
29759 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
29760
29761 PR target/70059
29762 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
29763 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
29764 fixes.
29765 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
29766
29767 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
29768
29769 PR rtl-optimization/57676
29770 * lra-assigns.c (lra_assign): Guard test for maximum iterations
29771 with flag_checking.
29772
29773 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
29774
29775 * tree-vect-patterns.c (search_type_for_mask): Handle
29776 comparison of booleans.
29777
29778 2016-03-04 Jakub Jelinek <jakub@redhat.com>
29779
29780 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
29781 Fix @xref usage.
29782
29783 PR debug/69947
29784 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
29785 all other ops that have dw_val_class_die_ref operands,
29786 and DW_OP_GNU_entry_value.
29787
29788 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29789
29790 PR rtl-optimization/69904
29791 * config/arm/arm.c (arm_cannot_copy_insn_p):
29792 Return true for load-exclusive instructions.
29793
29794 2016-03-03 Jakub Jelinek <jakub@redhat.com>
29795
29796 PR target/70021
29797 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
29798 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
29799 the pattern no matter if it is used just by non-pattern, pattern
29800 or mix thereof.
29801 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
29802 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
29803 oprnd1 def_stmt is in pattern, don't look through it.
29804
29805 2016-03-03 Marek Polacek <polacek@redhat.com>
29806
29807 PR middle-end/70050
29808 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
29809
29810 2016-03-03 Martin Liska <mliska@suse.cz>
29811
29812 PR tree-optimization/70043
29813 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
29814 previous statement if we see a debug statement.
29815
29816 2016-03-03 Richard Biener <rguenther@suse.de>
29817
29818 PR tree-optimization/55936
29819 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
29820 parameter and guard unsafe equivalence use.
29821 (vrp_evaluate_conditional_warnv_with_ops): Always use
29822 safe equivalences but not via the quadratic compare_names
29823 helper.
29824
29825 2016-03-03 Michael Collison <michael.collison@linaro.org>
29826
29827 PR target/70014
29828 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
29829 for operand 1 to s_register_operand. Change predicate for operand
29830 2 to arm_not_immediate_operand.
29831
29832 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
29833
29834 * doc/tm.texi: Regenerated.
29835
29836 2016-03-02 Richard Henderson <rth@redhat.com>
29837
29838 PR rtl-opt/67145
29839 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
29840 simplification when all args are positive non-fixed registers.
29841
29842 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
29843
29844 * target.def (lra_p): Specify that new ports should use LRA.
29845
29846 2016-03-02 Jakub Jelinek <jakub@redhat.com>
29847
29848 PR libgomp/69555
29849 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
29850 gimplify_type_sizes the type they refer to.
29851 (omp_notice_variable): Handle reference vars to VLAs.
29852 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
29853 reference to VLA decls in the second pass instead of first pass.
29854
29855 2016-03-02 Tom de Vries <tom@codesourcery.com>
29856
29857 PR tree-optimization/68659
29858 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
29859 new_expr == NULL_TREE.
29860 (get_new_name): Handle ADDR_EXPR.
29861
29862 2016-03-02 Bin Cheng <bin.cheng@arm.com>
29863
29864 PR rtl-optimization/69052
29865 * loop-invariant.c (canonicalize_address): New function.
29866 (inv_can_prop_to_addr_use): Check validity of address expression
29867 which is canonicalized by above function.
29868
29869 2016-03-02 Alan Modra <amodra@gmail.com>
29870
29871 PR ipa/69990
29872 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
29873 larger alignment.
29874
29875 2016-03-02 Jakub Jelinek <jakub@redhat.com>
29876
29877 PR target/70028
29878 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
29879 (*movhi_internal): Put mask moves from and to memory separately
29880 from moves from/to GPRs.
29881
29882 2016-03-02 Richard Biener <rguenther@suse.de>
29883
29884 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
29885 GENERIC expressions in GIMPLE.
29886
29887 2016-03-02 Richard Biener <rguenther@suse.de>
29888
29889 * config/i386/i386.c (type_natural_mode): Fix typo.
29890
29891 2016-03-02 Nick Clifton <nickc@redhat.com>
29892
29893 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
29894
29895 2016-03-02 Richard Biener <rguenther@suse.de>
29896 Uros Bizjak <ubizjak@gmail.com>
29897
29898 PR target/67278
29899 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
29900
29901 2016-03-02 Richard Biener <rguenther@suse.de>
29902
29903 PR middle-end/67278
29904 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
29905
29906 2016-03-02 Marek Polacek <polacek@redhat.com>
29907
29908 PR c/67854
29909 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
29910 "is promoted to" warning.
29911
29912 2016-03-01 DJ Delorie <dj@redhat.com>
29913
29914 * config.gcc: Deprecate mep-*.
29915
29916 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
29917
29918 PR middle-end/70025
29919 * lra-constraints.c (regno_val_use_in): New.
29920 (match_reload): Use it instead of regno_use_in.
29921
29922 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
29923
29924 PR rtl-optimization/70007
29925 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
29926 references present in REG_EQUAL notes attached to non-SET patterns.
29927
29928 2016-03-01 Jeff Law <law@redhat.com>
29929
29930 PR tree-optimization/69196
29931 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29932 Appropriately clamp the number of statements to copy when the
29933 thread path does not traverse a loop backedge.
29934
29935 PR tree-optimization/69196
29936 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29937 Do count some PHIs in the thread path against the insn count. Decrease
29938 final statement count by one as the control statement in the last
29939 block will get removed. Remove special cased code for handling PHIs
29940 in the last block.
29941
29942 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
29943
29944 PR target/70027
29945 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
29946 asm dialect alternatives to explicit GOTPCREL calls.
29947
29948 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
29949
29950 PR ada/70017
29951 * ira.c (do_reload): Issue warning for generic stack checking here...
29952 * reload1.c (reload): ...instead of here and streamline it.
29953
29954 2016-03-01 Nick Clifton <nickc@redhat.com>
29955
29956 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
29957
29958 2016-03-01 Richard Biener <rguenther@suse.de>
29959
29960 PR tree-optimization/69983
29961 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
29962 types and fall back to operand_equal_p.
29963
29964 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29965
29966 Revert
29967 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29968
29969 * config/s390/constraints.md ("jm8"): New constraint.
29970 * config/s390/predicates.md ("const_int_8bitset_operand"): New
29971 predicate.
29972 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
29973 into ...
29974 ("*setmem_long<setmem_and>"): New pattern.
29975 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
29976 into ...
29977 ("*setmem_long_31z<setmem_and>"): New pattern.
29978 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
29979 New substitution rules with the required attributes.
29980
29981
29982 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29983
29984 Revert
29985 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29986
29987 * gensupport.c (process_substs_on_one_elem): Split loop to
29988 complete mark_operands_used_in_match_dup on all expressions in the
29989 vector first.
29990 (adjust_operands_numbers): Inline into process_substs_on_one_elem
29991 and remove function.
29992
29993 2016-03-01 Richard Biener <rguenther@suse.de>
29994
29995 PR middle-end/70022
29996 * fold-const.c (fold_indirect_ref_1): Fix range checking for
29997 vector BIT_FIELD_REF extract.
29998
29999 2016-03-01 Richard Biener <rguenther@suse.de>
30000
30001 PR tree-optimization/69994
30002 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
30003
30004 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
30005
30006 PR tree-optimization/69956
30007 * tree-vect-stmts.c (supportable_widening_operation): Support
30008 multi-step conversion of boolean vectors.
30009 (supportable_narrowing_operation): Likewise.
30010
30011 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30012
30013 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
30014 anymore.
30015
30016 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30017
30018 * config/s390/subst.md (DSI_VI): New mode iterator.
30019 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
30020 * config/s390/vector.md ("vec_set<mode>"): Move expander before
30021 the insn definition.
30022 ("*vec_set<mode>"): Change predicate and add alternative to
30023 support only either register or const_int operands as element
30024 selector.
30025 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
30026 operands.
30027 ("vec_extract<mode>"): New expander.
30028 ("*vec_extract<mode>"): New insn definition supporting reg and
30029 const_int element selectors.
30030 ("*vec_extract<mode>_plus"): New insn definition supporting
30031 reg+const_int element selectors.
30032 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
30033 following expander+insn definition.
30034 ("<vec_shifts_name><mode>3"): New expander.
30035 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
30036
30037 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30038
30039 * config/s390/s390.md ("*tabort_1"): Change predicate to
30040 nonmemory_operand. Add a second alternative to cover
30041 register as well as const int operands.
30042 ("*tabort_1_plus"): New pattern definition.
30043
30044 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30045
30046 * config/s390/s390.md ("*ashrdi3_cc_31")
30047 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
30048 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
30049 Merge insn definitions into ...
30050 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30051 New pattern definition.
30052 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
30053 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
30054 ("*ashr<mode>3_and"): Merge insn definitions into ...
30055 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30056 New pattern definition.
30057 * config/s390/subst.md ("addr_style_op_cc_subst")
30058 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
30059 substitutions patterns plus attributes.
30060 Add ashiftrt to SUBST iterator.
30061
30062 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30063
30064 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
30065 op2 to nonmemory_operand.
30066 ("*<shift>di3_31", "*<shift>di3_31_and"):
30067 Merge into single pattern definition ...
30068 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
30069 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
30070 pattern definition ...
30071 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
30072 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
30073 iterator.
30074
30075 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30076
30077 * config/s390/predicates.md (const_int_6bitset_operand): New
30078 predicate.
30079 * config/s390/s390.md: Include subst.md.
30080 ("rotl<mode>3"): New expander.
30081 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
30082 ...
30083 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
30084 * config/s390/subst.md: New file.
30085
30086 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30087
30088 * config/s390/s390.md ("op_type", "atype", "length" attributes):
30089 Remove RRR type. It doesn't really exist.
30090 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
30091 attributes.
30092 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
30093 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
30094 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
30095 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
30096 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
30097 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
30098 `enabled' attribute.
30099
30100 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30101
30102 * gensupport.c (process_substs_on_one_elem): Split loop to
30103 complete mark_operands_used_in_match_dup on all expressions in the
30104 vector first.
30105 (adjust_operands_numbers): Inline into process_substs_on_one_elem
30106 and remove function.
30107
30108 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
30109
30110 PR target/69706
30111 * config/sparc/sparc.c (NWORDS_UP): Rename to...
30112 (CEIL_NWORDS): ...this. Use CEIL macro.
30113 (compute_fp_layout): Adjust to above renaming.
30114 (function_arg_union_value): Likewise.
30115 (sparc_arg_partial_bytes): Likewise.
30116 (sparc_function_arg_advance): Likewise.
30117
30118 2016-02-29 Jeff Law <law@redhat.com>
30119
30120 PR tree-optimization/70005
30121 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
30122 where an object with a boolean range is compared against a value
30123 outside [0..1].
30124
30125 PR tree-optimization/69999
30126 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
30127 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
30128 loop cleanups.
30129
30130 2016-02-29 Richard Biener <rguenther@suse.de>
30131
30132 PR tree-optimization/69994
30133 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
30134 (get_unary_op): Look through nop conversions.
30135 (ops_equal_values_p): New function, look for equality diregarding
30136 nop conversions.
30137 (eliminate_plus_minus_pair): Use ops_equal_values_p
30138 (repropagate_negates): Do not use get_unary_op here.
30139
30140 2016-02-29 Martin Liska <mliska@suse.cz>
30141
30142 * system.h: Poison ENABLE_CHECKING macro.
30143
30144 2016-02-29 Martin Liska <mliska@suse.cz>
30145
30146 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
30147 is presented in dump flags.
30148 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
30149 (hsa_regalloc): Likewise.
30150
30151 2016-02-19 Richard Biener <rguenther@suse.de>
30152
30153 PR tree-optimization/69980
30154 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
30155 permutation of those we need to keep.
30156
30157 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
30158
30159 PR target/69706
30160 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
30161 (NWORDS_UP): ...this
30162 (init_cumulative_args): Minor tweaks.
30163 (sparc_promote_function_mode): Likewise.
30164 (scan_record_type): Delete.
30165 (traverse_record_type): New function template.
30166 (classify_data_t): New structure type.
30167 (classify_registers): New inline function.
30168 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
30169 exhausted. Instantiate traverse_record_type on classify_registers and
30170 deal with the case of a structure passed in slot #15 with no FP field
30171 in the first word.
30172 (assign_data_t): New structure type.
30173 (compute_int_layout): New static function.
30174 (compute_fp_layout): Likewise.
30175 (count_registers): New inline function.
30176 (assign_int_registers): New static function.
30177 (assign_fp_registers): Likewise.
30178 (assign_registers): New inline function.
30179 (function_arg_record_value_1): Delete.
30180 (function_arg_record_value_2): Likewise.
30181 (function_arg_record_value_3): Likewise.
30182 (function_arg_record_value): Adjust to above changes. Instantiate
30183 traverse_record_type on count_registers to first count the number of
30184 registers to be used and then on assign_registers to assign them.
30185 (function_arg_union_value): Adjust to above renaming.
30186 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
30187 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
30188 case of a structure passed in slot #15
30189 (sparc_function_arg_advance): Likewise.
30190 (function_arg_padding): Minor tweak.
30191
30192 2016-02-29 Richard Biener <rguenther@suse.de>
30193
30194 PR tree-optimization/69720
30195 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
30196 the adjustment_def path for possibly vectorized defs.
30197 (vect_create_epilog_for_reduction): Handle vectorized initial
30198 defs properly.
30199
30200 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
30201
30202 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
30203
30204 2016-02-27 Jeff Law <law@redhat.com>
30205
30206 Revert
30207 2016-02-26 Richard Biener <rguenther@suse.de>
30208 Jeff Law <law@redhat.com>
30209
30210 PR tree-optimization/69740
30211 * cfghooks.c (remove_edge): Request loop fixups if we delete
30212 an edge that might turn an irreducible loop into a natural
30213 loop.
30214
30215 2016-02-27 Jakub Jelinek <jakub@redhat.com>
30216
30217 PR rtl-optimization/69896
30218 * tree-vect-generic.c (get_compute_type): Avoid single element
30219 vector types.
30220
30221 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
30222
30223 Rename the AArch64 tuning option and related functions to enable the
30224 Newton series for the reciprocal square root to reflect its
30225 approximative characteristic.
30226
30227 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
30228 function to "aarch64_emit_approx_rsqrt".
30229 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
30230 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
30231 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
30232 (xgene1_tunings): Likewise.
30233 (use_rsqrt_p): Likewise.
30234 (aarch64_emit_swrsqrt): Use new function name.
30235 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
30236 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
30237 text explaining this option.
30238 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
30239
30240 2016-02-26 Jakub Jelinek <jakub@redhat.com>
30241
30242 PR target/69969
30243 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
30244 complain about -mallow-movmisalign without -mvsx if
30245 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
30246
30247 2016-02-26 Joel Sherrill <joel@rtems.org>
30248
30249 * config.gcc: Add x86_64-*-rtems*.
30250 * config/i386/rtems-64.h: New file.
30251
30252 2016-02-26 Joel Sherrill <joel@rtems.org>
30253
30254 * config.gcc: Add aarch64-*-rtems*.
30255 * config/aarch64/rtems.h: New file.
30256
30257 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
30258
30259 PR target/69946
30260 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
30261 shift amount using %h. Add comment.
30262
30263 2016-02-26 Richard Biener <rguenther@suse.de>
30264 Jeff Law <law@redhat.com>
30265
30266 PR tree-optimization/69740
30267 * cfghooks.c (remove_edge): Request loop fixups if we delete
30268 an edge that might turn an irreducible loop into a natural
30269 loop.
30270
30271 2016-02-26 Martin Jambor <mjambor@suse.cz>
30272
30273 PR middle-end/69920
30274 * tree-sra.c (sra_modify_assign): Do not remove loads of
30275 uninitialized aggregates to SSA_NAMEs.
30276
30277 2016-02-26 Richard Henderson <rth@redhat.com>
30278
30279 PR target/69709
30280 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
30281 pseudo in case the target rtx matches the source of the left
30282 shift.
30283
30284 2016-02-26 Martin Jambor <mjambor@suse.cz>
30285
30286 PR hsa/69568
30287 * hsa.h (hsa_type_packed_p): Declare.
30288 * hsa.c (hsa_type_packed_p): New function.
30289 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
30290 loads.
30291 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
30292 * hsa-brig.c (emit_basic_insn): Likewise.
30293
30294 2016-02-26 Martin Jambor <mjambor@suse.cz>
30295
30296 pr hsa/69674
30297 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
30298 pointers.
30299 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
30300
30301 2016-02-26 Martin Jambor <mjambor@suse.cz>
30302
30303 * hsa.h (is_a_helper): New overload for hsa_op_immed for
30304 hsa_op_with_type operands.
30305 (hsa_unsigned_type_for_type): Declare.
30306 * hsa.c (hsa_unsigned_type_for_type): New function.
30307 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
30308 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
30309 the finalizer. Do not emit extra move.
30310
30311 2016-02-26 Martin Jambor <mjambor@suse.cz>
30312
30313 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
30314 atomic operations in private segment.
30315
30316 2016-02-26 Martin Jambor <mjambor@suse.cz>
30317
30318 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
30319 statements to wi->info. Also disallow omp simd constructs.
30320 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
30321 for not gridifying. Dump special string for omp_for.
30322
30323 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30324
30325 PR target/69245
30326 * config/aarch64/aarch64.c (aarch64_set_current_function):
30327 Save/restore target globals when switching to
30328 target_option_default_node.
30329
30330 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30331
30332 PR target/69613
30333 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
30334 Return 0 if !SHIFT_COUNT_TRUNCATED.
30335
30336 2016-02-26 Jakub Jelinek <jakub@redhat.com>
30337 Eric Botcazou <ebotcazou@adacore.com>
30338
30339 PR rtl-optimization/69891
30340 * dse.c (scan_insn): If we can't figure out memset arguments
30341 or they are non-constant, call clear_rhs_from_active_local_stores.
30342
30343 2016-02-26 Martin Liska <mliska@suse.cz>
30344
30345 * doc/extend.texi: Mention clog10, clog10f an clog10l
30346 in Builtins section.
30347
30348 2016-02-26 Martin Liska <mliska@suse.cz>
30349
30350 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
30351 CHECKING_P.
30352 (resolve_args_picking_1): Likewise.
30353 * dwarf2out.h (struct GTY): Likewise.
30354
30355 2016-02-26 Martin Liska <mliska@suse.cz>
30356
30357 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
30358 with flag_checking.
30359 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
30360
30361 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
30362 Martin Liska <mliska@suse.cz>
30363
30364 * doc/install.texi: Mention --enable-valgrind-annotations.
30365
30366 2016-02-26 Richard Biener <rguenther@suse.de>
30367
30368 PR tree-optimization/69551
30369 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
30370 looking through aliases adjust DECL_PT_UID to refer to the
30371 ultimate alias target.
30372
30373 2016-02-25 Martin Liska <mliska@suse.cz>
30374
30375 PR middle-end/69919
30376 * alloc-pool.c (after_memory_report): New variable.
30377 * alloc-pool.h (base_pool_allocator ::release): Do not use
30378 the infrastructure if after_memory_report.
30379 * toplev.c (toplev::main): Mark after memory report.
30380
30381 2016-02-25 Richard Biener <rguenther@suse.de>
30382
30383 PR tree-optimization/48795
30384 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
30385
30386 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
30387
30388 PR driver/68463
30389 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
30390 offloading is enabled and -fopenacc or -fopenmp is specified.
30391 (CRTOFFLOADEND): Likewise.
30392 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
30393 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
30394 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
30395 (offload_objects_file_name): New static var.
30396 (tool_cleanup): Remove offload_objects_file_name file.
30397 (find_offloadbeginend): Replace with ...
30398 (find_crtoffloadtable): ... this.
30399 (run_gcc): Remove offload_argc and offload_argv.
30400 Get offload_objects_file_name from -foffload-objects=... option.
30401 Read names of object files with offload from this file, pass them to
30402 compile_images_for_offload_targets. Don't call find_offloadbeginend and
30403 don't pass offloadbegin and offloadend to the linker. Don't pass
30404 offload non-LTO files to the linker, because now they're not claimed.
30405
30406 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
30407
30408 PR ipa/69630
30409 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
30410 on builtin_unreachable.
30411
30412 2016-02-25 Jakub Jelinek <jakub@redhat.com>
30413
30414 PR rtl-optimization/69896
30415 * regcprop.c: Include cfgrtl.h.
30416 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
30417 than remembered mode, either delete it (if noop_move_p), or
30418 treat like copy_p but not noop_p instruction.
30419
30420 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30421
30422 PR debug/69705
30423 * dwarf2out.c (gen_variable_die): Work around buggy LTO
30424 - allow NULL decl for Fortran DW_TAG_common_block variables.
30425
30426 2016-02-24 Jason Merrill <jason@redhat.com>
30427
30428 * common.opt (flifetime-dse): Add -flifetime-dse=1.
30429
30430 2016-02-24 Richard Biener <rguenther@suse.de>
30431 Jakub Jelinek <jakub@redhat.com>
30432
30433 PR middle-end/69760
30434 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
30435 conditionally executed ops to well-defined overflow behavior.
30436
30437 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30438
30439 PR middle-end/69915
30440 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
30441 elements.
30442
30443 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30444
30445 PR rtl-optimization/69886
30446 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
30447 argument. Use it when checking validity of set instructions.
30448 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
30449 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
30450 callsite.
30451 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
30452 * store-motion.c (find_moveable_store): Update
30453 can_assign_to_reg_without_clobbers_p callsite.
30454
30455 2016-02-24 Richard Biener <rguenther@suse.de>
30456
30457 PR middle-end/68963
30458 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
30459 bogus check.
30460 (record_nonwrapping_iv): Do not fall back to the low/high bound
30461 for non-constant IV bases if the stmt is not always executed.
30462
30463 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30464
30465 * config/arm/arm-cores.def (cortex-a32): New entry.
30466 * config/arm/arm-tables.opt: Regenerate.
30467 * config/arm/arm-tune.md: Regenerate.
30468 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
30469 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
30470 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
30471 for -mcpu and -mtune.
30472
30473 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30474
30475 PR target/69875
30476 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
30477 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
30478 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
30479 (atomic_loaddi_1): Delete.
30480 (atomic_loaddi): Rewrite expander using the above changes.
30481
30482 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30483
30484 PR c/69918
30485 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
30486 2 to 3.
30487
30488 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30489 Richard Biener <rguenth@suse.de>
30490
30491 PR middle-end/69909
30492 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
30493 set_mem_attributes if tem is SSA_NAME which got expanded
30494 as a MEM.
30495
30496 2016-02-24 Richard Biener <rguenther@suse.de>
30497
30498 PR tree-optimization/69907
30499 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
30500 end of permutations for BB vectorization.
30501
30502 2016-02-24 Christian Bruel <christian.bruel@st.com>
30503
30504 * config/arm/arm-c.c (arm_option_override): Initialize
30505 target_option_current_node.
30506 * config/arm/arm.c (arm_pragma_target_parse): Replace
30507 build_target_option_node call by target_option_current_node.
30508 Set target_option_current_node.
30509 Fix comments.
30510
30511 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
30512
30513 PR target/69810
30514 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
30515 define_insn_and_split to define_insn.
30516 (zero_extendqi<mode>2_dot2): Same.
30517 (extendqi<mode>2_dot): Same.
30518 (extendqi<mode>2_dot2): Same.
30519
30520 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
30521
30522 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
30523 and add bypass for AES{D,E} and AESMC pairs.
30524 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
30525 and AESMC pairs.
30526
30527 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
30528
30529 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
30530 series for reciprocal square root in Exynos M1.
30531
30532 2016-02-23 Martin Sebor <msebor@redhat.com>
30533
30534 PR c/69759
30535 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
30536 __builtin_alloca_with_align.
30537
30538 2016-02-23 Richard Henderson <rth@redhat.com>
30539
30540 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
30541 (ix86_register_pragmas): Remove __seg_tls.
30542 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
30543 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
30544 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
30545 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
30546 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
30547 * doc/extend.texi (__seg_tls): Remove item.
30548
30549 2016-02-23 Richard Biener <rguenther@suse.de>
30550
30551 * alloc-pool.h (struct allocation_object): Make id member
30552 conditional on CHECKING_P again.
30553 (get_instance): Adjust.
30554 (base_pool_allocator): Likewise.
30555
30556 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
30557
30558 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
30559 (parallelize_loops): In OpenACC kernels mode, set n_threads to
30560 zero.
30561 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
30562 flag_openacc.
30563 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
30564
30565 2016-02-23 Richard Biener <rguenther@suse.de>
30566
30567 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
30568 * bitmap.h (struct bitmap_usage): Likewise.
30569 (bitmap_move): Declare.
30570 * bitmap.c (register_overhead): Take size_t argument.
30571 (bitmap_move): New function.
30572 * df-problems.c (df_rd_transfer_function): Use bitmap_move
30573 to properly account overhead.
30574 * tree.c (free_node): Use tree_size.
30575
30576 2016-02-23 Jakub Jelinek <jakub@redhat.com>
30577
30578 PR c++/69902
30579 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
30580 when inverting comparison.
30581
30582 PR c/69900
30583 * common.opt (Wunreachable-code): Add Warning flag.
30584
30585 2016-02-23 Mark Wielaard <mjw@redhat.com>
30586 Jakub Jelinek <jakub@redhat.com>
30587
30588 PR c/69911
30589 * cgraphunit.c (check_global_declaration): Check main_input_filename
30590 and DECL_SOURCE_FILE are not NULL.
30591
30592 2016-02-23 Martin Jambor <mjambor@suse.cz>
30593
30594 PR tree-optimization/69666
30595 * tree-sra.c (sra_modify_assign): Do not attempt to create
30596 default_def replacements for unscalarizable regions.
30597
30598 2016-02-20 Mark Wielaard <mjw@redhat.com>
30599
30600 PR c/28901
30601 * cgraphunit.c (check_global_declaration): Check level of
30602 warn_unused_const_variable and main_input_filename.
30603 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
30604 (-Wunused-variable): For C implies -Wunused-const-variable=1.
30605 (-Wunused-const-variable): Explain levels 1 and 2.
30606
30607 2016-02-22 Jakub Jelinek <jakub@redhat.com>
30608
30609 PR target/69888
30610 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
30611 identical arguments. Formatting and spelling fixes.
30612
30613 PR target/69885
30614 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
30615 be specified.
30616
30617 PR target/69894
30618 PR target/69895
30619 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
30620 and m68k-devices.def.
30621 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
30622 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
30623
30624 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
30625
30626 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
30627 and HImode registers.
30628
30629 2016-02-22 Richard Biener <rguenther@suse.de>
30630
30631 PR tree-optimization/69882
30632 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
30633 preserve permutations present because of gaps.
30634 (vect_supported_load_permutation_p): Always continue checking
30635 permutations after vect_attempt_slp_rearrange_stmts.
30636
30637 2016-02-22 Bin Cheng <bin.cheng@arm.com>
30638
30639 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
30640 min_profitable_estimate, rather than min_profitable_iters.
30641
30642 2016-02-22 Jakub Jelinek <jakub@redhat.com>
30643
30644 PR target/69885
30645 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
30646 SImode for last match_operand.
30647
30648 2016-02-22 Martin Liska <mliska@suse.cz>
30649
30650 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
30651 return bitsize - 1 as the return value.
30652
30653 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
30654
30655 PR target/69806
30656 PR target/54089
30657 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
30658 Handle negative shift counts.
30659 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
30660 force_reg on the shift constant.
30661 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
30662 (lshrsi3_d): Handle negative shift counts.
30663
30664 2016-02-22 Richard Biener <rguenther@suse.de>
30665 Tom de Vries <tom@codesourcery.com>
30666
30667 * graph.c: Include dumpfile.h.
30668 (print_graph_cfg): Split into three overloads.
30669 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
30670
30671 2016-02-22 Tom de Vries <tom@codesourcery.com>
30672
30673 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
30674 dump-fn.
30675
30676 2016-02-22 Richard Biener <rguenther@suse.de>
30677
30678 PR ipa/37448
30679 * ipa-inline-transform.c (inline_call): When not updating
30680 overall summaries adjust self size by the growth estimate.
30681 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
30682 hash-set, do not update overall summaries here. Renamed from ...
30683 (inline_to_all_callers): ... this which is now wrapping the
30684 above and performing delayed overall summary update.
30685 (early_inline_small_functions): Delay updating of the overall
30686 summary.
30687
30688 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
30689
30690 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
30691 variable.
30692
30693 2016-02-19 Jakub Jelinek <jakub@redhat.com>
30694
30695 PR driver/69805
30696 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
30697 :%* in %:gt() argument.
30698 (greater_than_spec_func): Adjust for expecting only numbers,
30699 if there are more than two numbers, compare the last two.
30700
30701 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
30702
30703 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
30704 -Wnarrowing with -std.
30705
30706 2016-02-19 Jakub Jelinek <jakub@redhat.com>
30707
30708 PR c++/69851
30709 * expr.c (store_field): Don't use bit-field path if exp is
30710 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
30711 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
30712 and the assignment can be performed by bitwise copy. Formatting
30713 fix.
30714
30715 PR middle-end/69838
30716 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
30717 call copy_reg_eh_region_note_forward on before and/or after sequences
30718 and remove note from insn if it no longer can throw.
30719
30720 PR target/69820
30721 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
30722 if TARGET_AVX512BW.
30723
30724 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30725
30726 * config/s390/vector.md: Add missing commutative operand markers
30727 to the patterns which qualify for one.
30728 * config/s390/vx-builtins.md: Likewise.
30729
30730 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30731
30732 * config/s390/vector.md (VI, VI_QHS): Add single element vector
30733 types to mode iterators.
30734 (vec_double): ... and mode attribute.
30735 * config/s390/vx-builtins.md (non_vec_int): Likewise.
30736
30737 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30738
30739 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
30740 Change the predicate of op2 from nonimmediate to general and let
30741 reload fix it if necessary.
30742
30743 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30744
30745 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
30746
30747 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30748
30749 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
30750 mode.
30751
30752 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30753
30754 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
30755 * config/s390/s390.c (s390_expand_vec_movstr): New function.
30756 * config/s390/s390.md ("movstr<P:mode>"): Call
30757 s390_expand_vec_movstr.
30758
30759 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30760
30761 * config/s390/s390.md: Add missing output modifier for operand 1
30762 to print it as address properly.
30763
30764 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30765
30766 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
30767 * config/s390/2964.md: New file.
30768 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
30769 of insn grouping attributes depending on the CPU level.
30770 (s390_get_unit_mask): New function.
30771 (s390_sched_score): Remove the OOO from the scheduling macros.
30772 Add loop to calculate a score for the instruction mix.
30773 (s390_sched_reorder): Likewise plus improve debug output.
30774 (s390_sched_variable_issue): Rename macros as above. Calculate
30775 the unit distances after actually scheduling an insn. Improve
30776 debug output.
30777 (s390_sched_init): Clear last_scheduled_unit_distance array.
30778 * config/s390/s390.md: Include 2964.md.
30779
30780 2016-02-18 Jakub Jelinek <jakub@redhat.com>
30781
30782 PR target/69671
30783 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
30784 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
30785 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
30786 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
30787 *avx512f_<code>v8div16qi2_mask_1): New insns.
30788
30789 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
30790
30791 PR target/68404
30792 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
30793 2016-02-09 change.
30794
30795 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
30796 earlyclobber from target. Use wF constraint for fused memory
30797 address.
30798 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
30799
30800 2016-02-18 Jakub Jelinek <jakub@redhat.com>
30801 Martin Liska <mliska@suse.cz>
30802
30803 PR sanitizer/69863
30804 * cfgexpand.c (asan_sanitize_stack_p): New function.
30805 (partition_stack_vars): Use the function.
30806 (expand_stack_vars): Likewise.
30807 (defer_stack_allocation): Likewise.
30808 (expand_used_vars): Likewise.
30809
30810 2016-02-18 Richard Biener <rguenther@suse.de>
30811
30812 PR middle-end/69553
30813 * fold-const.c (operand_equal_p): Properly compare offsets for
30814 IMAGPART_EXPR and ARRAY_REF.
30815
30816 2016-02-18 Nick Clifton <nickc@redhat.com>
30817
30818 PR target/62254
30819 PR target/69610
30820 * config/arm/arm.c (arm_option_override_internal): Disable
30821 interworking if the target does not support thumb instructions.
30822 (arm_reload_in_hi): Handle the case where a register to register
30823 move needs reloading because there is no simple pattern to handle
30824 it.
30825 (arm_reload_out_hi): Likewise.
30826
30827 2016-02-18 Richard Biener <rguenther@suse.de>
30828
30829 PR middle-end/69854
30830 * match.pd: Don't use fold_binary or fold_unary for folding
30831 constants.
30832
30833 2016-02-17 Jakub Jelinek <jakub@redhat.com>
30834
30835 PR c++/69850
30836 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
30837 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
30838 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
30839 warn on gimple_no_warning_p statements.
30840
30841 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
30842
30843 * doc/extend.texi (C++ Attributes): Correct description of
30844 warn_unused type attribute.
30845
30846 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30847
30848 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
30849 correct instruction.
30850
30851 2016-02-17 Richard Biener <rguenther@suse.de>
30852
30853 PR rtl-optimization/69609
30854 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
30855 (find_traces_1_round): When ending a trace update cached priority
30856 of successors.
30857 (bb_to_key): Use cached priority when available.
30858 (copy_bb): Initialize cached priority.
30859 (reorder_basic_blocks_software_trace_cache): Likewise.
30860
30861 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30862
30863 PR target/69161
30864 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
30865 New predicate.
30866 (aarch64_comparison_operator): Break overly long line into two.
30867 (aarch64_comparison_operation): Likewise.
30868 * config/aarch64/aarch64.md (cstorecc4): Use
30869 aarch64_comparison_operator_mode instead of
30870 aarch64_comparison_operator.
30871 (cstore<mode>4): Likewise.
30872 (aarch64_cstore<mode>): Likewise.
30873 (*cstoresi_insn_uxtw): Likewise.
30874 (cstore<mode>_neg): Likewise.
30875 (*cstoresi_neg_uxtw): Likewise.
30876
30877 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30878
30879 PR target/69161
30880 * config/arm/predicates.md (arm_comparison_operator_mode):
30881 New predicate.
30882 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
30883 instead of arm_comparison_operator.
30884 (*mov_negscc): Likewise.
30885 (*mov_notscc): Likewise.
30886 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
30887 (*thumb2_mov_negscc): Likewise.
30888 (*thumb2_mov_negscc_strict_it): Likewise.
30889 (*thumb2_mov_notscc): Likewise.
30890 (*thumb2_mov_notscc_strict_it): Likewise.
30891
30892 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
30893
30894 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
30895 Add missing return.
30896
30897 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
30898
30899 * config/visium/visium.c (machine_libfunc_index): New enum.
30900 (machine_libfuncs): New structure.
30901 (visium_libfuncs): New static variable.
30902 (TARGET_INIT_LIBFUNCS): Define to...
30903 (visium_init_libfuncs): ...this. New function.
30904 (expand_block_move_4): Use the appropriate libfunc.
30905 (expand_block_move_2): Likewise.
30906 (expand_block_move_1): Likewise.
30907 (expand_block_set_4): Likewise.
30908 (expand_block_set_2): Likewise.
30909 (expand_block_set_1): Likewise.
30910 (visium_trampoline_init): Likewise.
30911
30912 2016-02-17 Nick Clifton <nickc@redhat.com>
30913
30914 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
30915 TI's devices.csv file as of March 2016.
30916
30917 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
30918
30919 PR Target/48344
30920 * opts-global.c (handle_common_deferred_options): Introduce and
30921 initialize two global variables to remember command-line options
30922 specifying a stack-limiting register.
30923 * opts.h: Add extern declarations of the two new global variables.
30924 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
30925 variable based on the values of the two new global variables.
30926
30927 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30928
30929 PR c/69835
30930 * common.opt (Wnonnull-compare): New warning.
30931 * doc/invoke.texi (-Wnonnull): Remove text about comparison
30932 of arguments against NULL.
30933 (-Wnonnull-compare): Document.
30934 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
30935 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
30936 * passes.def (pass_warn_nonnull_compare): Add.
30937 * gimple-ssa-nonnull-compare.c: New file.
30938
30939 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30940
30941 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
30942 AARCH64_EXTRA_TUNE_RECIP_SQRT.
30943
30944 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30945
30946 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
30947 reciprocal sqrt for -mlow-precision-recip-sqrt.
30948
30949 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30950 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30951
30952 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
30953 always use lane loads to construct non-constant vectors.
30954
30955 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30956
30957 * config/aarch64/aarch64.md
30958 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
30959 constraints for operand 3.
30960 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
30961
30962 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30963 Richard Biener <rguenther@suse.de>
30964
30965 PR tree-optimization/69820
30966 * tree-vect-patterns.c (type_conversion_p): Return false if
30967 *orig_type is unsigned single precision or boolean.
30968 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
30969 Formatting fix.
30970
30971 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30972
30973 PR rtl-optimization/69764
30974 PR rtl-optimization/69771
30975 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
30976 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
30977
30978 2016-02-16 Richard Biener <rguenther@suse.de>
30979
30980 PR tree-optimization/69776
30981 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
30982 sets from caller.
30983 (indirect_refs_may_alias_p): Likewise.
30984 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
30985 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
30986 according to tbaa_p.
30987 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
30988 (optimize_stmt): For redundant store discovery do not allow tbaa.
30989
30990 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
30991
30992 PR tree-optimization/69714
30993 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
30994 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
30995
30996 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
30997
30998 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
30999 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
31000 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
31001 * config/arc/arc.c (arc_init): Check FPU options.
31002 (get_arc_condition_code): Handle new CC_FPU* modes.
31003 (arc_select_cc_mode): Likewise.
31004 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
31005 register pair only. Allow access for ARCv2 accumulator.
31006 (gen_compare_reg): Whenever we have FPU support use FPU compare
31007 instructions.
31008 (arc_reorg): Don't generate brcc insns when FPU compare
31009 instructions are involved.
31010 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
31011 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
31012 floating point emulation.
31013 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
31014 (REVERSE_CONDITION): Add new CC_FPU* modes.
31015 (TARGET_FP_SP_BASE): Define.
31016 (TARGET_FP_DP_BASE): Likewise.
31017 (TARGET_FP_SP_FUSED): Likewise.
31018 (TARGET_FP_DP_FUSED): Likewise.
31019 (TARGET_FP_SP_CONV): Likewise.
31020 (TARGET_FP_DP_CONV): Likewise.
31021 (TARGET_FP_SP_SQRT): Likewise.
31022 (TARGET_FP_DP_SQRT): Likewise.
31023 (TARGET_FP_DP_AX): Likewise.
31024 * config/arc/arc.md (ARCV2_ACC): New constant.
31025 (type): New fpu type attribute.
31026 (SDF): Conditional iterator.
31027 (cstore<mode>, cbranch<mode>): Change expand condition.
31028 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
31029 handles FPU/FPX cases as well.
31030 * config/arc/arc.opt (mfpu): New option.
31031 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
31032 Renamed.
31033 (adddf3, muldf3, subdf3): Removed.
31034 * config/arc/predicates.md (proper_comparison_operator): Recognize
31035 CC_FPU* modes.
31036 * config/arc/fpu.md: New file.
31037 * doc/invoke.texi (ARC Options): Document mfpu option.
31038
31039 2016-02-16 Richard Biener <rguenther@suse.de>
31040
31041 PR rtl-optimization/69291
31042 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
31043 noce_operand_ok check.
31044
31045 2016-02-16 Tom de Vries <tom@codesourcery.com>
31046
31047 PR lto/67709
31048 * omp-low.c (simd_clone_create): Remove call to
31049 symtab->call_cgraph_insertion_hooks.
31050
31051 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31052
31053 PR tree-optimization/69802
31054 * tree-ssa-reassoc.c (update_range_test): If op is
31055 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
31056 op == 1 test of precision 1 integral op, otherwise handle
31057 that case as op itself. Fix up formatting.
31058 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
31059 up formatting.
31060
31061 2016-02-16 Richard Biener <rguenther@suse.de>
31062
31063 PR tree-optimization/69586
31064 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
31065 types for conversion sources.
31066
31067 2016-02-16 Richard Biener <rguenther@suse.de>
31068
31069 PR middle-end/69801
31070 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
31071 mask OEP_ADDRESS_OF.
31072
31073 2016-02-16 Alan Modra <amodra@gmail.com>
31074
31075 PR target/68973
31076 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
31077 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
31078 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
31079 (p8_mtvsrwz): New.
31080 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
31081 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
31082 (p8_fmrgow_<mode>): Likewise.
31083 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
31084 changes.
31085 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
31086 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
31087 to use movdi_internal64. Remove op0_di.
31088 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
31089
31090 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
31091
31092 Add support for the FCCMP insn types
31093
31094 * config/aarch64/aarch64.md (fccmp): Change insn type.
31095 (fccmpe): Likewise.
31096 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
31097 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
31098 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
31099 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
31100 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
31101 * config/arm/types.md (fccmps): Add new insn type.
31102 (fccmpd): Likewise.
31103
31104 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
31105
31106 * alias.c (get_alias_set): Fix a typo in comment.
31107
31108 2016-02-15 Richard Biener <rguenther@suse.de>
31109
31110 PR tree-optimization/69595
31111 * match.pd: Complete range test simplification to true.
31112
31113 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
31114
31115 PR rtl-optimization/69648
31116 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
31117 pic_offset_table_rtx.
31118
31119 PR rtl-optimization/69752
31120 * ira.c (update_equiv_regs): When looking for more than a single SET,
31121 also take other side effects into account.
31122
31123 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
31124
31125 * config/s390/s390.c (s390_function_profiler): Add a new sequence
31126 for z900+ CPUs in 31-bit mode.
31127
31128 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
31129
31130 * common/config/s390/s390-common.c (s390_supports_split_stack):
31131 New function.
31132 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
31133 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
31134 * config/s390/s390.c (struct machine_function): New field
31135 split_stack_varargs_pointer.
31136 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
31137 in s390_emit_prologue.
31138 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
31139 vararg pointer.
31140 (morestack_ref): New global.
31141 (SPLIT_STACK_AVAILABLE): New macro.
31142 (s390_expand_split_stack_prologue): New function.
31143 (s390_live_on_entry): New function.
31144 (s390_va_start): Use split-stack vararg pointer if appropriate.
31145 (s390_asm_file_end): Emit the split-stack note sections.
31146 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
31147 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
31148 (UNSPECV_SPLIT_STACK_CALL): New unspec.
31149 (UNSPECV_SPLIT_STACK_DATA): New unspec.
31150 (split_stack_prologue): New expand.
31151 (split_stack_space_check): New expand.
31152 (split_stack_data): New insn.
31153 (split_stack_call): New expand.
31154 (split_stack_call_*): New insn.
31155 (split_stack_cond_call): New expand.
31156 (split_stack_cond_call_*): New insn.
31157
31158 2016-02-15 Richard Biener <rguenther@suse.de>
31159
31160 PR tree-optimization/69783
31161 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31162 Add trivially correct cases.
31163
31164 2016-02-15 Tom de Vries <tom@codesourcery.com>
31165
31166 PR lto/69655
31167 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
31168 do_force_output.
31169 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
31170
31171 2016-02-15 Richard Biener <rguenther@suse.de>
31172
31173 PR tree-optimization/69776
31174 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
31175 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
31176 indicate whether we can use TBAA to disambiguate against stores.
31177 Use alias-set zero if not.
31178 (visit_reference_op_store): Do not use TBAA when looking up
31179 redundant stores.
31180 * tree-ssa-pre.c (compute_avail): Use TBAA here.
31181 (eliminate_dom_walker::before_dom_children): But not when looking
31182 up redundant stores.
31183
31184 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
31185
31186 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
31187
31188 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31189
31190 * config/i386/znver1.md
31191 (znver1_pop, znver1_pop_mem,
31192 znver1_load_imov_double_store,
31193 znver1_load_imov_direct_store,
31194 znver1_load_imov_direct_load,
31195 znver1_load_imov_double_load): Add new.
31196 (znver1_insn, znver1_insn_load): Add icmov type.
31197 (znver1_sseavx_fma,
31198 znver1_sseavx_fma_load,
31199 znver1_avx256_fma,
31200 znver1_avx256_fma_load): Fix pipe usage.
31201
31202 2016-02-14 Alan Modra <amodra@gmail.com>
31203
31204 PR target/68973
31205 * reload.c (find_reloads_address_1): For pre/post-inc/dec
31206 with an invalid hard reg, reload just the reg not the entire
31207 pre/post-inc/dec address expression.
31208
31209 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
31210
31211 PR target/67260
31212 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
31213 fixed R1_REG scratch reg.
31214 (sibcall_value_pcrel_fdpic): Likewise.
31215
31216 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
31217
31218 PR target/67636
31219 PR target/64345
31220 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
31221
31222 2016-02-12 Walter Lee <walt@tilera.com>
31223
31224 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
31225 * config/tilegx/t-tilegx: Likewise.
31226
31227 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31228
31229 PR other/69554
31230 * diagnostic-show-locus.c (struct line_span): New struct.
31231 (layout::get_first_line): Delete.
31232 (layout::get_last_line): Delete.
31233 (layout::get_num_line_spans): New member function.
31234 (layout::get_line_span): Likewise.
31235 (layout::print_heading_for_line_span_index_p): Likewise.
31236 (layout::get_expanded_location): Likewise.
31237 (layout::calculate_line_spans): Likewise.
31238 (layout::m_first_line): Delete.
31239 (layout::m_last_line): Delete.
31240 (layout::m_line_spans): New field.
31241 (layout::layout): Update comment. Replace m_first_line and
31242 m_last_line with m_line_spans, replacing their initialization
31243 with a call to calculate_line_spans.
31244 (diagnostic_show_locus): When printing source lines and
31245 annotations, rather than looping over a single span
31246 of lines, instead loop over each line_span within
31247 the layout, with an inner loop over the lines within them.
31248 Call the context's start_span callback when changing line spans.
31249 * diagnostic.c (diagnostic_initialize): Initialize start_span.
31250 (diagnostic_build_prefix): Break out the building of the location
31251 part of the string into...
31252 (diagnostic_get_location_text): ...this new function, rewriting
31253 it from nested ternary expressions to a sequence of "if"
31254 statements.
31255 (default_diagnostic_start_span_fn): New function.
31256 * diagnostic.h (diagnostic_start_span_fn): New typedef.
31257 (diagnostic_context::start_span): New field.
31258 (default_diagnostic_start_span_fn): New prototype.
31259
31260 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31261
31262 PR driver/69779
31263 * gcc.c (driver::finalize): Fix cleanup of "specs".
31264
31265 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31266
31267 PR driver/69265
31268 PR driver/69453
31269 * gcc.c (driver::driver): Initialize m_option_suggestions.
31270 (driver::~driver): Clean up m_option_suggestions.
31271 (suggest_option): Convert to...
31272 (driver::suggest_option): ...this, and split out into
31273 driver::build_option_suggestions and find_closest_string.
31274 (driver::build_option_suggestions): New function, from
31275 first half of suggest_option. Special-case
31276 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
31277 the sanitizer_opts array. For options of enum types, add the
31278 various enum values to the candidate strings.
31279 (driver::handle_unrecognized_options): Remove "const".
31280 * gcc.h (driver::handle_unrecognized_options): Likewise.
31281 (driver::build_option_suggestions): New decl.
31282 (driver::suggest_option): New decl.
31283 (driver::m_option_suggestions): New field.
31284 * opts-common.c (add_misspelling_candidates): New function.
31285 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
31286 and make non-static.
31287 * opts.h (sanitizer_opts): New array decl.
31288 (add_misspelling_candidates): New function decl.
31289 * spellcheck.c (find_closest_string): New function.
31290 * spellcheck.h (find_closest_string): New function decl.
31291
31292 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31293
31294 PR rtl-optimization/69764
31295 PR rtl-optimization/69771
31296 * optabs.c (expand_binop_directly): For shift_optab_p, force
31297 convert_modes with VOIDmode if xop1 has VOIDmode.
31298
31299 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
31300
31301 PR target/69729
31302 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
31303 to correctly determine instrumentation thunks.
31304
31305 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31306
31307 PR ipa/69241
31308 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
31309 type by reference, force lhs on the call.
31310
31311 PR ipa/68672
31312 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
31313 Compute retval and retbnd early in all cases if split_part_return_p
31314 and return_bb is not EXIT. Remove all clobber stmts and reset
31315 all debug stmts that refer to SSA_NAMEs defined in split part,
31316 except if it is retval, in that case replace the old retval with the
31317 lhs of the call to the split part.
31318
31319 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31320
31321 revert:
31322 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31323
31324 PR middle-end/66726
31325 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
31326 whose result is used in PHI.
31327 (maybe_optimize_range_tests): Likewise.
31328 (final_range_test_p): Likweise.
31329
31330 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31331
31332 PR middle-end/66726
31333 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
31334 whose result is used in PHI.
31335 (maybe_optimize_range_tests): Likewise.
31336 (final_range_test_p): Likweise.
31337
31338 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31339
31340 * cgraph.c: Spelling fixes - behaviour -> behavior and
31341 neighbour -> neighbor.
31342 * target.def: Likewise.
31343 * sel-sched.c: Likewise.
31344 * config/mips/mips.c: Likewise.
31345 * config/arc/arc.md: Likewise.
31346 * config/arm/cortex-a57.md: Likewise.
31347 * config/arm/arm.c: Likewise.
31348 * config/arm/neon.md: Likewise.
31349 * config/arm/arm-c.c: Likewise.
31350 * config/vms/vms-c.c: Likewise.
31351 * config/s390/s390.c: Likewise.
31352 * config/i386/znver1.md: Likewise.
31353 * config/i386/i386.c: Likewise.
31354 * config/ia64/hpux-unix2003.h: Likewise.
31355 * config/msp430/msp430.md: Likewise.
31356 * config/rx/rx.c: Likewise.
31357 * config/rx/rx.md: Likewise.
31358 * config/aarch64/aarch64-simd.md: Likewise.
31359 * config/aarch64/aarch64.c: Likewise.
31360 * config/nvptx/nvptx.c: Likewise.
31361 * config/bfin/bfin.c: Likewise.
31362 * config/cris/cris.opt: Likewise.
31363 * config/rs6000/rs6000.c: Likewise.
31364 * target.h: Likewise.
31365 * spellcheck.c: Likewise.
31366 * ira-build.c: Likewise.
31367 * tree-inline.c: Likewise.
31368 * builtins.c: Likewise.
31369 * lra-constraints.c: Likewise.
31370 * explow.c: Likewise.
31371 * hwint.h: Likewise.
31372 * targhooks.c: Likewise.
31373 * tree-vect-data-refs.c: Likewise.
31374 * expr.c: Likewise.
31375 * doc/tm.texi: Likewise.
31376 * doc/extend.texi: Likewise.
31377 * doc/install.texi: Likewise.
31378 * doc/md.texi: Likewise.
31379 * tree-ssa-tail-merge.c: Likewise.
31380 * sched-int.h: Likewise.
31381 * match.pd: Likewise.
31382 * sched-ebb.c: Likewise.
31383 * target.def (omit_struct_return_reg): Likewise.
31384 * gimple-ssa-isolate-paths.c: Likewise.
31385 (find_implicit_erroneous_behaviour): Renamed to...
31386 (find_implicit_erroneous_behavior): ... this.
31387 (find_explicit_erroneous_behaviour): Renamed to...
31388 (find_explicit_erroneous_behavior): ... this.
31389 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
31390
31391 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
31392
31393 PR rtl-optimization/64682
31394 PR rtl-optimization/69567
31395 PR rtl-optimization/69737
31396 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
31397 in I2 as well, just lose it.
31398
31399 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31400
31401 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
31402 New variable.
31403 (aarch64_last_printed_tune_string): Likewise.
31404 (aarch64_declare_function_name): Only output .arch assembler
31405 directive if it will be different from the previously output
31406 directive. Same for .tune comment but only if -dA is set.
31407 (aarch64_start_file): New function.
31408 (TARGET_ASM_FILE_START): Define.
31409
31410 2016-02-11 David Malcolm <dmalcolm@redhat.com>
31411
31412 PR plugins/69758
31413 * Makefile.in (PLUGIN_HEADERS): Add params.list.
31414
31415 2016-02-11 Jakub Jelinek <jakub@redhat.com>
31416
31417 PR target/65313
31418 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
31419 -Wmaybe-uninitialized warning.
31420
31421 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
31422
31423 PR target/69713
31424 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
31425
31426 2016-02-11 Richard Biener <rguenther@suse.de>
31427
31428 PR rtl-optimization/69291
31429 * ifcvt.c (noce_try_store_flag_constants): Do not allow
31430 subexpressions affected by changing the result.
31431
31432 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
31433
31434 PR target/69148
31435 * lra-constraints.c (curr_insn_transform): Find in/out operands
31436 for secondary memory moves. Update dups.
31437
31438 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
31439
31440 PR tree-optimization/69652
31441 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
31442 to nested loop, did source re-formatting, skip debug statements,
31443 add check on statement with volatile operand, remove dead scalar
31444 statements.
31445
31446 2016-02-10 Jakub Jelinek <jakub@redhat.com>
31447 Patrick Palka <ppalka@gcc.gnu.org>
31448
31449 PR ipa/69241
31450 PR c++/69649
31451 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
31452 calls if the return type is TREE_ADDRESSABLE.
31453 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
31454 * ipa-split.c (split_function): Fix doubled "we" in comment.
31455 Use void return type for the split part even if
31456 !split_point->split_part_set_retval.
31457
31458 2016-02-10 Bin Cheng <bin.cheng@arm.com>
31459
31460 PR tree-optimization/68021
31461 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
31462 when computing the value of biv cand by itself.
31463
31464 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
31465
31466 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
31467 (cortexa57_tunings): Likewise.
31468 (cortexa72_tunings): Likewise.
31469 (arch_macro_fusion_pair_p): Add support for AES fusion.
31470 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
31471 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
31472 Allow virtual registers before reload so early scheduling works.
31473 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
31474 correct latency and pipeline.
31475 (cortex_a57_crypto_complex): Likewise.
31476 (cortex_a57_crypto_xor): Likewise.
31477 (define_bypass): Add AES bypass.
31478
31479 2016-02-10 Richard Biener <rguenther@suse.de>
31480
31481 PR tree-optimization/69726
31482 * passes.def: Add DCE pass before late uninit.
31483 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
31484 really fixup if-conversions job.
31485
31486 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
31487
31488 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
31489 (arm_cortex_a57_tune): Likewise.
31490 (aarch_macro_fusion_pair_p): Add support for AES fusion.
31491 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
31492
31493 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
31494
31495 * timevar.def (TV_PHASE_DBGINFO): Delete.
31496 (TV_PHASE_CHECK_DBGINFO): Likewise.
31497 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
31498
31499 2016-02-10 Richard Biener <rguenther@suse.de>
31500
31501 PR tree-optimization/69719
31502 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31503 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
31504
31505 2016-02-09 Andrew Pinski <apinski@cavium.com>
31506
31507 PR tree-opt/69282
31508 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
31509 get_vcond_mask_icode returns false.
31510
31511 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
31512
31513 PR target/68404
31514 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
31515 an ADDIS that adds a pointer to a large constant that sets the
31516 upper16 bits with a load operation.
31517
31518 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
31519
31520 PR target/68532
31521 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
31522 order.
31523 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
31524 endian.
31525 (vzipq_s16): Likewise.
31526 (vzipq_s32): Likewise.
31527 (vzipq_f32): Likewise.
31528 (vzipq_u8): Likewise.
31529 (vzipq_u16): Likewise.
31530 (vzipq_u32): Likewise.
31531 (vzipq_p8): Likewise.
31532 (vzipq_p16): Likewise.
31533
31534 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
31535
31536 PR target/68532
31537 * config/arm/arm.c (neon_endian_lane_map): New function.
31538 (neon_vector_pair_endian_lane_map): New function.
31539 (arm_evpc_neon_vuzp): Allow for big endian lane order.
31540 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
31541 endian.
31542 (vuzpq_s16): Likewise.
31543 (vuzpq_s32): Likewise.
31544 (vuzpq_f32): Likewise.
31545 (vuzpq_u8): Likewise.
31546 (vuzpq_u16): Likewise.
31547 (vuzpq_u32): Likewise.
31548 (vuzpq_p8): Likewise.
31549 (vuzpq_p16): Likewise.
31550
31551 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
31552
31553 PR target/69634
31554 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
31555 debug insns.
31556
31557 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
31558
31559 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
31560 truncate const_int operand 1 to QImode.
31561
31562 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
31563
31564 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
31565 corresponding to an abnormal edge.
31566
31567 2016-02-09 Tom de Vries <tom@codesourcery.com>
31568
31569 PR tree-optimization/69599
31570 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
31571 function.
31572 (find_func_aliases_for_builtin_call, find_func_clobbers)
31573 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
31574 partition.
31575
31576 2016-02-09 Richard Biener <rguenther@suse.de>
31577
31578 PR tree-optimization/69715
31579 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
31580 LHS on calls as non-rewritable.
31581
31582 2016-02-09 Tom de Vries <tom@codesourcery.com>
31583
31584 PR lto/69707
31585 * lto-wrapper.c (append_diag_options): New function.
31586 (compile_offload_image): Call append_diag_options.
31587
31588 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
31589
31590 PR other/69722
31591 * doc/extend.texi (Flag Output Operands): Correct sectioning.
31592 Minor copy-edit to fix verb tenses.
31593
31594 2016-02-08 Jakub Jelinek <jakub@redhat.com>
31595
31596 PR tree-optimization/69209
31597 * ipa-split.c (split_function): If split part is not
31598 returning retval, retval has gimple type but is not
31599 gimple value, force it into a SSA_NAME first.
31600
31601 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
31602
31603 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
31604 outdated section.
31605
31606 2016-02-08 Jason Merrill <jason@redhat.com>
31607
31608 PR c++/69631
31609 * convert.c (convert_to_integer_1): Check dofold on truncation
31610 distribution.
31611 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
31612 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
31613 Rename from *_nofold.
31614 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
31615 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
31616
31617 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
31618
31619 PR target/60410
31620 * tree.c (build_common_tree_nodes): Remove short_double argument.
31621 All callers changed.
31622 * tree.h (build_common_tree_nodes): Adjust declaration.
31623 * doc/invoke.texi (-fshort-double): Remove documentation.
31624 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
31625 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
31626 * lto-wrapper.c (merge_and_complain, append_compiler_options)
31627 (append_linker_options): Don't handle OPT_fshort_double.
31628
31629 PR rtl-optimization/68730
31630 * lra-remat.c (insn_to_cand_activation): New static variable.
31631 (lra_remat): Allocate and free it.
31632 (create_cand): New arg activation. Initialize a field in
31633 insn_to_cand_activation if it is nonnull.
31634 (create_cands): Pass the activation insn to create_cand when making
31635 a candidate involving an output reload. Reorganize code a little.
31636 (do_remat): Keep track of active status of candidates in a separate
31637 bitmap.
31638
31639 2016-02-08 Richard Biener <rguenther@suse.de>
31640
31641 PR tree-optimization/69719
31642 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31643 Properly use absolute of the difference of the two offsets to
31644 compare or adjust the segment length.
31645
31646 2016-02-08 Richard Biener <rguenther@suse.de>
31647 Jeff Law <law@redhat.com>
31648
31649 PR target/68273
31650 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
31651 types for anonymous SSA names.
31652
31653 2016-02-08 Richard Biener <rguenther@suse.de>
31654
31655 PR rtl-optimization/69274
31656 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
31657
31658 2016-02-08 Jeff Law <law@redhat.com>
31659
31660 PR tree-optimization/65917
31661 * tree-ssa-dom.c (record_temporary_equivalences): Record both
31662 equivalences from if (x == y) style conditionals.
31663 (loop_depth_of_name): Remove.
31664 (record_equality): Remove loop depth check.
31665 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
31666 (const_and_copies::record_const_or_copy_raw): New member function.
31667 * tree-ssa-scopedtables.c
31668 (const_and_copies::record_const_or_copy_raw): New, factored out of
31669 (const_and_copies::record_const_or_copy): Call new member function.
31670
31671 2016-02-05 Jeff Law <law@redhat.com>
31672
31673 PR tree-optimization/68541
31674 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
31675 (count_stmts_in_block): New function.
31676 (poor_ifcvt_candidate_code): Likewise.
31677 (is_feasible_trace): Add some heuristics to determine when path
31678 splitting is profitable.
31679 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
31680 is a diamond with a single exit.
31681
31682 2016-02-05 Martin Sebor <msebor@redhat.com>
31683
31684 PR c++/69662
31685 * doc/invoke.texi: Update -Wplacement-new to take an optional
31686 argument.
31687
31688 2016-02-06 Richard Henderson <rth@redhat.com>
31689
31690 PR c/69643
31691 * tree.c (tree_nop_conversion_p): Do not strip casts into or
31692 out of non-standard address spaces.
31693
31694 2016-02-05 Jakub Jelinek <jakub@redhat.com>
31695
31696 PR rtl-optimization/69691
31697 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
31698
31699 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
31700
31701 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
31702 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
31703 (*ieee128_mfvsrd_64bit): Likewise.
31704 (*ieee128_mfvsrd_32bit): Likewise.
31705
31706 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
31707
31708 PR target/69369
31709 Revert r232560:
31710 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
31711
31712 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
31713 instrumented_version.
31714
31715 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
31716
31717 * doc/invoke.texi (Optimize Options): In table of --param options
31718 rename second occurrence of tracer-min-branch-ratio to
31719 tracer-min-branch-probability, rename
31720 tracer-min-branch-ratio-feedback to
31721 tracer-min-branch-probability-feedback and clarify description,
31722 rename sched-spec-state-edge-prob-cutoff to
31723 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
31724 to selsched-insns-to-rename, rename lto-minpartition to
31725 lto-min-partition, delete reorder-blocks-duplicate and
31726 reorder-blocks-duplicate-feedback.
31727
31728 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31729
31730 * config/s390/s390.c (s390_register_info_set_ranges): Remove
31731 superfluous loops.
31732
31733 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
31734
31735 * doc/extend.texi: S/390: Correct some typos.
31736
31737 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31738
31739 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
31740
31741 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31742
31743 PR target/69625
31744 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
31745 (s390_register_info_gprtofpr): Use new macros above.
31746 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
31747 its name.
31748 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
31749 its name. Adjust restore and save gpr ranges.
31750 (s390_register_info_set_ranges): New function.
31751 (s390_register_info): Use new macros above. Call
31752 s390_register_info_set_ranges.
31753 (s390_optimize_register_info): Likewise.
31754 (s390_hard_regno_rename_ok): Use new macros.
31755 (s390_hard_regno_scratch_ok): Likewise.
31756 (s390_emit_epilogue): Likewise.
31757 (s390_can_use_return_insn): Likewise.
31758 (s390_optimize_prologue): Likewise.
31759 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
31760
31761 2016-02-05 Jakub Jelinek <jakub@redhat.com>
31762
31763 PR bootstrap/69677
31764 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
31765 alignment fixes.
31766 (ix86_option_override_internal): Disable TARGET_STV even for
31767 -m{incoming,preferred}-stack-boundary=3.
31768
31769 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31770
31771 * config.gcc: Mark deprecated rtems targets as obsolete.
31772
31773 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
31774
31775 PR rtl-optimization/64682
31776 PR rtl-optimization/69567
31777 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
31778 before I2 only if the register is both used and set in I2.
31779
31780 2016-02-04 DJ Delorie <dj@redhat.com>
31781
31782 * config/msp430/msp430.c (msp430_start_function): Add function type.
31783
31784 2016-02-04 Jakub Jelinek <jakub@redhat.com>
31785
31786 PR fortran/69368
31787 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
31788
31789 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
31790
31791 PR rtl-optimization/69577
31792 Revert:
31793 2015-10-29 Richard Henderson <rth@redhat.com>
31794
31795 PR target/68124
31796 PR rtl-opt/67609
31797 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
31798 sse check to the exact conditions of PR 67609.
31799
31800 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
31801
31802 PR target/69667
31803 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
31804 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
31805 not allowed into the traditional Altivec registers.
31806 (movtd_64bit_nodm): Likewise.
31807 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
31808
31809 2016-02-04 David Malcolm <dmalcolm@redhat.com>
31810
31811 * config/aarch64/cortex-a57-fma-steering.c
31812 (aarch64_register_fma_steering): Remove "static" from arguments
31813 to register_pass.
31814
31815 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
31816
31817 PR target/69619
31818 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
31819 twice when complex.
31820
31821 2016-02-04 Mike Frysinger <vapier@gentoo.org>
31822
31823 * doc/invoke.texi: Delete -mno-fma4.
31824
31825 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
31826
31827 PR rtl-optimization/69577
31828 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
31829 (find_subregs_of_mode): Update accordingly. Iterate over partial
31830 definitions.
31831
31832 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
31833
31834 * config/arm/arm-protos.h (neon_reinterpret): Remove.
31835 * config/arm/arm.c (neon_reinterpret): Remove.
31836 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
31837 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
31838 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
31839 vreinterpretti): Remove.
31840 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
31841 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
31842 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
31843 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
31844 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
31845 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
31846 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
31847 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
31848 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
31849 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
31850 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
31851 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
31852 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
31853 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
31854 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
31855 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
31856 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
31857 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
31858 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
31859 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
31860 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
31861 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
31862 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
31863 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
31864 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
31865 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
31866 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
31867 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
31868 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
31869 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
31870 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
31871 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
31872 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
31873 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
31874 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
31875 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
31876 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
31877 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
31878 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
31879 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
31880 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
31881 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
31882 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
31883 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
31884 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
31885 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
31886 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
31887 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
31888 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
31889 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
31890 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
31891 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
31892 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
31893 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
31894 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
31895 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
31896 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
31897 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
31898 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
31899 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
31900 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
31901 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
31902 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
31903 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
31904 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
31905 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
31906 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
31907 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
31908 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
31909 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
31910 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
31911 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
31912 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
31913 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
31914 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
31915 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
31916 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
31917 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
31918 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
31919 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
31920 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
31921 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
31922 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
31923 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
31924 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
31925 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
31926 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
31927 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
31928 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
31929 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
31930 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
31931 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
31932 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
31933 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
31934 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
31935 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
31936 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
31937 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
31938 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
31939 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
31940 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
31941 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
31942 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
31943
31944 2016-02-04 Martin Liska <mliska@suse.cz>
31945
31946 PR sanitizer/69276
31947 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
31948 that are gimple_store_p.
31949 (maybe_instrument_call): Likewise.
31950
31951 2016-02-04 Bin Cheng <bin.cheng@arm.com>
31952
31953 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
31954 register scaling out of memory reference and comment why.
31955
31956 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31957
31958 PR target/65932
31959 PR target/67714
31960 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
31961 folding the source of a SET.
31962
31963 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31964
31965 PR target/65932
31966 PR target/67714
31967 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
31968 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
31969
31970 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
31971
31972 PR target/65932
31973 PR target/67714
31974 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
31975 HImode.
31976
31977 2016-02-04 Christian Bruel <christian.bruel@st.com>
31978
31979 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
31980 * config/arm/arm.c (arm_set_current_function): Likewise.
31981
31982 2016-02-04 Jakub Jelinek <jakub@redhat.com>
31983 Ilya Enkovich <enkovich.gnu@gmail.com>
31984 H.J. Lu <hongjiu.lu@intel.com>
31985
31986 PR target/69454
31987 * config/i386/i386.c (convert_scalars_to_vector): Remove
31988 stack alignment fixes.
31989 (ix86_option_override_internal): Disable TARGET_STV if stack
31990 might not be aligned enough.
31991 (ix86_minimum_alignment): Assert that TARGET_STV is false.
31992
31993 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
31994
31995 * config/i386/x86-tune.def: Disable default prefetching
31996 for -march=znver1.
31997
31998 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
31999 Vladimir Makarov <vmakarov@redhat.com>
32000
32001 PR target/69461
32002 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
32003 in validating fused toc addresses.
32004
32005 2016-02-03 Jakub Jelinek <jakub@redhat.com>
32006
32007 PR c/69627
32008 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
32009 range->m_caret fields if range->m_show_caret_p is false.
32010
32011 PR target/69644
32012 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
32013 Force oldval into register if it does not satisfy reg_or_short_operand
32014 predicate. Fix up formatting.
32015
32016 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
32017 Alexandre Oliva <aoliva@redhat.com>
32018
32019 PR target/69461
32020 * lra-constraints.c (simplify_operand_subreg): Check additionally
32021 address validity after potential reloading.
32022 (process_address_1): Check insns validity. In case of failure do
32023 nothing.
32024
32025 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
32026
32027 PR target/69118
32028 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
32029 Fix target.
32030
32031 2016-02-02 Jakub Jelinek <jakub@redhat.com>
32032
32033 * wide-int.cc (canonize_uhwi): New function.
32034 (wi::divmod_internal): Use it.
32035
32036 2016-02-02 James Norris <jnorris@codesourcery.com>
32037
32038 * gimplify.c (omp_notice_variable): Add usage check.
32039
32040 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
32041
32042 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
32043 like LE, GE, LT, GT when emitting relational operator.
32044
32045 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
32046
32047 * ira-costs.c (find_costs_and_classes): Add extra argument.
32048 * target.def (ira_change_pseudo_allocno_class): Add parameter.
32049 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
32050 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
32051 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
32052 Add best_class parameter, and return it if not ALL_REGS.
32053 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
32054 Add parameter.
32055 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
32056 Update target hook.
32057
32058 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
32059
32060 * config/aarch64/aarch64.c
32061 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
32062 (aarch64_ira_change_pseudo_allocno_class): New function.
32063
32064 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
32065
32066 PR target/67032
32067 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
32068
32069 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32070
32071 * config/avr/avr.c (avr_option_override): Set
32072 PARAM_ALLOW_STORE_DATA_RACES to 1.
32073
32074 2016-02-02 Richard Biener <rguenther@suse.de>
32075
32076 PR tree-optimization/69595
32077 * match.pd: Add range test simplifications to true/false.
32078
32079 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
32080
32081 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
32082 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
32083 instead.
32084
32085 2016-02-02 Richard Biener <rguenther@suse.de>
32086
32087 PR tree-optimization/69606
32088 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
32089 info on the result before moving a stmt.
32090
32091 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
32092
32093 PR middle-end/68542
32094 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
32095 branch with vector comparison.
32096 * config/i386/sse.md (VI48_AVX): New mode iterator.
32097 (define_expand "cbranch<mode>4): Add support for conditional branch
32098 with vector comparison.
32099 * tree-vect-loop.c (optimize_mask_stores): New function.
32100 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
32101 has_mask_store field of vect_info.
32102 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
32103 vectorized loops having masked stores after vec_info destroy.
32104 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
32105 correspondent macros.
32106 (optimize_mask_stores): Add prototype.
32107
32108 2016-02-02 Alan Modra <amodra@gmail.com>
32109
32110 PR target/69548
32111 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
32112 allow subregs.
32113
32114 2016-02-02 Alan Modra <amodra@gmail.com>
32115
32116 PR target/68662
32117 * config/rs6000/rs6000.c (need_toc_init): New var, set it
32118 whenever toc_label_name used.
32119 (rs6000_file_start): Don't set up toc section here,
32120 (rs6000_output_function_epilogue): do so here instead,
32121 (rs6000_xcoff_file_start): and here.
32122 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
32123 (load_toc_aix_di): Likewise.
32124
32125 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32126
32127 PR rtl-optimization/69592
32128 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
32129 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
32130 (num_sign_bit_copies_binary_arith_p): New inline function.
32131 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
32132
32133 2016-02-01 Jeff Law <law@redhat.com>
32134
32135 PR tree-optimization/69580
32136 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
32137 * tree-ssa-threadbackward.c
32138 (fsm_find_control_statement_thread_paths): Do not try to walk
32139 through large PHI nodes.
32140
32141 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32142
32143 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
32144 when count is incremented above limit, don't analyze further
32145 insns afterwards.
32146
32147 * omp-low.c (oacc_parse_default_dims): Avoid
32148 -Wsign-compare warning, make sure value fits into int
32149 rather than just unsigned int.
32150
32151 2016-02-01 Bin Cheng <bin.cheng@arm.com>
32152
32153 PR tree-optimization/67921
32154 * fold-const.c (split_tree): New parameters. Convert pointer
32155 type variable part to proper type before negating.
32156 (fold_binary_loc): Pass new arguments to split_tree.
32157
32158 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
32159
32160 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
32161 (nvptx_goacc_validate_dims): Extend to handle global defaults.
32162 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
32163 * doc/tm.texti: Rebuilt.
32164 * doc/invoke.texi (fopenacc-dim): Document.
32165 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
32166 (append_compiler_options): Likewise.
32167 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
32168 (oacc_parse_default_dims): New.
32169 (oacc_validate_dims): Add USED arg. Select non-unity default when
32170 possible.
32171 (oacc_loop_fixed_partitions): Return mask of used partitions.
32172 (oacc_loop_auto_partitions): Emit dump info.
32173 (oacc_loop_partition): Return mask of used partitions.
32174 (execute_oacc_device_lower): Parse default dimension arg. Adjust
32175 loop partitioning and validation calls.
32176
32177 2016-02-01 Richard Biener <rguenther@suse.de>
32178
32179 PR middle-end/69556
32180 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
32181
32182 2016-02-01 Richard Biener <rguenther@suse.de>
32183
32184 PR tree-optimization/69574
32185 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
32186 of asserting return chrec_dont_know.
32187
32188 2016-02-01 Martin Liska <mliska@suse.cz>
32189
32190 * mem-stats-traits.h: Add copyright header.
32191 * mem-stats.h: Likewise.
32192
32193 2016-02-01 Richard Biener <rguenther@suse.de>
32194
32195 PR tree-optimization/69579
32196 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
32197 Do not propagate through abnormal PHI results.
32198
32199 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
32200
32201 * postreload.c (reload_cse_simplify): Remove dead code.
32202
32203 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32204
32205 PR rtl-optimization/69570
32206 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
32207 if there is more than one set, not if there is a single set.
32208
32209 2016-02-01 Richard Henderson <rth@redhat.com>
32210
32211 PR rtl-opt/69535
32212 * combine.c (make_compound_operation): When looking through a
32213 subreg, make sure to re-extend to the width of the outer mode.
32214
32215 2016-01-30 Jakub Jelinek <jakub@redhat.com>
32216
32217 PR tree-optimization/69546
32218 * wide-int.cc (wi::divmod_internal): For unsigned division
32219 where both operands fit into uhwi, if o1 is 1 and o0 has
32220 msb set, if divident_prec is larger than bits per hwi,
32221 clear another quotient word and return 2 instead of 1.
32222 Similarly for remainder with msb in HWI set, if dividend_prec
32223 is larger than bits per hwi.
32224
32225 2016-01-29 Martin Jambor <mjambor@suse.cz>
32226
32227 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
32228 Use short lowercase names.
32229 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
32230 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
32231 acq_rel one. Protect warning agains segfaults if
32232 get_memory_order_name returns NULL.
32233 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
32234 with release semantics. Do not warn if get_memory_order already did.
32235 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
32236 semantics. Fix check for relaxed or acquire semantics. Do not warn
32237 if get_memory_order already did.
32238
32239 2016-01-29 Sebastian Pop <s.pop@samsung.com>
32240
32241 * doc/install.texi: Document that isl-0.16 is supported.
32242
32243 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
32244
32245 PR target/69299
32246 * config/i386/constraints.md (Bm): Describe as special memory
32247 constraint.
32248 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
32249 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32250 * genpreds.c (struct constraint_data): Add is_special_memory.
32251 (have_special_memory_constraints, special_memory_start): New
32252 static vars.
32253 (special_memory_end): Ditto.
32254 (add_constraint): Add new arg is_special_memory. Add code to
32255 process its true value. Update have_special_memory_constraints.
32256 (process_define_constraint): Pass the new arg.
32257 (process_define_register_constraint): Ditto.
32258 (choose_enum_order): Process special memory.
32259 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
32260 function insn_extra_special_memory_constraint.
32261 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32262 * gensupport.c (process_rtx): Process
32263 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32264 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
32265 * ira-lives.c (single_reg_class): Use
32266 insn_extra_special_memory_constraint.
32267 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
32268 * lra-constraints.c (process_alt_operands): Ditto.
32269 (curr_insn_transform): Use insn_extra_special_memory_constraint.
32270 * recog.c (asm_operand_ok, preprocess_constraints): Process
32271 CT_SPECIAL_MEMORY.
32272 * reload.c (find_reloads): Ditto.
32273 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
32274 * stmt.c (parse_input_constraint): Use
32275 insn_extra_special_memory_constraint.
32276
32277 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
32278
32279 PR target/69530
32280 * lra-splill.c (lra_final_code_change): Revert r229087 by
32281 removing all sub-registers.
32282
32283 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
32284
32285 PR target/65604
32286 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
32287
32288 2016-01-29 Jakub Jelinek <jakub@redhat.com>
32289
32290 PR target/69551
32291 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
32292 SSE1, copy target into the temporary reg first before recursing
32293 on it.
32294
32295 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
32296
32297 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
32298 with vm.
32299
32300 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
32301
32302 * ginclude/stdarg.h: Test __cplusplus instead of
32303 __GXX_EXPERIMENTAL_CXX0X__.
32304
32305 2016-01-29 Richard Biener <rguenther@suse.de>
32306
32307 PR tree-optimization/69547
32308 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
32309 Do not mark clobbers necessary.
32310 (mark_all_reaching_defs_necessary_1): Likewise.
32311
32312 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
32313
32314 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
32315 declaration name with %qs and print it in both error messages.
32316 Also fix indentation.
32317
32318 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
32319
32320 PR other/69006
32321 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
32322 trailing blank line from error message.
32323
32324 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
32325
32326 PR c++/69462
32327 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
32328 for C++-11.
32329
32330 2016-01-29 Richard Biener <rguenther@suse.de>
32331
32332 PR middle-end/69537
32333 * match.pd: Allow all integral types when simplifying a
32334 widening or sign-changing conversion.
32335
32336 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32337
32338 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
32339 back to setting codegen_error to fail codegen.
32340
32341 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
32342
32343 PR target/69459
32344 * config/i386/constraints.md (C): Only accept constant zero operand.
32345 (BC): New constraint.
32346 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
32347 instead of C constraint.
32348 * doc/md.texi (Machine Constraints): Update description
32349 of C constraint.
32350
32351 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
32352
32353 PR target/68400
32354 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
32355
32356 2016-01-28 Jakub Jelinek <jakub@redhat.com>
32357
32358 PR middle-end/69542
32359 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
32360 non-debug insns.
32361
32362 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
32363
32364 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
32365 branches if using guessed profile.
32366
32367 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
32368
32369 * graphite-optimize-isl.c (optimize_isl): Fix dump.
32370
32371 2016-01-28 Richard Henderson <rth@redhat.com>
32372
32373 PR target/69305
32374 * config/aarch64/aarch64-modes.def (CC_Cmode): New
32375 * config/aarch64/aarch64-protos.h: Update.
32376 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
32377 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
32378 (aarch64_get_condition_code_1): Handle CC_Cmode.
32379 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
32380 (*add<mode>3_compareC_cconly_imm): New.
32381 (*add<mode>3_compareC_cconly): New.
32382 (*add<mode>3_compareC_imm): New.
32383 (add<mode>3_compareC): New.
32384 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
32385 to be first. Use aarch64_carry_operation.
32386 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
32387 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
32388 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
32389 (subti3): Use subdi3_compare1.
32390 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
32391 (sub<mode>3_compare1): New.
32392 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
32393 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
32394 (*subsi3_carryin_uxtw): Likewise.
32395 (*ngc<mode>, *ngcsi_uxtw): Likewise.
32396 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
32397 * config/aarch64/iterators.md (DWI): New.
32398 * config/aarch64/predicates.md (aarch64_carry_operation): New.
32399 (aarch64_borrow_operation): New.
32400
32401 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
32402
32403 * graphite-optimize-isl.c (optimize_isl): Print a different debug
32404 message when isl does not return a valid schedule.
32405
32406 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32407
32408 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
32409 Remove comments from class declarations: they are already in the code
32410 close by the defs.
32411
32412 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32413
32414 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
32415 codegen_error_p.
32416 (ternary_op_to_tree): Same.
32417 (unary_op_to_tree): Same.
32418 (nary_op_to_tree): Same.
32419 (gcc_expression_from_isl_expr_op): Same.
32420 (gcc_expression_from_isl_expression): Same.
32421 (graphite_create_new_loop): Same.
32422 (graphite_create_new_loop_guard): Same.
32423 (build_iv_mapping): Same.
32424 (graphite_create_new_guard): Same.
32425 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
32426 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
32427
32428 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32429
32430 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
32431 instead of setting codegen_error to fail codegen.
32432
32433 2016-01-28 Jason Merrill <jason@redhat.com>
32434
32435 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
32436
32437 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32438
32439 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
32440 Remove CONST_INT_P check in CCMP cost calculation.
32441
32442 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32443
32444 * config/aarch64/aarch64.c (generic_vector_cost):
32445 Set vec_permute_cost.
32446 (cortexa57_vector_cost): Likewise.
32447 (exynosm1_vector_cost): Likewise.
32448 (xgene1_vector_cost): Likewise.
32449 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
32450 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
32451 Add vec_permute_cost entry.
32452
32453 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32454
32455 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
32456 immediate as %1.
32457 (add<mode>3_compare0): Likewise.
32458 (addsi3_compare0_uxtw): Likewise.
32459 (add<mode>3nr_compare0): Likewise.
32460 (compare_neg<mode>): Likewise.
32461 (<optab><mode>3): Likewise.
32462
32463 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
32464
32465 * tree-vect-stmts.c (vectorizable_comparison): Add
32466 NULL check for vectype.
32467
32468 2016-01-28 Richard Biener <rguenther@suse.de>
32469
32470 PR tree-optimization/69466
32471 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
32472 Account for PHIs we couldn't duplicate.
32473
32474 2016-01-28 Martin Liska <mliska@suse.cz>
32475
32476 PR pch/68758
32477 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
32478 instead of ENABLE_VALGRIND_CHECKING.
32479
32480 2016-01-27 Richard Henderson <rth@redhat.com>
32481
32482 PR rtl-opt/69447
32483 * lra-remat.c (subreg_regs): New.
32484 (dump_candidates_and_remat_bb_data): Dump it.
32485 (operand_to_remat): Reject if operand in subreg_regs.
32486 (set_bb_regs): Collect subreg_regs.
32487 (lra_remat): Init and free subreg_regs. Compute
32488 calculate_local_reg_remat_bb_data before create_cands.
32489
32490 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
32491
32492 PR target/68986
32493 * config/i386/i386.c (ix86_update_stack_boundary): Don't
32494 change stack_alignment_needed for __tls_get_addr call.
32495
32496 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
32497
32498 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
32499
32500 2016-01-27 Jeff Law <law@redhat.com>
32501
32502 PR tree-optimization/68398
32503 PR tree-optimization/69196
32504 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
32505 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
32506 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
32507 Only count PHIs in the last block in the path. The others will
32508 const/copy propagate away. Add heuristic to allow more irreducible
32509 subloops to be created when it is likely profitable to do so.
32510
32511 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
32512 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
32513 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
32514
32515 2016-01-27 Jakub Jelinek <jakub@redhat.com>
32516
32517 PR lto/69254
32518 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
32519 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
32520 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
32521 * tree-streamer-in.c: Include asan.h.
32522 (streamer_get_builtin_tree): For builtins in sanitizer
32523 range call initialize_sanitizer_builtins and retry.
32524
32525 2016-01-27 Ian Lance Taylor <iant@google.com>
32526
32527 * common.opt (fkeep-gc-roots-live): New undocumented option.
32528 * tree-ssa-loop-ivopts.c (add_candidate_1): If
32529 -fkeep-gc-roots-live, skip pointers.
32530 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
32531 NULL.
32532
32533 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
32534
32535 PR target/69512
32536 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
32537 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
32538
32539 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
32540
32541 PR target/68380
32542 * configure.ac: NetBSD provides SSP in its C library.
32543 * configure: Updated.
32544
32545 2016-01-27 Richard Biener <rguenther@suse.de>
32546
32547 PR tree-optimization/69166
32548 * tree-vect-loop.c (vect_is_simple_reduction): Always check
32549 reduction code for commutativity / associativity.
32550
32551 2016-01-27 Martin Jambor <mjambor@suse.cz>
32552
32553 PR tree-optimization/69355
32554 * tree-sra.c (analyze_access_subtree): Correct hole detection when
32555 total_scalarization fails.
32556
32557 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
32558
32559 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
32560 power9.
32561
32562 2016-01-27 Christian Bruel <christian.bruel@st.com>
32563
32564 PR target/69245
32565 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
32566 Move arm_reset_previous_fndecl and set_target_option_current_node in
32567 the conditional part. Call save_restore_target_globals.
32568 * config/arm/arm.c (arm_set_current_function):
32569 Refactor to better support #pragma target and attribute mix.
32570 Call save_restore_target_globals.
32571 * config/arm/arm-protos.h (save_restore_target_globals): New function.
32572
32573 2016-01-27 Martin Liska <mliska@suse.cz>
32574
32575 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
32576 reference for an HSA kernel and its host function.
32577
32578 2016-01-27 Jakub Jelinek <jakub@redhat.com>
32579
32580 PR tree-optimization/69399
32581 * wide-int.h (wi::lrshift): For larger precisions, only
32582 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
32583
32584 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
32585
32586 * config/arc/predicates.md (proper_comparison_operator): Reject
32587 constant-constant comparison.
32588
32589 2016-01-26 Tom de Vries <tom@codesourcery.com>
32590
32591 PR tree-optimization/69110
32592 * tree-data-ref.c (initialize_data_dependence_relation): Handle
32593 DR_NUM_DIMENSIONS == 0.
32594
32595 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
32596 Sebastian Pop <s.pop@samsung.com>
32597
32598 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
32599 isl_ast_op_cond and isl_ast_op_select.
32600 (gcc_expression_from_isl_expr_op): Same.
32601
32602 2016-01-26 Jason Merrill <jason@redhat.com>
32603
32604 PR c++/68782
32605 * tree.c (recompute_constructor_flags): Split out from
32606 build_constructor.
32607 (verify_constructor_flags): New.
32608 * tree.h: Declare them.
32609
32610 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
32611
32612 PR rtl-optimization/69217
32613 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
32614 are no TYPE_FIELDS set for the record type.
32615
32616 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32617
32618 PR target/68662
32619 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
32620 toc_label_name unconditionally.
32621 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
32622 SYMBOL_REF string. Use toc_label_name instead of constructing
32623 LCTOC1.
32624 (rs6000_elf_declare_function_name): Use toc_label_name instead of
32625 constructing LCTOC1.
32626
32627 2016-01-26 Martin Sebor <msebor@redhat.com>
32628
32629 PR other/69477
32630 * doc/extend.texi (Common Type Attributes): Move text that talks about
32631 attribute packed from attribute aligned to the section discussing
32632 the former attribute for clarity.
32633
32634 2016-01-26 Richard Henderson <rth@redhat.com>
32635
32636 PR middle-end/60908
32637 * trans-mem.c (tm_region_init): Mark entry block as visited.
32638
32639 2016-01-26 David Malcolm <dmalcolm@redhat.com>
32640
32641 PR other/69006
32642 * diagnostic-show-locus.c (layout::print_source_line): Replace
32643 call to pp_newline with call to layout::print_newline.
32644 (layout::print_annotation_line): Likewise.
32645 (layout::move_to_column): Likewise.
32646 (layout::print_any_fixits): After printing any fixits, print a
32647 trailing newline, if necessary.
32648 (layout::print_newline): New method, resetting any colorization
32649 before a newline.
32650 (diagnostic_show_locus): Move the pp_newline to before the
32651 early bailout. Remove dummy block enclosing the layout instance.
32652 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
32653 of pp_newline_and_flush with pp_flush.
32654 (diagnostic_append_note): Delete use of pp_newline.
32655 (diagnostic_append_note_at_rich_loc): Delete.
32656 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
32657 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
32658 when newline characters are added to the buffer.
32659
32660 2016-01-26 Michael Matz <matz@suse.de>
32661
32662 * configure.ac (ac_cv_std_swap_in_utility): New test.
32663 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
32664 * configure: Regenerate.
32665 * config.in: Regenerate.
32666
32667 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
32668
32669 * config/arc/arc.md (cstoresi4): Force operand into register.
32670 (arcset<code>): Fix predicate.
32671 (arcsetltu): Likewise.
32672 (arcsetgeu): Likewise.
32673 (arcsethi): Likewise.
32674 (arcsetls): Likewise.
32675
32676 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32677
32678 PR tree-optimization/69483
32679 * gimple-fold.c (canonicalize_constructor_val): Return NULL
32680 if base has error_mark_node type.
32681
32682 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
32683
32684 PR target/68620
32685 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
32686 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
32687 New helper macros.
32688 (vget_lane_f16): Handle big-endian.
32689 (vgetq_lane_f16): Likewise.
32690 (vset_lane_f16): Likewise.
32691 (vsetq_lane_f16): Likewise.
32692 * config/arm/iterators.md (VQXMOV): Add V8HF.
32693 (VDQ): Add V4HF and V8HF.
32694 (V_reg): Handle V4HF and V8HF.
32695 (Is_float_mode): Likewise.
32696 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
32697 neon_vdup_nv8hf): New patterns.
32698 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
32699 Use VD_LANE iterator.
32700 (neon_vld1_dup<mode>): Use VQ2 iterator.
32701
32702 2016-01-26 Nathan Sidwell <nathan@acm.org>
32703
32704 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
32705 (set_oacc_fn_attrib): Add IS_KERNEL arg.
32706 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
32707 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
32708 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
32709 (oacc_validate_dims): Add LEVEL arg, don't return level.
32710 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
32711 oacc_validate_dims.
32712 (execute_oacc_device_lower): Adjust, add more dump output.
32713 * tree-ssa-loop.c (gate_oacc_kernels): Use
32714 oacc_fn_attrib_kernels_p.
32715 * tree-parloops.c (create_parallel_loop): Adjust
32716 set_oacc_fn_attrib call.
32717
32718 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32719
32720 PR lto/69254
32721 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
32722 (append_compiler_options): Handle -fcilkplus.
32723 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
32724
32725 2016-01-26 Nick Clifton <nickc@redhat.com>
32726
32727 PR target/66655
32728 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
32729 been marked as DECL_ONE_ONLY but we do not the means to make it
32730 so, then do not allow it to bind locally.
32731
32732 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32733
32734 PR lto/69254
32735 * opts.h (parse_sanitizer_options): New prototype.
32736 * opts.c (sanitizer_opts): New array.
32737 (parse_sanitizer_options): New function.
32738 (common_handle_option): Use parse_sanitizer_options.
32739
32740 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
32741
32742 PR target/68986
32743 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
32744 alignment adjustment to ...
32745 (ix86_update_stack_boundary): Here. Don't over-align stack for
32746 __tls_get_addr.
32747 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
32748 if __tls_get_addr is called.
32749
32750 2016-01-26 Christian Bruel <christian.bruel@st.com>
32751
32752 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
32753
32754 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
32755
32756 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
32757
32758 2016-01-26 Richard Biener <rguenther@suse.de>
32759
32760 PR middle-end/69467
32761 * match.pd: Guard X * CST CMP 0 pattern with single_use.
32762
32763 2016-01-26 Richard Biener <rguenther@suse.de>
32764
32765 PR tree-optimization/69452
32766 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
32767 (move_computations_dom_walker::before_dom_children): Rename
32768 to ...
32769 (move_computations_worker): This.
32770 (move_computations): Perform an RPO rather than a DOM walk.
32771
32772 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32773
32774 PR target/69442
32775 * combine.c (combine_instructions): For REG_EQUAL note with
32776 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
32777 to the underlying register.
32778 * doc/rtl.texi (REG_EQUAL): Document the behavior of
32779 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
32780
32781 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
32782
32783 PR target/67896
32784 * config/aarch64/aarch64-builtins.c
32785 (aarch64_init_simd_builtin_types): Do not set structural
32786 equality to __Poly{8,16,64,128}_t types.
32787
32788 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
32789
32790 PR tree-optimization/69400
32791 * wide-int.cc (wi_pack): Take the precision as argument and
32792 perform canonicalization here rather than in the callers.
32793 Use the main loop to handle all full-width HWIs. Add a
32794 zero HWI if in_len isn't a full result.
32795 (wi::divmod_internal): Update accordingly.
32796 (wi::mul_internal): Likewise. Simplify.
32797
32798 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
32799 Sebastian Pop <s.pop@samsung.com>
32800
32801 * graphite-poly.c (apply_poly_transforms): Simplify.
32802 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
32803 (print_isl_map): Same.
32804 (print_isl_union_map): Same.
32805 (print_isl_schedule): New.
32806 (debug_isl_schedule): New.
32807 * graphite-dependences.c (scop_get_reads): Do not call
32808 isl_union_map_add_map that is undocumented isl functionality.
32809 (scop_get_must_writes): Same.
32810 (scop_get_may_writes): Same.
32811 (scop_get_original_schedule): Remove.
32812 (scop_get_dependences): Do not call isl_union_map_compute_flow that
32813 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
32814 (compute_deps): Remove.
32815 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
32816 (debug_schedule_ast): New.
32817 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
32818 set_separate_option.
32819 (graphite_regenerate_ast_isl): Add dump.
32820 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
32821 from scop->transformed_schedule.
32822 (graphite_regenerate_ast_isl): Add more dump.
32823 * graphite-optimize-isl.c (optimize_isl): Set
32824 scop->transformed_schedule. Check whether schedules are equal.
32825 (apply_poly_transforms): Move here.
32826 * graphite-poly.c (apply_poly_transforms): ... from here.
32827 (free_poly_bb): Static.
32828 (free_scop): Static.
32829 (pbb_number_of_iterations_at_time): Remove.
32830 (print_isl_ast): New.
32831 (debug_isl_ast): New.
32832 (debug_scop_pbb): New.
32833 * graphite-scop-detection.c (print_edge): Move.
32834 (print_sese): Move.
32835 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
32836 (build_scop_scattering): Remove.
32837 (create_pw_aff_from_tree): Assert instead of bailing out.
32838 (add_condition_to_pbb): Remove unused code, do not fail.
32839 (add_conditions_to_domain): Same.
32840 (add_conditions_to_constraints): Remove.
32841 (build_scop_context): New.
32842 (add_iter_domain_dimension): New.
32843 (build_iteration_domains): Initialize pbb->iterators.
32844 Call add_conditions_to_domain.
32845 (nested_in): New.
32846 (loop_at): New.
32847 (index_outermost_in_loop): New.
32848 (index_pbb_in_loop): New.
32849 (outermost_pbb_in): New.
32850 (add_in_sequence): New.
32851 (add_outer_projection): New.
32852 (outer_projection_mupa): New.
32853 (add_loop_schedule): New.
32854 (build_schedule_pbb): New.
32855 (build_schedule_loop): New.
32856 (embed_in_surrounding_loops): New.
32857 (build_schedule_loop_nest): New.
32858 (build_original_schedule): New.
32859 (build_poly_scop): Call build_original_schedule.
32860 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
32861 (free_poly_dr): Remove.
32862 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
32863 (free_poly_bb): Remove.
32864 (debug_loop_vec): Remove.
32865 (print_isl_ast): Declare.
32866 (debug_isl_ast): Declare.
32867 (scop_do_interchange): Remove.
32868 (scop_do_strip_mine): Remove.
32869 (scop_do_block): Remove.
32870 (flatten_all_loops): Remove.
32871 (optimize_isl): Remove.
32872 (pbb_number_of_iterations_at_time): Remove.
32873 (debug_scop_pbb): Declare.
32874 (print_schedule_ast): Declare.
32875 (debug_schedule_ast): Declare.
32876 (struct scop): Remove schedule. Add original_schedule,
32877 transformed_schedule.
32878 (free_gimple_poly_bb): Remove.
32879 (print_generated_program): Remove.
32880 (debug_generated_program): Remove.
32881 (unify_scattering_dimensions): Remove.
32882 * sese.c (print_edge): ... here.
32883 (print_sese): ... here.
32884 (debug_edge): ... here.
32885 (debug_sese): ... here.
32886 * sese.h (print_edge): Declare.
32887 (print_sese): Declare.
32888 (dump_edge): Declare.
32889 (dump_sese): Declare.
32890
32891 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
32892 Sebastian Pop <s.pop@samsung.com>
32893
32894 * Makefile.in: Set ISLVER in site.exp.
32895
32896 2016-01-25 Jakub Jelinek <jakub@redhat.com>
32897
32898 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
32899 DECL_VALUE_EXPR of new_var even for the non-array case. Look
32900 through DECL_VALUE_EXPR for expansion.
32901
32902 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
32903
32904 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
32905 the frame info after reload completed.
32906
32907 2016-01-25 Jeff Law <law@redhat.com>
32908
32909 PR tree-optimization/69196
32910 PR tree-optimization/68398
32911 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
32912 tree-ssa-threadupdate.c.
32913 (determine_bb_domination_status): Prototype
32914 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
32915 (determine_bb_domination_status): No longer static.
32916 (valid_jump_thread_path): Remove code to detect characteristics
32917 of the jump thread path not associated with correctness.
32918 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
32919 Correct test for thread path length. Count PHIs for real operands as
32920 statements that need to be copied. Do not count ASSERT_EXPRs.
32921 Look at all the blocks in the thread path. Compute and selectively
32922 filter thread paths based on threading through the latch, threading
32923 a multiway branch or crossing a multiway branch.
32924
32925 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32926
32927 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
32928 decl with __attribute__ ((unused)) annotation.
32929
32930 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
32931
32932 PR target/69421
32933 * tree-vect-stmts.c (vectorizable_condition): Check vectype
32934 of operands is compatible with a statement vectype.
32935
32936 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
32937
32938 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
32939 improve wording for mixed storage order support.
32940
32941 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
32942
32943 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
32944 (vcvt_u64_f64): Likewise.
32945 (vcvta_s64_f64): Likewise.
32946 (vcvta_u64_f64): Likewise.
32947 (vcvtm_s64_f64): Likewise.
32948 (vcvtm_u64_f64): Likewise.
32949 (vcvtn_s64_f64): Likewise.
32950 (vcvtn_u64_f64): Likewise.
32951 (vcvtp_s64_f64): Likewise.
32952 (vcvtp_u64_f64): Likewise.
32953
32954 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
32955
32956 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
32957 (arc_init): Check validity mll64 option.
32958 (arc_save_restore): Use double load/store instruction.
32959 (arc_expand_movmem): Likewise.
32960 (arc_split_move): Don't split if we have double load/store
32961 instructions. Returns a boolean.
32962 (arc_process_double_reg_moves): Change function to return boolean
32963 instead of a sequence of instructions.
32964 (arc_dwarf_register_span): New function.
32965 * config/arc/arc-protos.h (arc_split_move): Change prototype.
32966 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
32967 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
32968 (*movdf_insn): Likewise.
32969 * config/arc/arc.opt (mll64): New option.
32970 * config/arc/predicates.md (even_register_operand): New predicate.
32971 * doc/invoke.texi (ARC Options): Add mll64 documentation.
32972
32973 2016-01-25 Richard Biener <rguenther@suse.de>
32974
32975 PR lto/69393
32976 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
32977 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
32978 DECL_NAMELESS.
32979 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
32980
32981 2016-01-25 Richard Biener <rguenther@suse.de>
32982
32983 PR tree-optimization/69376
32984 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
32985 flag.
32986 (VN_INFO_ANTI_RANGE_P): New inline.
32987 (VN_INFO_RANGE_TYPE): Likewise.
32988 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
32989 SSA_NAME_ANTI_RANGE_P.
32990 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
32991 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
32992 Properly query VN_INFO_RANGE_TYPE.
32993
32994 2016-01-25 Nick Clifton <nickc@redhat.com>
32995
32996 PR target/66655
32997 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
32998
32999 2016-01-23 Tom de Vries <tom@codesourcery.com>
33000
33001 PR tree-optimization/69426
33002 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
33003 removed clobber.
33004
33005 2016-01-23 Jakub Jelinek <jakub@redhat.com>
33006
33007 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
33008 "the the" with "the" in the comments.
33009 * ipa-devirt.c (build_type_inheritance_graph,
33010 update_type_inheritance_graph): Likewise.
33011 * tree.c (build_function_type_list_1): Likewise.
33012 * cfgloopmanip.c (scale_loop_profile): Likewise.
33013 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
33014 * gimple-ssa-split-paths.c
33015 (find_block_to_duplicate_for_splitting_paths): Likewise.
33016 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
33017 * expr.c (convert_move): Likewise.
33018 * var-tracking.c (vt_stack_adjustments): Likewise.
33019 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
33020 * tree-vrp.c (test_for_singularity): Likewise.
33021
33022 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
33023 directly instead of building a temporary tree.
33024
33025 PR bootstrap/69434
33026 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
33027 remove <algorithm> include.
33028
33029 2016-01-22 Jakub Jelinek <jakub@redhat.com>
33030
33031 PR target/69432
33032 * config/i386/i386.c: Include dojump.h.
33033 (expand_small_movmem_or_setmem,
33034 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
33035 fixes.
33036 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
33037 if dynamic_check != -1.
33038
33039 2016-01-21 Jeff Law <law@redhat.com>
33040
33041 PR middle-end/69347
33042 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
33043 record_temporary_equivalences. Rewritten to avoid unnecessary calls
33044 into dominated_by_p.
33045 (cprop_into_successor_phis): Avoid unnecessary tests.
33046
33047 2016-01-22 Richard Henderson <rth@redhat.com>
33048
33049 PR target/69416
33050 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
33051 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
33052
33053 2016-01-22 Michael Matz <matz@suse.de>
33054
33055 * system.h (string, algorithm): Include only conditionally.
33056 (new): Include always under C++.
33057 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
33058 * final.c (toplevel): Ditto.
33059 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
33060 * genconditions.c (write_header): Make gencondmd.c define
33061 INCLUDE_STRING.
33062 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
33063
33064 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
33065 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
33066
33067 2016-01-22 Christian Bruel <christian.bruel@st.com>
33068
33069 PR target/68674
33070 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
33071
33072 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33073
33074 PR target/69403
33075 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
33076 define_insn_and_split. Ensure operands[1] and operands[0] do not
33077 get assigned the same register.
33078
33079 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
33080
33081 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
33082
33083 2016-01-22 Christian Bruel <christian.bruel@st.com>
33084
33085 * config/arm/arm-c.c (arm_pragma_target_parse):
33086 Remove warn_builtin_macro_redefined overwrite.
33087
33088 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
33089
33090 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
33091 flag_non_call_exceptions compatibility.
33092
33093 2016-01-22 Jakub Jelinek <jakub@redhat.com>
33094
33095 PR debug/66668
33096 * dwarf2out.c (add_child_die_after): New function.
33097 (dwarf_qual_info_t): New type.
33098 (dwarf_qual_info): New variable.
33099 (qualified_die_p): New function.
33100 (modified_type_die): For -fdebug-types-section, ensure
33101 canonical order of qualifiers. Put qualified DIEs adjacent
33102 to the corresponding non-qualified type DIE and search there
33103 for existing qualified DIEs.
33104
33105 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
33106
33107 * doc/extend.texi (scalar_storage_order type attribute): Document
33108 restriction on type punning and aliasing, and remove future tense.
33109
33110 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
33111
33112 PR target/69252
33113 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
33114 first stage.
33115
33116 2016-01-21 Jeff Law <law@redhat.com>
33117
33118 PR middle-end/69347
33119 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
33120 useless call to record_temporary_equivalences.
33121 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
33122 allocate 10 slots in the bb_path vector and let it grow as needed.
33123 (fsm_find_control_statement_thread_paths): Similarly for the next_path
33124 vector.
33125
33126 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
33127
33128 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
33129 Detangle.
33130 * configure: Regenerate.
33131
33132 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
33133
33134 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
33135 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
33136
33137 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
33138
33139 PR middle-end/66178
33140 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
33141 drop EXPAND_INITIALIZER.
33142 * rtl.h (contains_symbolic_reference_p): Declare.
33143 * rtlanal.c (contains_symbolic_reference_p): New function.
33144 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
33145 a subtraction into a NOT if symbolic constants are involved.
33146
33147 2016-01-21 Anton Blanchard <anton@samba.org>
33148 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33149
33150 PR target/63354
33151 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
33152 #define.
33153 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
33154 function.
33155
33156 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
33157
33158 * config/microblaze/microblaze.c
33159 (get_branch_target): New.
33160 (insert_wic_for_ilb_runout): New.
33161 (insert_wic): New.
33162 (microblaze_machine_dependent_reorg): New.
33163 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
33164 * config/microblaze/microblaze.md
33165 (UNSPEC_IPREFETCH): Define.
33166 (iprefetch): New pattern
33167 * config/microblaze/microblaze.opt
33168 (mxl-prefetch): New flag.
33169
33170 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
33171
33172 * config/microblaze/microblaze.h
33173 (FIXED_REGISTERS): Update in macro.
33174 (CALL_USED_REGISTERS): Update in macro.
33175
33176 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
33177
33178 PR rtl-optimization/68920
33179 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
33180 moves.
33181
33182 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
33183
33184 PR rtl-optimization/68990
33185 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
33186 pseudo instead of inheritance ones.
33187
33188 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33189 Nick Clifton <nickc@redhat.com>
33190
33191 PR target/69129
33192 PR target/69012
33193 * config/mips/mips.c (mips_compute_frame_info): Initialise
33194 args_size and hard_frame_pointer_offset fields of the frame
33195 structure before calling mips_global_pointer.
33196
33197 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
33198
33199 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
33200 label reference.
33201 * configure: Regenerate.
33202
33203 2016-01-21 Richard Biener <rguenther@suse.de>
33204
33205 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
33206
33207 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
33208
33209 * config/s390/s390.c (s390_asm_declare_function_size): Add code
33210 to actually emit the .size directive.
33211
33212 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
33213 Jakub Jelinek <jakub@redhat.com>
33214
33215 PR target/69187
33216 PR target/65624
33217 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
33218 args array size by one to avoid buffer overflow.
33219
33220 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
33221
33222 * config/s390/s390.md (pool_section_start): Use switch_to_section
33223 to select proper read-only data section instead of hardcoding
33224 .rodata.
33225 (pool_section_end): Use switch_to_section to match the above.
33226
33227 2016-01-21 Richard Biener <rguenther@suse.de>
33228
33229 PR tree-optimization/69378
33230 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
33231 (set_ssa_val_to): Use it for dominance checks taking into
33232 account not executable edges.
33233
33234 2016-01-21 Jakub Jelinek <jakub@redhat.com>
33235
33236 PR c++/69355
33237 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
33238 for bitsize instead of GET_MODE_PRECISION (mode).
33239
33240 2016-01-20 Martin Sebor <msebor@redhat.com>
33241
33242 PR c/52291
33243 * extend.texi (__sync Builtins): Clarify the semantics of
33244 __sync_fetch_and_OP built-ins on pointers.
33245 (__atomic Builtins): Same.
33246
33247 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33248 Sebastian Pop <s.pop@samsung.com>
33249
33250 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
33251 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
33252 (is_valid_rename): Same.
33253 (translate_isl_ast_to_gimple::get_rename): Same.
33254 (translate_isl_ast_to_gimple::rename_all_uses): Same.
33255 (translate_isl_ast_to_gimple::rename_uses): Same.
33256 (get_new_name): Check for close_phi nodes.
33257 (copy_loop_phi_args): Use phi_node_kind.
33258 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
33259 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
33260
33261 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33262 Sebastian Pop <s.pop@samsung.com>
33263
33264 Revert commit r229783.
33265 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
33266 Remove use of parameter_rename_map.
33267 (copy_def): Remove.
33268 (copy_internal_parameters): Remove.
33269 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
33270 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
33271 (free_sese_info): Do not free parameter_rename_map.
33272 (set_rename): Do not use parameter_rename_map.
33273 (rename_uses): Update call to set_rename.
33274 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
33275 * sese.h (parameter_rename_map_t): Remove.
33276 (struct sese_info_t): Remove field parameter_rename_map.
33277
33278 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33279 Sebastian Pop <s.pop@samsung.com>
33280
33281 * graphite-isl-ast-to-gimple.c: Fix comment.
33282 * graphite-scop-detection.c (defined_in_loop_p): New.
33283 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
33284 names defined in loop.
33285
33286 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33287 Sebastian Pop <s.pop@samsung.com>
33288
33289 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
33290 Discard unstructured if-then-else regions.
33291
33292 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33293 Sebastian Pop <s.pop@samsung.com>
33294
33295 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
33296 (cleanup_loop_iter_dom): Remove.
33297 (build_loop_iteration_domains): Remove.
33298 (build_scop_context): Remove.
33299 (build_scop_iteration_domain): Remove.
33300 (add_loop_constraints): New.
33301 (build_iteration_domains): New.
33302 (build_poly_scop): Call build_iteration_domains.
33303
33304 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33305 Sebastian Pop <s.pop@samsung.com>
33306
33307 * graphite-scop-detection.c
33308 (scop_detection::harmful_loop_in_region): Free dom and loops.
33309 (scop_detection::loop_body_is_valid_scop): Free bbs.
33310
33311 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33312 Sebastian Pop <s.pop@samsung.com>
33313
33314 * graphite-scop-detection.c (record_loop_in_sese): New.
33315 (gather_bbs::before_dom_children): Call record_loop_in_sese.
33316 (build_scops): Remove call to build_sese_loop_nests.
33317 * sese.c (sese_record_loop): Remove.
33318 (build_sese_loop_nests): Remove.
33319 (new_sese_info): Remove region->loops.
33320 (free_sese_info): Same.
33321 * sese.h (sese_contains_loop): Same.
33322 (build_sese_loop_nests): Remove.
33323 (sese_contains_loop): Remove.
33324
33325 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33326 Sebastian Pop <s.pop@samsung.com>
33327
33328 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
33329 loop_is_valid_in_scop.
33330 (scop_detection::harmful_stmt_in_region): Renamed
33331 harmful_loop_in_region.
33332 Call loop_is_valid_in_scop.
33333
33334 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33335 Sebastian Pop <s.pop@samsung.com>
33336
33337 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
33338 isl_ast_node_mark.
33339
33340 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33341 Sebastian Pop <s.pop@samsung.com>
33342
33343 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
33344 * graphite.h (struct poly_bb): Remove field is_reduction.
33345 (PBB_IS_REDUCTION): Remove.
33346
33347 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33348 Sebastian Pop <s.pop@samsung.com>
33349
33350 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
33351 (add_pdr_constraints): Same.
33352 (scop_get_reads): Same.
33353 (scop_get_must_writes): Same.
33354 (scop_get_may_writes): Same.
33355 (scop_get_original_schedule): Same.
33356 (extend_schedule): Same.
33357 (apply_schedule_on_deps): Same.
33358 (carries_deps): Same.
33359 (compute_deps): Same.
33360 (scop_get_dependences): Same.
33361 * graphite-isl-ast-to-gimple.c
33362 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
33363 * graphite-optimize-isl.c (get_schedule_for_band): Same.
33364 (get_schedule_for_band_list): Same.
33365 (get_schedule_map): Same.
33366 (apply_schedule_map_to_scop): Same.
33367 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
33368 (build_loop_iteration_domains): Same.
33369 (add_condition_to_pbb): Same.
33370 (add_param_constraints): Same.
33371 (pdr_add_memory_accesses): Same.
33372 (pdr_add_data_dimensions): Same.
33373
33374 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
33375
33376 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
33377 requirements.
33378
33379 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
33380
33381 * common.opt (feliminate-dwarf2-dups): Replace references to
33382 "DWARF 2" with just "DWARF".
33383 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
33384 * doc/extend.texi: Likewise.
33385 * doc/cpp.texi: Likewise.
33386 * doc/invoke.texi: Likewise.
33387 (Option Summary): Add -gdwarf to list of Debugging Options.
33388 (Debugging Options): Document -gdwarf.
33389 * doc/contrib.texi: Spell "DWARF" like that.
33390
33391 2016-01-21 Jakub Jelinek <jakub@redhat.com>
33392
33393 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
33394 warning. Fix up formatting.
33395
33396 PR middle-end/67653
33397 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
33398 attempt to mark memory input operand addressable and
33399 call prepare_gimple_addressable in that case. Don't adjust
33400 input_location for diagnostics, use error_at instead.
33401
33402 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
33403
33404 * config/rs6000/ppc-auxv.h: New file.
33405 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
33406 (cpu_is): Likewise.
33407 (cpu_supports): Likewise.
33408 * config/rs6000/rs6000.c: include "ppc-auxv.h".
33409 (cpu_is_info): New variable.
33410 (cpu_supports_info): Likewise.
33411 (tcb_verification_symbol): Likewise.
33412 (cpu_builtin_p): Likewise.
33413 (cpu_expand_builtin): New function.
33414 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
33415 (rs6000_init_builtins): Likewise.
33416 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
33417 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
33418 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
33419 * configure: Regenerate.
33420 * config.in: Likewise.
33421 * doc/extend.texi (PowerPC Built-in Functions): Document
33422 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
33423
33424 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
33425
33426 PR target/68609
33427 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
33428 domain check.
33429 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
33430 for V4SFmode.
33431
33432 2016-01-20 Richard Henderson <rth@redhat.com>
33433
33434 PR bootstrap/69343
33435 PR bootstrap/69339
33436 PR tree-opt/68964
33437 Revert:
33438 * tree.c (tm_define_builtin): New.
33439 (find_tm_vector_type): New.
33440 (build_tm_vector_builtins): New.
33441 (build_common_builtin_nodes): Call it.
33442
33443 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
33444
33445 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
33446 (arm_fp_ok): Likewise.
33447 (arm_fp): Likewise.
33448 (arm_crypto): Likewise.
33449
33450 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
33451 Richard Biener <rguenther@suse.de>
33452
33453 PR tree-optimization/69328
33454 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
33455 vectors have same number of elements.
33456 (vectorizable_condition): Fix masked version recognition.
33457
33458 2016-01-20 Richard Biener <rguenther@suse.de>
33459
33460 PR tree-optimization/69345
33461 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
33462 (VN_INFO_PTR_INFO): Likewise.
33463 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
33464 info when it is equal between non-dominating SSA names.
33465 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33466 Make sure to look at original SSA infos.
33467
33468 2016-01-20 Jeff Law <law@redhat.com>
33469
33470 PR target/25114
33471 * config/m68k/predicates.md (pow2_m1_operand): New predicate
33472 extracted from ...
33473 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
33474 (pc_or_label_operand): New predicate.
33475 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
33476 tests for small integers that are 2^n - 1.
33477
33478 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
33479
33480 * doc/invoke.texi (Options Summary): Add '.' after @xref.
33481
33482 2016-01-19 Jeff Law <law@redhat.com>
33483
33484 PR middle-end/69347
33485 * tree-ssa-threadbackwards.c
33486 (fsm_find_control_statement_thread_paths): Do not try to lookup
33487 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
33488
33489 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
33490
33491 * doc/lto.texi: Remove text that says only Gold has linker plugin
33492 support.
33493
33494 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
33495
33496 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
33497 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
33498 the DIE accordingly.
33499 (modified_type_die): Add REVERSE parameter and pass it recursively,
33500 as well as to base_type_die. Adjust presence check accordingly.
33501 (base_type_for_mode): Adjust call to modified_type_die.
33502 (add_type_attribute): Add REVERSE parameter and pass it to
33503 modified_type_die.
33504 (generic_parameter_die): Adjust call to add_type_attribute.
33505 (add_scalar_info): Likewise.
33506 (add_subscript_info): Likewise.
33507 (gen_array_type_die): Likewise.
33508 (gen_descr_array_type_die): Likewise.
33509 (gen_entry_point_die): Likewise.
33510 (gen_enumeration_type_die): Likewise.
33511 (gen_formal_parameter_die): Likewise.
33512 (gen_subprogram_die): Likewise.
33513 (gen_variable_die ): Likewise.
33514 (gen_const_die): Likewise.
33515 (gen_field_die): Likewise.
33516 (gen_pointer_type_die): Likewise.
33517 (gen_reference_type_die): Likewise.
33518 (gen_ptr_to_mbr_type_die): Likewise.
33519 (gen_inheritance_die): Likewise.
33520 (gen_subroutine_type_die): Likewise.
33521 (gen_typedef_die): Likewise.
33522 (force_type_die): Adjust call to modified_type_die.
33523
33524 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
33525
33526 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
33527 flow throughout the file. Fix broken link to Objective-C 2.0
33528 documentation.
33529 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
33530 errors.
33531
33532 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33533
33534 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
33535
33536 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33537
33538 PR ipa/66223
33539 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
33540 (maybe_record_node): Record cxa_pure_virtual as the only possible
33541 target if there are not ohter candidates.
33542 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
33543
33544 2016-01-19 Richard Biener <rguenther@suse.de>
33545
33546 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
33547 (get_memory_order): Likewise.
33548
33549 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
33550
33551 * tree-vect-stmts.c (vectorizable_store): Check
33552 rhs vectype.
33553
33554 2016-01-19 David Malcolm <dmalcolm@redhat.com>
33555
33556 PR jit/68446
33557 * gcc.c (driver::decode_argv): Add call to
33558 init_opts_obstack before init_options_struct.
33559 * opts.c (init_opts_obstack): Remove idempotency.
33560 (init_options_struct): Replace call to init_opts_obstack
33561 with a gcc_assert to verify that it has already been called.
33562 * toplev.c (toplev::main): Add call to init_opts_obstack before
33563 calls to init_options_struct.
33564 (toplev::finalize): Move cleanup of opts_obstack next to
33565 cleanup of save_decoded_options, clearing the latter, and
33566 save_decoded_options_count.
33567
33568 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33569
33570 PR target/69135
33571 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
33572 attribute to unconditional. Remove %? from output template.
33573
33574 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33575 Jiong Wang <jiong.wang@arm.com>
33576
33577 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
33578 generated from different expand order.
33579
33580 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33581
33582 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
33583 Add support for CCMP costing.
33584
33585 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33586
33587 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
33588 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
33589 (fccmpe<mode>): Likewise.
33590 (fcmp): Rename to fcmp and globalize pattern.
33591 (fcmpe): Likewise.
33592 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
33593 (aarch64_gen_ccmp_next): Add FP support.
33594
33595 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33596
33597 * target.def (gen_ccmp_first): Update documentation.
33598 (gen_ccmp_next): Likewise.
33599 * doc/tm.texi (gen_ccmp_first): Update documentation.
33600 (gen_ccmp_next): Likewise.
33601 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
33602 expand_ccmp_expr_1. Improve comments.
33603 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
33604 (ccmp_ior<mode>): Remove pattern.
33605 (cmp<mode>): Remove expand.
33606 (cmp): Globalize pattern.
33607 (cstorecc4): Use cc_register.
33608 (mov<mode>cc): Remove ccmp_cc_register check.
33609 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
33610 Simplify after removal of CC_DNE/* modes.
33611 (aarch64_ccmp_mode_to_code): Remove.
33612 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
33613 In 'k' case use integer as condition.
33614 (aarch64_nzcv_codes): Remove inverted cases.
33615 (aarch64_code_to_ccmode): Remove.
33616 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
33617 comparison with CC register to be used in folowing CCMP/branch/CSEL.
33618 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
33619 pattern. Return the comparison with CC register. Invert conditions
33620 when bitcode is OR.
33621 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
33622 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
33623
33624 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33625
33626 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
33627 instrumented_version.
33628
33629 2016-01-19 Richard Biener <rguenther@suse.de>
33630
33631 PR tree-optimization/69336
33632 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
33633 handled components with get_ref_base_and_extent.
33634 (equal_mem_array_ref_p): Adjust.
33635
33636 2016-01-19 Jakub Jelinek <jakub@redhat.com>
33637
33638 PR debug/65779
33639 * shrink-wrap.c: Include valtrack.h.
33640 (move_insn_for_shrink_wrap): Add DEBUG argument. If
33641 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
33642 in between insn and where it will be moved to. Call
33643 dead_debug_insert_temp.
33644 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
33645 first and dead_debug_local_finish at the end.
33646 For uses and defs bitmap, handle all regs in between REGNO and
33647 END_REGNO, not just the first one.
33648
33649 2016-01-19 Richard Biener <rguenther@suse.de>
33650
33651 PR tree-optimization/69352
33652 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
33653 (equal_mem_array_ref_p): Constrain size and max size properly.
33654 Compare the reverse flag.
33655
33656 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
33657
33658 * ira.c (ira): Update regstat data if we deleted insns.
33659
33660 2016-01-19 Jakub Jelinek <jakub@redhat.com>
33661
33662 PR rtl-optimization/68955
33663 PR rtl-optimization/64557
33664 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
33665 here. Fix up formatting.
33666 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
33667
33668 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33669
33670 PR lto/69133
33671 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
33672 assume that the node has body.
33673 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
33674 check.
33675
33676 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33677
33678 * lto-streamer-out.c (lto_output): Do not stream instrumentation
33679 thunks.
33680
33681 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33682
33683 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
33684 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
33685
33686 2016-01-19 Martin Jambor <mjambor@suse.cz>
33687 Martin Liska <mliska@suse.cz>
33688 Michael Matz <matz@suse.de>
33689
33690 * Makefile.in (OBJS): Add new source files.
33691 (GTFILES): Add hsa.c.
33692 * common.opt (disable_hsa): New variable.
33693 (-Whsa): New warning.
33694 * config.in (ENABLE_HSA): New.
33695 * configure.ac: Treat hsa differently from other accelerators.
33696 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
33697 $enable_offloading.
33698 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
33699 * doc/install.texi (Configuration): Document --with-hsa-runtime,
33700 --with-hsa-runtime-include, --with-hsa-runtime-lib and
33701 --with-hsa-kmt-lib.
33702 * doc/invoke.texi (-Whsa): Document.
33703 (hsa-gen-debug-stores): Likewise.
33704 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
33705 to invoke offload compiler for hsa acclerator.
33706 * opts.c (common_handle_option): Determine whether HSA offloading
33707 should be performed.
33708 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
33709 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
33710 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
33711 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
33712 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
33713 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
33714 GF_OMP_FOR_KIND_GRID_LOOP.
33715 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
33716 (pp_gimple_stmt_1): Likewise.
33717 * gimple-walk.c (walk_gimple_stmt): Likewise.
33718 * gimple.c (gimple_build_omp_grid_body): New function.
33719 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
33720 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
33721 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
33722 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
33723 GF_OMP_TEAMS_GRID_PHONY.
33724 (gimple_statement_omp_single_layout): Updated comments.
33725 (gimple_build_omp_grid_body): New function.
33726 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
33727 (gimple_omp_for_grid_phony): New function.
33728 (gimple_omp_for_set_grid_phony): Likewise.
33729 (gimple_omp_parallel_grid_phony): Likewise.
33730 (gimple_omp_parallel_set_grid_phony): Likewise.
33731 (gimple_omp_teams_grid_phony): Likewise.
33732 (gimple_omp_teams_set_grid_phony): Likewise.
33733 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
33734 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
33735 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
33736 (BUILT_IN_GOMP_TARGET): Updated type.
33737 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
33738 (adjust_for_condition): New function.
33739 (get_omp_for_step_from_incr): Likewise.
33740 (extract_omp_for_data): Moved parts to adjust_for_condition and
33741 get_omp_for_step_from_incr.
33742 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
33743 (fixup_child_record_type): Bail out if receiver_decl is NULL.
33744 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
33745 (scan_omp_parallel): Do not create child functions for phony
33746 constructs.
33747 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
33748 (scan_omp_1_op): Checking assert we are not remapping to
33749 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
33750 (parallel_needs_hsa_kernel_p): New function.
33751 (expand_parallel_call): Register apprpriate parallel child
33752 functions as HSA kernels.
33753 (grid_launch_attributes_trees): New type.
33754 (grid_attr_trees): New variable.
33755 (grid_create_kernel_launch_attr_types): New function.
33756 (grid_insert_store_range_dim): Likewise.
33757 (grid_get_kernel_launch_attributes): Likewise.
33758 (get_target_argument_identifier_1): Likewise.
33759 (get_target_argument_identifier): Likewise.
33760 (get_target_argument_value): Likewise.
33761 (push_target_argument_according_to_value): Likewise.
33762 (get_target_arguments): Likewise.
33763 (expand_omp_target): Call get_target_arguments instead of looking
33764 up for teams and thread limit.
33765 (grid_expand_omp_for_loop): New function.
33766 (grid_arg_decl_map): New type.
33767 (grid_remap_kernel_arg_accesses): New function.
33768 (grid_expand_target_kernel_body): New function.
33769 (expand_omp): Call it.
33770 (lower_omp_for): Do not emit phony constructs.
33771 (lower_omp_taskreg): Do not emit phony constructs but create for them
33772 a temporary variable receiver_decl.
33773 (lower_omp_taskreg): Do not emit phony constructs.
33774 (lower_omp_teams): Likewise.
33775 (lower_omp_grid_body): New function.
33776 (lower_omp_1): Call it.
33777 (grid_reg_assignment_to_local_var_p): New function.
33778 (grid_seq_only_contains_local_assignments): Likewise.
33779 (grid_find_single_omp_among_assignments_1): Likewise.
33780 (grid_find_single_omp_among_assignments): Likewise.
33781 (grid_find_ungridifiable_statement): Likewise.
33782 (grid_target_follows_gridifiable_pattern): Likewise.
33783 (grid_remap_prebody_decls): Likewise.
33784 (grid_copy_leading_local_assignments): Likewise.
33785 (grid_process_kernel_body_copy): Likewise.
33786 (grid_attempt_target_gridification): Likewise.
33787 (grid_gridify_all_targets_stmt): Likewise.
33788 (grid_gridify_all_targets): Likewise.
33789 (execute_lower_omp): Call grid_gridify_all_targets.
33790 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
33791 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
33792 (tree_omp_clause): Added union field dimension.
33793 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
33794 * tree.c (omp_clause_num_ops): Added number of arguments of
33795 OMP_CLAUSE__GRIDDIM_.
33796 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
33797 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
33798 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
33799 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
33800 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
33801 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
33802 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
33803 * tree-pass.h (make_pass_gen_hsail): Declare.
33804 (make_pass_ipa_hsa): Likewise.
33805 * ipa-hsa.c: New file.
33806 * lto-section-in.c (lto_section_name): Add hsa section name.
33807 * lto-streamer.h (lto_section_type): Add hsa section.
33808 * timevar.def (TV_IPA_HSA): New.
33809 * hsa-brig-format.h: New file.
33810 * hsa-brig.c: New file.
33811 * hsa-dump.c: Likewise.
33812 * hsa-gen.c: Likewise.
33813 * hsa.c: Likewise.
33814 * hsa.h: Likewise.
33815 * toplev.c (compile_file): Call hsa_output_brig.
33816 * hsa-regalloc.c: New file.
33817
33818 2016-01-18 Jeff Law <law@redhat.com>
33819
33820 PR tree-optimization/69320
33821 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
33822 ranged object, do nothing if the RHS constant is not [0..1].
33823 (optimize_stmt): Comparing a boolean ranged object against a
33824 constant outside [0..1] results in a compile-time constant.
33825
33826 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
33827 test.
33828
33829 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
33830
33831 * doc/invoke.texi (Invoking GCC): Add new section to menu.
33832 (Option Summary): Update to reflect new section and moved options.
33833 (C++ Dialect Options): Move -fstats to new section.
33834 (Debugging Options): Move all dump, statistics, and other GCC
33835 developer options to new section. Rewrite section introduction
33836 and re-order remaining options to put the more basic ones first.
33837 (Optimization Options): Move -fira-verbose and -flto-report* to
33838 new section.
33839 (Developer Options): New section incorporating moved options.
33840 * doc/cppopts.texi (-dM): Update cross-reference.
33841
33842 2016-01-18 Richard Henderson <rth@redhat.com>
33843
33844 PR target/69176
33845 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
33846 operands to pseudo only if CSE is expected. Split long immediate
33847 operands only after reload, and for the stack pointer.
33848 (*add<GPI>3_pluslong): Remove.
33849 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
33850 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
33851 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
33852 (*add<GPI>3 peepholes): New.
33853 (*add<GPI>3 splitters): New.
33854 * config/aarch64/constraints.md (Upl): New.
33855 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
33856
33857 2016-01-18 Richard Biener <rguenther@suse.de>
33858
33859 PR tree-optimization/69297
33860 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
33861 stmt at most once.
33862 (vect_bb_vectorization_profitable_p): Clear visited flag again.
33863
33864 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
33865
33866 PR middle-end/68542
33867 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
33868 of mixind vector and scalar types.
33869 (fold_relational_const): Add handling of vector
33870 comparison with boolean result.
33871 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
33872 comparison of vector operands with boolean result for EQ/NE only.
33873 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
33874 (verify_gimple_cond): Likewise.
33875 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
33876 valid type of VAL.
33877
33878 2016-01-18 Joseph Myers <joseph@codesourcery.com>
33879
33880 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
33881 !TARGET_OCTEON.
33882
33883 2016-01-18 Richard Biener <rguenther@suse.de>
33884
33885 PR middle-end/69308
33886 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
33887
33888 2016-01-18 Tom de Vries <tom@codesourcery.com>
33889
33890 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
33891
33892 2016-01-18 Tom de Vries <tom@codesourcery.com>
33893
33894 * omp-low.c (set_oacc_fn_attrib): Make extern.
33895 * omp-low.h (set_oacc_fn_attrib): Declare.
33896 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
33897 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
33898 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
33899 Add and handle function parameter oacc_kernels_p.
33900 (find_reduc_addr, get_omp_data_i_param): New function.
33901 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
33902 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
33903 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
33904 Calculate dominance info. Skip loops that are not in a kernels region
33905 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
33906 (pass_parallelize_loops::execute): Call parallelize_loops with
33907 oacc_kernels_p argument.
33908 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
33909 New member function.
33910 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
33911 * passes.def: Add argument to pass_parallelize_loops instantation.
33912
33913 2016-01-18 Tom de Vries <tom@codesourcery.com>
33914
33915 * tree-parloops.c (pass_parallelize_loops::execute): Allow
33916 pass_parallelize_loops to be run outside the loop pipeline.
33917
33918 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
33919
33920 * tree-scalar-evolution.c (follow_copies_to_constant): New.
33921 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
33922
33923 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
33924
33925 PR target/63679
33926 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
33927 using get_ref_base_and_extent.
33928 (equal_mem_array_ref_p): New.
33929 (hashable_expr_equal_p): Add call to previous.
33930
33931 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
33932
33933 PR target/63679
33934 * tree-sra.c (disqualified_constants, constant_decl_p): New.
33935 (sra_initialize): Allocate disqualified_constants.
33936 (sra_deinitialize): Free disqualified_constants.
33937 (disqualify_candidate): Update disqualified_constants when appropriate.
33938 (create_access): Scan for constant-pool entries as we go along.
33939 (scalarizable_type_p): Add check against type_contains_placeholder_p.
33940 (maybe_add_sra_candidate): Allow constant-pool entries.
33941 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
33942 (initialize_constant_pool_replacements): New.
33943 (sra_modify_assign): Avoid mangling assignments created by previous,
33944 and don't generate writes into constant pool.
33945 (sra_modify_function_body): Call initialize_constant_pool_replacements.
33946
33947 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
33948
33949 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
33950 andnot instruction.
33951 (scalar_chain::convert_op): Likewise.
33952 * config/i386/i386.md (*andndi3_doubleword): New.
33953
33954 2016-01-18 Richard Biener <rguenther@suse.de>
33955
33956 PR tree-optimization/69170
33957 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
33958 building a vector from scalar results of a pattern stmt.
33959
33960 2016-01-18 Jakub Jelinek <jakub@redhat.com>
33961
33962 * haifa-sched.c (autopref_multipass_init): Work around
33963 -Wmaybe-uninitialized warning.
33964
33965 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
33966
33967 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
33968 against the constant 0.
33969
33970 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33971
33972 PR tree-optimization/68799
33973 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
33974 look up phi candidates in the statement-candidate map.
33975 (phi_add_costs): Likewise.
33976 (record_phi_increments): Likewise.
33977 (phi_incr_cost): Likewise.
33978 (ncd_with_phi): Likewise.
33979 (all_phi_incrs_profitable): Likewise.
33980
33981 2016-01-17 Jakub Jelinek <jakub@redhat.com>
33982
33983 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
33984 -Wmaybe-uninitialized warning.
33985
33986 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
33987
33988 * doc/invoke.texi (Invoking GCC): Add new section to menu.
33989 (Option Summary): Update to reflect new section and moved options.
33990 (C++ Dialect Options): Move -fvtable-verify and related options.
33991 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
33992 and profiling-related options.
33993 (Optimization Options): Move profile generation options and
33994 -fstack-protector and related options.
33995 (Instrumentation Options): New section incorporating moved options.
33996 (Code Generation Options): Move -finstrument-functions and
33997 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
33998
33999 2016-01-16 Tom de Vries <tom@codesourcery.com>
34000
34001 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
34002
34003 2016-01-16 Tom de Vries <tom@codesourcery.com>
34004
34005 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
34006
34007 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
34008
34009 * hash-table.h (hash_table::empty): Turn into an inline wrapper
34010 that checks whether the table is already empty. Rename the
34011 original implementation to...
34012 (hash_table::empty_slot): ...this new private function.
34013
34014 2016-01-15 David Malcolm <dmalcolm@redhat.com>
34015
34016 PR diagnostic/68899
34017 * diagnostic-show-locus.c (layout::print_source_line): Move x
34018 offset of line until after call to
34019 get_line_width_without_trailing_whitespace.
34020
34021 2016-01-15 Jeff Law <law@redhat.com>
34022
34023 PR tree-optimization/69270
34024 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
34025 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
34026 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
34027 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
34028 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
34029 ssa_name_has_boolean_range and constant_boolean_node.
34030
34031 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
34032
34033 PR rtl-optimization/69030
34034 * lra-spills.c (remove_pseudos): Check nrefs and make the function
34035 returning bool.
34036 (spill_pseudos): Delete debug insn for dead pseudo.
34037 (lra_spill): Initiate spill_hard_reg and slots memory separately.
34038
34039 2016-01-15 Jiong Wang <jiong.wang@arm.com>
34040
34041 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
34042 New.
34043 (TYPES_UNOPUS): Likewise.
34044 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
34045 builtin type, from UNOP to UNOPUS.
34046 (lbtruncuv4sf): Likewise.
34047 (lbtruncuv2df): Likewise.
34048 (lrounduv2sf): Likewise.
34049 (lrounduv4sf): Likewise.
34050 (lrounduv2df): Likewise.
34051 (lroundusf): Likewise.
34052 (lroundusf): Likewise.
34053 (lceiluv2sf): Likewise.
34054 (lceiluv4sf): Likewise.
34055 (lceiluv2df): Likewise.
34056 (lceilusf): Likewise.
34057 (lceiludf): Likewise.
34058 (lflooruv2sf): Likewise.
34059 (lflooruv4sf): Likewise.
34060 (lflooruv2df): Likewise.
34061 (lfloorusf): Likewise.
34062 (lfloorudf): Likewise.
34063 (lfrintnuv2sf): Likewise.
34064 (lfrintnuv4sf): Likewise.
34065 (lfrintnuv2df): Likewise.
34066 (lfrintnusf): Likewise.
34067 (lfrintnudf): Likewise.
34068 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
34069 conversion.
34070 (vcvtq_u32_f32): Likewise.
34071 (vcvtq_u64_f64): Likewise.
34072 (vcvta_u32_f32): Likewise.
34073 (vcvtaq_u32_f32): Likewise.
34074 (vcvtaq_u64_f64): Likewise.
34075 (vcvtm_u32_f32): Likewise.
34076 (vcvtmq_u32_f32): Likewise.
34077 (vcvtmq_u64_f64): Likewise.
34078 (vcvtn_u32_f32): Likwise.
34079 (vcvtnq_u32_f32): Likewise.
34080 (vcvtnq_u64_f64): Likewise.
34081 (vcvtp_u32_f32): Likewise.
34082 (vcvtpq_u32_f32): Likewise.
34083 (vcvtpq_u64_f64): Likewise.
34084 (vcvtmd_u64_f64): Likewise.
34085 (vcvtms_u32_f32): Likewise.
34086 (vcvtad_u64_f64): Likewise.
34087 (vcvtas_u32_f32): Likewise.
34088 (vcvtnd_u64_f64): Likewise.
34089 (vcvtns_u32_f32): Likewise.
34090 (vcvtpd_u64_f64): Likewise.
34091 (vcvtps_u32_f32): Likewise.
34092
34093 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34094
34095 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
34096 CSEL of zero_extended registers.
34097
34098 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34099
34100 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
34101 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
34102
34103 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34104
34105 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
34106 false when argument string is not found in the attributes table
34107 at all.
34108
34109 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
34110
34111 PR target/68609
34112 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
34113 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
34114 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
34115 precision estimate.
34116
34117 2016-01-15 Richard Biener <rguenther@suse.de>
34118
34119 PR tree-optimization/66856
34120 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
34121 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
34122 (vect_create_new_slp_node): Increment stmt reference count.
34123 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
34124 an SLP tree before swapping operands.
34125 (vect_build_slp_tree): Likewise.
34126 (destroy_bb_vec_info): Free stmt info after SLP instances.
34127 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
34128 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
34129 (STMT_VINFO_NUM_SLP_USES): New macro.
34130
34131 2016-01-15 Richard Biener <rguenther@suse.de>
34132
34133 PR debug/69137
34134 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
34135 (add_linkage_name): ... here.
34136 (gen_typedef_die): Use add_linkage_name_raw instead of
34137 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
34138 if necessary.
34139
34140 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
34141
34142 * gimplify.c (oacc_default_clause): Decode reference and pointer
34143 types for both kernels and parallel regions.
34144
34145 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
34146
34147 PR middle-end/69246
34148 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
34149
34150 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
34151
34152 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
34153 (convert_scalars_to_vector): Likewise.
34154
34155 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
34156
34157 * doc/extend.texi (Type Traits): Fix grammar.
34158
34159 2016-01-15 Martin Jambor <mjambor@suse.cz>
34160
34161 * tree-inline.c (remap_decl): Use existing dclarations if
34162 remapping a type and prevent_decl_creation_for_types.
34163 (replace_locals_stmt): Do an initial remapping of non-VLA typed
34164 decls first. Do real remapping with
34165 prevent_decl_creation_for_types set.
34166 * tree-inline.h (copy_body_data): New field
34167 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
34168 padding.
34169
34170 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34171
34172 * config/s390/s390.opt (mmvcle): More verbose help text.
34173
34174 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34175
34176 * config/s390/s390.opt: Add period to -mzvector option text.
34177
34178 2016-01-15 Richard Biener <rguenther@suse.de>
34179
34180 PR tree-optimization/68961
34181 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
34182 of invariants in stores again.
34183
34184 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
34185
34186 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
34187
34188 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
34189
34190 * config/i386/i386.c (ix86_expand_branch): Don't split
34191 DI mode xor instruction to SI mode.
34192
34193 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
34194
34195 PR ipa/68148
34196 * ipa-icf.c (sem_function::merge): Virtual functions may become
34197 reachable even if they address is not taken and there are no
34198 idrect calls.
34199
34200 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
34201
34202 * lto-streamer-out.c (subtract_estimated_size): New function.
34203 (get_symbol_initial_value): Use it.
34204
34205 2016-01-15 Christian Bruel <christian.bruel@st.com>
34206
34207 PR target/65837
34208 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
34209 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
34210 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
34211 use add_builtin_function_ext_scope instead of add_builtin_function.
34212 (neon_set_p, neon_crypto_set_p): Remove.
34213 (arm_init_builtins): Always call arm_init_neon_builtins and
34214 arm_init_crypto_builtins.
34215 (arm_expand_builtin): Check that builtins are allowed for the arch.
34216 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
34217 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
34218 arm_init_neon_builtins call.
34219
34220 2016-01-15 Richard Biener <rguenther@suse.de>
34221
34222 PR tree-optimization/69117
34223 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
34224 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
34225 of the leader conservatively.
34226 (free_scc_vn): Restore original SSA name infos.
34227
34228 2016-01-14 Jeff Law <law@redhat.com>
34229
34230 PR tree-optimization/69270
34231 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
34232 single bit of precision, verify it's also unsigned.
34233 (record_edge_info): Use constant_boolean_node rather than fold_convert
34234 to convert boolean_true/boolean_false to the right type.
34235
34236 2016-01-14 Richard Henderson <rth@redhat.com>
34237
34238 PR rtl-opt/69014
34239 * loop-doloop.c (record_reg_sets): New.
34240 (doloop_optimize): Reject the transform if the sequence
34241 clobbers registers live at the end of the loop block.
34242 (doloop_optimize_loops): Enable df_live if needed.
34243
34244 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
34245
34246 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
34247 * config/rs6000/rs6000.c: Likewise.
34248 * config/rs6000/rs6000.h: Likewise.
34249 * config/rs6000/rs6000.md: Likewise.
34250 * doc/extend.texi: Likewsie.
34251
34252 2016-01-14 Jeff Law <law@redhat.com>
34253
34254 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
34255 typo.
34256
34257 2016-01-14 Richard Henderson <rth@redhat.com>
34258
34259 PR c/69272
34260 PR tree-opt/68964
34261 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
34262 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
34263 instead of builtin_decl_declared_p to test for declaration.
34264
34265 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
34266
34267 * doc/loop.texi (Loop Analysis and Representation): Document
34268 loop_depth function.
34269
34270 2016-01-14 Tom de Vries <tom@codesourcery.com>
34271
34272 PR tree-optimization/68773
34273 * omp-low.c (expand_omp_target): Don't set force_output.
34274 * varpool.c (varpool_node::get_create): Same.
34275 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
34276 offload_funcs with force_output.
34277
34278 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34279
34280 PR debug/69244
34281 * lra-eliminations.c (move_plus_up): Don't change anything if either
34282 the outer or inner subreg mode is not MODE_INT.
34283 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
34284 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
34285
34286 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
34287
34288 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
34289 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
34290 reduc_uplus_@var{m}): Remove.
34291 * expr.c (expand_expr_real_2): Remove expansion path for
34292 reduc_[us](min|max|plus) optabs.
34293 * optabs-tree.c (scalar_reduc_to_vector): Remove.
34294 * optabs-tree.h (scalar_reduc_to_vector): Remove.
34295 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
34296 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
34297 * tree-vect-loop.c (vectorizable_reduction): Remove test for
34298 reduc_[us](min|max|plus) optabs.
34299
34300 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
34301
34302 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
34303 (reduc_plus_scal_v2sf): New.
34304 (reduc_smax_v2sf): Rename to...
34305 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
34306 (reduc_smin_v2sf): Rename to...
34307 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
34308
34309 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
34310
34311 * alias.c (compare_base_symbol_refs): New function.
34312 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
34313 it.
34314
34315 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34316
34317 PR middle-end/68146
34318 PR tree-optimization/69155
34319 * tree-complex.c: Include cfganal.h.
34320 (phis_to_revisit): New variable.
34321 (extract_component): Add phiarg_p argument. Assert that returned
34322 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
34323 (update_phi_components): Partly rewrite to use loop over real/imag
34324 components instead of code duplication. If extract_component returns
34325 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
34326 create_tmp_reg into the PHI node instead, and mention the phi triplet
34327 in phis_to_revisit.
34328 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
34329 in phis_to_revisit at the end.
34330
34331 2016-01-14 Richard Biener <rguenther@suse.de>
34332
34333 PR tree-optimization/68060
34334 * tree-vect-loop.c (vect_is_simple_reduction): Check the
34335 outer loop reduction is only used in the inner loop before
34336 detecting a double reduction.
34337
34338 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34339
34340 PR target/68269
34341 * combine.c (expand_field_assignment): Punt if compute_mode is
34342 unsupported scalar mode.
34343
34344 2016-01-14 Richard Biener <rguenther@suse.de>
34345
34346 PR tree-optimization/66856
34347 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
34348 SLP node only if it built successfully.
34349 (vect_analyze_slp_instance): Adjust.
34350
34351 2016-01-14 Jeff Law <law@redhat.com>
34352
34353 PR tree-optimization/69270
34354 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
34355 (record_edge_info): Use it. Convert boolean_{true,false}_node
34356 to the type of op0.
34357
34358 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
34359
34360 PR ipa/66487
34361 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
34362 use block_ultimate_origin
34363 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
34364
34365 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
34366
34367 * doc/invoke.texi (Submodel Options): Rename section to
34368 "Machine-Dependent Options" to better reflect its content.
34369 Rewrite introductory text to remove archaic CPU names.
34370 Update references.
34371
34372 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
34373
34374 * doc/invoke.texi (Code Gen Options): Move section up in file,
34375 before target-specific options. Update menu and option summary
34376 to reflect the new section ordering.
34377
34378 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
34379
34380 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
34381 (C++ Dialect Options): Add cross-reference to -std option.
34382 * doc/standards.texi (C++ Language): Document C++14 support.
34383
34384 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
34385
34386 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
34387 for pack/unpack functions for __ibm128.
34388 (PACK_IF): Likewise.
34389 (UNPACK_IF): Likewise.
34390
34391 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
34392 support for __ibm128 pack/unpack functions.
34393 (rs6000_invalid_builtin): Likewise.
34394 (rs6000_init_builtins): Likewise.
34395 (rs6000_opt_masks): Likewise.
34396
34397 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
34398 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
34399 functions
34400 (RS6000_BTM_COMMON): Likewise.
34401
34402 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
34403 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
34404 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
34405 128-bit floating point. Add support for the double values to be
34406 in Altivec registers for TF/IF packing and unpacking, but restrict
34407 TD packing sub-fields to be FPR registers. Don't allow overlapped
34408 register support for packing. Allow pack inputs to be memory
34409 locations. Don't build generator functions for unpack<mode>_dm
34410 and unpack<mode>_nodm.
34411 (unpack<mode>_dm): Likewise.
34412 (unpack<mode>_nodm): Likewise.
34413 (pack<mode>): Likewise.
34414
34415 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
34416 built-in functions to pack/unpack explicit __ibm128 values.
34417 (__builtin_unpack_ibm128): Likewise.
34418
34419 * doc/extend.texi (PowerPC Built-in Functions): Document
34420 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
34421
34422 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
34423
34424 PR c/66208
34425 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
34426 Add new arg loc and pass it down as context.
34427 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
34428 to the location to use for the warning.
34429 (check_function_arguments): New arg loc. All callers changed. Pass
34430 it to check_function_nonnull.
34431 * c-common.h (check_function_arguments): Adjust declaration.
34432
34433 2016-01-13 Jakub Jelinek <jakub@redhat.com>
34434
34435 PR tree-optimization/69156
34436 * gimple.c (validate_type): Removed.
34437 (gimple_builtin_call_types_compatible_p): Use
34438 useless_type_conversion_p instead of validate_type.
34439 * value-prof.c (gimple_stringop_fixed_value): Fold
34440 icall_size to correct type.
34441
34442 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
34443
34444 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
34445 effects.
34446
34447 2016-01-13 Richard Henderson <rth@redhat.com>
34448
34449 PR tree-opt/68964
34450 * target.def (builtin_tm_load, builtin_tm_store): Remove.
34451 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
34452 (ix86_builtin_tm_store): Remove.
34453 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
34454 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
34455 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
34456 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
34457 * doc/tm.texi: Rebuild.
34458
34459 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
34460 (BUILT_IN_TM_MEMCPY_RTWN): New.
34461 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
34462 fallback from vector to integer helpers.
34463 (build_tm_load): Handle vector types directly, instead of
34464 via target hook.
34465 (build_tm_store): Likewise.
34466 (expand_assign_tm): Prepare for register types not handled by
34467 the above. Copy them to memory and use memcpy.
34468 * tree.c (tm_define_builtin): New.
34469 (find_tm_vector_type): New.
34470 (build_tm_vector_builtins): New.
34471 (build_common_builtin_nodes): Call it.
34472
34473 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
34474
34475 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
34476 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
34477
34478 2016-01-13 Tom de Vries <tom@codesourcery.com>
34479
34480 PR tree-optimization/69169
34481 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
34482 handled_struct_type param.
34483 (create_variable_info_for, intra_create_variable_infos): Call
34484 create_variable_info_for_1 with extra arg.
34485
34486 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
34487
34488 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
34489 and "armv8.1-a+crc" entries.
34490
34491 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
34492
34493 PR target/69228
34494 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
34495 Change first operand predicate from register_or_constm1_operand
34496 to register_operand.
34497 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
34498 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
34499 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
34500 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
34501 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
34502 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
34503 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
34504 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
34505 comparison with constm1_rtx from vec_prefetch_gen part.
34506
34507 2016-01-13 Richard Biener <rguenther@suse.de>
34508
34509 PR tree-optimization/69013
34510 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
34511 Exchange assert for a test.
34512
34513 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34514
34515 PR target/69247
34516 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
34517
34518 2016-01-13 Richard Biener <rguenther@suse.de>
34519
34520 PR tree-optimization/69242
34521 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
34522 assert with a check.
34523
34524 2016-01-13 Richard Biener <rguenther@suse.de>
34525
34526 PR tree-optimization/69186
34527 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
34528 Properly guard vect_update_misalignment_for_peel call.
34529
34530 2016-01-12 Jeff Law <law@redhat.com>
34531
34532 PR tree-optimization/pr67755
34533 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
34534 "need_profile_correction".
34535 (thread_block_1): Initialize new field to false by default. If we
34536 have multiple thread paths through a common joiner to different
34537 final targets, then set new field to true.
34538 (compute_path_counts): Only do count adjustment when it's really
34539 needed.
34540
34541 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
34542
34543 * doc/invoke.texi (Spec Files): Move section down in file, past
34544 all command-line option descriptions.
34545
34546 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34547
34548 PR middle-end/54809
34549 * doc/gty.texi: Remove documentation of mark_hook.
34550 * gengtype.c (struct write_types_data): Remove code to support
34551 mark_hook attribute.
34552 (walk_type): Likewise.
34553 (write_func_for_structure): Likewise.
34554
34555 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
34556
34557 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
34558 Directory Options, and -specs= to Overall Options.
34559 (Overall Options): Adjust similarly. Reorder to group related
34560 options together. Make -specs= cross-reference the spec file details.
34561 (Directory Options): Adjust similarly.
34562
34563 2016-01-12 Jeff Law <law@redhat.com>
34564
34565 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
34566
34567 2016-01-12 Olivier Hainque <hainque@adacore.com>
34568
34569 * gcc.c (spec_undefvar_allowed): New global.
34570 (process_command): Set to true when running for --version or --help,
34571 alone or together.
34572 (getenv_spec_function): When the variable is not defined, use the
34573 variable name as the variable value if we're allowed not to issue
34574 a fatal error.
34575
34576 2016-01-12 Bin Cheng <bin.cheng@arm.com>
34577
34578 PR tree-optimization/68911
34579 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
34580 information computed for expression "init + nit * step".
34581
34582 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
34583
34584 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
34585 about name of GCC executable. Remove deleted node from menu.
34586 (Directory Options) <-B>: Remove cross-reference to deleted node.
34587 (Target Options): Delete section.
34588
34589 2016-01-12 Christian Bruel <christian.bruel@st.com>
34590
34591 PR target/69180
34592 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
34593 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
34594
34595 2016-01-12 Jakub Jelinek <jakub@redhat.com>
34596
34597 PR target/69198
34598 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
34599 aligned_mem is properly set for AVX512-VL floating point masked
34600 stores.
34601
34602 PR target/69175
34603 * ifcvt.c (cond_exec_process_if_block): When removing the last
34604 insn from then_bb, remove also any possible barriers that follow it.
34605
34606 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
34607
34608 PR target/68456
34609 PR target/69226
34610 * config/i386/iamcu.h (SIZE_TYPE): New macro.
34611 (PTRDIFF_TYPE): Likewise.
34612 (WCHAR_TYPE): Likewise.
34613 (WCHAR_TYPE_SIZE): Likewise.
34614 (STDINT_LONG32): Likewise.
34615
34616 2016-01-12 Richard Biener <rguenther@suse.de>
34617
34618 PR tree-optimization/69053
34619 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
34620 convert initial value for cond reductions.
34621
34622 2016-01-12 Richard Biener <rguenther@suse.de>
34623
34624 PR tree-optimization/69007
34625 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
34626 widen_sum after dot_prod and sad.
34627
34628 2016-01-12 Richard Biener <rguenther@suse.de>
34629
34630 PR tree-optimization/69168
34631 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
34632 pattern stmt SLP type.
34633 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
34634 end up unused so cope with that case.
34635
34636 2016-01-12 Richard Biener <rguenther@suse.de>
34637
34638 PR tree-optimization/69157
34639 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
34640 stmts def type only during analyze phase.
34641 (vectorizable_call): Likewise.
34642 (vectorizable_simd_clone_call): Likewise.
34643 (vectorizable_conversion): Likewise.
34644 (vectorizable_assignment): Likewise.
34645 (vectorizable_shift): Likewise.
34646 (vectorizable_operation): Likewise.
34647 (vectorizable_store): Likewise.
34648 (vectorizable_load): Likewise.
34649
34650 2016-01-12 Richard Biener <rguenther@suse.de>
34651
34652 PR tree-optimization/69174
34653 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
34654 space.
34655 (vectorizable_load): Properly compute the number of loads needed
34656 for permuted strided SLP loads and do not spuriously assign
34657 to SLP_TREE_VEC_STMTS.
34658
34659 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
34660
34661 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
34662 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
34663 (MD_EXEC_PREFIX): Remove.
34664 (MD_STARTFILE_PREFIX) Removee.
34665 (FILE_NAME_ABSOLUTE_P): Remove.
34666 (CPP_SPEC): Do not read macros from sys/version.h.
34667 (LINK_COMMAND_SPEC): Remove.
34668 (LOCAL_INCLUDE_DIR): Remove.
34669 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
34670 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
34671 (POST_LINK_SPEC): Define to invoke stubify after linker
34672 (LIBSTDCXX): Remove define
34673 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
34674 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
34675 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
34676 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
34677 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
34678 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
34679 (i386_djgpp_asm_named_section): Add propotype of new procedure
34680
34681 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
34682 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
34683 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
34684 in config/i386/djgpp.h).
34685 (STANDARD_STARTFILE_PREFIX_2): Define identical to
34686 STANDARD_STARTFILE_PREFIX_1.
34687 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
34688 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
34689 installation errors.
34690 (MAX_OFILE_ALIGNMENT): Define to 128.
34691 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
34692
34693 * config/i386/djgpp.c: New file. Add implementation of
34694 i386_djgpp_asm_named_section.
34695
34696 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
34697
34698 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
34699 Add rule for building djgpp.o.
34700
34701 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34702
34703 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
34704 (rtx_is_swappable_p): Reductions are swappable.
34705 (insn_is_swappable_p): V2DF reductions are swappable.
34706
34707 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
34708
34709 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
34710 reloads for other unsupported memory operands.
34711
34712 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
34713 Jim Wilson <jim.wilson@linaro.org>
34714
34715 PR target/69194
34716 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
34717 copy_to_mode_reg instead of force_reg.
34718
34719 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
34720
34721 PR target/69225
34722 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
34723 TARGET_80387 is true.
34724
34725 2016-01-11 Jakub Jelinek <jakub@redhat.com>
34726
34727 PR target/69071
34728 * lra-eliminations.c (move_plus_up): Only move plus up
34729 if subreg of the constant can be simplified into constant
34730 and use the simplified subreg of the constant instead of
34731 the original constant.
34732
34733 * fold-const.c (fold_convertible_p): Don't return true
34734 for conversion of VECTOR_TYPE to same sized integral type.
34735 (fold_convert_loc): Fix up formatting. Fold conversion of
34736 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
34737 instead of NOP_EXPR.
34738
34739 PR tree-optimization/69214
34740 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
34741 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
34742 Formatting fix.
34743
34744 PR tree-optimization/69207
34745 * tree-vect-slp.c (vect_get_constant_vectors): For
34746 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
34747 fold_convertible_p to vector_type's element type, and always
34748 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
34749
34750 2016-01-11 Richard Biener <rguenther@suse.de>
34751
34752 PR tree-optimization/69173
34753 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
34754 fixup the cycle if all stmts are in a pattern.
34755
34756 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
34757
34758 PR middle-end/68999
34759 * alias.c (base_alias_check): Move check for addresses with
34760 alignment ANDs before the call for compare_base_decls.
34761 (memrefs_conflict_p): Return -1 for different decls
34762 that went through alignment adjustments.
34763
34764 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34765
34766 PR rtl-optimization/68796
34767 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
34768 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
34769 and QImode comparisons against zero with CC_NZmode.
34770 * config/aarch64/iterators.md (short_mask): New mode_attr.
34771
34772 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
34773
34774 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
34775 (<avx512>_store<mode>_mask): Likewise.
34776
34777 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
34778 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34779
34780 PR rtl-optimization/68841
34781 * ifcvt.c (struct noce_if_info): Add orig_x field.
34782 (bbs_ok_for_cmove_arith): Add to_rename parameter.
34783 Don't record conflicts on to_rename if it's present.
34784 Allow memory destinations in sets.
34785 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
34786 blocks, passing orig_x to the checks.
34787 (noce_process_if_block): Set if_info->orig_x appropriately.
34788
34789 2016-01-11 Tom de Vries <tom@codesourcery.com>
34790
34791 PR tree-optimization/69069
34792 * tree-parloops.c (create_parallel_loop): Add missing phi args.
34793
34794 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
34795
34796 PR rtl-optimization/68920
34797 * config/i386/i386.c (ix86_option_override_internal): Restrict number
34798 of conditional moves for RTL if-conversion to 1 for
34799 TARGET_ONE_IF_CONV_INSN.
34800 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
34801 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
34802 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
34803 parameter to restirct number of conditional moves for
34804 RTL if-conversion.
34805 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
34806 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
34807 conditionl moves.
34808
34809 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
34810
34811 PR bootstrap/69123
34812 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
34813 onepart vars. Fix typo in comment. Fix reversed condition in
34814 unshare test.
34815 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
34816
34817 PR bootstrap/69123
34818 * var-tracking.c (dump_onepart_variable_differences): New.
34819 (dataflow_set_different): If a detailed dump is requested,
34820 delay early returns and dump differences between onepart
34821 variables present before and after, and added variables.
34822
34823 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
34824
34825 PR target/69010
34826 * expr.c (expand_expr_real_1): For boolean vector constants
34827 with a scalar mode use const_scalar_mask_from_tree.
34828 (const_scalar_mask_from_tree): New.
34829 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
34830 assigned to a mask type to handle constants.
34831
34832 2016-01-11 Martin Jambor <mjambor@suse.cz>
34833
34834 PR ipa/69044
34835 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
34836 useless parameters if we cannot change function signature.
34837
34838 2016-01-11 Martin Jambor <mjambor@suse.cz>
34839
34840 PR ipa/66616
34841 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
34842 flag.
34843
34844 2016-01-11 Tom de Vries <tom@codesourcery.com>
34845
34846 PR tree-optimization/69109
34847 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
34848 latch with phi.
34849
34850 2016-01-11 Tom de Vries <tom@codesourcery.com>
34851
34852 PR tree-optimization/69108
34853 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
34854 res is not used in a phi.
34855
34856 2016-01-11 Yury Gribov <y.gribov@samsung.com>
34857
34858 PR 67425
34859 * common.opt (frandom-seed): Fix parameter name.
34860 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
34861
34862 2016-01-11 Tom de Vries <tom@codesourcery.com>
34863
34864 PR tree-optimization/69058
34865 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
34866 not supported.
34867
34868 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
34869
34870 * config/arc/arc.opt (mdiv-rem): Add period to the end.
34871 (mcode-density): Likewise.
34872
34873 2016-01-10 Tom de Vries <tom@codesourcery.com>
34874
34875 PR tree-optimization/69062
34876 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
34877 (parallelize_loops): Don't paralelize loop that has phi with address
34878 arg.
34879
34880 2016-01-10 Tom de Vries <tom@codesourcery.com>
34881
34882 PR tree-optimization/69039
34883 * tree-parloops.c (try_create_reduction_list): Only allow single exit
34884 phi for reduction.
34885
34886 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
34887
34888 PR middle-end/68743
34889 * match.pd: Require target has function_c99_misc before doing
34890 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
34891
34892 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
34893
34894 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
34895 use GMPINC.
34896 * configure: Regenerate.
34897
34898 2016-01-09 Jakub Jelinek <jakub@redhat.com>
34899
34900 PR middle-end/50865
34901 PR tree-optimization/69097
34902 * fold-const.h (expr_not_equal_to): New prototype.
34903 * fold-const.c: Include stringpool.h and tree-ssanames.h.
34904 (expr_not_equal_to): New function.
34905 * match.pd (X % -Y is the same as X % Y): Don't optimize
34906 unless X is known not to be equal to minimum or Y is known
34907 not to be equal to -1.
34908 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
34909 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
34910 (simplify_stmt_using_ranges): Adjust caller.
34911 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
34912 substitute_and_fold.
34913
34914 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
34915
34916 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
34917 w/o DECL_NAME.
34918
34919 2016-01-08 Jakub Jelinek <jakub@redhat.com>
34920
34921 PR tree-optimization/69167
34922 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
34923 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
34924 ops[0] comparison.
34925 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
34926
34927 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
34928 Richard Biener <rguenther@suse.de>
34929
34930 PR tree-optimization/68707
34931 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
34932 instances that can be handled via vect_load_lanes.
34933
34934 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
34935
34936 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
34937 if we can't determine address equivalence.
34938 * alias.c (compare_base_decl): Update for changed return value of
34939 symtab_node::equal_address_to.
34940
34941 2016-01-08 Jason Merrill <jason@redhat.com>
34942
34943 PR c++/68983
34944 PR c++/67557
34945 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
34946 * expr.c (store_field): Not here.
34947 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
34948 call with TREE_ADDRESSABLE type.
34949 * tree-cfg.c (verify_gimple_call): Adjust.
34950
34951 2016-01-08 Olivier Hainque <hainque@adacore.com>
34952
34953 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
34954 libc_internal.
34955
34956 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
34957
34958 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
34959 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
34960 (reduc_smin_v2sf): Rename to...
34961 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
34962 (reduc_splus_v2sf): Rename to...
34963 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
34964
34965 2016-01-08 Jakub Jelinek <jakub@redhat.com>
34966
34967 PR tree-optimization/69162
34968 * gimplify.c (gimplify_va_arg_expr): Encode original type of
34969 valist argument in another argument.
34970 (gimplify_modify_expr): Adjust for the above change. Cleanup.
34971 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
34972 to determine the va_list type, build a MEM_REF instead of
34973 build_fold_indirect_ref.
34974
34975 PR tree-optimization/69172
34976 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
34977 gimple_build.
34978
34979 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
34980
34981 PR tree-optimization/67781
34982 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
34983 and cmpnop in two steps: first the ones not accessed in original
34984 gimple expression in a endian independent way and then the ones not
34985 accessed in the final result in an endian-specific way.
34986
34987 2016-01-08 Jakub Jelinek <jakub@redhat.com>
34988
34989 PR tree-optimization/69083
34990 * tree-vect-slp.c (vect_get_constant_vectors): For
34991 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
34992 element type. If op is fold_convertible_p to vector_type's element
34993 type, use NOP_EXPR instead of VCE.
34994
34995 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
34996
34997 PR rtl-optimization/67778
34998 PR rtl-optimization/68634
34999 PR rtl-optimization/68909
35000 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
35001 block from the stack until done with it. Remove a superfluous
35002 bitmap set. Remove a superfluous bitmap test.
35003
35004 2016-01-07 Martin Sebor <msebor@redhat.com>
35005
35006 PR c/68966
35007 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
35008 constraint on the type of arguments.
35009
35010 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
35011
35012 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
35013 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
35014 unaligned_access on the gcc_options set.
35015 * config/arm/arm.c (arm_option_override_internal): Use
35016 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
35017
35018 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
35019
35020 PR target/69140
35021 * config/i386/i386.c (ix86_frame_pointer_required): Enable
35022 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
35023
35024 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
35025
35026 Revert
35027 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
35028
35029 PR target/69140
35030 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35031 depending on frame_pointer_needed before remaining integer and SSE
35032 registers are saved.
35033
35034 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
35035
35036 PR 1078
35037 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
35038
35039 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
35040
35041 PR target/69171
35042 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
35043 Use the "xBm" constraint.
35044 (float<sseintvecmodelower><mode>2<mask_name><round_name):
35045 Likewise.
35046 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
35047 (sse_cvtsi2ssq<round_name>): Likewise.
35048 (sse_cvtss2si<round_name>): Likewise.
35049 (sse_cvtss2siq<round_name>): Likewise.
35050 (sse2_cvtsi2sdq<round_name>): Likewise.
35051 (sse2_cvtsd2si<round_name>): Likewise.
35052 (sse2_cvtsd2siq<round_name>): Likewise.
35053 * config/i386/subst.md (round_nimm_scalar_predicate): New
35054 predicate.
35055
35056 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
35057
35058 PR middle-end/67639
35059 * varasm.c (make_decl_rtl): Mark invalid register vars as
35060 DECL_EXTERNAL.
35061
35062 PR rtl-optimization/66206
35063 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
35064 All callers changed.
35065
35066 2016-01-07 Jakub Jelinek <jakub@redhat.com>
35067
35068 PR tree-optimization/69141
35069 * tree-ssa-pre.c: Include langhooks.h.
35070 (eliminate_dom_walker::before_dom_children): Use
35071 lang_hooks.decl_printable_name instead of
35072 cgraph_node::get ()->name ().
35073
35074 PR middle-end/68960
35075 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
35076 it and DECL_ALIGN too.
35077
35078 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
35079
35080 * config/mips/mips-ftypes.def: Sort to lexicographical order.
35081
35082 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
35083
35084 PR target/69140
35085 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35086 depending on frame_pointer_needed before remaining integer and SSE
35087 registers are saved.
35088
35089 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35090
35091 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
35092 mode iterator with VSX_M2.
35093 (*p9_vecstore_<mode>): Likewise.
35094 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
35095 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
35096 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
35097 (define_split for VSX_LE128 stores): Likewise.
35098 (define_peephole2 for TImode LE swaps): Likewise.
35099 (define_split for VSX_LE128 post-reload stores): Likewise.
35100
35101 2016-01-06 Marek Polacek <polacek@redhat.com>
35102
35103 PR sanitizer/69099
35104 * convert.c (convert_to_integer_1): Adjust call to
35105 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
35106 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
35107 EXPR instead of ARG.
35108 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
35109
35110 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35111
35112 PR 1078
35113 * doc/extend.texi (RL78 Variable Attributes): New section.
35114
35115 2016-01-05 Marek Polacek <polacek@redhat.com>
35116
35117 PR c/69104
35118 * builtins.c (get_memmodel): Use expansion point location rather than
35119 the input location. Call warning_at rather than warning.
35120 (expand_builtin_atomic_compare_exchange): Likewise.
35121 (expand_builtin_atomic_load): Likewise.
35122 (expand_builtin_atomic_store): Likewise.
35123 (expand_builtin_atomic_clear): Likewise.
35124
35125 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
35126
35127 PR target/68991
35128 * config/i386/i386.c (ix86_expand_vector_logical_operator):
35129 Replace nonimmediate_operand with vector_operand.
35130 * config/i386/predicates.md (vector_operand): New predicate.
35131 (general_vector_operand): Replace nonimmediate_operand with
35132 vector_operand.
35133 * config/i386/sse.md: Replace nonimmediate_operand with
35134 vector_operand and m constraint with Bm constraint on SSE
35135 patterns with 16-byte memory operand.
35136 * config/i386/subst.md (round_nimm_predicate): Replace
35137 nonimmediate_operand with vector_operand.
35138 (round_saeonly_nimm_predicate): Likewise.
35139 (round_saeonly_nimm_scalar_predicate): New.
35140
35141 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
35142
35143 PR target/68991
35144 * config/i386/constraints.md (Bm): New constraint.
35145 * config/i386/predicates.md (vector_memory_operand): New
35146 predicate.
35147 * config/i386/sse.md: Replace xm with xBm in plusminus and
35148 any_logic patterns.
35149
35150 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35151
35152 PR 1078
35153 * doc/extend.texi (V850 Function Attributes): New section.
35154 (V850 Variable Attributes): New section.
35155
35156 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35157
35158 PR 1078
35159 * doc/extend.texi (MicroBlaze Function Attributes): Document
35160 interrupt_handler and fast_interrupt attributes.
35161
35162 2016-01-05 Sergei Trofimovich <siarheit@google.com>
35163
35164 PR other/60465
35165 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
35166 for local symbolic operands.
35167 * config/ia64/predicates.md (local_symbolic_operand64): New
35168 predicate.
35169
35170 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35171
35172 PR rtl-optimization/68651
35173 * combine.c (combine_simplify_rtx): Canonicalize x + x into
35174 x << 1.
35175
35176 2016-01-05 Nathan Sidwell <nathan@acm.org>
35177
35178 * alias.c (compare_base_decls): Use symtab_node::get.
35179
35180 2016-01-05 Nick Clifton <nickc@redhat.com>
35181
35182 PR target/68770
35183 * ira-costs.c (copy_cost): Initialise the t_icode field of the
35184 secondary_reload_info structure.
35185
35186 PR target/66655
35187 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
35188 decls if weak support is available.
35189
35190 2016-01-04 Martin Sebor <msebor@redhat.com>
35191
35192 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
35193
35194 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
35195
35196 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
35197 OPTION_MASK_P9_DFORM.
35198
35199 * config/rs6000/constraints.md (wo constraint): New constraint for
35200 ISA 3.0 (power9).
35201
35202 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
35203 for wo constraint.
35204 (rs6000_init_hard_regno_mode_ok): Likewise.
35205
35206 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
35207 wo constraint.
35208
35209 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
35210 expanders not to have constraints. Add support for ISA 3.0 xxperm
35211 instruction. Add support for fusing xxlor with xxperm.
35212 (altivec_vperm_<mode>_internal): Likewise.
35213 (altivec_vperm_v8hiv16qi): Likewise.
35214 (altivec_vperm_<mode>v16q): Likewise.
35215 (altivec_vperm_<mode>_uns): Likewise.
35216 (vperm_v8hiv4si): Likewise.
35217 (vperm_v16qiv8hi): Likewise.
35218
35219 * doc/md.texi (RS/6000 constraints): Document wo constraint.
35220
35221 2016-01-04 Jakub Jelinek <jakub@redhat.com>
35222
35223 Update copyright years.
35224
35225 * gcc.c (process_command): Update copyright notice dates.
35226 * gcov-dump.c (print_version): Ditto.
35227 * gcov.c (print_version): Ditto.
35228 * gcov-tool.c (print_version): Ditto.
35229 * gengtype.c (create_file): Ditto.
35230 * doc/cpp.texi: Bump @copying's copyright year.
35231 * doc/cppinternals.texi: Ditto.
35232 * doc/gcc.texi: Ditto.
35233 * doc/gccint.texi: Ditto.
35234 * doc/gcov.texi: Ditto.
35235 * doc/install.texi: Ditto.
35236 * doc/invoke.texi: Ditto.
35237
35238 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35239
35240 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
35241 modes larger than TImode as TImode if NEON is not enabled.
35242
35243 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35244
35245 PR target/69100
35246 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
35247 mode for %f0-%f31 only if TARGET_FPU.
35248
35249 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35250
35251 PR target/69072
35252 * config/sparc/sparc.c (scan_record_type): Take into account subfields
35253 to compute the PACKED_P predicate.
35254 (function_arg_record_value): Minor tweaks.
35255
35256 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
35257
35258 * doc/install.texi (--with-multilib-list): Describe the meaning of the
35259 option for arm*-*-* targets.
35260
35261 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
35262
35263 * doc/extend.texi (Common Function Attributes): Move docs for
35264 MSP430-specific attributes to....
35265 (MSP430 Function Attributes): ...here. Delete the redundant
35266 entries and copy-edit the remaining text.
35267 (MSP430 Variable Attributes): Use uniform format for index
35268 entries and add a cross-reference to the corresponding function
35269 attribute docs.
35270
35271 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
35272
35273 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
35274 -finite-math typo.
35275 (x86 Options): Likewise.
35276
35277 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
35278
35279 PR 1078
35280
35281 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
35282 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
35283 to corresponding attribute.
35284
35285 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
35286
35287 * doc/extend.texi (Common Function Attributes) <noplt>: Move
35288 to correct alphabetization of table. Copy-edit and correct
35289 markup.
35290 <stack_protect>: Likewise.
35291 <target_clones>: Likewise.
35292 <simd>: Likewise.
35293 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
35294 Correct punctuation.
35295 (Code Gen Options) <-fno-plt>: Copy-edit.
35296
35297 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
35298
35299 PR target/68917
35300 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
35301 SI values. Explicitly convert SI to DI and vice-versa.
35302
35303 2016-01-01 Jakub Jelinek <jakub@redhat.com>
35304
35305 PR tree-optimization/69070
35306 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
35307 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
35308
35309 PR sanitizer/69055
35310 * ubsan.c (ubsan_instrument_float_cast): Call
35311 initialize_sanitizer_builtins.
35312
35313 PR target/69015
35314 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
35315 \f
35316 Copyright (C) 2016 Free Software Foundation, Inc.
35317
35318 Copying and distribution of this file, with or without modification,
35319 are permitted in any medium without royalty provided the copyright
35320 notice and this notice are preserved.