[arm] Rework arm-common to use new feature bits.
[gcc.git] / gcc / ChangeLog
1 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
2
3 * arm-opts.h (struct arm_arch_core_flag): Add new field ISA.
4 Initialize it.
5 (arm_arch_core_flag): Delete flags field.
6 (arm_arch_core_flags): Don't initialize flags field.
7 * common/config/arm/arm-common.c (check_isa_bits_for): New function.
8 (arm_target_thumb_only): Use new isa bits arrays.
9
10 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
11
12 * arm-protos.h (insn_flags): Delete declaration.
13 (arm_arch7ve): Declare.
14 * arm.c (insn_flags): Delete.
15 (arm_arch7ve): New variable.
16 (arm_selected_cpu): Delete.
17 (arm_option_check_internal): Use new ISA bitmap.
18 (arm_option_override_internal): Likewise.
19 (arm_configure_build_target): Declare arm_selected_cpu locally.
20 (arm_option_override): Use new ISA bitmap. Initialize arm_arch7ve.
21 Rearrange variable intialization by general function.
22 * arm.h (TARGET_HAVE_LPAE): Use arm_arch7ve.
23
24 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
25
26 * arm-builtins.c: Include sbitmap.h.
27 (def_mbuiltin): Change first parameter to a flag bit. Use it to test
28 available features in the current target.
29 (struct builtin_description): Change type of feature field.
30 (IWMMXT_BUILTIN): Use the isa_features types.
31 (IWMMXT2_BUILTIN): Likewise.
32 (IWMMXT_BUILTIN2): Likewise.
33 (IWMMXT2_BUILTIN2): Likewise.
34 (CRC32_BUILTIN): Likewise.
35 (CRYPTO_BUILTIN): Likewise.
36 (iwmmx_builtin): Likewise.
37 (iwmmx2_builtin): Likewise.
38 (arm_iwmmxt_builtin): Check for specific feature bits.
39
40 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
41
42 * arm-isa.h (enum isa_feature): Add isa_quirk_cm3_ldrd.
43 (ISA_ALL_QUIRKS): New macro.
44 * arm-cores.def (cortex-m3): Add isa_quirk_cm3_ldrd to isa feature list.
45 * arm.c (isa_quirkbits): New feature-list bitmap.
46 (arm_configure_build_target): Ignore quirk bits when comparing an
47 architecture feature list with a CPU feature list.
48 (arm_option_override): Initialize_isa_quirkbits. If the user has
49 not specified -m[no-]fix-cortex-m3-ldrd, automatically enable the
50 feature if isa_quirk_cm3_ldrd appears in the isa feature list.
51
52 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
53
54 * arm.c (arm_option_override): Use arm_active_target as source of
55 information for arm_base_arch and arm_arch_name.
56 * (arm_file_start): Use arm_active_target for core name.
57
58 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
59
60 * arm.c (arm_selected_tune): Delete static variable.
61 (arm_selected_arch): Likewise.
62 (arm_configure_build_target): Declare local versions of arm_selected
63 target and arm_selected_arch. Initialize more fields in target
64 data structure.
65 (arm_option_override): Use arm_active_target instead of
66 arm_selected_tune and arm_selected_arch.
67 (asm_file_start): Use arm_active_target.
68
69 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
70
71 * arm-protos.h (arm_build_target): New structure.
72 (arm_active_target): Declare it.
73 * arm.c (arm_active_target): New variable.
74 (bitmap_popcount): New function.
75 (feature_count): Delete.
76 (arm_initialize_isa): New function.
77 isa_fpubits): New variable.
78 (arm_configure_build_target): New function.
79 (arm_option_override): Initialize isa_fpubits and arm_active_target.isa.
80 Use arm_configure_build_target.
81
82 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
83
84 * arm-isa.h: New file.
85 * arm-protos.h: Include it.
86 * arm-arches.def: Add new ISA field to all entries. Drop bogus
87 armv8.1-a+crc architecture.
88 * arm-cores.def: Similarly. Group ARMv8 cores by profile.
89 * arm-opts.h (enum processor_type): Adjust for new field.
90 * arm.c (struct processors): New field 'isa_bits'.
91 (all_cores, all_architectures): Initialize new field.
92 * arm-tables.opt: Regenerated.
93 * arm-tune.md: Regenerated.
94
95 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
96
97 * arm-arches.def (ARM_ARCH): Add extra field TUNE_FLAGS, move
98 tuning properties from architectural FLAGS field.
99 * arm-cores.def (ARM_CORE): Likewise.
100 * arm-protos.h (TF_LDSCHED, TF_WBUF, TF_CO_PROC): New macros.
101 (TF_SMALLMUL, TF_STRONG, TF_SCALE, TF_NOMODE32): New macros.
102 (FL_LDSCHED, FL_STRONG, FL_WBUF, FL_SMALLMUL): Delete.
103 (FL_TUNE): Remove deleted elements.
104 (tune_flags): Convert type to unsigned int.
105 * arm.c (struct processors): Add new field tune_flags.
106 (all_cores, all_arches): Initialize it.
107 (arm_option_override): Adapt uses of tune_flags. Use tune_flags
108 for deciding when we should have slow multiply operations.
109
110 2016-12-14 Martin Sebor <msebor@redhat.com>
111
112 PR middle-end/78519
113 * gimple-ssa-sprintf.c (format_string): Handle null pointers.
114 (format_directive): Diagnose null pointer arguments.
115 (pass_sprintf_length::handle_gimple_call): Diagnose null destination
116 pointers. Correct location of null format string in diagnostics.
117
118 2016-12-14 David Malcolm <dmalcolm@redhat.com>
119
120 * Makefile.in (SELFTEST_FLAGS): Add path argument to -fself-test.
121 (s-selftest): Add dependency on the selftests data directory.
122 * common.opt (fself-test): Rename to...
123 (fself-test=): ...this, documenting the meaning of the argument.
124 * selftest-run-tests.c (along): Likewise.
125 * selftest-run-tests.c: Include "options.h".
126 (selftest::run_tests): Initialize selftest::path_to_selftest_files
127 from flag_self_test.
128 * selftest.c (selftest::path_to_selftest_files): New global.
129 (selftest::locate_file): New function.
130 (selftest::test_locate_file): New function.
131 (selftest_c_tests): Likewise.
132 (selftest::selftest_c_tests): Call test_locate_file.
133 * selftest.h (selftest::locate_file): New decl.
134 (selftest::path_to_selftest_files): New decl.
135
136 2016-12-14 Andrew Pinski <apinski@cavium.com>
137
138 * config/aarch64/aarch64-cores.def: Add -1 as the variant to all
139 of the cores.
140 (thunderx): Update to include LSE by default.
141 (thunderxt88p1): New core.
142 (thunderxt88): New core.
143 (thunderxt81): New core.
144 (thunderxt83): New core.
145 * config/aarch64/driver-aarch64.c (struct aarch64_core_data):
146 Add variant field.
147 (ALL_VARIANTS): New define.
148 (AARCH64_CORE): Support VARIANT operand.
149 (cpu_data): Likewise.
150 (host_detect_local_cpu): Parse variant field of /proc/cpuinfo.
151 Combine the arch and single core case and support variant searching.
152 * common/config/aarch64/aarch64-common.c (AARCH64_CORE):
153 Add VARIANT operand.
154 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Likewise.
155 * config/aarch64/aarch64.c (AARCH64_CORE): Likewise.
156 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
157 * config/aarch64/aarch64-tune.md: Regenerate.
158 * doc/invoke.texi (AARCH64/mtune): Document thunderxt88,
159 thunderxt88p1, thunderxt81, thunderxt83 as available options.
160
161 2016-12-14 Martin Jambor <mjambor@suse.cz>
162
163 * omp-offload.c: Fix coding style.
164 * omp-expand.c: Likewise.
165 * omp-general.c: Likewise.
166 * omp-grid.c: Likewise.
167 * omp-low.c: Fix coding style of parts touched by the
168 previous splitting patch.
169
170 2016-12-14 Martin Jambor <mjambor@suse.cz>
171
172 * omp-general.h: New file.
173 * omp-general.c: New file.
174 * omp-expand.h: Likewise.
175 * omp-expand.c: Likewise.
176 * omp-offload.h: Likewise.
177 * omp-offload.c: Likewise.
178 * omp-grid.c: Likewise.
179 * omp-grid.c: Likewise.
180 * omp-low.h: Include omp-general.h and omp-grid.h. Removed includes
181 of params.h, symbol-summary.h, lto-section-names.h, cilk.h, tree-eh.h,
182 ipa-prop.h, tree-cfgcleanup.h, cfgloop.h, except.h, expr.h, stmt.h,
183 varasm.h, calls.h, explow.h, dojump.h, flags.h, tree-into-ssa.h,
184 tree-cfg.h, cfganal.h, alias.h, emit-rtl.h, optabs.h, expmed.h,
185 alloc-pool.h, cfghooks.h, rtl.h and memmodel.h.
186 (omp_find_combined_for): Declare.
187 (find_omp_clause): Renamed to omp_find_clause and moved to
188 omp-general.h.
189 (free_omp_regions): Renamed to omp_free_regions and moved to
190 omp-expand.h.
191 (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
192 to omp-general.h.
193 (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
194 omp-general.h.
195 (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
196 moved to omp-general.h.
197 (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
198 omp-general.h.
199 (oacc_fn_attrib_kernels_p): Moved to omp-general.h.
200 (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
201 omp-general.c.
202 (omp_expand_local): Moved to omp-expand.h.
203 (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
204 omp-expand.h.
205 (omp_finish_file): Moved to omp-offload.h.
206 (default_goacc_validate_dims): Renamed to
207 oacc_default_goacc_validate_dims and moved to omp-offload.h.
208 (offload_funcs, offload_vars): Moved to omp-offload.h.
209 * omp-low.c: Include omp-general.h, omp-offload.h and omp-grid.h.
210 (omp_region): Moved to omp-expand.c.
211 (omp_for_data_loop): Moved to omp-general.h.
212 (omp_for_data): Likewise.
213 (oacc_loop): Moved to omp-offload.c.
214 (oacc_loop_flags): Moved to omp-general.h.
215 (offload_funcs, offload_vars): Moved to omp-offload.c.
216 (root_omp_region): Moved to omp-expand.c.
217 (omp_any_child_fn_dumped): Likewise.
218 (find_omp_clause): Renamed to omp_find_clause and moved to
219 omp-general.c.
220 (is_combined_parallel): Moved to omp-expand.c.
221 (is_reference): Renamed to omp_is_reference and and moved to
222 omp-general.c.
223 (adjust_for_condition): Renamed to omp_adjust_for_condition and moved
224 to omp-general.c.
225 (get_omp_for_step_from_incr): Renamed to omp_get_for_step_from_incr
226 and moved to omp-general.c.
227 (extract_omp_for_data): Renamed to omp_extract_for_data and moved to
228 omp-general.c.
229 (workshare_safe_to_combine_p): Moved to omp-expand.c.
230 (omp_adjust_chunk_size): Likewise.
231 (get_ws_args_for): Likewise.
232 (get_base_type): Removed.
233 (dump_omp_region): Moved to omp-expand.c.
234 (debug_omp_region): Likewise.
235 (debug_all_omp_regions): Likewise.
236 (new_omp_region): Likewise.
237 (free_omp_region_1): Likewise.
238 (free_omp_regions): Renamed to omp_free_regions and moved to
239 omp-expand.c.
240 (find_combined_for): Renamed to omp_find_combined_for, made global.
241 (build_omp_barrier): Renamed to omp_build_barrier and moved to
242 omp-general.c.
243 (omp_max_vf): Moved to omp-general.c.
244 (omp_max_simt_vf): Likewise.
245 (gimple_build_cond_empty): Moved to omp-expand.c.
246 (parallel_needs_hsa_kernel_p): Likewise.
247 (expand_omp_build_assign): Moved declaration to omp-expand.c.
248 (expand_parallel_call): Moved to omp-expand.c.
249 (expand_cilk_for_call): Likewise.
250 (expand_task_call): Likewise.
251 (vec2chain): Likewise.
252 (remove_exit_barrier): Likewise.
253 (remove_exit_barriers): Likewise.
254 (optimize_omp_library_calls): Likewise.
255 (expand_omp_regimplify_p): Likewise.
256 (expand_omp_build_assign): Likewise.
257 (expand_omp_taskreg): Likewise.
258 (oacc_collapse): Likewise.
259 (expand_oacc_collapse_init): Likewise.
260 (expand_oacc_collapse_vars): Likewise.
261 (expand_omp_for_init_counts): Likewise.
262 (expand_omp_for_init_vars): Likewise.
263 (extract_omp_for_update_vars): Likewise.
264 (expand_omp_ordered_source): Likewise.
265 (expand_omp_ordered_sink): Likewise.
266 (expand_omp_ordered_source_sink): Likewise.
267 (expand_omp_for_ordered_loops): Likewise.
268 (expand_omp_for_generic): Likewise.
269 (expand_omp_for_static_nochunk): Likewise.
270 (find_phi_with_arg_on_edge): Likewise.
271 (expand_omp_for_static_chunk): Likewise.
272 (expand_cilk_for): Likewise.
273 (expand_omp_simd): Likewise.
274 (expand_omp_taskloop_for_outer): Likewise.
275 (expand_omp_taskloop_for_inner): Likewise.
276 (expand_oacc_for): Likewise.
277 (expand_omp_for): Likewise.
278 (expand_omp_sections): Likewise.
279 (expand_omp_single): Likewise.
280 (expand_omp_synch): Likewise.
281 (expand_omp_atomic_load): Likewise.
282 (expand_omp_atomic_store): Likewise.
283 (expand_omp_atomic_fetch_op): Likewise.
284 (expand_omp_atomic_pipeline): Likewise.
285 (expand_omp_atomic_mutex): Likewise.
286 (expand_omp_atomic): Likewise.
287 (oacc_launch_pack): and moved to omp-general.c, made public.
288 (OACC_FN_ATTRIB): Likewise.
289 (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
290 to omp-general.c.
291 (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
292 omp-general.c.
293 (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
294 moved to omp-general.c.
295 (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
296 omp-general.c.
297 (oacc_fn_attrib_kernels_p): Moved to omp-general.c.
298 (oacc_fn_attrib_level): Moved to omp-offload.c.
299 (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
300 omp-general.c.
301 (get_oacc_ifn_dim_arg): Renamed to oacc_get_ifn_dim_arg and moved to
302 omp-general.c.
303 (mark_loops_in_oacc_kernels_region): Moved to omp-expand.c.
304 (grid_launch_attributes_trees): Likewise.
305 (grid_attr_trees): Likewise.
306 (grid_create_kernel_launch_attr_types): Likewise.
307 (grid_insert_store_range_dim): Likewise.
308 (grid_get_kernel_launch_attributes): Likewise.
309 (get_target_argument_identifier_1): Likewise.
310 (get_target_argument_identifier): Likewise.
311 (get_target_argument_value): Likewise.
312 (push_target_argument_according_to_value): Likewise.
313 (get_target_arguments): Likewise.
314 (expand_omp_target): Likewise.
315 (grid_expand_omp_for_loop): Moved to omp-grid.c.
316 (grid_arg_decl_map): Likewise.
317 (grid_remap_kernel_arg_accesses): Likewise.
318 (grid_expand_target_grid_body): Likewise.
319 (expand_omp): Renamed to omp_expand and moved to omp-expand.c.
320 (build_omp_regions_1): Moved to omp-expand.c.
321 (build_omp_regions_root): Likewise.
322 (omp_expand_local): Likewise.
323 (build_omp_regions): Likewise.
324 (execute_expand_omp): Likewise.
325 (pass_data_expand_omp): Likewise.
326 (pass_expand_omp): Likewise.
327 (make_pass_expand_omp): Likewise.
328 (pass_data_expand_omp_ssa): Likewise.
329 (pass_expand_omp_ssa): Likewise.
330 (make_pass_expand_omp_ssa): Likewise.
331 (grid_lastprivate_predicate): Renamed to
332 omp_grid_lastprivate_predicate and moved to omp-grid.c, made public.
333 (grid_prop): Moved to omp-grid.c.
334 (GRID_MISSED_MSG_PREFIX): Likewise.
335 (grid_safe_assignment_p): Likewise.
336 (grid_seq_only_contains_local_assignments): Likewise.
337 (grid_find_single_omp_among_assignments_1): Likewise.
338 (grid_find_single_omp_among_assignments): Likewise.
339 (grid_find_ungridifiable_statement): Likewise.
340 (grid_parallel_clauses_gridifiable): Likewise.
341 (grid_inner_loop_gridifiable_p): Likewise.
342 (grid_dist_follows_simple_pattern): Likewise.
343 (grid_gfor_follows_tiling_pattern): Likewise.
344 (grid_call_permissible_in_distribute_p): Likewise.
345 (grid_handle_call_in_distribute): Likewise.
346 (grid_dist_follows_tiling_pattern): Likewise.
347 (grid_target_follows_gridifiable_pattern): Likewise.
348 (grid_remap_prebody_decls): Likewise.
349 (grid_var_segment): Likewise.
350 (grid_mark_variable_segment): Likewise.
351 (grid_copy_leading_local_assignments): Likewise.
352 (grid_process_grid_body): Likewise.
353 (grid_eliminate_combined_simd_part): Likewise.
354 (grid_mark_tiling_loops): Likewise.
355 (grid_mark_tiling_parallels_and_loops): Likewise.
356 (grid_process_kernel_body_copy): Likewise.
357 (grid_attempt_target_gridification): Likewise.
358 (grid_gridify_all_targets_stmt): Likewise.
359 (grid_gridify_all_targets): Renamed to omp_grid_gridify_all_targets
360 and moved to omp-grid.c, made public.
361 (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
362 omp-expand.c.
363 (add_decls_addresses_to_decl_constructor): Moved to omp-offload.c.
364 (omp_finish_file): Likewise.
365 (oacc_thread_numbers): Likewise.
366 (oacc_xform_loop): Likewise.
367 (oacc_default_dims, oacc_min_dims): Likewise.
368 (oacc_parse_default_dims): Likewise.
369 (oacc_validate_dims): Likewise.
370 (new_oacc_loop_raw): Likewise.
371 (new_oacc_loop_outer): Likewise.
372 (new_oacc_loop): Likewise.
373 (new_oacc_loop_routine): Likewise.
374 (finish_oacc_loop): Likewise.
375 (free_oacc_loop): Likewise.
376 (dump_oacc_loop_part): Likewise.
377 (dump_oacc_loop): Likewise.
378 (debug_oacc_loop): Likewise.
379 (oacc_loop_discover_walk): Likewise.
380 (oacc_loop_sibling_nreverse): Likewise.
381 (oacc_loop_discovery): Likewise.
382 (oacc_loop_xform_head_tail): Likewise.
383 (oacc_loop_xform_loop): Likewise.
384 (oacc_loop_process): Likewise.
385 (oacc_loop_fixed_partitions): Likewise.
386 (oacc_loop_auto_partitions): Likewise.
387 (oacc_loop_partition): Likewise.
388 (default_goacc_fork_join): Likewise.
389 (default_goacc_reduction): Likewise.
390 (execute_oacc_device_lower): Likewise.
391 (default_goacc_validate_dims): Likewise.
392 (default_goacc_dim_limit): Likewise.
393 (pass_data_oacc_device_lower): Likewise.
394 (pass_oacc_device_lower): Likewise.
395 (make_pass_oacc_device_lower): Likewise.
396 (execute_omp_device_lower): Likewise.
397 (pass_data_omp_device_lower): Likewise.
398 (pass_omp_device_lower): Likewise.
399 (make_pass_omp_device_lower): Likewise.
400 (pass_data_omp_target_link): Likewise.
401 (pass_omp_target_link): Likewise.
402 (find_link_var_op): Likewise.
403 (pass_omp_target_link::execute): Likewise.
404 (make_pass_omp_target_link): Likewise.
405 * Makefile.in (OBJS): Added omp-offload.o, omp-expand.o, omp-general.o
406 and omp-grid.o.
407 (GTFILES): Added omp-offload.h, omp-offload.c and omp-expand.c, removed
408 omp-low.h.
409 * gimple-fold.c: Include omp-general.h instead of omp-low.h.
410 (fold_internal_goacc_dim): Adjusted calls to
411 get_oacc_ifn_dim_arg and get_oacc_fn_dim_size to use their new names.
412 * gimplify.c: Include omp-low.h.
413 (omp_notice_variable): Adjust the call to get_oacc_fn_attrib to use
414 its new name.
415 (gimplify_omp_task): Adjusted calls to find_omp_clause to use its new
416 name.
417 (gimplify_omp_for): Likewise.
418 * lto-cgraph.c: Include omp-offload.h instead of omp-low.h.
419 * toplev.c: Include omp-offload.h instead of omp-low.h.
420 * tree-cfg.c: Include omp-general.h instead of omp-low.h. Also
421 include omp-expand.h.
422 (make_edges_bb): Adjusted the call to make_gimple_omp_edges to use its
423 new name.
424 (make_edges): Adjust the call to free_omp_regions to use its new name.
425 * tree-parloops.c: Include omp-general.h.
426 (create_parallel_loop): Adjusted the call to set_oacc_fn_attrib to use
427 its new name.
428 (parallelize_loops): Adjusted the call to get_oacc_fn_attrib to use
429 its new name.
430 * tree-ssa-loop.c: Include omp-general.h instead of omp-low.h.
431 (gate_oacc_kernels): Adjusted the call to get_oacc_fn_attrib to use
432 its new name.
433 * tree-vrp.c: Include omp-general.h instead of omp-low.h.
434 (extract_range_basic): Adjusted calls to get_oacc_ifn_dim_arg and
435 get_oacc_fn_dim_size to use their new names.
436 * varpool.c: Include omp-offload.h instead of omp-low.h.
437 * gengtype.c (open_base_files): Replace omp-low.h with omp-offload.h in
438 ifiles.
439 * config/nvptx/nvptx.c: Include omp-general.c.
440 (nvptx_expand_call): Adjusted the call to get_oacc_fn_attrib to use
441 its new name.
442 (nvptx_reorg): Likewise.
443 (nvptx_record_offload_symbol): Likewise.
444
445 2016-12-14 Martin Sebor <msebor@redhat.com>
446
447 PR middle-end/78786
448 * gimple-ssa-sprintf.c (target_dir_max): New macro.
449 (get_mpfr_format_length): New function.
450 (format_integer): Use HOST_WIDE_INT instead of int.
451 (format_floating_max): Same.
452 (format_floating): Call get_mpfr_format_length.
453 (format_directive): Use target_dir_max.
454
455 2016-12-14 Jakub Jelinek <jakub@redhat.com>
456
457 PR target/78791
458 * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_STV_TEMP.
459 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies,
460 dimode_scalar_chain::convert_reg): Use SLOT_STV_TEMP instead of
461 SLOT_TEMP.
462
463 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
464
465 PR target/59874
466 * config/i386/i386-builtin.def: Add __builtin_clzs and __builtin_ctzs.
467 (ix86_fold_builtin): Handle IX86_BUILTIN_CTZS and IX86_BUILTIN_CLZS.
468 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
469 (*clzhi2): Ditto.
470
471 2016-12-14 Jakub Jelinek <jakub@redhat.com>
472
473 PR debug/77844
474 * valtrack.c: Include rtl-iter.h.
475 (struct rtx_subst_pair): Add insn field.
476 (propagate_for_debug_subst): If pair->to contains at least 2
477 regs, create a DEBUG_INSN with a debug temp before pair->insn
478 and replace from with the debug temp instead of pair->to.
479 (propagate_for_debug): Initialize p.insn.
480 * combine.c (insn_uid_check): New inline function.
481 (INSN_COST, LOG_LINKS): Use it instead of INSN_UID.
482 (find_single_use, combine_instructions,
483 cant_combine_insn_p, try_combine): Use NONDEBUG_INSN_P instead of
484 INSN_P.
485
486 2016-12-14 Martin Sebor <msebor@redhat.com>
487
488 PR c/17308
489 * builtin-attrs.def (ATTR_NONNULL_1_1, ATTR_NONNULL_1_2): Defined.
490 (ATTR_NONNULL_1_3, ATTR_NONNULL_1_4, ATTR_NONNULL_1_5): Same.
491 (ATTR_NOTHROW_NONNULL_1_1, ATTR_NOTHROW_NONNULL_1_2): Same.
492 (ATTR_NOTHROW_NONNULL_1_3, ATTR_NOTHROW_NONNULL_1_4): Same.
493 (ATTR_NOTHROW_NONNULL_1_5): Same.
494 (ATTR_NONNULL_1_FORMAT_PRINTF_1_2): Same.
495 (ATTR_NONNULL_1_FORMAT_PRINTF_2_0): Same.
496 (ATTR_NONNULL_1_FORMAT_PRINTF_2_3): Same.
497 (ATTR_NONNULL_1_FORMAT_PRINTF_3_0): Same.
498 (ATTR_NONNULL_1_FORMAT_PRINTF_3_4): Same.
499 (ATTR_NONNULL_1_FORMAT_PRINTF_4_0): Same.
500 (ATTR_NONNULL_1_FORMAT_PRINTF_4_5): Same.
501 * builtins.c (validate_arg): Add argument. Treat null pointers
502 passed to nonnull arguments as invalid.
503 (validate_arglist): Same.
504 * builtins.def (fprintf, fprintf_unlocked): Add nonnull attribute.
505 (printf, printf_unlocked, sprintf. vfprintf, vsprintf): Same.
506 (__sprintf_chk, __vsprintf_chk, __fprintf_chk, __vfprintf_chk): Same.
507 * calls.c (get_nonnull_ags, maybe_warn_null_arg): New functions.
508 (initialize_argument_information): Diagnose null pointers passed to
509 arguments declared nonnull.
510 * calls.h (get_nonnull_args): Declared.
511
512 2016-12-14 Michael Meissner <meissner@linux.vnet.ibm.com>
513
514 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): On ISA
515 3.0/power9, add support to use the VEXTU{B,H,W}{L,R}X extract
516 instructions.
517 * config/rs6000/vsx.md (VSr2): Add IEEE 128-bit floating point
518 type constraint registers.
519 (VSr3): Likewise.
520 (FL_CONV): New mode iterator for binary floating types that have a
521 direct conversion from 64-bit integer to floating point.
522 (vsx_extract_<mode>_p9): Add support for the ISA 3.0/power9
523 VEXTU{B,H,W}{L,R}X extract instructions.
524 (vsx_extract_<mode>_p9 splitter): Add splitter to load up the
525 extract byte position into the GPR if we are using the
526 VEXTU{B,H,W}{L,R}X extract instructions.
527 (vsx_extract_<mode>_di_p9): Support extracts to GPRs.
528 (vsx_extract_<mode>_store_p9): Support extracting to GPRs so that
529 we can use reg+offset address instructions.
530 (vsx_extract_<mode>_var): Support extracts to GPRs.
531 (vsx_extract_<VSX_EXTRACT_I:mode>_<SDI:mode>_var): New combiner
532 insn to combine vector extracts with zero_extend.
533 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Optimize
534 extracting a small integer vector element and converting it to a
535 floating point type.
536 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
537 (UNSPEC_XXEXTRACTUW): New unspec.
538 (UNSPEC_XXINSERTW): Likewise.
539 (vextract4b): Add support for the vec_vextract4b built-in
540 function.
541 (vextract4b_internal): Likewise.
542 (vinsert4b): Add support for the vec_insert4b built-in function.
543 Include both a version that inserts element 1 from a V4SI object
544 and one that inserts a DI object.
545 (vinsert4b_internal): Likewise.
546 (vinsert4b_di): Likewise.
547 (vinsert4b_di_internal): Likewise.
548 * config/rs6000/predicates.md (const_0_to_11_operand): New
549 predicate, match 0..11.
550 * config/rs6000/rs6000-builtin.def (BU_P9V_VSX_3): Set built-in
551 type to ternary, not binary.
552 (BU_P9V_64BIT_VSX_3): Likewise.
553 (P9V_BUILTIN_VEXTRACT4B): Add support for vec_vinsert4b and
554 vec_extract4b non-overloaded built-in functions.
555 (P9V_BUILTIN_VINSERT4B): Likewise.
556 (P9V_BUILTIN_VINSERT4B_DI): Likewise.
557 (P9V_BUILTIN_VEC_VEXTULX): Move to section that adds 2 operand ISA
558 3.0 built-in functions.
559 (P9V_BUILTIN_VEC_VEXTURX): Likewise.
560 (P9V_BUILTIN_VEC_VEXTRACT4B): Add support for overloaded
561 vec_insert4b and vec_extract4 built-in functions.
562 (P9V_BUILTIN_VEC_VINSERT4B): Likewise.
563 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
564 overloaded support for vec_vinsert4b and vec_extract4b.
565 * config/rs6000/rs6000.c (altivec_expand_builtin): Add checks for
566 the vec_insert4b and vec_extract4b byte number being a constant in
567 the range 0..11.
568 * config/rs6000/altivec.h (vec_vinsert4b): Support vec_vinsert4b
569 and vec_extract4b built-in functions.
570 * doc/extend.doc (PowerPC VSX built-in functions): Document
571 vec_insert4b and vec_extract4b.
572
573 2016-12-14 Martin Liska <mliska@suse.cz>
574
575 * gimple-pretty-print.c (dump_probability): New function.
576 (dump_edge_probability): Use the function.
577 (dump_gimple_label): Likewise.
578 (dump_gimple_bb_header): Likewise.
579
580 2016-12-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
581 Jakub Jelinek <jakub@redhat.com>
582
583 * tree-ssa-strlen.c (fold_strstr_to_memcmp): New function.
584 (strlen_optimize_stmt): Call fold_strstr_to_memcmp.
585
586 2016-12-14 Eric Botcazou <ebotcazou@adacore.com>
587
588 * lra-constraints.c (process_address_1): Do not attempt to decompose
589 addresses for MEMs that satisfy fixed-form constraints.
590
591 2016-12-14 Richard Biener <rguenther@suse.de>
592
593 PR tree-optimization/78788
594 * tree-vrp.c (set_value_range): Allow [-INF(OVF), +INF(OVF)].
595 (set_and_canonicalize_value_range): Do not drop the above to
596 VARYING.
597
598 2016-12-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
599
600 * config/rs6000/rs600.c (rs6000_builtin_vectorization_cost):
601 Adjust unaligned load cost.
602
603 2016-12-13 Uros Bizjak <ubizjak@gmail.com>
604
605 PR target/78794
606 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
607 Calculate additional gain for andnot for targets without BMI.
608
609 2016-12-13 Carl Love <cel@us.ibm.com>
610
611 * config/rs6000/rs6000-c.c: Add built-in support for
612 vector float vec_pack (vector double, vector double)
613 vector double vec_sld (vector double, vector double)
614 * config/rs6000/rs6000.c: Add icode check for vsldoi_v2df to allow
615 4-bit unsigned literal.
616 * config/rs6000/rs6000-builtin.def: Add definition for VSLDOI_2DF
617 * doc/extend.texi: Update the built-in documentation file for the
618 new powerpc vec_pack and vec_sld built-ins.
619
620 2016-12-13 Martin Liska <mliska@suse.cz>
621
622 * sanopt.c (sanopt_optimize_walker): Set contains_asan_mark.
623 (sanopt_optimize): Add new argument.
624 (sanitize_asan_mark_unpoison): New function.
625 (maybe_contains_asan_check): Likewise.
626 (sanitize_asan_mark_poison): Likewise.
627 (pass_sanopt::execute): Call the new functions.
628
629 2016-12-13 Martin Liska <mliska@suse.cz>
630
631 PR tree-optimization/78428
632 * expr.c (store_constructor_field): Add new arguments to the function.
633 (store_constructor): Set up bitregion_end and add gcc_unreachable to
634 fields that have either non-constant size or (and) offset.
635
636 2016-12-13 Marek Polacek <polacek@redhat.com>
637
638 * tree-data-ref.c (compute_overlap_steps_for_affine_univar): Change
639 parameters' type from int to HOST_WIDE_INT.
640 (compute_overlap_steps_for_affine_1_2): Change parameters' type from
641 int to HOST_WIDE_INT.
642 (build_classic_dist_vector_1): Likewise.
643 (add_multivariate_self_dist): Likewise.
644
645 2016-12-13 Michael Matz <matz@suse.de>
646
647 PR tree-optimization/78725
648 * tree-ssa-loop-split.c (split_at_bb_p): Check for overflow and
649 at correct use point.
650
651 2016-12-13 Martin Liska <mliska@suse.cz>
652
653 * asan.c (asan_expand_mark_ifn): Use renamed
654 BUILT_IN_ASAN_{UN}CLOBBER_N to BUILT_IN_ASAN_{UN}POISON_STACK_MEMORY.
655 * sanitizer.def: Likewise.
656
657 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
658
659 * doc/extend.texi (Half-Precision): Update to document current
660 compiler behaviour.
661
662 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
663
664 * doc/extend.texi (Floating Types): Document availability of
665 _Float16 on ARM/AArch64.
666
667 2016-12-13 Richard Biener <rguenther@suse.de>
668
669 PR tree-optimization/78699
670 * tree-vect-data-refs.c (vect_analyze_group_access_1): Limit
671 group size.
672
673 2016-12-13 Richard Biener <rguenther@suse.de>
674
675 PR middle-end/78742
676 * tree.c (cst_and_fits_in_hwi): Look if the actual value fits.
677 * tree-object-size.c (compute_builtin_object_size): Use
678 tree_fits_shwi_p.
679 * tree-data-ref.c (initialize_matrix_A): Remove excess assert.
680
681 2016-12-13 Martin Liska <mliska@suse.cz>
682
683 * asan.c (asan_mark_poison_p): Remove.
684 (asan_mark_p): New function.
685 (transform_statements): Use the function.
686 (asan_expand_mark_ifn): Do not use masked enum.
687 * asan.h (enum asan_mark_flags): Declare it via a macro.
688 * gimple-pretty-print.c (dump_gimple_call_args): Dump first
689 argument of ASAN_MARK.
690 * gimplify.c (build_asan_poison_call_expr): Use new enum values.
691 (asan_poison_variable): Likewise.
692
693 2016-12-13 Jakub Jelinek <jakub@redhat.com>
694
695 PR ipa/77905
696 * ipa-pure-const.c (cdtor_p): Return true for
697 DECL_STATIC_{CON,DE}STRUCTOR even when it is
698 DECL_LOOPING_CONST_OR_PURE_P.
699
700 2016-12-12 Jakub Jelinek <jakub@redhat.com>
701
702 PR tree-optimization/78777
703 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
704 insert_initializers): Use stmt_ends_bb_p instead of is_ctrl_stmt.
705
706 PR other/78766
707 * opt-functions.awk (opt_args): Use [{] instead of { in regexps.
708 Formatting fix.
709
710 2016-12-12 Martin Sebor <msebor@redhat.com>
711
712 PR middle-end/78622
713 PR middle-end78606
714 * gimple-ssa-sprintf.c (min_bytes_remaining): Use res.knownrange
715 rather than res.bounded.
716 (get_width_and_precision): Set precision to -1 when negative.
717 (adjust_range_for_overflow): New function.
718 (format_integer): Correct the handling of the space, plus, and pound
719 flags, and the special case of zero precision.
720 Always set res.bounded to true unless either precision or width
721 is specified and unknown.
722 Call adjust_range_for_overflow.
723 Avoid use zero as the shortest value when precision is specified
724 but unknown.
725 (format_directive): Remove vestigial quoting. Always inform of
726 argument value or range when it's available.
727 (add_bytes): Correct the computation of boundrange used to
728 decide whether a warning is of a "maybe" or "defnitely" kind.
729
730 2016-12-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
731
732 * combine.c (change_zero_ext): Handle mode expanding zero_extracts.
733
734 2016-12-12 Uros Bizjak <ubizjak@gmail.com>
735
736 PR target/78738
737 * config/i386/i386.h (X87_ENABLE_ARITH): Also enable for
738 flag_unsafe_math_optimizations.
739 (X87_ENABLE_FLOAT): Ditto.
740
741 2016-12-12 Marek Polacek <polacek@redhat.com>
742
743 PR middle-end/78716
744 * gimplify.c (gimplify_va_arg_expr): Don't require ADDR_EXPR for
745 Case 1; check POINTER_TYPE_P instead.
746
747 2016-12-12 Bernd Schmidt <bschmidt@redhat.com>
748
749 PR rtl-optimization/78669
750 * ira.c (combine_and_move_insns): When deleting an insn, clear the
751 replace flag for all used regs in that insn.
752
753 2016-12-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
754
755 * config/arm/arm-opts.h: Move struct arm_arch_core_flag and
756 arm_arch_core_flags to ...
757 * common/config/arm/arm-common.c: There.
758
759 2016-12-12 Eric Botcazou <ebotcazou@adacore.com>
760
761 * config/sparc/constraints.md (T): Use special memory constraint.
762 (U): Minor tweak.
763 (W): Add TARGET_ARCH64 test.
764 * config/sparc/sparc.md (*movdi_insn_sp32): Replace 'W' with 'T'.
765 (*movdf_insn_sp32): Likewise.
766 (*mov<VM64:mode>_insn_sp32): Likewise. Replace 'e' with 'f' in
767 conjunction with offsettable memory references.
768
769 2016-12-11 Sandra Loosemore <sandra@codesourcery.com>
770
771 * config/nios2/nios2.c (nios2_emit_move_sequence): Call copy_rtx
772 to avoid shared structure error.
773
774 2016-12-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
775
776 PR target/78695
777 * config/rs6000/rs6000.c (find_alignment_op): Discard from
778 consideration any artificial definition.
779
780 2016-12-11 Iain Sandoe <iain@codesourcery.com>
781
782 * configure.ac (CROSS directory tests): Remove the assumption that
783 Darwin hosts contain suitable target sysroots in "/".
784 * configure: Regenerate.
785
786 2016-12-11 Iain Sandoe <iain@codesourcery.com>
787
788 PR rtl-optimization/71496
789 * config/rs6000/darwin.md (load_macho_picbase_si): Mark as non-
790 copyable. (load_macho_picbase_di, reload_macho_picbase_si,
791 reload_macho_picbase_di): Likewise.
792
793 2012-12-11 John David Anglin <danglin@gcc.gnu.org>
794
795 * config/pa/pa.c (pa_callee_copies): New function.
796 * config/pa/pa.opt (mcaller-copies): New option.
797 * doc/invoke.texi (mcaller-copies): Document option.
798
799 2016-12-11 Uros Bizjak <ubizjak@gmail.com>
800
801 PR target/70799
802 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
803 <case ASHIFT, case LSHIFTRT>: Consider all constant shifts.
804 Add FIXME comment.
805 (dimode_scalar_chain::compute_convert_gain): Reduce gain for
806 constant shifts larger or equal than 32.
807
808 2016-12-11 Roger Pau Monné <roger.pau@citrix.com>
809
810 * config/i386/x86-64.h: Append --32 to the assembler options when
811 -m16 is used on non-glibc systems as well.
812
813 2016-12-10 Allan Sandfeld Jensen <allan.jensen@qt.io>
814
815 PR target/70118
816 * config/i386/mmintrin.h (__m64_u): New type
817 * config/i386/emmintrin.h (_mm_loadl_epi64, _mm_storel_epi64):
818 Make the allowed unaligned memory access explicit.
819
820 2016-12-10 Krister Walfridsson <krister.walfridsson@gmail.com>
821
822 * config.gcc (i386-*-netbsd*): Make i486 the default arch on NetBSD.
823 Generally use cpu generic.
824
825 2016-12-10 Jakub Jelinek <jakub@redhat.com>
826 Marc Glisse <marc.glisse@inria.fr>
827
828 PR tree-optimization/78720
829 * match.pd (A < 0 ? C : 0): Only optimize for signed A. If shift
830 is negative, sign extend to @1's type and than AND with C.
831
832 2016-12-10 Jakub Jelinek <jakub@redhat.com>
833
834 PR fortran/78758
835 * tree-object-size.c (compute_object_offset) <case ARRAY_REF>: Handle
836 non-zero low bound or non-standard element sizes.
837
838 PR sanitizer/78708
839 * lto-streamer-in.c (input_function): In addition to debug stmts
840 without -g, remove IFN_*SAN_* calls if corresponding flag_sanitize
841 bit is not enabled.
842
843 2016-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
844
845 * config/rs6000/rs6000-passes.def: New file.
846 * config/rs6000/rs6000-protos.h: Declare make_pass_analyze_swaps.
847 * config/rs6000/rs6000.c (rs6000_option_override): Remove
848 registration of machine-specific passes.
849 (pass_analyze_swaps::clone): New function.
850 * config/rs6000/t-rs6000: Define PASSES_EXTRA.
851
852 2016-12-09 Kugan Vivekanandarajah <kuganv@linaro.org>
853
854 PR ipa/78721
855 * ipa-cp.c (propagate_vr_accross_jump_function): Call
856 drop_tree_overflow after fold_convert.
857
858 2016-12-09 Jakub Jelinek <jakub@redhat.com>
859
860 PR target/72742
861 * config/rs6000/rs6000.md (*and<mode>3_imm_mask_dot,
862 *and<mode>3_imm_mask_dot2): Add rs6000_is_valid_and_mask to insn
863 condition.
864
865 2016-12-09 Segher Boessenkool <segher@kernel.crashing.org>
866
867 PR target/78683
868 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Use
869 GET_MODE_BITSIZE. Return 2.
870 (CTZ_DEFINED_VALUE_AT_ZERO): Use GET_MODE_BITSIZE. Return 2. Handle
871 TARGET_POPCNTD the same as TARGET_CTZ.
872 * config/rs6000/rs6000.md (ctz<mode>2): Reimplement.
873 (ffs<mode>2): Reimplement.
874
875 2016-12-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
876
877 PR rtl-optimization/78255
878 * gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
879 NO_FUNCTION_CSE is true.
880
881 2016-12-09 Cesar Philippidis <cesar@codesourcery.com>
882
883 PR ipa/78027
884 * ipa-icf.c (sem_function::parse): Don't process functions with
885 oacc decl attributes, as they may be OpenACC routines.
886
887 2016-12-09 David Malcolm <dmalcolm@redhat.com>
888
889 * rtl.h (get_mem_attrs): Add "const" qualifier to returned
890 pointer.
891
892 2016-12-09 Nathan Sidwell <nathan@acm.org>
893
894 PR C++/78550
895 * convert.c (convert_to_integer_1): Maybe fold conversions to
896 integral types with fewer bits than its mode.
897
898 2016-12-09 Martin Liska <mliska@suse.cz>
899
900 * tree-pretty-print.c (pretty_print_string): Escape non-printable
901 chars in strings.
902
903 2016-12-09 Jakub Jelinek <jakub@redhat.com>
904
905 PR tree-optimization/78726
906 * tree-ssa-reassoc.c (make_new_ssa_for_def): Add OPCODE and OP
907 argument. For lhs uses in debug stmts, don't replace lhs with
908 new_lhs, but with a debug temp set to new_lhs opcode op.
909 (make_new_ssa_for_all_defs): Add OPCODE argument, pass OPCODE and
910 OP down to make_new_ssa_for_def.
911 (zero_one_operation): Call make_new_ssa_for_all_defs even when
912 stmts_to_fix is empty, if *def has not changed yet. Pass
913 OPCODE to make_new_ssa_for_all_defs.
914
915 2016-12-08 Martin Sebor <msebor@redhat.com>
916
917 PR c/78284
918 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
919 identifier tree nodes.
920 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
921 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
922 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
923 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
924 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
925 * builtins.c (expand_builtin_alloca): Call
926 maybe_warn_alloc_args_overflow.
927 * builtins.def (aligned_alloc, calloc, malloc, realloc):
928 Add attribute alloc_size.
929 (alloca): Add attribute alloc_size and returns_nonnull.
930 * calls.h (maybe_warn_alloc_args_overflow): Declare.
931 * calls.c (alloc_max_size, operand_signed_p): New functions.
932 (maybe_warn_alloc_args_overflow): Define.
933 (initialize_argument_information): Diagnose overflow in functions
934 declared with attaribute alloc_size.
935 * doc/invoke.texi (Warning Options): Document -Walloc-zero and
936 -Walloc-size-larger-than.
937
938 2016-12-08 Vladimir Makarov <vmakarov@redhat.com>
939
940 PR rtl-optimization/78671
941 * lra-assign.c (find_hard_regno_for_1): Check prohibited regs for an
942 allocno class.
943
944 2016-12-08 Uros Bizjak <ubizjak@gmail.com>
945
946 * config/i386/i386.h (HARD_REGNO_NREGS): Use GENERAL_REGNO_P.
947 (HARD_REGNO_NREGS_HAS_PADDING): Ditto. Simplify macro.
948
949 2015-12-08 Wilco Dijkstra <wdijkstr@arm.com>
950
951 PR target/78733
952 * config/aarch64/aarch64.c (aarch64_classify_address):
953 Set load_store_pair_p for TImode and TFmode.
954
955 2016-12-08 David Malcolm <dmalcolm@redhat.com>
956
957 * emit-rtl.c (gen_reg_rtx): Move regno_pointer_align and
958 regno_reg_rtx resizing logic to...
959 (emit_status::ensure_regno_capacity): ...this new method,
960 and ensure that the buffers are large enough.
961 (init_emit): Allocate regno_reg_rtx using ggc_cleared_vec_alloc
962 rather than ggc_vec_alloc.
963 * function.h (emit_status::ensure_regno_capacity): New method.
964
965 2016-12-08 Dmitry Vyukov <dvyukov@google.com>
966
967 * opts.c (finish_options): Enable -fsanitize-address-use-after-scope
968 only if -fsanitize=address is enabled (not -fsanitize=kernel-address).
969 * doc/invoke.texi (-fsanitize=kernel-address):
970 Don't say that it enables -fsanitize-address-use-after-scope.
971
972 2016-12-08 Bin Cheng <bin.cheng@arm.com>
973
974 PR middle-end/78684
975 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Check
976 sign bit for index step of data reference.
977
978 2016-12-08 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
979
980 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
981 Handle SYMBOL_SMALL_TLSGD for ILP32.
982 * config/aarch64/aarch64.md : tlsgd_small modified into
983 tlsgd_small_<mode> to support SImode and DImode.
984 *tlsgd_small modified into *tlsgd_small_<mode> to support SImode and
985 DImode.
986
987 2016-12-08 Andrew Pinski <apinski@cavium.com>
988
989 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
990 Access the lower part of RTX appropriately.
991
992 2016-12-07 David Malcolm <dmalcolm@redhat.com>
993
994 * genpreds.c (write_tm_constrs_h): Update for renaming of
995 rtx_reader_ptr to md_reader_ptr.
996 (write_tm_preds_h): Likewise.
997 (write_insn_preds_c): Likewise.
998 * read-md.c (rtx_reader_ptr): Rename to...
999 (md_reader_ptr): ...this, and convert from an
1000 rtx_reader * to a md_reader *.
1001 (rtx_reader::set_md_ptr_loc): Rename to...
1002 (md_reader::set_md_ptr_loc): ...this.
1003 (rtx_reader::get_md_ptr_loc): Rename to...
1004 (md_reader::get_md_ptr_loc): ...this.
1005 (rtx_reader::copy_md_ptr_loc): Rename to...
1006 (md_reader::copy_md_ptr_loc): ...this.
1007 (rtx_reader::fprint_md_ptr_loc): Rename to...
1008 (md_reader::fprint_md_ptr_loc): ...this.
1009 (rtx_reader::print_md_ptr_loc): Rename to...
1010 (md_reader::print_md_ptr_loc): ...this.
1011 (rtx_reader::join_c_conditions): Rename to...
1012 (md_reader::join_c_conditions): ...this.
1013 (rtx_reader::fprint_c_condition): ...this.
1014 (rtx_reader::print_c_condition): Rename to...
1015 (md_reader::print_c_condition): ...this.
1016 (fatal_with_file_and_line): Update for renaming of
1017 rtx_reader_ptr to md_reader_ptr.
1018 (rtx_reader::require_char): Rename to...
1019 (md_reader::require_char): ...this.
1020 (rtx_reader::require_char_ws): Rename to...
1021 (md_reader::require_char_ws): ...this.
1022 (rtx_reader::require_word_ws): Rename to...
1023 (md_reader::require_word_ws): ...this.
1024 (rtx_reader::read_char): Rename to...
1025 (md_reader::read_char): ...this.
1026 (rtx_reader::unread_char): Rename to...
1027 (md_reader::unread_char): ...this.
1028 (rtx_reader::peek_char): Rename to...
1029 (md_reader::peek_char): ...this.
1030 (rtx_reader::read_name): Rename to...
1031 (md_reader::read_name): ...this.
1032 (rtx_reader::read_escape): Rename to...
1033 (md_reader::read_escape): ...this.
1034 (rtx_reader::read_quoted_string): Rename to...
1035 (md_reader::read_quoted_string): ...this.
1036 (rtx_reader::read_braced_string): Rename to...
1037 (md_reader::read_braced_string): ...this.
1038 (rtx_reader::read_string): Rename to...
1039 (md_reader::read_string): ...this.
1040 (rtx_reader::read_skip_construct): Rename to...
1041 (md_reader::read_skip_construct): ...this.
1042 (rtx_reader::handle_constants): Rename to...
1043 (md_reader::handle_constants): ...this.
1044 (rtx_reader::traverse_md_constants): Rename to...
1045 (md_reader::traverse_md_constants): ...this.
1046 (rtx_reader::handle_enum): Rename to...
1047 (md_reader::handle_enum): ...this.
1048 (rtx_reader::lookup_enum_type): Rename to...
1049 (md_reader::lookup_enum_type): ...this.
1050 (rtx_reader::traverse_enum_types): Rename to...
1051 (md_reader::traverse_enum_types): ...this.
1052 (rtx_reader::rtx_reader): Rename to...
1053 (md_reader::md_reader): ...this, and update for renaming of
1054 rtx_reader_ptr to md_reader_ptr.
1055 (rtx_reader::~rtx_reader): Rename to...
1056 (md_reader::~md_reader): ...this, and update for renaming of
1057 rtx_reader_ptr to md_reader_ptr.
1058 (rtx_reader::handle_include): Rename to...
1059 (md_reader::handle_include): ...this.
1060 (rtx_reader::handle_file): Rename to...
1061 (md_reader::handle_file): ...this.
1062 (rtx_reader::handle_toplevel_file): Rename to...
1063 (md_reader::handle_toplevel_file): ...this.
1064 (rtx_reader::get_current_location): Rename to...
1065 (md_reader::get_current_location): ...this.
1066 (rtx_reader::add_include_path): Rename to...
1067 (md_reader::add_include_path): ...this.
1068 (rtx_reader::read_md_files): Rename to...
1069 (md_reader::read_md_files): ...this.
1070 * read-md.h (class rtx_reader): Split into...
1071 (class md_reader): ...new class.
1072 (rtx_reader_ptr): Rename to...
1073 (md_reader_ptr): ...this, and convert to a md_reader *.
1074 (class noop_reader): Update base class to be md_reader.
1075 (class rtx_reader): Reintroduce as a subclass of md_reader.
1076 (rtx_reader_ptr): Reintroduce as a rtx_reader *.
1077 (read_char): Update for renaming of rtx_reader_ptr to
1078 md_reader_ptr.
1079 (unread_char): Likewise.
1080 * read-rtl.c (rtx_reader_ptr): New global.
1081 (rtx_reader::apply_iterator_to_string): Rename to...
1082 (md_reader::apply_iterator_to_string): ...this.
1083 (rtx_reader::copy_rtx_for_iterators): Rename to...
1084 (md_reader::copy_rtx_for_iterators): ...this.
1085 (rtx_reader::read_conditions): Rename to...
1086 (md_reader::read_conditions): ...this.
1087 (rtx_reader::record_potential_iterator_use): Rename to...
1088 (md_reader::record_potential_iterator_use): ...this.
1089 (rtx_reader::read_mapping): Rename to...
1090 (md_reader::read_mapping): ...this.
1091 (rtx_reader::read_rtx): Use rtx_reader_ptr when calling
1092 read_rtx_code.
1093 (rtx_reader::read_rtx_operand): Use get_string_obstack rather
1094 than directly accessing m_string_obstack.
1095 (rtx_reader::rtx_reader): New ctor.
1096 (rtx_reader::~rtx_reader): New dtor.
1097
1098 2016-12-07 Martin Sebor <msebor@redhat.com>
1099
1100 PR middle-end/77784
1101 PR middle-end/78149
1102 PR middle-end/78138
1103
1104 * builtins.c (expand_builtin_strcat, expand_builtin_strncat): New
1105 functions.
1106 (compute_dest_size, get_size_range, check_sizes, check_strncat_sizes)
1107 (check_memop_sizes): Same.
1108 (expand_builtin_memcpy): Call check memop_sizes.
1109 (expand_builtin_mempcpy): Same.
1110 (expand_builtin_memset): Same,
1111 (expand_builtin_bzero): Same.
1112 (expand_builtin_memory_chk): Call check_sizes.
1113 (expand_builtin_strcpy): Same.
1114 (expand_builtin_strncpy): Same.
1115 (maybe_emit_sprintf_chk_warning): Same.
1116 (expand_builtin): Handle strcat and strncat.
1117 (fini_object_sizes): Reset pointers.
1118 (compute_object_size): New function.
1119 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
1120 Avoid issuing warnings also issued during built-in expansion.
1121 * doc/invoke.texi (Warning Options): Document -Wstringop-overflow.
1122
1123 2016-12-07 Michael Meissner <meissner@linux.vnet.ibm.com>
1124
1125 PR target/72717
1126 * config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
1127 V2DImode elements are SUBREG's convert the result into DImode
1128 rather than failing in emit_move_insn.
1129
1130 2016-12-07 Jakub Jelinek <jakub@redhat.com>
1131
1132 * builtins.c (fold_builtin_strstr): Removed.
1133 (fold_builtin_2): Don't call fold_builtin_strstr.
1134 * gimple-fold.c (gimple_fold_builtin_strchr): Check is_strrchr
1135 earlier in the strrchr (x, 0) -> strchr (x, 0) optimization.
1136 (gimple_fold_builtin_strstr): New function.
1137 (gimple_fold_builtin): Call it.
1138 * fold-const-call.c (fold_const_call): Handle CFN_BUILT_IN_STRSTR.
1139
1140 PR c++/78692
1141 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Set lhs
1142 var to lhs of new_stmt right before noreturn handling rather than to
1143 lhs of e->call_stmt early.
1144
1145 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1146
1147 * read-md.c (rtx_reader::require_char): New method.
1148 (require_char_ws): Convert from function to...
1149 (rtx_reader::require_char_ws): ...method.
1150 (rtx_reader::require_word_ws): New method.
1151 * read-md.h (rtx_reader::require_char): New method decl.
1152 (require_char_ws): Remove global decl in favor of...
1153 (rtx_reader::require_char_ws): ...new method decl.
1154 (rtx_reader::require_word_ws): New method decl.
1155 (rtx_reader::peek_char): New method decl.
1156
1157 2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1158
1159 PR rtl-optimization/78617
1160 * lra-remat.c (do_remat): Initialize live_hard_regs from live in
1161 registers, also setting hard registers mapped to pseudo registers.
1162
1163 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1164
1165 * cfgexpand.c (pass_expand::execute): Move stack initializations
1166 to rtl_data::init_stack_alignment and call it.
1167 * emit-rtl.c (rtl_data::init_stack_alignment): New method.
1168 * emit-rtl.h (rtl_data::init_stack_alignment): New method.
1169
1170 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
1171
1172 * gcc/ira.c (ira_setup_eliminable_regset): Initialize crtl->is_leaf.
1173 (ira): Move initialization of crtl->is_leaf earlier.
1174
1175 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
1176
1177 * config/aarch64/aarch64.md (movti_aarch64): Change Ump to m.
1178 (movtf_aarch64): Likewise.
1179 * config/aarch64/aarch64.c (aarch64_classify_address):
1180 Use correct intersection of offsets.
1181 (aarch64_legitimize_address_displacement): Use 9-bit signed offsets.
1182 (aarch64_legitimize_address): Use 9-bit signed offsets for TI/TF mode.
1183 Use 7-bit signed scaled mode for modes > 16 bytes.
1184
1185 2016-12-07 James Greenhalgh <james.greenhalgh@arm.com>
1186
1187 PR rtl-optimization/78561
1188 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Use
1189 constant_pool_empty_p in place of get_pool_size_upper_bound.
1190 (rs6000_stack_info): Likewise.
1191 (rs6000_emit_prologue): Likewise.
1192 (rs6000_elf_declare_function_name): Likewise.
1193 (rs6000_set_up_by_prologue): Likewise.
1194 (rs6000_can_eliminate): Likewise.
1195 * output.h (get_pool_size_upper_bound): Delete.
1196 (constant_pool_empty_p): New.
1197 * varasm.c (get_pool_size_upper_bound): Delete
1198 (constant_pool_empty_p): New.
1199
1200 2016-12-07 Bin Cheng <bin.cheng@arm.com>
1201
1202 PR tree-optimization/78691
1203 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
1204 Require integral type for the outer expression.
1205
1206 2016-12-07 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1207
1208 * config/aarch64/aarch64.c
1209 (aarch64_builtin_support_vector_misalignment): New.
1210 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): Define.
1211
1212 2016-12-06 David Malcolm <dmalcolm@redhat.com>
1213
1214 PR bootstrap/78705
1215 * config/i386/i386.c (ix86_test_dumping_memory_blockage):
1216 Conditionalize the string comparison on Pmode == DImode.
1217
1218 2016-12-06 Tom de Vries <tom@codesourcery.com>
1219
1220 PR tree-optimization/67955
1221 * tree-ssa-alias.c (same_addr_size_stores_p): New function.
1222 (stmt_kills_ref_p): Use it.
1223
1224 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
1225
1226 PR middle-end/78700
1227 * calls.c (expand_call): Move back call to prepare_call_address.
1228
1229 2016-12-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1230
1231 PR target/78658
1232 * config/rs6000/rs6000.md (zero_extendqi<mode>2): Use ^ instead of
1233 ?* constraints for the ISA 3.0 patterns, so the register allocator
1234 is more likely to allocate QImode/HImode to vector registers for
1235 conversion to floating point unless a reload is needed.
1236 (zero_extendhi<mode>2): Likewise.
1237 (float<QHI:mode><FP_ISA3:mode>2_internal): Properly deal with the
1238 first alternative which is converting QImode/HImode to floating
1239 point and the QImode/HImode value is in a vector register, and
1240 does not allocate the second pseudo register. Remove zero
1241 extending into traditional floating point registers, since the
1242 instruction used only works on traditional altivec registers.
1243 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
1244
1245 2016-12-06 David Malcolm <dmalcolm@redhat.com>
1246
1247 * config/i386/i386.c: Include print-rtl.h.
1248 (selftest::ix86_test_dumping_memory_blockage): New function.
1249 (selftest::ix86_run_selftests): Call it.
1250 * print-rtl-function.c (print_rtx_function): Create an
1251 rtx_reuse_manager and use it.
1252 * print-rtl.c: Include "rtl-iter.h".
1253 (rtx_writer::rtx_writer): Add reuse_manager param.
1254 (rtx_reuse_manager::rtx_reuse_manager): New ctor.
1255 (uses_rtx_reuse_p): New function.
1256 (rtx_reuse_manager::preprocess): New function.
1257 (rtx_reuse_manager::has_reuse_id): New function.
1258 (rtx_reuse_manager::seen_def_p): New function.
1259 (rtx_reuse_manager::set_seen_def): New function.
1260 (rtx_writer::print_rtx): If "in_rtx" has a reuse ID, print it as a
1261 prefix the first time in_rtx is seen, and print reuse_rtx
1262 subsequently.
1263 (print_inline_rtx): Supply NULL for new reuse_manager param.
1264 (debug_rtx): Likewise.
1265 (print_rtl): Likewise.
1266 (print_rtl_single): Likewise.
1267 (rtx_writer::print_rtl_single_with_indent): Likewise.
1268 * print-rtl.h: Include bitmap.h when building for host.
1269 (rtx_writer::rtx_writer): Add reuse_manager param.
1270 (rtx_writer::m_rtx_reuse_manager): New field.
1271 (class rtx_reuse_manager): New class.
1272 * rtl-tests.c (selftest::assert_rtl_dump_eq): Add reuse_manager
1273 param and use it when constructing rtx_writer.
1274 (selftest::test_dumping_rtx_reuse): New function.
1275 (selftest::rtl_tests_c_tests): Call it.
1276 * selftest-rtl.h (class rtx_reuse_manager): New forward decl.
1277 (selftest::assert_rtl_dump_eq): Add reuse_manager param.
1278 (ASSERT_RTL_DUMP_EQ): Supply NULL for reuse_manager param.
1279 (ASSERT_RTL_DUMP_EQ_WITH_REUSE): New macro.
1280
1281 2016-12-06 Vladimir Makarov <vmakarov@redhat.com>
1282
1283 PR target/77761
1284 * lra-lives.c (process_bb_lives): Update biggest mode for
1285 implicitly used hard reg.
1286
1287 2016-12-06 Uros Bizjak <ubizjak@gmail.com>
1288
1289 * config/i386/predicates.md (general_gr_operand): New predicate.
1290 * config/i386/i386.md (TImode and DImode push_operand splitter):
1291 Use general_gr_operand. Macroize using DWI mode macro.
1292 (TImode and DImode nonimmediate_operand splitter): Use
1293 nonimmediate_gr_operand and general_gr_operand. Macroize using
1294 DWI mode macro.
1295 (TF/XF/DFmode push_operand splitter): Use general_gr_operand.
1296 (TFmode nonimmediate_operand splitter): Use nonimmediate_gr_operand
1297 and general_gr_operand.
1298 (XFmode nonimmediate_operand splitter): Ditto.
1299 (DFmode nonimmediate_operand splitter): Ditto.
1300 * config/i386/mmx.md (MMXMODE nonimmediate_operand splitter): Ditto.
1301
1302 2016-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1303
1304 * config/arm/arm-cores.def (cortex-m23, cortex-m33): Move into
1305 alphabetical order with respect to other ARMv8 processors.
1306 * config/arm/arm-tables.opt: Regenerate.
1307 * config/arm/arm-tune.md: Likewise.
1308
1309 2016-12-06 Robert Suchanek <robert.suchanek@imgtec.com>
1310
1311 * config/mips/mips.c (mips_expand_builtin_insn): Check input
1312 ranges of literal integer arguments.
1313
1314 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
1315
1316 PR middle-end/78548
1317 * tree-ssa-uninit.c (simplify_preds_4): Call release() instead of
1318 destroy_predicate_vecs.
1319 (uninit_uses_cannot_happen): Make uninit_preds a scalar.
1320
1321 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
1322
1323 PR middle-end/78566
1324 * tree-ssa-uninit.c (can_one_predicate_be_invalidated_p): Change
1325 argument type to a pred_chain.
1326 (can_chain_union_be_invalidated_p): Use pred_chain instead of a
1327 worklist.
1328 (flatten_out_predicate_chains): Remove.
1329 (uninit_uses_cannot_happen): Rename from
1330 uninit_ops_invalidate_phi_use.
1331 Change logic so that we are checking that the PHI use will
1332 invalidate _ALL_ possibly uninitialized operands.
1333 (is_use_properly_guarded): Rename call to
1334 uninit_ops_invalidate_phi_use into uninit_uses_cannot_happen.
1335
1336 2016-12-06 Tamar Christina <tamar.christina@arm.com>
1337
1338 * gcc/config/aarch64/arm_neon.h
1339 (vreinterpretq_p8_p128, vreinterpretq_p16_p128): Added.
1340 (vreinterpret_p64_p16, vreinterpretq_p64_p128): Likewise.
1341 (vreinterpretq_p64_p16, vreinterpretq_p128_p8): Likewise.
1342 (vreinterpretq_p128_p16, vreinterpretq_p128_f16): Likewise.
1343 (vreinterpretq_p128_f32, vreinterpretq_p128_p64): Likewise.
1344 (vreinterpretq_p128_s64, vreinterpretq_p128_u64): Likewise.
1345 (vreinterpretq_p128_s8, vreinterpretq_p128_s16): Likewise.
1346 (vreinterpretq_p128_s32, vreinterpretq_p128_u8): Likewise.
1347 (vreinterpretq_p128_u16, vreinterpretq_p128_u32): Likewise.
1348 (vreinterpretq_f16_p128, vreinterpretq_f32_p128): Likewise.
1349 (vreinterpretq_s64_p128, vreinterpretq_u64_p128): Likewise.
1350 (vreinterpretq_s8_p128, vreinterpretq_s16_p128): Likewise.
1351 (vreinterpretq_s32_p128, vreinterpretq_u8_p128): Likewise.
1352 (vreinterpretq_u16_p128, vreinterpretq_u32_p128): Likewise.
1353
1354 2016-12-06 Jakub Jelinek <jakub@redhat.com>
1355
1356 PR c++/71537
1357 * fold-const.c (fold_comparison): Assume CONSTANT_CLASS_P (base0)
1358 plus offset is non-zero. For maybe_nonzero_address decl base0,
1359 require indirect_base0.
1360
1361 PR c++/71537
1362 * fold-const-call.c (fold_const_call_1): Remove memchr handling here.
1363 (fold_const_call) <case CFN_BUILT_IN_STRNCMP,
1364 case CFN_BUILT_IN_STRNCASECMP>: Formatting improvements.
1365 (fold_const_call) <case CFN_BUILT_IN_MEMCMP>: Likewise. If s2 is 0
1366 and arguments have no side-effects, return 0.
1367 (fold_const_call): Handle CFN_BUILT_IN_MEMCHR.
1368
1369 PR c++/71537
1370 * fold-const-call.c (fold_const_call): Handle
1371 CFN_BUILT_IN_{INDEX,STRCHR,RINDEX,STRRCHR}.
1372
1373 PR tree-optimization/78675
1374 * tree-vect-loop.c (vectorizable_live_operation): For
1375 VECTOR_BOOLEAN_TYPE_P vectype use integral type with bitsize precision
1376 instead of TREE_TYPE (vectype) for the BIT_FIELD_REF.
1377
1378 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
1379
1380 PR middle-end/78642
1381 * emit-rtl.c (verify_rtx_sharing) <CLOBBER>: Relax condition.
1382 (copy_rtx_if_shared_1) <CLOBBER>: Likewise.
1383 (copy_insn_1) <CLOBBER>: Likewise.
1384
1385 2016-12-05 Michael Meissner <meissner@linux.vnet.ibm.com>
1386
1387 PR target/78688
1388 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Use IN_RANGE
1389 instead of ((N) >= (X) && (N) <= (Y-X)) to silence warnings about
1390 comparing signed to unsigned values.
1391 (FUNCTION_ARG_REGNO_P): Likewise.
1392
1393 2016-12-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1394 Stefan Freudenberger <stefan@reservoir.com>
1395
1396 PR tree-optimization/78646
1397 * gimple-ssa-strength-reduction.c (replace_ref): The pointer
1398 addition used for the memory base expression should have the type
1399 of the candidate.
1400
1401 2016-12-05 Waldemar Brodkorb <wbx@openadk.org>
1402
1403 PR target/71721
1404 * config.gcc (*-*-uclinux*): Enable posix threads.
1405
1406 2016-12-05 Andrew Senkevich <andrew.senkevich@intel.com>
1407
1408 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
1409 * config/i386/avx512dqintrin.h: Ditto.
1410 * config/i386/avx512fintrin.h: Ditto.
1411 * config/i386/i386-builtin-types.def (UCHAR_FTYPE_UQI_UQI_PUCHAR,
1412 UCHAR_FTYPE_UHI_UHI_PUCHAR, UCHAR_FTYPE_USI_USI_PUCHAR,
1413 UCHAR_FTYPE_UDI_UDI_PUCHAR, UCHAR_FTYPE_UQI_UQI, UCHAR_FTYPE_UHI_UHI,
1414 UCHAR_FTYPE_USI_USI, UCHAR_FTYPE_UDI_UDI, UQI_FTYPE_UQI_INT,
1415 UHI_FTYPE_UHI_INT, USI_FTYPE_USI_INT, UDI_FTYPE_UDI_INT,
1416 UQI_FTYPE_UQI, USI_FTYPE_USI, UDI_FTYPE_UDI, UQI_FTYPE_UQI_UQI): New
1417 function types.
1418 * config/i386/i386-builtin.def (__builtin_ia32_knotqi,
1419 __builtin_ia32_knotsi, __builtin_ia32_knotdi,
1420 __builtin_ia32_korqi, __builtin_ia32_korsi, __builtin_ia32_kordi,
1421 __builtin_ia32_kxnorqi, __builtin_ia32_kxnorsi,
1422 __builtin_ia32_kxnordi, __builtin_ia32_kxorqi, __builtin_ia32_kxorsi,
1423 __builtin_ia32_kxordi, __builtin_ia32_kandqi,
1424 __builtin_ia32_kandsi, __builtin_ia32_kanddi, __builtin_ia32_kandnqi,
1425 __builtin_ia32_kandnsi, __builtin_ia32_kandndi): New.
1426 * config/i386/i386.c (ix86_expand_args_builtin): Handle new types.
1427
1428 2016-12-05 Segher Boessenkool <segher@kernel.crashing.org>
1429
1430 * combine.c: Revert r243162.
1431
1432 2016-12-05 Paolo Bonzini <bonzini@gnu.org>
1433
1434 * match.pd: Simplify X ? C : 0 where C is a power of 2 and
1435 X tests a single bit.
1436
1437 2016-12-05 Nathan Sidwell <nathan@acm.org>
1438
1439 * diagnostic.c (diagnostic_check_max_errors): New, broken out of ...
1440 (diagnostic_action_after_output): ... here.
1441 (diagnostic_report_diagnostic): Call it for non-notes.
1442 * diagnostic.h (struct diagnostic_context): Make max_errors signed int.
1443 (diagnostic_check_max_errors): Declare.
1444
1445 2016-12-05 Cupertino Miranda <cmiranda@synopsys.com>
1446
1447 * config/arc/arc.h (STARTFILE_SPEC): Use default linux specs.
1448 (ENDFILE_SPEC): Likewise.
1449
1450 2016-12-05 Claudiu Zissulescu <claziss@synopsys.com>
1451
1452 * config/arc/arc-protos.h (insn_is_tls_gd_dispatch): Remove.
1453 * config/arc/arc.c (arc_unspec_offset): New function.
1454 (arc_finalize_pic): Change.
1455 (arc_emit_call_tls_get_addr): Likewise.
1456 (arc_legitimize_tls_address): Likewise.
1457 (arc_legitimize_pic_address): Likewise.
1458 (insn_is_tls_gd_dispatch): Remove.
1459 * config/arc/arc.h (INSN_REFERENCES_ARE_DELAYED): Change.
1460 * config/arc/arc.md (ls_gd_load): Remove unused pattern.
1461 (tls_gd_dispatch): Likewise.
1462
1463 2016-12-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
1464
1465 * config/arm/arm.c (TARGET_ASM_INIT_SECTIONS): Fix wrong undef
1466 location.
1467
1468 2016-12-05 Eric Botcazou <ebotcazou@adacore.com>
1469
1470 * config/sparc/sparc-protos.h (sparc_splitdi_legitimate): Rename to...
1471 (sparc_split_reg_mem_legitimate): ...this.
1472 (sparc_split_reg_mem): Declare.
1473 (sparc_split_mem_reg): Likewise.
1474 (sparc_split_regreg_legitimate): Rename to...
1475 (sparc_split_reg_reg_legitimate): ...this.
1476 * config/sparc/sparc.c (sparc_splitdi_legitimate): Rename to...
1477 (sparc_split_reg_mem_legitimate): ...this.
1478 (sparc_split_reg_mem): New function.
1479 (sparc_split_mem_reg): Likewise.
1480 (sparc_split_regreg_legitimate): Rename to...
1481 (sparc_split_reg_reg_legitimate): ...this.
1482 (sparc_split_reg_reg): New function.
1483 * config/sparc/sparc.md (lra): Remove "none" value.
1484 (enabled): Adjust to above change.
1485 (*movdi_insn_sp32): Remove new (r,T) alternative and reorder others.
1486 (DImode splitters): Adjust to above renamings and use new functions.
1487 (*movdf_insn_sp32): Remove new (r,T) alternative and reorder others.
1488 (DFmode splitters): Adjust to above renamings and use new functions.
1489 (*mov<VM64:mode>_insn_sp64): Replace C with Z constraint and use W
1490 constraint in conjunction with e.
1491 (*mov<VM64:mode>_insn_sp32): Remove new (r,T) alternative, add (o,Y)
1492 alternative and reorder others.
1493 (VM64:mode splitters): Adjust to above renamings and use new functions.
1494
1495 2016-12-04 Martin Sebor <msebor@redhat.com>
1496
1497 PR c/78668
1498 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
1499 identifier tree nodes.
1500 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
1501 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
1502 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
1503 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
1504 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
1505 * builtins.def (aligned_alloc, calloc, malloc, realloc):
1506 Add attribute alloc_size.
1507 (alloca): Add attribute alloc_size and returns_nonnull.
1508
1509 2016-12-04 Uros Bizjak <ubizjak@gmail.com>
1510
1511 PR target/70322
1512 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NEG.
1513 (dimode_scalar_chain::compute_convert_gain): Ditto.
1514 (dimode_scalar_chain::convert_insn): Ditto.
1515
1516 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
1517
1518 * lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all
1519 cases to build a lowpart SUBREG.
1520
1521 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
1522 David S. Miller <davem@davemloft.net>
1523
1524 * config/sparc/constraints.md (U): Adjust comment.
1525 * config/sparc/sparc.md (lra): New attribute.
1526 (enabled): For base instructions, if the lra attribute is set,
1527 return 1 if it is in keeping with TARGET_LRA.
1528 (*movdi_insn_sp32): Add lra attribute for alternatives mentioning U
1529 constraint and duplicate them with U replaced by r.
1530 (*movdf_insn_sp32): Likewise.
1531 (*mov<VM64:mode>_insn_sp32): Likewise.
1532 (*movtf_insn_sp32): Remove alternatives mentioning U constraint.
1533
1534 2016-12-02 Jeff Law <law@redhat.com>
1535
1536 * config/arm/arm.c (arm_handle_cmse_nonsecure_call): Remove unused
1537 variable main_variant.
1538
1539 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1540
1541 * config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by
1542 default on PowerPC linux systems.
1543
1544 2016-12-02 Segher Boessenkool <segher@kernel.crashing.org>
1545
1546 PR rtl-optimization/78638
1547 * simplify-rtx.c (simplify_truncation): M2 is not mode, it is
1548 GET_MODE (op). Fix this.
1549
1550 2016-12-02 David Malcolm <dmalcolm@redhat.com>
1551
1552 PR bootstrap/78616
1553 * selftest.c (selftest::assert_strndup_eq): Rename to...
1554 (selftest::assert_xstrndup_eq): ...this, and remove call to
1555 strndup.
1556 (selftest::test_strndup): Rename to...
1557 (selftest::test_xstrndup): ...this, updating for above renaming.
1558 (selftest::test_libiberty): Update for renaming.
1559
1560 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1561
1562 PR target/78639
1563 * config/rs6000/rs6000.md (movdi_internal64): Fix typo in
1564 subversion id 242679 that causes the wrong store instruction to be
1565 generated if a DImode is in an Altivec register using REG+REG
1566 addressing.
1567
1568 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
1569
1570 PR target/70322
1571 * config/i386/i386.md (*andndi3_doubleword): Add non-BMI alternative
1572 and corresponding post-reload splitter.
1573
1574 2016-12-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1575
1576 * config/aarch64/aarch64.h (machine_function): Add
1577 reg_is_wrapped_separately field.
1578 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Define new constant.
1579 * config/aarch64/aarch64.c (emit_set_insn): Change return type to
1580 rtx_insn *.
1581 (aarch64_save_callee_saves): Don't save registers that are wrapped
1582 separately.
1583 (aarch64_restore_callee_saves): Don't restore registers that are
1584 wrapped separately.
1585 (offset_9bit_signed_unscaled_p, offset_12bit_unsigned_scaled_p,
1586 aarch64_offset_7bit_signed_scaled_p): Move earlier in the file.
1587 (aarch64_get_separate_components): New function.
1588 (aarch64_get_next_set_bit): Likewise.
1589 (aarch64_components_for_bb): Likewise.
1590 (aarch64_disqualify_components): Likewise.
1591 (aarch64_emit_prologue_components): Likewise.
1592 (aarch64_emit_epilogue_components): Likewise.
1593 (aarch64_set_handled_components): Likewise.
1594 (aarch64_process_components): Likewise.
1595 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
1596 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
1597 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
1598 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
1599 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
1600 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
1601
1602 2016-12-02 Martin Jambor <mjambor@suse.cz>
1603
1604 * passes.def: Move pass_rebuild_cgraph_edges to the end of
1605 pass_build_ssa_passes.
1606
1607 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
1608
1609 * config/alpha/alpha.md (exception_receiver): Copy
1610 alpha_gp_ave_rtx return value.
1611
1612 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
1613
1614 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
1615 for several include directories that may be relative to sysroot.
1616 * config/i386/x-mingw32 (gplus_includedir): Define.
1617 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
1618 (native_system_includedir): Likewise.
1619 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
1620 override if TARGET_SYSTEM_ROOT is defined.
1621 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
1622
1623 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1624
1625 PR target/70322
1626 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NOT.
1627 (dimode_scalar_chain::compute_convert_gain): Likewise.
1628 (dimode_scalar_chain::convert_insn): Likewise.
1629 * config/i386/i386.md (*one_cmpldi2_doubleword): New
1630 define_insn_and_split.
1631 (one_cmpl<mode>2): Use SWIM1248x iterator instead of SWIM.
1632
1633 PR target/78614
1634 * rtl.c (copy_rtx): Don't clear used flag here.
1635 (shallow_copy_rtx_stat): Clear used flag here unless code the rtx
1636 is shareable.
1637 * simplify-rtx.c (simplify_replace_fn_rtx): When copying rtx with
1638 'E' in format, copy all vectors.
1639 * emit-rtl.c (copy_insn_1): Don't clear used flag here.
1640 * valtrack.c (cleanup_auto_inc_dec): Likewise.
1641 * config/rs6000/rs6000.c (rs6000_frame_related): Likewise.
1642
1643 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1644 Thomas Preud'homme <thomas.preudhomme@arm.com>
1645
1646 * config/arm/arm-builtins.c (arm_builtins): Define
1647 ARM_BUILTIN_CMSE_NONSECURE_CALLER.
1648 (bdesc_2arg): Add line for cmse_nonsecure_caller.
1649 (arm_init_builtins): Handle cmse_nonsecure_caller.
1650 (arm_expand_builtin): Likewise.
1651 * config/arm/arm_cmse.h (cmse_nonsecure_caller): New.
1652
1653 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1654 Thomas Preud'homme <thomas.preudhomme@arm.com>
1655
1656 * config/arm/arm.c (detect_cmse_nonsecure_call): New.
1657 (cmse_nonsecure_call_clear_caller_saved): New.
1658 (arm_reorg): Use cmse_nonsecure_call_clear_caller_saved.
1659 (arm_function_ok_for_sibcall): Disable sibcalls for
1660 cmse_nonsecure_call.
1661 * config/arm/arm-protos.h (detect_cmse_nonsecure_call): New.
1662 * config/arm/arm.md (call): Handle cmse_nonsecure_entry.
1663 (call_value): Likewise.
1664 (nonsecure_call_internal): New.
1665 (nonsecure_call_value_internal): New.
1666 * config/arm/thumb1.md (*nonsecure_call_reg_thumb1_v5): New.
1667 (*nonsecure_call_value_reg_thumb1_v5): New.
1668 * config/arm/thumb2.md (*nonsecure_call_reg_thumb2): New.
1669 (*nonsecure_call_value_reg_thumb2): New.
1670 * config/arm/unspecs.md (UNSPEC_NONSECURE_MEM): New.
1671
1672 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1673 Thomas Preud'homme <thomas.preudhomme@arm.com>
1674
1675 * config/arm/arm.c (gimplify.h): New include.
1676 (arm_handle_cmse_nonsecure_call): New.
1677 (arm_attribute_table): Added cmse_nonsecure_call.
1678 (arm_comp_type_attributes): Deny compatibility of function types
1679 with without the cmse_nonsecure_call attribute.
1680 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
1681
1682 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1683 Thomas Preud'homme <thomas.preudhomme@arm.com>
1684
1685 * config/arm/arm.c (output_return_instruction): Clear
1686 registers.
1687 (thumb2_expand_return): Likewise.
1688 (thumb1_expand_epilogue): Likewise.
1689 (thumb_exit): Likewise.
1690 (arm_expand_epilogue): Likewise.
1691 (cmse_nonsecure_entry_clear_before_return): New.
1692 (comp_not_to_clear_mask_str_un): New.
1693 (compute_not_to_clear_mask): New.
1694 * config/arm/thumb1.md (*epilogue_insns): Change length attribute.
1695 * config/arm/thumb2.md (*thumb2_return): Disable for
1696 cmse_nonsecure_entry functions.
1697 (*thumb2_cmse_entry_return): Duplicate thumb2_return pattern for
1698 cmse_nonsecure_entry functions.
1699
1700 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1701 Thomas Preud'homme <thomas.preudhomme@arm.com>
1702
1703 * config/arm/arm.c (use_return_insn): Change to return with bxns
1704 when cmse_nonsecure_entry.
1705 (output_return_instruction): Likewise.
1706 (arm_output_function_prologue): Likewise.
1707 (thumb_pop): Likewise.
1708 (thumb_exit): Likewise.
1709 (thumb2_expand_return): Assert that entry functions always have simple
1710 returns.
1711 (arm_expand_epilogue): Handle entry functions.
1712 (arm_function_ok_for_sibcall): Disable sibcall for entry functions.
1713 (arm_asm_declare_function_name): New.
1714 * config/arm/arm-protos.h (arm_asm_declare_function_name): New.
1715 * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME): Redefine to
1716 use arm_asm_declare_function_name.
1717
1718 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1719 Thomas Preud'homme <thomas.preudhomme@arm.com>
1720
1721 * config/arm/arm.c (arm_handle_cmse_nonsecure_entry): New.
1722 (arm_attribute_table): Added cmse_nonsecure_entry
1723 (arm_compute_func_type): Handle cmse_nonsecure_entry.
1724 (cmse_func_args_or_return_in_stack): New.
1725 (arm_handle_cmse_nonsecure_entry): New.
1726 * config/arm/arm.h (ARM_FT_CMSE_ENTRY): New macro define.
1727 (IS_CMSE_ENTRY): Likewise.
1728 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
1729
1730 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1731 Thomas Preud'homme <thomas.preudhomme@arm.com>
1732
1733 * config.gcc (extra_headers): Added arm_cmse.h.
1734 * config/arm/arm-arches.def (ARM_ARCH):
1735 (armv8-m): Add FL2_CMSE.
1736 (armv8-m.main): Likewise.
1737 (armv8-m.main+dsp): Likewise.
1738 * config/arm/arm-c.c
1739 (arm_cpu_builtins): Added __ARM_FEATURE_CMSE macro.
1740 * config/arm/arm-flags.h: Define FL2_CMSE.
1741 * config/arm.c (arm_arch_cmse): New.
1742 (arm_option_override): New error for unsupported cmse target.
1743 * config/arm/arm.h (arm_arch_cmse): New.
1744 * config/arm/arm.opt (mcmse): New.
1745 * config/arm/arm_cmse.h: New file.
1746 * doc/invoke.texi (ARM Options): Add -mcmse.
1747 * doc/sourcebuild.texi (arm_cmse_ok): Add new effective target.
1748 * doc/extend.texi: Add ARMv8-M Security Extensions entry.
1749
1750 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1751
1752 * config/avr/avr.c: Fix coding rule glitches.
1753
1754 2016-12-02 Martin Jambor <mjambor@suse.cz>
1755
1756 * hsa.c (hsa_callable_function_p): Return false for artificial
1757 functions.
1758
1759 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
1760
1761 PR rtl-optimization/78561
1762 * varasm.c (recompute_pool_offsets): New.
1763 (output_constant_pool): Call it.
1764
1765 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
1766
1767 PR rtl-optimization/78561
1768 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Rename
1769 get_pool_size to get_pool_size_upper_bound.
1770 (rs6000_stack_info): Likewise.
1771 (rs6000_emit_prologue): Likewise.
1772 (rs6000_elf_declare_function_name): Likewise.
1773 (rs6000_set_up_by_prologue): Likewise.
1774 (rs6000_can_eliminate): Likewise, reformat spaces to tabs.
1775 * output.h (get_pool_size): Rename to...
1776 (get_pool_size_upper_bound): ...This.
1777 * varasm.c (get_pool_size): Rename to...
1778 (get_pool_size_upper_bound): ...This.
1779
1780 2016-12-02 Bin Cheng <bin.cheng@arm.com>
1781
1782 * match.pd: Add new pattern:
1783 (cond (cmp (convert? x) c1) (op x c2) c3) -> (op (minmax x c1) c2).
1784
1785 2016-12-02 Nathan Sidwell <nathan@acm.org>
1786
1787 * diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
1788 braces.
1789
1790 2016-12-02 Aldy Hernandez <aldyh@redhat.com>
1791
1792 PR middle-end/78328
1793 * gimple-ssa-warn-alloca.c (alloca_call_type): Handle
1794 VR_ANTI_RANGE.
1795
1796 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1797
1798 * config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing
1799 problem.
1800
1801 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1802
1803 * config/avr/avr-arch.h (avr_mcu_t) [n_flash]: Remove field.
1804 * config/avr/avr-devices.c (AVR_MCU): Remove N_FLASH macro argument.
1805 * config/avr/avr-mcus.def (AVR_MCU): Remove initializer for n_flash.
1806 * config/avr/avr.c (avr_set_core_architecture) [avr_n_flash]: Use
1807 avr_mcu_types.flash_size to compute default value.
1808 * config/avr/gen-avr-mmcu-specs.c (print_mcu) [cc1_n_flash]: Use
1809 mcu->flash_size to compute value for spec.
1810
1811 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1812
1813 * doc/invoke.texi (AVR Options) [-mabsdata]: Point to absdata.
1814 * doc/extend.texi (AVR Variable Attributes) [progmem]: Hint
1815 about linker description to avoid progmem altogether.
1816 [absdata]: Point to -mabsdata option.
1817
1818 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1819
1820 PR rtl-optimization/78547
1821 * emit-rtl.c (unshare_all_rtl): Make sure DECL_RTL and
1822 DECL_INCOMING_RTL is not shared.
1823 * config/i386/i386.c (convert_scalars_to_vectors): If any
1824 insns have been converted, adjust all parameter's DEC_RTL and
1825 DECL_INCOMING_RTL back from V1TImode to TImode if the parameters have
1826 TImode.
1827
1828 PR rtl-optimization/78575
1829 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses): Use
1830 DF infrastructure to wrap all V1TImode reg uses into TImode subreg
1831 if not already wrapped in a subreg. Make sure df_insn_rescan does not
1832 affect further iterations.
1833
1834 2016-12-02 Martin Liska <mliska@suse.cz>
1835
1836 PR ipa/78555
1837 * sreal.c (sreal::to_int): Make absolute value before shifting.
1838 (sreal::operator/): Likewise.
1839 (sreal_verify_negative_division): New test.
1840 (void sreal_c_tests): Call the new test.
1841 * sreal.h (sreal::normalize_up): Use new SREAL_ABS and
1842 SREAL_SIGN macros.
1843 (sreal::normalize_down): Likewise.
1844
1845 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1846
1847 * combine.c (combine_simplify_rtx): Suppress replacement of
1848 "(and (reg) (const_int bit))" with "if_then_else".
1849
1850 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1851
1852 PR target/77822
1853 * config/s390/s390.md ("extzv")
1854 ("*extzv<mode><clobbercc_or_nocc>")
1855 ("*extzvdi<clobbercc_or_nocc>_lshiftrt")
1856 ("*<risbg_n>_ior_and_sr_ze")
1857 ("*extract1bitdi<clobbercc_or_nocc>")
1858 ("*insv<mode><clobbercc_or_nocc>", "*insv_rnsbg_noshift")
1859 ("*insv_rnsbg_srl", "*insv<mode>_mem_reg")
1860 ("*insvdi_mem_reghigh", "*insvdi_reg_imm"): Use EXTRACT_ARGS_IN_RANGE
1861 to validate the arguments of zero_extract and sign_extract.
1862
1863 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1864
1865 PR target/77822
1866 * rtl.h (EXTRACT_ARGS_IN_RANGE): New.
1867
1868 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1869
1870 * gcc/config/s390/s390.c (s390_builtin_vectorization_cost): New
1871 function.
1872 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Define target
1873 macro.
1874
1875 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1876
1877 * config/s390/vector.md (vec_halfhalf): New mode iterator.
1878 ("vec_pack_trunc_<mode>", "vec_pack_ssat_<mode>")
1879 ("vec_pack_usat_<mode>", "vec_unpacks_hi_v16qi")
1880 ("vec_unpacks_low_v16qi", "vec_unpacku_hi_v16qi")
1881 ("vec_unpacku_low_v16qi", "vec_unpacks_hi_v8hi")
1882 ("vec_unpacks_lo_v8hi", "vec_unpacku_hi_v8hi")
1883 ("vec_unpacku_lo_v8hi", "vec_unpacks_hi_v4si")
1884 ("vec_unpacks_lo_v4si", "vec_unpacku_hi_v4si")
1885 ("vec_unpacku_lo_v4si"): New pattern definitions.
1886 * config/s390/vx-builtins.md: Move VI_HW_HSD mode iterator to
1887 vector.md.
1888
1889 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1890
1891 * config/s390/s390-protos.h (s390_reverse_condition): New
1892 prototype.
1893 * config/s390/s390.c (s390_canonicalize_comparison): Fold compares
1894 of CC mode values.
1895 (s390_reverse_condition): New function.
1896 * config/s390/s390.h (REVERSE_CC_MODE, REVERSE_CONDITION): Define
1897 target macros.
1898
1899 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1900
1901 * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
1902 (CCVHUANY): Remove modes.
1903 (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
1904 documentation.
1905 * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
1906 (s390_expand_vec_compare_scalar): Pick one of the cc consumer
1907 modes.
1908 (s390_branch_condition_mask): Adjust to use the new cc consumer
1909 modes. The new modes allow for proper reversal in the middle-end.
1910 (s390_expand_vec_compare_cc): Determine the proper cc producer and
1911 consumer modes for a comparison.
1912 * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
1913 throughout the file.
1914 * config/s390/vx-builtins.md: Likewise.
1915
1916 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
1917
1918 * asan.c (asan_global_struct): Refactor.
1919 (create_odr_indicator): New function.
1920 (asan_needs_odr_indicator_p): Likewise.
1921 (is_odr_indicator): Likewise.
1922 (asan_add_global): Introduce odr_indicator_ptr. Pass it into global's
1923 constructor.
1924 (asan_protect_global): Do not protect odr indicators.
1925
1926 2016-12-01 Jeff Law <law@redhat.com>
1927
1928 * tree-ssa-threadedge.c
1929 (record_temporary_equivalences_from_stmts_at_dest): Avoid temporary
1930 propagation of operands if there are no operands.
1931
1932 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1933
1934 PR tree-optimization/78586
1935 * gimple-ssa-sprintf.c (format_integer): Don't handle NOP_EXPR,
1936 CONVERT_EXPR or COMPONENT_REF here. Formatting fix. For
1937 SSA_NAME_DEF_STMT with NOP_EXPR only change argtype if the rhs1's
1938 type is INTEGER_TYPE or POINTER_TYPE.
1939
1940 2016-12-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
1941
1942 PR target/78577
1943 * config/rs6000/vsx.md (vextuhlx): Revise mode of operand 2.
1944 (vextuhrx): Likewise.
1945 (vextuwlx): Likewise.
1946 (vextuwrx): Likewise.
1947
1948 2016-12-01 David Malcolm <dmalcolm@redhat.com>
1949
1950 * dwarf2out.c (dwarf2out_c_finalize): Reset early_dwarf and
1951 early_dwarf_finished.
1952
1953 2016-12-01 Eric Botcazou <ebotcazou@adacore.com>
1954 David S. Miller <davem@davemloft.net>
1955
1956 * config/sparc/sparc.opt (mlra): New target option.
1957 * config/sparc/sparc.c (TARGET_LRA_P): Define to...
1958 (sparc_lra_p): ...this. New function.
1959 (D_MODES, DF_MODES): Add missing cast.
1960 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
1961 provide these insns when flag_pic.
1962 (sethi_di_medlow, losum_di_medlow, seth44, setm44, setl44, sethh,
1963 setlm, sethm, setlo, embmedany_sethi, embmedany_losum,
1964 embmedany_brsum, embmedany_textuhi, embmedany_texthi,
1965 embmedany_textulo, embmedany_textlo): Likewise.
1966 (sethi_di_medlow_embmedany_pic): Provide it only with flag_pic.
1967
1968 2016-12-01 David Edelsohn <dje.gcc@gmail.com>
1969
1970 PR debug/66419
1971 PR c++/78235
1972 * dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs.
1973
1974 2016-12-01 Richard Biener <rguenther@suse.de>
1975 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1976
1977 * vec.h (vec<T, A, vl_embed>::quick_grow_cleared): Guard call to
1978 memset if len-oldlen != 0.
1979 (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Likewise.
1980
1981 2016-12-01 Uros Bizjak <ubizjak@gmail.com>
1982
1983 * config/i386/i386.md (*andndi3_doubleword): Depend on TARGET_SSE2.
1984
1985 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
1986
1987 * config/avr/avr.c: Fix coding rule glitches.
1988
1989 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
1990
1991 PR tree-optimization/78598
1992 * tree-ssa-loop-prefetch.c (ddown): Cast to signed to avoid
1993 overflows.
1994
1995 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
1996
1997 PR rtl-optimization/78596
1998 * combine.c (simplify_comparison): Cast to unsigned to avoid
1999 left shifting of negative value.
2000
2001 2016-12-01 Matthias Klose <doko@ubuntu.com>
2002
2003 * doc/install.texi: Don't use pkg-config to check for bdw-gc.
2004
2005 2016-12-01 Richard Biener <rguenther@suse.de>
2006
2007 * tree-ssa-alias.c (indirect_refs_may_alias_p): Do not
2008 treat arrays with same type as objects that cannot overlap.
2009
2010 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
2011
2012 * config/avr/avr.c (avr_print_operand): Use SYMBOL_REF_P if possible.
2013 (avr_handle_addr_attribute, avr_asm_output_aligned_decl_common)
2014 (avr_asm_asm_output_aligned_bss, avr_addr_space_convert): Dito.
2015
2016 2016-12-01 Jakub Jelinek <jakub@redhat.com>
2017
2018 PR debug/78587
2019 * dwarf2out.c (loc_descr_plus_const): For negative offset use
2020 uint_loc_descriptor instead of int_loc_descriptor and perform negation
2021 in unsigned HOST_WIDE_INT type.
2022 (scompare_loc_descriptor): Shift UINTVAL left instead of INTVAL.
2023
2024 PR target/78614
2025 * config/rs6000/rs6000.c (rs6000_frame_related): Call
2026 set_used_flags (pat) before any simplifications. Clear used flag on
2027 PARALLEL copy. Don't guard add_reg_note call. Call
2028 copy_rtx_if_shared on pat before storing it into
2029 REG_FRAME_RELATED_EXPR.
2030
2031 2016-12-01 Alan Modra <amodra@gmail.com>
2032
2033 * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
2034 look inside UNSPEC_VSX_XXSPLTW vec.
2035
2036 2016-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2037
2038 PR rtl-optimization/78607
2039 * combine.c (try_combine): Emit a barrier after a unconditional trap.
2040
2041 2016-11-30 Michael Meissner <meissner@linux.vnet.ibm.com>
2042
2043 PR target/78602
2044 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): If the
2045 element is not a constant or in a register, force it to a
2046 register.
2047
2048 PR target/78560
2049 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Force value
2050 that will be set to a vector element to be in a register.
2051 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Fix thinko that used
2052 the wrong multiplier to convert the element number to a byte
2053 offset.
2054
2055 2016-11-30 Vladimir Makarov <vmakarov@redhat.com>
2056
2057 PR tree-optimization/77856
2058 * lra-constraints.c (inherit_in_ebb): Check original regno for
2059 invalid invariant regs too. Set only clobbered hard regs for the
2060 invalid invariant regs.
2061
2062 2016-11-30 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
2063
2064 Commit files forgotten in r242966.
2065
2066 * config/avr/avr-arch.h (avr_mcu_t) [flash_size]: New member.
2067 * config/avr/avr-devices.c (avr_mcu_types): Add flash size info.
2068 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Remove hard-coded
2069 prefix check to find wrap-around value, instead use MCU flash size.
2070 For 8k flash devices, update link_pmem_wrap spec string to
2071 add --pmem-wrap-around=8k.
2072 * config/avr/specs.h (LINK_RELAX_SPEC): Move link_pmem_wrap from
2073 here...
2074 (LINK_SPEC): ...to here.
2075
2076 2016-11-30 David Malcolm <dmalcolm@redhat.com>
2077
2078 PR c/78498
2079 * selftest.c (selftest::assert_strndup_eq): New function.
2080 (selftest::test_strndup): New function.
2081 (selftest::test_libiberty): New function.
2082 (selftest::selftest_c_tests): Call test_libiberty.
2083
2084 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2085
2086 PR rtl-optimization/78610
2087 * ira.c (combine_and_move_insns): Don't substitute into TRAP_IF
2088 instructions.
2089
2090 2016-11-30 Bin Cheng <bin.cheng@arm.com>
2091
2092 PR tree-optimization/78574
2093 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Skip loop
2094 header PHI that doesn't define biv.
2095
2096 2016-11-30 Jakub Jelinek <jakub@redhat.com>
2097
2098 * emit-rtl.c (verify_insn_sharing): Call verify_rtx_sharing instead of
2099 reset_used_flags.
2100
2101 * config/i386/i386.c (dimode_scalar_chain::convert_op): Avoid
2102 sharing the SUBREG rtx between move and following insn.
2103
2104 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx
2105 for REG_EQUIV argument.
2106
2107 2016-11-30 Thomas Preud'homme <thomas.preudhomme@arm.com>
2108
2109 * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33.
2110
2111 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2112
2113 PR ipa/78555
2114 * real.c (real_hash): Add cast to avoid left
2115 shifting of negative values.
2116
2117 2016-11-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2118
2119 PR target/78362
2120 * config/aarch64/aarch64.md (add<mode>3): Extract inner expression
2121 from a subreg in operands[1] and don't call REGNO on a non-reg
2122 expression when deciding to force operands[2] into a reg.
2123
2124 2016-11-30 Claudiu Zissulescu <claziss@synopsys.com>
2125 Andrew Burgess <andrew.burgess@embecosm.com>
2126
2127 * config/arc/arc-protos.h (arc_store_addr_hazard_p): Declare.
2128 * config/arc/arc.c (arc_store_addr_hazard_p): New function.
2129 (workaround_arc_anomaly): Call arc_store_addr_hazard_p for ARC700.
2130 * config/arc/arc700.md: Add define_bypass for store/load.
2131
2132 2016-11-30 Martin Liska <mliska@suse.cz>
2133
2134 * cgraph.c (symbol_table::initialize): Initialize
2135 ipa_clones_dump_file.
2136 (cgraph_node::remove): Report to ipa_clones_dump_file.
2137 * cgraph.h: Add new argument (suffix) to cloning methods.
2138 * cgraphclones.c (dump_callgraph_transformation): New function.
2139 (cgraph_node::create_clone): New argument.
2140 (cgraph_node::create_virtual_clone): Likewise.
2141 (cgraph_node::create_version_clone): Likewise.
2142 * dumpfile.c: Add .ipa-clones dump file.
2143 * dumpfile.h (enum tree_dump_index): Add TDI_clones
2144 * ipa-inline-transform.c (clone_inlined_nodes): Report operation
2145 to dump_callgraph_transformation.
2146
2147 2016-11-30 Martin Liska <mliska@suse.cz>
2148
2149 PR sanitizer/78541
2150 * asan.c (asan_expand_mark_ifn): Properly
2151 select a VAR_DECL from FRAME.* component reference.
2152
2153 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2154
2155 PR rtl-optimization/78583
2156 * simplify-rtx.c (simplify_truncation): Add check missing from the
2157 previous commit.
2158
2159 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2160
2161 PR rtl-optimization/78590
2162 * combine.c (change_zero_ext): Transform zero_extend of subregs only
2163 if the subreg_reg is a scalar integer mode.
2164
2165 2016-11-30 Jakub Jelinek <jakub@redhat.com>
2166
2167 PR tree-optimization/78586
2168 * gimple-ssa-sprintf.c (format_integer): Use TYPE_MAX_VALUE or
2169 TYPE_MIN_VALUE or build_all_ones_cst instead of folding LSHIFT_EXPR.
2170 Don't build_int_cst min/max twice. Formatting fix.
2171
2172 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2173
2174 PR rtl-optimization/78588
2175 * combine.c (if_then_else_cond): Also guard against BLKmode.
2176 * rtlanal.c (num_sign_bit_copies1): Add assert.
2177
2178 2016-11-29 Jeff Law <law@redhat.com>
2179
2180 * common/config/arc/arc-common.c (arc_handle_option): Remove unused
2181 variables.
2182
2183 * lra-constraints.c (check_and_process_move): Constrain the
2184 range of DCLASS and SCLASS to avoid false positive out of bounds
2185 array index warning.
2186
2187 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2188
2189 * doc/install.texi (--with-target-bdw-gc): Remove stray '@'.
2190
2191 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2192
2193 PR preprocessor/78569
2194 * input.c (get_substring_ranges_for_loc): Fail gracefully if
2195 line directives were present.
2196
2197 2016-11-30 Matthias Klose <doko@ubuntu.com>
2198
2199 * doc/install.texi: Document configure options --enable-objc-gc
2200 and --with-target-bdw-gc.
2201
2202 2016-11-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2203
2204 PR target/78594
2205 * config/rs6000/rs6000.md (mov<mode>_internal, QHI iterator): Add
2206 'x' to stxsi<wd>x print pattern, so that QImode and HImode values
2207 residing in traditional altivec registers can be stored
2208 correctly.
2209
2210 2016-11-29 Max Filippov <jcmvbkbc@gmail.com>
2211
2212 PR target/78603
2213 * config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
2214 overhead loop start between a call and its CALL_ARG_LOCATION
2215 note.
2216
2217 2016-11-29 Waldemar Brodkorb <wbx@openadk.org>
2218
2219 * config/bfin/linux.h (CPP_SPEC): Define.
2220
2221 2016-11-29 Martin Sebor <msebor@redhat.com>
2222
2223 PR tree-optimization/78512
2224 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Remove.
2225 * config/rs6000/linux.h: Same.
2226 * config/rs6000/linux64.h: Same.
2227 * config/sol2.h: Same.
2228 * config/sol2.c (solaris_printf_pointer_format): Remove.
2229 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Remove.
2230 * doc/tm.texi: Regenerate.
2231 * gimple-ssa-sprintf.c (format_pointer): Rempove.
2232 (pass_sprintf_length::compute_format_length): Return bool.
2233 (pass_sprintf_length::handle_gimple_call): Adjust.
2234 * target.def (printf_pointer_format): Remove.
2235 * targhooks.c (default_printf_pointer_format): Remove.
2236 (linux_printf_pointer_format): Same.
2237 * targhooks.h (default_printf_pointer_format): Remove.
2238 (linux_printf_pointer_format, solaris_printf_pointer_format): Same.
2239
2240 2016-11-29 Uros Bizjak <ubizjak@gmail.com>
2241
2242 * config/i386/sse.md (UNSPEC_MASKOP): Move from i386.md.
2243 (mshift): Ditto.
2244 (SWI1248_AVX512BWDQ): Ditto.
2245 (SWI1248_AVX512BW): Ditto.
2246 (k<any_logic:code><mode>): Ditto.
2247 (kandn<mode>): Ditto.
2248 (kxnor<mode>): Ditto.
2249 (knot<mode>): Ditto.
2250 (*k<any_lshift:code><mode>): Ditto.
2251 (kortestzhi, kortestchi): Ditto.
2252 (kunpckhi, kunpcksi, kunpckdi): Ditto.
2253
2254 2016-11-29 Andrew Pinski <apinski@cavium.com>
2255
2256 * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node
2257 for the EQ_EXPR.
2258
2259 2016-11-29 Chen Gang <gang.chen.5i5j@gmail.com>
2260
2261 PR target/71331
2262 * config/tilegx/tilegx.c (tilegx_function_profiler): Save r10
2263 to stack before call mcount.
2264 (tilegx_can_use_return_insn_p): Clean up code.
2265
2266 2016-11-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2267
2268 * config/avr/avr-mcu.def: (avr_mcu_types): Add flash size info.
2269
2270 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2271
2272 PR c++/72774
2273 PR c++/72786
2274 PR c++/77922
2275 PR c++/78313
2276 * spellcheck.c (selftest::test_find_closest_string): Verify that
2277 we don't offer the goal string as a suggestion.
2278 * spellcheck.h (best_match::get_best_meaningful_candidate): Don't
2279 offer the goal string as a suggestion.
2280
2281
2282 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
2283
2284 * config/arc/arc.c (arc_override_options): Avoid selection of
2285 compact casesi for ARCv2.
2286
2287 2016-11-29 Richard Biener <rguenther@suse.de>
2288
2289 * tree-cfg.c (lower_phi_internal_fn): Do not look for further
2290 PHIs after a regular stmt.
2291 (stmt_starts_bb_p): PHIs not preceeded by a PHI or a label
2292 start a new BB.
2293
2294 2016-11-29 Martin Liska <mliska@suse.cz>
2295
2296 PR gcov-profile/78582
2297 * tree-profile.c (gimple_gen_time_profiler): Make one extra BB
2298 to prevent PHI argument clash.
2299
2300 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
2301
2302 * config/arc/arc.opt (marclinux): Fix typo.
2303 (marclinux_prof): Likewise.
2304
2305 2016-11-29 Jiong Wang <jiong.wang@arm.com>
2306
2307 * target.def (stack_protect_runtime_enabled_p): New.
2308 * function.c (expand_function_end): Guard stack_protect_epilogue with
2309 targetm.stack_protect_runtime_enabled_p.
2310 * cfgexpand.c (pass_expand::execute): Likewise.
2311 * calls.c (expand_call): Likewise.
2312 * doc/tm.texi.in (TARGET_STACK_PROTECT_RUNTIME_ENABLED_P): Add it.
2313 * doc/tm.texi: Regenerate.
2314
2315 2016-11-29 Richard Biener <rguenther@suse.de>
2316
2317 PR middle-end/78546
2318 * match.pd: Add CST1 - (CST2 - A) -> CST3 + A missing case.
2319
2320 2016-11-29 Janus Weil <janus@gcc.gnu.org>
2321
2322 * doc/contrib.texi: Add a few missing gfortran contributors.
2323
2324 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
2325
2326 * combine.c (change_zero_ext): Also handle extends from a subreg
2327 to a mode bigger than that of the operand of the subreg.
2328
2329 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
2330
2331 PR target/77687
2332 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Emit the
2333 stack_restore_tie insn instead of stack_tie, for the SVR4 and
2334 SPE ABIs.
2335 * config/rs6000/rs6000.md (stack_restore_tie): New define_insn.
2336
2337 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2338
2339 * shrink-wrap.c (init_separate_shrink_wrap): Do not clear
2340 head_components and tail_components.
2341 (spread_components): New algorithm.
2342 (emit_common_tails_for_components): Clear head_components and
2343 tail_components.
2344 (insert_prologue_epilogue_for_components): Write extra output to the
2345 dump file for sibcalls and abnormal exits.
2346
2347 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2348
2349 PR rtl-optimization/78342
2350 * combine.c: Include "cfghooks.h".
2351 (try_combine): If we create an unconditional trap, break the basic
2352 block in two just after it, and remove the edge between; also, set
2353 the *new_direct_jump_p flag so that cleanup_cfg is run.
2354
2355 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2356
2357 * simplify-rtx.c (simplify_truncation): Handle truncate of zero_extract
2358 and sign_extract.
2359
2360 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
2361
2362 * config/i386/i386.md (*and<mode>_1): Merge insn pattern from
2363 *andsi_1 and *andhi_1 using SWI24 mode iterator. Use multi-line
2364 output template string.
2365 (*anddi_1): Use multi-line output template string.
2366 (*andqi_1): Ditto.
2367
2368 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2369
2370 PR middle-end/78540
2371 * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
2372 * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
2373 note has been removed.
2374 * postreload.c (reload_combine_recognize_pattern): If
2375 remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
2376
2377 2016-11-28 Martin Sebor <msebor@redhat.com>
2378
2379 PR middle-end/78520
2380 * gimple-ssa-sprintf.c (target_max_value): Remove.
2381 (target_int_max, target_size_max): Use TYPE_MAX_VALUE.
2382 (get_width_and_precision): New function.
2383 (format_integer, format_floating, get_string_length, format_string):
2384 Correct handling of width and precision with unknown value.
2385 (format_directive): Add warning.
2386 (pass_sprintf_length::compute_format_length): Allow for precision
2387 to consist of a sole period with no asterisk or digits after it.
2388
2389 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2390
2391 PR rtl-optimization/78546
2392 * simplify-rtx.c (neg_const_int): When negating most negative
2393 number in mode wider than HOST_BITS_PER_WIDE_INT, use
2394 simplify_const_unary_operation to produce CONST_DOUBLE or
2395 CONST_WIDE_INT.
2396 (simplify_plus_minus): Handle the case where neg_const_int
2397 doesn't return a CONST_INT.
2398
2399 2016-11-28 Markus Trippelsdorf <markus@trippelsdorf.de>
2400
2401 PR target/78556
2402 * config/rs6000/rs6000.c (vspltis_constant): Add casts to avoid
2403 left shifting of negative values.
2404
2405 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2406
2407 PR fortran/78298
2408 * tree-nested.c (convert_local_reference_stmt): After adding
2409 shared (FRAME.NN) clause to omp parallel, task or target,
2410 add it also to all outer omp parallel, task or target constructs.
2411
2412 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
2413
2414 * config/i386/i386.md (UNSPEC_KMASKOP): New.
2415 (UNSPEC_KMOV): Remove.
2416 (kmovw): Expand to plain HImode move.
2417 (k<any_logic:code><mode>): Rename from *k<logic><mode>. Use
2418 register_operand predicates. Tag pattern with UNSPEC_KMASKOP.
2419 Remove corresponding clobber-removing splitter.
2420 (*anddi_1): Remove mask register alternatives.
2421 (*andsi_1): Ditto.
2422 (*andhi_1): Ditto.
2423 (*andqi_1): Ditto.
2424 (*<any_or:code><mode>_1): Ditto.
2425 (*<any_or:code>qi_1): Ditto.
2426 (kandn<mode>): Use SWI1248_AVX512BW mode iterator. Remove
2427 general register alternatives. Tag pattern with UNSPEC_KMASKOP.
2428 Remove corresponding splitter to operation with general registers.
2429 (*andn<SWI38:mode>): Rename from *bmi_andn_<mode>.
2430 (*andn<SWI12:mode>): New pattern.
2431 (*kxnor<mode>): Remove general register alternatives. Tag pattern
2432 with UNSPEC_KMASKOP. Remove corresponding splitter to operation
2433 with general registers.
2434 (knot<mode>): New insn pattern.
2435 (*one_cmpl<mode>2_1): Remove mask register alternatives.
2436 (one_cmplqi2_1): Ditto.
2437 (*k<any_lshift:code><mode>): Rename from *k<mshift><mode>3.
2438 Tag pattern with UNSPEC_KMASKOP. Add mode attribute.
2439 * config/i386/predicates.md (mask_reg_operand): Remove predicate.
2440 * config/i386/sse.md (vec_unpacks_hi_hi): Update pattern
2441 to generate kmaskop shift.
2442 (vec_unpacks_hi_<mode>): Ditto.
2443 * config/i386/i386-builtin.def (__builtin_ia32_kandhi):
2444 Use CODE_FOR_kandhi.
2445 (__builtin_ia32_knothi): Use CODE_FOR_knothi.
2446 (__builtin_ia32_korhi): Use CODE_FOR_kiorhi.
2447 (__builtin_ia32_kxorhi): Use CODE_FOR_kxorhi.
2448
2449 2016-11-28 Richard Biener <rguenther@suse.de>
2450
2451 * tree-vrp.c (vrp_visit_assignment_or_call): Handle simplifications
2452 to SSA names via extract_range_from_ssa_name if allowed.
2453
2454 2016-11-28 Richard Biener <rguenther@suse.de>
2455
2456 PR tree-optimization/78542
2457 * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
2458 if allowed.
2459
2460 2016-11-28 Paolo Bonzini <bonzini@gnu.org>
2461
2462 * combine.c (simplify_if_then_else): Simplify IF_THEN_ELSE that
2463 isolates a single bit, even if the condition involves subregs.
2464
2465 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2466
2467 * config/aarch64/aarch64-simd-builtins.def
2468 (BSL_P): Added di and v2di mode.
2469 * config/aarch64/arm_neon.h
2470 (vsriq_n_p64, vsri_n_p64): Added poly type.
2471 (vextq_p64, vext_p64): Likewise.
2472 (vceq_p64, vbslq_p64, vbsl_p64): Likewise.
2473
2474 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2475
2476 * config/aarch64/aarch64-builtins.c (TYPES_SETREGP): Added poly type.
2477 (TYPES_GETREGP): Likewise.
2478 (TYPES_SHIFTINSERTP): Likewise.
2479 (TYPES_COMBINEP): Likewise.
2480 (TYPES_STORE1P): Likewise.
2481 * config/aarch64/aarch64-simd-builtins.def
2482 (combine): Added poly generator.
2483 (get_dregoi): Likewise.
2484 (get_dregci): Likewise.
2485 (get_dregxi): Likewise.
2486 (ssli_n): Likewise.
2487 (ld1): Likewise.
2488 (st1): Likewise.
2489 * config/aarch64/arm_neon.h
2490 (poly64x1x2_t, poly64x1x3_t): New.
2491 (poly64x1x4_t, poly64x2x2_t): Likewise.
2492 (poly64x2x3_t, poly64x2x4_t): Likewise.
2493 (poly64x1_t): Likewise.
2494 (vcreate_p64, vcombine_p64): Likewise.
2495 (vdup_n_p64, vdupq_n_p64): Likewise.
2496 (vld2_p64, vld2q_p64): Likewise.
2497 (vld3_p64, vld3q_p64): Likewise.
2498 (vld4_p64, vld4q_p64): Likewise.
2499 (vld2_dup_p64, vld3_dup_p64): Likewise.
2500 (vld4_dup_p64, vsli_n_p64): Likewise.
2501 (vsliq_n_p64, vst1_p64): Likewise.
2502 (vst1q_p64, vst2_p64): Likewise.
2503 (vst3_p64, vst4_p64): Likewise.
2504 (__aarch64_vdup_lane_p64, __aarch64_vdup_laneq_p64): Likewise.
2505 (__aarch64_vdupq_lane_p64, __aarch64_vdupq_laneq_p64): Likewise.
2506 (vget_lane_p64, vgetq_lane_p64): Likewise.
2507 (vreinterpret_p8_p64, vreinterpretq_p8_p64): Likewise.
2508 (vreinterpret_p16_p64, vreinterpretq_p16_p64): Likewise.
2509 (vreinterpret_p64_f16, vreinterpret_p64_f64): Likewise.
2510 (vreinterpret_p64_s8, vreinterpret_p64_s16): Likewise.
2511 (vreinterpret_p64_s32, vreinterpret_p64_s64): Likewise.
2512 (vreinterpret_p64_f32, vreinterpret_p64_u8): Likewise.
2513 (vreinterpret_p64_u16, vreinterpret_p64_u32): Likewise.
2514 (vreinterpret_p64_u64, vreinterpret_p64_p8): Likewise.
2515 (vreinterpretq_p64_f64, vreinterpretq_p64_s8): Likewise.
2516 (vreinterpretq_p64_s16, vreinterpretq_p64_s32): Likewise.
2517 (vreinterpretq_p64_s64, vreinterpretq_p64_f16): Likewise.
2518 (vreinterpretq_p64_f32, vreinterpretq_p64_u8): Likewise.
2519 (vreinterpretq_p64_u16, vreinterpretq_p64_u32): Likewise.
2520 (vreinterpretq_p64_u64, vreinterpretq_p64_p8): Likewise.
2521 (vreinterpret_f16_p64, vreinterpretq_f16_p64): Likewise.
2522 (vreinterpret_f32_p64, vreinterpretq_f32_p64): Likewise.
2523 (vreinterpret_f64_p64, vreinterpretq_f64_p64): Likewise.
2524 (vreinterpret_s64_p64, vreinterpretq_s64_p64): Likewise.
2525 (vreinterpret_u64_p64, vreinterpretq_u64_p64): Likewise.
2526 (vreinterpret_s8_p64, vreinterpretq_s8_p64): Likewise.
2527 (vreinterpret_s16_p64, vreinterpret_s32_p64): Likewise.
2528 (vreinterpretq_s32_p64, vreinterpret_u8_p64): Likewise.
2529 (vreinterpret_u16_p64, vreinterpretq_u16_p64): Likewise.
2530 (vreinterpret_u32_p64, vreinterpretq_u32_p64): Likewise.
2531 (vset_lane_p64, vsetq_lane_p64): Likewise.
2532 (vget_low_p64, vget_high_p64): Likewise.
2533 (vcombine_p64, vst2_lane_p64): Likewise.
2534 (vst3_lane_p64, vst4_lane_p64): Likewise.
2535 (vst2q_lane_p64, vst3q_lane_p64): Likewise.
2536 (vst4q_lane_p64, vget_lane_p64): Likewise.
2537 (vget_laneq_p64, vset_lane_p64): Likewise.
2538 (vset_laneq_p64, vcopy_lane_p64): Likewise.
2539 (vcopy_laneq_p64, vdup_n_p64): Likewise.
2540 (vdupq_n_p64, vdup_lane_p64): Likewise.
2541 (vdup_laneq_p64, vld1_p64): Likewise.
2542 (vld1q_p64, vld1_dup_p64): Likewise.
2543 (vld1q_dup_p64, vld1q_dup_p64): Likewise.
2544 (vmov_n_p64, vmovq_n_p64): Likewise.
2545 (vst3q_p64, vst4q_p64): Likewise.
2546 (vld1_lane_p64, vld1q_lane_p64): Likewise.
2547 (vst1_lane_p64, vst1q_lane_p64): Likewise.
2548 (vcopy_laneq_p64, vcopyq_laneq_p64): Likewise.
2549 (vdupq_laneq_p64): Likewise.
2550
2551 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2552
2553 * config/arm/arm_neon.h (vget_lane_p64): New.
2554
2555 2016-11-28 Iain Sandoe <iain@codesourcery.com>
2556
2557 PR target/71767
2558 * configure.ac (with_ld64): Use portable method to extract the
2559 major part of the version number.
2560 * configure: Regenerated.
2561
2562 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2563
2564 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Look at
2565 UINTMAX_TYPE rather than SIZE_TYPE. Add gcc_unreachable if
2566 intmax_t couldn't be determined.
2567 (format_integer): Make {,u}intmax_type_node no longer static,
2568 initialize them only when needed. For z and t use
2569 signed_or_unsigned_type_for instead of assuming size_t and
2570 ptrdiff_t have the same precision.
2571
2572 PR lto/78211
2573 * ipa-icf.h (sem_item_optimizer): Add m_classes_vec member.
2574 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Initialize it.
2575 (sem_item_optimizer::~sem_item_optimizer): Traverse m_classes_vec
2576 vector instead of traversing m_classes hash table. Release
2577 m_classes_vec.
2578 (sem_item_optimizer::read_section, sem_item_optimizer::add_class):
2579 Formatting fixes.
2580 (sem_item_optimizer::get_group_by_hash): When inserting a new group,
2581 add it also to m_classes_vec vector.
2582 (sem_item_optimizer::remove_symtab_node,
2583 sem_item_optimizer::build_hash_based_classes,
2584 sem_item_optimizer::parse_nonsingleton_classes): Formatting fixes.
2585 (sem_item_optimizer::subdivide_classes_by_equality,
2586 sem_item_optimizer::subdivide_classes_by_sensitive_refs,
2587 sem_item_optimizer::verify_classes): Traverse m_classes_vec vector
2588 instead of traversing m_classes hash table. Formatting fixes.
2589 (sem_item_optimizer::traverse_congruence_split,
2590 sem_item_optimizer::do_congruence_step_for_index,
2591 sem_item_optimizer::do_congruence_step): Formatting fixes.
2592 (sem_item_optimizer::process_cong_reduction): Traverse m_classes_vec
2593 vector instead of traversing m_classes hash table.
2594 (sem_item_optimizer::dump_cong_classes): Likewise. Formatting fixes.
2595 (sem_item_optimizer::merge_classes): Traverse m_classes_vec vector
2596 instead of traversing m_classes hash table.
2597
2598 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
2599
2600 * config/avr/avr.c (out_movhi_r_mr) [REG_X + PLUS]: Only SBIW if
2601 X is not unused after.
2602
2603 2016-11-28 Bernd Schmidt <bschmidt@redhat.com>
2604
2605 PR rtl-optimization/78120
2606 * rtlanal.c (insn_rtx_cost): Revert previous change.
2607
2608 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
2609
2610 PR 41076
2611 * config/avr/avr.md (SPLIT34): New mode iterator.
2612 (bitop): New code iterator.
2613 (*iorhi3.ashift8-*). New insn-and-split patterns.
2614 (*movhi): Post-reload split reg = 0.
2615 [!MOVW]: Post-reload split reg = reg.
2616 (*mov<mode>) [SI,SF,PSI,SQ,USQ,SA,USA]: Post-reload split reg = reg.
2617 (andhi3, andpsi3, andsi3): Post-reload split reg-reg operations.
2618 (iorhi3, iorpsi3, iorsi3): Same.
2619 (xorhi3, xorpsi3, xorsi3): Same.
2620 * config/avr/avr.c (avr_rtx_costs_1) [IOR && HImode]: Adjust rtx
2621 costs to *iorhi3.ashift8-* patterns.
2622
2623 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2624 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2625
2626 PR target/67710
2627 * config.in: Regenerate
2628 * config/darwin-driver.c (darwin_driver_init): Emit a version string
2629 for the assembler.
2630 * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
2631 * config/darwin.opt(asm_macosx_version_min): New.
2632 * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
2633 * configure: Regenerate
2634 * configure.ac: Check for mmacosx-version-min handling.
2635
2636 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2637
2638 PR target/57438
2639 * config/i386/i386.c (ix86_code_end): Note that we emitted code
2640 where the function might otherwise appear empty for picbase thunks.
2641 (ix86_output_function_epilogue): If we find a zero-sized function
2642 assume that reaching it is UB and trap. If we find a trailing label
2643 append a nop.
2644 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
2645 find a zero-sized function assume that reaching it is UB and trap.
2646 If we find a trailing label, append a nop.
2647
2648 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2649
2650 PR target/71767
2651 * config/darwin-sections.def (picbase_thunk_section): New.
2652 * config/darwin.c (darwin_init_sections): Set up picbase thunk
2653 section. (darwin_rodata_section, darwin_objc2_section,
2654 machopic_select_section, darwin_asm_declare_constant_name,
2655 darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
2656 coalesced with newer linkers.
2657 (darwin_override_options): Decide on usage of coalesed sections
2658 on the basis of the target linker version.
2659 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
2660 * config/darwin.opt (mtarget-linker): New.
2661 * config/i386/i386.c (ix86_code_end): Do not force the thunks into
2662 a coalesced section, instead use a thunks section.
2663
2664 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2665
2666 PR target/71767
2667 * configure.ac (with-ld64): New var, set for Darwin, set on
2668 detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
2669 * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New, define.
2670 * config/darwin10.h(DEF_LD64): Update for this target version.
2671 * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic test.
2672 (DEF_LD64): Update for this target version.
2673 * configure: Regenerated.
2674 * config.in: Regenerated.
2675
2676 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2677
2678 PR target/71767
2679 * config/darwin.c (imachopic_indirection_name): Make data
2680 section indirections linker-visible.
2681 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
2682 constant labels linker-visible.
2683
2684 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2685
2686 * tree.c (build_common_tree_nodes): Initialize ptrdiff_type_node.
2687 (free_lang_data): Remove assignment to ptrdiff_type_node.
2688
2689 2016-11-25 Jakub Jelinek <jakub@redhat.com>
2690
2691 PR rtl-optimization/78526
2692 * simplify-rtx.c (simplify_immed_subreg): Don't use wi::extract_uhwi
2693 beyond val's precision.
2694
2695 PR rtl-optimization/78527
2696 * combine.c (make_compound_operation_int): Ignore LSHIFTRT with
2697 out of bounds shift count.
2698
2699 2016-11-25 Martin Liska <mliska@suse.cz>
2700
2701 PR web/71666
2702 * doc/invoke.texi (-fprofile-use): Fix reference to a section
2703 where -fprofile-generate is documented.
2704
2705 2016-11-25 Martin Liska <mliska@suse.cz>
2706
2707 PR gcov-profile/78086
2708 * coverage.c (build_init_ctor): Don't use priority {cd}tors if
2709 not supported by a target. Set priority to 100 if possible.
2710 (build_gcov_exit_decl): Likewise.
2711
2712 2016-11-25 Richard Biener <rguenther@suse.de>
2713
2714 PR ipa/78515
2715 * ipa-prop.c (compute_complex_assign_jump_func): Properly identify
2716 unary, binary and single RHSs.
2717 * tree.def (BIT_INSERT_EXPR): Adjust tree code name.
2718
2719 2016-11-25 Bin Cheng <bin.cheng@arm.com>
2720
2721 PR middle-end/78507
2722 PR middle-end/78510
2723 PR middle-end/78517
2724 * match.pd ((cond (cmp (convert1? @1) @3) (convert2? @1) @2)): Use
2725 cmp directly, rather than cmp_code. Initialize code to ERROR_MARK
2726 and set it to result code if transformation is valid. Use code EQ
2727 directly in last simplification case.
2728
2729 2016-11-25 Richard Biener <rguenther@suse.de>
2730
2731 * gimple-fold.c (fold_stmt_1): Check may_propagate_copy
2732 before valueizing return stmts.
2733
2734 2016-11-24 Richard Biener <rguenther@suse.de>
2735
2736 PR tree-optimization/78343
2737 * passes.def: Add CD-DCE pass after loop splitting.
2738 * tree-ssa-dce.c (find_obviously_necessary_stmts): Move
2739 SCEV init/finalize ...
2740 (perform_tree_ssa_dce): ... here. Deal with being
2741 executed inside the loop pipeline in aggressive mode.
2742
2743 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2744
2745 * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
2746
2747 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2748
2749 PR tree-optimization/77673
2750 * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
2751 (init_symbolic_number): Initialize src field from src parameter.
2752 (perform_symbolic_merge): Select most dominated statement as the
2753 source statement. Set src field of resulting n structure from the
2754 input src with the lowest address.
2755 (find_bswap_or_nop): Rename source_stmt into ins_stmt.
2756 (bswap_replace): Rename src_stmt into ins_stmt. Initially get source
2757 of load from src field rather than insertion statement. Cancel
2758 optimization if statement analyzed is not dominated by the insertion
2759 statement.
2760 (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt. Compute
2761 dominance information.
2762
2763 2016-11-25 Eric Botcazou <ebotcazou@adacore.com>
2764
2765 PR ada/67205
2766 * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
2767
2768 2016-11-25 Martin Jambor <mjambor@suse.cz>
2769
2770 PR tree-optimization/70965
2771 * passes.def (pass_build_ssa_passes): Add pass_rebuild_cgraph_edges.
2772
2773 2016-11-24 James Greenahlgh <james.greenhalgh@arm.com>
2774
2775 PR target/78509
2776 * config/i386/i386.c (i386_excess_precision): Do not return
2777 FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
2778 EXCESS_PRECISION_TYPE_STANDARD.
2779 * target.def (excess_precision): Document that targets should
2780 not return FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
2781 EXCESS_PRECISION_TYPE_STANDARD or EXCESS_PRECISION_TYPE_FAST.
2782 Fix typo in first sentence.
2783 * doc/tm.texi: Regenerate.
2784
2785 2016-11-25 Richard Biener <rguenther@suse.de>
2786
2787 PR tree-optimization/78396
2788 * tree-vectorizer.c (vectorize_loops): When the if-converted
2789 body contains masked loads or stores do not attempt to
2790 basic-block-vectorize it.
2791
2792 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2793 Alan Hayward <alan.hayward@arm.com>
2794 David Sherwood <david.sherwood@arm.com>
2795
2796 * function.h (spill_slot_alignment): Declare.
2797 * function.c (spill_slot_alignment): New function.
2798 * lra-spills.c (slot): Add align and size fields.
2799 (assign_mem_slot): Use them in the call to assign_stack_local.
2800 (add_pseudo_to_slot): Update the fields.
2801 (assign_stack_slot_num_and_sort_pseudos): Initialise the fields.
2802
2803 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2804 Alan Hayward <alan.hayward@arm.com>
2805 David Sherwood <david.sherwood@arm.com>
2806
2807 * stor-layout.c (layout_type): Allow the caller to set the mode of
2808 a float type. Only choose one here if the mode is still VOIDmode.
2809 * tree.c (build_common_tree_nodes): Set the type mode of decimal
2810 floats before calling layout_type.
2811 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
2812
2813 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2814
2815 * tree-tailcall.c (find_tail_calls): Allow calls to reference
2816 local variables if all references are known to be direct.
2817
2818 2016-11-25 Jakub Jelinek <jakub@redhat.com>
2819 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2820
2821 PR middle-end/78501
2822 * tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
2823 non null and it's precision matches precision of lhs's type.
2824
2825 2016-11-24 Martin Sebor <msebor@redhat.com>
2826
2827 PR tree-optimization/78476
2828 * gimple-ssa-sprintf.c (struct pass_sprintf_length::call_info):
2829 Add a member.
2830 (handle_gimple_call): Adjust signature.
2831 (try_substitute_return_value): Remove calls to bounded functions
2832 with zero buffer size whose result is known.
2833 (pass_sprintf_length::execute): Adjust call to handle_gimple_call.
2834
2835 2016-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2836
2837 * varasm.c (assemble_start_function): Wrap align_log definition in
2838 ASM_OUTPUT_MAX_SKIP_ALIGN.
2839
2840 2016-11-24 Uros Bizjak <ubizjak@gmail.com>
2841
2842 * config/i386/i386.md (wide AND insn to QImode splitter): Use
2843 explicit mode macros.
2844 (wide OR insn to QImode splitter): Ditto.
2845
2846 2016-11-24 Vladimir Makarov <vmakarov@redhat.com>
2847
2848 PR rtl-optimization/77541
2849 * lra-constraints.c (struct input_reload): Add field match_p.
2850 (get_reload_reg): Check modes of input reloads to generate unique
2851 value reload pseudo.
2852 (match_reload): Add input reload pseudo for the current insn.
2853
2854 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2855
2856 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Update
2857 __FLT_EVAL_METHOD__ and __FLT_EVAL_METHOD_C99__ when we switch
2858 architecture levels.
2859 * config/aarch64/aarch64.c (aarch64_promoted_type): Only promote
2860 the aarch64_fp16_type_node, not all HFmode types.
2861 (aarch64_libgcc_floating_mode_supported_p): Support HFmode.
2862 (aarch64_scalar_mode_supported_p): Likewise.
2863 (aarch64_excess_precision): New.
2864 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
2865 (TARGET_SCALAR_MODE_SUPPORTED_P): Likewise.
2866 (TARGET_C_EXCESS_PRECISION): Likewise.
2867
2868 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2869
2870 * config/aarch64/aarch64-c.c (aarch64_scalar_mode_supported_p): New.
2871 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
2872
2873 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2874
2875 * config/aarch64/aarch64.md (<optab>sihf2): Convert to expand.
2876 (<optab>dihf2): Likewise.
2877 (aarch64_fp16_<optab><mode>hf2): New.
2878
2879 2016-11-24 Alexander Monakov <amonakov@ispras.ru>
2880
2881 PR target/67822
2882 * config/nvptx/mkoffload.c (main): Allow -fopenmp.
2883
2884 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2885
2886 * common/config/sparc/sparc-common.c (sparc_option_optimization_table):
2887 Enable REE at -O2 and higher.
2888 * config/sparc/sparc.c (sparc_option_override): Disable it by default
2889 in 32-bit mode.
2890
2891 2016-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2892
2893 PR target/48863
2894 PR inline-asm/70184
2895 * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
2896 (new_temp_expr_table): Initialise reg_vars_cnt.
2897 (free_temp_expr_table): Release reg_vars_cnt.
2898 (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
2899 field of TAB.
2900 (find_replaceable_in_bb): Use the above to record register variable
2901 write occurrences and cancel replacement across them.
2902
2903 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2904
2905 PR rtl-optimization/78437
2906 * ree.c (get_uses): New function.
2907 (combine_reaching_defs): When a copy is needed, return false if any
2908 reaching use of the source register reads it in a mode larger than
2909 the mode it is set in and WORD_REGISTER_OPERATIONS is true.
2910
2911 2016-11-24 Martin Liska <mliska@suse.cz>
2912
2913 * gimple-pretty-print.c (dump_edge_probability): New function.
2914 (dump_gimple_switch): Dump label edge probabilities.
2915 (dump_gimple_cond): Likewise.
2916 (dump_gimple_label): Dump
2917 (dump_gimple_bb_header): Dump basic block frequency.
2918 (pp_cfg_jump): Replace e->dest argument with e.
2919 (dump_implicit_edges): Likewise.
2920 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
2921 Use gimple_bb (at) instead of at->bb.
2922
2923 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
2924
2925 * common.opt (flimit-function-alignment): New.
2926 * doc/invoke.texi (-flimit-function-alignment): Document.
2927 * emit-rtl.h (struct rtl_data): Add max_insn_address field.
2928 * final.c (shorten_branches): Set it.
2929 * varasm.c (assemble_start_function): Limit alignment if
2930 requested.
2931
2932 2016-11-24 Richard Biener <rguenther@suse.de>
2933
2934 PR tree-optimization/71595
2935 * cfgloopmanip.h (remove_path): Add irred_invalidated and
2936 loop_closed_ssa_invalidated parameters, defaulted to NULL.
2937 * cfgloopmanip.c (remove_path): Likewise, pass them along to
2938 called functions. Only fix irred flags if the caller didn't
2939 request state.
2940 * tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
2941 (unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
2942 to remove_path.
2943
2944 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
2945
2946 PR rtl-optimization/78120
2947 * ifcvt.c (noce_conversion_profitable_p): Check original cost in all
2948 cases, and additionally test against max_seq_cost for speed
2949 optimization.
2950 (noce_process_if_block): Compute an estimate for the original cost when
2951 optimizing for speed, using the minimum of then and else block costs.
2952
2953 PR rtl-optimization/78120
2954 * rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
2955
2956 PR rtl-optimization/78120
2957 * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.
2958
2959 2016-11-24 Bin Cheng <bin.cheng@arm.com>
2960
2961 * match.pd: Refine type conversion in result expr for below pattern:
2962 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
2963
2964 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2965
2966 PR middle-end/78429
2967 * tree.h (wi::fits_to_boolean_p): New predicate.
2968 (wi::fits_to_tree_p): Use it for boolean types.
2969 * tree.c (int_fits_type_p): Likewise.
2970
2971 2016-11-24 Martin Liska <mliska@suse.cz>
2972
2973 * print-tree.c (struct bucket): Remove.
2974 (print_node): Add new argument which drives whether a tree node
2975 is printed briefly or not.
2976 (debug_tree): Replace a custom hash table with hash_set<T>.
2977 * print-tree.h (print_node): Add the argument.
2978
2979 2016-11-24 Chung-Lin Tang <cltang@codesourcery.com>
2980
2981 * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
2982
2983 2016-11-23 Peter Bergner <bergner@vnet.ibm.com>
2984
2985 PR target/78458
2986 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
2987 if it is at least NREGS wide.
2988
2989 2016-11-23 Joseph Myers <joseph@codesourcery.com>
2990
2991 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
2992 TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
2993 TFmode, IFmode and KFmode.
2994
2995 2016-11-23 Joseph Myers <joseph@codesourcery.com>
2996
2997 * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
2998 pattern.
2999
3000 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
3001
3002 * combine.c (change_zero_ext): Only change the mode of a hard register
3003 destination if can_change_dest_mode holds for that.
3004
3005 2016-11-23 Jeff Law <law@redhat.com>
3006
3007 * varasm.c (assemble_name): Increase buffer size for name.
3008
3009 * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
3010
3011 2016-11-23 Jakub Kicinski <jakub.kicinski@netronome.com>
3012
3013 * doc/extend.texi: Constify first argument to __builtin_object_size.
3014
3015 2016-11-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
3016
3017 * opth-gen.awk: Use unsigned shifts for bit masks. Allow all bits
3018 to be used. Add brackets around macro argument.
3019
3020 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
3021
3022 * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
3023
3024 2016-11-23 Jakub Jelinek <jakub@redhat.com>
3025
3026 PR sanitizer/69278
3027 * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
3028 restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
3029
3030 2016-11-23 Jakub Jelinek <jakub@redhat.com>
3031
3032 PR middle-end/69183
3033 * omp-low.c (build_outer_var_ref): Change lastprivate argument
3034 to code, pass it recursively, adjust uses. For OMP_CLAUSE_PRIVATE
3035 on worksharing constructs, treat it like clauses on simd construct.
3036 Formatting fix.
3037 (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
3038 OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
3039 (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
3040 of true as last argument to build_outer_var_ref.
3041
3042 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
3043
3044 * config/i386/i386.md (*movqi_internal): Calculate mode
3045 attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
3046 <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
3047 (*k<logic><mode>): Calculate mode attribute depending on
3048 TARGET_AVX512DQ. Emit k<logic>w for MODE_HI insn mode attribute.
3049 (*andqi_1): Calculate mode attribute of alternative 3 depending
3050 on TARGET_AVX512DQ. Emit kandw for MODE_HI insn mode attribute.
3051 (kandn<mode>): Calculate mode attribute of alternative 2 depending
3052 on TARGET_AVX512DQ. Emit kandnw for MODE_HI insn mode attribute.
3053 (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
3054 iterator. Calculate mode attribute of alternative 1 depending
3055 on TARGET_AVX512DQ. Emit kxnorw for MODE_HI insn mode attribute.
3056 (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
3057 on TARGET_AVX512DQ. Emit knotw for MODE_HI insn mode attribute.
3058
3059 2016-11-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3060
3061 PR middle-end/78153
3062 * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
3063 * tree-vrp.c (extract_range_basic): Handle case for
3064 CFN_BUILT_IN_STRLEN.
3065
3066 2016-11-23 Jeff Law <law@redhat.com>
3067
3068 * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
3069
3070 * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
3071 in boolean context warning.
3072
3073 * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
3074
3075 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3076
3077 PR target/63250
3078 * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
3079 (arm_fp16_type_node): ...This, make visibile.
3080 (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
3081 arm_fp16_type_node.
3082 (arm_init_simd_builtin_types): Likewise.
3083 (arm_init_fp16_builtins): Likewise.
3084 * config/arm/arm.c (arm_excess_precision): New.
3085 (arm_floatn_mode): Likewise.
3086 (TARGET_C_EXCESS_PRECISION): Likewise.
3087 (TARGET_FLOATN_MODE): Likewise.
3088 (arm_promoted_type): Only promote arm_fp16_type_node.
3089 * config/arm/arm.h (arm_fp16_type_node): Declare.
3090
3091 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3092
3093 * config/arm/arm.c (arm_convert_to_type): Delete.
3094 (TARGET_CONVERT_TO_TYPE): Delete.
3095 (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
3096 (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
3097 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
3098 * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
3099 are in fast math mode, and have no single step hardware instruction.
3100 (extendhfdf2): Only expand through SFmode if we don't have a
3101 single-step hardware instruction.
3102 * config/arm/vfp.md (*truncdfhf2): New.
3103 (extendhfdf2): Likewise.
3104
3105 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3106
3107 * targhooks.c (default_floatn_mode): Enable _Float16 if a target
3108 provides HFmode.
3109
3110 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3111
3112 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
3113 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
3114 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
3115 * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
3116 * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
3117 * doc/tm.texi: Regenerate.
3118 * system.h (TARGET_FLT_EVAL_METHOD): Poison.
3119
3120 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3121
3122 * toplev.c (init_excess_precision): Delete most logic.
3123 * tree.c (excess_precision_type): Rewrite to use
3124 TARGET_EXCESS_PRECISION.
3125 * doc/invoke.texi (-fexcess-precision): Document behaviour in a
3126 more generic fashion.
3127 * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
3128 __STDC_WANT_IEC_60559_TYPES_EXT__.
3129
3130 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3131
3132 * common.opt (fpermitted-flt-eval-methods): New.
3133 * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
3134 * flag_types.h (permitted_flt_eval_methods): New.
3135
3136 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3137
3138 * config/m68k/m68k.c (m68k_excess_precision): New.
3139 (TARGET_C_EXCESS_PRECISION): Define.
3140
3141 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3142
3143 * config/s390/s390.c (s390_excess_precision): New.
3144 (TARGET_C_EXCESS_PRECISION): Define.
3145
3146 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3147
3148 * config/i386/i386.c (ix86_excess_precision): New.
3149 (TARGET_C_EXCESS_PRECISION): Define.
3150
3151 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3152
3153 * target.def (excess_precision): New hook.
3154 * target.h (flt_eval_method): New.
3155 (excess_precision_type): Likewise.
3156 * targhooks.c (default_excess_precision): New.
3157 * targhooks.h (default_excess_precision): New.
3158 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
3159 * doc/tm.texi: Regenerate.
3160
3161 2016-11-23 Martin Sebor <msebor@redhat.com>
3162
3163 PR middle-end/78461
3164 * gimple-ssa-sprintf.c (format_string): Correct the maxima and
3165 set the minimum number of bytes for an unknown string to zero.
3166
3167 2016-11-23 Martin Jambor <mjambor@suse.cz>
3168 Martin Liska <mliska@suse.cz>
3169
3170 * hsa-builtins.def: New file.
3171 * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
3172 * builtins.def: Include hsa-builtins.def.
3173 (DEF_HSA_BUILTIN): New macro.
3174 * dumpfile.h (OPTGROUP_OPENMP): Define.
3175 * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
3176 * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
3177 GF_OMP_FOR_GRID_GROUP_ITER.
3178 (gimple_omp_for_grid_phony): Added checking assert.
3179 (gimple_omp_for_set_grid_phony): Likewise.
3180 (gimple_omp_for_grid_intra_group): New function.
3181 (gimple_omp_for_set_grid_intra_group): Likewise.
3182 (gimple_omp_for_grid_group_iter): Likewise.
3183 (gimple_omp_for_set_grid_group_iter): Likewise.
3184 * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
3185 previosuly only distribute loop was permitted.
3186 (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
3187 (grid_get_kernel_launch_attributes): Support multiple HSA grid
3188 dimensions.
3189 (grid_expand_omp_for_loop): Likewise and also support standalone
3190 distribute constructs. New parameter INTRA_GROUP, updated both users.
3191 (grid_expand_target_grid_body): Support standalone distribute
3192 constructs.
3193 (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
3194 (pass_data_expand_omp_ssa): Likewise.
3195 (pass_data_omp_device_lower): Likewsie.
3196 (pass_data_lower_omp): Likewise.
3197 (pass_data_diagnose_omp_blocks): Likewise.
3198 (pass_data_oacc_device_lower): Likewise.
3199 (pass_data_omp_target_link): Likewise.
3200 (grid_lastprivate_predicate): New function.
3201 (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
3202 gridified loops.
3203 (lower_omp_for): Support standalone distribute constructs.
3204 (grid_prop): New type.
3205 (grid_safe_assignment_p): Check for assignments to group_sizes, new
3206 parameter GRID.
3207 (grid_seq_only_contains_local_assignments): New parameter GRID, pass
3208 it to callee.
3209 (grid_find_single_omp_among_assignments_1): Likewise, improve missed
3210 optimization info messages.
3211 (grid_find_single_omp_among_assignments): Likewise.
3212 (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
3213 (grid_parallel_clauses_gridifiable): New function.
3214 (grid_inner_loop_gridifiable_p): Likewise.
3215 (grid_dist_follows_simple_pattern): Likewise.
3216 (grid_gfor_follows_tiling_pattern): Likewise.
3217 (grid_call_permissible_in_distribute_p): Likewise.
3218 (grid_handle_call_in_distribute): Likewise.
3219 (grid_dist_follows_tiling_pattern): Likewise.
3220 (grid_target_follows_gridifiable_pattern): Support standalone
3221 distribute constructs.
3222 (grid_var_segment): New enum.
3223 (grid_mark_variable_segment): New function.
3224 (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
3225 if a new argument says so.
3226 (grid_process_grid_body): New function.
3227 (grid_eliminate_combined_simd_part): Likewise.
3228 (grid_mark_tiling_loops): Likewise.
3229 (grid_mark_tiling_parallels_and_loops): Likewise.
3230 (grid_process_kernel_body_copy): Support standalone distribute
3231 constructs.
3232 (grid_attempt_target_gridification): New grid variable holding overall
3233 gridification state. Support standalone distribute constructs and
3234 collapse clauses.
3235 * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
3236 * hsa.h (hsa_bb): Add method method append_phi.
3237 (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
3238 occurences in all files too.
3239 (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
3240 (is_a_helper <hsa_insn_br *>::test): New function.
3241 (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
3242 branch instructions.
3243 (hsa_insn_signal): Make a direct descendant of
3244 hsa_insn_basic. Add memorder constructor parameter and
3245 m_memory_order and m_signalop member variables.
3246 (hsa_insn_queue): Changed constructor parameters to common form.
3247 Added m_segment and m_memory_order member variables.
3248 (hsa_summary_t): Add private member function
3249 process_gpu_implementation_attributes.
3250 (hsa_function_summary): Rename m_binded_function to
3251 m_bound_function.
3252 (hsa_insn_basic_p): Remove typedef.
3253 (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
3254 (hsa_op_reg_p): Remove typedef.
3255 (hsa_function_representation): Change hsa_op_reg_p into plain
3256 pointers.
3257 (hsa_insn_phi): Removed new and delete operators.
3258 (hsa_insn_br): Likewise.
3259 (hsa_insn_cbr): Likewise.
3260 (hsa_insn_sbr): Likewise.
3261 (hsa_insn_cmp): Likewise.
3262 (hsa_insn_mem): Likewise.
3263 (hsa_insn_atomic): Likewise.
3264 (hsa_insn_signal): Likewise.
3265 (hsa_insn_seg): Likewise.
3266 (hsa_insn_call): Likewise.
3267 (hsa_insn_arg_block): Likewise.
3268 (hsa_insn_comment): Likewise.
3269 (hsa_insn_srctype): Likewise.
3270 (hsa_insn_packed): Likewise.
3271 (hsa_insn_cvt): Likewise.
3272 (hsa_insn_alloca): Likewise.
3273 * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
3274 (process_gpu_implementation_attributes): New function.
3275 (link_functions): Move some functionality into it. Adjust after
3276 renaming m_binded_functions to m_bound_functions.
3277 (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
3278 to the list of instructions with no output registers.
3279 (get_in_type): Return this if it is a register of
3280 matching size.
3281 (hsa_get_declaration_name): Moved to...
3282 * hsa-gen.c (hsa_get_declaration_name): ...here. Allocate
3283 temporary string on an obstack instead from ggc.
3284 (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
3285 down to two overloads.
3286 (hsa_allocp_operand_address): Removed.
3287 (hsa_allocp_operand_immed): Likewise.
3288 (hsa_allocp_operand_reg): Likewise.
3289 (hsa_allocp_operand_code_list): Likewise.
3290 (hsa_allocp_operand_operand_list): Likewise.
3291 (hsa_allocp_inst_basic): Likewise.
3292 (hsa_allocp_inst_phi): Likewise.
3293 (hsa_allocp_inst_mem): Likewise.
3294 (hsa_allocp_inst_atomic): Likewise.
3295 (hsa_allocp_inst_signal): Likewise.
3296 (hsa_allocp_inst_seg): Likewise.
3297 (hsa_allocp_inst_cmp): Likewise.
3298 (hsa_allocp_inst_br): Likewise.
3299 (hsa_allocp_inst_sbr): Likewise.
3300 (hsa_allocp_inst_call): Likewise.
3301 (hsa_allocp_inst_arg_block): Likewise.
3302 (hsa_allocp_inst_comment): Likewise.
3303 (hsa_allocp_inst_queue): Likewise.
3304 (hsa_allocp_inst_srctype): Likewise.
3305 (hsa_allocp_inst_packed): Likewise.
3306 (hsa_allocp_inst_cvt): Likewise.
3307 (hsa_allocp_inst_alloca): Likewise.
3308 (hsa_allocp_bb): Likewise.
3309 (hsa_obstack): New.
3310 (hsa_init_data_for_cfun): Initialize obstack.
3311 (hsa_deinit_data_for_cfun): Release memory of the obstack.
3312 (hsa_op_immed::operator new): Use obstack instead of object_allocator.
3313 (hsa_op_reg::operator new): Likewise.
3314 (hsa_op_address::operator new): Likewise.
3315 (hsa_op_code_list::operator new): Likewise.
3316 (hsa_op_operand_list::operator new): Likewise.
3317 (hsa_insn_basic::operator new): Likewise.
3318 (hsa_insn_phi::operator new): Likewise.
3319 (hsa_insn_br::operator new): Likewise.
3320 (hsa_insn_sbr::operator new): Likewise.
3321 (hsa_insn_cmp::operator new): Likewise.
3322 (hsa_insn_mem::operator new): Likewise.
3323 (hsa_insn_atomic::operator new): Likewise.
3324 (hsa_insn_signal::operator new): Likewise.
3325 (hsa_insn_seg::operator new): Likewise.
3326 (hsa_insn_call::operator new): Likewise.
3327 (hsa_insn_arg_block::operator new): Likewise.
3328 (hsa_insn_comment::operator new): Likewise.
3329 (hsa_insn_srctype::operator new): Likewise.
3330 (hsa_insn_packed::operator new): Likewise.
3331 (hsa_insn_cvt::operator new): Likewise.
3332 (hsa_insn_alloca::operator new): Likewise.
3333 (hsa_init_new_bb): Likewise.
3334 (hsa_bb::append_phi): New function.
3335 (gen_hsa_phi_from_gimple_phi): Use it.
3336 (get_symbol_for_decl): Fix dinstinguishing between
3337 global and local functions. Put local variables into a segment
3338 according to their attribute or static flag, if there is one.
3339 (hsa_insn_br::hsa_insn_br): New.
3340 (hsa_insn_br::operator new): Likewise.
3341 (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
3342 (query_hsa_grid_nodim): New function.
3343 (multiply_grid_dim_characteristics): Likewise.
3344 (gen_get_num_threads): Likewise.
3345 (gen_get_num_teams): Reimplemented.
3346 (gen_get_team_num): Likewise.
3347 (gen_hsa_insns_for_known_library_call): Updated calls to the above
3348 helper functions.
3349 (get_memory_order_name): Removed.
3350 (get_memory_order): Likewise.
3351 (hsa_memorder_from_tree): New function.
3352 (gen_hsa_ternary_atomic_for_builtin): Renamed to
3353 gen_hsa_atomic_for_builtin, can also create signals.
3354 (gen_hsa_insns_for_call): Handle many new builtins. Adjust to use
3355 hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
3356 (hsa_insn_atomic): Fix function comment.
3357 (hsa_insn_signal::hsa_insn_signal): Fix comment. Update call to
3358 ancestor constructor and initialization of new member variables.
3359 (hsa_insn_queue::hsa_insn_queue): Added initialization of new
3360 member variables.
3361 (hsa_get_host_function): Handle functions with no bound CPU
3362 implementation. Fix binded to bound.
3363 (get_brig_function_name): Likewise.
3364 (HSA_SORRY_ATV): Remove semicolon after macro.
3365 (HSA_SORRY_AT): Likewise.
3366 (omp_simple_builtin::generate): Add missing semicolons.
3367 (hsa_insn_phi::operator new): Removed.
3368 (hsa_insn_br::operator new): Likewise.
3369 (hsa_insn_cbr::operator new): Likewise.
3370 (hsa_insn_sbr::operator new): Likewise.
3371 (hsa_insn_cmp::operator new): Likewise.
3372 (hsa_insn_mem::operator new): Likewise.
3373 (hsa_insn_atomic::operator new): Likewise.
3374 (hsa_insn_signal::operator new): Likewise.
3375 (hsa_insn_seg::operator new): Likewise.
3376 (hsa_insn_call::operator new): Likewise.
3377 (hsa_insn_arg_block::operator new): Likewise.
3378 (hsa_insn_comment::operator new): Likewise.
3379 (hsa_insn_srctype::operator new): Likewise.
3380 (hsa_insn_packed::operator new): Likewise.
3381 (hsa_insn_cvt::operator new): Likewise.
3382 (hsa_insn_alloca::operator new): Likewise.
3383 (get_symbol_for_decl): Accept CONST_DECLs, put them to
3384 readonly segment.
3385 (gen_hsa_addr): Also process CONST_DECLs.
3386 (gen_hsa_addr_insns): Process CONST_DECLs by creating private
3387 copies.
3388 (gen_hsa_unary_operation): Make sure the function does
3389 not use bittype source type for firstbit and lastbit operations.
3390 (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
3391 source type.
3392 * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
3393 instruction.
3394 (emit_branch_insn): Renamed to emit_cond_branch_insn.
3395 Emit the width stored in the class.
3396 (emit_generic_branch_insn): New function.
3397 (emit_insn): Call emit_generic_branch_insn.
3398 (emit_signal_insn): Remove obsolete comment. Update
3399 member variable name, pick a type according to profile.
3400 (emit_alloca_insn): Remove obsolete comment.
3401 (emit_atomic_insn): Likewise.
3402 (emit_queue_insn): Get segment and memory order from the IR object.
3403 (hsa_brig_section): Make allocate_new_chunk, chunks
3404 and cur_chunk provate, add a default NULL parameter to add method.
3405 (hsa_brig_section::add): Added a new parameter, store pointer to
3406 output data there if it is non-NULL.
3407 (emit_function_directives): Use this new parameter instead of
3408 calculating the pointer itself, fix function comment.
3409 (hsa_brig_emit_function): Add forgotten endian conversion.
3410 (hsa_output_kernels): Remove unnecessary building of
3411 kernel_dependencies_vector_type.
3412 (emit_immediate_operand): Declare.
3413 (emit_directive_variable): Also emit initializers of CONST_DECLs.
3414 (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
3415 (verify_function_arguments): Properly detect variadic
3416 arguments.
3417 * hsa-dump.c (hsa_width_specifier_name): New function.
3418 (dump_hsa_insn_1): Dump generic branch instructions, update signal
3419 member variable name. Special dumping for queue objects.
3420 * ipa-hsa.c (process_hsa_functions): Adjust after renaming
3421 m_binded_functions to m_bound_functions. Copy externally visible flag
3422 to the node.
3423 (ipa_hsa_write_summary): Likewise.
3424 (ipa_hsa_read_section): Likewise.
3425
3426 2016-11-23 Richard Biener <rguenther@suse.de>
3427
3428 PR tree-optimization/78396
3429 * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
3430 vectorize try vectorizing an if-converted body using BB vectorization.
3431
3432 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
3433 Alan Hayward <alan.hayward@arm.com>
3434 David Sherwood <david.sherwood@arm.com>
3435
3436 * rtlanal.c (subreg_get_info): Use more local variables.
3437 Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
3438 occupies at least one register. Assume that full hard registers
3439 have consistent endianness. Share previously-duplicated if block.
3440 Rework the main handling so that it operates on independently-
3441 addressable YMODE-sized blocks. Use subreg_size_lowpart_offset
3442 to check lowpart offsets, without trying to find an equivalent
3443 integer mode first. Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
3444 as a final register-endianness correction.
3445
3446 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
3447
3448 PR target/77881
3449 PR bootstrap/78390
3450 PR target/78438
3451 PR bootstrap/78477
3452 * combine.c (make_compound_operation_int): Do not convert a subreg of
3453 a non-constant logical shift right to a zero_extract. Handle the case
3454 where some zero bits have been shifted into the range covered by that
3455 subreg.
3456
3457 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
3458 Alan Hayward <alan.hayward@arm.com>
3459 David Sherwood <david.sherwood@arm.com>
3460
3461 * rtl.h (subreg_size_offset_from_lsb): Declare.
3462 (subreg_offset_from_lsb): New function.
3463 (subreg_size_lowpart_offset): Declare.
3464 (subreg_lowpart_offset): Turn into an inline function.
3465 (subreg_size_highpart_offset): Declare.
3466 (subreg_highpart_offset): Turn into an inline function.
3467 * emit-rtl.c (subreg_size_lowpart_offset): New function.
3468 (subreg_size_highpart_offset): Likewise
3469 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
3470
3471 2016-11-23 Richard Biener <rguenther@suse.de>
3472
3473 PR tree-optimization/78482
3474 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
3475 (remove_forwarder_block_with_phi): When merging with a loop
3476 header creates a new latch reset number of iteration information
3477 of the loop.
3478
3479 2016-11-23 Eric Botcazou <ebotcazou@adacore.com>
3480
3481 * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
3482 (*ashrsi3_extend0): ...this. Accept constant integers.
3483 (*ashrsi3_extend2): Rename to...
3484 (*ashrsi3_extend1): ...this.
3485 (*ashrsi3_extend2): New pattern.
3486 (*lshrsi3_extend1): Accept constant integers.
3487 (*lshrsi3_extend2): Fix condition on operand 2.
3488
3489 2016-11-23 Martin Liska <mliska@suse.cz>
3490
3491 * config/i386/i386.c: Initialize function pointer to NULL.
3492
3493 2016-11-23 Bin Cheng <bin.cheng@arm.com>
3494
3495 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
3496 for A == C1 ? A : C2 to below.
3497 * match.pd: Move from above to here:
3498 (cond (eq (convert1? x) c1) (convert2? x) c2)
3499 -> (cond (eq x c1) c1 c2).
3500
3501 2016-11-23 Bin Cheng <bin.cheng@arm.com>
3502
3503 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
3504 for A cmp C1 ? A : C2 to below, also simplify remaining code.
3505 * match.pd: Move and extend simplification from above to here:
3506 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
3507 * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
3508 (predicate_scalar_phi): Call fold_stmt using the new valueize func.
3509
3510 2016-11-23 Martin Liska <mliska@suse.cz>
3511 Martin Jambor <mjambor@suse.cz>
3512
3513 * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
3514
3515 2016-11-23 Aldy Hernandez <aldyh@redhat.com>
3516
3517 PR target/78213
3518 * opts.c (finish_options): Set -fsyntax-only if running self tests.
3519
3520 2016-11-23 Richard Biener <rguenther@suse.de>
3521
3522 PR middle-end/71762
3523 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
3524 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
3525
3526 2016-11-23 Richard Biener <rguenther@suse.de>
3527
3528 PR lto/78472
3529 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
3530 fields.
3531
3532 2016-11-23 Richard Biener <rguenther@suse.de>
3533 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
3534
3535 PR tree-optimization/78154
3536 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
3537 returns it's argument and the argument is nonnull.
3538 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
3539 ATT_RETNONNULL_NOTHROW_LEAF.
3540 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
3541 ATTR_RETNONNULL_NOTHROW_LEAF.
3542 (BUILT_IN_STPCPY): Likewise.
3543 (BUILT_IN_STPNCPY): Likewise.
3544 (BUILT_IN_MEMPCPY_CHK): Likewise.
3545 (BUILT_IN_STPCPY_CHK): Likewise.
3546 (BUILT_IN_STPNCPY_CHK): Likewise.
3547 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
3548 (BUILT_IN_STRNCAT): Likewise.
3549 (BUILT_IN_STRNCPY): Likewise.
3550 (BUILT_IN_MEMSET_CHK): Likewise.
3551 (BUILT_IN_STRCAT_CHK): Likewise.
3552 (BUILT_IN_STRCPY_CHK): Likewise.
3553 (BUILT_IN_STRNCAT_CHK): Likewise.
3554 (BUILT_IN_STRNCPY_CHK): Likewise.
3555
3556 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3557
3558 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
3559 * fold-const.h (tree_expr_nonzero_p) : Declare.
3560 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
3561
3562 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
3563
3564 * system.h (HAVE_DESIGNATED_INITIALIZERS,
3565 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
3566 "defined" in macros.
3567 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
3568 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
3569 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
3570
3571 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
3572
3573 PR target/60300
3574 * config/avr/constraints.md (Csp): Widen range to [-11..6].
3575 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
3576 of RCALLs in prologue to 3.
3577
3578 2016-11-22 Michael Collison <michael.collison@arm.com>
3579
3580 * config/aarch64/aarch64-protos.h
3581 (aarch64_and_split_imm1, aarch64_and_split_imm2)
3582 (aarch64_and_bitmask_imm): New prototypes
3583 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
3584 New overloaded function to create bit mask covering the
3585 lowest to highest bits set.
3586 (aarch64_and_split_imm2): New overloaded functions to create bit
3587 mask of zeros between first and last bit set.
3588 (aarch64_and_bitmask_imm): New function to determine if a integer
3589 is a valid two instruction "and" operation.
3590 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
3591 allowing wider range of constants with "and" operations.
3592 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
3593 "and" operator from matching restricted constant range used for
3594 ior and xor operators.
3595 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
3596 for constants in "and" operantions.
3597 (UsP constraint): New DImode constraint for constants
3598 in "and" operations.
3599 * config/aarch64/iterators.md (lconst2): New mode iterator.
3600 (LOGICAL2): New code iterator.
3601 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
3602 predicate.
3603 (aarch64_logical_and_operand): New predicate allowing extended
3604 constants for "and" operations.
3605
3606 2016-11-22 Walter Lee <walt@tilera.com>
3607
3608 * config/tilegx/tilegx.md (trap): New pattern.
3609 * config/tilepro/tilepro.md (trap): Likewise.
3610
3611 2016-11-22 Walter Lee <walt@tilera.com>
3612
3613 * config/tilegx/tilegx.md (*zero_extract): Use
3614 define_insn_and_split instead of define_insn; Handle pos + size >
3615 64.
3616 (*sign_extract): Likewise.
3617
3618 2016-11-22 Marek Polacek <polacek@redhat.com>
3619
3620 PR tree-optimization/78455
3621 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
3622
3623 2016-11-22 Ian Lance Taylor <iant@golang.org>
3624
3625 PR go/78431
3626 PR go/78432
3627 * godump.c (go_format_type): Always pass alignment as 1 when
3628 calling go_append_padding at end of struct/union.
3629
3630 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3631
3632 PR target/78451
3633 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
3634 _mm512_setzero_hi): Removed.
3635 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
3636 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
3637 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
3638 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
3639 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
3640 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
3641 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
3642 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
3643 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
3644 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
3645 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
3646 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
3647 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
3648 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
3649 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
3650 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
3651 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
3652 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
3653 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
3654 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
3655 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
3656 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
3657 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
3658 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
3659 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
3660 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
3661 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
3662 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
3663 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
3664 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
3665 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
3666 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
3667 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
3668 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
3669 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
3670 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
3671 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
3672 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
3673 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
3674 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
3675 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
3676 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
3677 _mm512_setzero_qi or _mm512_setzero_hi.
3678 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
3679 _mm512_maskz_dbsad_epu8): Formatting fixes.
3680 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
3681 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
3682 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
3683 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
3684 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
3685 _mm512_setzero_qi or _mm512_setzero_hi.
3686
3687 2016-11-22 Nathan Sidwell <nathan@acm.org>
3688
3689 * gcc-ar.c (main): Fix indentation.
3690 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
3691 * ggc-page.c (move_ptes_to_front): Fix formatting.
3692 * hsa-dump.c (dump_has_cfun): Fix indentation.
3693 * sel-sched-ir.h: Remove trailing blank lines.
3694
3695 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3696 Alexander Monakov <amonakov@ispras.ru>
3697
3698 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
3699 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
3700 (omp_clause_code_name): Add _simt_ name.
3701 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
3702 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
3703 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
3704 (scan_omp_simd): New function.
3705 (scan_omp_1_stmt): Use it in target regions if needed.
3706 (omp_max_vf): Don't max with omp_max_simt_vf.
3707 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
3708 OMP_CLAUSE__SIMT_ is present.
3709 (lower_rec_input_clauses): Compute maybe_simt from presence of
3710 OMP_CLAUSE__SIMT_.
3711 (lower_lastprivate_clauses): Likewise.
3712 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
3713 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
3714 * internal-fn.def (GOMP_USE_SIMT): New internal function.
3715 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
3716
3717 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
3718
3719 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
3720 (expand_GOMP_SIMT_VF): New.
3721 (expand_GOMP_SIMT_LAST_LANE): New.
3722 (expand_GOMP_SIMT_ORDERED_PRED): New.
3723 (expand_GOMP_SIMT_VOTE_ANY): New.
3724 (expand_GOMP_SIMT_XCHG_BFLY): New.
3725 (expand_GOMP_SIMT_XCHG_IDX): New.
3726 * internal-fn.def (GOMP_SIMT_LANE): New.
3727 (GOMP_SIMT_VF): New.
3728 (GOMP_SIMT_LAST_LANE): New.
3729 (GOMP_SIMT_ORDERED_PRED): New.
3730 (GOMP_SIMT_VOTE_ANY): New.
3731 (GOMP_SIMT_XCHG_BFLY): New.
3732 (GOMP_SIMT_XCHG_IDX): New.
3733 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
3734 (create_omp_child_function): ...here. Set "omp target entrypoint"
3735 or "omp declare target" attribute based on is_gimple_omp_offloaded.
3736 (omp_max_simt_vf): New. Use it...
3737 (omp_max_vf): ...here.
3738 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
3739 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
3740 (lower_omp_ordered): Likewise, for "ordered" lowering.
3741 (expand_omp_simd): Add SIMT transforms.
3742 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
3743 (execute_omp_device_lower): New.
3744 (pass_data_omp_device_lower): New.
3745 (pass_omp_device_lower): New pass.
3746 (make_pass_omp_device_lower): New.
3747 * passes.def (pass_omp_device_lower): Position new pass.
3748 * tree-pass.h (PROP_gimple_lomp_dev): Define.
3749 (make_pass_omp_device_lower): Declare.
3750
3751 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3752
3753 PR target/78451
3754 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
3755 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
3756 _mm_setzero_di.
3757 (_mm_maskz_load_epi64): Likewise.
3758 (_mm_setzero_hi): Removed.
3759 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
3760 _mm_setzero_di.
3761 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
3762 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
3763 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
3764 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
3765 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
3766 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
3767 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
3768 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
3769 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
3770 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
3771 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
3772 Likewise.
3773 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
3774 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
3775 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
3776 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
3777 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
3778 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
3779 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
3780 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
3781 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
3782 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
3783 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
3784 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
3785 instead of _mm_setzero_hi.
3786 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
3787 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
3788 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
3789 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
3790 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
3791 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
3792 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
3793 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
3794 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
3795 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
3796 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
3797 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
3798 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
3799 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
3800 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
3801 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
3802 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
3803 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
3804 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
3805 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
3806 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
3807 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
3808 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
3809 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
3810 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
3811 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
3812 _mm_setzero_di.
3813 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
3814 instead of _mm_setzero_hi.
3815 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
3816 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
3817 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
3818 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
3819 _mm_setzero_si128 instead of _mm_setzero_di.
3820 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
3821 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
3822 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
3823 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
3824 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
3825 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
3826 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
3827 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
3828 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
3829 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
3830 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
3831 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
3832 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
3833 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
3834 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
3835 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
3836 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
3837 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
3838 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
3839 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
3840 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
3841 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
3842 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
3843 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
3844 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
3845 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
3846 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
3847 _mm512_maskz_insertf32x8): Formatting fixes.
3848 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
3849 _mm_setzero_si128 instead of _mm_setzero_di.
3850 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
3851 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
3852 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
3853 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
3854 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
3855 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
3856 _mm_setzero_si128 instead of _mm_setzero_di.
3857 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
3858 Likewise in macros.
3859 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
3860 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
3861 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
3862 _mm_setzero_si128 instead of _mm_setzero_hi.
3863 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
3864 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
3865 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
3866 instead of _mm_setzero_di.
3867 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
3868 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
3869 _mm_setzero_hi.
3870 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
3871 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
3872 _mm_setzero_hi.
3873 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
3874 _mm_setzero_di.
3875 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
3876 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
3877 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
3878
3879 2016-11-22 Carl Love <cel@us.ibm.com>
3880
3881 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
3882 equal and vector compare not equal. The vector compares take two
3883 arguments of type vector bool char, vector bool short, vector bool int,
3884 vector bool long long with the same return type.
3885 * doc/extend.texi: Update built-in documentation file for the new
3886 powerpc built-ins.
3887
3888 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
3889
3890 * Makefile.in ($(lang_checks_parallelized)): Fix detection
3891 of -j argument.
3892
3893 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
3894
3895 * config.gcc: Allow new rmprofile value for configure option
3896 --with-multilib-list.
3897 * config/arm/t-rmprofile: New file.
3898 * doc/install.texi (--with-multilib-list): Document new rmprofile value
3899 for ARM.
3900
3901 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3902
3903 PR target/78439
3904 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
3905 register operand in alternatives 4,5,6.
3906
3907 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
3908
3909 PR target/77904
3910 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
3911 in save register mask if it is needed.
3912
3913 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3914
3915 PR tree-optimization/78436
3916 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
3917 (shift_bytes_in_array, shift_bytes_in_array_right,
3918 merged_store_group::apply_stores): Formatting fixes.
3919 (clear_bit_region): Likewise. Use memset.
3920 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
3921 instead of EXPR and inerted instead of inserted. Use memset instead
3922 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
3923 if shift_amnt is 0.
3924
3925 PR middle-end/78416
3926 * expmed.c (expand_divmod): Use wide_int for computation of
3927 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
3928 Use size <= HOST_BITS_PER_WIDE_INT instead of
3929 HOST_BITS_PER_WIDE_INT >= size.
3930
3931 PR tree-optimization/78445
3932 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
3933 any_complicated_phi, version loop even if flag_tree_loop_if_convert
3934 is 1. Formatting fix.
3935
3936 2016-11-22 Martin Liska <mliska@suse.cz>
3937
3938 PR ipa/78309
3939 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
3940 (sem_function::get_hash): Use the new field.
3941 (sem_function::parse): Remove an argument from ctor.
3942 (sem_variable::parse): Likewise.
3943 (sem_variable::get_hash): Use the new field.
3944 (sem_item_optimizer::read_section): Use new ctor and set hash.
3945 * ipa-icf.h: _hash is removed from sem_item::sem_item,
3946 sem_variable::sem_variable, sem_function::sem_function.
3947
3948 2016-11-21 Jeff Law <law@redhat.com>
3949
3950 PR target/68538
3951 * config/cris/cris.md: Don't call copy_to_mode_reg unless
3952 can_create_pseudo_p is true.
3953
3954 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
3955
3956 PR target/68803
3957 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
3958 *rotldi3_insert_7): New define_insns.
3959
3960 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3961
3962 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
3963 so that DImode can be allocated to FP/vector registers in more
3964 cases, and we can avoid direct move operations. If the register
3965 needs reloading, prefer GPRs over FP/vector registers. In the
3966 case of FPR vs. Altivec registers, prefer FPR registers unless we
3967 have the ISA 3.0 reg+offset scalar instructions.
3968 (movdi_internal64): Likewise.
3969
3970 2016-11-21 Jakub Jelinek <jakub@redhat.com>
3971
3972 PR middle-end/67335
3973 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
3974 for tmp simd array if DECL_NAME (parm) is NULL.
3975
3976 2016-11-20 Jeff Law <law@redhat.com>
3977
3978 PR target/25128
3979 * config/m68k/predicates.md (swap_peephole_relational_operator): New
3980 predicate.
3981 * config/m68k/m68k.md (relational tests against 65535/65536): New
3982 peephole2.
3983
3984 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3985
3986 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
3987
3988 2016-11-21 Martin Sebor <msebor@redhat.com>
3989
3990 * doc/invoke.texi (-fprintf-return-value): Document that option
3991 is enabled by default.
3992
3993 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
3994
3995 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
3996 for-loop declaration of loop variable.
3997 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
3998 * config/avr/avr.c (avr_popcount_each_byte)
3999 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
4000 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
4001 (avr_expand_epilogue, avr_function_arg_advance)
4002 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
4003 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
4004 (avr_adjust_reg_alloc_order, output_reload_in_const)
4005 (avr_conditional_register_usage, avr_find_unused_d_reg)
4006 (avr_map_decompose, avr_fold_builtin): Same.
4007
4008 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4009
4010 * config/avr/avr.c (avr_popcount): Remove static function.
4011 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
4012
4013 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
4014
4015 * arm.opt (mapcs-float): Delete option.
4016 * arm.c (arm_option_override): Remove hunk relating to
4017 TARGET_APCS_FLOAT.
4018 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
4019
4020 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
4021
4022 * tree-tailcall.c (process_assignment): Simplify the check for
4023 a valid copy, allowing the source to be a local variable as
4024 well as an SSA name.
4025 (find_tail_calls): Allow copies between local variables to follow
4026 the call. Allow the result to be stored in any local variable,
4027 even if it's an aggregate.
4028 (eliminate_tail_call): Check whether the result is an SSA name
4029 before updating its SSA_NAME_DEF_STMT.
4030
4031 2016-11-21 David Malcolm <dmalcolm@redhat.com>
4032
4033 PR preprocessor/78324
4034 * input.c (get_substring_ranges_for_loc): Fail gracefully if
4035 -ftrack-macro-expansion has a value other than 2.
4036
4037 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
4038
4039 PR rtl-optimization/78400
4040 * shrink-wrap.c (try_shrink_wrapping_separate): Call
4041 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
4042 and df_update_exit_block_uses.
4043
4044 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4045
4046 PR c++/71973
4047 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
4048 new default-enabled warning..
4049 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
4050 (BT_PTR_CONST_STRING): Updated.
4051 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
4052 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
4053 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
4054 (strftime): Update builtin function.
4055 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
4056 * tree.h (const_tm_ptr_type_node): New type node.
4057 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
4058 const_tm_ptr_type_node.
4059
4060 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4061
4062 PR tree-optimization/78413
4063 * tree-if-conv.c (versionable_outer_loop_p): Require that both
4064 inner and outer loop latches have single predecessors.
4065
4066 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4067
4068 PR target/78093
4069 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
4070 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
4071
4072 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4073
4074 * rtl.h: Adjust prototype.
4075 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
4076 (dead_or_set_regno_p): Likewise.
4077
4078 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4079
4080 * rtl.h: Adjust prototype.
4081 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
4082
4083 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4084
4085 * function.c (contains): Change argument type to rtx_insn *.
4086 (prologue_contains): Likewise.
4087 (epilogue_contains): Likewise.
4088 (prologue_epilogue_contains): Likewise.
4089 * function.h: Adjust prototype.
4090
4091 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4092
4093 * optabs.c (emit_libcall_block): Change argument type to
4094 rtx_insn *.
4095 * optabs.h: Adjust prototype.
4096
4097 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4098
4099 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
4100 (fixup_reorder_chain): Adjust.
4101 * cfgrtl.h: Adjust prototype.
4102
4103 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4104
4105 * rtl.h: Adjust prototype.
4106 * rtlanal.c (replace_label_in_insn): Change argument type to
4107 rtx_insn *.
4108
4109 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4110
4111 * config/v850/v850.c (expand_prologue): Adjust.
4112 (expand_epilogue): Likewise.
4113 * expr.c (init_expr_target): Likewise.
4114 * genrecog.c (print_subroutine): Always make the argument type
4115 rtx_insn *.
4116 * recog.h: Adjust prototype.
4117
4118 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4119
4120 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
4121 up variables to make some rtx_insn *.
4122 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
4123 * config/arc/arc.c: Likewise.
4124 * config/arm/arm.c: Likewise.
4125 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
4126 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
4127 Likewise.
4128 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
4129
4130 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4131
4132 * config/arm/arm.c (legitimize_pic_address): Change to use
4133 rtx_insn * as the type of variables.
4134 (arm_pic_static_addr): Likewise.
4135 (arm_emit_movpair): Likewise.
4136 * config/c6x/c6x.c (reorg_split_calls): Likewise.
4137 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
4138 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
4139 * config/frv/frv.md: Likewise.
4140 * config/i386/i386-protos.h: Likewise.
4141 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
4142 (ix86_split_fp_branch): Likewise.
4143 (predict_jump): Likewise.
4144 * config/ia64/ia64.c: Likewise.
4145 * config/mcore/mcore.c: Likewise.
4146 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
4147 * config/s390/s390.c: Likewise.
4148 * config/s390/s390.md: Likewise.
4149 * config/spu/spu.md: Likewise.
4150 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
4151 * lower-subreg.c (resolve_simple_move): Likewise.
4152
4153 2016-11-20 Jeff Law <law@redhat.com>
4154
4155 PR target/48551
4156 * reload.h (struct target_reload): Make x_double_reg_address_ok
4157 be per-mode rather.
4158 * reload.c (find_reloads_address): Check if double_reg_address_ok
4159 is true for the mode of the memory reference.
4160 * reload1.c (init_reload): Initialize double_reg_address_ok for
4161 each mode.
4162
4163 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
4164
4165 PR middle-end/61409
4166 * tree-ssa-uninit.c: Define new global max_phi_args.
4167 (compute_uninit_opnds_pos): Use max_phi_args.
4168 (prune_uninit_phi_opnds): Same.
4169 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
4170 missing NUM_PREDS in function comment.
4171 (can_one_predicate_be_invalidated_p): New.
4172 (can_chain_union_be_invalidated_p): New.
4173 (flatten_out_predicate_chains): New.
4174 (uninit_ops_invalidate_phi_use): New.
4175 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
4176
4177 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
4178
4179 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
4180 * match.pd (A /[ex] B CMP C): New simplifications.
4181
4182 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
4183
4184 * match.pd (0 / X, X / X, X % X): New simplifications.
4185
4186 2016-11-19 Jakub Jelinek <jakub@redhat.com>
4187
4188 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
4189 when checking if callee's isa flags are subset of caller's isa flags.
4190 Fix comment wording.
4191
4192 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
4193 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
4194 instead and using = 0 instead of &= 0.
4195
4196 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
4197 ix86_add_new_builtins): Formatting fixes.
4198 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
4199 (ix86_get_builtin): Likewise.
4200
4201 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
4202 don't initialize it, don't use it for the case where it isn't
4203 provable %{z} nor using the same argument, instead move merge
4204 argument into a new pseudo and use that as target. Formatting fixes.
4205
4206 2016-11-19 Jeff Law <law@redhat.com>
4207
4208 PR target/25111
4209 * config/m68k/m68k.md (bsetdreg): New pattern.
4210 (bchgdreg, bclrdreg): Likewise.
4211
4212 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
4213
4214 PR target/78426
4215 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
4216 instead of force_reg.
4217 (sh_expand_setmem): Likewise.
4218
4219 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
4220
4221 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
4222
4223 2016-11-18 Walter Lee <walt@tilera.com>
4224
4225 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
4226 end-of-bundle marker for consecutive barriers.
4227
4228 2016-11-18 Walter Lee <walt@tilera.com>
4229
4230 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
4231
4232 2016-11-18 Jakub Jelinek <jakub@redhat.com>
4233
4234 PR middle-end/78419
4235 * multiple_target.c (get_attr_len): Start with argnum and increment
4236 argnum on every arg. Use strchr in a loop instead of counting commas
4237 manually.
4238 (get_attr_str): Increment argnum for every comma in the string.
4239 (separate_attrs): Use for instead of while loop, simplify.
4240 (expand_target_clones): Rename defenition argument to definition.
4241 Free attrs and attr_str even when diagnosing errors. Temporarily
4242 change input_location around targetm.target_option.valid_attribute_p
4243 calls. Don't emit warning or errors if that function fails.
4244
4245 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
4246
4247 PR debug/78191
4248 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
4249 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
4250 abbrev_opt_base_type_end only by increasing die_abbrev, before
4251 any other dies.
4252 (optimize_abbrev_table): Don't change abbrev numbers of
4253 base types and CU or optimize implicit consts in them if
4254 calc_base_type_die_sizes has been called during build_abbrev_table.
4255 (calc_base_type_die_sizes): If abbrev_opt_start, set
4256 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
4257
4258 2016-11-18 Jeff Law <law@redhat.com>
4259
4260 PR target/25112
4261 * config/m68k/m68k.c (moveq feeding equality comparison): New
4262 peepholes.
4263 * config/m68k/predicates.md (addq_subq_operand): New predicate.
4264 (equality_comparison_operator): Likewise.
4265
4266 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4267
4268 * rtlanal.c (load_extend_op): Move to...
4269 * rtl.h: ...here and make inline.
4270
4271 2016-11-18 Terry Guo <terry.guo@arm.com>
4272 Thomas Preud'homme <thomas.preudhomme@arm.com>
4273
4274 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
4275 * config/arm/arm-opts.h: Include arm-flags.h.
4276 (struct arm_arch_core_flag): Define.
4277 (arm_arch_core_flags): Define.
4278 * config/arm/arm-protos.h: Include arm-flags.h
4279 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
4280 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
4281 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
4282 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
4283 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
4284 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
4285 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
4286 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
4287 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
4288 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
4289 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
4290 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
4291 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
4292 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
4293 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
4294 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
4295 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
4296 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
4297 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
4298 ARM_FSET_CPU_SUBSET): Move to ...
4299 * config/arm/arm-flags.h: This new file.
4300 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
4301 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
4302 (TARGET_MODE_SPECS): Define.
4303 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
4304
4305 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
4306
4307 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
4308 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
4309 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
4310 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
4311 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
4312 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
4313 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
4314 missing and make value unsigned.
4315 (arm_feature_set): Use unsigned entries instead of unsigned long.
4316
4317 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
4318
4319 Re-apply after PR bootstrap/77359 is fixed:
4320 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4321
4322 * explow.c (get_dynamic_stack_size): Take known alignment of stack
4323 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
4324 size needed.
4325
4326 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
4327
4328 PR bootstrap/77359
4329 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
4330 variables in functions calling alloca. Also update the ASCII
4331 drawings.
4332 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
4333 (STACK_DYNAMIC_OFFSET): Likewise.
4334 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
4335 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
4336 macros to aix.h.
4337
4338 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4339 Alan Hayward <alan.hayward@arm.com>
4340 David Sherwood <david.sherwood@arm.com>
4341
4342 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
4343 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
4344 (add_const_value_attribute): Likewise.
4345 * explow.c (plus_constant): Likewise.
4346 * expmed.c (expand_mult, make_tree): Likewise.
4347 * expr.c (convert_modes): Likewise.
4348 * loop-doloop.c (doloop_optimize): Likewise.
4349 * postreload.c (reload_cse_simplify_set): Likewise.
4350 * simplify-rtx.c (simplify_const_unary_operation): Likewise
4351 (simplify_binary_operation_1, simplify_const_binary_operation):
4352 Likewise.
4353 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
4354 * wide-int.h: Update documentation to recommend rtx_mode_t
4355 instead of std::make_pair.
4356
4357 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4358 Alan Hayward <alan.hayward@arm.com>
4359 David Sherwood <david.sherwood@arm.com>
4360
4361 * tree.h (SET_DECL_MODE): New macro.
4362 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
4363 (expand_gimple_basic_block): Likewise.
4364 * function.c (split_complex_args): Likeise.
4365 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4366 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
4367 * stor-layout.c (layout_decl, relayout_decl): Likewise.
4368 (finish_bitfield_representative): Likewise.
4369 * tree.c (make_node_stat): Likewise.
4370 * tree-inline.c (remap_ssa_name): Likewise.
4371 (tree_function_versioning): Likewise.
4372 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
4373 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
4374 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
4375 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
4376 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
4377 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
4378 * varasm.c (make_debug_expr_from_rtl): Likewise.
4379
4380 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
4381
4382 PR rtl-optimization/71785
4383 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
4384 (duplicate_computed_gotos): New function.
4385 (pass_duplicate_computed_gotos::execute): Rewrite.
4386
4387 2016-11-17 Jeff Law <law@redhat.com>
4388
4389 PR target/47192
4390 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
4391 barrier prior to deallocating the stack.
4392
4393 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
4394
4395 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
4396 to make better use of cmem loads in the case where a single bit is
4397 being accessed.
4398 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
4399
4400 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
4401
4402 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
4403 F_AVX5124FMAPS.
4404 (isa_names_table): Handle new features.
4405
4406 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
4407 Andrew Senkevich <andrew.senkevich@intel.com>
4408
4409 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
4410 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
4411 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
4412 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
4413 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
4414 * config/i386/avx5124fmapsintrin.h: New file.
4415 * config/i386/avx5124vnniwintrin.h: Ditto.
4416 * config/i386/constraints.md (h): New constraint.
4417 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
4418 * config/i386/driver-i386.c (host_detect_local_cpu):
4419 Detect avx5124fmaps, avx5124vnniw.
4420 * config/i386/i386-builtin-types.def: Add types
4421 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
4422 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
4423 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
4424 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
4425 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
4426 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
4427 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
4428 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
4429 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
4430 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
4431 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
4432 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
4433 __builtin_ia32_vp4dpwssds_mask): New.
4434 * config/i386/i386-c.c (ix86_target_macros_internal):
4435 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
4436 * config/i386/i386-modes.def: Fixed comment typos, added new
4437 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
4438 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
4439 -mavx5124vnniw.
4440 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
4441 (ix86_option_override_internal): Handle new options.
4442 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
4443 avx5124vnniw.
4444 (ix86_expand_builtin): Handle new builtins.
4445 (ix86_additional_allocno_class_p): New.
4446 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
4447 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
4448 (reg_class): Add MOD4_SSE_REGS.
4449 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
4450 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
4451 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
4452 avx5124vnniwintrin.h.
4453 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
4454 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
4455 (define_mode_iterator IMOD4): New.
4456 (define_mode_attr imod4_narrow): Ditto.
4457 (define_insn "mov<mode>"): Ditto.
4458 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
4459 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
4460 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
4461 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
4462 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
4463 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
4464 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
4465 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
4466 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
4467 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
4468 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
4469 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
4470 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
4471 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
4472 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
4473 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
4474 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
4475 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
4476 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
4477 * genmodes.c (mode_size_inline): Extend return type.
4478 * machmode.h (mode_size, mode_base_align): Extend type.
4479
4480 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
4481
4482 PR target/78101
4483 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
4484 the appropriate checks for SFmode/DFmode load/stores in GPR
4485 registers.
4486 (fusion_addis_mem_combo_store): Likewise.
4487 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
4488 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
4489 d-form instructions for traditional Altivec registers.
4490 (emit_fusion_p9_load): Likewise.
4491 (emit_fusion_p9_store): Likewise.
4492 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
4493 early clobber from scratch register. Do not match if the register
4494 being stored is the scratch register.
4495 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
4496 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
4497 instructions for traditional Altivec registers.
4498 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
4499 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4500 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4501
4502 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
4503
4504 PR target/77933
4505 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
4506 being live in the function and lr needing to be saved. Distinguish
4507 between already saved pushable registers and registers to push.
4508 Check for LR being an available pushable register.
4509
4510 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4511
4512 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
4513 string input is a string constant.
4514 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
4515 via cmpstrnsi even if neither string is constant.
4516
4517 2016-11-17 Jakub Jelinek <jakub@redhat.com>
4518
4519 PR middle-end/78201
4520 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
4521 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
4522 instead, return false if it is NULL, or doesn't fit into uhwi, or
4523 is larger or equal to targetm.max_anchor_offset.
4524
4525 2016-11-17 Pip Cet <pipcet@gmail.com>
4526 Eric Botcazou <ebotcazou@adacore.com>
4527
4528 PR rtl-optimization/78355
4529 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
4530 needs to deal with unaligned accesses.
4531 * doc/tm.texi: Regenerate.
4532 * lra-constraints.c (simplify_operand_subreg): Only invoke
4533 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
4534
4535 2016-11-17 David Malcolm <dmalcolm@redhat.com>
4536
4537 * input.c (selftest::test_lexer_string_locations_long_line): New
4538 function.
4539 (selftest::test_lexer_string_locations_raw_string_multiline): New
4540 function.
4541 (selftest::input_c_tests): Call the new functions, via
4542 for_each_line_table_case.
4543
4544 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4545
4546 * config/aarch64/aarch64.md (mov<mode>): Call
4547 aarch64_split_dimode_const_store on DImode constant stores.
4548 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
4549 New prototype.
4550 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
4551 function.
4552
4553 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4554 Richard Biener <rguenther@suse.de>
4555
4556 PR tree-optimization/77848
4557 * tree-if-conv.c (tree_if_conversion): Always version loops unless
4558 the user specified -ftree-loop-if-convert.
4559
4560 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
4561
4562 PR target/77308
4563 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
4564 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
4565 *thumb2_strd_base_neg): Recognize insn regardless of
4566 current_tune->prefer_ldrd_strd.
4567 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
4568 whenever possible.
4569
4570 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
4571
4572 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
4573 instruction type.
4574
4575 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
4576
4577 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
4578 for arcem.
4579 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
4580 * config/arc/arc-cpus.def (quarkse_em): Add.
4581 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
4582 * config/arc/arc-opts.h (FPX_QK): Define.
4583 * config/arc/arc-tables.opt: Regenerate.
4584 * config/arc/arc.c (gen_compare_reg): Change.
4585 (arc_register_move_cost): Avoid Dy,Dx moves.
4586 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
4587 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
4588 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
4589 New expands.
4590 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
4591 (fix_truncsfsi2_fpu): Rename.
4592 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
4593 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
4594 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
4595 * config/arc/t-multilib: Regenerate.
4596
4597 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
4598
4599 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
4600 appropriate.
4601 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
4602 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
4603 (avr_rtx_costs_1, extra_constraint_Q): Same.
4604 (avr_address_cost): Use SUBREG_P if possible.
4605
4606 2016-11-17 Richard Biener <rguenther@suse.de>
4607
4608 PR middle-end/78383
4609 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
4610 non-local goto into CFG.
4611
4612 2016-11-17 Richard Biener <rguenther@suse.de>
4613
4614 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
4615 backward compatibility.
4616 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
4617 * tree-if-conv.c (pass_if_conversion::gate): Do not test
4618 flag_tree_loop_if_convert_stores.
4619 (pass_if_conversion::execute): Likewise.
4620
4621 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4622
4623 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
4624 const_double code before calling aarch64_float_const_zero_rtx_p.
4625
4626 2016-11-17 Richard Biener <rguenther@suse.de>
4627
4628 PR tree-optimization/78306
4629 * ipa-inline-analysis.c (initialize_inline_failed): Do not
4630 inhibit inlining if function calls cilk_spawn.
4631 (can_inline_edge_p): Likewise.
4632
4633 2016-11-17 Richard Biener <rguenther@suse.de>
4634
4635 PR middle-end/78305
4636 * fold-const.c (negate_expr_p): Fix multiplication case.
4637
4638 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
4639
4640 PR target/78357
4641 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
4642 condition.
4643 (TARGET_INIT_LIBFUNCS): Delete definition and...
4644 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
4645 comments.
4646
4647 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
4648
4649 * config/netbsd-stdint.h: New.
4650 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
4651 (x86_64-*-netbsd*): Likewise.
4652
4653 2016-11-16 Andrew PInski <apinski@cavium.com>
4654
4655 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
4656 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
4657 flag_aarch64_verbose_cost instead of checking for details dump.
4658 (aarch64_rtx_costs_wrapper): Likewise.
4659
4660 2016-11-16 Jakub Jelinek <jakub@redhat.com>
4661
4662 PR rtl-optimization/78378
4663 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
4664 inner only if pos is 0. Fix up formatting.
4665
4666 2016-11-17 Alan Modra <amodra@gmail.com>
4667
4668 PR rtl-optimization/78325
4669 PR rtl-optimization/70890
4670 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
4671 for dead regno.
4672
4673 2016-11-16 Jason Merrill <jason@redhat.com>
4674
4675 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
4676
4677 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4678 Richard Biener <rguenther@suse.de>
4679
4680 PR tree-optimization/77848
4681 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
4682 an outer loop, only save basic block aux information for the inner
4683 loop.
4684 (versionable_outer_loop_p): New function.
4685 (tree_if_conversion): Version the outer loop instead of the inner
4686 one if the pattern will be recognized for outer-loop
4687 vectorization.
4688
4689 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
4690
4691 * gcc/bb-reorder.c: Remove 'toplev.h' include.
4692 (pass_partition_blocks::gate): No longer check
4693 user_defined_section_attribute, instead check the function decl
4694 for a section attribute.
4695 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
4696 set user_defined_section_attribute.
4697 * gcc/final.c (rest_of_handle_final): Likewise.
4698 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
4699 * gcc/toplev.h: Remove declaration of
4700 user_defined_section_attribute.
4701
4702 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4703
4704 * config/mips/mips.md (casesi_internal_mips16_<mode>):
4705 Explicitly switch between JR and JRC for the table jump. Adjust
4706 instruction count.
4707
4708 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4709
4710 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
4711 `insn_count' to 11 rather than 16.
4712
4713 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4714
4715 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
4716 `ltu' rather than `leu' operation in the RTL pattern
4717
4718 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4719
4720 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
4721 missing <d> instruction prefixes throughout. Correct
4722 formatting.
4723
4724 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4725
4726 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
4727 rather than R_MIPS_JALR relocation in microMIPS code. Do not
4728 cancel short delay slots in PIC call relaxation.
4729
4730 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
4731
4732 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
4733 general register with general register or ARM constant into SP
4734 register.
4735
4736 2016-11-16 Jakub Jelinek <jakub@redhat.com>
4737
4738 PR fortran/78299
4739 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
4740 that loop->header == body_bb if broken_loop.
4741
4742 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
4743
4744 * tree-ssa-math-opts.c (bswap_replace): Remove test
4745 of SLOW_UNALIGNED_ACCESS.
4746
4747 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
4748
4749 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
4750 is selected. Pass -mgomp to offload compiler in OpenMP case.
4751 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
4752 declaration from nvptx.c.
4753 (nvptx_gen_shuffle): Declare.
4754 (nvptx_output_set_softstack): Declare.
4755 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
4756 (need_softstack_decl): New variable.
4757 (need_unisimt_decl): New variable.
4758 (diagnose_openacc_conflict): New. Use it...
4759 (nvptx_option_override): ...here. Handle TARGET_GOMP.
4760 (nvptx_encode_section_info): Handle "shared" attribute.
4761 (write_as_kernel): Restrict to OpenACC target regions.
4762 (init_softstack_frame): New.
4763 (nvptx_init_unisimt_predicate): New.
4764 (write_omp_entry): New. Use it...
4765 (nvptx_declare_function_name): ...here to emit OpenMP target region
4766 entrypoints. Handle TARGET_SOFT_STACK. Call
4767 nvptx_init_unisimt_predicate.
4768 (nvptx_output_set_softstack): New.
4769 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
4770 (nvptx_gen_shuffle): Export.
4771 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
4772 predicate.
4773 (nvptx_print_operand): Fix handling of instruction predicates.
4774 (nvptx_get_unisimt_master): New helper function.
4775 (nvptx_get_unisimt_predicate): Ditto.
4776 (nvptx_call_insn_is_syscall_p): Ditto.
4777 (nvptx_unisimt_handle_set): Ditto.
4778 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
4779 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
4780 (nvptx_handle_shared_attribute): New. Use it...
4781 (nvptx_attribute_table): ... here (new entry).
4782 (nvptx_record_offload_symbol): Handle NULL attributes.
4783 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
4784 (nvptx_simt_vf): New.
4785 (TARGET_SIMT_VF): Define.
4786 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
4787 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
4788 -muniform-simt option is active.
4789 (STACK_SIZE_MODE): Define.
4790 (FIXED_REGISTERS): Adjust.
4791 (SOFTSTACK_SLOT_REGNUM): New.
4792 (SOFTSTACK_PREV_REGNUM): New.
4793 (REGISTER_NAMES): Adjust.
4794 (struct machine_function): New fields.
4795 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
4796 (UNSPEC_VOTE_BALLOT): Ditto.
4797 (UNSPEC_LANEID): Ditto.
4798 (UNSPECV_NOUNROLL): Ditto.
4799 (atomic): New attribute.
4800 (predicable): New attribute. Generate predicated forms via
4801 define_cond_exec.
4802 (br_true): Mark as not predicable.
4803 (br_false): Ditto.
4804 (br_true_uni): Ditto.
4805 (br_false_uni): Ditto.
4806 (return): Ditto.
4807 (trap_if_true): Ditto.
4808 (trap_if_false): Ditto.
4809 (nvptx_fork): Ditto.
4810 (nvptx_forked): Ditto.
4811 (nvptx_joining): Ditto.
4812 (nvptx_join): Ditto.
4813 (nvptx_barsync): Ditto.
4814 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
4815 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
4816 (allocate_stack_<mode>): Remove unused pattern.
4817 (set_softstack_insn): New pattern.
4818 (restore_stack_block): Handle for TARGET_SOFT_STACK.
4819 (nvptx_vote_ballot): New pattern.
4820 (omp_simt_lane): Ditto.
4821 (omp_simt_last_lane): Ditto.
4822 (omp_simt_ordered): Ditto.
4823 (omp_simt_vote_any): Ditto.
4824 (omp_simt_xchg_bfly): Ditto.
4825 (omp_simt_xchg_idx): Ditto.
4826 (nvptx_nounroll): Ditto.
4827 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
4828 (atomic_exchange<mode>): Ditto.
4829 (atomic_fetch_add<mode>): Ditto.
4830 (atomic_fetch_addsf): Ditto.
4831 (atomic_fetch_<logic><mode>): Ditto.
4832 * config/nvptx/nvptx.opt (msoft-stack): New option.
4833 (muniform-simt): Ditto.
4834 (mgomp): Ditto.
4835 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
4836 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
4837 * doc/invoke.texi (msoft-stack): Document.
4838 (muniform-simt): Document
4839 (mgomp): Document.
4840 * doc/tm.texi: Regenerate.
4841 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
4842 * target.def: Define it.
4843 * target-insns.def (omp_simt_lane): New.
4844 (omp_simt_last_lane): New.
4845 (omp_simt_ordered): New.
4846 (omp_simt_vote_any): New.
4847 (omp_simt_xchg_bfly): New.
4848 (omp_simt_xchg_idx): New.
4849
4850 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4851
4852 * config/mips/mips-protos.h (mips_set_text_contents_type): New
4853 prototype.
4854 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
4855 (ASM_OUTPUT_CASE_END): Likewise.
4856 * config/mips/mips.c (mips_set_text_contents_type): New function.
4857 (mips16_emit_constants): Record the pool's initial label number
4858 with the `consttable' insn. Emit a `consttable_end' insn at the end.
4859 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
4860 for `consttable' insns.
4861 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
4862 for `consttable_end' insns.
4863 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
4864 (consttable): Add operand.
4865 (consttable_end): New insn.
4866
4867 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
4868
4869 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
4870 * tree-if-conv.c (tree_if_conversion): Make public.
4871 * * tree-if-conv.h: New file.
4872 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
4873 dynamic alias checks for epilogues.
4874 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
4875 * tree-vect-loop.c: include tree-if-conv.h.
4876 (new_loop_vec_info): Add zeroing orig_loop_info field.
4877 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
4878 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
4879 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
4880 using passed argument.
4881 (vect_transform_loop): Check if created epilogue should be returned
4882 for further vectorization with less vf. If-convert epilogue if
4883 required. Print vectorization success for epilogue.
4884 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
4885 if it is required, pass loop_vinfo produced during vectorization of
4886 loop body to vect_analyze_loop.
4887 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4888 orig_loop_info.
4889 (LOOP_VINFO_ORIG_LOOP_INFO): New.
4890 (LOOP_VINFO_EPILOGUE_P): New.
4891 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
4892 (vect_do_peeling): Change prototype to return epilogue.
4893 (vect_analyze_loop): Add argument of loop_vec_info type.
4894 (vect_transform_loop): Return created loop.
4895
4896 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
4897
4898 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
4899 component as used also if LR_REGNO is a live input to the bb.
4900 * df-scan.c (df_get_entry_block_def_set): Return immediately after
4901 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
4902 (df_get_exit_block_use_set): Ditto.
4903 * df.h (df_scan_flags): New enum.
4904 * shrink-wrap.c (try_shrink_wrapping_separate): Set
4905 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
4906 df_update_entry_block_defs and df_update_exit_block_uses
4907 at the start; clear the flag and call those functions at the end.
4908
4909 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4910 Alan Hayward <alan.hayward@arm.com>
4911 David Sherwood <david.sherwood@arm.com>
4912
4913 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
4914 nb_iterations to the number of latch iterations rather than the
4915 number of loop iterations.
4916
4917 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4918 Alan Hayward <alan.hayward@arm.com>
4919 David Sherwood <david.sherwood@arm.com>
4920
4921 * combine.c (maybe_swap_commutative_operands): New function.
4922 (combine_simplify_rtx): Use it.
4923 (change_zero_ext): Likewise.
4924 (make_compound_operation_int): New function, split out of...
4925 (make_compound_operation): ...here. Use
4926 maybe_swap_commutative_operands for both.
4927
4928 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
4929
4930 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
4931 (neon-vfpv3): New FPU, currently an alias for 'neon'.
4932 * arm/arm-tables.opt: Regenerated.
4933 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
4934 neon-vfpv3.
4935 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
4936 and 'neon' are aliases for specific implementations.
4937
4938 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4939 Alan Hayward <alan.hayward@arm.com>
4940 David Sherwood <david.sherwood@arm.com>
4941
4942 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
4943 and use it in the final call to gen_rtx_fmt_ee.
4944 (expand_vec_cond_expr): Update accordingly.
4945 (expand_vec_cmp_expr): Likewise.
4946
4947 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4948 Alan Hayward <alan.hayward@arm.com>
4949 David Sherwood <david.sherwood@arm.com>
4950
4951 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
4952
4953 2016-11-16 Richard Biener <rguenther@suse.de>
4954
4955 PR middle-end/78333
4956 * gimplify.c (gimplify_function_tree): Do not instrument
4957 GNU extern inline functions.
4958
4959 2016-11-16 Martin Liska <mliska@suse.cz>
4960
4961 PR sanitizer/78270
4962 * gimplify.c (gimplify_switch_expr): Always save previous
4963 gimplify_ctxp->live_switch_vars.
4964
4965 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
4966
4967 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
4968 zero_extract operations to allow a movb to occur.
4969 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
4970 * testsuite/gcc.target/arc/movb-2.c: Likewise.
4971 * testsuite/gcc.target/arc/movb-5.c: Likewise.
4972 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
4973 little endian arc.
4974
4975 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4976 Alan Hayward <alan.hayward@arm.com>
4977 David Sherwood <david.sherwood@arm.com>
4978
4979 * expr.c (emit_group_load_1): Tighten check for whether an
4980 access involves only one operand of a CONCAT. Use extract_bit_field
4981 for constants if the bit range does span the whole operand.
4982
4983 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4984 Alan Hayward <alan.hayward@arm.com>
4985 David Sherwood <david.sherwood@arm.com>
4986
4987 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
4988
4989 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4990 Alan Hayward <alan.hayward@arm.com>
4991 David Sherwood <david.sherwood@arm.com>
4992
4993 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
4994 all three iteration counts with an any_* test. Use a single update
4995 for each count. Fix the calculation of nb_iterations_estimate.
4996
4997 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4998
4999 * config/pdp11/pdp11.c: Include dbxout.h.
5000
5001 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5002
5003 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
5004
5005 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5006
5007 PR target/78364
5008 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
5009 proper ranges for an SBFX instruction.
5010 (extzv_t2): Likewise for UBFX.
5011
5012 2016-11-16 Richard Biener <rguenther@suse.de>
5013
5014 PR tree-optimization/78348
5015 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
5016 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
5017 (classify_partition): Set PKIND_MEMCPY if dependence analysis
5018 revealed no dependency, PKIND_MEMMOVE otherwise.
5019
5020 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5021
5022 PR sanitizer/77823
5023 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
5024 it points to non-NULL tree, use it instead of ubsan_create_data.
5025 (instrument_si_overflow): Handle vector signed integer overflow
5026 checking.
5027 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
5028 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
5029 vector IFN_UBSAN_CHECK_*.
5030 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
5031 pass it through to ubsan_build_overflow_builtin.
5032 (expand_neg_overflow, expand_mul_overflow): Likewise.
5033 (expand_vector_ubsan_overflow): New function.
5034 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
5035 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
5036 (expand_arith_overflow): Adjust expand_*_overflow callers.
5037
5038 2016-11-16 Matthias Klose <doko@ubuntu.com>
5039
5040 * doc/install.texi: Remove references to java/libjava.
5041
5042 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
5043
5044 * tree-ssa-coalesce.c (register_default_def): Remove
5045 register_ssa_partition.
5046 (create_outofssa_var_map): Likewise.
5047 * tree-ssa-live.c (register_ssa_partition_check): Remove.
5048 * tree-ssa-live.h (register_ssa_partition): Likewise.
5049
5050 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
5051
5052 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
5053 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
5054 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
5055 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
5056 rtx when all sub-rtx are also permanent.
5057 (attr_eq): Simplify.
5058 (attr_copy_rtx): Remove.
5059 (make_canonical, get_attr_value): Use attr_equal_p.
5060 (copy_boolean): Rehash NOT.
5061 (simplify_test_exp_in_temp,
5062 optimize_attrs): Remove call to attr_copy_rtx.
5063 (attr_alt_intersection, attr_alt_union,
5064 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
5065 (make_automaton_attrs): Use attr_eq.
5066
5067 2016-11-15 Matthias Klose <doko@ubuntu.com>
5068
5069 * doc/install.texi: Remove references to java/libjava.
5070 * doc/sourcebuild.texi: Likewise.
5071 * doc/invoke.texi: Likewise.
5072 * doc/standards.texi: Likewise.
5073
5074 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5075 Alan Hayward <alan.hayward@arm.com>
5076 David Sherwood <david.sherwood@arm.com>
5077
5078 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
5079 of VOIDmode.
5080 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5081 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5082 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5083 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5084 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5085 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5086 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5087
5088 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5089 Alan Hayward <alan.hayward@arm.com>
5090 David Sherwood <david.sherwood@arm.com>
5091
5092 * dce.c (check_argument_store): Pass the size instead of
5093 the memory reference.
5094 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
5095
5096 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5097 Alan Hayward <alan.hayward@arm.com>
5098 David Sherwood <david.sherwood@arm.com>
5099
5100 * alias.c (canon_rtx): Use simplify_gen_binary.
5101
5102 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5103 Alan Hayward <alan.hayward@arm.com>
5104 David Sherwood <david.sherwood@arm.com>
5105
5106 * rtl.h (load_extend_op): Declare.
5107 * rtlanal.c (load_extend_op): New function.
5108 (nonzero_bits1): Use it.
5109 (num_sign_bit_copies1): Likewise.
5110 * cse.c (cse_insn): Likewise.
5111 * fold-const.c (fold_single_bit_test): Likewise.
5112 (fold_unary_loc): Likewise.
5113 * fwprop.c (free_load_extend): Likewise.
5114 * postreload.c (reload_cse_simplify_set): Likewise.
5115 (reload_cse_simplify_operands): Likewise.
5116 * combine.c (try_combine): Likewise.
5117 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
5118 subreg_lowpart_p checks.
5119
5120 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5121 Alan Hayward <alan.hayward@arm.com>
5122 David Sherwood <david.sherwood@arm.com>
5123
5124 * combine.c (simplify_shift_const_1): Use the number of bits
5125 in the inner mode to determine the range of the shift.
5126 When handling shifts of vectors, skip any rules that apply
5127 only to scalars.
5128
5129 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5130 Alan Hayward <alan.hayward@arm.com>
5131 David Sherwood <david.sherwood@arm.com>
5132
5133 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
5134 handling VOIDmode.
5135
5136 2016-11-15 Matthias Klose <doko@ubuntu.com>
5137
5138 * doc/install.texi: Remove references to gcj/libjava.
5139 * doc/invoke.texi: Likewise.
5140
5141 2016-11-15 Jeff Law <law@redhat.com>
5142
5143 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
5144 parameter. Callers changed.
5145 (check-subpath_and_update_thread_path): Extracted from
5146 fsm_find_control_statement_thread_paths.
5147 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
5148 (handle_phi, handle_assignment): Allow any constant node, not
5149 just INTEGER_CST.
5150
5151 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
5152
5153 * config/arc/arc-arch.h: New file.
5154 * config/arc/arc-arches.def: Likewise.
5155 * config/arc/arc-cpus.def: Likewise.
5156 * config/arc/arc-options.def: Likewise.
5157 * config/arc/t-multilib: Likewise.
5158 * config/arc/genmultilib.awk: Likewise.
5159 * config/arc/genoptions.awk: Likewise.
5160 * config/arc/arc-tables.opt: Likewise.
5161 * config/arc/driver-arc.c: Likewise.
5162 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
5163 * common/config/arc/arc-common.c (arc_handle_option): Trace
5164 toggled options.
5165 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
5166 options; check for supported cpu against arc-cpus.def file.
5167 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
5168 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
5169 * config/arc/arc-c.def: Add emacs local variables.
5170 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
5171 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
5172 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
5173 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
5174 (DEFAULT_arc_fpu_build): Define.
5175 (DEFAULT_arc_mpy_option): Define.
5176 * config/arc/arc-protos.h (arc_init): Delete.
5177 * config/arc/arc.c (arc_cpu_name): New variable.
5178 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
5179 (arc_arc700, arc_arc600, arc_arc601): New variable.
5180 (arc_init): Add static; remove selection of default tune value,
5181 cleanup obsolete error messages.
5182 (arc_override_options): Make use of .def files for selecting the
5183 right cpu and option configurations.
5184 * config/arc/arc.h (stdbool.h): Include.
5185 (TARGET_CPU_DEFAULT): Define.
5186 (CPP_SPEC): Remove mcpu=NPS400 handling.
5187 (arc_cpu_to_as): Declare.
5188 (EXTRA_SPEC_FUNCTIONS): Define.
5189 (OPTION_DEFAULT_SPECS): Likewise.
5190 (ASM_DEFAULT): Remove.
5191 (ASM_SPEC): Use arc_cpu_to_as.
5192 (DRIVER_SELF_SPECS): Remove deprecated options.
5193 (arc_base_cpu): Declare.
5194 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
5195 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
5196 variable.
5197 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
5198 * config/arc/arc.md (attr_cpu): Remove.
5199 * config/arc/arc.opt (mno-mpy): Deprecate.
5200 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
5201 (mcpu=ARCHS): Remove.
5202 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
5203 Deprecate.
5204 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
5205 (arc_fpu): Use new defines.
5206 (mpy-option): Change to use numeric or string like inputs.
5207 * config/arc/t-arc (driver-arc.o): New target.
5208 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
5209 * config/arc/t-arc-newlib: Delete.
5210 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
5211 * doc/invoke.texi (ARC): Update arc options.
5212
5213 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
5214
5215 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
5216 insn at the beginning of the constant pool.
5217 (mips_insert_insn_pseudos): New function.
5218 (mips_machine_reorg2): Call it.
5219 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
5220 UNSPEC_INSN_PSEUDO enum values.
5221 (insn_pseudo, consttable): New insns.
5222
5223 2016-11-15 Michael Matz <matz@suse.de>
5224
5225 PR missed-optimization/77881
5226 * combine.c (simplify_comparison): Remove useless subregs
5227 also inside the loop, not just after it.
5228 (make_compound_operation): Recognize some subregs as being
5229 masking as well.
5230
5231 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5232 Alan Hayward <alan.hayward@arm.com>
5233 David Sherwood <david.sherwood@arm.com>
5234
5235 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
5236 GET_MODE_SIZE typo.
5237
5238 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5239
5240 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
5241 for using xxinsertw and vinsert{b,h} on ISA 3.0.
5242
5243 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
5244 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
5245 vinsert{b,h} on ISA 3.0.
5246
5247 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
5248
5249 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
5250 and cmpnop in two steps: first the ones not accessed in original gimple
5251 expression in a endian independent way and then the ones not accessed
5252 in the final result in an endian-specific way.
5253 (bswap_replace): Stop doing big endian adjustment.
5254
5255 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
5256
5257 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
5258 (*ashl<mode>3_doubleword): Ditto.
5259
5260 2016-11-14 Martin Liska <mliska@suse.cz>
5261
5262 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
5263
5264 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
5265 Richard Biener <rguenther@suse.de>
5266
5267 * doc/invoke.texi (fgimple): Document.
5268 * dumpfile.h (TDF_GIMPLE): Add.
5269 * dumpfile.c (dump_options): Add gimple.
5270 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
5271 for TDF_GIMPLE.
5272 (dump_gimple_label): Likewise.
5273 (dump_gimple_phi): Likewise.
5274 (dump_gimple_bb_header): Likewise.
5275 (dump_phi_nodes): Likewise.
5276 (pp_cfg_jump): Likewise. Pass in dump flags.
5277 (dump_implicit_edges): Adjust.
5278 * passes.c (pass_init_dump_file): Do not dump function header
5279 for TDF_GIMPLE.
5280 * tree-cfg.c (dump_function_to_file): Dump function return type
5281 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
5282 GIMPLE stmts.
5283 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
5284 (dump_generic_node): Likewise.
5285 * function.h (struct function): Add pass_startwith member.
5286 * passes.c (execute_one_pass): Implement startwith.
5287 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
5288 and assign proper version for parsed ssa names.
5289 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
5290 * internal-fn.c (expand_PHI): New function.
5291 * internal-fn.h (expand_PHI): Declared here.
5292 * internal-fn.def: New defination for PHI.
5293 * tree-cfg.c (lower_phi_internal_fn): New function.
5294 (build_gimple_cfg): Call it.
5295 (verify_gimple_call): Condition for passing label as arg in internal
5296 function PHI.
5297 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
5298 present PHIs with arguments.
5299
5300 2016-11-14 Martin Liska <mliska@suse.cz>
5301
5302 PR bootstrap/78069
5303 * common.opt: Add prefer-atomic as a new enum value for
5304 -fprofile-update.
5305 * coretypes.h: Likewise.
5306 * doc/invoke.texi: Document the new option value.
5307 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
5308 * tree-profile.c (tree_profiling): Select default value
5309 of -fprofile-update when 'prefer-atomic' is selected.
5310
5311 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5312
5313 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
5314 (cortex_a57_alu_shift): ...here.
5315
5316 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5317
5318 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
5319 Use bfx attribute.
5320 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
5321 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5322 (<optab>si3_insn_uxtw): Likewise.
5323 (<optab><mode>3_insn): Likewise.
5324 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
5325 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
5326 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
5327 (<optab><mode>): Likewise.
5328 (insv<mode>): Likewise.
5329 (andim_ashift<mode>_bfiz): Likewise.
5330 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
5331 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
5332 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
5333 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
5334 (exynos_m1_alu_p): Likewise.
5335 * config/arm/types.md: Add bfx.
5336 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
5337
5338 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5339
5340 * config/aarch64/aarch64.c (cortexa57_vector_cost):
5341 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
5342
5343 2016-11-14 Richard Biener <rguenther@suse.de>
5344
5345 PR tree-optimization/78312
5346 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
5347 flow-sensitive info.
5348
5349 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
5350
5351 PR target/78093
5352 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
5353 * config/avr/avr.opt (-mabsdata): New option.
5354 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
5355 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
5356 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
5357 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
5358 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
5359 spec depending on AVR_ISA_LDS.
5360 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
5361
5362 2016-11-13 Jakub Jelinek <jakub@redhat.com>
5363
5364 * match.pd: Don't try to compare addresses of variables with
5365 DECL_VALUE_EXPR.
5366
5367 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
5368
5369 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
5370 (propagate_vr_accross_jump_function): Handle unary expressions.
5371 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5372 (load_from_param_1): New.
5373 (load_from_unmodified_param): Factor common part into load_from_param_1.
5374 (load_from_param): New.
5375 (compute_complex_assign_jump_func): Handle unary expressions.
5376 (update_jump_functions_after_inlining): Likewise.
5377 (ipa_write_jump_function): Likewise.
5378 (ipa_read_jump_function): Likewise.
5379
5380 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5381
5382 PR c/35503
5383 * doc/invoke.texi: Document Wrestrict.
5384 * pretty-print.c (pp_format): Add case for "Z" specifier.
5385 (test_pp_format): Test "Z" specifier.
5386
5387 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
5388
5389 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
5390 original function needs a static chain.
5391
5392 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
5393
5394 PR target/78336
5395 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
5396 ASM_OUTPUT_DEF.
5397
5398 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
5399
5400 PR target/77957
5401 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
5402 return early if !optional_tbtab.
5403
5404 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
5405
5406 PR rtl-optimization/59461
5407 * doc/rtl.texi (paradoxical subregs): Add missing word.
5408 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
5409 in modes with precision larger than that of last_set_mode.
5410 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
5411 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
5412 REGs to paradoxical SUBREGs.
5413 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
5414 larger than a word before invoking LOAD_EXTEND_OP on it.
5415
5416 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5417
5418 PR target/78243
5419 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
5420 element order for little endian ordering.
5421
5422 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
5423 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
5424 number.
5425
5426 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
5427
5428 PR target/78310
5429 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
5430 when calculating operand 2.
5431 (rotate to rotatex zext splitter): Ditto.
5432
5433 2016-11-11 Jeff Law <law@redhat.com>
5434
5435 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
5436 function.
5437 (stmt_uses_name_in_undefined_way): New function, extracted from
5438 find_implicit_erroneous_behavior and extended for div/mod case.
5439 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
5440 find_explicit_erroneous_behavior and extended for div/mod case.
5441 (find_implicit_erroneous_behavior): Use new helper function.
5442 (find_explicit_erroneous_behavior): Use new helper function.
5443
5444 2016-11-11 Richard Biener <rguenther@suse.de>
5445
5446 PR tree-optimization/71575
5447 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
5448 bogus assert.
5449
5450 2016-11-11 Richard Biener <rguenther@suse.de>
5451
5452 PR middle-end/78295
5453 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
5454 about uninitialized destination arg of BIT_INSERT_EXPR.
5455
5456 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
5457
5458 PR c/37998
5459 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
5460 terminology. Expand to remove ambiguity.
5461
5462 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5463
5464 PR rtl-optimization/78232
5465 * combine.c (try_combine): Add a big comment about why reusing i2dest
5466 is undesirable.
5467 (change_zero_ext): Do not call simplify_gen_binary, do the
5468 simplifications manually.
5469
5470 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5471
5472 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
5473 enable HImode and QImode to go in vector registers by default if
5474 the -mvsx-small-integer option is enabled.
5475 (rs6000_secondary_reload_simple_move): Likewise.
5476 (rs6000_preferred_reload_class): Don't force integer constants to
5477 be loaded into vector registers that we can easily make into
5478 memory (or being created in the GPRs and moved over with direct move).
5479 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
5480 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
5481 vector extraction on ISA 3.0 when the scalar integer can be
5482 allocated in vector registers. Generate the VEC_SELECT directy,
5483 and don't use UNSPEC's to avoid having the scalar type in a vector
5484 register. Make the expander target registers, and let the
5485 combiner fold in results storing to memory, if the machine
5486 supports stores.
5487 (vsx_extract_<mode>_di): Likewise.
5488 (vsx_extract_<mode>_p9): Likewise.
5489 (vsx_extract_<mode>_di_p9): Likewise.
5490 (vsx_extract_<mode>_store_p9): Likewise.
5491 (vsx_extract_si): Likewise.
5492 (vsx_extract_<mode>_p8): Likewise.
5493 (p9_lxsi<wd>zx): Delete, no longer used.
5494 (p9_stxsi<wd>x): Likewise.
5495 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
5496 integers in vector registers for ISA 3.0.
5497 (QHI): Update comment.
5498 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
5499 vector extract instructions in sign/zero extend.
5500 (zero_extendhi<mode>): Likewise.
5501 (extendqi<mode>): Likewise.
5502 (extendhi<mode>2): Likewise.
5503 (HImode splitter for load/sign extend in vector register): Likewise.
5504 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
5505 optimizing floating point conversions to/from small data types and
5506 rewrite it to support QImode/HImode being allowed in vector
5507 registers on ISA 3.0.
5508 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
5509 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
5510 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
5511 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
5512 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
5513 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
5514 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
5515 VSPLITISW on ISA 2.07.
5516 (movhi_internal): Combine movhi_internal and movqi_internal into
5517 one mov<mode>_internal with an iterator. Add support for QImode
5518 and HImode being allowed in vector registers. Make large number
5519 of attributes and constraints easier to read.
5520 (movqi_internal): Likewise.
5521 (mov<mode>_internal): Likewise.
5522 (movdi_internal64): Fix constraint to allow loading -16..15 with
5523 VSPLITISW on ISA 2.07.
5524 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
5525 well as DImode.
5526
5527 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
5528
5529 PR rtl-optimization/78241
5530 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
5531 but emit initial peel copy if niter expr is not reliable.
5532
5533 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5534
5535 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
5536 (maybe_record_trace_start): If the CFI is different on the new and
5537 old paths, print out both to the dump file before ICEing.
5538
5539 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
5540
5541 * target.def (additional_allocno_class_p): New.
5542 * hooks.h (hook_bool_reg_class_t_false): New prototype.
5543 * hooks.c (hook_bool_reg_class_t_false): New.
5544 * ira.c (setup_allocno_and_important_classes): Use the new hook.
5545 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
5546 * doc/tm.texi: Update.
5547
5548 2016-11-10 Jason Merrill <jason@redhat.com>
5549
5550 * gengtype.c (new_structure): Append to structures list.
5551 (find_structure): Likewise.
5552
5553 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
5554
5555 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
5556 this_dir is 2. Check for this_dir non-zero before dir != this_dir
5557 check.
5558
5559 2016-11-10 Jakub Jelinek <jakub@redhat.com>
5560
5561 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
5562 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
5563 TRUNC_DIV_EXPR.
5564 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
5565 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
5566 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
5567 teams distribute parallel for simd even to distribute and teams
5568 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
5569 OMP_CLAUSE_DEPEND_SINK case.
5570 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
5571 (omp_no_lastprivate): Removed.
5572 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
5573 (gimplify_omp_for): Likewise.
5574 (computable_teams_clause): Fail for automatic vars from current
5575 function not yet seen in bind expr.
5576 * langhooks.c (lhd_omp_scalar_p): New function.
5577 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
5578 * varpool.c (varpool_node::get_create): Set node->offloading
5579 even for DECL_EXTERNAL decls.
5580 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
5581 (LANG_HOOKS_OMP_SCALAR_P): Define.
5582 (LANG_HOOKS_DECLS): Use it.
5583
5584 2016-11-10 Martin Liska <mliska@suse.cz>
5585
5586 PR sanitizer/78270
5587 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
5588 only when SWITCH_BODY is a BIND_EXPR.
5589
5590 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
5591
5592 PR debug/78112
5593 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
5594 on the context only when it has no DIE yet.
5595
5596 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
5597
5598 * arm.h (target_cpus): Delete.
5599 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
5600 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
5601 (all_architectures): Likewise.
5602 (arm_option_override): Adjust use of CPU enums.
5603 (arm_sched_reorder): Likewise.
5604 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
5605 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
5606 * arm/genopt.sh (processor_type): Prefix enumeration entries with
5607 TARGET_CPU_.
5608 * arm-tables.opt: Regenerated.
5609
5610 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
5611
5612 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
5613 (falkor): New core.
5614 * config/aarch64/aarch64-tune.md: Regenerated.
5615 * config/arm/arm-cores.def (falkor): New core.
5616 * config/arm/arm-tables.opt: Regenerated.
5617 * config/arm/arm-tune.md: Regenerated.
5618 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
5619 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
5620 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
5621 (ARM Options/-mtune): Likewise.
5622
5623 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
5624
5625 Revert
5626 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
5627
5628 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
5629 (propagate_vr_accross_jump_function): Likewise.
5630 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5631 (load_from_param_1): New.
5632 (load_from_unmodified_param): Factor common part into load_from_param_1.
5633 (load_from_param): New.
5634 (compute_complex_assign_jump_func): Handle unary expressions.
5635 (ipa_write_jump_function): Likewise.
5636 (ipa_read_jump_function): Likewise.
5637
5638 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
5639
5640 * simplify-rtx.c (simplify_binary_operation_1): Simplify
5641 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
5642 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
5643 is a const_int.
5644
5645 2016-11-09 David Malcolm <dmalcolm@redhat.com>
5646
5647 * print-rtl-function.c: Include varasm.h.
5648 (print_any_param_name): New function.
5649 (print_param): New function.
5650 (print_rtx_function): Call print_param for each argument.
5651 * print-rtl.c (rtx_writer::finish_directive): New function.
5652 * print-rtl.h (rtx_writer::finish_directive): New decl.
5653
5654 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
5655
5656 PR target/78262
5657 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
5658 operand 0 as earlyclobber.
5659 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
5660
5661 2016-11-09 Martin Liska <mliska@suse.cz>
5662
5663 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
5664
5665 2016-11-09 Jakub Jelinek <jakub@redhat.com>
5666
5667 PR target/77718
5668 * builtins.c (expand_builtin_memcmp): Formatting fix.
5669
5670 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
5671 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
5672 or of them, renumber other enumerators.
5673 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
5674 * doc/invoke.texi: Document -fsanitize=shift-base and
5675 -fsanitize-shift-exponent, document -fsanitize=shift as
5676 having those 2 suboptions.
5677
5678 2016-11-09 Richard Biener <rguenther@suse.de>
5679
5680 * fold-const.c (tree_swap_operands_p): Remove unused arg.
5681 * fold-const.c (tree_swap_operands_p): Likewise.
5682 (fold_binary_loc): Adjust.
5683 (fold_ternary_loc): Likewise.
5684 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
5685 * gimple-fold.c (fold_stmt_1): Likewise.
5686 * gimple-match-head.c (gimple_resimplify2): Likewise.
5687 (gimple_resimplify3): Likewise.
5688 (gimple_simplify): Likewise.
5689 * tree-ssa-dom.c (record_equality): Likewise.
5690 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
5691 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
5692 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
5693
5694 2016-11-09 Richard Biener <rguenther@suse.de>
5695
5696 * tree-ssa-dom.c (canonicalize_comparison): Remove.
5697 (optimize_stmt): Remove redundant pre-propagation canonicalization
5698 of comparison operand order.
5699
5700 2016-11-09 Martin Liska <mliska@suse.cz>
5701
5702 * fold-const-call.c (fold_const_call): Fix the folding.
5703
5704 2016-11-09 Richard Biener <rguenther@suse.de>
5705
5706 * common.opt (flag_evaluation_order): Remove.
5707 * expr.c (expand_operands): Remove code guarded by
5708 flag_evaluation_order.
5709 * fold-const.c (reorder_operands_p): Remove, it always returns
5710 true.
5711 (negate_expr_p): Remove calls to reorder_operands_p.
5712 (fold_negate_expr): Likewise.
5713 (tree_swap_operands_p): Likewise.
5714 (fold_binary_loc): Likewise.
5715
5716 2016-11-09 Andreas Schwab <schwab@suse.de>
5717
5718 PR target/78254
5719 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
5720 insns operating on a register.
5721
5722 2016-11-09 Richard Biener <rguenther@suse.de>
5723
5724 PR tree-optimization/78007
5725 * tree-vect-stmts.c (vectorizable_bswap): New function.
5726 (vectorizable_call): Call vectorizable_bswap for
5727 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
5728
5729 2016-11-09 Richard Biener <rguenther@suse.de>
5730
5731 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5732 Look at the DR_BASE_ADDRESS object for forcing alignment.
5733
5734 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
5735
5736 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
5737 (propagate_vr_accross_jump_function): Likewise.
5738 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5739 (load_from_param_1): New.
5740 (load_from_unmodified_param): Factor common part into load_from_param_1.
5741 (load_from_param): New.
5742 (compute_complex_assign_jump_func): Handle unary expressions.
5743 (ipa_write_jump_function): Likewise.
5744 (ipa_read_jump_function): Likewise.
5745
5746 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
5747
5748 PR ipa/78121
5749 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
5750 Also fold constant passed as argument while computing value range.
5751 (propagate_constants_accross_call): Pass param type.
5752 * ipa-prop.c: export ipa_get_callee_param_type.
5753 * ipa-prop.h: export ipa_get_callee_param_type.
5754
5755 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
5756
5757 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
5758 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
5759
5760 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
5761
5762 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
5763 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
5764 ASAN_STACK_MAGIC_MIDDLE.
5765 (asan_global_struct): Increase the size of fields.
5766 (asan_add_global): Add new field constructor.
5767 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
5768 __asan_version_mismatch_check_v8.
5769
5770 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
5771
5772 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
5773 at runtime.
5774
5775 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
5776
5777 PR target/70799
5778 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
5779 Handle ASHIFT and LSHIFTRT.
5780 (dimode_scalar_chain::compute_convert_gain): Ditto.
5781 (dimode_scalar_chain::convert_insn): Ditto.
5782
5783 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5784
5785 * gimple-ssa-store-merging.c: Include selftest.h
5786 (verify_array_eq): New function.
5787 (verify_shift_bytes_in_array): Likewise.
5788 (verify_shift_bytes_in_array_right): Likewise.
5789 (verify_clear_bit_region): Likewise.
5790 (verify_clear_bit_region_be): Likewise.
5791 (store_merging_c_tests): Likewise.
5792 * selftest.h (store_merging_c_tests): Declare prototype.
5793 * selftest-run-tests.c (selftest::run_tests): Run
5794 store_merging_c_tests.
5795
5796 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5797
5798 * config/arm/arm.opt (mold-rtx-costs): Delete.
5799 (mnew-generic-costs): Delete.
5800 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
5801 * config/arm/arm.c (arm_rtx_costs_1): Delete.
5802 (arm_size_rtx_costs): Likewise.
5803 (arm_slowmul_rtx_costs): Likewise.
5804 (arm_fastmul_rtx_costs): Likewise.
5805 (arm_xscale_rtx_costs): Likewise.
5806 (arm_9e_rtx_costs): Likewise.
5807 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
5808 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
5809 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
5810 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
5811 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
5812 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
5813 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
5814 arm_cortex_m7_tune):
5815 Delete rtx_costs field.
5816 (arm_new_rtx_costs): Rename to...
5817 (arm_rtx_costs_internal): ... This.
5818 (arm_rtx_costs): Remove old way of doing rtx costs.
5819
5820 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5821
5822 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
5823 (arm_fastmul_tune): Likewise.
5824 (arm_strongarm_tune): Likewise.
5825 (arm_xscale_tune): Likewise.
5826 (arm_9e_tune): Likewise.
5827 (arm_marvell_pj4_tune): Likewise.
5828 (arm_v6t2_tune): Likewise.
5829 (arm_v6m_tune): Likewise.
5830 (arm_fa726te_tune): Likewise.
5831
5832 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5833
5834 PR tree-optimization/78234
5835 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
5836 in start != 0 case.
5837
5838 2016-11-08 Martin Liska <mliska@suse.cz>
5839
5840 PR testsuite/78242
5841 * dbgcnt.def: Add new debug counter asan_use_after_scope.
5842 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
5843 with a value expr. Do not add artificial variables to
5844 live_switch_vars. Use the debug counter.
5845 (gimplify_target_expr): Use the debug counter.
5846 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
5847 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
5848 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
5849
5850 2016-11-08 Richard Biener <rguenther@suse.de>
5851
5852 * tree-vect-stmts.c (get_group_load_store_type): If the
5853 access is aligned do not trigger peeling for gaps.
5854 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
5855 force alignment of vars with DECL_USER_ALIGN.
5856
5857 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
5858
5859 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
5860
5861 2016-11-08 Richard Biener <rguenther@suse.de>
5862
5863 PR tree-optimization/78205
5864 * tree-vect-stmts.c (vectorizable_load): Move check whether
5865 we may run into gaps when BB vectorizing SLP permutations ...
5866 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
5867 here where we can do a more precise check.
5868
5869 2016-11-08 Richard Biener <rguenther@suse.de>
5870
5871 PR tree-optimization/78224
5872 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
5873 Split the fallthru edge in case its successor may have PHIs.
5874 Do not free dominance info.
5875
5876 2016-11-07 Jakub Jelinek <jakub@redhat.com>
5877
5878 PR target/78229
5879 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
5880 EH info even for bzhi and pdep/pext.
5881
5882 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
5883
5884 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
5885 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
5886
5887 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5888
5889 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
5890 if appropriate.
5891 * config/rs6000/vector.md (div<mode>3): Ditto.
5892
5893 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
5894
5895 * configure.ac (.hidden): Change to conftest_s string. Provide string
5896 for AIX assembler.
5897 (gcc_cv_ld_hidden): Yes for AIX.
5898 * configure: Regenerate.
5899
5900 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
5901
5902 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
5903 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
5904 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
5905 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5906 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
5907 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
5908 from #if to if.
5909 (rs6000_xcoff_visibility): New.
5910 (rs6000_xcoff_declare_function_name): Add visibility support.
5911 (rs6000_xcoff_asm_globalize_decl_name): New.
5912 (rs6000_xcoff_asm_output_aligned_decl_common): New.
5913 (rs6000_asm_weaken_decl): New.
5914 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
5915 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
5916 reference function.
5917
5918 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
5919
5920 PR driver/78206
5921 * incpath.c (remove_dup): Also silently ignore EPERM.
5922
5923 2016-11-07 Martin Jambor <mjambor@suse.cz>
5924
5925 * tree.c (verify_type_variant): Use pointer comparison to check that
5926 TYPE_SIZE_UNIT match.
5927
5928 2016-11-07 Jakub Jelinek <jakub@redhat.com>
5929
5930 PR target/77834
5931 * dse.c (dse_step5): Call scan_reads even if just
5932 insn_info->frame_read. Improve and fix dump file messages.
5933
5934 PR target/78227
5935 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
5936 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
5937
5938 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5939
5940 PR middle-end/35691
5941 * match.pd: Add following two patterns:
5942 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
5943 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
5944
5945 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
5946
5947 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
5948 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
5949 * rtl.h (duplicate_reg_notes): Declare.
5950 * rtlanal.c (duplicate_reg_note): New function.
5951
5952 PR rtl-optimization/77309
5953 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
5954 don't assume an equality comparison for plain COMPARE.
5955 (simplify_comparison): Pass a more accurate code to
5956 make_compound_operation.
5957
5958 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
5959
5960 * target.def (compute_pressure_classes): New target hook.
5961 * doc/tm.texi.in: Document it.
5962 * doc/tm.texi: Regenerate.
5963 * ira.c (setup_pressure_classes): Call target hook if defined.
5964
5965 2016-11-07 David Malcolm <dmalcolm@redhat.com>
5966
5967 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
5968 method.
5969 (rtx_writer::print_rtx): In compact mode, omit trailing operands
5970 that have the default values.
5971 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
5972 method.
5973 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
5974 label string from expected dump.
5975 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
5976 from expected dump.
5977
5978 2016-11-07 Jakub Jelinek <jakub@redhat.com>
5979
5980 PR target/77834
5981 * alias.c (nonoverlapping_memrefs_p): If one decl is
5982 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
5983
5984 2016-11-07 Richard Biener <rguenther@suse.de>
5985
5986 PR target/78229
5987 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
5988 EH info.
5989
5990 2016-11-07 Richard Biener <rguenther@suse.de>
5991
5992 PR tree-optimization/78218
5993 * gimple-ssa-store-merging.c
5994 (pass_store_merging::terminate_all_aliasing_chains):
5995 Drop unused argument, fix alias check to also consider uses.
5996 (pass_store_merging::execute): Adjust.
5997
5998 2016-11-07 Richard Biener <rguenther@suse.de>
5999
6000 PR tree-optimization/78228
6001 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
6002 undefined behavior.
6003
6004 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6005
6006 PR target/77822
6007 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
6008 aarch64_simd_shift_imm_<mode> predicate for operand 1.
6009 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
6010 to restrict them to an appropriate range and add FAIL check if the
6011 region they specify is out of range. Delete useless constraint
6012 strings.
6013 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
6014 2 and 3 to restrict their range and add pattern predicate.
6015
6016 2016-11-07 Martin Liska <mliska@suse.cz>
6017
6018 * asan.c (enum asan_check_flags): Move the enum to header file.
6019 (asan_init_shadow_ptr_types): Make type creation more generic.
6020 (shadow_mem_size): New function.
6021 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
6022 Rewritten stack unpoisoning code.
6023 (build_shadow_mem_access): Add new argument return_address.
6024 (instrument_derefs): Instrument local variables if use after scope
6025 sanitization is enabled.
6026 (asan_store_shadow_bytes): New function.
6027 (asan_expand_mark_ifn): Likewise.
6028 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
6029 * asan.h (enum asan_mark_flags): Moved here from asan.c
6030 (asan_protect_stack_decl): Protect all declaration that need
6031 to live in memory.
6032 (asan_sanitize_use_after_scope): New function.
6033 (asan_no_sanitize_address_p): Likewise.
6034 * cfgexpand.c (partition_stack_vars): Consider
6035 asan_sanitize_use_after_scope in condition.
6036 (expand_stack_vars): Likewise.
6037 * common.opt (-fsanitize-address-use-after-scope): New option.
6038 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
6039 Explain the parameter.
6040 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
6041 * gimplify.c (build_asan_poison_call_expr): New function.
6042 (asan_poison_variable): Likewise.
6043 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
6044 variables that have address taken.
6045 (gimplify_decl_expr): Likewise.
6046 (gimplify_target_expr): Likewise for C++ temporaries.
6047 (sort_by_decl_uid): New function.
6048 (gimplify_expr): Unpoison all variables for a label we can jump
6049 from outside of a scope.
6050 (gimplify_switch_expr): Unpoison variables defined in the switch
6051 context.
6052 (gimplify_function_tree): Clear asan_poisoned_variables.
6053 (asan_poison_variables): New function.
6054 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
6055 * internal-fn.c (expand_ASAN_MARK): New function.
6056 * internal-fn.def (ASAN_MARK): Declare.
6057 * opts.c (finish_options): Handle -fstack-reuse if
6058 -fsanitize-address-use-after-scope is enabled.
6059 (common_handle_option): Enable address sanitization if
6060 -fsanitize-address-use-after-scope is enabled.
6061 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
6062 New parameter.
6063 * params.h: Likewise.
6064 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
6065 * sanitizer.def: Define __asan_poison_stack_memory and
6066 __asan_unpoison_stack_memory functions.
6067 * asan.c (asan_mark_poison_p): New function.
6068 (transform_statements): Handle asan_mark_poison_p calls.
6069 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
6070
6071 2016-11-07 Tamar Christina <tamar.christina@arm.com>
6072
6073 PR driver/78196
6074 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
6075
6076 2016-11-07 Martin Liska <mliska@suse.cz>
6077
6078 * tree-profile.c (gimple_gen_time_profiler): Set proper type
6079 to time_profiler_counter_ptr.
6080
6081 2016-11-07 Richard Biener <rguenther@suse.de>
6082
6083 PR tree-optimization/37150
6084 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
6085 parameter.
6086 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
6087 (vect_analyze_slp_cost_1): Account for the real number of
6088 permutations emitted and for dead loads.
6089 (vect_transform_slp_perm_load): Add n_perms parameter counting
6090 the number of emitted permutations.
6091 * tree-vect-stmts.c (vectorizable_load): Adjust.
6092
6093 2016-11-07 Richard Biener <rguenther@suse.de>
6094
6095 PR tree-optimization/78189
6096 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
6097 alignment computation.
6098
6099 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
6100
6101 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
6102
6103 2016-11-05 Martin Sebor <msebor@redhat.com>
6104
6105 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
6106 documentation.
6107
6108 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
6109
6110 PR bootstrap/78188
6111 PR c++/71848
6112 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
6113
6114 2016-11-04 Jakub Jelinek <jakub@redhat.com>
6115
6116 PR target/77834
6117 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
6118 doesn't have rtl set.
6119
6120 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6121
6122 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
6123 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
6124 rs6000_gimple_fold_builtin.
6125 (rs6000_gimple_fold_builtin): New function. Add handling for
6126 early expansion of vector addition builtins.
6127
6128 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
6129
6130 * expr.h (copy_blkmode_from_reg): Delete.
6131 * expr.c (copy_blkmode_from_reg): Make static.
6132
6133 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
6134
6135 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
6136 * combine.c (LOAD_EXTEND_OP): Delete.
6137 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
6138 * cse.c (LOAD_EXTEND_OP): Delete.
6139 * fold-const.c (LOAD_EXTEND_OP): Likewise.
6140 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
6141 * postreload.c (LOAD_EXTEND_OP): Delete.
6142 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
6143 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
6144 (find_reloads): Likewise.
6145 * reload1.c (eliminate_regs_1): Likewise.
6146 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
6147 (num_sign_bit_copies1): Likewise.
6148
6149 2016-11-04 David Malcolm <dmalcolm@redhat.com>
6150
6151 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
6152 (selftest::ix86_test_dumping_hard_regs): New function.
6153 (selftest::ix86_run_selftests): New function.
6154 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
6155 selftest::ix86_run_selftests.
6156 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
6157 * doc/tm.texi: Regenerate
6158 * selftest-rtl.h: New file.
6159 * rtl-tests.c: Include "selftest-rtl.h".
6160 (selftest::assert_rtl_dump_eq): Make non-static.
6161 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
6162 (selftest::test_dumping_regs): Update comment.
6163 * selftest-run-tests.c: Include "target.h".
6164 (selftest::run_tests): If non-NULL, call
6165 targetm.run_target_selftests.
6166 * target.def (run_target_selftests): New hook.
6167
6168 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6169
6170 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
6171 representative core for this architecture.
6172 * config/arm/arm-cores.def (cortex-m33): Define new processor.
6173 * config/arm/arm-tables.opt: Regenerate.
6174 * config/arm/arm-tune.md: Likewise.
6175 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
6176 valid -mcpu options.
6177 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
6178
6179 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6180
6181 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
6182 representative core for this architecture.
6183 * config/arm/arm-cores.def (cortex-m23): Define new processor.
6184 * config/arm/arm-tables.opt: Regenerate.
6185 * config/arm/arm-tune.md: Likewise.
6186 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
6187 this tuning parameters apply to in the comment.
6188 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
6189 valid -mcpu options.
6190 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
6191
6192 2016-11-04 Bin Cheng <bin.cheng@arm.com>
6193
6194 * fold-const.c (fold_cond_expr_with_comparison): Remove call
6195 to pedantic_non_lvalue_loc. Remove useless code for lvalue
6196 where cond_expr can't be a lvalue.
6197
6198 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
6199
6200 * config/arc/arc.c (arc_process_double_reg_moves): Use
6201 gen_dexcl_2op call.
6202 * config/arc/arc.md (movsi_insn): Disable unsupported move
6203 instructions for ARCv2 cores.
6204 (movdi): Use prepare_move_operands.
6205 (movsf, movdf): Use move_dest_operand predicate.
6206 * config/arc/constraints.md (Chs): Enable when barrel shifter is
6207 present.
6208 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
6209 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
6210 also a destination.
6211 (dexcl_3op_peep2_insn_nores): Likewise.
6212 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
6213 (LINK_COMMAND_SPEC): Remove.
6214
6215 2016-11-04 Richard Biener <rguenther@suse.de>
6216
6217 PR middle-end/78185
6218 * loop-invariant.c (find_exits): Record entering inner
6219 loops as possibly exiting to handle infinite sub-loops.
6220 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
6221 (fill_always_executed_in_1): Honor infinite child loops.
6222
6223 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6224
6225 PR target/78192
6226 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
6227 has already been adjusted for endianness, so don't adjust it any
6228 further.
6229
6230 PR target/77993
6231 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
6232 ICmode unless we have standard PowerPC floating point.
6233 * config/rs6000/rs6000.md (FP iterator): Likewise.
6234 (FMOVE128 iterator): Likewise.
6235
6236 2016-11-03 Jakub Jelinek <jakub@redhat.com>
6237 Alexandre Oliva <aoliva@redhat.com>
6238 Jason Merrill <jason@redhat.com>
6239
6240 PR debug/28767
6241 PR debug/56974
6242 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
6243 langhook.
6244 * langhooks.c (lhd_type_dwarf_attribute): New function.
6245 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
6246 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
6247 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
6248 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
6249 (check_qualified_type, check_aligned_type): Call it.
6250 * dwarf2out.c (modified_type_die): Don't use type_main_variant
6251 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
6252 check_base_type and check_lang_type.
6253 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
6254 return early. For pointer-to-data-member add DW_AT_use_location
6255 attribute.
6256 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
6257 if needed.
6258 (gen_type_die_with_usage): Don't use type_main_variant
6259 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
6260 check_base_type and check_lang_type. Formatting fixes. Call
6261 get_debug_type langhook.
6262
6263 2016-11-03 Jason Merrill <jason@redhat.com>
6264
6265 * tree.c (check_lang_type): New.
6266 (check_qualified_type): Use it.
6267 (check_aligned_type): Use it.
6268 * tree.h: Declare it.
6269
6270 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
6271
6272 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
6273 (arm*-freebsd*): Likewise.
6274 (arm*-*-netbsdelf*): Likewise.
6275 (arm*-*-linux*): Likewise.
6276 (arm*-*-uclinux*eabi*): Likewise.
6277 (arm*-*-phoenix*): Likewise.
6278 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
6279 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
6280 specified. Default to arm6 if target_cpu_cname is not set.
6281 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
6282 default cpu has been correctly configured.
6283 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
6284 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
6285 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
6286 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
6287 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
6288 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
6289 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
6290
6291 2016-11-03 Jiong Wang <jiong.wang@arm.com>
6292
6293 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
6294 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
6295 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
6296 (output_cfa_loc): Support DW_CFA_val_expression.
6297 (output_cfa_loc_raw): Likewise.
6298 (output_cfi): Likewise.
6299 (output_cfi_directive): Likewise.
6300 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
6301 (dw_cfi_oprnd2_desc): Likewise.
6302 (mem_loc_descriptor): Recognize new pattern generated for value
6303 expression.
6304
6305 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
6306
6307 PR rtl-optimization/78186
6308 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
6309 well, when converting to IOR.
6310
6311 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
6312
6313 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
6314 (vec_interleave_highv8qi): Likewise.
6315
6316 2016-11-03 Martin Liska <mliska@suse.cz>
6317
6318 * profile.c (instrument_values): Fix coding style.
6319 (branch_prob): Use renamed function.
6320 * tree-profile.c (init_ic_make_global_vars): Likewise.
6321 (gimple_init_edge_profiler): Rename to
6322 gimple_init_gcov_profiler.
6323 tree_time_profiler_counter variable declaration.
6324 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
6325 emission.
6326 * value-prof.h: Remove an argument.
6327
6328 2016-11-03 Richard Biener <rguenther@suse.de>
6329
6330 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
6331 symtab_node::get_create.
6332
6333 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6334
6335 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
6336 Move comments into more natural position.
6337
6338 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
6339
6340 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
6341 (PTRDIFF_TYPE): Define as int.
6342
6343 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6344
6345 * ccmp.c (expand_ccmp_expr_1): Adjust.
6346 (expand_ccmp_expr): Likewise.
6347 (expand_ccmp_next): Likewise.
6348 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
6349 (aarch64_gen_ccmp_first): Likewise.
6350 * doc/tm.texi: Regenerate.
6351 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
6352 (gen_ccmp_next): Likewise.
6353
6354 2016-11-03 Bin Cheng <bin.cheng@arm.com>
6355
6356 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
6357 (vect_is_simple_reduction): Swap cond_reduction by inversion.
6358
6359 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
6360
6361 * config/i386/i386.c (ix86_init_libfuncs): New. Call
6362 darwin_rename_builtins here.
6363 (ix86_expand_divmod_libfunc): New.
6364 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
6365 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
6366
6367 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
6368 Nathan Sidwell <nathan@acm.org>
6369
6370 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
6371
6372 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
6373
6374 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
6375 New function.
6376 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
6377 to format MODE_INT and MODE_PARTIAL_INT literals.
6378
6379 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
6380
6381 PR target/78168
6382 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
6383 NULL if TARGET_SPE_ABI.
6384
6385 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6386
6387 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
6388 clear padding bits even when they're less than a byte.
6389
6390 2016-11-02 Richard Biener <rguenther@suse.de>
6391
6392 * gimple-ssa-store-merging.c: Include gimplify-me.h.
6393 (imm_store_chain_info::output_merged_stores): Force base_addr
6394 to be proper GIMPLE for a MEM_REF address.
6395 (pass_store_merging::execute): Restrict negative bitpos
6396 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
6397 check. Take into account non-NULL_TREE offset if the base
6398 is already addressable.
6399
6400 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
6401
6402 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
6403 New pattern.
6404 (aarch64_be_crypto_sha1hv4si): New pattern.
6405
6406 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
6407
6408 * config/aarch64/aarch64.md (add<mode>3): Remove
6409 redundant code. Don't split frame based additions.
6410
6411 2016-11-02 Richard Biener <rguenther@suse.de>
6412
6413 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
6414 redundant val and dest members.
6415 (store_immediate_info::store_immediate_info): Adjust.
6416 (merged_store_group::merged_store_group): Adjust.
6417 (merged_store_group::apply_stores): Likewise.
6418 (struct imm_store_chain_info): Add base_addr field.
6419 (imm_store_chain_info::imm_store_chain_info): New constructor.
6420 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
6421 (imm_store_chain_info::output_merged_store): Likewise. Use
6422 addr_base which is already the address.
6423 (imm_store_chain_info::output_merged_stores): Likewise.
6424 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
6425 imm_store_chain_info instead of base. Fix alias check.
6426 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
6427 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
6428 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
6429 use the address of the base and adjust for other changes.
6430
6431 2016-11-02 Martin Liska <mliska@suse.cz>
6432
6433 * fold-const-call.c (host_size_t_cst_p): Test whether
6434 t is convertible to size_t.
6435
6436 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6437
6438 PR tree-optimization/78170
6439 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
6440 introduced by native_encode_expr on little-endian as well.
6441
6442 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6443
6444 PR tree-optimization/78162
6445 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
6446 as invalid.
6447
6448 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6449
6450 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
6451 function comment.
6452 (aarch64_next_callee_save): Likewise.
6453 (aarch64_pushwb_single_reg): Likewise.
6454 (aarch64_gen_storewb_pair): Likewise.
6455 (aarch64_push_regs): Likewise.
6456 (aarch64_gen_loadwb_pair): Likewise.
6457 (aarch64_pop_regs): Likewise.
6458 (aarch64_gen_store_pair): Likewise.
6459 (aarch64_gen_load_pair): Likewise.
6460 (aarch64_save_callee_saves): Likewise.
6461 (aarch64_restore_callee_saves): Likewise.
6462
6463 2016-11-02 Richard Biener <rguenther@suse.de>
6464
6465 PR tree-optimization/78035
6466 PR tree-optimization/77964
6467 * gimple-pretty-print.c (pp_points_to_solution): Print
6468 vars_contains_interposable.
6469 * tree-ssa-alias.c: Include varasm.h.
6470 (ptrs_compare_unequal): Check vars_contains_interposable and
6471 decl_binds_to_current_def_p.
6472 (dump_points_to_solution): Dump vars_contains_interposable.
6473 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
6474 flag.
6475 * tree-ssa-structalias.c: Include varasm.h.
6476 (set_uids_in_ptset): Record whether vars contains a
6477 not decl_binds_to_current_def_p variable in vars_contains_interposable.
6478 (ipa_escaped_pt): Update initializer.
6479
6480 2016-11-02 Richard Biener <rguenther@suse.de>
6481
6482 PR tree-optimization/78047
6483 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
6484 fake field at offset zero conservatively regarding to may_have_pointers.
6485
6486 2016-11-02 Richard Biener <rguenther@suse.de>
6487
6488 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
6489 infer_value_range on stmt ops and update value-ranges.
6490 Dump visited stmts and blocks.
6491 (evrp_dom_walker::push_value_range): Dump changes.
6492 (evrp_dom_walker::pop_value_range): Likewise.
6493 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
6494
6495 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6496
6497 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
6498 rtx_insn *.
6499 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
6500
6501 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6502
6503 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
6504 and adjust for that.
6505 * cfgrtl.h (delete_insn_chain): Adjust prototype.
6506
6507 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6508
6509 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
6510 to rtx_insn *.
6511 (transcode_memory_rtx): Likewise.
6512 (move_to_acc): Likewise.
6513 (move_from_acc): Likewise.
6514 (move_acc_to_reg): Likewise.
6515 (move_to_x): Likewise.
6516 (move_to_hl): Likewise.
6517 (move_to_de): Likewise.
6518 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
6519 (rs6000_emit_savres_rtx): Likewise.
6520 (rs6000_emit_prologue): Likewise.
6521 * reorg.c (update_reg_unused_notes): Likewise.
6522 * rtl.h (remove_note): Adjust prototype.
6523 * rtlanal.c (remove_note): Make argument type rtx_insn *.
6524
6525 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6526
6527 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
6528 variables so some can be rtx_insn *.
6529 (alpha_emit_xfloating_libcall): Likewise.
6530 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
6531 (mips_legitimize_tls_address): Likewise.
6532 * optabs.c (expand_binop): Likewise.
6533 * reload1.c (gen_reload): Likewise.
6534
6535 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6536
6537 * reorg.c (relax_delay_slots): Split up the trial variable.
6538
6539 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6540
6541 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
6542 of variables rtx_insn *.
6543 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
6544 (legitimize_tls_address): Likewise.
6545 * config/bfin/bfin.c (hwloop_optimize): Likewise.
6546 (bfin_gen_bundles): Likewise.
6547 * config/c6x/c6x.c (reorg_split_calls): Likewise.
6548 (c6x_reorg): Likewise.
6549 * config/frv/frv.c (frv_reorder_packet): Likewise.
6550 * config/i386/i386.c (ix86_split_idivmod): Likewise.
6551 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
6552 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
6553 * config/mn10300/mn10300.c: Likewise.
6554 * config/rl78/rl78.c: Likewise.
6555 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
6556 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
6557 (sh_expand_cmpnstr): Likewise.
6558 (sh_expand_strlen): Likewise.
6559 (sh_expand_setmem): Likewise.
6560 * config/sh/sh.md: Likewise.
6561 * emit-rtl.c (emit_pattern_before): Likewise.
6562 * except.c: Likewise.
6563 * final.c: Likewise.
6564 * jump.c: Likewise.
6565
6566 2016-11-01 Jason Merrill <jason@redhat.com>
6567
6568 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
6569 a COND_EXPR with constant condition.
6570
6571 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6572
6573 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
6574 and its initialization.
6575
6576 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6577
6578 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
6579 HAVE_AS_LEB128.
6580
6581 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6582
6583 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
6584 argument, don't call add_linkage_name if it is true.
6585 (gen_variable_die): For C++ inline static data members, consider the
6586 initial call when old_die is NULL to be declaration and call
6587 add_name_and_src_coords_attributes in that case with true as
6588 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
6589 (gen_member_die): For C++ inline static data members, emit a
6590 definition DIE right away in DW_TAG_compile_unit context.
6591
6592 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
6593
6594 PR target/78166
6595 * config/pa/pa.md: Add new shift/add patterns to handle
6596 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
6597
6598 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
6599
6600 * config/xtensa/xtensa-protos.h
6601 (xtensa_use_return_instruction_p): New prototype.
6602 * config/xtensa/xtensa.c (xtensa_current_frame_size,
6603 xtensa_callee_save_size): Remove.
6604 (struct machine_function): Add new fields: current_frame_size,
6605 callee_save_size, frame_laid_out and epilogue_done.
6606 (compute_frame_size, xtensa_expand_prologue,
6607 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
6608 cfun->machine->callee_save_size and xtensa_current_frame_size
6609 with cfun->machine->current_frame_size.
6610 (compute_frame_size): Update cfun->machine->frame_laid_out and
6611 don't update frame layout after reload completion.
6612 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
6613 instead of zeroing xtensa_current_frame_size.
6614 (xtensa_use_return_instruction_p): New function.
6615 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
6616 declaration.
6617 (INITIAL_ELIMINATION_OFFSET): Use return value of
6618 compute_frame_size instead of xtensa_current_frame_size value.
6619 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
6620 function xtensa_use_return_instruction_p instead of inline code.
6621
6622 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6623
6624 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
6625 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
6626 * dwarf2out.c (rnglist_idx): New variable.
6627 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
6628 (DEBUG_RNGLISTS_SECTION): Define.
6629 (ranges_base_label): New variable.
6630 (size_of_die) <case dw_val_class_range_list>: If using
6631 DW_FORM_rnglistx, count size of uleb128 of range list index.
6632 (value_format) <case dw_val_class_range_list>: For
6633 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
6634 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
6635 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
6636 (add_ranges_num): Remove useless prototype. Don't multiply
6637 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
6638 for new fields added to dw_ranges struct.
6639 (add_ranges): Add maybe_new_sec argument and pass it
6640 through to add_ranges_num.
6641 (note_rnglist_head): New function.
6642 (add_ranges_by_labels): Pass true as maybe_new_sec to
6643 add_ranges_num, call note_rnglist_head on the head of the list.
6644 (output_ranges): Add function comment. Switch to
6645 .debug_ranges section here and emit .Ldebug_ranges0 label.
6646 (index_rnglists, output_rnglists): New functions.
6647 (gen_subprogram_die): Formatting fixes.
6648 (add_high_low_attributes): Don't divide offsets
6649 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
6650 first list element or when pointing into the middle of
6651 a list. Pass true as second argument to add_ranges on the
6652 first block fragment after cold/hot section switch.
6653 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
6654 section instead of .debug_ranges. Initialize
6655 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
6656 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
6657 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
6658 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
6659 Call output_rnglists for -gdwarf-5.
6660 (dwarf2out_c_finalize): Clear rnglist_idx.
6661
6662 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
6663
6664 * combine.c (simplify_compare_const): Add gcc_fallthrough.
6665
6666 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
6667 Tamar Christina <tamar.christina@arm.com>
6668
6669 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
6670 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
6671 (vmaxnmq_f32): Likewise.
6672 (vminnm_f32): Likewise.
6673 (vminnmq_f32): Likewise.
6674 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
6675 (vminnm): Likewise.
6676 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
6677 expander.
6678
6679 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
6680
6681 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
6682 binary floating point types supported by the hardware except for
6683 double.
6684 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
6685 vector instruction for optimizing extracting a SImode from a
6686 V4SImode vector and converting it to floating point.
6687 (vsx_xvcvuxwdp_df): Likewise.
6688 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
6689 registers to be any VSX register. Move stores to the end of the
6690 constraints.
6691 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
6692 to optimize extracting a SImode from a V4SImode vector and
6693 converting it to a binary floating point type supported by the
6694 hardware. Use the vector converts instead of extracting the
6695 element, sign extending it, and then converting it to double.
6696 Other floating point types than double first convert to double,
6697 then the double is converted to that type.
6698 (vsx_extract_si_<uns>float_<mode>): Likewise.
6699
6700 2016-10-31 Andrew Pinski <apinski@cavium.com>
6701
6702 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
6703 Rewrite handling of part num to handle the case where
6704 multiple implementers share the same part num.
6705
6706 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6707 Jakub Jelinek <jakub@redhat.com>
6708
6709 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
6710 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
6711
6712 2016-10-31 Jakub Jelinek <jakub@redhat.com>
6713
6714 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
6715 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
6716 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
6717 (is_cu_die, is_unit_die): Likewise.
6718 (should_move_die_to_comdat, break_out_comdat_types): Adjust
6719 comments for DWARF5 DW_UT_type units.
6720 (output_compilation_unit_header): Add UT argument, output
6721 start of DWARF5 .debug_info section header.
6722 (output_comp_unit): Add dwo_id argument. Adjust
6723 output_compilation_unit_header caller, for DW_UT_split_compile
6724 emit dwo_id field, otherwise padding1. Emit padding2 field.
6725 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
6726 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
6727 (output_skeleton_debug_sections): Add dwo_id argument, for
6728 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
6729 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
6730 DW_UT_type or DW_UT_split_type units rather than .debug_types.
6731 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
6732 DW_TAG_compile_unit for skeleton unit die. Don't add
6733 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
6734 address to output_comp_unit and output_skeleton_debug_sections.
6735
6736 * dwarf2out.c (debug_line_str_section): New variable.
6737 (debug_line_str_hash): Likewise.
6738 (DEBUG_LINE_STR_SECTION): Define.
6739 (set_indirect_string): Handle DW_FORM_line_strp like
6740 DW_FORM_strp.
6741 (find_string_form): Fix up formatting.
6742 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
6743 Fix up indentation.
6744 (output_die): Handle DW_FORM_line_strp.
6745 (DWARF5_USE_DEBUG_LINE_STR): Define.
6746 (output_line_string): New function.
6747 (output_file_names): Add -gdwarf-5 support.
6748 (output_line_info): Likewise.
6749 (init_sections_and_labels): Initialize debug_line_str_section.
6750 (output_indirect_string): Change 2nd argument from void *
6751 to enum dwarf_form form, compare with form rather than
6752 DW_FORM_strp.
6753 (output_indirect_strings): Pass DW_FORM_strp to
6754 output_indirect_string traversion.
6755 (dwarf2out_finish): Output .debug_line_str strings.
6756 (dwarf2out_c_finalize): Clear debug_line_str_section and
6757 debug_line_str_hash.
6758
6759 2016-10-31 Tom Tromey <tom@tromey.com>
6760
6761 PR debug/77315
6762 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
6763 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
6764 DW_OP_GNU_push_tls_address case.
6765 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
6766
6767 2016-10-31 Jakub Jelinek <jakub@redhat.com>
6768
6769 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
6770 for frame_offset_rel bit.
6771 (struct array_descr_info): Add rank field.
6772 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
6773 and placeholder_seen fields.
6774 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
6775 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
6776 DW_OP_pick 1 into DW_OP_over.
6777 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
6778 gen_variant_part): Clear placeholder_{arg,seen}.
6779 (loc_list_from_tree_1): Drop const from context argument.
6780 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
6781 (loc_list_for_address_of_addr_expr_of_indirect_ref,
6782 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
6783 context argument.
6784 (add_scalar_info): Drop const from context argument. Handle
6785 context->placeholder_arg.
6786 (add_bound_info): Drop const from context argument.
6787 (gen_descr_array_type_die): Drop const from ctx variable.
6788 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
6789 attribute and use a single DW_TAG_generic_subrange instead of
6790 7 DW_TAG_subrange_type for assumed rank arrays.
6791
6792 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
6793 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
6794 from bool to 1-bit uchar bitfield. Add num_assigned and
6795 offset_emitted bitfields.
6796 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
6797 for dw_val_class_lineptr and dw_val_class_macptr. Handle
6798 dw_val_class_loclistsptr.
6799 (new_addr_loc_descr): Fix up formatting.
6800 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
6801 (add_AT_low_high_pc): Fix up formatting.
6802 (add_AT_loclistsptr): New function.
6803 (AT_lbl): Allow dw_val_class_loclistsptr.
6804 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
6805 Handle dw_val_class_loclistsptr.
6806 (loc_list_idx): New variable.
6807 (output_loclists_offsets, assign_location_list_indexes): New
6808 functions.
6809 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
6810 add size_of_uleb128 of the index. Drop never used
6811 dwarf_split_debug_info AT_index handling. Handle
6812 dw_val_class_loclistsptr.
6813 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
6814 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
6815 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
6816 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
6817 DW_FORM_loclistx indexes.
6818 (output_attr_index_or_value): Fix up formatting. Don't handle
6819 dw_val_class_loc_list here.
6820 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
6821 For dw_val_class_loc_list call output_loc_list_offset rather than
6822 output_attr_index_or_value.
6823 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
6824 or .debug_loclists.dwo section name for debug_loc_section.
6825 (resolve_addr_in_expr): Formatting fix.
6826 (index_location_lists): Likewise.
6827 (dwarf2out_finish): If there are any location lists, for
6828 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
6829 index_location_lists only if have_location_lists. Call
6830 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
6831 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
6832 -gsplit-dwarf also emit offset table.
6833
6834 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
6835 (size_of_die, value_format, output_die): Use
6836 DW_FORM_data16 for 128-bit dw_val_class_const_double or
6837 dw_val_class_wide_int.
6838
6839 * dwarf2out.c (dwarf_op): Renamed to ...
6840 (dwarf_OP): ... this.
6841 (convert_descriptor_to_mode, scompare_loc_descriptor,
6842 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
6843 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
6844 callers.
6845 (dwarf_AT, dwarf_TAG): New functions.
6846 (check_die): Disallow DW_AT_call_all_calls next to
6847 DW_AT_GNU_all_call_sites.
6848 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
6849 and attributes instead of the corresponding GNU tag and attributes.
6850 (gen_subprogram_die): Likewise. Emit call site information even
6851 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
6852 DW_AT_defaulted in comment.
6853 (resolve_addr): Handle DW_AT_call_origin attribute on
6854 DW_TAG_call_site DIE like DW_AT_abstract_origin on
6855 DW_TAG_GNU_call_site DIE.
6856
6857 * dwarf2out.c (dwarf_op): New function.
6858 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
6859 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
6860 (output_loc_operands, output_loc_operands_raw): Likewise.
6861 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
6862 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
6863 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
6864 if dwarf_version < 5.
6865 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
6866 DW_OP_GNU_xxx.
6867 (scompare_loc_descriptor, ucompare_loc_descriptor,
6868 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
6869 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
6870 optimize_location_into_implicit_ptr): Likewise. Only punt for
6871 !dwarf_strict if dwarf_version < 5.
6872 (string_cst_pool_decl): Adjust comment.
6873 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
6874
6875 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
6876 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
6877 (struct dw_val_node): Add val_file_implicit field.
6878 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
6879 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
6880 output_die): Handle dw_val_class_const_implicit,
6881 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
6882 (abbrev_die_table): Change into va_gc vec.
6883 (abbrev_die_table_allocated, abbrev_die_table_in_use,
6884 ABBREV_DIE_TABLE_INCREMENT): Remove.
6885 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
6886 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
6887 variables.
6888 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
6889 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
6890 vectors.
6891 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
6892 functions.
6893 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
6894 the implicit value.
6895 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
6896 vec.
6897 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
6898 unit. Call optimize_abbrev_table.
6899 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
6900 abbrev_die_table being a va_gc vec.
6901
6902 PR tree-optimization/77860
6903 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
6904 also integral complex and vector constants.
6905
6906 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
6907 optimize_macinfo_range, save_macinfo_strings): Replace
6908 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
6909 (output_macinfo): Likewise. Emit .debug_macro* rather than
6910 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
6911 (init_sections_and_labels): Use .debug_macro* labels rather than
6912 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
6913 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
6914 or DW_AT_GNU_macros for -gdwarf-5.
6915
6916 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
6917
6918 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
6919
6920 2016-09-11 Le-Chun Wu <lcwu@google.com>
6921 Mark Wielaard <mjw@redhat.com>
6922
6923 * common.opt (Wshadow=global): New option. Default for -Wshadow.
6924 (Wshadow=local): New option.
6925 (Wshadow-local): Hidden alias for -Wshadow=local.
6926 (Wshadow=compatible-local): New option.
6927 (Wshadow-compatible-local): Hidden alias for
6928 -Wshadow=compatible-local.
6929 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
6930 Wshadow=compatible-local.
6931
6932 2016-10-31 Bin Cheng <bin.cheng@arm.com>
6933
6934 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
6935 Check slp defs for COND_EXPR by swapping/inverting operands if the
6936 new parameter SWAP indicates so.
6937 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
6938 is isomorphic to the first stmt via swapping/inverting. Store swap
6939 information in the new parameter SWAP.
6940 (vect_build_slp_tree): New local array SWAP and pass it to function
6941 vect_build_slp_tree_1. Cleanup result handling code for function
6942 call to vect_get_and_check_slp_defs. Skip operand swapping if the
6943 order of operands has been fixed as indicated by SWAP[i].
6944
6945 2016-10-31 Bin Cheng <bin.cheng@arm.com>
6946
6947 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
6948 unnecessary data dependence check after visited store stmt.
6949
6950 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6951
6952 PR tree-optimization/71915
6953 PR tree-optimization/71490
6954 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
6955 stride_type field.
6956 (find_basis_for_base_expr): Require stride types to match when
6957 seeking a basis.
6958 (alloc_cand_and_find_basis): Record the stride type.
6959 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
6960 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
6961 the expressions having those types.
6962 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
6963 (create_mul_ssa_cand): Likewise.
6964 (create_mul_imm_cand): Likewise.
6965 (create_add_ssa_cand): Likewise.
6966 (create_add_imm_cand): Likewise.
6967 (legal_cast_p_1): Change interface to accept types rather than the
6968 expressions having those types.
6969 (legal_cast_p): Pass types to legal_cast_p_1.
6970 (slsr_process_cast): Pass stride type to
6971 alloc_cand_and_find_basis.
6972 (slsr_process_copy): Likewise.
6973 (dump_candidate): Display stride type when a cast exists.
6974 (create_add_on_incoming_edge): Introduce a cast when necessary for
6975 the stride type.
6976 (analyze_increments): Change the code checking for invalid casts
6977 to rely on the stride type, and update the documentation and
6978 example. Change the code checking for pointer multiplies to rely
6979 on the stride type.
6980 (insert_initializers): Introduce a cast when necessary for the
6981 stride type. Use the stride type for the type of the initializer.
6982
6983 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6984
6985 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
6986
6987 2016-10-29 Jakub Jelinek <jakub@redhat.com>
6988
6989 PR rtl-optimization/77919
6990 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
6991 into memory if both modes are complex and their inner modes have the
6992 same precision. If the two modes are different complex modes, convert
6993 each part separately and generate a new CONCAT.
6994
6995 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
6996
6997 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
6998
6999 2016-10-29 Jakub Jelinek <jakub@redhat.com>
7000
7001 PR target/78148
7002 * gimple-ssa-store-merging.c
7003 (imm_store_chain_info::output_merged_store): Use build_aligned_type
7004 instead of SET_TYPE_ALIGN on shared integral type.
7005
7006 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
7007
7008 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
7009 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
7010 Adjust comment.
7011
7012 2016-10-28 Jeff Law <law@redhat.com>
7013
7014 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
7015 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
7016
7017 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7018
7019 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
7020
7021 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7022
7023 * target.def (min_arithmetic_precision): New hook.
7024 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
7025 * doc/tm.texi: Regenerate.
7026 * internal-fn.c (expand_arith_overflow): Adjust handling of target
7027 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
7028 * targhooks.c (default_min_arithmetic_precision): New function.
7029 * targhooks.h (default_min_arithmetic_precision): Declare.
7030 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
7031 (sparc_min_arithmetic_precision): New function.
7032
7033 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
7034
7035 PR target/71847
7036 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
7037 Swap commutative operands in new RTL if needed. Handle zero_ext
7038 in the set_dest.
7039 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
7040 PATTERN (insn).
7041
7042 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7043 Kugan Vivekanandarajah <kuganv@linaro.org>
7044 Jim Wilson <jim.wilson@linaro.org>
7045
7046 PR tree-optimization/43721
7047 * target.def: New hook expand_divmod_libfunc.
7048 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
7049 * doc/tm.texi: Regenerate.
7050 * internal-fn.def: Add new entry for DIVMOD ifn.
7051 * internal-fn.c (expand_DIVMOD): New.
7052 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
7053 targhooks.h.
7054 (widen_mul_stats): Add new field divmod_calls_inserted.
7055 (target_supports_divmod_p): New.
7056 (divmod_candidate_p): Likewise.
7057 (convert_to_divmod): Likewise.
7058 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
7059 renumber_gimple_stmt_uids at beginning of function. Call
7060 convert_to_divmod and record stats for divmod.
7061 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
7062 TARGET_EXPAND_DIVMOD_LIBFUNC.
7063 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
7064 divmod_simode.
7065
7066 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7067 Segher Boessenkool <segher@kernel.crashing.org>
7068
7069 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
7070 swapping the arms of the branch.
7071 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
7072 sequence for the generic signed-signed-signed case.
7073
7074 2016-10-28 Jeff Law <law@redhat.com>
7075
7076 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
7077 fallthru comment.
7078 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
7079
7080 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
7081
7082 PR rtl-optimization/78029
7083 * function.c (prologue_contains, epilogue_contains): New functions.
7084 (record_prologue_seq, record_epilogue_seq): New functions.
7085 * function.h (prologue_contains, epilogue_contains,
7086 record_prologue_seq, record_epilogue_seq): New declarations.
7087 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
7088 mixing prologue and epilogue insns.
7089 (init_deps): Initialize the new fields in struct deps_desc.
7090 * sched-int.h (struct deps_desc): New fields last_prologue,
7091 last_epilogue, and last_logue_was_epilogue.
7092 * shrink-wrap.c (emit_common_heads_for_components): Record all
7093 emitted prologue and epilogue insns.
7094 (emit_common_tails_for_components): Ditto.
7095 (insert_prologue_epilogue_for_components): Ditto.
7096
7097 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7098
7099 PR middle-end/22141
7100 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
7101 * common.opt (fstore-merging): New Optimization option.
7102 * opts.c (default_options_table): Add entry for
7103 OPT_ftree_store_merging.
7104 * fold-const.h (can_native_encode_type_p): Declare prototype.
7105 * fold-const.c (can_native_encode_type_p): Define.
7106 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
7107 (PARAM_MAX_STORES_TO_MERGE): Likewise.
7108 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
7109 * passes.def: Insert pass_tree_store_merging.
7110 * tree-pass.h (make_pass_store_merging): Declare extern
7111 prototype.
7112 * gimple-ssa-store-merging.c: New file.
7113 * doc/invoke.texi (Optimization Options): Document
7114 -fstore-merging.
7115 (--param documentation): Document store-merging-allow-unaligned
7116 and max-stores-to-merge.
7117
7118 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
7119
7120 PR middle-end/72747
7121 * gimplify.c (gimplify_init_constructor): Move emit of constructor
7122 assignment to earlier in the if/else logic.
7123
7124 2016-10-28 Richard Biener <rguenther@suse.de>
7125
7126 PR middle-end/78128
7127 PR middle-end/71002
7128 * fold-const.c (make_bit_field_ref): Only adjust alias set
7129 when the original alias set was zero.
7130
7131 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7132
7133 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
7134 (s390_adjust_loops): New function.
7135 (s390_reorg): Invoke s390_adjust_loops.
7136 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
7137 ("osc_break"): New insn definition.
7138
7139 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7140
7141 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
7142 * config.gcc: Support alternate archXX cpu levels with
7143 --with-arch= and --with-tune=.
7144 * config/s390/linux.h: Translate new archXX cpu levels to the
7145 original names when calling GAS.
7146 * config/s390/tpf.h: Likewise.
7147 * doc/invoke.texi: Document the alternate cpu level names.
7148
7149 2016-10-28 Jakub Jelinek <jakub@redhat.com>
7150
7151 PR rtl-optimization/77919
7152 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
7153 MEM if mode1 is not a complex mode.
7154
7155 PR rtl-optimization/78132
7156 * ree.c (combine_reaching_defs): Give up if copy_needed and
7157 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
7158
7159 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
7160
7161 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
7162
7163 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
7164
7165 * config/rs6000/constraints.md (wH constraint): Add new
7166 constraints for allowing 32-bit integers (and eventually 8/16-bit
7167 integers) into the vector registers.
7168 (wI constraint): Likewise.
7169 (wJ constraint): Likewise.
7170 (wK constraint): Likewise.
7171 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
7172 -mvsx-small-integer as a default option for ISA 2.07
7173 (i.e. power8).
7174 (POWERPC_MASKS): Likewise.
7175 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
7176 switch to turn off small integer support in vector registers.
7177 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
7178 test for -mupper-regs-di, since it is already done with the
7179 reg_add[mode].scalar_in_vsx_p. Add support for the switch
7180 -mvsx-small-integer.
7181 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
7182 constraints.
7183 (rs6000_setup_reg_addr_masks): Likewise.
7184 (rs6000_init_hard_regno_mode_ok): Likewise.
7185 (rs6000_option_override_internal): Add consistency checks for
7186 -mvsx-small-integer.
7187 (rs6000_secondary_reload_simple_move): SImode is a simple move if
7188 -mvsx-small-integer.
7189 (rs6000_secondary_reload): Use std::swap.
7190 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
7191 VSX_REGS for small integers in vector registers, since there is no
7192 D-FORM address mode for such types.
7193 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
7194 (rs6000_opt_masks): Add -mvsx-small-integer.
7195 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
7196 support.
7197 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
7198 extracts can be done on ISA 2.07.
7199 (vsx_extract_<mode>): Add support for small integers in vsx
7200 registers.
7201 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
7202 longer support V4SImode in this pattern.
7203 (vsx_extract_si): New insn to support extraction of SImode in ISA
7204 2.07 using either xxextractuw or vspltw.
7205 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
7206 longer support V4SImode in this pattern.
7207 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
7208 wJ, and wK constraints.
7209 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
7210 storing SDmode with VSX instructions.
7211 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
7212 GPR load and before the FPR and VSX loads. Remove ??, ! from the
7213 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
7214 small integers in vector registers.
7215 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
7216 load and before the FPR and VSX loads. Remove ??, ! from the
7217 constraints. Add VEXTSW2D support for small integers in vector
7218 registers.
7219 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
7220 integers in vector registers.
7221 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
7222 move instead of using an UNSPEC.
7223 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
7224 integers in vector registers.
7225 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
7226 move instead of using an UNSPEC.
7227 (movsi_internal1): Add support for -mvsx-small-integer. Align
7228 columns so that it is more readable.
7229 (SImode splitter for ISA 3.0 constants): Add splitter for
7230 -128..127 constants that can easily be constructed on ISA 3.0.
7231 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
7232 constraints.
7233
7234 2016-10-27 Jakub Jelinek <jakub@redhat.com>
7235
7236 PR middle-end/78025
7237 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
7238 functions.
7239
7240 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
7241
7242 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
7243 PIC_OFFSET_TABLE_REGNUM twice.
7244
7245 2016-10-27 Bin Cheng <bin.cheng@arm.com>
7246
7247 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
7248 support for constant operand for OP.
7249
7250 2016-10-27 Jakub Jelinek <jakub@redhat.com>
7251
7252 * dwarf2out.c (gen_member_die): Only reparent_child instead of
7253 splice_child_die if child doesn't have DW_AT_specification attribute.
7254
7255 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7256
7257 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
7258 (TARGET_HAVE_LDREXBH): Likewise.
7259 (TARGET_HAVE_LDACQ): Likewise.
7260
7261 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7262
7263 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
7264 logic to to decide whether to copy over old value to register for new
7265 value.
7266 * config/arm/sync.md: Add comments explaning why mode and code
7267 attribute are not defined in iterators.md
7268 (thumb1_atomic_op_str): New code attribute.
7269 (thumb1_atomic_newop_str): Likewise.
7270 (thumb1_atomic_fetch_op_str): Likewise.
7271 (thumb1_atomic_fetch_newop_str): Likewise.
7272 (thumb1_atomic_fetch_oldop_str): Likewise.
7273 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
7274 mirror the more restrictive constraints of the Thumb-1 insns after
7275 split compared to Thumb-2 counterpart insns.
7276 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
7277 in sync with non atomic version.
7278 (atomic_nand<mode>): Likewise.
7279 (atomic_fetch_<sync_optab><mode>): Likewise.
7280 (atomic_fetch_nand<mode>): Likewise.
7281 (atomic_<sync_optab>_fetch<mode>): Likewise.
7282 (atomic_nand_fetch<mode>): Likewise.
7283 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
7284 in sync with atomic version.
7285 (thumb1_subsi3_insn): Likewise.
7286 (thumb1_andsi3_insn): Likewise.
7287 (thumb1_iorsi3_insn): Likewise.
7288 (thumb1_xorsi3_insn): Likewise.
7289
7290 2016-10-27 Nick Clifton <nickc@redhat.com>
7291
7292 * plugin.c (register_plugin_info): Produce an error message if the
7293 plugin is not found in the hash table.
7294
7295 2016-10-27 Bin Cheng <bin.cheng@arm.com>
7296
7297 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
7298 New pattern.
7299
7300 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
7301
7302 PR target/78056
7303 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
7304 define builtin functions from the bdesc_spe_predicates or
7305 bdesc_spe_evsel arrays if the builtin mask is not compatible with
7306 the current compiler configuration.
7307 (paired_init_builtins): Modify loop to not define define builtin
7308 functions from the bdesc_paried_preds array if the builtin mask is
7309 not compatible with the current compiler configuration.
7310 (altivec_init_builtins): Modify loops to not define the
7311 __builtin_altivec_stxvl function nor the builtin functions from
7312 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
7313 builtin mask is not compatible with the current compiler
7314 configuration.
7315
7316 2016-10-26 Jeff Law <law@redhat.com>
7317
7318 * config/sh/sh.c (output_branch): Add missing fallthru comments.
7319 (gen_shl_and): Likewise.
7320 * config/sh/sh.md (movsicc): Add missing fallthru comments.
7321
7322 * config/mips/mips.c (mips16_constant_cost): Add missing
7323 fallthru comments.
7324 (mips16_build_call_stub): Increase buffer size. Adjust
7325 fallthru comment.
7326
7327 2016-10-26 David Malcolm <dmalcolm@redhat.com>
7328
7329 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
7330 INSN_UIDs for all insns in compact mode.
7331 (rtx_writer::print_rtx): Likewise.
7332 * print-rtl.h (rtx_writer::flag_compact): Update comment.
7333 * rtl-tests.c (selftest::test_dumping_insns): Update expected
7334 output to include INSN_UID.
7335 (selftest::test_uncond_jump): Likewise.
7336
7337 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
7338
7339 * haifa-sched.c (call_used_regs_num): Rename to...
7340 (call_saved_regs_num): ...this.
7341 (fixed_regs_num): New variable.
7342 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
7343 regs not call_used.
7344 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
7345
7346 2016-10-26 David Malcolm <dmalcolm@redhat.com>
7347
7348 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
7349 class rtx_writer.
7350 * print-rtl.c (outfile): Delete global.
7351 (sawclose): Likewise.
7352 (indent): Likewise.
7353 (in_call_function_usage): Likewise.
7354 (flag_compact): Likewise.
7355 (flag_simple): Likewise.
7356 (rtx_writer::rtx_writer): New ctor.
7357 (print_rtx_operand_code_0): Convert to...
7358 (rtx_writer::print_rtx_operand_code_0): ...this.
7359 (print_rtx_operand_code_e): Convert to...
7360 (rtx_writer::print_rtx_operand_code_e): ...this.
7361 (print_rtx_operand_codes_E_and_V): Convert to...
7362 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
7363 (print_rtx_operand_code_i): Convert to...
7364 (rtx_writer::print_rtx_operand_code_i): ...this.
7365 (print_rtx_operand_code_r): Convert to...
7366 (rtx_writer::print_rtx_operand_code_r): ...this.
7367 (print_rtx_operand_code_u): Convert to...
7368 (rtx_writer::print_rtx_operand_code_u): ...this.
7369 (print_rtx_operand): Convert to...
7370 (rtx_writer::print_rtx_operand): ...this.
7371 (print_rtx): Convert to...
7372 (rtx_writer::print_rtx): ...this.
7373 (print_inline_rtx): Rewrite in terms of class rtx_writer.
7374 (debug_rtx): Likewise.
7375 (print_rtl): Convert to...
7376 (rtx_writer::print_rtl): ...this.
7377 (print_rtl): Reimplement in terms of class rtx_writer.
7378 (print_rtl_single): Rewrite in terms of class rtx_writer.
7379 (print_rtl_single_with_indent): Convert to..
7380 (rtx_writer::print_rtl_single_with_indent): ...this.
7381 (print_simple_rtl): Rewrite in terms of class rtx_writer.
7382 * print-rtl.h (flag_compact): Delete decl.
7383 (class rtx_writer): New class.
7384 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
7385 class rtx_writer.
7386
7387 2016-10-26 Jeff Law <law@redhat.com>
7388
7389 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
7390 fallthru.
7391
7392 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
7393 (check_if_valid_sleep_operand): Add missing fallthru comment.
7394 (arc_register_move_cost): Increase buffer size.
7395 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
7396 comment.
7397 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
7398
7399 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
7400 comment. Add gcc_unreachable for path that should never happen.
7401
7402 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
7403 fallthru comment.
7404
7405 2016-10-26 Jakub Jelinek <jakub@redhat.com>
7406 Martin Liska <mliska@suse.cz>
7407
7408 PR fortran/77973
7409 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
7410 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
7411 on outer context if any.
7412
7413 2016-10-26 Jakub Jelinek <jakub@redhat.com>
7414
7415 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
7416 by increment rather than double it.
7417 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
7418 emit a space before args[4].
7419 (END): Don't emit a space before with_arg.
7420
7421 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7422
7423 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
7424 Baseline only alternatives to (i) hold store atomic success value in a
7425 return register rather than a scratch register, (ii) use a low register
7426 for it and to (iii) ensure the cbranchsi insn generated by the split
7427 respect the constraints of Thumb-1 cbranchsi4_insn and
7428 cbranchsi4_scratch.
7429 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
7430 constraints must match those in atomic_compare_and_swap.
7431 (cbranchsi4_scratch): Likewise.
7432
7433 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7434
7435 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
7436 variable. Add the new parameter to the insn generator. Set that
7437 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
7438 return value from the negation of that parameter for Thumb-1, keeping
7439 the logic unchanged otherwise except for using bdst as the destination
7440 register of the compare_and_swap insn.
7441 (arm_split_compare_and_swap): Add explanation about how is the value
7442 returned to the function comment. Rename scratch variable to
7443 neg_bval. Adapt initialization of variables holding operands to the
7444 new operand numbers. Use return register to hold result of store
7445 exclusive for Thumb-1, scratch register otherwise. Construct the
7446 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
7447 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
7448 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
7449 for strongly ordered compare_and_swap.
7450 * config/arm/predicates.md (cc_register_operand): New predicate.
7451 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
7452 match_operand with the new predicate to accept either the CC flag or a
7453 destination register for the boolean return value, restricting it to
7454 CC flag only via constraint. Adapt operand numbers accordingly.
7455
7456 2016-10-26 Jeff Law <law@redhat.com>
7457
7458 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
7459
7460 * config/frv/frv.c (comparison_string): Do not fall through after
7461 an error.
7462
7463 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
7464 comment.
7465 (expand_one_builtin): Add missing break.
7466
7467 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
7468 (m32c_legitimate_address_p): Likewise.
7469
7470 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
7471
7472 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
7473
7474 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
7475 fallthru comment.
7476
7477 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
7478 fallthru comment.
7479
7480 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
7481
7482 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
7483 comment.
7484 (rl78_asm_ctor_dtor): Increase buffer size.
7485
7486 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
7487 buffer size.
7488 (xstormy16_asm_output_constructor): Likewise.
7489
7490 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
7491 size.
7492
7493 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
7494 comment to silence warning.
7495
7496 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
7497 (spu_legitimate_address_p): Fix logic error and add missing fallthru
7498 comment.
7499
7500 2016-10-26 Michael Matz <matz@suse.de>
7501
7502 PR tree-optimization/78060
7503 PR tree-optimization/78061
7504 PR tree-optimization/78088
7505 * tree-ssa-loop-split.c (easy_exit_values): New function.
7506 (tree_ssa_split_loops): Use it.
7507 (compute_new_first_bound): Change order of operations,
7508 fix invalid use of types.
7509
7510 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
7511
7512 gen-pass-instances.awk is sensitive to the order in which
7513 passes are added; passes that appear later have to be added first.
7514
7515 PR target/71676
7516 PR target/71678
7517 * config/avr/avr-passes.def: Swap order of directives for
7518 gen-pass-instances.awk.
7519
7520 2016-10-25 Jeff Law <law@redhat.com>
7521
7522 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
7523 (vax_notice_update_cc): Likewise.
7524
7525 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
7526
7527 * config.gcc (sparc*-*-solaris2*): Adjust.
7528 (sparc64-*-linux*): Likewise.
7529 * config/sparc/default-64.h: Rename to...
7530 * config/sparc/default64.h: ...this.
7531 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
7532 with TARGET_ARCH64.
7533 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
7534 * config/sparc/sparc.h: Minor tweaks.
7535 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
7536 TARGET_ARCH32 throughout. Minor various tweaks throughout.
7537
7538 2016-10-25 David Malcolm <dmalcolm@redhat.com>
7539
7540 * input.c (fcache::file_patch): Add comment about lifetime.
7541 (selftest::cpp_reader_ptr): New class.
7542 (selftest::lexer_test): Convert m_parser from cpp_reader *
7543 to a cpp_reader_ptr, and move m_tempfile to after it.
7544 (selftest::lexer_test::lexer_test): Update for above reordering.
7545 (lexer_test::~lexer_test): Move cleanup of m_parser to
7546 cpp_reader_ptr's dtor.
7547
7548 2016-10-25 David Malcolm <dmalcolm@redhat.com>
7549
7550 * toplev.c (toplev::main): Remove call to
7551 location_adhoc_data_fini.
7552
7553 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
7554
7555 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
7556 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
7557
7558 2016-10-25 David Malcolm <dmalcolm@redhat.com>
7559
7560 * ggc-tests.c (forcibly_ggc_collect): Rename to...
7561 (selftest::forcibly_ggc_collect): ...this, and remove "static".
7562 (test_basic_struct): Update for above renaming.
7563 (test_length): Likewise.
7564 (test_union): Likewise.
7565 (test_finalization): Likewise.
7566 (test_deletable_global): Likewise.
7567 (test_inheritance): Likewise.
7568 (test_chain_next): Likewise.
7569 (test_user_struct): Likewise.
7570 (test_tree_marking): Likewise.
7571 * selftest-run-tests.c (selftest::run_tests): Call
7572 selftest::forcibly_ggc_collect at the end of the selftests.
7573 * selftest.h (selftest::forcibly_ggc_collect): New decl.
7574
7575 2016-10-25 Jakub Jelinek <jakub@redhat.com>
7576
7577 PR target/78102
7578 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
7579 * optabs.c (expand_vec_cond_expr): For comparison codes
7580 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
7581 (expand_vec_cmp_expr): For comparison codes
7582 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
7583 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
7584 Add enum tree_code argument.
7585 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
7586 inline functions.
7587 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
7588 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
7589 fallback.
7590 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
7591 NE_EXPR, attempt to use vcondeq_optab as fallback.
7592 * tree-vect-generic.c (expand_vector_comparison,
7593 expand_vector_divmod, expand_vector_condition): Adjust
7594 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
7595 * tree-vect-stmts.c (vectorizable_condition,
7596 vectorizable_comparison): Likewise.
7597 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
7598 check_bool_pattern, search_type_for_mask_1): Likewise.
7599 * expr.c (do_store_flag): Likewise.
7600 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
7601 @code{vcondeq@var{m}@var{n}}): Document.
7602 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
7603 New expanders.
7604
7605 2016-10-25 Jeff Law <law@redhat.com>
7606
7607 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
7608 comment.
7609 (v850_output_aligned_bss): Add missing break.
7610
7611 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
7612
7613 2016-10-25 Martin Liska <mliska@suse.cz>
7614
7615 PR sanitizer/78106
7616 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
7617 statements as they can also contain possibly a freeing call.
7618
7619 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
7620 Martin Liska <mliska@suse.cz>
7621
7622 PR ipa/78099
7623 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
7624 * ipa-icf.c (sem_function::get_hash): Add target optimization
7625 node to hash.
7626
7627 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
7628
7629 PR target/78041
7630 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
7631 Remove partial overlap check for shift by 1.
7632 (ashldi3_neon): Likewise.
7633
7634 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
7635
7636 * config/arm/constraints.md (Q constraint): Document its use for
7637 Thumb-1.
7638 (Pf constraint): New constraint for relaxed, consume or relaxed memory
7639 models.
7640 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
7641 alternatives to allow any register when memory model matches Pf and
7642 thus lda is used, but only low registers otherwise. Use unpredicated
7643 output template for Thumb-1 targets.
7644 (atomic_store<mode>): Likewise for stl.
7645 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
7646 whose output template does not have predication.
7647 (arm_load_acquire_exclusive<mode>): Likewise.
7648 (arm_load_exclusivesi): Likewise.
7649 (arm_load_acquire_exclusivesi): Likewise.
7650 (arm_store_release_exclusive<mode>): Likewise.
7651 (arm_store_exclusive<mode>): Use unpredicated output template for
7652 Thumb-1 targets.
7653
7654 2016-10-25 Jakub Jelinek <jakub@redhat.com>
7655
7656 * internal-fn.def (LAUNDER): New internal function.
7657 * internal-fn.c (expand_LAUNDER): New function.
7658
7659 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
7660 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
7661
7662 New avr target pass to work around performance loss by PR fix.
7663
7664 PR target/71676
7665 PR target/71678
7666 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
7667 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
7668 * config/avr/predicates.md (extend_operator): New.
7669 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
7670 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
7671 (make_avr_pass_casesi): New prototypes.
7672 * config/avr/avr.c (print-rtl.h): Include it.
7673 (pass_data avr_pass_data_casesi): Data for new pass.
7674 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
7675 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
7676 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
7677 (avr_optimize_casesi): New functions.
7678
7679 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
7680 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
7681
7682 PR target/71676
7683 PR target/71678
7684 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
7685
7686 2016-10-24 Jakub Jelinek <jakub@redhat.com>
7687
7688 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
7689 DW_AT_rvalue_reference attributes.
7690
7691 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
7692
7693 * doc/invoke.text (Wint-in-bool-context): Update documentation.
7694 * value-prof.c (stringop_block_profile): Fix a warning.
7695
7696 2016-10-24 Martin Sebor <msebor@redhat.com>
7697
7698 PR middle-end/77735
7699 * builtins.c (string_length): New function.
7700 (c_strlen): Use string_length. Correctly handle wide strings.
7701 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
7702 functions.
7703 (target_int_max): Call target_max_value.
7704 (format_result::knownrange): New data member.
7705 (fmtresult::fmtresult): Define default constructor.
7706 (format_integer): Use it and set format_result::knownrange.
7707 Handle global constants.
7708 (format_floating_max): Add third argument.
7709 (format_floating): Recompute maximum value for %a for each argument.
7710 (get_string_length): Use fmtresult default ctor.
7711 (format_string): Set format_result::knownrange.
7712 (format_directive): Check format_result::knownrange.
7713 (add_bytes): Same. Correct caret placement in diagnostics.
7714 (pass_sprintf_length::compute_format_length): Set
7715 format_result::knownrange.
7716 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
7717
7718 2016-10-24 Jakub Jelinek <jakub@redhat.com>
7719
7720 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
7721 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
7722
7723 2016-10-24 Ximin Luo <infinity0@pwned.gg>
7724
7725 PR debug/77985
7726 * dwarf2out.c (file_table_relative_p): Remove.
7727 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
7728 also for absolute paths.
7729 * doc/tm.texi: Update.
7730 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
7731 * target.def (force_at_comp_dir): Remove hook.
7732 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
7733
7734 2016-10-24 Richard Biener <rguenther@suse.de>
7735
7736 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
7737 backedges when identifying the single predecessor to take
7738 conditional info from. Use SCEV to get at ranges for loop IVs.
7739 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
7740 avoid false warning.
7741
7742 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
7743
7744 PR target/78093
7745 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
7746 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
7747 (avr_address_tiny_absdata_p): New static function.
7748 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
7749 it to determine validity of constant addresses.
7750 (avr_attribute_table) [absdata]: New variable attribute...
7751 (avr_handle_absdata_attribute): ...and handler.
7752 (avr_decl_absdata_p): New static function.
7753 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
7754 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
7755 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
7756
7757 2016-10-24 Richard Biener <rguenther@suse.de>
7758
7759 PR tree-optimization/78076
7760 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
7761 also on the loop tree root.
7762
7763 2016-10-24 Jakub Jelinek <jakub@redhat.com>
7764
7765 * config/i386/i386.c (ix86_fold_builtin): Handle
7766 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
7767 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
7768 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
7769 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
7770
7771 2016-10-24 Martin Liska <mliska@suse.cz>
7772
7773 PR sanitizer/77966
7774 * opts.c (finish_options): Skip conditionally.
7775
7776 2016-10-23 Martin Sebor <msebor@redhat.com>
7777
7778 PR target/77837
7779 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
7780 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
7781
7782 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
7783
7784 * config/sparc/sparc.md (cpu_feature): Minor tweak.
7785 (enabled): Likewise.
7786 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
7787 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
7788 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
7789 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
7790 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
7791 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
7792
7793 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
7794
7795 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
7796 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
7797
7798 2016-10-21 Andrew Pinski <apinski@cavium.com>
7799
7800 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
7801 integer constants.
7802 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
7803 implementer_id to unsigned char.
7804 Change part_no to unsigned int.
7805 (AARCH64_BIG_LITTLE): New define.
7806 (INVALID_IMP): New define.
7807 (INVALID_CORE): New define.
7808 (cpu_data): Change the last element's implementer_id and part_no to
7809 integers.
7810 (valid_bL_string_p): Rewrite to ..
7811 (valid_bL_core_p): this for integers instead of strings.
7812 (parse_field): New function.
7813 (contains_string_p): Rewrite to ...
7814 (contains_core_p): this for integers and only for the part_no.
7815 (host_detect_local_cpu): Rewrite handling of implementation and
7816 par num to be integers; simplifying the code.
7817
7818 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
7819
7820 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
7821 value range for pointers in more cases.
7822
7823 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
7824
7825 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
7826 Add extra argument to allow emitting the move immediate.
7827 Use add/sub with positive immediate.
7828 (aarch64_add_constant): Add inline function.
7829 (aarch64_add_sp): Likewise.
7830 (aarch64_sub_sp): Likewise.
7831 (aarch64_expand_prologue): Call aarch64_sub_sp.
7832 (aarch64_expand_epilogue): Call aarch64_add_sp.
7833 Decide when to leave out move.
7834 (aarch64_output_mi_thunk): Call aarch64_add_constant.
7835
7836 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
7837
7838 * config/aarch64/aarch64.c (aarch64_layout_frame):
7839 Align FP callee-saves.
7840
7841 2016-10-21 Jakub Jelinek <jakub@redhat.com>
7842
7843 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
7844 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
7845 Formatting fixes.
7846 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
7847 _rdseed64_step): Likewise.
7848 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
7849
7850 PR target/78057
7851 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
7852 and tree-ssanames.h.
7853 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
7854 with INTEGER_CST argument.
7855 (ix86_gimple_fold_builtin): New function.
7856 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
7857
7858 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
7859 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
7860 (ranges_table_allocated, ranges_table_in_use,
7861 ranges_by_label_allocated, ranges_by_label_in_use,
7862 RANGES_TABLE_INCREMENT): Removed.
7863 (add_ranges_num): Use vec_safe_push into ranges_table.
7864 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
7865 (output_ranges): Adjust for ranges_table and ranges_by_label
7866 conversion from arrays to vec.
7867 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
7868 conversion from arrays to vec.
7869 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
7870 ranges_table_in_use, ranges_by_label_allocated and
7871 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
7872
7873 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
7874 if needed. Re-add origin_die variable and its initialization.
7875
7876 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
7877 even for -fstack-reuse=none, or for volatile vars etc.
7878
7879 2016-10-21 David Malcolm <dmalcolm@redhat.com>
7880
7881 * print-rtl-function.c (flag_compact): Move extern decl to...
7882 * print-rtl.h (flag_compact): ...here.
7883 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
7884 (ASSERT_RTL_DUMP_EQ): New macro.
7885 (selftest::test_dumping_regs): New function.
7886 (selftest::test_dumping_insns): New function.
7887 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
7888 the insns.
7889 (selftest::rtl_tests_c_tests): Call the new test functions.
7890
7891 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7892
7893 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
7894 (outgoing_edges_match): Likewise.
7895 (try_crossjump_to_edge): Likewise.
7896 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
7897 (rtl_tidy_fallthru_edge): Likewise.
7898 * rtl.h (tablejump_p): Adjust prototype.
7899 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
7900
7901 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7902
7903 * rtl.h (label_ref_label): New function.
7904 (set_label_ref_label): New function.
7905 (LABEL_REF_LABEL): Delete.
7906 * alias.c (rtx_equal_for_memref_p): Adjust.
7907 * cfgbuild.c (make_edges): Likewise.
7908 (purge_dead_tablejump_edges): Likewise.
7909 * cfgexpand.c (convert_debug_memory_address): Likewise.
7910 * cfgrtl.c (patch_jump_insn): Likewise.
7911 * combine.c (distribute_notes): Likewise.
7912 * cse.c (hash_rtx_cb): Likewise.
7913 (exp_equiv_p): Likewise.
7914 (fold_rtx): Likewise.
7915 (check_for_label_ref): Likewise.
7916 * cselib.c (rtx_equal_for_cselib_1): Likewise.
7917 (cselib_hash_rtx): Likewise.
7918 * emit-rtl.c (mark_label_nuses): Likewise.
7919 * explow.c (convert_memory_address_addr_space_1): Likewise.
7920 * final.c (output_asm_label): Likewise.
7921 (output_addr_const): Likewise.
7922 * gcse.c (add_label_notes): Likewise.
7923 * genconfig.c (walk_insn_part): Likewise.
7924 * genrecog.c (validate_pattern): Likewise.
7925 * ifcvt.c (cond_exec_get_condition): Likewise.
7926 (noce_emit_store_flag): Likewise.
7927 (noce_get_alt_condition): Likewise.
7928 (noce_get_condition): Likewise.
7929 * jump.c (maybe_propagate_label_ref): Likewise.
7930 (mark_jump_label_1): Likewise.
7931 (redirect_exp_1): Likewise.
7932 (rtx_renumbered_equal_p): Likewise.
7933 * lra-constraints.c (operands_match_p): Likewise.
7934 * print-rtl.c (print_value): Likewise.
7935 * reload.c (find_reloads): Likewise.
7936 * reload1.c (set_label_offsets): Likewise.
7937 * reorg.c (get_branch_condition): Likewise.
7938 * rtl-tests.c (test_uncond_jump): Likewise.
7939 * rtl.c (rtx_equal_p_cb): Likewise.
7940 (rtx_equal_p): Likewise.
7941 * rtlanal.c (reg_mentioned_p): Likewise.
7942 (rtx_referenced_p): Likewise.
7943 (get_condition): Likewise.
7944 * varasm.c (const_hash_1): Likewise.
7945 (compare_constant): Likewise.
7946 (const_rtx_hash_1): Likewise.
7947 (output_constant_pool_1): Likewise.
7948
7949 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7950
7951 PR target/71627
7952 * reload.c (find_valid_class_1): Allow regclass if atleast one
7953 regno in regclass is ok. Compute and use rclass size based on
7954 actually available regnos for mode in rclass.
7955
7956 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
7957
7958 * config/sparc/sparc-modes.def (CCV): New.
7959 (CCXV): Likewise.
7960 * config/sparc/predicates.md (v_comparison_operator): New.
7961 (icc_comparison_operator): Add support for CCV/CCXV.
7962 (xcc_comparison_operator): Likewise.
7963 * config/sparc/sparc.c (output_cbranch): Likewise.
7964 (sparc_print_operand): Likewise.
7965 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
7966 (uaddvdi4): New expander.
7967 (addvdi4): Likewise.
7968 (uaddvdi4_sp32): New instruction.
7969 (addvdi4_sp32): Likewise.
7970 (uaddvsi4): New expander.
7971 (addvsi4): Likewise.
7972 (cmp_ccc_plus_sltu_set): New instruction.
7973 (cmp_ccv_plus): Likewise.
7974 (cmp_ccxv_plus): Likewise.
7975 (cmp_ccv_plus_set): Likewise.
7976 (cmp_ccxv_plus_set): Likewise.
7977 (cmp_ccv_plus_sltu_set): Likewise.
7978 (uaddvdi4): New expander.
7979 (subvdi4): Likewise.
7980 (usubdi4_sp32): New instruction.
7981 (subvdi4_sp32): Likewise.
7982 (usubvsi4): New expander.
7983 (subvsi4): Likewise.
7984 (cmpsi_minus_sltu_set): New instruction.
7985 (cmp_ccv_minus): Likewise.
7986 (cmp_ccxv_minus): Likewise.
7987 (cmp_ccv_minus_set): Likewise.
7988 (cmp_ccxv_minus_set): Likewise.
7989 (cmp_ccv_minus_sltu_set): Likewise.
7990 (unegvdi3): New expander.
7991 (negvdi3): Likewise.
7992 (unegdi3_sp32): New instruction.
7993 (negvdi3_sp32): Likewise.
7994 (unegvsi3): New expander.
7995 (negvsi3): Likewise.
7996 (cmp_ccc_neg_sltu_set): New instruction.
7997 (cmp_ccv_neg): Likewise.
7998 (cmp_ccxv_neg): Likewise.
7999 (cmp_ccv_neg_set): Likewise.
8000 (cmp_ccxv_neg_set): Likewise.
8001 (cmp_ccv_neg_sltu_set): Likewise.
8002
8003 * tree-ssa-loop-split.c: Remove trailing spaces.
8004 * match.pd: Likewise.
8005
8006 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8007
8008 PR rtl-optimization/78038
8009 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
8010 be deduced to set REG through the RTL structure.
8011 (make_defs_and_copies_lists): Return false on a failing get_defs call.
8012
8013 2016-10-21 Richard Biener <rguenther@suse.de>
8014
8015 PR tree-optimization/78051
8016 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
8017 and mark replaced if folding did something.
8018
8019 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
8020
8021 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
8022 and "protected" in visibility types.
8023 (rs6000_xcoff_declare_function_name): Fix formatting.
8024 (rs6000_xcoff_declare_object_name): Fix formatting.
8025
8026 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
8027
8028 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
8029 and IX86_BUILTIN_HUGE_VALQ here ...
8030 (ix86_expand_builtin): ... not here.
8031
8032 2016-10-20 Jakub Jelinek <jakub@redhat.com>
8033
8034 * doc/gty.texi (for_user): Use @item next to @findex.
8035
8036 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
8037
8038 PR target/78037
8039 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
8040 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
8041 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
8042 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
8043 __builtin_ia32_lzcnt_u16.
8044 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
8045 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
8046 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
8047 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
8048 (bmi_tzcnt_<mode>): New expander.
8049 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
8050 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
8051 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
8052 (lzcnt_<mode>): New expander.
8053 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
8054 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
8055 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
8056 (UINT64_FTYPE_UINT64): New.
8057 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
8058 (__builtin_ia32_lzcnt_u16): New description.
8059 (__builtin_ia32_lzcnt_u32): Ditto.
8060 (__builtin_ia32_lzcnt_u64): Ditto.
8061 (__builtin_ctzs): Remove description.
8062 (__builtin_ia32_tzcnt_u16): New description.
8063 (__builtin_ia32_tzcnt_u32): Ditto.
8064 (__builtin_ia32_tzcnt_u64): Ditto.
8065 * config/i386/i386.c (ix86_expand_args_builtin): Handle
8066 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
8067
8068 2016-10-20 Martin Liska <mliska@suse.cz>
8069
8070 PR lto/78049
8071 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
8072 comparison with STMT_UID_NOT_IN_RANGE.
8073 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
8074 LTRANS.
8075
8076 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
8077
8078 * compare-elim.c (conforming_compare): Accept UNSPECs.
8079 (find_comparison_dom_walker::before_dom_children): Deal with
8080 instructions both using and killing the flags register.
8081 (equivalent_reg_at_start): New function extracted from...
8082 (try_eliminate_compare): ...here. Use it and add support for
8083 registers and UNSPECs as second operand of the compare.
8084 * config/visium/visium-modes.def (CCV): New.
8085 * config/visium/predicates.md (visium_v_comparison_operator): New.
8086 (visium_branch_operator): Deal with CCV mode.
8087 * config/visium/visium.c (visium_select_cc_mode): Likewise.
8088 (output_cbranch): Likewise.
8089 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
8090 (uaddv<mode>4): New expander.
8091 (addv<mode>4): Likewise.
8092 (add<mode>3_insn_set_carry): New instruction.
8093 (add<mode>3_insn_set_overflow): Likewise.
8094 (addsi3_insn_set_overflow): Likewise.
8095 (usubv<mode>4): New expander.
8096 (subv<mode>4): Likewise.
8097 (sub<mode>3_insn_set_carry): New instruction.
8098 (sub<mode>3_insn_set_overflow): Likewise.
8099 (subsi3_insn_set_overflow): Likewise.
8100 (unegv<mode>3): New expander.
8101 (negv<mode>3): Likewise.
8102 (neg<mode>2_insn_set_overflow): New instruction.
8103 (addv_tst<mode>): Likewise.
8104 (subv_tst<mode>): Likewise.
8105 (negv_tst<mode>): Likewise.
8106 (cbranch<mode>4_addv_insn): New splitter and instruction.
8107 (cbranch<mode>4_subv_insn): Likewise.
8108 (cbranch<mode>4_negv_insn): Likewise.
8109
8110 2016-10-20 Richard Biener <rguenther@suse.de>
8111
8112 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
8113 Handle decls possibly not bound.
8114 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
8115 nothing_id for decls that might not be bound if we are interested
8116 for the address.
8117 (get_constraint_for_component_ref): Deal with that.
8118
8119 2016-10-20 Michael Matz <matz@suse.de>
8120
8121 Loop splitting.
8122 * common.opt (-fsplit-loops): New flag.
8123 * passes.def (pass_loop_split): Add.
8124 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
8125 (enable_fdo_optimizations): Add loop splitting.
8126 * timevar.def (TV_LOOP_SPLIT): Add.
8127 * tree-pass.h (make_pass_loop_split): Declare.
8128 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
8129 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
8130 * tree-ssa-loop-split.c: New file.
8131 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
8132 * doc/invoke.texi (fsplit-loops): Document.
8133 * doc/passes.texi (Loop optimization): Add paragraph about loop
8134 splitting.
8135
8136 2016-10-20 Richard Biener <rguenther@suse.de>
8137
8138 * cgraphunit.c (analyze_functions): Set node->definition to
8139 false to signal symbol removal to debug_hooks->late_global_decl.
8140 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
8141 WPA signal symbol removal to the debuginfo machinery.
8142 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
8143 using early_finised to guard the we're called for symbol
8144 removal case look at the symtabs definition flag.
8145 (gen_variable_die): Remove redundant check.
8146
8147 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8148
8149 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
8150
8151 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8152
8153 PR tree-optimization/53979
8154 * match.pd ((a ^ b) | a -> a | b): New pattern.
8155
8156 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
8157
8158 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
8159 config/pa/pa64-hpux-lib.h.
8160 (PA_CRTBEGIN_HACK): Likewise.
8161 (DTOR_LIST_BEGIN): Likewise.
8162
8163 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
8164
8165 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
8166 register only if "in" and "out" are different registers.
8167
8168 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
8169
8170 * omp-low.c (pass_oacc_device_lower::gate): New method.
8171 (execute): Always call execute_oacc_device_lower.
8172
8173 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8174
8175 PR tree-optimization/77916
8176 PR tree-optimization/77937
8177 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
8178 stopgap fix.
8179 (insert_initializers): Requirement of initializer for -1 should be
8180 based on pointer-typedness of the candidate basis.
8181
8182 2016-10-19 Bin Cheng <bin.cheng@arm.com>
8183
8184 PR tree-optimization/78005
8185 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
8186 upper (included) bound for niters of prolog loop.
8187 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
8188 Compute niters of scalar loop above which vectorized loop is
8189 preferred, as well as the upper (included) bound for the niters.
8190 (vect_do_peeling): Record niter bound for loops accordingly.
8191
8192 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
8193
8194 PR lto/77458
8195 * tree-core.h (enum tree_index): Put the complex types after their
8196 component types.
8197 * tree-streamer.c (verify_common_node_recorded): New function.
8198 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
8199
8200 2016-10-19 Martin Liska <mliska@suse.cz>
8201
8202 * cgraph.h (cgraph_edge::binds_to_current_def_p):
8203 Replace NULL with false as a return value.
8204
8205 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
8206
8207 PR tree-optimization/78024
8208 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
8209 don't clear BB_VISITED after processing.
8210
8211 2016-10-19 Richard Biener <rguenther@suse.de>
8212
8213 * domwalk.c (dom_walker::walk): Use RPO order.
8214
8215 2016-10-19 Richard Biener <rguenther@suse.de>
8216
8217 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
8218 stmts_to_remove.
8219 (evrp_dom_walker::~evrp_dom_walker): Free it.
8220 (evrp_dom_walker::stmts_to_remove): Add.
8221 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
8222 whose output we fully propagate for removal. Propagate
8223 into BB destination PHI arguments.
8224 (execute_early_vrp): Remove queued stmts. Dump value ranges
8225 before stmt removal.
8226
8227 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
8228
8229 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
8230 * passes.def: Add two instances of pass_walloca.
8231 * tree-pass.h (make_pass_walloca): New.
8232 * gimple-ssa-warn-alloca.c: New file.
8233 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
8234 -Wvla-larger-than= options.
8235
8236 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
8237
8238 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
8239 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
8240
8241 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
8242
8243 * config/rs6000/altivec.h (vec_xl_len): New macro.
8244 (vec_xst_len): New macro.
8245 (vec_cmpnez): New macro.
8246 (vec_cntlz_lsbb): New macro.
8247 (vec_cnttz_lsbb): New macro.
8248 (vec_xlx): New macro.
8249 (vec_xrx): New macro.
8250 (vec_all_nez): New C++ predicate template.
8251 (vec_any_eqz): New C++ predicate template.
8252 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
8253 conditional compilation.
8254 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
8255 conditional compilation.
8256 (vec_all_nez): New macro.
8257 (vec_any_eqz): New macro.
8258 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
8259 compilation.
8260 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
8261 compilation.
8262 * config/rs6000/vector.md (VI): Moved this mode iterator
8263 definition from altivec.md to vector.md.
8264 (UNSPEC_NEZ_P): New value.
8265 (vector_ne_<mode>_p): New expansion for implementation of
8266 vec_all_ne and vec_any_eq built-in functions.
8267 (vector_nez_<mode>_p): New expansion for implementation of
8268 vec_all_nez and vec_any_eqz built-in functions.
8269 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
8270 and vec_any_eq built-in function.
8271 (cr6_test_for_zero): New commentary to explain this expansion.
8272 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
8273 (cr6_test_for_lt): New commentary to explain this expansion.
8274 (cr6_test_for_lt_reverse): New commentary to explain this
8275 expansion.
8276 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8277 overloaded function prototypes for vec_all_ne, vec_all_nez,
8278 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
8279 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
8280 built-in functions.
8281 (altivec_resolve_overloaded_builtin): Modify the handling of
8282 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
8283 the compiler is configured to support TARGET_P9_VECTOR.
8284 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
8285 to explain the special processing that is given to predicate
8286 built-ins introduced using this macro.
8287 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
8288 the special processing given to predicate built-ins introduced
8289 using this macro.
8290 (BU_VSX_P): Likewise.
8291 (BU_P8V_AV_P): Likewise.
8292 (BU_P9V_AV_P): Likewise.
8293 (BU_P9V_AV_X): New macro.
8294 (BU_P9V_64BIT_AV_X): New macro.
8295 (BU_P9V_VSX_3): New macro.
8296 (BU_P9V_OVERLOAD_P): New macro.
8297 (LXVL): New BU_P9V_64BIT_VSX_2.
8298 (VEXTUBLX): New BU_P9V_AV_2.
8299 (VEXTUBRX): Likewise.
8300 (VEXTUHLX): Likewise.
8301 (VEXTUHRX): Likewise.
8302 (VEXTUWLX): Likewise.
8303 (VEXTUWRX): Likewise.
8304 (STXVL): New BU_P9V_64BIT_AV_X.
8305 (VCLZLSBB): New BU_P9V_AV_1.
8306 (VCTZLSBB): Likewise.
8307 (CMPNEB): New BU_P9V_AV_2.
8308 (CMPNEH): Likewise.
8309 (CMPNEW): Likewise.
8310 (CMPNEF): Likewise.
8311 (CMPNED): Likewise.
8312 (VCMPNEB_P): New BU_P9V_AV_P.
8313 (VCMPNEH_P): Likewise.
8314 (VCMPNEW_P): Likewise.
8315 (VCMPNED_P): Likewise.
8316 (VCMPNEFP_P): Likewise.
8317 (VCMPNEDP_P): Likewise.
8318 (CMPNEZB): New BU_P9V_AV_2.
8319 (CMPNEZH): Likewise.
8320 (CMPNEZW): Likewise.
8321 (VCMPNEZB_P): New BU_P9V_AV_P.
8322 (VCMPNEZH_P): Likewise.
8323 (VCMPNEZW_P): Likewise.
8324 (LXVL): New BU_P9V_OVERLOAD_2.
8325 (STXVL): New BU_P9V_OVERLOAD_3.
8326 (VEXTULX): New BU_P9V_OVERLOAD_2.
8327 (VEXTURX): Likewise.
8328 (CMPNEZ): Likewise.
8329 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
8330 (VCMPNE_P): Likewise.
8331 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
8332 (VCTZLSBB): Likewise.
8333 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
8334 comment to explain mode used for scratch register.
8335 (altivec_expand_stxvl_builtin): New function.
8336 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
8337 (altivec_init_builtins): Add initialized variable
8338 void_ftype_v16qi_pvoid_long and use this type to define the
8339 built-in function __builtin_altivec_stxvl.
8340 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
8341 (UNSPEC_STXVL): New value.
8342 (UNSPEC_VCLZLSBB): New value.
8343 (UNSPEC_VCTZLSBB): New value.
8344 (UNSPEC_VEXTUBLX): New value.
8345 (UNSPEC_VEXTUHLX): New value.
8346 (UNSPEC_VEXTUWLX): New value.
8347 (UNSPEC_VEXTUBRX): New value.
8348 (UNSPEC_VEXTUHRX): New value.
8349 (UNSPEC_VEXTUWRX): New value.
8350 (UNSPEC_VCMPNEB): New value.
8351 (UNSPEC_VCMPNEZB): New value.
8352 (UNSPEC_VCMPNEH): New value.
8353 (UNSPEC_VCMPNEZH): New value.
8354 (UNSPEC_VCMPNEW): New value.
8355 (UNSPEC_VCMPNEZW): New value.
8356 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
8357 vector of integer modes.
8358 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
8359 vector of float or double modes.
8360 (*vector_nez_<mode>_p): New insn for vector test all not equal or
8361 zero.
8362 (lxvl): New expand for load VSX vector with length.
8363 (*lxvl): New insn for load VSX vector with length.
8364 (stxvl): New expand for store VSX vector with length.
8365 (*stxvl): New insn for store VSX vector with length.
8366 (vcmpneb): New insn for vector of byte compare not equal.
8367 (vcmpnezb): New insn for vector of byte compare not equal or zero.
8368 (vcmpneh): New insn for vector of half word compare not equal.
8369 (vcmpnezh): New insn for vector of half word compare not equal or
8370 zero.
8371 (vcmpnew): New insn for vector of word compare not equal.
8372 (vcmpne<VSs>): New insn for vector of float or double compare not
8373 equal.
8374 (vcmpnezw): New insn for vector of word compare not equal or zero.
8375 (vclzlsbb): New insn for vector count leading zero
8376 least-significant bits byte.
8377 (vctzlsbb): New insn for vector count trailing zero least
8378 signficant bits byte.
8379 (vextublx): New insn for vector extract unsigned byte left
8380 indexed.
8381 (vextubrx): New insn for vector extract unsigned byte right
8382 indexed.
8383 (vextuhlx): New insn for vector extract unsigned half word left
8384 indexed.
8385 (vextuhrx): New insn for vector extract unsigned half word right
8386 indexed.
8387 (vextuwlx): New insn for vector extract unsigned word left
8388 indexed.
8389 (vextuwrx): New insn for vector extract unsigned word right
8390 indexed.
8391 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
8392 clarify intent of this constant.
8393 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
8394 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
8395 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
8396 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
8397 and vec_xrx functions.
8398
8399 2016-10-18 Andrew Pinski <apinski@cavium.com>
8400
8401 PR tree-opt/65950
8402 * predict.c (is_exit_with_zero_arg): New function.
8403 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
8404 as nottaken.
8405
8406 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
8407
8408 PR target/77991
8409 * config/i386/i386.c (legitimize_tls_address)
8410 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
8411 convert dest to Pmode if different than Pmode.
8412
8413 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8414
8415 PR tree-optimization/77916
8416 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
8417 stopgap fix, as pointers with -1 increment are still broken.
8418
8419 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
8420
8421 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
8422 mapping class decoration from here...
8423 (rs6000_xcoff_encode_section): ...to here.
8424
8425 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
8426 if shrink-wrapping and optimizing for speed.
8427
8428 2016-10-18 Richard Biener <rguenther@suse.de>
8429
8430 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
8431 not visited but non-executable predecessors. Return taken edge.
8432 Simplify conditions and refactor propagation vs. folding step.
8433
8434 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
8435
8436 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
8437 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
8438 (rs6000_get_separate_components): Assert we do not have those
8439 strategies selected.
8440
8441 2016-10-18 Richard Biener <rguenther@suse.de>
8442
8443 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
8444 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
8445 clearing.
8446 (substitute_and_fold_dom_walker): Adjust constructor.
8447 (substitute_and_fold_dom_walker::before_dom_children): Remove
8448 do_dce flag and handling (always true).
8449 (substitute_and_fold): Likewise.
8450 * tree-vrp.c (vrp_finalize): Adjust.
8451 (execute_early_vrp): Remove final BB_VISITED clearing.
8452 * tree-ssa-ccp.c (ccp_finalize): Adjust.
8453 * tree-ssa-copy.c (fini_copy_prop): Likewise.
8454 * ira.c (ira): Call clear_bb_flags.
8455
8456 2016-10-18 Richard Biener <rguenther@suse.de>
8457
8458 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
8459 get at the operand to look at with TREE_OPERAND for generic
8460 sub-nodes.
8461
8462 2016-10-18 David Malcolm <dmalcolm@redhat.com>
8463
8464 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
8465 copy_md_ptr_loc.
8466 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
8467 (write_test_expr): Use rtx_reader_ptr for calls to
8468 fprint_c_condition.
8469 (write_attr_value): Likewise.
8470 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
8471 call to print_md_ptr_loc.
8472 (write_one_condition): Likewise for calls to print_c_condition.
8473 * genconstants.c: Include "statistics.h" and "vec.h".
8474 (main): Update for conversion to member functions.
8475 * genemit.c (emit_c_code): Use rtx_reader_ptr for
8476 call to print_md_ptr_loc.
8477 * genenums.c: Include "statistics.h" and "vec.h".
8478 (main): Update for conversion of traverse_enum_types to a method.
8479 * genmddeps.c: Include "statistics.h" and "vec.h".
8480 * genoutput.c (process_template): Use rtx_reader_ptr for call to
8481 print_md_ptr_loc.
8482 * genpreds.c (write_predicate_subfunction): Likewise.
8483 (write_predicate_expr): Likewise for calls to print_c_condition.
8484 * genrecog.c (print_test): Likewise.
8485 * gensupport.c (process_rtx): Likewise for calls to
8486 copy_md_ptr_loc and join_c_conditions.
8487 (alter_test_for_insn): Likewise for call to join_c_conditions.
8488 (process_substs_on_one_elem): Likewise.
8489 (gen_mnemonic_setattr): Update for move of string_obstack to a
8490 field of rtx_reader.
8491 (mnemonic_htab_callback): Likewise. Fix formatting.
8492 (gen_mnemonic_attr): Likewise.
8493 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
8494 to print_c_condition.
8495 * read-md.c: Include "statistics.h" and "vec.h".
8496 (string_obstack): Convert this global to field "m_string_obstack"
8497 of class rtx_reader.
8498 (ptr_locs): Likewise, as "m_ptr_locs".
8499 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
8500 (joined_conditions): Likewise, as "m_joined_conditions".
8501 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
8502 (md_constants): Likewise, as "m_md_constants".
8503 (enum_types): Likewise, as "m_enum_types".
8504 (set_md_ptr_loc): Convert to...
8505 (rtx_reader::set_md_ptr_loc): ...member function.
8506 (get_md_ptr_loc): Convert to...
8507 (rtx_reader::get_md_ptr_loc): ...member function.
8508 (copy_md_ptr_loc): Convert to...
8509 (rtx_reader::copy_md_ptr_loc): ...member function.
8510 (fprint_md_ptr_loc): Convert to...
8511 (rtx_reader::fprint_md_ptr_loc): ...member function.
8512 (print_md_ptr_loc): Convert to...
8513 (rtx_reader::print_md_ptr_loc): ...member function.
8514 (join_c_conditions): Convert to...
8515 (rtx_reader::join_c_conditions): ...member function.
8516 (fprint_c_condition): Convert to...
8517 (rtx_reader::fprint_c_condition): ...member function.
8518 (print_c_condition): Convert to...
8519 (rtx_reader::print_c_condition): ...member function.
8520 (read_name): Convert to...
8521 (rtx_reader::read_name): ...member function.
8522 (read_escape): Convert to...
8523 (rtx_reader::read_escape): ...member function.
8524 (read_quoted_string): Convert to...
8525 (rtx_reader::read_quoted_string): ...member function.
8526 (read_braced_string): Convert to...
8527 (rtx_reader::read_braced_string): ...member function.
8528 (read_string): Convert to...
8529 (rtx_reader::read_string): ...member function.
8530 (read_skip_construct): Convert to...
8531 (rtx_reader::read_skip_construct): ...member function.
8532 (handle_constants): Convert to...
8533 (rtx_reader::handle_constants): ...member function.
8534 (traverse_md_constants): Convert to...
8535 (rtx_reader::traverse_md_constants): ...member function.
8536 (handle_enum): Convert to...
8537 (rtx_reader::handle_enum): ...member function.
8538 (lookup_enum_type): Convert to...
8539 (rtx_reader::lookup_enum_type): ...member function.
8540 (traverse_enum_types): Convert to...
8541 (rtx_reader::traverse_enum_types): ...member function.
8542 (rtx_reader::rtx_reader): Move initializations
8543 of various former global data from rtx_reader::read_md_files to
8544 here, as fields, along with the call to unlock_std_streams.
8545 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
8546 the new fields.
8547 (rtx_reader::read_md_files): Move initializations of various
8548 global data from here to the ctor.
8549 * read-md.h (read_name): Convert to...
8550 (rtx_reader::read_name): ...member function.
8551 (rtx_reader::read_escape): New method decl.
8552 (read_quoted_string): Convert to...
8553 (rtx_reader::read_quoted_string): ...member function.
8554 (rtx_reader::read_braced_string): New method decl.
8555 (read_string): Convert to...
8556 (rtx_reader::read_string): ...member function.
8557 (rtx_reader::read_skip_construct): New method decl.
8558 (rtx_reader::set_md_ptr_loc): New method decl.
8559 (rtx_reader::get_md_ptr_loc): New method decl.
8560 (copy_md_ptr_loc): Convert to...
8561 (rtx_reader::copy_md_ptr_loc): ...member function.
8562 (fprint_md_ptr_loc): Convert to...
8563 (rtx_reader::fprint_md_ptr_loc): ...member function.
8564 (print_md_ptr_loc): Convert to...
8565 (rtx_reader::print_md_ptr_loc): ...member function.
8566 (rtx_reader::lookup_enum_type): New method decl.
8567 (rtx_reader::traverse_enum_types): New method decl.
8568 (rtx_reader::handle_constants): New method decl.
8569 (traverse_md_constants): Convert to...
8570 (rtx_reader::traverse_md_constants): ...member function.
8571 (rtx_reader::handle_enum): New method decl.
8572 (rtx_reader::join_c_conditions): New method decl.
8573 (fprint_c_condition): Convert to...
8574 (rtx_reader::fprint_c_condition): ...member function.
8575 (print_c_condition): Convert to...
8576 (rtx_reader::print_c_condition): ...member function.
8577 (rtx_reader::apply_iterator_to_string): New method decl.
8578 (rtx_reader::copy_rtx_for_iterators): New method decl.
8579 (rtx_reader::read_conditions): New method decl.
8580 (rtx_reader::record_potential_iterator_use): New method decl.
8581 (rtx_reader::read_mapping): New method decl.
8582 (rtx_reader::read_rtx): New method decl.
8583 (rtx_reader::read_rtx_code): New method decl.
8584 (rtx_reader::read_rtx_operand): New method decl.
8585 (rtx_reader::read_nested_rtx): New method decl.
8586 (rtx_reader::read_rtx_variadic): New method decl.
8587 (rtx_reader::get_string_obstack): New method.
8588 (rtx_reader::get_md_constants): New method.
8589 (string_obstack): Convert global variable decl to...
8590 (rtx_reader::m_string_obstack): ...this new field.
8591 (rtx_reader::m_ptr_locs): New field.
8592 (rtx_reader::m_ptr_loc_obstack): New field.
8593 (rtx_reader::m_joined_conditions): New field.
8594 (rtx_reader::m_joined_conditions_obstack): New field.
8595 (rtx_reader::m_md_constants): New field.
8596 (rtx_reader::m_enum_types): New field.
8597 * read-rtl.c (apply_iterator_to_string): Convert to...
8598 (rtx_reader::apply_iterator_to_string): ...member function.
8599 (copy_rtx_for_iterators): Convert to...
8600 (rtx_reader::copy_rtx_for_iterators): ...member function.
8601 (add_condition_to_string): Use rtx_reader_ptr for
8602 calls join_c_conditions.
8603 (apply_iterators): Use rtx_reader_ptr for calls to
8604 join_c_conditions and copy_rtx_for_iterators.
8605 (read_conditions): Convert to...
8606 (rtx_reader::read_conditions): ...member function.
8607 (record_potential_iterator_use): Convert to...
8608 (rtx_reader::record_potential_iterator_use): ...member function.
8609 (read_mapping): Convert to...
8610 (rtx_reader::read_mapping): ...member function.
8611 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
8612 (read_rtx): Convert to...
8613 (rtx_reader::read_rtx): ...member function.
8614 (read_rtx_code): Convert to...
8615 (rtx_reader::read_rtx_code): ...member function.
8616 (read_rtx_operand): Convert to...
8617 (rtx_reader::read_rtx_operand): ...member function. Update for move
8618 of string_obstack to a field.
8619 (read_nested_rtx): Convert to..
8620 (rtx_reader::read_nested_rtx): ...member function.
8621 (read_rtx_variadic): Convert to..
8622 (rtx_reader::read_rtx_variadic): ...member function.
8623
8624 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
8625
8626 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
8627
8628 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
8629
8630 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
8631 for pointer type too.
8632 (ipcp_update_vr): set_ptr_nonnull for pointer.
8633
8634 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
8635
8636 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
8637 pt_solution_singleton_p.
8638 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
8639 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
8640 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
8641 pointer nonnull computed by VRP.
8642 Also Conservatively set pt.null to 1.
8643 (pt_solution_reset): Conservatively set pt.null to 1.
8644 (pt_solution_singleton_or_null_p): Renamed from
8645 pt_solution_singleton_p.
8646 * tree-ssanames.h (set_ptr_nonnull): Declare.
8647 (get_ptr_nonnull): Likewise.
8648 * tree-ssanames.c (set_ptr_nonnull): New.
8649 (get_ptr_nonnull): Likewise.
8650 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
8651 (evrp_dom_walker::before_dom_children): Likewise.
8652
8653 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
8654
8655 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
8656 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
8657 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
8658 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
8659 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
8660 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
8661 (rs6000_option_override_internal): Clear it if ABI_AIX.
8662 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
8663 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
8664
8665 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8666
8667 * gimple-ssa-strength-reduction.c (record_increment): Remove
8668 garbage comment.
8669
8670 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
8671
8672 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
8673 that the result is non-zero if it is true.
8674 (maybe_expand_shift): New wrapper around expand_shift_1.
8675 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
8676
8677 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8678
8679 PR tree-optimization/77916
8680 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
8681 Don't allow a MINUS_EXPR for pointer arithmetic for either known
8682 or unknown strides.
8683 (record_increment): Increments of -1 for unknown strides just use
8684 a multiply initializer like other negative values.
8685 (analyze_increments): Remove stopgap solution for -1 increment
8686 applied to pointer arithmetic.
8687
8688 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
8689
8690 * dominance.c (dom_info::dom_info): Add new constructor for region
8691 which is vector of basic blocks.
8692 (dom_init): New method to initialize members common for both
8693 constructors.
8694 (dom_info::dom_info): Invoke dom_init for partial initialization.
8695 (dom_info::get_idom): Add check to corner cases on basic blocks which
8696 are not in region.
8697 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
8698 to detect unreachable bbs.
8699 (dom_info::calc_idoms): Likewise.
8700 (compute_dom_fast_query_in_region): New function.
8701 (calculate_dominance_info_for_region): Likewise.
8702 (free_dominance_info_for_region): Likewise.
8703 * dominance.h: Add prototypes for introduced region-based functions
8704 * tree-if-conv.c (build_region): New function.
8705 (if_convertible_loop_p_1): Invoke local version of post-dominators
8706 calculation before basic block predication with subsequent freeing
8707 post-dominator info.
8708 (tree_if_conversion): Remove free of post-dominator info
8709 (pass_if_conversion::execute): Delete detection of infinite loops
8710 and fake edges to exit block since post-dominator calculation is
8711 performed per if-converted loop only.
8712
8713 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
8714
8715 PR target/77308
8716 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
8717 register explicitly.
8718 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
8719 optimizing for size.
8720
8721 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8722
8723 * config/aarch64/aarch64.c: Delete inclusion of
8724 cortex-a57-fma-steering.h.
8725 (aarch64_override_options): Delete call
8726 to aarch64_register_fma_steering.
8727 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
8728 * config/aarch64/cortex-a57-fma-steering.h: Delete.
8729 * config/aarch64/aarch64-passes.def: New file.
8730 * config/aarch64/cortex-a57-fma-steering.c
8731 (aarch64_register_fma_steering): Delete definition.
8732 (make_pass_fma_steering): Remove static qualifier.
8733 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
8734 (cortex-a57-fma-steering.o): Remove dependency on
8735 cortex-a57-fma-steering.h.
8736
8737 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
8738
8739 * explow.c (validize_mem): Do not modify the argument in-place.
8740
8741 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
8742
8743 * tree-streamer.c (record_common_node): Explicitly list expected
8744 tree codes.
8745
8746 2016-10-17 Richard Biener <rguenther@suse.de>
8747
8748 PR tree-optimization/77988
8749 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
8750
8751 2016-10-17 Marek Polacek <polacek@redhat.com>
8752
8753 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
8754
8755 2016-10-17 Richard Biener <rguenther@suse.de>
8756
8757 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
8758 before using it.
8759
8760 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8761
8762 PR tree-optimization/71636
8763 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
8764
8765 2016-10-17 Richard Biener <rguenther@suse.de>
8766
8767 * gimplify.c (gimplify_function_tree): Do not move the outer
8768 binds block.
8769
8770 2016-10-17 Jakub Jelinek <jakub@redhat.com>
8771
8772 * langhooks.h (struct lang_hooks_for_decls): Remove
8773 function_decl_explicit_p, function_decl_deleted_p and
8774 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
8775 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
8776 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
8777 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
8778 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
8779 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
8780 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
8781 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
8782 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
8783 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
8784 * langhooks.c (lhd_decl_dwarf_attribute): New function.
8785 * dwarf2out.c (gen_subprogram_die): Use
8786 lang_hooks.decls.decl_dwarf_attribute instead of
8787 lang_hooks.decls.function_decl_*.
8788
8789 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
8790
8791 PR ada/37139
8792 PR ada/67205
8793 * common.opt (-ftrampolines): New option.
8794 * doc/invoke.texi (Code Gen Options): Document it.
8795 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
8796 * doc/tm.texi: Regenerate.
8797 * builtins.def: Add init_descriptor and adjust_descriptor.
8798 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
8799 on platforms with descriptors.
8800 (expand_builtin_init_descriptor): New function.
8801 (expand_builtin_adjust_descriptor): Likewise.
8802 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
8803 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
8804 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
8805 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
8806 Set STATIC_CHAIN_REG_P on the static chain register, if any.
8807 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
8808 (expand_call): Likewise. Move around call to prepare_call_address
8809 and pass all flags to it.
8810 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
8811 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
8812 (gimple_call_set_by_descriptor): New setter.
8813 (gimple_call_by_descriptor_p): New getter.
8814 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
8815 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
8816 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
8817 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
8818 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
8819 * rtl.h (STATIC_CHAIN_REG_P): New macro.
8820 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
8821 * target.def (custom_function_descriptors): New POD hook.
8822 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
8823 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
8824 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
8825 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
8826 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
8827 (build_common_builtin_nodes): Initialize init_descriptor and
8828 adjust_descriptor.
8829 * tree-nested.c: Include target.h.
8830 (struct nesting_info): Add 'any_descr_created' field.
8831 (get_descriptor_type): New function.
8832 (lookup_element_for_decl): New function extracted from...
8833 (create_field_for_decl): Likewise.
8834 (lookup_tramp_for_decl): ...here. Adjust.
8835 (lookup_descr_for_decl): New function.
8836 (convert_tramp_reference_op): Deal with descriptors.
8837 (build_init_call_stmt): New function extracted from...
8838 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
8839 * defaults.h (FUNCTION_ALIGNMENT): Define.
8840 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
8841 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
8842 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
8843 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
8844 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
8845
8846 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
8847
8848 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
8849 constants in CONST_VECTORs.
8850
8851 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
8852
8853 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
8854 register as destination of bmask.
8855 (vector_init_bshuffle): Likewise.
8856 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
8857 (bmaskdi_vis): Enable only in 64-bit mode.
8858
8859 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8860
8861 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
8862 make LR a separately shrink-wrapped component unless savres_strategy
8863 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
8864 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
8865 wrapping when not both {SAVE,REST}_INLINE_GPRS.
8866
8867 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
8868
8869 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
8870 and keep looping on failure.
8871
8872 2016-10-14 David Malcolm <dmalcolm@redhat.com>
8873
8874 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
8875 set.
8876 (print_rtx_function): Update example in comment for...
8877 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
8878 non-virtual pseudos with a '%' sigil followed by the regno, offset
8879 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
8880 pseudo is dumped as "%0".
8881
8882 2016-10-14 Jakub Jelinek <jakub@redhat.com>
8883
8884 PR middle-end/77959
8885 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
8886 return a MEM.
8887
8888 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
8889
8890 * config/sparc/sparc-passes.def: New file.
8891 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
8892 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
8893 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
8894
8895 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
8896
8897 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
8898 loop peel to loops with exit test at the beginning.
8899
8900 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
8901
8902 PR rtl-optimization/68212
8903 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
8904 frequency when computing scale factor for peeled copies.
8905 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
8906 values for switch/peel blocks/edges.
8907
8908 2016-10-14 Pedro Alves <palves@redhat.com>
8909
8910 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
8911
8912 2016-10-14 Catherine Moore <clm@codesourcery.com>
8913
8914 * config/mips/mips.c (mips_prepare_pch_save): Initialize
8915 micromips_globals to zero.
8916
8917 2016-10-14 Richard Biener <rguenther@suse.de>
8918
8919 PR tree-optimization/77979
8920 * tree-vrp.c (compare_name_with_value): Handle released SSA names
8921 in the equivalency sets.
8922 (compare_names): Likewise.
8923
8924 2016-10-14 Martin Liska <mliska@suse.cz>
8925
8926 * builtins.h(target_char_cst_p): Declare the function.
8927 * builtins.c (fold_builtin_memchr): Remove.
8928 (target_char_cst_p): Move the function from gimple-fold.c.
8929 (fold_builtin_3): Do not call the function.
8930 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
8931 (gimple_fold_builtin): Call the function.
8932 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
8933
8934 2016-10-14 Martin Liska <mliska@suse.cz>
8935
8936 * builtins.c (fold_builtin_strcmp): Remove function.
8937 (fold_builtin_strncmp): Likewise.
8938 (fold_builtin_2): Remove call of the function.
8939 (fold_builtin_3): Likewise.
8940 * fold-const-call.c (fold_const_call): Add constant folding
8941 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
8942 * fold-const-call.h (build_cmp_result): Declare the function.
8943 * gimple-fold.c (gimple_load_first_char): New function.
8944 (gimple_fold_builtin_string_compare): Likewise.
8945 (gimple_fold_builtin): Call the function.
8946
8947 2016-10-14 Nathan Sidwell <nathan@acm.org>
8948
8949 * gcov-io.c (gcov_open): Deconstify 'mode'.
8950
8951 2016-10-14 Martin Liska <mliska@suse.cz>
8952
8953 * fold-const.c (c_getstr): Support of properly \0-terminated
8954 string constants. New argument is added.
8955 * fold-const.h: New argument is added.
8956
8957 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8958
8959 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
8960 New function.
8961 (aarch64_print_hint_for_core): Likewise.
8962 (aarch64_print_hint_for_arch): Likewise.
8963 (aarch64_validate_march): Use it. Fix indentation in type signature.
8964 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
8965 (aarch64_validate_mtune): Likewise.
8966 (aarch64_handle_attr_arch): Likewise.
8967 (aarch64_handle_attr_cpu): Likewise.
8968 (aarch64_handle_attr_tune): Likewise.
8969
8970 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8971
8972 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
8973 and udivmod_optab.
8974
8975 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
8976
8977 * config/m68k/m68k.c (m68k_option_override): Check
8978 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
8979 instead of stack_limit_rtx.
8980
8981 2016-10-13 Jakub Jelinek <jakub@redhat.com>
8982
8983 * dwarf2out.c (gen_member_die): Handle inline static data member
8984 definitions.
8985
8986 2016-10-13 Nathan Sidwell <nathan@acm.org>
8987
8988 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
8989 gcov_var.mode. Remove unnecessary fstat.
8990
8991 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
8992
8993 PR bootstrap/77962
8994 * function.c (thread_prologue_and_epilogue_insns): Call all
8995 make_*logue_seq in the same order as traditional. Call them
8996 all a second time if shrink_wrapped_separate.
8997
8998 2016-10-13 Marek Polacek <polacek@redhat.com>
8999
9000 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
9001 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
9002 use -Wno-error.
9003
9004 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9005
9006 PR tree-optimization/77937
9007 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
9008 to infinite when we have a pointer with an increment of -1.
9009
9010 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9011
9012 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
9013 into ...
9014 * memmodel.h: This file.
9015 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
9016 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
9017 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
9018 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
9019 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
9020 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
9021 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
9022 compare-elim.c, config/aarch64/aarch64-builtins.c,
9023 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
9024 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
9025 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
9026 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
9027 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
9028 config/darwin.c, config/epiphany/epiphany.c,
9029 config/epiphany/mode-switch-use.c,
9030 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
9031 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
9032 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
9033 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
9034 config/m68k/m68k.c, config/mcore/mcore.c,
9035 config/microblaze/microblaze.c, config/mmix/mmix.c,
9036 config/mn10300/mn10300.c, config/moxie/moxie.c,
9037 config/msp430/msp430.c, config/nds32/nds32-cost.c,
9038 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
9039 config/nds32/nds32-memory-manipulation.c,
9040 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
9041 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
9042 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
9043 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
9044 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
9045 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
9046 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
9047 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
9048 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
9049 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
9050 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
9051 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
9052 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
9053 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
9054 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
9055 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
9056 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
9057 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
9058 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
9059 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9060 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
9061 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
9062 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
9063 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
9064 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
9065 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
9066 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
9067 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
9068 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
9069 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
9070 var-tracking.c, varasm.c: Include memmodel.h.
9071 * genattrtab.c (write_header): Include memmodel.h in generated file.
9072 * genautomata.c (main): Likewise.
9073 * gengtype.c (open_base_files): Likewise.
9074 * genopinit.c (main): Likewise.
9075 * genconditions.c (write_header): Include memmodel.h earlier in
9076 generated file.
9077 * genemit.c (main): Likewise.
9078 * genoutput.c (output_prologue): Likewise.
9079 * genpeep.c (main): Likewise.
9080 * genpreds.c (write_insn_preds_c): Likewise.
9081 * genrecog.c (write_header): Likewise.
9082 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
9083
9084 2016-10-13 David Malcolm <dmalcolm@redhat.com>
9085
9086 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
9087 for new "compact" param of print_rtx_function. Check for "cinsn"
9088 rather than "insn".
9089 * print-rtl-function.c (flag_compact): New decl.
9090 (print_rtx_function): Add param "compact" and use it to set
9091 flag_compact, adding a description of the effect to the leading
9092 comment, and updating the example output.
9093 * print-rtl.c (flag_compact): New variable.
9094 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
9095 mode.
9096 (print_rtx_operand_code_i): When printing source locations, wrap
9097 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
9098 (print_rtx_operand_code_r): Don't print regnos for hard regs and
9099 virtuals in compact mode.
9100 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
9101 apart from in LABEL_REFs.
9102 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
9103 Don't print basic block ids in compact mode.
9104 (print_rtx): In compact mode, prefix the code of insns with "c",
9105 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
9106 * print-rtl.h (print_rtx_function): Add "compact" param.
9107
9108 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
9109
9110 * arm.h (TARGET_VFP): Delete.
9111 (TARGET_VFPD32): Remove references to TARGET_VFP.
9112 (TARGET_VFP3, TARGET_VFP5): Likewise.
9113 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
9114 (TARGET_NEON_FP16): Likewise.
9115 (TARGET_FMA): Likewise.
9116 (TARGET_CRYPTO): Likewise.
9117 (TARGET_NEON): Likewise.
9118 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9119 (FUNCTION_ARG_REGNO_P): Likewise.
9120 * arm.c (arm_option_check_internal): Likewise.
9121 (arm_option_override): Likewise.
9122 (use_return_insn): Likewise.
9123 (arm_function_value_regno_p): Likewise.
9124 (arm_apply_result_size): Likewise.
9125 (use_vfp_abi): Likewise.
9126 (arm_legitimate_address_outer_p): Likewise.
9127 (thumb2_legitimate_address_p): Likewise.
9128 (arm_legitimate_index_p): Likewise.
9129 (thumb2_legitimate_index_p): Likewise.
9130 (arm_legitimate_address): Likewise.
9131 (arm_get_vfp_saved_size): Likewise.
9132 (arm_emit_vfp_multi_reg_pop): Likewise.
9133 (arm_get_frame_offsets): Likewise.
9134 (arm_save_coproc_regs): Likewise.
9135 (arm_hard_regno_mode_ok): Likewise.
9136 (arm_expand_epilogue_apcs_frame): Likewise.
9137 (arm_expand_epilogue): Likewise.
9138 (arm_file_start): Likewise.
9139 (arm_conditional_register_usage): Likewise.
9140 (arm_validize_comparison): Use vfp_compare_operand directly.
9141 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
9142 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
9143 unsupported usage.
9144 (arm_atomic_assign_expand_fenv): Likewise.
9145 * arm.md (divsf3): Likewise.
9146 (arm_negsi2): Likewise.
9147 (absdf2): Likewise.
9148 (arm_movdi): Likewise.
9149 (arm_movt): Likewise.
9150 (cbranchsf4): Change predicate to vfp_compare_operand.
9151 (cbranchdf4): Change predicate to vfp_compare_operand.
9152 (cstorehf4): Change predicate to vfp_compare_operand.
9153 (cstoresf4): Change predicate to vfp_compare_operand.
9154 (cstoredf4): Change predicate to vfp_compare_operand.
9155 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
9156 (movhi_insn_arch4, movhi_bytes): Likewise.
9157 * constraints.md (Dt): Likewise.
9158 (Dp): Likewise.
9159 * iterators.md (SDF): Likewise.
9160 * predicates.md (arm_float_compare_operand): Delete.
9161 (const_double_vcvt_power_of_two_reciprocal): Remove references to
9162 TARGET_VFP.
9163 (const_double_vcvt_power_of_two): Likewise.
9164 * thumb2.md thumb2_movsi_insn): Likewise.
9165 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
9166 (movhf_vfp): Likewise.
9167 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
9168 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
9169 (movsf_vfp, thumb2_movsf_vfp): Likewise.
9170 (movdf_vfp, thumb2_movdf_vfp): Likewise.
9171 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
9172 (subsf3_vfp, divsf3_vfp): Likewise.
9173 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
9174 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
9175 (mulsf3negsfsubsf_vfp): Likewise.
9176 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
9177 (floatunssisf2, sqrtsf2_vfp): Likewise.
9178 (movcc_vfp): Likewise.
9179 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
9180 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
9181 (push_multi_vfp): Likewise.
9182 (set_fpscr, get_fpscr): Likewise.
9183 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
9184
9185 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
9186
9187 * arm.h (TARGET_VFP): Unconditionally define to 1.
9188 (arm_fpu_desc): Remove 'model' field.
9189 (TARGET_FPU_MODEL): Delete.
9190 * arm.c (all_fpus): Don't initialize the model field.
9191 (arm_can_inline_p): Don't check the FPU model.
9192 * arm-fpus.def: Remove redundant model field from all FPU
9193 descriptions.
9194
9195 2016-10-13 Richard Biener <rguenther@suse.de>
9196
9197 PR middle-end/77826
9198 * genmatch.c (struct capture): Add value_match member.
9199 (commutate): Preserve value_match.
9200 (lower_opt_convert): Likewise.
9201 (lower_cond): Likewise.
9202 (replace_id): Likewise.
9203 (struct dt_operand): Add value_match member.
9204 (decision_tree::cmp_node): Compare it.
9205 (decision_tree::insert_operand): Honor it when finding and
9206 when appending a DT_MATCH.
9207 (dt_operand::gen_match_op): Generate a type check after
9208 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
9209 (parser::get_internal_capture_id): New helper.
9210 (parser::finish_match_operand): New function lowering @@<id>.
9211 (parser::parse_capture): Parse @@<id> as value-match.
9212 (parser::parse_expr): Use get_internal_capture_id.
9213 (parser::parse_simplify): Call finish_match_operand.
9214 (walk_captures): New helper.
9215 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
9216 of operand_equal_p.
9217 ((X /[ex] A) * A -> X): Likewise.
9218 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
9219 convert[12] and value-matching.
9220 ((A | B) & (A | C) -> A | (B & C)): Likewise.
9221 ((X | Y) | Y -> X | Y): Likewise.
9222 ((X ^ Y) ^ Y -> X): Likewise.
9223 (A - (A & B) -> ~B & A): Likewise.
9224 ((T)(P + A) - (T)P -> (T) A): Likewise.
9225 ((T)P - (T)(P + A) -> -(T) A): Likewise.
9226 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
9227 * doc/match-and-simplify.texi: Amend capture section.
9228
9229 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
9230
9231 * config/arc/arc.md (umul_600): Remove predicated variant.
9232 (umul64_600): Likewise.
9233
9234 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
9235
9236 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
9237
9238 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9239
9240 * tree-vect-loop.c (loop_niters_no_overflow): New func.
9241 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
9242 no-overflow information to vect_do_peeling_for_loop_bound and
9243 vect_gen_vector_loop_niters.
9244
9245 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9246
9247 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
9248 iterates 1 time.
9249
9250 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9251
9252 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
9253 adjust_vec automatically.
9254 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
9255 param exit_bb to guard_to.
9256 (slpeel_checking_verify_cfg_after_peeling):
9257 (set_prologue_iterations):
9258 (create_lcssa_for_virtual_phi): New func which is factored out from
9259 slpeel_tree_peel_loop_to_edge.
9260 (slpeel_tree_peel_loop_to_edge):
9261 (iv_phi_p): New func.
9262 (vect_can_advance_ivs_p): Call iv_phi_p.
9263 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
9264 new gimple stmts in basic block.
9265 (vect_gen_niters_for_prolog_loop): Rename to...
9266 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
9267 adjust implementation.
9268 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
9269 sizetype if necessary.
9270 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
9271 it to external function.
9272 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
9273 (vect_gen_vector_loop_niters_mult_vf): New.
9274 (slpeel_update_phi_nodes_for_loops): New.
9275 (slpeel_update_phi_nodes_for_guard1): Reimplement.
9276 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
9277 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
9278 * tree-vect-loop.c (vect_build_loop_niters): Move to file
9279 tree-vect-loop-manip.c
9280 (vect_generate_tmps_on_preheader): Delete.
9281 (vect_transform_loop): Rename vectorization_factor to vf. Call
9282 vect_do_peeling instead of vect_do_peeling-* functions.
9283 * tree-vectorizer.h (vect_do_peeling): New decl.
9284 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
9285 (vect_do_peeling_for_loop_bound): Delete.
9286 (vect_do_peeling_for_alignment): Delete.
9287
9288 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9289
9290 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
9291 duplicated loop after its preheader and after the original loop.
9292
9293 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9294
9295 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
9296 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
9297
9298 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9299
9300 * tree-vect-loop.c (vectorizable_live_operation): Support handling
9301 for live variable outside loop but not in lcssa form.
9302
9303 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9304
9305 * cfg.c (reset_original_copy_tables): New func.
9306 * cfg.h (reset_original_copy_tables): New decl.
9307
9308 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9309
9310 PR c/77946
9311 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
9312 public_flag.
9313 * varasm.c (default_binds_local_p_3): Formatting fix.
9314
9315 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9316
9317 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
9318 style issue.
9319 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
9320 Remove useless code.
9321
9322 2016-10-13 Martin Liska <mliska@suse.cz>
9323
9324 PR tree-optimization/77943
9325 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
9326 a different EH landing pads.
9327
9328 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9329
9330 PR target/77957
9331 * hooks.h (hook_tree_void_null): Declare.
9332 * hooks.c (hook_tree_void_null): New function.
9333 * langhooks.c (lhd_return_null_tree_v): Remove.
9334 * langhooks-def.h (lhd_return_null_tree_v): Remove.
9335 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
9336 set y to const0_rtx.
9337 * function.c (stack_protect_epilogue): Likewise.
9338 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
9339 if TARGET_THREAD_SSP_OFFSET is defined.
9340 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9341 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9342 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9343 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9344 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9345 (ix86_stack_protect_guard): New function.
9346
9347 2016-10-13 Richard Biener <rguenther@suse.de>
9348
9349 * dwarf2out.c (tree_add_const_value_attribute): Do not try
9350 rtl_for_decl_init during early phase.
9351 (gen_variable_die): Do not create locations during early phase.
9352 (gen_label_die): Likewise.
9353 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
9354 twice.
9355
9356 2016-10-12 Richard Biener <rguenther@suse.de>
9357
9358 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
9359 try_add_new_range and made to eturn new range.
9360 (evrp_dom_walker::before_dom_children): Push op1 value range before
9361 pushing op0 value range.
9362
9363 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9364
9365 PR tree-optimization/77937
9366 * gimple-ssa-strength-reduction.c (analyze_increments): Use
9367 POINTER_TYPE_P on the candidate type to determine whether
9368 candidates in this chain require pointer arithmetic.
9369
9370 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
9371
9372 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
9373 correction if the type is smaller than a word.
9374 (visium_select_cc_mode): Add ... fall through ... comment.
9375
9376 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9377
9378 * config/rs6000/rs6000.c (machine_function): Add new fields
9379 gpr_is_wrapped_separately and lr_is_wrapped_separately.
9380 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
9381 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
9382 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
9383 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
9384 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
9385 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
9386 (rs6000_get_separate_components): New function.
9387 (rs6000_components_for_bb): New function.
9388 (rs6000_disqualify_components): New function.
9389 (rs6000_emit_prologue_components): New function.
9390 (rs6000_emit_epilogue_components): New function.
9391 (rs6000_set_handled_components): New function.
9392 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
9393 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
9394 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
9395 (rs6000_emit_epilogue): Don't emit GPR restores if
9396 gpr_is_wrapped_separately for that register. Don't make a
9397 REG_CFA_RESTORE note for registers we did not restore, either.
9398
9399 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9400
9401 * function.c (thread_prologue_and_epilogue_insns): Call
9402 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
9403 if it has possibly changed. Compute the split_prologue_seq and
9404 epilogue_seq later, too.
9405 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
9406 (dump_components): New function.
9407 (struct sw): New struct.
9408 (SW): New function.
9409 (init_separate_shrink_wrap): New function.
9410 (fini_separate_shrink_wrap): New function.
9411 (place_prologue_for_one_component): New function.
9412 (spread_components): New function.
9413 (disqualify_problematic_components): New function.
9414 (emit_common_heads_for_components): New function.
9415 (emit_common_tails_for_components): New function.
9416 (insert_prologue_epilogue_for_components): New function.
9417 (try_shrink_wrapping_separate): New function.
9418 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
9419
9420 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9421
9422 * regrename.c (build_def_use): Invalidate chains that have a
9423 REG_CFA_RESTORE on some instruction.
9424
9425 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9426
9427 * dce.c (delete_unmarked_insns): Don't delete instructions with
9428 a REG_CFA_RESTORE note.
9429
9430 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9431
9432 * common.opt (-fshrink-wrap-separate): New flag.
9433 * doc/invoke.texi: Document it.
9434 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
9435 * doc/tm.texi: Regenerate.
9436 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
9437 * target.def (shrink_wrap): New hook vector.
9438 (get_separate_components, components_for_bb, disqualify_components,
9439 emit_prologue_components, emit_epilogue_components,
9440 set_handled_components): New hooks.
9441
9442 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9443
9444 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
9445 vector return by reference only if -Wpsabi.
9446 (rs6000_pass_by_reference): Similarly, for argument passing.
9447
9448 2016-10-12 David Malcolm <dmalcolm@redhat.com>
9449
9450 * function-tests.c: Include "print-rtl.h".
9451 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
9452 function, and verify what is dumped.
9453 * print-rtl-function.c (print_edge): New function.
9454 (begin_any_block): New function.
9455 (end_any_block): New function.
9456 (can_have_basic_block_p): New function.
9457 (print_rtx_function): Track the basic blocks of insns in the
9458 chain, wrapping those that are within blocks within "(block)"
9459 directives. Remove the "(cfg)" directive.
9460
9461 2016-10-12 David Malcolm <dmalcolm@redhat.com>
9462
9463 * selftest.c (selftest::read_file): New function.
9464 (selftest::test_read_file): New function.
9465 (selftest::selftest_c_tests): Call test_read_file.
9466 * selftest.h (selftest::read_file): New decl.
9467
9468 2016-10-12 Richard Biener <rguenther@suse.de>
9469
9470 PR debug/77947
9471 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
9472 function context.
9473
9474 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
9475
9476 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
9477
9478 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
9479 dwarf2out_assembly_start.
9480
9481 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
9482
9483 * Makefile.in (SELFTEST_FLAGS): New variable.
9484 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
9485
9486 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
9487 early_finish hook.
9488
9489 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
9490
9491 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
9492 dumped in RTL dumps.
9493
9494 2016-10-12 Martin Liska <mliska@suse.cz>
9495
9496 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
9497 (gimple_fold_builtin_memory_op): Use the function.
9498 (gimple_fold_builtin_strchr): Likewise.
9499 (gimple_fold_builtin_strcat): Likewise.
9500 (gimple_build): Likewise.
9501
9502 2016-10-12 Nathan Sidwell <nathan@acm.org>
9503
9504 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
9505
9506 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
9507
9508 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
9509 equivalent 32-bit constant (modulo 2**32) when that yields
9510 smaller instructions.
9511 (size_of_int_loc_descriptor): Update accordingly.
9512
9513 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
9514
9515 * dwarf2out.c (dwarf2out_early_global_decl): For nested
9516 functions, call dwarf2out_decl on the parent function first.
9517
9518 2016-10-12 Richard Biener <rguenther@suse.de>
9519
9520 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
9521 on the conversion.
9522
9523 2016-10-12 Richard Biener <rguenther@suse.de>
9524
9525 * tree-ssa-propagate.c
9526 (substitute_and_fold_dom_walker::before_dom_children): Do not
9527 ignore ASSERT_EXPRs but only preserve them.
9528 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
9529 that have been propagated into.
9530 (vrp_finalize): Enable DCE for substitute_and_fold.
9531
9532 2016-10-12 Richard Biener <rguenther@suse.de>
9533
9534 PR tree-optimization/77920
9535 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
9536 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
9537 (simplify_abs_using_ranges): Likewise.
9538 (simplify_conversion_using_ranges): Likewise.
9539 (simplify_stmt_using_ranges): Adjust.
9540
9541 2016-10-12 Jakub Jelinek <jakub@redhat.com>
9542
9543 PR tree-optimization/77929
9544 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
9545 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
9546
9547 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9548
9549 PR target/77934
9550 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
9551 needs a base register for arg 1.
9552
9553 2016-10-12 Jakub Jelinek <jakub@redhat.com>
9554
9555 * common.opt (Wimplicit-fallthrough) Turn into alias to
9556 -Wimplicit-fallthrough=3. Remove EnabledBy.
9557 (Wimplicit-fallthrough=): New option.
9558 * gimplify.c (warn_implicit_fallthrough_r): Use
9559 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
9560 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
9561 to -Wimplicit-fallthrough=3.
9562 (-Wimplicit-fallthrough=): Document.
9563
9564 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9565
9566 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
9567 and GEU in DImode if TARGET_SUBXC.
9568 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
9569 (seqdi<W:mode>_zero_subxc): Delete.
9570 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
9571 (neg_seqdi<W:mode>_zero_vis3): Delete.
9572 (plus_seqdi<W:mode>_zero): Likewise.
9573 (minus_seqdi<W:mode>_zero): Likewise.
9574 (plus_plus_sltu<W:mode>): Accept only register.
9575 (addx<W:mode>): Likewise.
9576 (plus_sltu<W:mode>_vis3): Likewise.
9577 (plus_plus_sltu<W:mode>_vis3): Likewise.
9578 (neg_sgeu<W:mode>_vis3): Delete.
9579 (minus_sgeu<W:mode>_vis3): Likewise.
9580 (addxc<W:mode>): Accept only registers.
9581 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
9582 (minus_neg_sltu<W:mode>_subxc): Accept only register.
9583 (neg_plus_sltu<W:mode>_subxc): Likewise.
9584 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
9585 (minus_minus_sltu<W:mode>_subxc): Accept only register.
9586 (sgeu<W:mode>_insn_subxc): Delete.
9587 (plus_sgeu<W:mode>_subxc): Likewise.
9588 (subxc<W:mode>): Accept only register.
9589 (scc splitter): Split always GEU again.
9590
9591 2016-10-11 Jeff Law <law@redhat.com>
9592
9593 PR tree-optimization/77424
9594 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
9595 dead conditionals. Assert that all e->aux fields are NULL.
9596
9597 2016-10-11 David Malcolm <dmalcolm@redhat.com>
9598
9599 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
9600 operand-printing "switch" statement into...
9601 (print_rtx_operand_code_0): ...this new function, ...
9602 (print_rtx_operand_code_e): ...this new function, ...
9603 (print_rtx_operand_codes_E_and_V): ...this new function, ...
9604 (print_rtx_operand_code_i): ...this new function, ...
9605 (print_rtx_operand_code_r): ...this new function, ...
9606 (print_rtx_operand_code_u): ...this new function, ...
9607 (print_rtx_operand): ...and this new function.
9608
9609 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
9610
9611 * config/alpha/alpha-passes.def: New file.
9612 * config/alpha/t-alpha: New file.
9613 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
9614 (make_pass_handle_trap_shadows): New prototype.
9615 (make_pass_align_insns): Ditto.
9616 * config/alpha/alpha.c (alpha_option_override): Don't register
9617 passes here.
9618 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
9619
9620 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9621
9622 PR target/77924
9623 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
9624 distinct __ibm128 IBM extended double type if long doubles are
9625 128-bits and the default format for long double is IEEE 128-bit.
9626
9627 2016-10-11 Richard Biener <rguenther@suse.de>
9628
9629 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
9630 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
9631 (verify_die): New function.
9632 (dwarf2out_finish): Call it.
9633 (output_line_info): Handle case of -gsplit-dwarf without
9634 DWARF2_ASM_LINE_DEBUG_INFO.
9635
9636 2016-10-11 Richard Biener <rguenther@suse.de>
9637
9638 PR debug/77931
9639 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
9640 sub-chains of BLOCK_VARS and gimple_bind_vars.
9641
9642 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
9643
9644 * config/i386/znver1.md : Fix imov/imovx load type reservations.
9645
9646 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9647
9648 * config/sparc/sparc.opt (msubxc): New option.
9649 * doc/invoke.texi (SPARC options): Document it and tidy up.
9650 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
9651 * doc/tm.texi: Regenerate.
9652 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
9653 (CCNZ): ...this.
9654 (CCX_NOOV): Rename into...
9655 (CCXNZ): ...this.
9656 (CCC): New.
9657 (CCXC): Likewise.
9658 * config/sparc/predicates.m (fcc_register_operand): Simplify.
9659 (fcc0_register_operand): Likewise.
9660 (icc_register_operand): New.
9661 (icc_or_fcc_register_operand): Simplify.
9662 (nz_comparison_operator): New.
9663 (c_comparison_operator): Likewise.
9664 (noov_compare_operator): Rename into...
9665 (icc_comparison_operator): ...this. Use above predicates.
9666 (noov_compare64_operator): Rename into...
9667 (v9_comparison_operator): ...this and tidy up.
9668 (fcc_comparison_operator): New.
9669 (icc_or_fcc_comparison_operator): Likewise.
9670 (v9_register_compare_operator): Rename info...
9671 (v9_register_comparison_operator): ...this.
9672 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
9673 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
9674 for Niagara-7.
9675 (sparc_fixed_condition_code_regs): New function.
9676 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
9677 renaming and add support for CCC/CCXC.
9678 (output_cbranch): Likewise.
9679 (sparc_print_operand): Likewise.
9680 (gen_v9_scc): Remove obsolete assertion.
9681 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
9682 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
9683 (output_cbcond): Remove bogus handling of CC modes.
9684 (sparc_register_move_cost): Return 100 for NO_REGS.
9685 * config/sparc/sparc.md (W): New mode iterator.
9686 (length): Adjust for noov_compare64_operator renaming.
9687 (cmpsi_sne): New instruction.
9688 (cmpdi_sne): Likewise.
9689 (seqdi_special): Delete.
9690 (seqdi_special): Likewise.
9691 (snesi<P:mode>_special): Likewise.
9692 (snedi_special): Likewise.
9693 (snedi_special_vis3): Likewise.
9694 (snesi patterns): Use W iterator.
9695 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
9696 (sltu patterns): Likewise.
9697 (sgeu patterns): Likewise.
9698 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
9699 (normal_branch): Use icc_comparison_operator predicate.
9700 (inverted_branch): Likewise.
9701 (cbcond_sp32): Use comparison_operator predicate.
9702 (cbcond_sp64): Likewise.
9703 (normal_int_branch_sp64): Adjust for renaming
9704 (inverted_int_branch_sp64): Likewise.
9705 (mov<I:mode>_cc_reg_sp64): Likewise.
9706 (movsf_cc_reg_sp6): Likewise.
9707 (movdf_cc_reg_sp64): Likewise.
9708 (movtf_cc_reg_hq_sp64): Likewise.
9709 (movtf_cc_reg_sp64): Likewise.
9710 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
9711 (movsf_cc_v9): Likewise.
9712 (movdf_cc_v9): Likewise.
9713 (movtf_cc_hq_v9): Likewise.
9714 (movtf_cc_v9): Likewise.
9715 (adddi3): Call gen_adddi3_sp32.
9716 (adddi3_insn_sp32): Rename to...
9717 (adddi3_sp32): ...this. Accept only register_operand as operand #1
9718 and use CCCmode for the carry.
9719 (addx_extend_sp32): Use CCCmode for the carry.
9720 (addx_extend_sp64): Delete.
9721 (adddi3_extend_sp32): Use CCCmode for the carry.
9722 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
9723 (subdi3): Call gen_subdi3_sp32.
9724 (subdi3_insn_sp32): Rename to...
9725 (subdi3_sp32): ...this and use CCmode for the carry.
9726 (subx_extend_sp32): Use CCCmode for the carry.
9727 (subx_extend_sp64): Delete.
9728 (subdi3_extend_sp32): Use CCmode for the carry.
9729 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
9730 (negdi3): Call gen_negdi3_sp32.
9731 (negdi3_sp32): Use CCCmode for the carry.
9732 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
9733 (cmp_nz_ashift_1): Use CCNZ mode.
9734 (cmp_nz_set_ashift_1): Likewise.
9735 (ctrapsi4): Use comparison_operator predicate.
9736 (ctrapdi4): Likewise.
9737 (trapsi_insn): Use icc_comparison_operator predicate.
9738 (trapdi_insn): Likewise.
9739 (edge8 patterns): Use CCNZmode.
9740 (edge16 patterns): Likewise.
9741 (edge32 patterns): Likewise.
9742
9743 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9744
9745 * config/visium/visium-modes.def (CC_NOOV): Rename into...
9746 (CCNZ): ...this.
9747 (CC_BTST): Rename into...
9748 (CCC): ...this.
9749 * config/visium/predicates.md (real_add_operand): New.
9750 (visium_btst_operator): Rename into...
9751 (visium_equality_comparison_operator): ...this.
9752 (visium_noov_operator): Rename into...
9753 (visium_nz_comparison_operator): ...this.
9754 (visium_c_comparison_operator): New.
9755 (visium_branch_operator): Adjust and deal with all CC modes.
9756 * config/visium/visium.c (visium_adjust_cost): Adjust.
9757 (visium_split_double_add): Use the *_set_carry patterns.
9758 (visium_select_cc_mode): Add support for CCC mode and adjust.
9759 (output_cbranch): Adjust and use the carry-based operators for
9760 floating-point comparisons.
9761 * config/visium/visium.md (flags_subst_arith): Adjust.
9762 (addsi3_insn_set_carry): New instruction.
9763 (subsi3_insn_set_carry): Likewise.
9764 (negsi2_insn_set_carry): Likewise.
9765 (btst): Adjust.
9766 (cmp<mode>_sne): Likewise.
9767 (cbranch<mode>4): Use ordered_comparison_operator.
9768 (cbranch<mode>4_insn): Likewise.
9769 (cbranchsi4_btst_insn): Adjust.
9770
9771 2016-10-11 Tom de Vries <tom@codesourcery.com>
9772
9773 PR middle-end/77558
9774 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
9775 special-casing.
9776
9777 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9778
9779 * tree.h (build_complex_type): Add second parameter with default.
9780 * tree.c (build_complex_type): Add NAMED second parameter and adjust
9781 recursive call. Create a TYPE_DECL only if NAMED is true.
9782 (build_common_tree_nodes): Pass true in calls to build_complex_type.
9783
9784 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
9785
9786 New avr-passes.def to register AVR specific passes.
9787
9788 * config/avr/avr-passes.def: New file.
9789 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
9790 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
9791 (make_avr_pass_recompute_note): New proto.
9792 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
9793 (avr_pass_recompute_notes): Use anonymous namespace.
9794 (avr_register_passes): Remove function...
9795 (avr_option_override): ...and its call.
9796
9797 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
9798
9799 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
9800 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
9801 PTF_AVOID_BRANCHLIKELY_SPEED for others.
9802 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
9803 flags.
9804 * config/mips/mips.c (mips_option_override): Enable the branch
9805 likely depending on the tune flags and optimization level.
9806 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
9807 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
9808 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
9809 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
9810
9811 2016-10-11 Richard Biener <rguenther@suse.de>
9812
9813 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
9814 (output_function): Properly stream the whole block tree.
9815 * lto-streamer-in.c (input_function): Likewise.
9816
9817 2016-10-11 Marek Polacek <polacek@redhat.com>
9818
9819 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
9820
9821 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
9822
9823 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
9824 (evrp_dom_walker::before_dom_children): Infer and push new value
9825 ranges for x in y < x.
9826
9827 2016-10-10 Joseph Myers <joseph@codesourcery.com>
9828
9829 PR target/77586
9830 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
9831 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
9832 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
9833 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
9834 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
9835 (IA64_NO_LIBGCC_TFMODE): Likewise.
9836
9837 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
9838
9839 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
9840 copying.
9841
9842 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
9843
9844 * config.gcc: Add aarch64-*-freebsd* support.
9845 * config.host: Likewise.
9846 * config/aarch64/aarch64-freebsd.h: New file.
9847 * config/aarch64/t-aarch64-freebsd: Ditto.
9848
9849 2016-10-10 Jeff Law <law@redhat.com>
9850
9851 PR tree-optimization/71947
9852 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
9853 B with A within a single statement.
9854
9855 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9856
9857 PR tree-optimization/77824
9858 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
9859 zero cost for copies.
9860 (find_candidates_dom_walker::before_dom_children): Replace
9861 MODIFY_EXPR with SSA_NAME.
9862 (replace_mult_candidate): Likewise.
9863 (replace_profitable_candidates): Likewise.
9864
9865 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9866
9867 * config/s390/s390.h: Wrap more macros args in brackets and fix
9868
9869 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
9870
9871 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
9872
9873 2016-10-10 Andreas Schwab <schwab@suse.de>
9874
9875 PR target/77738
9876 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
9877 pseudo is not DImode.
9878
9879 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
9880
9881 * common/config/arc/arc-common.c (arc_option_optimization_table):
9882 Remove compact casesi option.
9883 * config/arc/arc.c (arc_override_options): Use compact casesi
9884 option only for pre-ARCv2 cores.
9885 * doc/invoke.texi (mcompact-casesi): Update text.
9886
9887 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9888
9889 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
9890 Add macro to say we can efficiently handle overlapping unaligned
9891 loads.
9892 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
9893 poor code for processors older than p8.
9894
9895 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
9896
9897 * gen-pass-instances.awk: Remove GNUism.
9898
9899 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9900
9901 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
9902 NULL of (*ipcp_transformations)][node->uid].
9903
9904 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
9905
9906 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
9907 (MALLOC_ABI_ALIGNMENT): Define.
9908
9909 2016-10-09 Jakub Jelinek <jakub@redhat.com>
9910
9911 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
9912 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
9913 VAR_OR_FUNCTION_DECL_P macros.
9914 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
9915 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
9916 chkp_find_bounds_1): Likewise.
9917 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
9918 * hsa-gen.c (get_symbol_for_decl): Likewise.
9919 * cgraphunit.c (check_global_declaration, analyze_functions,
9920 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
9921 Likewise.
9922 * gimple-fold.c (can_refer_decl_in_current_unit_p,
9923 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
9924 Likewise.
9925 * tree.c (set_decl_section_name, copy_node_stat,
9926 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
9927 merge_dllimport_decl_attributes, handle_dll_attribute,
9928 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
9929 verify_type): Likewise.
9930 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
9931 find_explicit_erroneous_behavior): Likewise.
9932 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
9933 * ipa.c (process_references): Likewise.
9934 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
9935 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
9936 notice_global_symbol, assemble_variable, mark_decl_referenced,
9937 build_constant_desc, output_constant_def_contents, do_assemble_alias,
9938 make_decl_one_only, default_section_type_flags,
9939 categorize_decl_for_section, default_encode_section_info): Likewise.
9940 * trans-mem.c (requires_barrier): Likewise.
9941 * gimple-expr.c (mark_addressable): Likewise.
9942 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
9943 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
9944 expand_debug_expr): Likewise.
9945 * tree-dump.c (dequeue_and_dump): Likewise.
9946 * ubsan.c (instrument_bool_enum_load): Likewise.
9947 * tree-pretty-print.c (print_declaration): Likewise.
9948 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
9949 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
9950 * asan.c (asan_protect_global, instrument_derefs): Likewise.
9951 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
9952 pass_build_ssa::execute): Likewise.
9953 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
9954 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
9955 Likewise.
9956 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
9957 Likewise.
9958 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
9959 can_be_nonlocal, remap_decls, copy_debug_stmt,
9960 initialize_inlined_parameters, add_local_variables,
9961 reset_debug_binding, replace_locals_op): Likewise.
9962 * dse.c (can_escape): Likewise.
9963 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
9964 Likewise.
9965 * tree-diagnostic.c (default_tree_printer): Likewise.
9966 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
9967 unpack_ts_decl_with_vis_value_fields,
9968 lto_input_ts_decl_common_tree_pointers): Likewise.
9969 * builtins.c (builtin_save_expr, fold_builtin_expect,
9970 readonly_data_expr): Likewise.
9971 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
9972 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
9973 Likewise.
9974 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
9975 * gimplify.c (force_constant_size, gimplify_bind_expr,
9976 gimplify_decl_expr, gimplify_var_or_parm_decl,
9977 gimplify_compound_lval, gimplify_init_constructor,
9978 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
9979 gimplify_type_sizes): Likewise.
9980 * cgraphbuild.c (record_reference, record_type_list, mark_address,
9981 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
9982 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
9983 remove_unused_locals): Likewise.
9984 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
9985 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
9986 * function.c (instantiate_expr, instantiate_decls_1,
9987 setjmp_vars_warning, add_local_decl): Likewise.
9988 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
9989 Likewise.
9990 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
9991 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
9992 optimize_va_list_gpr_fpr_size): Likewise.
9993 * tree-nrv.c (pass_nrv::execute): Likewise.
9994 * tsan.c (instrument_expr): Likewise.
9995 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
9996 * vtable-verify.c (verify_bb_vtables): Likewise.
9997 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
9998 get_ref_base_and_extent): Likewise.
9999 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
10000 Likewise.
10001 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
10002 analyze_all_variable_accesses): Likewise.
10003 * tree-nested.c (get_nonlocal_debug_decl,
10004 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
10005 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
10006 get_local_debug_decl, convert_local_omp_clauses,
10007 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
10008 Likewise.
10009 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
10010 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
10011 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
10012 dbxout_symbol, dbxout_common_check): Likewise.
10013 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
10014 string_constant): Likewise.
10015 * hsa.c (hsa_get_declaration_name): Likewise.
10016 * passes.c (rest_of_decl_compilation): Likewise.
10017 * tree-ssanames.c (make_ssa_name_fn): Likewise.
10018 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
10019 pack_ts_decl_with_vis_value_fields,
10020 write_ts_decl_common_tree_pointers): Likewise.
10021 * stor-layout.c (place_field): Likewise.
10022 * symtab.c (symtab_node::maybe_create_reference,
10023 symtab_node::verify_base, symtab_node::make_decl_local,
10024 symtab_node::copy_visibility_from,
10025 symtab_node::can_increase_alignment_p): Likewise.
10026 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
10027 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
10028 fortran_common, add_location_or_const_value_attribute,
10029 add_scalar_info, add_linkage_name, set_block_abstract_flags,
10030 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
10031 optimize_one_addr_into_implicit_ptr,
10032 optimize_location_into_implicit_ptr): Likewise.
10033 * gimple-low.c (record_vars_into): Likewise.
10034 * ipa-visibility.c (update_vtable_references): Likewise.
10035 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
10036 Likewise.
10037 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
10038 DFS::DFS_write_tree_body, write_symbol): Likewise.
10039 * langhooks.c (lhd_warn_unused_global_decl,
10040 lhd_set_decl_assembler_name): Likewise.
10041 * attribs.c (decl_attributes): Likewise.
10042 * except.c (output_ttype): Likewise.
10043 * varpool.c (varpool_node::get_create, ctor_for_folding,
10044 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
10045 * fold-const.c (fold_unary_loc): Likewise.
10046 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
10047 ipa_find_agg_cst_from_init): Likewise.
10048 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
10049 expand_omp_target, lower_omp_regimplify_p,
10050 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
10051 find_link_var_op): Likewise.
10052 * tree-chrec.c (chrec_contains_symbols): Likewise.
10053 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
10054 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
10055 execute_fixup_cfg): Likewise.
10056
10057 PR tree-optimization/77901
10058 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
10059 if ranges[i].exp is SSA_NAME when looking for >= and only when
10060 ranges[i].exp is NULL or SSA_NAME when looking for the other
10061 comparison.
10062
10063 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10064
10065 * ipa-cp.c (ipcp_alignment_lattice): Remove.
10066 (ipcp_param_lattices): Remove field alignment.
10067 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
10068 (set_all_contains_variable): Remove call to
10069 ipcp_alignment_lattice::set_to_bottom.
10070 (initialize_node_lattices): Likewise.
10071 (propagate_alignment_accross_jump_function): Remove.
10072 (propagate_constants_accross_call): Remove call to
10073 propagate_alignment_accross_jump_function.
10074 (ipcp_store_alignment_results): Remove.
10075 (ipcp_driver): Remove call to ipcp_store_alignment_results.
10076 (propagate_bits_accross_jump_function): Handle ancestor jump function.
10077 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
10078 pretty-printing of alignment jump function.
10079 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
10080 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
10081 alignments and remove computing ipa_alignment jump function.
10082 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
10083 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
10084 (ipa_read_jump_function): Remove reading of ipa_alignment.
10085 (write_ipcp_transformation_info): Remove streaming for alignment
10086 propagation summary.
10087 (read_ipcp_transformation_info): Remove reading of alignment
10088 propagation summary.
10089 (ipcp_update_alignments): Remove.
10090 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
10091 type.
10092 (ipcp_transform_function): Remove call to ipcp_update_alignments()
10093 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
10094 * ipa-prop.h (ipa_alignment): Remove.
10095 (ipa_jump_func): Remove field alignment.
10096 (ipcp_transformation_summary): Remove field alignments.
10097 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
10098 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
10099 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
10100
10101 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
10102
10103 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
10104
10105 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
10106 change.
10107 (visium_expand_fp_cstore): Likewise.
10108
10109 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10110
10111 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
10112 * diagnostic.c (warning_at_rich_loc_n): New function.
10113 (diagnostic_n_impl_richloc): Likewise.
10114 (diagnostic_n_impl): Move most of the function to
10115 diagnostic_n_impl_richloc and call it.
10116
10117 2016-10-08 Jakub Jelinek <jakub@redhat.com>
10118
10119 * gen-pass-instances.awk: Rewritten.
10120 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
10121 $(PASSES_EXTRA) after passes.def to the script.
10122 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
10123 * config/i386/i386-passes.def: New file.
10124 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
10125 make_pass_stv): Declare.
10126 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
10127 false.
10128 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
10129 or !TARGET_64BIT.
10130 (pass_stv::clone, pass_stv::set_pass_param): New methods.
10131 (pass_stv::timode_p): New non-static data member.
10132 (ix86_option_override): Don't register passes here.
10133
10134 * doc/invoke.texi: Document accepting Else, fallthrough.
10135
10136 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
10137 style changes.
10138
10139 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
10140 FALLTHRU comment styles.
10141
10142 2016-10-07 Andrew Pinski <apinski@cavium.com>
10143
10144 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
10145 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
10146 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
10147 Likewise.
10148 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
10149 Likewise.
10150 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
10151 Likewise.
10152 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
10153 (AARCH64_ARCH): Likewise.
10154 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
10155 Likewise.
10156 (AARCH64_CORE): Likewise.
10157 (AARCH64_ARCH): Likewise.
10158 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
10159 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10160 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
10161 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10162 (AARCH64_ARCH): Likewise.
10163 (AARCH64_CORE): Likewise.
10164 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
10165 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
10166 (AARCH64_CORE): Likewise.
10167 (AARCH64_ARCH): Likewise.
10168
10169 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
10170
10171 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
10172 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
10173 floating point type infrastructre, and -mfloat128 that enables the
10174 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
10175 if -mfloat128-type. Define __ibm128 to be long double by default.
10176 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
10177 the IEEE 128-bit floating point type infrastructure should
10178 automatically be enabled.
10179 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
10180 instead of -mfloat128 to enable KFmode.
10181 (rs6000_option_override_internal): Split the option -mfloat128
10182 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
10183 systems, automatically set -mfloat128-type, but don't enable it on
10184 other operating systems. Move setting the long double size and
10185 IEEE quad support before the IEEE 128-bit floating point changes.
10186 (rs6000_init_builtins): Do not create a unique type for __ibm128
10187 if long double is IBM extended double, instead rely on __ibm128
10188 being defined as 'long double'. If -mfloat128-type and not
10189 -mfloat128, create the KFmode type with an undocumented __ieee128
10190 keyword.
10191 (rs6000_init_libfuncs): Use -mfloat128-type instead of
10192 -mfloat128 for tests about the types, but keep tests for
10193 -mfloat128 to enable the keyword support.
10194 (rs6000_complex_function_value): Likewise.
10195 (rs6000_scalar_mode_supported_p): Likewise.
10196 (rs6000_floatn_mode): Likewise.
10197 (rs6000_c_mode_for_suffix): Likewise.
10198 (rs6000_opt_masks): Add -mfloat128-type.
10199 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
10200 -mfloat128-type being split from -mfloat128. Add
10201 -mfloat128-hardware, which was missing.
10202 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
10203 -mfloat128 and -mfloat128-type:
10204 (-mfloat128-type): Likewise.
10205 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
10206 that 64-bit Linux systems with enable -mfloat128-type by default
10207 on VSX systems.
10208 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
10209 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
10210 -mfloat128-type instead of -mfloat128.
10211 (FLOAT128_2REG_P): Likewise.
10212 (MASK_FLOAT128_TYPE): Likewise.
10213 (ALTIVEC_ARG_MAX_RETURN): Likewise.
10214 (RS6000_BTM_FLOAT128): Likewise.
10215 (TARGET_FLOAT128): Poison old identifiers.
10216 (OPTION_MASK_FLOAT128): Likewise.
10217 (MASK_FLOAT128): Likewise.
10218 * config/rs6000/rs6000.md (FP): Likewise.
10219 (FLOAT128): Likewise.
10220 (fix_trunc<mode>di2): Likewise.
10221 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
10222 (floatdi<mode>2): Likewise.
10223 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
10224 (neg<mode>2, FLOAT128 iterator): Likewise.
10225 (abs<mode>2, FLOAT128 iterator): Likewise.
10226 (ieee_128bit_negative_zero): Likewise.
10227 (ieee_128bit_vsx_neg<mode>2): Likewise.
10228 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
10229 (ieee_128bit_vsx_abs<mode>2): Likewise.
10230 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
10231 (ieee_128bit_vsx_nabs<mode>2): Likewise.
10232 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
10233 (extendiftf2): Likewise.
10234 (extendifkf2): Likewise.
10235 (extendtfkf2): Likewise.
10236 (trunciftf2): Likewise.
10237 (truncifkf2): Likewise.
10238 (trunckftf2): Likewise.
10239 (trunctfif2): Likewise.
10240 (extendkftf2): Likewise.
10241 (trunctfkf2): Likewise.
10242
10243 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10244
10245 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
10246 before merging in bytes to pass down to real_from_target.
10247
10248 2016-10-07 Richard Biener <rguenther@suse.de>
10249
10250 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
10251 required hack.
10252 (substitute_and_fold_dom_walker::before_dom_children):
10253 Substitute and fold before pass specific folding to avoid
10254 feeding that with SSA names that will be later released.
10255 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
10256 introduced by folding and visited by evaluate_stmt called during
10257 ccp_fold_stmt.
10258 (likely_value): Likewise.
10259 (evaluate_stmt): Likewise.
10260 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
10261 (simplify_div_or_mod_using_ranges): Likewise.
10262 (simplify_min_or_max_using_ranges): Likewise.
10263 (simplify_abs_using_ranges): Likewise.
10264 (simplify_conversion_using_ranges): Likewise.
10265 (simplify_float_conversion_using_ranges): Likewise.
10266 (simplify_stmt_using_ranges): Likewise.
10267
10268 2016-10-07 Marek Polacek <polacek@redhat.com>
10269
10270 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
10271 FALLTHROUGH_LABEL_P here...
10272 (warn_implicit_fallthrough_r): ...not here.
10273
10274 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
10275
10276 PR tree-optimization/77880
10277 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
10278 necessary.
10279
10280 2016-10-07 Marek Polacek <polacek@redhat.com>
10281
10282 PR c++/77803
10283 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
10284
10285 2016-10-07 Richard Biener <rguenther@suse.de>
10286
10287 * bitmap.h: Document constraints on bitmap modification while
10288 iterating over it.
10289
10290 2016-10-07 Richard Biener <rguenther@suse.de>
10291
10292 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
10293 * bitmap.h (bmp_iter_set): When advancing to the next element
10294 check that we didn't remove the current one.
10295 (bmp_iter_and): Likewise.
10296 (bmp_iter_and_compl): Likewise.
10297 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
10298 we currently iterate on but keep a one-level queue.
10299 * sched-deps.c (remove_from_deps): Do not clear current bit
10300 but keep a one-level queue.
10301
10302 2016-10-07 Jakub Jelinek <jakub@redhat.com>
10303
10304 PR tree-optimization/77664
10305 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
10306 for the other ranges.
10307 (optimize_range_tests_diff): Fix up formatting.
10308 (optimize_range_tests_var_bound): New function.
10309 (optimize_range_tests): Use it.
10310
10311 2016-10-07 Martin Liska <mliska@suse.cz>
10312
10313 * coverage.c (build_gcov_exit_decl): Fix priority what
10314 should be really 99.
10315
10316 2016-10-07 Richard Biener <rguenther@suse.de>
10317
10318 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
10319 vars in gimple_bind_vars but not in BLOCK_VARS.
10320
10321 2016-10-07 Richard Biener <rguenther@suse.de>
10322
10323 PR tree-optimization/77879
10324 * tree-ssa-structalias.c (handle_const_call): Properly handle
10325 NRV return slots.
10326 (handle_pure_call): Likewise.
10327
10328 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10329
10330 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
10331 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
10332 possible overflow.
10333
10334 2016-10-06 Andrew Pinski <apinski@cavium.com>
10335
10336 * config/aarch64/aarch64-cores.def: Add a comment before each
10337 set of cores.
10338
10339 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
10340
10341 PR tree-optimization/77862
10342 * tree-vrp.c (add_equivalence): Use get_value_range so that
10343 num_vr_values is checked before accessing vr_values.
10344
10345 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
10346
10347 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
10348 POINTER_TYPE_P.
10349
10350 2016-10-05 Jeff Law <law@redhat.com>
10351
10352 PR tree-optimization/71661
10353 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
10354 removal of a forwarder exposes a new natural loop.
10355
10356 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
10357
10358 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
10359 Introduce ssesuffix variable.
10360 (<mask_codefor><code><mode>3<mask_name>): Ditto.
10361 (*<code><mode>3): Ditto.
10362
10363 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
10364
10365 * postreload.c (reload_cse_simplify): Skip also USE when detecting
10366 noop move.
10367
10368 2016-10-06 Richard Biener <rguenther@suse.de>
10369
10370 PR tree-optimization/77855
10371 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
10372 instead of removing the current item while iterating over the set
10373 which is not safe.
10374
10375 2016-10-06 James Clarke <jrtc27@jrtc27.com>
10376 Eric Botcazou <ebotcazou@adacore.com>
10377
10378 PR target/77759
10379 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
10380 (classify_registers): Don't set it
10381 (function_arg_slotno): Don't initialize and test it. Tidy up.
10382
10383 2016-10-06 Richard Biener <rguenther@suse.de>
10384
10385 PR tree-optimization/77839
10386 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
10387 lattice transition.
10388
10389 2016-10-06 Martin Liska <mliska@suse.cz>
10390
10391 * gcc.c: Set -fprofile-update=atomic when profiling is
10392 enabled and -pthread is set. Warn when one combines
10393 -pthread and -fprofile-update=single for an app using
10394 profiling code.
10395
10396 2016-10-06 Martin Liska <mliska@suse.cz>
10397
10398 PR bootstrap/77788
10399 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
10400 * gimple-ssa-strength-reduction.c (slsr_process_cast):
10401 Initialize a pointer to NULL.
10402 (slsr_process_copy): Likewise.
10403 * input.c (location_get_source_line): Likewise.
10404 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
10405
10406 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
10407
10408 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
10409 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
10410 (ix86_handle_option): Deleted handle of OPT_mpcommit.
10411 * config.gcc: Deleted pcommitintrin.h
10412 * config/i386/pcommitintrin.h: Deleted file.
10413 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
10414 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
10415 detection.
10416 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
10417 __PCOMMIT__.
10418 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
10419 (PTA_PCOMMIT): Deleted define.
10420 (ix86_option_override_internal): Deleted handle of option.
10421 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
10422 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
10423 __builtin_ia32_pcommit): Deleted.
10424 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
10425 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
10426 (pcommit): Deleted instruction.
10427 * config/i386/i386.opt: Mention -mpcommit deprecation.
10428 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
10429
10430 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
10431
10432 PR target/77874
10433 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
10434 Remove wrong assert.
10435 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
10436 Use <round_constraint> as operand 1 constraint.
10437
10438 2016-10-05 Jakub Jelinek <jakub@redhat.com>
10439
10440 PR sanitizer/66343
10441 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
10442 (ubsan_instrument_float_cast): And not here.
10443
10444 PR sanitizer/66343
10445 * ubsan.c (ubsan_ids): New GTY(()) array.
10446 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
10447 instead of static local counters.
10448
10449 2016-10-05 Martin Sebor <msebor@redhat.com>
10450
10451 PR bootstrap/77819
10452 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
10453 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
10454 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
10455 (default_printf_pointer_format): Define function.
10456 * targhooks.c (linux_printf_pointer_format): Define new function.
10457 * targhooks.h (linux_printf_pointer_format): Declare.
10458 (gnu_libc_printf_pointer_format): Remove declaration.
10459
10460 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10461
10462 * fold-const.c (native_encode_real): Fix logic for selecting offset
10463 to write to when BYTES_BIG_ENDIAN.
10464
10465 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
10466
10467 * builtins.c (fold_builtin_strchr): Remove function.
10468 (fold_builtin_strrchr): Likewise.
10469 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
10470 * gimple-fold.c (target_char_cst_p): New function.
10471 (gimple_fold_builtin_strchr) Add more foldings.
10472 (gimple_fold_builtin): Add index, strrchr, rindex cases.
10473
10474 2016-10-05 Richard Biener <rguenther@suse.de>
10475
10476 PR middle-end/77863
10477 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
10478 capture ids in c-exprs.
10479
10480 2016-10-05 Richard Biener <rguenther@suse.de>
10481
10482 PR middle-end/77826
10483 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
10484 with types_match for GIMPLE code gen to handle type mismatched
10485 constants properly.
10486 (dt_operand::gen): Adjust.
10487 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
10488 and constant A.
10489
10490 2016-10-05 Richard Biener <rguenther@suse.de>
10491
10492 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
10493
10494 2016-10-05 Richard Biener <rguenther@suse.de>
10495
10496 PR middle-end/77842
10497 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
10498
10499 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
10500
10501 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
10502 version check to protect only DW_TAG_imported_module generation.
10503
10504 2016-10-05 Richard Biener <rguenther@suse.de>
10505
10506 PR middle-end/55152
10507 * match.pd (min(a,-a) -> -abs(a)): New pattern.
10508
10509 2016-10-04 Ian Lance Taylor <iant@golang.org>
10510
10511 * explow.c (allocate_dynamic_stack_space): Call
10512 do_pending_stack_adjust before handling flag_split_stack.
10513
10514 2016-10-04 David Malcolm <dmalcolm@redhat.com>
10515
10516 * genattrtab.c (make_internal_attr): Supply dummy column number to
10517 file_location ctor.
10518 (main): Likewise.
10519 * genoutput.c (init_insn_for_nothing): Likewise.
10520 * gensupport.c (add_define_attr): Likewise.
10521 * read-md.c (message_at_1): Print column number.
10522 (fatal_with_file_and_line): Likewise.
10523 (rtx_reader::read_char): Track column numbers.
10524 (rtx_reader::unread_char): Likewise.
10525 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
10526 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
10527 (rtx_reader::handle_file): Initialize m_read_md_colno.
10528 (rtx_reader::get_current_location): Supply column number to
10529 file_location ctor.
10530 * read-md.h (struct file_location): Add field "colno".
10531 (file_location::file_location): Likewise.
10532 (rtx_reader::get_colno): New accessor.
10533 (rtx_reader::m_read_md_colno): New field.
10534 (rtx_reader::m_last_line_colno): New field.
10535
10536 2016-10-04 Jakub Jelinek <jakub@redhat.com>
10537
10538 * doc/extend.texi (Java Exceptions): Remove.
10539 (java_interface): Remove.
10540
10541 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
10542
10543 PR tree-optimization/77808
10544 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
10545 and addr are different before copying points-to information.
10546
10547 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
10548
10549 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
10550 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
10551 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
10552 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
10553
10554 2016-10-04 Richard Biener <rguenther@suse.de>
10555
10556 PR tree-optimization/77399
10557 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
10558 verify the target can convert.
10559
10560 2016-10-04 Richard Biener <rguenther@suse.de>
10561
10562 PR middle-end/77833
10563 * explow.c (plus_constant): Verify the mode of the constant
10564 pool offset before calling plus_constant.
10565
10566 2016-10-04 Richard Biener <rguenther@suse.de>
10567
10568 PR middle-end/77407
10569 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
10570 type support, mark with :C.
10571 (X / -X -> -1): Mark with :C.
10572
10573 2016-10-04 Jakub Jelinek <jakub@redhat.com>
10574
10575 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
10576 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
10577 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
10578 * doc/tm.texi: Regenerated.
10579 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
10580 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
10581 * config/darwin.h (JCR_SECTION_NAME): Remove.
10582 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
10583 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
10584 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
10585 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
10586 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
10587 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
10588
10589 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10590
10591 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
10592 between "because" and "param" in dump message in call to fprintf.
10593
10594 2016-10-03 Jeff Law <law@redhat.com>
10595
10596 PR tree-optimization/71550
10597 PR tree-optimization/71403
10598 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
10599 (profitable_jump_thread_path): Also return boolean indicating if
10600 the realized path will create an irreducible loop.
10601 Remove loop depth tests from 71403.
10602 (fsm_find_control_statement_thread_paths): Remove loop depth tests
10603 from 71403. If threading will create an irreducible loop, then
10604 throw away loop iteration and related information.
10605
10606 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
10607
10608 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
10609 -Woverloaded-virtual checks for warning options.
10610 * configure: Regenerate.
10611
10612 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10613
10614 PR preprocessor/77699
10615 * input.c (maybe_grow): Don't allocate one byte extra headroom.
10616 (get_next_line): Return false on error.
10617 (read_next_line): Removed, use get_next_line instead.
10618 (read_line_num): Don't copy the line.
10619 (location_get_source_line): Don't use static data.
10620 (selftest::test_reading_source_line): Add more test cases.
10621
10622 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10623
10624 Revert
10625 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10626
10627 * ifcvt.c (noce_try_avoid_const_materialization): New function.
10628 (noce_process_if_block): Use it.
10629
10630 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10631
10632 * doc/invoke.texi: Update -Wint-in-bool-context.
10633
10634 2016-10-02 Jakub Jelinek <jakub@redhat.com>
10635
10636 * dwarf2out.c (output_fde, output_call_frame_info,
10637 dwarf2out_do_cfi_startproc, set_indirect_string,
10638 gen_internal_sym, output_die, output_line_info): Use
10639 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
10640 ASM_GENERATE_INTERNAL_LABEL output.
10641
10642 2016-10-01 Richard Biener <rguenther@suse.de>
10643
10644 PR middle-end/77798
10645 * genmatch.c (get_operand_type): Add operand position arg
10646 and handle COND_EXPR comparison operand with fixed boolean_type_node.
10647 (expr::gen_transform): Adjust.
10648 (dt_simplify::gen_1): Likewise.
10649
10650 2016-10-01 Jakub Jelinek <jakub@redhat.com>
10651
10652 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
10653 comments. Simplify asserts, remove unnecessary conditions.
10654 Formatting fixes.
10655 (*<code><mode>3): Likewise.
10656
10657 2016-09-30 Jakub Jelinek <jakub@redhat.com>
10658
10659 * doc/invoke.texi (-Wregister): Document.
10660
10661 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
10662
10663 * configure.ac: Split CHECKING_P into CHECKING_P and
10664 ENABLE_EXTRA_CHECKING.
10665 * configure: Regenerated.
10666 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
10667 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
10668
10669 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
10670
10671 PR other/31566
10672 * gcc.c (process_command): For @filename handling, output
10673 the correct name if the file does not exist.
10674
10675 2016-09-30 Marek Polacek <polacek@redhat.com>
10676
10677 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
10678 * config/alpha/predicates.md: Likewise.
10679
10680 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10681
10682 * ifcvt.c (noce_try_avoid_const_materialization): New function.
10683 (noce_process_if_block): Use it.
10684
10685 2016-09-30 Martin Liska <mliska@suse.cz>
10686
10687 * doc/invoke.texi: Document asan-use-after-return that
10688 it's disabled by default in runtime.
10689
10690 2016-09-30 Richard Biener <rguenther@suse.de>
10691
10692 * tree-vrp.c (intersect_ranges): If we failed to handle
10693 the intersection choose a constant singleton range if available.
10694
10695 2016-09-30 Richard Biener <rguenther@suse.de>
10696
10697 PR tree-optimization/77399
10698 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
10699 float <-> int conversions.
10700
10701 2016-09-30 Alan Modra <amodra@gmail.com>
10702
10703 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
10704
10705 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
10706
10707 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
10708 ext_level before calling CPUID with 0x80000008.
10709 Simplify xgetbv checks.
10710
10711 2016-09-29 David Malcolm <dmalcolm@redhat.com>
10712
10713 * Makefile.in (OBJS): Add print-rtl-function.o.
10714 * print-rtl-function.c: New file.
10715 * print-rtl.h (print_rtx_function): New decl.
10716
10717 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
10718
10719 PR target/77756
10720 * config/i386/cpuid.h (__get_cpuid_count): New.
10721 (__get_cpuid): Rename __level to __leaf.
10722
10723 2016-09-29 Marek Polacek <polacek@redhat.com>
10724
10725 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
10726
10727 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
10728
10729 PR target/77718
10730 * builtins.c (expand_builtin_memcmp): Don't swap args unless
10731 result is only being compared with zero.
10732
10733 2016-09-29 Marek Polacek <polacek@redhat.com>
10734
10735 * dwarf2out.c (loc_descriptor): Add fall through comment.
10736 (add_const_value_attribute): Likewise.
10737
10738 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
10739
10740 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
10741 with "v6t2". Move "arch" attribute above "pool_range".
10742 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
10743 with "v6t2".
10744 (*thumb2_movhi_vfp): Likewise.
10745 (*arm_movhi_fp16): Likewise.
10746 (*thumb2_movhi_fp16): Likewise.
10747 (*arm_movsi_vfp): Remove "arch" attribute.
10748 (*thumb2_movsi_vfp): Likewise.
10749
10750 2016-09-29 Martin Liska <mliska@suse.cz>
10751
10752 * doc/extend.texi: Remove limitation of Objective C for
10753 __attribute__((constructor)) and __attribute__((destructor)).
10754
10755 2016-09-29 Richard Biener <rguenther@suse.de>
10756
10757 PR tree-optimization/77768
10758 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10759 Handle stores to readonly memory when removing redundant stores.
10760
10761 2016-09-29 Richard Biener <rguenther@suse.de>
10762
10763 PR middle-end/77407
10764 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
10765 X / -X -> -1 simplifications.
10766
10767 2016-09-29 Richard Biener <rguenther@suse.de>
10768
10769 PR middle-end/55152
10770 * match.pd: Add max(a,-a) -> abs(a) pattern.
10771 * tree-ssa-phiopt.c (minmax_replacement): Disable for
10772 HONOR_SIGNED_ZEROS types.
10773
10774 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
10775
10776 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
10777 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
10778
10779 2016-09-29 Richard Biener <rguenther@suse.de>
10780
10781 * tree-vrp.c (set_defs_to_varying): New helper avoiding
10782 writing to vr_const_varying.
10783 (vrp_initialize): Call it.
10784 (vrp_visit_stmt): Likewise.
10785 (evrp_dom_walker::before_dom_children): Likewise.
10786
10787 2016-09-29 Richard Biener <rguenther@suse.de>
10788
10789 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
10790 constructors with vector elements.
10791
10792 2016-09-29 Richard Biener <rguenther@suse.de>
10793
10794 PR tree-optimization/77768
10795 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
10796 with stores to a place we know has a constant value.
10797
10798 2016-09-29 Alan Modra <amodra@gmail.com>
10799
10800 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
10801 * doc/invoke.texi: Document it.
10802 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
10803 (rs6000_passes_float): Comment.
10804 (rs6000_passes_long_double): New static var.
10805 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
10806 (init_cumulative_args): Set up to emit fp .gnu_attribute for
10807 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
10808 to include fp values returned in vectors.
10809 Set rs6000_passes_long_double.
10810 (rs6000_function_arg_advance_1): Likewise for function args.
10811 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
10812 and SPE. Emit long double tag value too.
10813 (rs6000_opt_vars): Add gnu-attr.
10814 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
10815 * configure: Regenerate.
10816 * config.in: Regenerate.
10817
10818 2016-09-28 Jakub Jelinek <jakub@redhat.com>
10819
10820 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
10821 of 0 < x.
10822 (format_floating, format_string, format_directive,
10823 get_destination_size, pass_sprintf_length::handle_gimple_call):
10824 Likewise.
10825
10826 2016-09-28 Jakub Jelinek <jakub@redhat.com>
10827
10828 * gimple-ssa-sprintf.c: Fix comment formatting.
10829 (format_integer): Use is_gimple_assign.
10830 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
10831 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
10832 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
10833 (pass_sprintf_length::execute): Use is_gimple_call.
10834
10835 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
10836
10837 * gimple-fold.c (gimple_fold_builtin): After failing to fold
10838 strchr, also try the generic folding.
10839
10840 2016-09-28 Martin Sebor <msebor@redhat.com>
10841
10842 PR c/77762
10843 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
10844 Fix typos.
10845
10846 2016-09-28 Martin Sebor <msebor@redhat.com>
10847
10848 PR middle-end/77683
10849 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
10850 length modifier is not expected.
10851 (format_floating): Ignore l length modifier and fail gracefuly
10852 when it isn't one of the other expected ones.
10853
10854 2016-09-28 Martin Sebor <msebor@redhat.com>
10855
10856 PR bootstrap/77753
10857 * varasm.c (assemble_addr_to_section): Increase local buffer size.
10858
10859 2016-09-27 Richard Biener <rguenther@suse.de>
10860
10861 * dwarf2out.c (cu_die_list): New global.
10862 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
10863 main_comp_unit_die to cu_die_list if we created it.
10864 Move break_out_includes ...
10865 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
10866 the cu_die_list.
10867
10868 2016-09-28 Richard Biener <rguenther@suse.de>
10869
10870 * dwarf2out.c (struct die_struct): Add removed flag.
10871 (lookup_type_die): If the DIE is marked as removed, clear
10872 TYPE_SYMTAB_DIE and return NULL.
10873 (lookup_decl_die): If the DIE is marked as removed, remove it
10874 from the hash and return NULL.
10875 (mark_removed): New helper.
10876 (prune_unused_types_prune): Call it for removed DIEs.
10877 (gen_subprogram_die): Move the premark_used_types call to after
10878 DIEs for the functions scopes are generated.
10879 (process_scope_var): Do not re-create pruned types or type decls.
10880 Make sure to also re-parent type decls.
10881 (dwarf2out_finish): Move unused type pruning and debug_types
10882 handling ...
10883 (dwarf2out_early_finish): ... here.
10884
10885 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
10886
10887 * config/arc/arc-c.c: New file.
10888 * config/arc/arc-c.def: Likewise.
10889 * config/arc/t-arc: Likewise.
10890 * config.gcc: Include arc-c.o as c and cpp object.
10891 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
10892 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
10893 arc_cpu_cpp_builtins.
10894
10895 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
10896
10897 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
10898 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
10899
10900 2016-09-28 Nathan Sidwell <nathan@acm.org>
10901
10902 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
10903 printing.
10904
10905 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
10906
10907 PR tree-optimization/61056
10908 * gimple-fold.c (gimple_fold_builtin_strchr):
10909 New function to optimize strchr (s, 0) to strlen.
10910 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
10911
10912 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
10913
10914 PR tree-optimization/77724
10915 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
10916 Add tree_fits_shwi_p check.
10917
10918 2016-09-27 Jakub Jelinek <jakub@redhat.com>
10919
10920 * auto-inc-dec.c (try_merge): Remove break after return.
10921 * cselib.c (autoinc_split): Likewise.
10922 * explow.c (promote_mode): Likewise.
10923 * fixed-value.c (fixed_arithmetic): Likewise.
10924 * hsa.c (hsa_internal_fn::get_arity): Likewise.
10925 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
10926 * trans-mem.c (get_attrs_for): Likewise.
10927 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
10928 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
10929 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
10930 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
10931 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
10932 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
10933 * config/cris/cris.c (cris_op_str): Likewise.
10934 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
10935 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
10936
10937 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
10938
10939 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
10940 IFN_GOACC_REDUCTION_CODES): New.
10941 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
10942 ifn_goacc_reduction_kind): Use them.
10943 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
10944 of internal functions, when applicable.
10945
10946 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
10947
10948 * config/mips/constraints.md (d): Fix documentation.
10949 * doc/md.texi (Machine Constraints): Update accordingly.
10950
10951 2016-09-27 Richard Biener <rguenther@suse.de>
10952
10953 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
10954 cur_line_info_table initialization ...
10955 (dwarf2out_assembly_start): ... here.
10956
10957 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
10958
10959 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
10960 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
10961 (*thumb2_movhi_vfp): Likewise.
10962 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
10963 template. Expand predicable attribute to mark VMOV.F16 as not
10964 predicable. Add "arch" attribute.
10965 (*thumb2_movhi_fp16): Likewise.
10966 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
10967 (*thumb2_movsi_vfp): Add "arch" attribute.
10968
10969 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
10970
10971 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
10972 VAR_DECL string.
10973
10974 2016-09-27 Marek Polacek <polacek@redhat.com>
10975
10976 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
10977 comment.
10978
10979 * config/c6x/c6x.h: Adjust fall through comment.
10980 * config/sh/sh.c (final_prescan_insn): Likewise.
10981 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
10982 (visium_expand_fp_cstore): Likewise.
10983
10984 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10985
10986 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
10987 expected by -Wimplicit-fallthrough.
10988 (thumb1_size_rtx_costs): Likewise.
10989 (thumb2_reorg): Likewise.
10990 (tls_mentioned_p): Add "Fall through" comment.
10991 (thumb2_reorg): Likewise.
10992 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
10993 comment form expected by -Wimplicit-fallthrough.
10994
10995 2016-09-27 Martin Liska <mliska@suse.cz>
10996
10997 PR gcov-profile/46266
10998 * input.h (RESERVED_LOCATION_P): New macro.
10999 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
11000 instread of comparison with UNKNOWN_LOCATION.
11001
11002 2016-09-27 Richard Biener <rguenther@suse.de>
11003
11004 PR tree-optimization/77745
11005 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11006 When removing redundant stores make sure to check compatibility
11007 of the TBAA state for downstream accesses.
11008 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
11009 value-numbering virtual operands for store matches.
11010
11011 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
11012
11013 PR target/51244
11014 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
11015 movrt patterns. Match them before anything else in the SET case.
11016
11017 2016-09-27 Martin Liska <mliska@suse.cz>
11018
11019 PR gcov-profile/7970
11020 PR gcov-profile/16855
11021 PR gcov-profile/44779
11022 * coverage.c (build_gcov_exit_decl): New function.
11023 (coverage_obj_init): Call the function and generate __gcov_exit
11024 destructor.
11025 * doc/gcov.texi: Document when __gcov_exit function is called.
11026
11027 2016-09-27 Marek Polacek <polacek@redhat.com>
11028
11029 PR bootstrap/77751
11030 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
11031 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
11032 -Wno-error instead of -Wno-implicit-fallthrough.
11033
11034 2016-09-27 Martin Liska <mliska@suse.cz>
11035
11036 PR bootstrap/77749
11037 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
11038
11039 2016-09-27 Jakub Jelinek <jakub@redhat.com>
11040
11041 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
11042 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
11043 comments. Remove break after return.
11044 (ix86_fp_compare_code_to_integer, has_dispatch,
11045 ix86_simd_clone_usable): Remove break after return.
11046
11047 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
11048
11049 PR rlt-optimization/77714
11050 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
11051 REG_EQUAL note.
11052
11053 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
11054
11055 PR ipa/77677
11056 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
11057 extract_range_from_unary_expr to convert value_range.
11058 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
11059 (extract_range_from_unary_expr): This.
11060 * tree-vrp.h (extract_range_from_unary_expr): Declare.
11061
11062 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
11063
11064 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
11065
11066 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11067
11068 * config/i386/i386.c (ix86_print_operand)
11069 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
11070 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
11071 (epilogue_renumber): Likewise.
11072
11073 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
11074
11075 PR middle-end/77719
11076 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
11077 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
11078
11079 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
11080
11081 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
11082 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
11083 is_mm_seq_cst, is_mm_sync): Move to ...
11084 * memmodel.h: This. New file.
11085 * builtins.c: Include memmodel.h.
11086 * optabs.c: Likewise.
11087 * tsan.c: Likewise.
11088 * config/aarch64/aarch64.c: Likewise.
11089 * config/alpha/alpha.c: Likewise.
11090 * config/arm/arm.c: Likewise.
11091 * config/i386/i386.c: Likewise.
11092 * config/ia64/ia64.c: Likewise.
11093 * config/mips/mips.c: Likewise.
11094 * config/rs6000/rs6000.c: Likewise.
11095 * config/sparc/sparc.c: Likewise.
11096 * genconditions.c: Include memmodel.h in generated file.
11097 * genemit.c: Likewise.
11098 * genoutput.c: Likewise.
11099 * genpeep.c: Likewise.
11100 * genpreds.c: Likewise.
11101 * genrecog.c: Likewise.
11102
11103 2016-09-26 David Malcolm <dmalcolm@redhat.com>
11104
11105 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
11106 "c" instead when parsing characters. Move operand parsing into...
11107 (read_rtx_operand): ...this new function, renaming "i" to "idx",
11108 and tightening the scope of various locals.
11109
11110 2016-09-26 Liu Hao <lh_mouse@126.com>
11111
11112 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
11113
11114 2016-09-26 Marek Polacek <polacek@redhat.com>
11115
11116 * system.h: Use __has_attribute to check whether the fallthrough
11117 attribute is supported.
11118
11119 2016-09-26 Marek Polacek <polacek@redhat.com>
11120
11121 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
11122 gimple_call_internal_p.
11123 * ipa-split.c (find_return_bb): Likewise.
11124 (execute_split_functions): Likewise.
11125 * omp-low.c (dump_oacc_loop_part): Likewise.
11126 (oacc_loop_xform_head_tail): Likewise.
11127 * predict.c (predict_loops): Likewise.
11128 * sanopt.c (pass_sanopt::execute): Likewise.
11129 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
11130 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
11131 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
11132 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
11133 (expand_ifn_va_arg): Likewise.
11134 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
11135 (optimize_mask_stores): Likewise.
11136 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
11137 (vect_transform_stmt): Likewise.
11138 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
11139 * tsan.c (instrument_memory_accesses): Likewise.
11140
11141 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11142 Alexander Monakov <amonakov@ispras.ru>
11143
11144 * regrename.c (rename_chains): Check
11145 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
11146 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
11147 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11148
11149 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11150
11151 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
11152 (s390_sched_score): Likewise.
11153
11154 2016-09-26 Martin Liska <mliska@suse.cz>
11155
11156 * doc/gcov.texi: Update program output of gcov tool.
11157
11158 2016-09-26 Martin Liska <mliska@suse.cz>
11159
11160 PR gcov-profile/23332
11161 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
11162 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
11163 * value-prof.c (dump_histogram_value): Do not handle
11164 HIST_TYPE_CONST_DELTA.
11165 (stream_in_histogram_value): Likewise.
11166 (gimple_find_values_to_profile): Likewise.
11167 * value-prof.h (enum hist_type): Likewise.
11168
11169 2016-09-26 Martin Liska <mliska@suse.cz>
11170
11171 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
11172 from default sanitize recover values.
11173 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
11174 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
11175 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
11176 consistent.
11177 * opts.c (finish_options): Do a generic loop over options
11178 that can be recovered.
11179 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
11180 SANITIZE_RETURN.
11181 (common_handle_option): Likewise.
11182 * opts.h: Declare can_recover to sanitizer_opts_s.
11183
11184 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
11185
11186 * target.def(elf_flags_numeric): Change documentation to present tense.
11187 * doc/tm.texi: Regenerate.
11188
11189 2016-09-26 Marek Polacek <polacek@redhat.com>
11190
11191 PR c/7652
11192 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
11193 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
11194 -Wno-switch-fallthrough.
11195 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
11196 (expand_builtin): Likewise.
11197 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
11198 * convert.c (convert_to_real_1): Likewise.
11199 (convert_to_integer_1): Likewise.
11200 * final.c (output_alternate_entry_point): Likewise.
11201 * genattrtab.c (make_canonical): Likewise.
11202 (write_test_expr): Likewise.
11203 * genpreds.c (validate_exp): Likewise.
11204 * gimple-ssa-strength-reduction.c
11205 (find_candidates_dom_walker::before_dom_children): Likewise.
11206 * godump.c (go_format_type): Likewise.
11207 * reload1.c (elimination_effects): Likewise.
11208 * resource.c (mark_referenced_resources): Likewise.
11209 (mark_set_resources): Likewise.
11210 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
11211 * varasm.c (output_addressed_constants): Likewise.
11212
11213 2016-09-26 Marek Polacek <polacek@redhat.com>
11214
11215 PR c/7652
11216 * common.opt (Wimplicit-fallthrough): New option.
11217 * doc/extend.texi: Document statement attributes and the fallthrough
11218 attribute.
11219 * doc/invoke.texi: Document -Wimplicit-fallthrough.
11220 * gimple.h (gimple_call_internal_p): New function.
11221 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
11222 (struct label_entry): New struct.
11223 (find_label_entry): New function.
11224 (case_label_p): New function.
11225 (collect_fallthrough_labels): New function.
11226 (last_stmt_in_scope): New function.
11227 (should_warn_for_implicit_fallthrough): New function.
11228 (warn_implicit_fallthrough_r): New function.
11229 (maybe_warn_implicit_fallthrough): New function.
11230 (expand_FALLTHROUGH_r): New function.
11231 (expand_FALLTHROUGH): New function.
11232 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
11233 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
11234 (gimplify_label_expr): New function.
11235 (gimplify_case_label_expr): Set location.
11236 (gimplify_expr): Call gimplify_label_expr.
11237 * internal-fn.c (expand_FALLTHROUGH): New function.
11238 * internal-fn.def (FALLTHROUGH): New internal function.
11239 * langhooks.c (lang_GNU_OBJC): New function.
11240 * langhooks.h (lang_GNU_OBJC): Declare.
11241 * system.h (gcc_fallthrough): Define.
11242 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
11243 * tree.h (FALLTHROUGH_LABEL_P): Define.
11244
11245 2016-09-26 Richard Biener <rguenther@suse.de>
11246
11247 * dwarf2out.c (stripattributes): Remove unused function.
11248 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
11249 Push dwarf_split_debug_info handling into init_sections_and_labels.
11250 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
11251 (DEBUG_MACRO_SECTION_FLAGS): Remove.
11252 (debug_macinfo_section_name): New global.
11253 (output_macinfo): Use debug_macinfo_section_name.
11254 (init_sections_and_labels): Split out section and label generation
11255 from dwarf2out_init. Set debug_macinfo_section_name.
11256 (dwarf2out_init): Move text section label generation and emission
11257 to ...
11258 (dwarf2out_assembly_start): ... here.
11259 (dwarf2out_finish): Call init_sections_and_labels before DWARF
11260 output starts.
11261
11262 2016-09-26 Richard Biener <rguenther@suse.de>
11263
11264 PR debug/77692
11265 * cgraphunit.c (analyze_functions): Before early removing
11266 global vars calls the late_global_decl debug handler mark
11267 the variable as readonly.
11268
11269 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
11270
11271 PR target/51244
11272 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
11273 (sh_rtx_costs): Handle SET of movt and movrt patterns.
11274 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
11275 declare new overloads.
11276 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
11277 operand.
11278
11279 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11280
11281 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
11282 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
11283
11284 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
11285
11286 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
11287 * configure: Regenerate.
11288
11289 2016-09-24 Marek Polacek <polacek@redhat.com>
11290
11291 PR c/77490
11292 * doc/invoke.texi: Document -Wbool-operation.
11293
11294 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11295
11296 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
11297 * config/rs6000/rs6000.c (expand_block_compare): New function used by
11298 cmpmemsi pattern to do builtin expansion of memcmp ().
11299 (compute_current_alignment): Add helper function for
11300 expand_block_compare used to compute alignment as the compare proceeds.
11301 (select_block_compare_mode): Used by expand_block_compare to select
11302 the mode used for reading the next chunk of bytes in the compare.
11303 (do_load_for_compare): Used by expand_block_compare to emit the load
11304 insns for the compare.
11305 (rs6000_emit_dot_insn): Moved this function to avoid a forward
11306 reference from expand_block_compare ().
11307 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
11308 prototype for this function.
11309 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
11310 target option for controlling how much code inline expansion of
11311 memcmp() will be allowed to generate.
11312
11313 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11314
11315 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
11316 hook_bool_mode_false, hook_bool_mode_true,
11317 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
11318 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
11319 hook_bool_const_rtx_insn_const_rtx_insn_true,
11320 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
11321 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
11322 hook_bool_const_tree_hwi_hwi_const_tree_false,
11323 hook_bool_const_tree_hwi_hwi_const_tree_true,
11324 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
11325 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
11326 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
11327 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
11328 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
11329 hook_bool_const_tree_true, hook_bool_tree_tree_false,
11330 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
11331 hook_bool_rtx_insn_true, hook_bool_rtx_false,
11332 hook_bool_uintp_uintp_false,
11333 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
11334 hook_rtx_tree_int_null, hook_uint_mode_0,
11335 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
11336 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
11337 hook_constcharptr_const_rtx_insn_null,
11338 hook_constcharptr_const_tree_const_tree_null,
11339 hook_constcharptr_int_const_tree_null,
11340 hook_constcharptr_int_const_tree_const_tree_null,
11341 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
11342 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
11343 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
11344
11345 * vec.h (vNULL): Extend comment to say = vNULL initialization
11346 isn't needed for static vars.
11347
11348 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
11349 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
11350 = vNULL initialization of file scope vec.
11351 * passes.c (pass_tab, enabled_pass_uid_range_tab,
11352 disabled_pass_uid_range_tab): Likewise.
11353 * haifa-sched.c (sched_luids, h_i_d): Likewise.
11354 * tree-chkp-opt.c (check_infos): Likewise.
11355 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
11356
11357 * vec.h (vnull::operator vec): Add constexpr keyword for
11358 C++11 and later.
11359
11360 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
11361
11362 PR tree-optimization/77654
11363 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
11364 to duplicate_ssa_name_ptr_info.
11365
11366 2016-09-23 David Malcolm <dmalcolm@redhat.com>
11367
11368 PR preprocessor/77672
11369 * input.c (selftest::test_lexer_string_locations_simple): Update
11370 test to expect location information of the terminator character
11371 at the location of the final closing quote.
11372 (selftest::test_lexer_string_locations_hex): Likewise.
11373 (selftest::test_lexer_string_locations_oct): Likewise.
11374 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
11375 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
11376 (selftest::test_lexer_string_locations_ucn4): Likewise.
11377 (selftest::test_lexer_string_locations_ucn8): Likewise.
11378 (selftest::test_lexer_string_locations_u8): Likewise.
11379 (selftest::test_lexer_string_locations_utf8_source): Likewise.
11380 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
11381 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
11382 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
11383 (selftest::test_lexer_string_locations_macro): Likewise.
11384 (selftest::test_lexer_string_locations_long_line): Likewise.
11385
11386 2016-09-23 Richard Biener <rguenther@suse.de>
11387
11388 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
11389 virtual definition to virtual use if the call devirtualizes
11390 to a const or pure function.
11391 (visit_use): Also visit calls we can devirtualize to a
11392 const or pure function.
11393
11394 2016-09-23 Richard Biener <rguenther@suse.de>
11395
11396 PR tree-optimization/77697
11397 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
11398 signal error if we have sth ternary or unhandled.
11399
11400 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11401
11402 * config/arm/arm_neon.h (vabd_f16): New.
11403 (vabdq_f16): New.
11404 (vabs_f16): New.
11405 (vabsq_f16): New.
11406 (vadd_f16): New.
11407 (vaddq_f16): New.
11408 (vcage_f16): New.
11409 (vcageq_f16): New.
11410 (vcagt_f16): New.
11411 (vcagtq_f16): New.
11412 (vcale_f16): New.
11413 (vcaleq_f16): New.
11414 (vcalt_f16): New.
11415 (vcaltq_f16): New.
11416 (vceq_f16): New.
11417 (vceqq_f16): New.
11418 (vceqz_f16): New.
11419 (vceqzq_f16): New.
11420 (vcge_f16): New.
11421 (vcgeq_f16): New.
11422 (vcgez_f16): New.
11423 (vcgezq_f16): New.
11424 (vcgt_f16): New.
11425 (vcgtq_f16): New.
11426 (vcgtz_f16): New.
11427 (vcgtzq_f16): New.
11428 (vcle_f16): New.
11429 (vcleq_f16): New.
11430 (vclez_f16): New.
11431 (vclezq_f16): New.
11432 (vclt_f16): New.
11433 (vcltq_f16): New.
11434 (vcltz_f16): New.
11435 (vcltzq_f16): New.
11436 (vcvt_f16_s16): New.
11437 (vcvt_f16_u16): New.
11438 (vcvt_s16_f16): New.
11439 (vcvt_u16_f16): New.
11440 (vcvtq_f16_s16): New.
11441 (vcvtq_f16_u16): New.
11442 (vcvtq_s16_f16): New.
11443 (vcvtq_u16_f16): New.
11444 (vcvta_s16_f16): New.
11445 (vcvta_u16_f16): New.
11446 (vcvtaq_s16_f16): New.
11447 (vcvtaq_u16_f16): New.
11448 (vcvtm_s16_f16): New.
11449 (vcvtm_u16_f16): New.
11450 (vcvtmq_s16_f16): New.
11451 (vcvtmq_u16_f16): New.
11452 (vcvtn_s16_f16): New.
11453 (vcvtn_u16_f16): New.
11454 (vcvtnq_s16_f16): New.
11455 (vcvtnq_u16_f16): New.
11456 (vcvtp_s16_f16): New.
11457 (vcvtp_u16_f16): New.
11458 (vcvtpq_s16_f16): New.
11459 (vcvtpq_u16_f16): New.
11460 (vcvt_n_f16_s16): New.
11461 (vcvt_n_f16_u16): New.
11462 (vcvtq_n_f16_s16): New.
11463 (vcvtq_n_f16_u16): New.
11464 (vcvt_n_s16_f16): New.
11465 (vcvt_n_u16_f16): New.
11466 (vcvtq_n_s16_f16): New.
11467 (vcvtq_n_u16_f16): New.
11468 (vfma_f16): New.
11469 (vfmaq_f16): New.
11470 (vfms_f16): New.
11471 (vfmsq_f16): New.
11472 (vmax_f16): New.
11473 (vmaxq_f16): New.
11474 (vmaxnm_f16): New.
11475 (vmaxnmq_f16): New.
11476 (vmin_f16): New.
11477 (vminq_f16): New.
11478 (vminnm_f16): New.
11479 (vminnmq_f16): New.
11480 (vmul_f16): New.
11481 (vmul_lane_f16): New.
11482 (vmul_n_f16): New.
11483 (vmulq_f16): New.
11484 (vmulq_lane_f16): New.
11485 (vmulq_n_f16): New.
11486 (vneg_f16): New.
11487 (vnegq_f16): New.
11488 (vpadd_f16): New.
11489 (vpmax_f16): New.
11490 (vpmin_f16): New.
11491 (vrecpe_f16): New.
11492 (vrecpeq_f16): New.
11493 (vrnd_f16): New.
11494 (vrndq_f16): New.
11495 (vrnda_f16): New.
11496 (vrndaq_f16): New.
11497 (vrndm_f16): New.
11498 (vrndmq_f16): New.
11499 (vrndn_f16): New.
11500 (vrndnq_f16): New.
11501 (vrndp_f16): New.
11502 (vrndpq_f16): New.
11503 (vrndx_f16): New.
11504 (vrndxq_f16): New.
11505 (vrsqrte_f16): New.
11506 (vrsqrteq_f16): New.
11507 (vrecps_f16): New.
11508 (vrecpsq_f16): New.
11509 (vrsqrts_f16): New.
11510 (vrsqrtsq_f16): New.
11511 (vsub_f16): New.
11512 (vsubq_f16): New.
11513
11514 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11515
11516 * config.gcc (extra_headers): Add arm_fp16.h
11517 * config/arm/arm_fp16.h: New.
11518 * config/arm/arm_neon.h: Include "arm_fp16.h".
11519
11520 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11521
11522 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
11523 variants).
11524 (vmulf): New (v8hf, v4hf variants).
11525 (vfma): New (v8hf, v4hf variants).
11526 (vfms): New (v8hf, v4hf variants).
11527 (vsub): New (v8hf, v4hf variants).
11528 (vcage): New (v8hf, v4hf variants).
11529 (vcagt): New (v8hf, v4hf variants).
11530 (vcale): New (v8hf, v4hf variants).
11531 (vcalt): New (v8hf, v4hf variants).
11532 (vceq): New (v8hf, v4hf variants).
11533 (vcgt): New (v8hf, v4hf variants).
11534 (vcge): New (v8hf, v4hf variants).
11535 (vcle): New (v8hf, v4hf variants).
11536 (vclt): New (v8hf, v4hf variants).
11537 (vceqz): New (v8hf, v4hf variants).
11538 (vcgez): New (v8hf, v4hf variants).
11539 (vcgtz): New (v8hf, v4hf variants).
11540 (vcltz): New (v8hf, v4hf variants).
11541 (vclez): New (v8hf, v4hf variants).
11542 (vabd): New (v8hf, v4hf variants).
11543 (vmaxf): New (v8hf, v4hf variants).
11544 (vmaxnm): New (v8hf, v4hf variants).
11545 (vminf): New (v8hf, v4hf variants).
11546 (vminnm): New (v8hf, v4hf variants).
11547 (vpmaxf): New (v4hf variant).
11548 (vpminf): New (v4hf variant).
11549 (vpadd): New (v4hf variant).
11550 (vrecps): New (v8hf, v4hf variants).
11551 (vrsqrts): New (v8hf, v4hf variants).
11552 (vabs): New (v8hf, v4hf variants).
11553 (vneg): New (v8hf, v4hf variants).
11554 (vrecpe): New (v8hf, v4hf variants).
11555 (vrnd): New (v8hf, v4hf variants).
11556 (vrnda): New (v8hf, v4hf variants).
11557 (vrndm): New (v8hf, v4hf variants).
11558 (vrndn): New (v8hf, v4hf variants).
11559 (vrndp): New (v8hf, v4hf variants).
11560 (vrndx): New (v8hf, v4hf variants).
11561 (vrsqrte): New (v8hf, v4hf variants).
11562 (vmul_lane): Add v4hf and v8hf variants.
11563 (vmul_n): Add v4hf and v8hf variants.
11564 (vext): New (v8hf, v4hf variants).
11565 (vcvts): New (v8hi, v4hi variants).
11566 (vcvts): New (v8hf, v4hf variants).
11567 (vcvtu): New (v8hi, v4hi variants).
11568 (vcvtu): New (v8hf, v4hf variants).
11569 (vcvts_n): New (v8hf, v4hf variants).
11570 (vcvtu_n): New (v8hi, v4hi variants).
11571 (vcvts_n): New (v8hi, v4hi variants).
11572 (vcvtu_n): New (v8hf, v4hf variants).
11573 (vbsl): New (v8hf, v4hf variants).
11574 (vcvtas): New (v8hf, v4hf variants).
11575 (vcvtau): New (v8hf, v4hf variants).
11576 (vcvtms): New (v8hf, v4hf variants).
11577 (vcvtmu): New (v8hf, v4hf variants).
11578 (vcvtns): New (v8hf, v4hf variants).
11579 (vcvtnu): New (v8hf, v4hf variants).
11580 (vcvtps): New (v8hf, v4hf variants).
11581 (vcvtpu): New (v8hf, v4hf variants).
11582
11583 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11584
11585 * config/arm/arm-builtins.c (hf_UP): New.
11586 (si_UP): New.
11587 (vfp_builtin_data): New. Update comment.
11588 (enum arm_builtins): Include "arm_vfp_builtins.def".
11589 (ARM_BUILTIN_VFP_PATTERN_START): New.
11590 (arm_init_vfp_builtins): New.
11591 (arm_init_builtins): Add arm_init_vfp_builtins.
11592 (arm_expand_vfp_builtin): New.
11593 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
11594 long line.
11595 * config/arm/arm_vfp_builtins.def: New file.
11596 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
11597 (arm-builtins.o): Likewise.
11598
11599 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11600
11601 PR ipa/77677
11602 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
11603 from constant while creating value range.
11604
11605 2016-09-23 Renlin Li <renlin.li@arm.com>
11606
11607 * ira.c (ira): Move ira_use_lra_p initialization code to ...
11608 (ira_init_once): Here.
11609
11610 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
11611 Jakub Jelinek <jakub@redhat.com>
11612
11613 * hooks.h (hook_uint_uintp_false): Rename to...
11614 (hook_bool_uint_uintp_false): ... this.
11615 * hooks.c (hook_uint_uintp_false): Rename to...
11616 (hook_bool_uint_uintp_false): ... this.
11617 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
11618 instead of hook_uint_uintp_false.
11619
11620 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11621
11622 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
11623 (arm_init_builtins): Move body of a loop to the standalone
11624 function arm_init_neon_builtin.
11625 (arm_expand_neon_builtin_1): New. Update comment. Function body
11626 moved from arm_neon_builtin with some white-space fixes.
11627 (arm_expand_neon_builtin): Move code into the standalone function
11628 arm_expand_neon_builtin_1.
11629
11630 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11631
11632 * config/arm/iterators.md (VCVTHI): New.
11633 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
11634 (NEON_VAGLTE): New.
11635 (VFM_LANE_AS): New.
11636 (VH_CVTTO): New.
11637 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
11638 (V_HALF): Add V4HF. Fix white-space.
11639 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
11640 (V_s_elem): Likewise.
11641 (V_sz_elem): Fix white-space.
11642 (V_elem_ch): Likewise.
11643 (VH_elem_ch): New.
11644 (scalar_mul_constraint): Add V8HF and V4HF.
11645 (Is_float_mode): Fix white-space.
11646 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
11647 (q): Add HF. Fix white-space.
11648 (float_sup): New.
11649 (float_SUP): New.
11650 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
11651 (neon_vfm_lane_as): New.
11652 * config/arm/neon.md (add<mode>3_fp16): New.
11653 (sub<mode>3_fp16): New.
11654 (mul<mode>3add<mode>_neon): New.
11655 (fma<VH:mode>4_intrinsic): New.
11656 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
11657 (fmsub<VH:mode>4_intrinsic): New.
11658 (<absneg_str><mode>2): New.
11659 (neon_v<absneg_str><mode>): New.
11660 (neon_v<fp16_rnd_str><mode>): New.
11661 (neon_vrsqrte<mode>): New.
11662 (neon_vpaddv4hf): New.
11663 (neon_vadd<mode>): New.
11664 (neon_vsub<mode>): New.
11665 (neon_vmulf<mode>): New.
11666 (neon_vfma<VH:mode>): New.
11667 (neon_vfms<VH:mode>): New.
11668 (neon_vc<cmp_op><mode>): New.
11669 (neon_vc<cmp_op><mode>_fp16insn): New
11670 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
11671 (neon_vca<cmp_op><mode>): New.
11672 (neon_vca<cmp_op><mode>_fp16insn): New.
11673 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
11674 (neon_vc<cmp_op>z<mode>): New.
11675 (neon_vabd<mode>): New.
11676 (neon_v<maxmin>f<mode>): New.
11677 (neon_vp<maxmin>fv4hf: New.
11678 (neon_<fmaxmin_op><mode>): New.
11679 (neon_vrecps<mode>): New.
11680 (neon_vrsqrts<mode>): New.
11681 (neon_vrecpe<mode>): New (VH variant).
11682 (neon_vdup_lane<mode>_internal): New.
11683 (neon_vdup_lane<mode>): New.
11684 (neon_vcvt<sup><mode>): New (VCVTHI variant).
11685 (neon_vcvt<sup><mode>): New (VH variant).
11686 (neon_vcvt<sup>_n<mode>): New (VH variant).
11687 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
11688 (neon_vcvt<vcvth_op><sup><mode>): New.
11689 (neon_vmul_lane<mode>): New.
11690 (neon_vmul_n<mode>): New.
11691 * config/arm/unspecs.md (UNSPEC_VCALE): New
11692 (UNSPEC_VCALT): New.
11693 (UNSPEC_VFMA_LANE): New.
11694 (UNSPECS_VFMS_LANE): New.
11695
11696 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11697
11698 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
11699 ("*extzv<mode><clobbercc_or_nocc>"):
11700 Correct a typo in a comment.
11701 Merged patterns.
11702 ("*insv<mode>_zEC12", "*insv<mode>_z10")
11703 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
11704 ("*insv<mode>_zEC12_appendbitsleft")
11705 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
11706 ("*insv<mode>_z10_appendbitsleft"): Ditto.
11707 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
11708 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
11709 Provide pattern with operands switched.
11710 ("*pre_z10_extv<mode>"):
11711 Use new subst patterns.
11712 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
11713 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
11714 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
11715 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
11716 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
11717 ("*<risbg_n>_sidi_ior_and_lshiftrt")
11718 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
11719 New patterns.
11720 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
11721 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
11722 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
11723 on zEC12.
11724 ("SINT"): New mode_iterator with SI, HI, QI.
11725 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
11726 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
11727 duplication.
11728
11729 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11730
11731 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
11732 new interface of s390_contiguous_bitmask_p.
11733 ("contiguous_bitmask_nowrap_operand"): New predicate.
11734 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
11735 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
11736 of s390_contiguous_bitmask_p.
11737 ("NxxDw"): Rename NxxDq constraint to NxxDw.
11738 ("NxxSw"): New constraint.
11739 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
11740 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
11741 interface.
11742 (s390_contiguous_bitmask_nowrap_p): Export.
11743 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
11744 former s390_contiguous_bitmask_p.
11745 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
11746 detect contiguous bit ranges with wraparound. Change signature to
11747 return START and END position instead of POS and LENGTH.
11748 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
11749 ranges with wraparound.
11750 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
11751 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
11752 Adapt to new signature of s390_contiguous_bitmask_p.
11753
11754 2016-09-23 Bin Cheng <bin.cheng@arm.com>
11755
11756 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
11757 (create_intersect_range_checks): New.
11758 (vect_create_cond_for_alias_checks): Call above function.
11759
11760 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11761
11762 * config/arm/iterators.md (Code iterators): Fix some white-space
11763 in the comments.
11764 (GLTE): New.
11765 (ABSNEG): New
11766 (FCVT): Moved from vfp.md.
11767 (VCVT_HF_US_N): New.
11768 (VCVT_SI_US_N): New.
11769 (VCVT_HF_US): New.
11770 (VCVTH_US): New.
11771 (FP16_RND): New.
11772 (absneg_str): New.
11773 (FCVTI32typename): Moved from vfp.md.
11774 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
11775 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
11776 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
11777 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
11778 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
11779 (vcvth_op): New.
11780 (fp16_rnd_str): New.
11781 (fp16_rnd_insn): New.
11782 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
11783 (UNSPEC_VCVT_HF_U_N): New.
11784 (UNSPEC_VCVT_SI_S_N): New.
11785 (UNSPEC_VCVT_SI_U_N): New.
11786 (UNSPEC_VCVTH_S): New.
11787 (UNSPEC_VCVTH_U): New.
11788 (UNSPEC_VCVTA_S): New.
11789 (UNSPEC_VCVTA_U): New.
11790 (UNSPEC_VCVTM_S): New.
11791 (UNSPEC_VCVTM_U): New.
11792 (UNSPEC_VCVTN_S): New.
11793 (UNSPEC_VCVTN_U): New.
11794 (UNSPEC_VCVTP_S): New.
11795 (UNSPEC_VCVTP_U): New.
11796 (UNSPEC_VCVTP_S): New.
11797 (UNSPEC_VCVTP_U): New.
11798 (UNSPEC_VRND): New.
11799 (UNSPEC_VRNDA): New.
11800 (UNSPEC_VRNDI): New.
11801 (UNSPEC_VRNDM): New.
11802 (UNSPEC_VRNDN): New.
11803 (UNSPEC_VRNDP): New.
11804 (UNSPEC_VRNDX): New.
11805 * config/arm/vfp.md (<absneg_str>hf2): New.
11806 (neon_vabshf): New.
11807 (neon_v<fp16_rnd_str>hf): New.
11808 (neon_vrndihf): New.
11809 (addhf3): New.
11810 (subhf3): New.
11811 (divhf3): New.
11812 (mulhf3): New.
11813 (*mulsf3neghf_vfp): New.
11814 (*negmulhf3_vfp): New.
11815 (*mulsf3addhf_vfp): New.
11816 (*mulhf3subhf_vfp): New.
11817 (*mulhf3neghfaddhf_vfp): New.
11818 (*mulhf3neghfsubhf_vfp): New.
11819 (fmahf4): New.
11820 (neon_vfmahf): New.
11821 (fmsubhf4_fp16): New.
11822 (neon_vfmshf): New.
11823 (*fnmsubhf4): New.
11824 (*fnmaddhf4): New.
11825 (neon_vsqrthf): New.
11826 (neon_vrsqrtshf): New.
11827 (FCVT): Move to iterators.md.
11828 (FCVTI32typename): Likewise.
11829 (neon_vcvth<sup>hf): New.
11830 (neon_vcvth<sup>si): New.
11831 (neon_vcvth<sup>_nhf_unspec): New.
11832 (neon_vcvth<sup>_nhf): New.
11833 (neon_vcvth<sup>_nsi_unspec): New.
11834 (neon_vcvth<sup>_nsi): New.
11835 (neon_vcvt<vcvth_op>h<sup>si): New.
11836 (neon_<fmaxmin_op>hf): New.
11837
11838 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11839
11840 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
11841 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
11842 ("*insv<mode>_zEC12_appendbitsleft")
11843 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
11844 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
11845
11846 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11847
11848 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
11849 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
11850 construct values without normalization.
11851 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
11852 static local lhs_ops to vNULL.
11853
11854 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11855 Jiong Wang <jiong.wang@arm.com>
11856
11857 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
11858 available when FP16 instructions are available.
11859 (output_move_vfp): Add support for 16-bit data moves.
11860 (arm_validize_comparison): Fix some white-space. Support HFmode
11861 by conversion to SFmode.
11862 * config/arm/arm.md (truncdfhf2): Fix a comment.
11863 (extendhfdf2): Likewise.
11864 (cstorehf4): New.
11865 (movsicc): Fix some white-space.
11866 (movhfcc): New.
11867 (movsfcc): Fix some white-space.
11868 (*cmovhf): New.
11869 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
11870 instructions are available.
11871 (*thumb2_movhi_vfp): Likewise.
11872 (*arm_movhi_fp16): New.
11873 (*thumb2_movhi_fp16): New.
11874 (*movhf_vfp_fp16): New.
11875 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
11876 (*movhf_vfp): Likewise.
11877 (extendhfsf2): Enable when VFP FP16 instructions are available.
11878 (truncsfhf2): Enable when VFP FP16 instructions are available.
11879
11880 2016-09-23 Martin Liska <mliska@suse.cz>
11881
11882 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
11883
11884 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11885
11886 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
11887 V4HF modes.
11888 (arm_evpc_neon_vtrn): Likewise.
11889 (arm_evpc_neon_vrev): Likewise.
11890 (arm_evpc_neon_vext): Likewise.
11891 * config/arm/arm_neon.h (vbsl_f16): New.
11892 (vbslq_f16): New.
11893 (vdup_n_f16): New.
11894 (vdupq_n_f16): New.
11895 (vdup_lane_f16): New.
11896 (vdupq_lane_f16): New.
11897 (vext_f16): New.
11898 (vextq_f16): New.
11899 (vmov_n_f16): New.
11900 (vmovq_n_f16): New.
11901 (vrev64_f16): New.
11902 (vrev64q_f16): New.
11903 (vtrn_f16): New.
11904 (vtrnq_f16): New.
11905 (vuzp_f16): New.
11906 (vuzpq_f16): New.
11907 (vzip_f16): New.
11908 (vzipq_f16): New.
11909 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
11910 (vdup_lane): New (v8hf, v4hf variants).
11911 (vext): New (v8hf, v4hf variants).
11912 (vbsl): New (v8hf, v4hf variants).
11913 * config/arm/iterators.md (VDQWH): New.
11914 (VH): New.
11915 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
11916 (Scalar_mul_8_16): Fix white-space.
11917 (Is_d_reg): Add V4HF and V8HF.
11918 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
11919 (neon_vdup_lane<mode>): New.
11920 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
11921 (*neon_vtrn<mode>_insn): Likewise.
11922 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
11923 (*neon_vzip<mode>_insn): Likewise
11924 (neon_vuzp<mode>_internal): Likewise.
11925 (*neon_vuzp<mode>_insn): Likewise
11926 * config/arm/vec-common.md (vec_perm_const<mode>): New.
11927
11928 2016-09-23 Jiong Wang <jiong.wang@arm.com>
11929 Matthew Wahab <matthew.wahab@arm.com>
11930
11931 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
11932 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
11933 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
11934 available. Also fix some white-space.
11935 * config/arm/vfp.md (*arm_movhi_vfp): New.
11936 (*thumb2_movhi_vfp): New.
11937
11938 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11939
11940 * config/arm/arm-c.c (arm_cpu_builtins): Define
11941 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
11942 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
11943
11944 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11945
11946 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
11947 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
11948 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
11949 arm_v8_2a_fp16_neon_hw.
11950 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
11951 arm_v8_2a_neon.
11952
11953 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11954
11955 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
11956 arm_fp16_alternative_ok and arm_fp16_none_ok.
11957
11958 2016-09-23 Martin Liska <mliska@suse.cz>
11959
11960 * ipa-icf.c (sem_variable::merge): Replace adress with address.
11961
11962 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11963
11964 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
11965 ("armv8.2-a"): New.
11966 ("armv8.2-a+fp16"): New.
11967 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
11968 (FL2_FP16INST): New.
11969 (FL2_FOR_ARCH8_2A): New.
11970 * config/arm/arm-tables.opt: Regenerate.
11971 * config/arm/arm.c (arm_arch8_2): New.
11972 (arm_fp16_inst): New.
11973 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
11974 for incompatible fp16-format settings.
11975 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
11976 (TARGET_NEON_FP16INST): New.
11977 (arm_arch8_2): Declare.
11978 (arm_fp16_inst): Declare.
11979 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
11980 march=armv8.2-a and march=armv8.2-a+fp16.
11981 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
11982 and armv8.2-a+fp16.
11983 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
11984 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
11985
11986 2016-09-23 Martin Liska <mliska@suse.cz>
11987
11988 * doc/extend.texi: Remove fused-madd from i386 target options.
11989
11990 2016-09-23 Martin Liska <mliska@suse.cz>
11991
11992 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
11993 Handle movbe.
11994
11995 2016-09-23 Martin Liska <mliska@suse.cz>
11996
11997 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
11998 Handle crc32.
11999
12000 2016-09-23 Martin Liska <mliska@suse.cz>
12001
12002 PR target/71652
12003 * config/i386/i386.c (ix86_option_override_internal): Change
12004 signature and return false when there's an error related to
12005 arch string.
12006 (release_options_strings): New function.
12007 (ix86_valid_target_attribute_tree): Call the function.
12008
12009 2016-09-23 Jakub Jelinek <jakub@redhat.com>
12010
12011 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
12012 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
12013 (gen_hsa_ctor_assignment): Likewise.
12014 * print-tree.c (print_node): Likewise.
12015 * tree-dump.c (dequeue_and_dump): Likewise.
12016 * tree-sra.c (sra_modify_constructor_assign): Likewise.
12017 * expr.c (store_constructor): Likewise.
12018 * fold-const.c (operand_equal_p): Likewise.
12019 * tree-pretty-print.c (dump_generic_node): Likewise.
12020 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
12021 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
12022
12023 2016-09-23 Richard Biener <rguenther@suse.de>
12024
12025 * hooks.h (hook_uint_uintp_false): Declare.
12026
12027 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12028
12029 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
12030 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
12031
12032 2016-09-22 Martin Sebor <msebor@redhat.com>
12033
12034 PR target/77676
12035 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
12036 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
12037 (target_int_min): Correct computation.
12038 (format_integer): Use long long as the argument for the ll length
12039 modifier.
12040 (format_floating): Use target_int_max().
12041 (get_string_length): Same.
12042 (format_string): Avoid setting the bounded flag for strings
12043 of unknown length.
12044 (try_substitute_return_value): Avoid setting range info when
12045 the result isn't bounded.
12046 * varasm.c (assemble_name): Increase buffer size.
12047
12048 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
12049 Terry Guo <terry.guo@arm.com>
12050
12051 * target.def (elf_flags_numeric): New target hook.
12052 * targhooks.h (default_asm_elf_flags_numeric): New.
12053 * varasm.c (default_asm_elf_flags_numeric): New.
12054 (default_elf_asm_named_section): Use new target hook.
12055 * config/arm/arm.opt (mpure-code): New.
12056 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
12057 * config/arm/arm.c (arm_asm_init_sections): Add section
12058 attribute to default text section if -mpure-code.
12059 (arm_option_check_internal): Diagnose use of option with
12060 non supported targets and/or options.
12061 (arm_asm_elf_flags_numeric): New.
12062 (arm_function_section): New.
12063 (arm_elf_section_type_flags): New.
12064 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
12065 for -mpure-code.
12066 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
12067 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
12068
12069 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
12070
12071 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
12072
12073 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12074
12075 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
12076 * rtl.h: Adjust prototype.
12077
12078 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12079
12080 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
12081 (prev_active_insn): Likewise.
12082 (active_insn_p): Likewise.
12083 * rtl.h: Adjust prototypes.
12084 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
12085 * config/arc/arc.md: Likewise.
12086 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
12087 (branch_needs_nop_p): Likewise.
12088 (use_skip_p): Likewise.
12089 * config/sh/sh.c (gen_block_redirect): Likewise.
12090 (split_branches): Likewise.
12091 * reorg.c (optimize_skip): Likewise.
12092 (fill_simple_delay_slots): Likewise.
12093 (fill_slots_from_thread): Likewise.
12094 (relax_delay_slots): Likewise.
12095 * resource.c (mark_target_live_regs): Likewise.
12096
12097 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12098
12099 * config/cris/cris.c (cris_asm_output_case_end): Change argument
12100 type to rtx_insn *.
12101 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
12102 (prev_nonnote_nondebug_insn): Likewise.
12103 * config/cris/cris-protos.h: Adjust prototype.
12104 * rtl.h: Likewise.
12105 * jump.c (rtx_renumbered_equal_p): Adjust.
12106
12107 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12108
12109 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
12110 * rtl.h: Adjust prototype.
12111 * config/sh/sh.md: Adjust.
12112 * dwarf2out.c (add_var_loc_to_decl): Likewise.
12113
12114 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12115
12116 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
12117 (prev_nondebug_insn): Likewise.
12118 * loop-doloop.c (doloop_condition_get): Likewise.
12119 * rtl.h: Adjust prototype.
12120 * cfgloop.h: Likewise.
12121
12122 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12123
12124 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
12125 (prev_nonnote_insn): Likewise.
12126 * jump.c (reversed_comparison_code_parts): Likewise.
12127 (reversed_comparison): Likewise.
12128 * rtl.h: Adjust prototypes.
12129 * config/arc/arc.md: Adjust.
12130 * cse.c (find_comparison_args): Likewise.
12131 * reorg.c (redundant_insn): Change return type to rtx_insn *.
12132 (fix_reg_dead_note): Change argument type to rtx_insn *.
12133 (delete_prior_computation): Likewise.
12134 (delete_computation): Likewise.
12135 (fill_slots_from_thread): Adjust.
12136 (relax_delay_slots): Likewise.
12137 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12138 (simplify_relational_operation_1): Likewise.
12139 (simplify_ternary_operation): Likewise.
12140
12141 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12142
12143 * config/arc/arc-protos.h (arc_label_align): Change type of
12144 variables from rtx to rtx_insn *.
12145 * config/arc/arc.c (arc_label_align): Likewise.
12146 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
12147 * config/bfin/bfin.c (workaround_speculation): Likewise.
12148 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
12149 (find_last_same_clock): Likewise.
12150 (reorg_split_calls): Likewise.
12151 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
12152 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
12153 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
12154 (same_cmp_following_p): Likewise.
12155 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
12156 (same_cmp_following_p): Likwise.
12157 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
12158 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
12159 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
12160 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
12161 (rl78_alloc_physical_registers_cmp): Likewise.
12162 (rl78_alloc_physical_registers_umul): Likewise.
12163 (rl78_calculate_death_notes): Likewise.
12164 * config/s390/s390-protos.h (s390_label_align): Likewise.
12165 * config/s390/s390.c (s390_label_align): Likewise.
12166 * config/sh/sh.c (barrier_align): Likewise.
12167 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
12168 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
12169 (emit_cbcond_nop): Likewise.
12170
12171 2016-09-22 Martin Liska <mliska@suse.cz>
12172
12173 PR ipa/77653
12174 * ipa-icf.c (sem_variable::merge): Yield merge operation if
12175 alias address matters, not necessarily address of original.
12176
12177 2016-09-22 Richard Biener <rguenther@suse.de>
12178
12179 PR middle-end/77697
12180 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
12181 fold fails.
12182
12183 2016-09-22 Richard Biener <rguenther@suse.de>
12184
12185 PR middle-end/77677
12186 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
12187 from constant folding results.
12188 (gimple_resimplify2): Likewise.
12189 (gimple_resimplify3): Likewise.
12190
12191 2016-09-22 Richard Biener <rguenther@suse.de>
12192
12193 PR middle-end/77678
12194 * expr.c (expand_expr_real_1): Guard array access against negative
12195 offset.
12196
12197 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12198
12199 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
12200 of MPFR_RNDN.
12201 (format_floating): Likewise.
12202
12203 2016-09-22 Jakub Jelinek <jakub@redhat.com>
12204
12205 PR fortran/77665
12206 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
12207 for all IFN_GOMP_SIMD_* internal fns, not just for
12208 IFN_GOMP_SIMD_ORDERED_*.
12209
12210 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12211
12212 PR target/77670
12213 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
12214 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
12215 instructions when you want to invert the test.
12216 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
12217 correct order for XXSEL.
12218 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
12219 for using XSCMP{EQ,GT,GE}DP.
12220
12221 2016-09-21 David Malcolm <dmalcolm@redhat.com>
12222
12223 * genconstants.c (main): Introduce noop_reader and convert call
12224 to read_md_files to a method call.
12225 * genenums.c (main): Likewise.
12226 * genmddeps.c (main): Likewise.
12227 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
12228 rtx_reader_ptr->get_top_level_filename ().
12229 (write_tm_preds_h): Likewise.
12230 (write_insn_preds_c): Likewise.
12231 * gensupport.c (class gen_reader): New subclass of rtx_reader.
12232 (rtx_handle_directive): Convert to...
12233 (gen_reader::handle_unknown_directive): ...this.
12234 (init_rtx_reader_args_cb): Convert return type from bool to
12235 rtx_reader *. Create a gen_reader instance, using it for the
12236 call to read_md_files. Return it if no errors occur.
12237 (init_rtx_reader_args): Convert return type from bool to
12238 rtx_reader *.
12239 * gensupport.h (init_rtx_reader_args_cb): Likewise.
12240 (init_rtx_reader_args_cb): Likewise.
12241 * read-md.c (struct file_name_list): Move to class rtx_reader.
12242 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
12243 (read_md_filename): Delete in favor of
12244 rtx_reader::m_read_md_filename.
12245 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
12246 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
12247 (base_dir): Delete in favor of rtx_reader::m_base_dir.
12248 (first_dir_md_include): Delete in favor of
12249 rtx_reader::m_first_dir_md_include.
12250 (last_dir_md_include_ptr): Delete in favor of
12251 rtx_reader::m_last_dir_md_include_ptr.
12252 (max_include_len): Delete.
12253 (rtx_reader_ptr): New.
12254 (fatal_with_file_and_line): Use get_filename and get_lineno
12255 accessors of rtx_reader_ptr.
12256 (require_char_ws): Likewise.
12257 (rtx_reader::read_char): New method, based on ::read_char.
12258 (rtx_reader::unread_char): New method, based on ::unread_char.
12259 (read_escape): Use get_filename and get_lineno accessors of
12260 rtx_reader_ptr.
12261 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
12262 (read_string): Use get_filename and get_lineno accessors of
12263 rtx_reader_ptr.
12264 (rtx_reader::rtx_reader): New ctor.
12265 (rtx_reader::~rtx_reader): New dtor.
12266 (handle_include): Convert from a function to...
12267 (rtx_reader::handle_include): ...this method, converting
12268 handle_directive from a callback to a virtual function.
12269 (handle_file): Likewise, converting to...
12270 (rtx_reader::handle_file): ...this method.
12271 (handle_toplevel_file): Likewise, converting to...
12272 (rtx_reader::handle_toplevel_file): ...this method.
12273 (rtx_reader::get_current_location): New method.
12274 (parse_include): Convert from a function to...
12275 (rtx_reader::add_include_path): ...this method, dropping redundant
12276 update to unused max_include_len.
12277 (read_md_files): Convert from a function to...
12278 (rtx_reader::read_md_files): ...this method, converting
12279 handle_directive from a callback to a virtual function.
12280 (noop_reader::handle_unknown_directive): New method.
12281 * read-md.h (directive_handler_t): Delete this typedef.
12282 (in_fname): Delete.
12283 (read_md_file): Delete.
12284 (read_md_lineno): Delete.
12285 (read_md_filename): Delete.
12286 (class rtx_reader): New class.
12287 (rtx_reader_ptr): New decl.
12288 (class noop_reader): New subclass of rtx_reader.
12289 (read_char): Reimplement in terms of rtx_reader::read_char.
12290 (unread_char): Reimplement in terms of rtx_reader::unread_char.
12291 (read_md_files): Delete.
12292 * read-rtl.c (read_rtx_code): Update for deletion of globals
12293 read_md_filename and read_md_lineno.
12294
12295 2016-09-21 Jason Merrill <jason@redhat.com>
12296
12297 * input.h (from_macro_definition_at): New.
12298
12299 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
12300
12301 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
12302
12303 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12304
12305 PR tree-optimization/77550
12306 * tree-vect-stmts.c (create_array_ref): Change parameters.
12307 (get_group_alias_ptr_type): New function.
12308 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
12309
12310 2016-09-21 Marek Polacek <polacek@redhat.com>
12311
12312 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
12313 Add falls through comment.
12314
12315 2016-09-21 Richard Biener <rguenther@suse.de>
12316
12317 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
12318 (replace_child): Likewise.
12319 (remove_child_TAG): Adjust.
12320 (move_marked_base_types): Likewise.
12321 (prune_unused_types_prune): Clear die_sib of removed children.
12322
12323 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
12324
12325 PR target/77326
12326 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
12327 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
12328
12329 2016-09-21 Richard Biener <rguenther@suse.de>
12330
12331 PR tree-optimization/77648
12332 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
12333 with complex RHS.
12334 (make_transitive_closure_constraints): Adjust comment.
12335 (make_any_offset_constraints): New function.
12336 (handle_rhs_call): Make sure to first expand a pointer to all
12337 subfields before transitively closing it.
12338 (handle_const_call): Likewise. Properly expand returned
12339 pointers as well.
12340 (handle_pure_call): Likewise.
12341
12342 2016-09-21 Richard Biener <rguenther@suse.de>
12343 Jakub Jelinek <jakub@redhat.com>
12344
12345 PR tree-optimization/77621
12346 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
12347 group at non-vectorizable stmts.
12348
12349 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12350
12351 PR tree-optimization/72835
12352 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
12353 (make_new_ssa_for_all_defs): Likewise.
12354 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
12355
12356 2016-09-20 Martin Sebor <msebor@redhat.com>
12357
12358 PR middle-end/49905
12359 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
12360 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
12361 * config/linux.c (gnu_libc_printf_pointer_format): New function.
12362 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
12363 * config/sol2.c (solaris_printf_pointer_format): New function.
12364 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
12365 options.
12366 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
12367 * doc/tm.texi: Regenerate.
12368 * gimple-fold.h (get_range_strlen): New function.
12369 (get_maxval_strlen): Declare existing function.
12370 * gimple-fold.c (get_range_strlen): Add arguments and compute both
12371 maximum and minimum.
12372 (get_range_strlen): Define overload.
12373 (get_maxval_strlen): Adjust.
12374 * gimple-ssa-sprintf.c: New file and pass.
12375 * passes.def (pass_sprintf_length): Add new pass.
12376 * targhooks.h (default_printf_pointer_format): Declare new function.
12377 (gnu_libc_printf_pointer_format): Same.
12378 (solaris_libc_printf_pointer_format): Same.
12379 * targhooks.c (default_printf_pointer_format): Define new function.
12380 * tree-pass.h (make_pass_sprintf_length): Declare new function.
12381 * print-tree.c: Increase buffer size.
12382
12383 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12384
12385 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
12386
12387 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12388
12389 * common.opt: New option -fipa-vrp.
12390 * ipa-cp.c (ipa_get_vr_lat): New.
12391 (ipcp_vr_lattice::print): Likewise.
12392 (print_all_lattices): Call ipcp_vr_lattice::print.
12393 (ipcp_vr_lattice::meet_with): New.
12394 (ipcp_vr_lattice::meet_with_1): Likewise.
12395 (ipcp_vr_lattice::top_p): Likewise.
12396 (ipcp_vr_lattice::bottom_p): Likewsie.
12397 (ipcp_vr_lattice::set_to_bottom): Likewise.
12398 (set_all_contains_variable): Call VR set_to_bottom.
12399 (initialize_node_lattices): Init VR lattices.
12400 (propagate_vr_accross_jump_function): New.
12401 (propagate_constants_accross_call): Call
12402 propagate_vr_accross_jump_function.
12403 (ipcp_store_vr_results): New.
12404 (ipcp_driver): Handle VR.
12405 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
12406 (ipa_set_jf_unknown): Likewise.
12407 (ipa_compute_jump_functions_for_edge): Likewise.
12408 (ipa_node_params_t::duplicate): Likewise.
12409 (ipa_write_jump_function): Likewise.
12410 (ipa_read_jump_function): Likewise.
12411 (write_ipcp_transformation_info): Likewise.
12412 (read_ipcp_transformation_info): Likewise.
12413 (ipcp_update_vr): New.
12414 (ipcp_transform_function): Handle VR.
12415 * ipa-prop.h (struct ipa_vr): New.
12416 * cgraph.c: Include tree-vrp.h.
12417 * cgraphunit.c: Likewise.
12418 * ipa-utils.c: Likewise.
12419 * ipa.c: Likewise.
12420 * opts.c: Likewise.
12421 * toplev.c: Likewise.
12422 * ipa-devirt.c: Likewise.
12423 * ipa-inline-transform.c: Likewise.
12424 * ipa-inline.c: Likewise.
12425 * ipa-profile.c: Likewise.
12426
12427 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12428
12429 * doc/invoke.texi: Document -fdump-tree-evrp.
12430 * passes.def: Define new pass_early_vrp.
12431 * timevar.def: Define new TV_TREE_EARLY_VRP.
12432 * tree-pass.h (make_pass_early_vrp): New.
12433 * tree-ssa-propagate.c: Make replace_uses_in non static.
12434 * tree-ssa-propagate.h: Export replace_uses_in.
12435 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
12436 (extract_range_from_assert): Factor out
12437 extract_range_for_var_from_comparison_expr.
12438 (vrp_initialize_lattice): New.
12439 (vrp_initialize): Factor out vrp_initialize_lattice.
12440 (vrp_valueize): Fix it to reject complex value ranges.
12441 (vrp_free_lattice): New.
12442 (evrp_dom_walker::before_dom_children): Likewise.
12443 (evrp_dom_walker::after_dom_children): Likewise.
12444 (evrp_dom_walker::push_value_range): Likewise.
12445 (evrp_dom_walker::pop_value_range): Likewise.
12446 (execute_early_vrp): Likewise.
12447 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
12448 (make_pass_early_vrp): New.
12449
12450 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
12451
12452 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
12453 instead of exact_log2.
12454
12455 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
12456
12457 PR target/77621
12458 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
12459 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
12460 (ix86_add_stmt_cost): Penalize DFmode vector operations
12461 for !TARGET_VECTORIZE_DOUBLE.
12462
12463 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
12464
12465 * doc/invoke.texi (Warning Options): Simplify language.
12466 (Optimize Options): Complete sentence.
12467
12468 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
12469
12470 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
12471 early_finish hook.
12472
12473 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
12474
12475 PR target/71395
12476 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
12477 inits on power8 and above, use the VMRGEW instruction instead of a
12478 permute.
12479
12480 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
12481 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
12482 initialization.
12483
12484 2016-09-20 Tamar Christina <tamar.christina@arm.com>
12485
12486 * config/aarch64/arm_neon.h
12487 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
12488 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
12489 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
12490
12491 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12492
12493 * config/var/vax.h (ELIMINABLE_REGS): Define.
12494 (INITIAL_ELIMINATION_OFFSET): Define.
12495
12496 2016-09-20 Jakub Jelinek <jakub@redhat.com>
12497
12498 PR middle-end/77624
12499 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
12500 cast to void * if the cast is from some other pointer type.
12501
12502 2016-09-20 Richard Biener <rguenther@suse.de>
12503
12504 PR tree-optimization/77646
12505 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
12506 a VDEF.
12507
12508 2016-09-20 Tamar Christina <tamar.christina@arm.com>
12509
12510 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
12511 attributes to all inlined functions and make them extern.
12512
12513 2016-09-20 Richard Biener <rguenther@suse.de>
12514
12515 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
12516 hook.
12517 * debug.c (do_nothing_debug_hooks): Adjust.
12518 * dbxout.c (dbx_debug_hooks): Likewise.
12519 * sdbout.c (sdb_debug_hooks): Likewise.
12520 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
12521 (dwarf2out_finish): Move producer, filename and
12522 path annotation ...
12523 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
12524 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
12525
12526 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
12527
12528 PR c++/77434
12529 * doc/invoke.texi: Document -Wint-in-bool-context.
12530
12531 PR middle-end/77421
12532 * dwarf2out.c (output_loc_operands): Fix an assertion.
12533
12534 2016-09-19 Joseph Myers <joseph@codesourcery.com>
12535
12536 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
12537 (CR_DECIMAL_DIG): New macro.
12538
12539 2016-09-19 Joseph Myers <joseph@codesourcery.com>
12540
12541 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
12542 element.
12543
12544 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
12545
12546 PR rtl-optimization/77416
12547 * lra-remat.c (operand_to_remat): Process hard coded insn
12548 registers.
12549
12550 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12551
12552 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
12553 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
12554
12555 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
12556
12557 * target.def (lra_p): Wordsmithing.
12558 * doc/tm.texi: Regenerate.
12559
12560 2016-09-19 Jakub Jelinek <jakub@redhat.com>
12561 Jan Hubicka <jh@suse.cz>
12562
12563 PR target/77587
12564 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
12565 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
12566 Call ultimate_alias_target just once, not up to 4 times.
12567
12568 2016-09-19 Richard Biener <rguenther@suse.de>
12569
12570 * dwarf2out.c (early_dwarf_finished): New global.
12571 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
12572 is false.
12573 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
12574 if called from LTO exit early.
12575 (dwarf2out_late_global_decl): When being during the early
12576 debug phase do not add locations but only const value attributes.
12577 Adjust the way we generate early DIEs for LTO.
12578
12579 2016-09-19 Richard Biener <rguenther@suse.de>
12580
12581 PR middle-end/77605
12582 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
12583 proper niter to bound the loops.
12584
12585 2016-09-19 Richard Biener <rguenther@suse.de>
12586
12587 PR tree-optimization/77514
12588 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
12589 search for folded stmt.
12590
12591 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
12592
12593 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
12594 * tree-pass.h (make_pass_early_thread_jumps): Declare.
12595 * tree-ssa-threadbackward.c (fsm_find_thread_path,
12596 fsm_find_thread_path, profitable_jump_thread_path,
12597 fsm_find_control_statement_thread_paths,
12598 find_jump_threads_backwards): Add speed_p parameter.
12599 (pass_data_early_thread_jumps): New pass.
12600 (make_pass_early_thread_jumps): New function.
12601
12602 2016-09-17 Andreas Schwab <schwab@suse.de>
12603
12604 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
12605 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
12606
12607 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
12608
12609 * recog.c (rest_of_handle_split_after_reload): Delete.
12610 (pass_split_after_reload::gate): New method.
12611 (pass_split_after_reload::execute): Call split_all_insns directly.
12612
12613 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
12614
12615 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
12616 parameters for functions taking long long arguments.
12617
12618 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12619
12620 PR target/77613
12621 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
12622 splat with truncate.
12623
12624 2016-09-16 Jason Merrill <jason@redhat.com>
12625
12626 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
12627 New.
12628 * hwint.c (exact_log2): Use pow2p_hwi.
12629 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
12630 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
12631 * builtins.c (get_object_alignment_2, get_object_alignment)
12632 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
12633 least_bit_hwi.
12634 * calls.c (compute_argument_addresses, store_one_arg): Use
12635 least_bit_hwi.
12636 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
12637 * combine.c (force_to_mode): Use least_bit_hwi.
12638 (contains_muldiv, find_split_point, combine_simplify_rtx)
12639 (simplify_if_then_else, simplify_set, force_to_mode)
12640 (if_then_else_cond, simplify_and_const_int_1)
12641 (simplify_compare_const): Use pow2p_hwi.
12642 * cse.c (fold_rtx): Use pow2p_hwi.
12643 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
12644 Use least_bit_hwi.
12645 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
12646 (init_expmed_one_conv): Use pow2p_hwi.
12647 * expr.c (is_aligning_offset): Use pow2p_hwi.
12648 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
12649 (fold_binary_loc): Use pow2p_hwi.
12650 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
12651 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
12652 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
12653 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
12654 Use least_bit_hwi.
12655 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
12656 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
12657 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
12658 * omp-low.c (oacc_loop_fixed_partitions)
12659 (oacc_loop_auto_partitions): Use least_bit_hwi.
12660 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
12661 * stor-layout.c (place_field): Use least_bit_hwi.
12662 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
12663 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
12664 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
12665 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
12666 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
12667 * tree-vect-data-refs.c (vect_analyze_group_access_1)
12668 (vect_grouped_store_supported, vect_grouped_load_supported)
12669 (vect_permute_load_chain, vect_shift_permute_load_chain)
12670 (vect_transform_grouped_load): Use pow2p_hwi.
12671 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
12672 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
12673 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
12674 least_bit_hwi.
12675 * tsan.c (instrument_expr): Use least_bit_hwi.
12676 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
12677
12678 2016-09-16 Andreas Schwab <schwab@suse.de>
12679
12680 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
12681 OFFSET, not offset.
12682 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
12683
12684 2016-09-16 Jakub Jelinek <jakub@redhat.com>
12685
12686 PR target/77526
12687 * combine.c (rest_of_handle_combine): If any edges have been purged,
12688 free dominators if available.
12689
12690 2016-09-16 Jakub Jelinek <jakub@redhat.com>
12691 Eric Botcazou <ebotcazou@adacore.com>
12692
12693 PR middle-end/77594
12694 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
12695 through into expand_addsub_overflow after expand_neg_overflow.
12696
12697 2016-09-15 David Malcolm <dmalcolm@redhat.com>
12698
12699 * diagnostic-show-locus.c
12700 (selftest::test_fixit_insert_containing_newline): New function.
12701 (selftest::test_fixit_replace_containing_newline): New function.
12702 (selftest::diagnostic_show_locus_c_tests): Call the above.
12703
12704 2016-09-15 Bin Cheng <bin.cheng@arm.com>
12705
12706 PR tree-optimization/77503
12707 * tree-vect-loop.c (vectorizable_reduction): Record reduction
12708 code for CONST_COND_REDUCTION at analysis stage and use it at
12709 transform stage.
12710 * tree-vectorizer.h (struct _stmt_vec_info): New field.
12711 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
12712 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
12713 field.
12714
12715 2016-09-15 Richard Biener <rguenther@suse.de>
12716
12717 PR middle-end/77544
12718 * fold-const.c (split_tree): Do not split constant ~X.
12719
12720 2016-09-15 Jakub Jelinek <jakub@redhat.com>
12721
12722 PR rtl-optimization/77425
12723 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
12724 is NULL.
12725
12726 PR middle-end/77475
12727 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
12728 use %qs instead of %s where desirable, use argument instead of arg in
12729 the diagnostic wording, add list of supported strategies and
12730 spellcheck hint.
12731 (ix86_option_override_internal): Emit target("m...") instead of
12732 option("m...") in the diagnostic. Use %qs instead of %s in invalid
12733 -march/-mtune option diagnostic. Add list of supported arches/tunings
12734 and spellcheck hint. Remove prefix, suffix and sw variables, use
12735 main_args_p ? "..." : "..." in diagnostics to make translation
12736 possible.
12737
12738 2016-09-15 Richard Biener <rguenther@suse.de>
12739
12740 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
12741 extra offset argument.
12742 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
12743 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
12744 to reflect new offset parameter.
12745 * doc/tm.texi: Regenerate.
12746 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
12747 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
12748 offset argument.
12749 (darwin_asm_output_dwarf_offset): Likewise.
12750 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
12751 argument.
12752 (darwin_asm_output_dwarf_offset): Pass offset argument through.
12753 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
12754 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
12755
12756 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
12757
12758 PR fortran/72743
12759 * ipa-icf.c (set_alias_uids): New function.
12760 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
12761 all the merged variable's referring aliases.
12762
12763 2016-09-15 Richard Biener <rguenther@suse.de>
12764
12765 PR tree-optimization/77514
12766 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
12767 only forced_stmts sequence.
12768
12769 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
12770
12771 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
12772 * cfgexpand.c (update_alias_info_with_stack_vars): Use
12773 FOR_EACH_SSA_NAME to iterate over SSA variables.
12774 (pass_expand::execute): Likewise.
12775 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
12776 * tree-cfg.c (dump_function_to_file): Likewise.
12777 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
12778 (update_ssa): Likewise.
12779 * tree-ssa-alias.c (dump_alias_info): Likewise.
12780 * tree-ssa-ccp.c (ccp_finalize): Likewise.
12781 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
12782 (create_outofssa_var_map): Likewise.
12783 (coalesce_ssa_name): Likewise.
12784 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
12785 * tree-ssa-pre.c (compute_avail): Likewise.
12786 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
12787 (scc_vn_restore_ssa_info): Likewise.
12788 (free_scc_vn): Likwise.
12789 (run_scc_vn): Likewise.
12790 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
12791 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
12792 * tree-ssa-copy.c (fini_copy_prop): Likewise.
12793 * tree-ssa.c (verify_ssa): Likewise.
12794
12795 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
12796
12797 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
12798 and mips64r2 as default 32-bit and 64-bit architectures.
12799 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
12800 as default 32-bit and 64-bit architectures.
12801
12802 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
12803
12804 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
12805 of succ edge.
12806
12807 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12808
12809 * target.def (lra_p): Change commentary (for the manual) for the
12810 new default.
12811 * doc/tm.texi: Regenerate.
12812
12813 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12814
12815 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
12816 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
12817 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
12818 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
12819
12820 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12821
12822 * targhooks.c (default_lra_p): Return true instead of false.
12823
12824 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12825
12826 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
12827 hook_bool_void_false.
12828 * config/avr/avr.c: Ditto.
12829 * config/bfin/bfin.c: Ditto.
12830 * config/c6x/c6x.c: Ditto.
12831 * config/cr16/cr16.c: Ditto.
12832 * config/cris/cris.c: Ditto.
12833 * config/epiphany/epiphany.c: Ditto.
12834 * config/fr30/fr30.c: Ditto.
12835 * config/frv/frv.c: Ditto.
12836 * config/h8300/h8300.c: Ditto.
12837 * config/ia64/ia64.c: Ditto.
12838 * config/iq2000/iq2000.c: Ditto.
12839 * config/lm32/lm32.c: Ditto.
12840 * config/m32c/m32c.c: Ditto.
12841 * config/m32r/m32r.c: Ditto.
12842 * config/m68k/m68k.c: Ditto.
12843 * config/mcore/mcore.c: Ditto.
12844 * config/microblaze/microblaze.c: Ditto.
12845 * config/mmix/mmix.c: Ditto.
12846 * config/mn10300/mn10300.c: Ditto.
12847 * config/moxie/moxie.c: Ditto.
12848 * config/msp430/msp430.c: Ditto.
12849 * config/nios2/nios2.c: Ditto.
12850 * config/nvptx/nvptx.c: Ditto.
12851 * config/pa/pa.c: Ditto.
12852 * config/pdp11/pdp11.c: Ditto.
12853 * config/rl78/rl78.c: Ditto.
12854 * config/sparc/sparc.c: Ditto.
12855 * config/spu/spu.c: Ditto.
12856 * config/stormy16/stormy16.c: Ditto.
12857 * config/tilegx/tilegx.c: Ditto.
12858 * config/tilepro/tilepro.c: Ditto.
12859 * config/v850/v850.c: Ditto.
12860 * config/vax/vax.c: Ditto.
12861 * config/visium/visium.c: Ditto.
12862 * config/xtensa/xtensa.c: Ditto.
12863
12864 2016-09-14 Jakub Jelinek <jakub@redhat.com>
12865
12866 PR sanitizer/68260
12867 * tsan.c: Include target.h.
12868 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
12869 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
12870 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
12871 BUILT_IN_ATOMIC_TEST_AND_SET entries.
12872 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
12873
12874 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12875 Martin Liska <mliska@suse.cz>
12876
12877 PR middle-end/77574
12878 * predict.c (force_edge_cold): Add braces to a condition.
12879
12880 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12881
12882 PR rtl-optimization/77289
12883 * lra-constraints.c (get_final_hard_regno): Removed.
12884 (get_hard_regno): Add new parameter final_p.
12885 (get_reg_class): Directly call lra_get_elimination_hard_regno.
12886 (operands_match_p): Adjust call to get_hard_regno.
12887 (uses_hard_regs_p): Likewise.
12888 (process_alt_operands): Likewise.
12889
12890 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
12891
12892 PR target/70713
12893 * config/msp430/msp430.c (msp430_start_function): Emit an error
12894 if a function is both weak and specifies an interrupt number.
12895
12896 2016-09-13 Jakub Jelinek <jakub@redhat.com>
12897
12898 PR tree-optimization/77454
12899 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
12900 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
12901 Formatting fix.
12902
12903 2016-09-13 Tamar Christina <tamar.christina@arm.com>
12904
12905 * config/aarch64/aarch64-builtins.c
12906 (aarch64_init_simd_builtins): Fix builtin type signature printing.
12907
12908 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
12909
12910 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
12911 SFmode and SCmode arguments by reference.
12912
12913 2016-09-13 David Malcolm <dmalcolm@redhat.com>
12914
12915 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
12916 Rename to...
12917 (selftest::test_one_liner_fixit_insert_before): ...this, and update
12918 for renaming of add_fixit_insert to add_fixit_insert_before.
12919 (selftest::test_one_liner_fixit_insert_after): New function.
12920 (selftest::test_one_liner_fixit_validation_adhoc_locations):
12921 Update for renaming of add_fixit_insert to add_fixit_insert_before.
12922 (selftest::test_one_liner_many_fixits): Likewise.
12923 (selftest::test_diagnostic_show_locus_one_liner): Update for
12924 renaming, call new test function.
12925 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
12926 renaming of add_fixit_insert to add_fixit_insert_before.
12927 (selftest::test_fixit_consolidation): Likewise.
12928 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
12929 Likewise.
12930 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
12931 (selftest::test_applying_fixits_insert_before): ...this.
12932 (selftest::test_applying_fixits_insert): Update for renaming of
12933 add_fixit_insert to add_fixit_insert_before.
12934 (selftest::test_applying_fixits_insert_after): New function.
12935 (selftest::test_applying_fixits_insert_after_at_line_end): New
12936 function.
12937 (selftest::test_applying_fixits_insert_after_failure): New function.
12938 (selftest::test_applying_fixits_multiple): Update for renaming of
12939 add_fixit_insert to add_fixit_insert_before.
12940 (selftest::change_line): Likewise.
12941 (selftest::test_applying_fixits_unreadable_file): Likewise.
12942 (selftest::test_applying_fixits_line_out_of_range): Likewise.
12943 (selftest::test_applying_fixits_column_validation): Likewise.
12944 (selftest::test_applying_fixits_column_validation): Likewise.
12945 (selftest::edit_context_c_tests): Update for renamed test function;
12946 call new test functions.
12947
12948 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
12949
12950 PR tree-optimization/77536
12951 PR rtl-optimization/68212
12952 * config/rs6000/rs6000.md (div->recip splitter): Remove
12953 optimize_insn_for_speed_p condition.
12954
12955 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
12956
12957 * optabs.c (prepare_cmp_insn): Update documentation comment.
12958
12959 2016-09-13 Jakub Jelinek <jakub@redhat.com>
12960 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12961
12962 PR middle-end/77475
12963 * opts.h (candidates_list_and_hint): Declare.
12964 * opts-common.c (candidates_list_and_hint): New function.
12965 (cmdline_handle_error): Use it.
12966
12967 2016-09-12 David Malcolm <dmalcolm@redhat.com>
12968
12969 * edit-context.c (edited_line::get_len): New accessor.
12970 (edited_file::print_diff): Split out hunk-printing into...
12971 (edited_file::print_diff_hunk): New method.
12972 (edited_file::print_diff_line): New method.
12973
12974 2016-09-12 Andrew Pinski <apinski@cavium.com>
12975
12976 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
12977 New tuning option.
12978 * config/aarch64/aarch64.c (thunderx_tunings): Enable
12979 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
12980 (aarch64_operands_ok_for_ldpstp): Return false if
12981 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
12982 was SImode and the alignment is less than 8 byte.
12983 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
12984
12985 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
12986
12987 PR target/77570
12988 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
12989
12990 2016-09-12 Marek Polacek <polacek@redhat.com>
12991
12992 * doc/extend.texi: Use lowercase "boolean".
12993 * doc/invoke.texi: Likewise.
12994 * doc/md.texi: Likewise.
12995 * target.def: Likewise.
12996 * doc/tm.texi: Regenerated.
12997
12998 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12999
13000 PR middle-end/77426
13001 * expmed.c (synth_mult): Delete duplicate mode check.
13002
13003 2016-09-10 Tom de Vries <tom@codesourcery.com>
13004
13005 PR C/71602
13006 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
13007 va_list type only.
13008 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
13009 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
13010
13011 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
13012
13013 PR rtl-optimization/77289
13014 * lra-constraints.c (get_final_hard_regno): Add support for non hard
13015 register numbers. Remove support for subregs.
13016 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
13017 (get_reg_class): Delete removed get_final_hard_regno() argument.
13018 (uses_hard_regs_p): Call get_final_hard_regno().
13019
13020 2016-09-09 Martin Sebor <msebor@redhat.com>
13021
13022 PR c/77520
13023 PR c/77521
13024 * pretty-print.c (pp_quoted_string): New function.
13025 (pp_format): Call it for %c and %s directives.
13026
13027 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
13028
13029 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
13030 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
13031 INITIAL_ELIMINATION_OFFSET) : Update documentation.
13032 * target.def (frame_pointer_required, can_eliminate): Likewise.
13033 * doc/tm.texi: Regenerated.
13034 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
13035 ELIMINABLE_REGS.
13036 * df-scan.c (df_hard_reg_init): Likewise.
13037 * ira.c (ira_setup_eliminable_regset): Likewise.
13038 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
13039 init_elim_table): Likewise.
13040 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
13041 set_initial_elim_offsets, update_eliminables,
13042 init_elim_table): Likewise.
13043 * rtlanal.c (get_initial_register_offset): Likewise.
13044 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
13045 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13046 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13047 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13048 * config/fr30/fr30.h: Fix comment.
13049 * config/frv/frv.c: Likewise.
13050 * config/frv/frv.h: Likewise.
13051 * config/ft32/ft32.h: Likewise.
13052 * config/visium/visium.h: Likewise.
13053 * config/pa/pa64-linux.h: Likewise.
13054 * config/v850/v850.h: Likewise.
13055 * config/cris/cris.c: Likewise.
13056 * config/ia64/ia64.h: Likewise.
13057 * config/moxie/moxie.h: Likewise.
13058 * config/m32r/m32r.h: Likewise.
13059
13060 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
13061
13062 PR target/77267
13063 * config.in: Regenerate.
13064 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
13065 New macro.
13066 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
13067 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
13068 static-libmpxwrappers case.
13069 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
13070 MPX_LD_AS_NEEDED_GUARD_POP.
13071 * configure: Regenerate.
13072 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
13073 defined if linker support "--push-state"/"--pop-state".
13074
13075 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13076
13077 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
13078
13079 2016-09-09 Joseph Myers <joseph@codesourcery.com>
13080
13081 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
13082 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
13083 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
13084 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
13085 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
13086 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
13087 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
13088 Document.
13089 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
13090 width macros from TS 18661-1.
13091 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
13092
13093 2016-09-08 Jakub Jelinek <jakub@redhat.com>
13094
13095 PR fortran/77516
13096 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
13097 OMP_CLAUSE_SAFELEN_EXPR.
13098
13099 2016-09-07 David Malcolm <dmalcolm@redhat.com>
13100
13101 * Makefile.in (OBJS): Add substring-locations.o.
13102 * langhooks-def.h (class substring_loc): New forward decl.
13103 (lhd_get_substring_location): New decl.
13104 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
13105 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
13106 * langhooks.c (lhd_get_substring_location): New function.
13107 * langhooks.h (class substring_loc): New forward decl.
13108 (struct lang_hooks): Add field get_substring_location.
13109 * substring-locations.c: New file, taking definition of
13110 format_warning_va and format_warning_at_substring from
13111 c-family/c-format.c, making them non-static.
13112 * substring-locations.h (class substring_loc): Move class here
13113 from c-family/c-common.h. Add and rewrite comments.
13114 (format_warning_va): New decl.
13115 (format_warning_at_substring): New decl.
13116 (get_source_location_for_substring): Add comment.
13117
13118 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
13119
13120 * config/i386/i386.c: Add 'U' suffix to processor feature bits
13121 to avoid -Wnarrowing warning.
13122 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
13123 * opts.c: Likewise for SANITIZER_OPT bitmasks.
13124
13125 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
13126
13127 * config/aarch64/aarch64.c (aarch64_legitimize_address):
13128 Avoid use of base_offset if offset already in range.
13129
13130 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
13131
13132 * config/sh/sh-protos.h (struct sh_atomic_model,
13133 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13134 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13135 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
13136 * config/sh/sh.h (struct sh_atomic_model,
13137 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13138 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13139 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
13140 Guard with __cplusplus.
13141
13142 2016-09-06 Jakub Jelinek <jakub@redhat.com>
13143
13144 PR target/69255
13145 * config/i386/i386.c (ix86_expand_builtin): For builtin with
13146 unsupported or unknown ISA, use expand_call.
13147
13148 2016-09-06 Martin Liska <mliska@suse.cz>
13149
13150 PR gcov-profile/77378
13151 PR gcov-profile/77466
13152 * tree-profile.c (tree_profiling): Detect whether target can use
13153 -fprofile-update=atomic.
13154
13155 2016-09-06 Richard Biener <rguenther@suse.de>
13156
13157 PR tree-optimization/77479
13158 * tree-vrp.c (update_value_range): Extend overflow handling to
13159 VARYING.
13160
13161 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13162
13163 PR target/77476
13164 * config/i386/i386.md (isa): Add x64_avx512bw.
13165 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
13166 (kmov_isa): New mode attr.
13167 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
13168 (*zero_extend<mode>si2): Likewise.
13169 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
13170
13171 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
13172
13173 * doc/invoke.texi (SPU Options): nops -> NOPs.
13174 (x86 Options): Ditto.
13175
13176 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13177
13178 PR middle-end/77475
13179 * toplev.c (process_options): Temporarily set input_location
13180 to UNKNOWN_LOCATION around targetm.target_option.override () call.
13181
13182 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
13183
13184 PR rtl-optimization/77452
13185 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
13186 inner-mode reference to a CONST_VECTOR constant in the constant pool.
13187
13188 2016-09-05 Marek Polacek <polacek@redhat.com>
13189
13190 PR c/77423
13191 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
13192
13193 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13194
13195 PR other/77421
13196 * gensupport.c (alter_output_for_subst_insn): Remove redundant
13197 *insn_out == '*' test. Don't copy unnecessary to yet another
13198 memory buffer, and don't leak it.
13199
13200 PR rtl-optimization/77425
13201 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
13202
13203 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
13204
13205 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
13206
13207 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13208
13209 * common.opt (fdiagnostics-generate-patch): New option.
13210 * diagnostic.c: Include "edit-context.h".
13211 (diagnostic_initialize): Initialize context->edit_context_ptr.
13212 (diagnostic_finish): Delete context->edit_context_ptr.
13213 (diagnostic_report_diagnostic): Add fix-it hints from the
13214 diagnostic to context->edit_context_ptr, if any.
13215 * diagnostic.h (class edit_context): Add forward decl.
13216 (struct diagnostic_context): Add field "edit_context_ptr".
13217 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
13218 -fdiagnostics-generate-patch.
13219 (-fdiagnostics-generate-patch): New item.
13220 * toplev.c: Include "edit-context.h".
13221 (process_options): Set global_dc->edit_context_ptr to a new
13222 edit_context if the options need one.
13223 (toplev::main): Handle -fdiagnostics-generate-patch by using
13224 global_dc->edit_context_ptr.
13225
13226 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13227
13228 PR c/65467
13229 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
13230 map and firstprivate clauses on target construct for _Atomic
13231 qualified decls.
13232 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
13233 on target construct for _Atomic qualified decls.
13234 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
13235 decls.
13236 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
13237 _Atomic qualified arguments not mentioned in uniform clause.
13238
13239 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13240
13241 * Makefile.in (OBJS-libcommon): Add edit-context.o.
13242 * diagnostic-color.c (color_dict): Add "diff-filename",
13243 "diff-hunk", "diff-delete", and "diff-insert".
13244 (parse_gcc_colors): Update default value of GCC_COLORS in comment
13245 to reflect above changes.
13246 * doc/invoke.texi (-fdiagnostics-color): Update description of
13247 default GCC_COLORS, and of the supported capabilities.
13248 * edit-context.c: New file.
13249 * edit-context.h: New file.
13250 * input.c (struct fcache): Add field "missing_trailing_newline".
13251 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
13252 true.
13253 (add_file_to_cache_tab): Likewise.
13254 (fcache::fcache): Likewise.
13255 (get_next_line): Update c->missing_trailing_newline.
13256 (location_missing_trailing_newline): New function.
13257 * input.h (location_missing_trailing_newline): New decl.
13258 * selftest-run-tests.c (selftest::run_tests): Call
13259 edit_context_c_tests.
13260 * selftest.h (edit_context_c_tests): New decl.
13261
13262 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13263 Richard Biener <rguenth@suse.de>
13264
13265 PR tree-optimization/77444
13266 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
13267 as steptype, remove redundant initialization.
13268
13269 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13270
13271 PR sanitizer/77396
13272 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
13273 (sanopt_optimize_walker): Optimize away
13274 __asan_before_dynamic_init (...) followed by
13275 __asan_after_dynamic_init () without intervening memory loads/stores.
13276 * ipa-pure-const.c (special_builtin_state): Handle
13277 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
13278 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
13279
13280 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13281
13282 * cfg.c (free_original_copy_tables): Replace second assignment of
13283 bb_copy = NULL by bb_original = NULL.
13284
13285 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13286
13287 PR other/77421
13288 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
13289 assignment added in r216794.
13290
13291 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13292
13293 * Makefile.in (OBJS): Add typed-splay-tree.o.
13294 * selftest-run-tests.c (selftest::run_tests): Call
13295 typed_splay_tree_c_tests.
13296 * selftest.h (typed_splay_tree_c_tests): New decl.
13297 * typed-splay-tree.c: New file.
13298 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
13299 (typed_splay_tree::max): New method.
13300 (typed_splay_tree::min): New method.
13301 (typed_splay_tree::foreach): New method.
13302 (typed_splay_tree::closure): New struct.
13303 (typed_splay_tree::inner_foreach_fn): New function.
13304
13305 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13306
13307 * ipa-cp.c (ipcp_store_bits_results): Change option name from
13308 -fipa-cp-bit to -fipa-bit-cp.
13309
13310 2016-09-01 Martin Sebor <msebor@redhat.com>
13311
13312 PR tree-optimization/71831
13313 * tree-object-size.h: Return bool instead of the size and add
13314 argument for the size.
13315 * tree-object-size.c (compute_object_offset): Update signature.
13316 (addr_object_size): Same.
13317 (compute_builtin_object_size): Return bool instead of the size
13318 and add argument for the size. Handle POINTER_PLUS_EXPR when
13319 optimization is disabled.
13320 (expr_object_size): Adjust.
13321 (plus_stmt_object_size): Adjust.
13322 (pass_object_sizes::execute): Adjust.
13323 * builtins.c (fold_builtin_object_size): Adjust.
13324 * doc/extend.texi (Object Size Checking): Update.
13325 * ubsan.c (instrument_object_size): Adjust.
13326
13327 2016-09-01 Martin Sebor <msebor@redhat.com>
13328
13329 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
13330 it fits the output of the formatted function regardless of its
13331 arguments.
13332 * genmodes.c (parser::parse_expr): Same.
13333 * gimplify.c (gimplify_asm_expr): Same.
13334 * passes.c (pass_manager::register_one_dump_file): Same.
13335 * print-tree.c (print_node): Same.
13336
13337 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13338
13339 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
13340
13341 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13342
13343 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
13344
13345 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13346
13347 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
13348 * config/rs6000/vector.md: Ditto.
13349 * config/rs6000/vsx.md: Ditto.
13350
13351 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
13352
13353 * ipa-inline-analysis.c (param_change_prob): Get to the base object
13354 first in all cases.
13355
13356 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13357
13358 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
13359 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
13360 *return_and_restore_gpregs_<mode>_r11,
13361 *return_and_restore_gpregs_<mode>_r12,
13362 *return_and_restore_gpregs_<mode>_r1,
13363 *return_and_restore_fpregs_<mode>_r11,
13364 *return_and_restore_fpregs_<mode>_r12,
13365 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
13366 directly instead of via the "l" constraint. Renumber operands.
13367 Fix whitespace.
13368
13369 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13370
13371 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
13372 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
13373 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
13374 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
13375 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
13376 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
13377 *call_value_nonlocal_darwin64, reload_macho_picbase,
13378 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
13379 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
13380 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
13381 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
13382 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
13383 *save_fpregs_<mode>_r1): Ditto.
13384 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
13385 *return_and_restore_gpregs_spe): Ditto.
13386
13387 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13388
13389 * config/rs6000/rs6000.md
13390 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
13391 the use of the link register.
13392 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
13393
13394 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13395 Michael Meissner <meissner@linux.vnet.ibm.com>
13396
13397 PR target/72827
13398 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
13399 reg+reg addressing for TImode.
13400 (rs6000_legitimate_address_p): Only allow register indirect
13401 addressing for TImode, even without TARGET_QUAD_MEMORY.
13402
13403 2016-09-01 Richard Biener <rguenther@suse.de>
13404
13405 PR middle-end/77436
13406 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
13407 check whether the result fits the desired result type.
13408
13409 2016-09-01 Nathan Sidwell <nathan@acm.org>
13410
13411 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
13412
13413 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
13414
13415 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
13416 New function.
13417 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
13418
13419 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13420
13421 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
13422 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
13423 for comparisons of integer ZERO_EXTEND against zero.
13424
13425 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
13426
13427 * config/i386/i386.c (ix86_option_override_internal): Also disable the
13428 STV pass if -mstackrealign is enabled.
13429
13430 2016-08-31 Ilya Verbin <iverbin@gmail.com>
13431
13432 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
13433 AVX512IFMA.
13434
13435 2016-08-31 David Malcolm <dmalcolm@redhat.com>
13436
13437 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
13438 (layout_range::intersects_line_p): New method.
13439 (test_range_contains_point_for_single_point): Rename to...
13440 (test_layout_range_for_single_point): ...this, and add testing
13441 for layout_range::intersects_line_p.
13442 (test_range_contains_point_for_single_line): Rename to...
13443 (test_layout_range_for_single_line): ...this, and add testing
13444 for layout_range::intersects_line_p.
13445 (test_range_contains_point_for_multiple_lines): Rename to...
13446 (test_layout_range_for_multiple_lines): ...this, and add testing
13447 for layout_range::intersects_line_p.
13448 (layout::layout): Populate m_fixit_hints.
13449 (layout::get_expanded_location): Handle the case of a line-span
13450 for a fix-it hint.
13451 (layout::validate_fixit_hint_p): New method.
13452 (get_line_span_for_fixit_hint): New function.
13453 (layout::calculate_line_spans): Add spans for fixit-hints.
13454 (layout::should_print_annotation_line_p): New method.
13455 (layout::print_any_fixits): Drop param "richloc", instead using
13456 validated fixits in m_fixit_hints. Add "const" to hint pointers.
13457 (diagnostic_show_locus): Avoid printing blank annotation lines.
13458 (selftest::test_diagnostic_context::test_diagnostic_context):
13459 Initialize show_column and start_span.
13460 (selftest::test_diagnostic_context::start_span_cb): New static
13461 function.
13462 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
13463 (selftest::diagnostic_show_locus_c_tests): Update for function
13464 renamings. Call test_diagnostic_show_locus_fixit_lines.
13465
13466 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
13467
13468 PR tree-optimization/73714
13469 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
13470
13471 2016-08-31 David Malcolm <dmalcolm@redhat.com>
13472
13473 * selftest.c: Move "namespace selftest {" to top of file,
13474 removing explicit "selftest::" qualifiers throughout.
13475
13476 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
13477
13478 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
13479 New types.
13480 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
13481 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
13482 Replace builtin with vector extension.
13483 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
13484 New types.
13485 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
13486 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
13487 Replace builtin with vector extension.
13488 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
13489 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
13490 Replace builtin with vector extension.
13491 * config/i386/xmmintrin.h (__m128_u): New type.
13492 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
13493 (_mm_load_ps, _mm_store_ps): Simplify.
13494
13495 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
13496
13497 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
13498
13499 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13500
13501 * diagnostic-show-locus.c (colorizer::begin_state): Support more
13502 than 3 ranges per diagnostic by alternating between color 1 and
13503 color 2.
13504 (layout::layout): Replace use of rich_location::MAX_RANGES
13505 with richloc->get_num_locations ().
13506 (layout::calculate_line_spans): Replace use of
13507 rich_location::MAX_RANGES with m_layout_ranges.length ().
13508 (layout::print_annotation_line): Handle arbitrary numbers of
13509 ranges in caret-printing by defaulting to '^'.
13510 (selftest::test_one_liner_many_fixits): New function.
13511 (test_diagnostic_show_locus_one_liner): Call it.
13512 * diagnostic.c (diagnostic_initialize): Update for renaming
13513 of rich_location::MAX_RANGES to
13514 rich_location::STATICALLY_ALLOCATED_RANGES.
13515 * diagnostic.h (struct diagnostic_context): Likewise.
13516
13517 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13518
13519 * selftest.c (selftest::named_temp_file::named_temp_file): New
13520 ctor.
13521 (selftest::temp_source_file::~temp_source_file): Move to...
13522 (selftest::named_temp_file::~named_temp_file): ...here.
13523 (selftest::test_named_temp_file): New function.
13524 (selftest::selftest_c_tests): Call test_named_temp_file.
13525 * selftest.h (class named_temp_file): New class.
13526 (class temp_source_file): Convert to a subclass of named_temp_file.
13527
13528 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
13529
13530 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
13531 USEs of LR_REGNO in returns and sibcalls.
13532 (rs6000_output_mi_thunk): Similar.
13533 (rs6000_sibcall_aix): Similar.
13534 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
13535 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
13536 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
13537 Remove the USE of LR_REGNO from the patterns as well. Delete an
13538 obsolete comment.
13539 (return_internal_<mode>): Delete.
13540
13541 2016-08-30 Tamar Christina <tamar.christina@arm.com>
13542
13543 * config/aarch64/aarch64-simd.md
13544 (aarch64_ld2<mode>_dreg_le): New.
13545 (aarch64_ld2<mode>_dreg_be): New.
13546 (aarch64_ld2<mode>_dreg): Removed.
13547 (aarch64_ld3<mode>_dreg_le): New.
13548 (aarch64_ld3<mode>_dreg_be): New.
13549 (aarch64_ld3<mode>_dreg): Removed.
13550 (aarch64_ld4<mode>_dreg_le): New.
13551 (aarch64_ld4<mode>_dreg_be): New.
13552 (aarch64_ld4<mode>_dreg): Removed.
13553 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
13554
13555 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13556
13557 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
13558 redundant location param.
13559 (test_one_liner_fixit_remove): Likewise.
13560 (test_one_liner_fixit_replace): Likewise.
13561 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
13562 * gcc-rich-location.c
13563 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
13564 get_range_from_loc. Drop overload taking a const char *.
13565 * gcc-rich-location.h
13566 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
13567 a const char *.
13568
13569 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
13570
13571 * config/linux.c (linux_libc_has_function): Return true on musl.
13572
13573 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
13574
13575 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
13576
13577 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
13578
13579 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
13580 used for abnormal egdes.
13581
13582 2016-08-30 Jakub Jelinek <jakub@redhat.com>
13583
13584 PR tree-optimization/72866
13585 * tree-vect-patterns.c (search_type_for_mask): Turn into
13586 a small wrapper, move all code to ...
13587 (search_type_for_mask_1): ... this new function. Add caching
13588 and adjust recursive calls.
13589
13590 PR debug/77363
13591 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
13592 instead of lookup_type_die (type_main_variant (type)) even for array
13593 types.
13594
13595 PR middle-end/77377
13596 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
13597 constant pool reference return x instead of c.
13598
13599 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
13600
13601 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
13602 include MQ.
13603
13604 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13605
13606 * input.c
13607 (selftest::test_make_location_nonpure_range_endpoints): Fix
13608 header comment.
13609
13610 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13611
13612 * diagnostic-show-locus.c
13613 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
13614 function.
13615 (selftest::test_diagnostic_show_locus_one_liner): Call it.
13616 * input.c (get_pure_location): Move to libcpp/line-map.c.
13617 * input.h (get_pure_location): Convert decl to an inline function
13618 calling implementation in libcpp.
13619
13620 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
13621
13622 PR target/77403
13623 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
13624 template for intel asm dialect.
13625 (vec_set_hi_<mode><mask_name>): Ditto.
13626
13627 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13628
13629 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
13630 (selftest::fail_formatted): Likewise.
13631
13632 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13633
13634 * input.c (make_location): Call get_start and get_finish
13635 on the endpoints to avoid storing packed ranges or ad-hoc
13636 ranges in them.
13637 (selftest::test_make_location_nonpure_range_endpoints): New function.
13638 (selftest::input_c_tests): Call it.
13639 * input.h (get_start): New inline function.
13640
13641 2016-08-29 Tom de Vries <tom@codesourcery.com>
13642
13643 PR c/77398
13644 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
13645 with assert.
13646
13647 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
13648
13649 * Makefile.in (gcov-iov.h): Add dummy recipe.
13650
13651 2016-08-29 Nathan Sidwell <nathan@acm.org>
13652
13653 * config/nvptx/nvptx.c: #include tree-vrp.h.
13654
13655 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
13656
13657 PR target/77324
13658 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
13659 HIGH+LO construct during reload.
13660
13661 2016-08-28 Tom de Vries <tom@codesourcery.com>
13662
13663 PR lto/70955
13664 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
13665 'sysv_abi va_list' attribute.
13666 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
13667 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
13668 attributes.
13669
13670 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13671
13672 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
13673 * emit-rtl.c (unshare_all_rtl_1): Adjust.
13674 (unshare_all_rtl_again): Likewise.
13675 * function.c (assign_stack_local_1): Likewise.
13676 (assign_stack_temp_for_type): Likewise.
13677
13678 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13679
13680 * cfgbuild.c (make_edges): Adjust.
13681 * cfgrtl.c (can_delete_label_p): Likewise.
13682 * dwarf2cfi.c (create_trace_edges): Likewise.
13683 * except.c (sjlj_emit_dispatch_table): Likewise.
13684 * function.h (struct expr_status): make x_forced_labels a vector.
13685 * jump.c (rebuild_jump_labels_1): Adjust.
13686 * reload1.c (set_initial_label_offsets): Likewise.
13687 * stmt.c (force_label_rtx): Likewise.
13688 (expand_label): Likewise.
13689
13690 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13691
13692 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
13693
13694 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
13695
13696 PR tree-optimization/71077
13697 PR tree-optimization/68542
13698 * fold-const.c (fold_relational_const): Fix folding of
13699 VECTOR_CST comparisons that have a scalar boolean result type.
13700 (selftest::test_vector_folding): New static function.
13701 (selftest::fold_const_c_tests): Call it.
13702
13703 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
13704
13705 * doc/extend.texi (SPU Built-in Functions): Remove stale
13706 references to material formerly at IBM and Sony.
13707
13708 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
13709
13710 PR target/77349
13711 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
13712
13713 2016-08-26 David Malcolm <dmalcolm@redhat.com>
13714
13715 * diagnostic-show-locus.c
13716 (selftest::test_fixit_consolidation): New function.
13717 (selftest::diagnostic_show_locus_c_tests): Call it.
13718 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
13719 constructor based on source_range.
13720
13721 2016-08-26 David Malcolm <dmalcolm@redhat.com>
13722
13723 * diagnostic-color.c (color_dict): Add "fixit-insert" and
13724 "fixit-delete".
13725 (parse_gcc_colors): Update description of default GCC_COLORS.
13726 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
13727 (colorizer::set_fixit_insert): New method.
13728 (colorizer::set_fixit_delete): New method.
13729 (colorizer::get_color_by_name): New method.
13730 (colorizer::STATE_FIXIT_INSERT): New constant.
13731 (colorizer::STATE_FIXIT_DELETE): New constant.
13732 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
13733 fields in favor of new field "m_stop_color". Add fields
13734 "m_fixit_insert" and "m_fixit_delete".
13735 (colorizer::colorizer): Update for above changes. Replace
13736 colorize_start calls with calls to get_color_by_name.
13737 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
13738 STATE_FIXIT_DELETE. Update for field renamings.
13739 (colorizer::finish_state): Simplify by using m_stop_color,
13740 rather than multiple identical "*_ce" fields.
13741 (colorizer::get_color_by_name): New method.
13742 (layout::print_any_fixits): Print insertions and replacements
13743 using the "fixit-insert" color, and deletions using the
13744 "fixit-delete" color.
13745 * doc/invoke.texi (-fdiagnostics-color): Update description of
13746 default GCC_COLORS, and of the supported capabilities.
13747
13748 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
13749
13750 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
13751 current_function_static_stack_size variable with the static
13752 stack frame size of the current function when
13753 flag_stack_usage_info is enabled.
13754
13755 2016-08-26 Nathan Sidwell <nathan@acm.org>
13756
13757 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
13758 assignment inside if condition.
13759
13760 2016-08-26 Richard Biener <rguenther@suse.de>
13761
13762 PR tree-optimization/69047
13763 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
13764 extracts similar to what FRE does.
13765 (non_rewritable_mem_ref_base): Likewise.
13766
13767 2016-08-26 Joseph Myers <joseph@codesourcery.com>
13768
13769 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
13770 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
13771 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13772 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13773 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
13774 Likewise.
13775 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13776 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13777 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13778 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
13779 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13780
13781 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13782
13783 PR target/70473
13784 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
13785 reservation duration to 15 cycles.
13786 (cortex_a8_vfp_macs): Likewise.
13787 (cortex_a8_vfp_macd): Likewise.
13788 (cortex_a8_vfp_divs): Likewise.
13789 (cortex_a8_vfp_divd): Likewise.
13790
13791 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13792
13793 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
13794 (aarch_macro_fusion_pair_p): Use above to avoid early return.
13795
13796 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13797 Martin Jambhor <mjambor@suse.cz>
13798
13799 * common.opt: New option -fipa-bit-cp.
13800 * doc/invoke.texi: Document -fipa-bit-cp.
13801 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
13802 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
13803 * tree-ssa-ccp.h: New header file.
13804 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
13805 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
13806 Replace all occurences of tree parameter by two new params: signop, int.
13807 (bit_value_unop_1): Change to bit_value_unop and export it.
13808 Replace all occurences of tree parameter by two new params: signop,
13809 int.
13810 (bit_value_binop): Change call from bit_value_binop_1 to
13811 bit_value_binop.
13812 (bit_value_assume_aligned): Likewise.
13813 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
13814 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
13815 to ccp_finalize.
13816 (ccp_finalize): Skip processing if val->mask == 0.
13817 * ipa-cp.c: Include tree-ssa-ccp.h
13818 (ipcp_bits_lattice): New class.
13819 (ipcp_param_lattice (bits_lattice): New member.
13820 (print_all_lattices): Call ipcp_bits_lattice::print.
13821 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
13822 (initialize_node_lattices): Likewise.
13823 (propagate_bits_accross_jump_function): New function.
13824 (propagate_constants_accross_call): Call
13825 propagate_bits_accross_jump_function.
13826 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
13827 (ipcp_store_bits_results): New function.
13828 (ipcp_driver): Call ipcp_store_bits_results.
13829 * ipa-prop.h (ipa_bits): New struct.
13830 (ipa_jump_func): Add new member bits of type ipa_bits.
13831 (ipa_param_descriptor): Change decl to decl_or_type.
13832 (ipa_get_param): Change decl to decl_or_type and assert on
13833 PARM_DECL.
13834 (ipa_get_type): New function.
13835 (ipcp_transformation_summary): New member bits.
13836 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
13837 (ipa_populate_param_decls): Likewise.
13838 (ipa_dump_param): Likewise.
13839 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
13840 function.
13841 (ipa_set_jf_unknown): Set ipa_bits::known to false.
13842 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
13843 propagation.
13844 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
13845 (ipa_write_jump_function): Add streaming for ipa_bits.
13846 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
13847 (write_ipcp_transformation_info): Add streaming for ipa_bits
13848 summary for ltrans.
13849 (read_ipcp_transfomration_info): Add support for reading streamed
13850 ipa_bits.
13851 (ipcp_update_bits): New function.
13852 (ipcp_transform_function): Call ipcp_update_bits.
13853
13854 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
13855
13856 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
13857 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
13858
13859 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
13860
13861 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
13862
13863 2016-08-25 Richard Biener <rguenther@suse.de>
13864
13865 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
13866 Only add locations in late dwarf.
13867 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
13868 (dwarf2out_early_finish): But do it here.
13869
13870 2016-08-24 Michael Collison <michael.collison@linaro.org>
13871 Michael Collison <michael.collison@arm.com>
13872
13873 * config/arm/arm-modes.def: Add new condition code mode CC_V
13874 to represent the overflow bit.
13875 * config/arm/arm.c (maybe_get_arm_condition_code):
13876 Add support for CC_Vmode.
13877 (arm_gen_unlikely_cbranch): New function to generate common
13878 rtl conditional branches for overflow patterns.
13879 * config/arm/arm-protos.h: Add prototype for
13880 arm_gen_unlikely_cbranch.
13881 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
13882 addsi3_compareV_upper): New patterns to support signed
13883 builtin overflow add operations.
13884 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
13885 New patterns to support unsigned builtin add overflow operations.
13886 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
13887 builtin overflow subtract operations,
13888 (usubv<mode>4): New patterns to support unsigned builtin subtract
13889 overflow operations.
13890 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
13891 to support builtin overflow negate operations.
13892
13893 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13894
13895 Revert
13896 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13897
13898 * explow.c (get_dynamic_stack_size): Take known alignment of stack
13899 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
13900 needed.
13901
13902 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13903
13904 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
13905 MULTILIB_OPTIONS should be used. Small wording fixes.
13906 * genmultilib: Memorize set of all option combinations in
13907 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
13908 found in MULTILIB_OPTIONS by checking if option set is listed in
13909 combination_space. Output new and existing error message to stderr.
13910
13911 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13912
13913 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
13914 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
13915 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
13916 (MULTILIB_REUSE): Remove reuse rules for option set including
13917 -mfpu=fp-armv8 and -mfpu=vfpv4
13918
13919 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
13920
13921 * config/arm/t-rtems: Add vfp multilib.
13922
13923 2016-08-23 Ian Lance Taylor <iant@golang.org>
13924
13925 * config/s390/s390.c (s390_asm_file_start): Call
13926 default_file_start.
13927
13928 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13929
13930 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
13931 initialization of all 0's to the 0 constant, instead of directly
13932 generating XOR. Add support for V4SImode vector initialization on
13933 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
13934 initialization. Change variables used in V4SFmode vector
13935 intialization. For V4SFmode vector splat on ISA 3.0, make sure
13936 any memory addresses are in index form. Add support for using
13937 VSPLTH/VSPLTB to initialize vector short and vector char vectors
13938 with all of the same element.
13939 (regno_or_subregno): New helper function to return a register
13940 number for either REG or SUBREG.
13941 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
13942 Use regno_or_subregno where possible.
13943 (rs6000_split_v4si_init_di_reg): New helper function to build up a
13944 DImode value from two SImode values in order to generate V4SImode
13945 vector initialization on 64-bit systems with direct move.
13946 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
13947 initialization.
13948 (rtx_is_swappable_p): V4SImode vector initialization insn is not
13949 swappable.
13950 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
13951 declaration.
13952 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
13953 attributes to initialize V8HImode and V16QImode vectors with the
13954 same element.
13955 (VSX_SPLAT_COUNT): Likewise.
13956 (VSX_SPLAT_SUFFIX): Likewise.
13957 (UNSPEC_VSX_VEC_INIT): New unspec.
13958 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
13959 Allow SFmode values to come from Altivec registers.
13960 (vsx_init_v4si): New insn/split for V4SImode vector initialization
13961 on 64-bit systems with direct move.
13962 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
13963 vector initializations, to allow V4SImode vector initializations
13964 on 64-bit systems with direct move.
13965 (vsx_splat_v4si): Likewise.
13966 (vsx_splat_v4si_di): Likewise.
13967 (vsx_splat_v4sf): Likewise.
13968 (vsx_splat_v4sf_internal): Likewise.
13969 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
13970 register classes.
13971 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
13972 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
13973 initializing V8HImode and V16QImode vectors with the same
13974 element.
13975 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
13976 optimization if -maltivec=be.
13977
13978 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
13979
13980 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
13981 attribute for alternatives 3 and 4.
13982
13983 2016-08-23 David Malcolm <dmalcolm@redhat.com>
13984
13985 * selftest.c (selftest::assert_str_contains): New function.
13986 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
13987 * selftest.h (selftest::assert_str_contains): New decl.
13988 (ASSERT_STR_CONTAINS): New macro.
13989
13990 2016-08-23 Richard Biener <rguenther@suse.de>
13991
13992 PR tree-optimization/77286
13993 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
13994 the CFG here.
13995 (vect_transform_loop): Split exit edges of loop and scalar
13996 loop if required and at the appropriate time.
13997
13998 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13999
14000 * explow.c (get_dynamic_stack_size): Take known alignment of stack
14001 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
14002 needed.
14003 Correct a typo in a comment.
14004
14005 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14006
14007 * config/s390/s390.md ("*andc_split"): New splitter for and with
14008 complement.
14009
14010 2016-08-23 Richard Biener <rguenther@suse.de>
14011
14012 PR tree-optimization/27336
14013 * tree-vrp.c (infer_value_range): Handle stmts that can throw
14014 by looking for a non-EH edge.
14015 (process_assert_insertions_for): Likewise.
14016
14017 2016-08-23 Richard Biener <rguenther@suse.de>
14018
14019 PR middle-end/77305
14020 * statistics.c (statistics_counter_event): Robustify against
14021 NULL current_pass.
14022
14023 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14024
14025 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
14026 for targets amdfam10 and barcelona.
14027
14028 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
14029
14030 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
14031 (zero_extend<mode>di2): Ditto.
14032 (*zero_extend<mode>si2): Ditto.
14033 (*zero_extendqihi2): Ditto.
14034
14035 2016-08-22 Joseph Myers <joseph@codesourcery.com>
14036
14037 PR middle-end/77269
14038 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
14039 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
14040
14041 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
14042
14043 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
14044 identical consecutive elements.
14045 [SSA_NAME]: Print the name's def stmt on its own line. When printing
14046 the node's def stmt, avoid printing an unwanted trailing newline by
14047 replacing the call to print_gimple_stmt() with its inlined body and
14048 adjusting it to not set pp_needs_newline and to call pp_flush()
14049 instead of pp_newline_and_flush().
14050
14051 2016-08-22 Joseph Myers <joseph@codesourcery.com>
14052
14053 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
14054 (float32_type_node, float64_type_node, float32x_type_node)
14055 (float128x_type_node): New macros.
14056 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
14057 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
14058 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
14059 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
14060 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
14061 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
14062 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
14063 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
14064 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
14065 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
14066 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
14067 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
14068 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
14069 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
14070 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
14071 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
14072 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
14073 (copysign, fabs, huge_val, inf, nan, nans): Use it.
14074 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
14075 and copysign.
14076 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
14077 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
14078 * doc/extend.texi (Other Builtins): Document these built-in
14079 functions.
14080 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
14081 for nan and nans.
14082
14083 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
14084
14085 * doc/install.texi (Binaries): www.opencsw.org now uses https.
14086
14087 2016-08-22 Richard Biener <rguenther@suse.de>
14088
14089 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
14090
14091 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
14092
14093 PR target/77270
14094 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
14095 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
14096 non-SSE2 athlons only, otherwise prefer SSE prefetches.
14097
14098 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14099
14100 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
14101 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
14102 (vrp_visit_switch_stmt): Likewise.
14103 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
14104 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
14105 (vrp_visit_stmt): Use extract_range_from_stmt.
14106 (vrp_visit_phi_node): Use extract_range_from_phi_node.
14107
14108 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14109
14110 * Makefile.in: Add tree-vrp.h to GTFILES.
14111 * gengtype.c (open_base_files): Add tree-vrp.h.
14112 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
14113 * builtins.c: Likewise.
14114 * fold-const.c: Likewise.
14115 * gimple-builder.c: Likewise.
14116 * gimple-laddress.c: Likewise.
14117 * hsa-gen.c: Likewise.
14118 * internal-fn.c: Likewise.
14119 * ssa.h: Likewise.
14120 * targhooks.c: Liewise,
14121 * tree-ssa-address.c: Likewise.
14122 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
14123 * tree-vrp.c (struct value_range): Move to tree-vrp.h
14124 * tree-vrp.h: New file.
14125
14126 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14127
14128 PR tree-optimization/61839
14129 * tree-vrp.c (two_valued_val_range_p): New.
14130 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
14131 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
14132 Also Convert VAR BINOP CST where VAR is two-valued to
14133 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
14134
14135 2016-08-19 David Malcolm <dmalcolm@redhat.com>
14136
14137 * diagnostic-show-locus.c
14138 (layout::annotation_line_showed_range_p): New method.
14139 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
14140 Reimplement case fixit_hint::REPLACE to cover removals, and
14141 replacements where the range of the replacement isn't one
14142 of the ranges in the rich_location.
14143 (test_one_liner_fixit_replace): Likewise.
14144 (selftest::test_one_liner_fixit_replace_non_equal_range): New
14145 function.
14146 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
14147 New function.
14148 (selftest::test_diagnostic_show_locus_one_liner): Call the new
14149 functions.
14150 * diagnostic.c (print_parseable_fixits): Remove case
14151 fixit_hint::REMOVE.
14152
14153 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
14154
14155 PR target/77270
14156 * config/i386/i386.c (ix86_option_override_internal): Remove
14157 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
14158 Enable SSE prefetch also for TARGET_PREFETCHWT1.
14159 Do not try to enable TARGET_PRFCHW ISA flag here.
14160 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
14161 Rewrite expander function body.
14162 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
14163
14164 2016-08-19 Joseph Myers <joseph@codesourcery.com>
14165
14166 PR c/32187
14167 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
14168 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
14169 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
14170 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
14171 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
14172 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
14173 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
14174 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
14175 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
14176 tree_index values.
14177 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
14178 macros.
14179 (struct floatn_type_info): New structure type.
14180 (floatn_nx_types): New variable declaration.
14181 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
14182 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
14183 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
14184 * tree.c (floatn_nx_types): New variable.
14185 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
14186 corresponding complex types.
14187 * target.def (floatn_mode): New hook.
14188 * targhooks.c: Include "real.h".
14189 (default_floatn_mode): New function.
14190 * targhooks.h (default_floatn_mode): New prototype.
14191 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
14192 types.
14193 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
14194 effective-target and dg-add-options keywords.
14195 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
14196 Document new effective-target keywords.
14197 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
14198 * doc/tm.texi: Regenerate.
14199 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
14200 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
14201 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
14202 18661-3.
14203 * real.h (struct real_format): Add field ieee_bits.
14204 * real.c (ieee_single_format, mips_single_format)
14205 (motorola_single_format, spu_single_format, ieee_double_format)
14206 (mips_double_format, motorola_double_format)
14207 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
14208 (ieee_extended_intel_128_format)
14209 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
14210 (mips_extended_format, ieee_quad_format, mips_quad_format)
14211 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
14212 (decimal_double_format, decimal_quad_format, ieee_half_format)
14213 (arm_half_format, real_internal_format: Initialize ieee_bits
14214 field.
14215 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
14216 float128_type_node. Set float80_type_node to float64x_type_node
14217 if appropriate and long_double_type_node not appropriate.
14218 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
14219 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
14220 Initialize ieee_bits field.
14221 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
14222 (rs6000_init_builtins): Set ieee128_float_type_node to
14223 float128_type_node.
14224 (rs6000_floatn_mode): New function.
14225
14226 2016-08-19 Jakub Jelinek <jakub@redhat.com>
14227
14228 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
14229 _rdseed64_step): Uglify argument names and/or local variable names
14230 in inline functions.
14231 * config/i386/rtmintrin.h (_xabort): Likewise.
14232 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
14233 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
14234 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
14235 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
14236 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
14237 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
14238 _mm_maskz_ternarylogic_epi32): Likewise.
14239 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
14240 __lwpins32, __lwpins64): Likewise.
14241 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
14242 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
14243 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
14244 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
14245 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
14246 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
14247 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
14248 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
14249 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
14250 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
14251 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
14252 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
14253 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
14254 _mm256_mask_i64gather_epi32): Likewise.
14255 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
14256 * config/i386/ia32intrin.h (__writeeflags): Likewise.
14257 * config/i386/pkuintrin.h (_wrpkru): Likewise.
14258 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
14259 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
14260 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
14261 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
14262 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
14263 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
14264 _mm512_mask_prefetch_i64scatter_ps): Likewise.
14265 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
14266 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
14267 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
14268 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
14269 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
14270 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
14271 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
14272 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
14273
14274 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
14275 returning void.
14276 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
14277 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
14278 Likewise.
14279 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
14280 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
14281 function name.
14282 (_rdpkru_u32): Add space after function name.
14283
14284 * config/i386/t-i386 (i386-c.o): Don't depend on
14285 i386-builtin-types.inc.
14286 (i386.o): Depend on i386-builtin-types.inc.
14287
14288 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
14289
14290 PR target/77281
14291 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
14292 Use const_vec_duplicate to check for duplicated elements.
14293
14294 2016-08-19 Richard Biener <rguenther@suse.de>
14295
14296 PR tree-optimization/77290
14297 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14298 Fix flag_tree_parallelize_loops check.
14299
14300 2016-08-19 Richard Biener <rguenther@suse.de>
14301
14302 * match.pd (x | 0 -> x): Add.
14303
14304 2016-08-19 Richard Biener <rguenther@suse.de>
14305
14306 PR tree-optimization/77286
14307 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
14308 Deal with virtual PHIs being out-of-order.
14309
14310 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14311
14312 * doc/invoke.texi (fverbose-asm): Note that source code lines
14313 are emitted, and provide an example.
14314 * final.c (asm_show_source): New function.
14315 (final_scan_insn): Call asm_show_source.
14316
14317 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14318
14319 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
14320 param with diagnostic_kind.
14321 (class colorizer): Similarly replace field m_diagnostic with
14322 m_diagnostic_kind.
14323 (colorizer::colorizer): Replace diagnostic
14324 param with diagnostic_kind.
14325 (colorizer::begin_state): Update for above field change.
14326 (layout::layout): Replace diagnostic param with rich_location *
14327 and diagnostic_kind.
14328 (diagnostic_show_locus): Replace diagnostic param with richloc
14329 and diagnostic_kind.
14330 (class selftest::test_diagnostic_context): New class.
14331 (selftest::test_diagnostic_show_locus_unknown_location): New
14332 function.
14333 (selftest::test_one_liner_simple_caret): New function.
14334 (selftest::test_one_liner_caret_and_range): New function.
14335 (selftest::test_one_liner_multiple_carets_and_ranges): New
14336 function.
14337 (selftest::test_one_liner_fixit_remove): New function.
14338 (selftest::test_one_liner_fixit_replace): New function.
14339 (selftest::test_diagnostic_show_locus_one_liner): New function.
14340 (selftest::diagnostic_show_locus_c_tests): Call the new test
14341 functions.
14342 * diagnostic.c (diagnostic_initialize): Initialize
14343 colorize_source_p, show_ruler_p and parseable_fixits_p.
14344 (default_diagnostic_finalizer): Update for change to
14345 diagnostic_show_locus.
14346 (diagnostic_append_note): Likewise.
14347 * diagnostic.h (diagnostic_show_locus): Replace
14348 const diagnostic_info * param with location * and diagnostic_t.
14349
14350 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14351
14352 * input.c (saved_line_table): New global.
14353 (class selftest::temp_line_table): Rename to line_table_test and
14354 move declaration to selftest.h, and drop field m_old_line_table.
14355 (selftest::temp_line_table::temp_line_table): Rename ctor to...
14356 (selftest::line_table_test::line_table_test): ...this. Add a
14357 default ctor. Store current value of line_table within
14358 saved_line_table.
14359 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
14360 (selftest::line_table_test::~line_table_test): ...this, and
14361 restore line_table from the saved_line_table, rather than
14362 m_old_line_table.
14363 (selftest::test_accessing_ordinary_linemaps): Update for above
14364 renaming.
14365 (selftest::test_lexer): Likewise.
14366 (struct selftest::lexer_test): Likewise.
14367 (selftest::lexer_test::lexer_test): Likewise.
14368 (selftest::input_c_tests): Move the looping over test cases from
14369 here into...
14370 (selftest::for_each_line_table_case): New function.
14371 * input.h (saved_line_table): New decl.
14372 * selftest.h (struct selftest::line_table_case): New forward decl.
14373 (class selftest::line_table_test): New class, moved here from
14374 selftest::temp_line_table in input.c, and renamed.
14375 (selftest::for_each_line_table_case): New decl.
14376
14377 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
14378
14379 PR target/72839
14380 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
14381
14382 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
14383
14384 PR middle-end/70895
14385 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
14386 enclosing parallel construct for reduction variables on OpenACC loop
14387 directives.
14388
14389 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
14390
14391 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
14392 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
14393 -gdwarf-3.
14394 (function_to_dwarf_procedure): Update comment.
14395
14396 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14397
14398 * input.c (diagnostics_file_cache_forcibly_evict_file): New
14399 function.
14400 * input.h (diagnostics_file_cache_forcibly_evict_file): New
14401 declaration.
14402 * selftest.c (selftest::temp_source_file::~temp_source_file):
14403 Evict m_filename from the diagnostic file cache.
14404
14405 2016-08-18 Richard Biener <rguenther@suse.de>
14406
14407 * tree-pass.h (make_pass_materialize_all_clones): Declare.
14408 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
14409 make_pass_materialize_all_clones): New simple IPA pass encapsulating
14410 clone materialization.
14411 * passes.def (all_late_ipa_passes): Start with
14412 pass_materialize_all_clones.
14413 * cgraphunit.c (symbol_table::compile): Remove call to
14414 materialize_all_clones.
14415 * tree-into-ssa.c: Include statistics.h.
14416 (update_ssa): Count number of times we do incremental/rewrite
14417 SSA update.
14418
14419 2016-08-18 Richard Biener <rguenther@suse.de>
14420
14421 PR tree-optimization/77282
14422 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14423 When doing auto-parallelizing also prevent use of PHIs that
14424 carry dependences across loop backedges.
14425
14426 2016-08-18 Tamar Christina <tamar.christina@arm.com>
14427 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14428
14429 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
14430
14431 2016-08-18 Richard Biener <rguenther@suse.de>
14432
14433 * ssa-iterators.h (ssa_vuse_operand): New inline.
14434 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
14435 (predicate_all_scalar_phis): Use remove_phi_node to remove
14436 phi nodes predicated. Delay removing virtual PHIs.
14437 (predicate_mem_writes): Update virtual operands.
14438 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
14439 (tree_if_conversion): Do not rewrite virtual SSA form.
14440 * tree-phinodes.c (release_phi_node): Make static.
14441 * tree-phinodes.h (release_phi_node): Remove.
14442
14443 2016-08-18 Jakub Jelinek <jakub@redhat.com>
14444
14445 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
14446 codes that appear in bdesc_* arrays, instead include i386-builtin.def
14447 twice to define those.
14448 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
14449 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
14450 bdesc_multi_arg): Define by including i386-builtin.def the third time.
14451 * config/i386/i386-builtin.def: New file.
14452
14453 2016-08-17 David Malcolm <dmalcolm@redhat.com>
14454
14455 * input.c (get_source_range_for_char): Rename to...
14456 (selftest::get_source_range_for_char): ...this, and move within
14457 the #if CHECKING_P guard.
14458 (get_num_source_ranges_for_substring): Rename to...
14459 (selftest::get_num_source_ranges_for_substring): ...this, move
14460 within the #if CHECKING_P guard, and make static.
14461 (selftest::assert_num_substring_ranges): Initialize
14462 actual_num_ranges.
14463
14464 2016-08-18 Alan Modra <amodra@gmail.com>
14465
14466 PR rtl-optimization/72771
14467 * reload.c (find_reloads): Don't assume that a subreg mem is OK
14468 when find_reloads_toplev returns address_reloaded==-1.
14469 (alternative_allows_const_pool_ref): Update comment.
14470
14471 2015-08-17 Alan Hayward <alan.hayward@arm.com>
14472
14473 PR tree-optimization/71752
14474 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
14475 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
14476
14477 2016-08-17 Jakub Jelinek <jakub@redhat.com>
14478
14479 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
14480 instead of testing ECF_NORETURN bit in gimple_call_flags.
14481 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
14482 * predict.c (tree_bb_level_predictions): Likewise.
14483 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
14484
14485 PR middle-end/77259
14486 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
14487 turning a call into __builtin_unreachable-like noreturn call, adjust
14488 gimple_call_set_fntype.
14489 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
14490 gimple_call_fntype has void return type.
14491
14492 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
14493
14494 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
14495 maybe_lookup_decl, to handle nested acc loop directives.
14496
14497 2016-08-17 Richard Biener <rguenther@suse.de>
14498
14499 PR tree-optimization/76490
14500 * tree-vrp.c (update_value_range): Preserve overflow infinities
14501 when intersecting with ranges from get_range_info.
14502 (operand_less_p): Handle overflow infinities correctly.
14503 (value_range_constant_singleton): Use vrp_operand_equal_p
14504 to handle overflow max/min correctly.
14505 (vrp_valueize): Likewise.
14506 (union_ranges): Likewise.
14507 (intersect_ranges): Likewise.
14508 (vrp_visit_phi_node): Improve iteration limitation to only
14509 apply when we'll possibly re-visit the PHI via a changed argument
14510 on the backedge.
14511
14512 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
14513
14514 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
14515 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
14516 rather than those that should not be built.
14517
14518 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
14519
14520 PR target/66488
14521 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
14522
14523 2016-08-17 Richard Biener <rguenther@suse.de>
14524
14525 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
14526 (verify_vssa): New function verifying virtual SSA form.
14527 (verify_ssa): Call it.
14528 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
14529 Do not apply loop-closed SSA handling to virtuals.
14530 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
14531 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
14532 when rewriting their symbol.
14533 (prepare_def_site_for): Likewise.
14534 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
14535 operands of moved stmts.
14536
14537 2016-08-17 Richard Biener <rguenther@suse.de>
14538
14539 PR tree-optimization/23855
14540 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
14541 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
14542 find guards to hoist. Do not update SSA form but rewrite virtuals
14543 into loop closed SSA.
14544 (find_loop_guard): Adjust to skip already hoisted guards. Do
14545 not mark virtuals for renaming or update SSA form.
14546
14547 2016-08-17 Martin Liska <mliska@suse.cz>
14548
14549 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
14550 a LONG_LONG_TYPE_SIZE comparison.
14551 * gcov-io.h: Remove macro definitions.
14552 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
14553 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
14554 comparison.
14555
14556 2016-08-16 Jakub Jelinek <jakub@redhat.com>
14557
14558 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
14559 that builtins not mentioned in bdesc_* arrays come first, then
14560 the ones mentioned in bdesc_* arrays in the order they appear in
14561 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
14562 IX86_BUILTIN__BDESC_*_LAST enumerator.
14563 (bdesc_mpx): Fix up a comment typo.
14564 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
14565 __builtin_ia32_vpcomneu[bwdq] builtins.
14566 (BDESC_VERIFY, BDESC_VERIFYS): Define.
14567 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
14568 enum ix86_builtins ordering.
14569 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
14570 for direct bdesc_* array member access instead of searching all the
14571 arrays until an fcode match is found.
14572
14573 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
14574
14575 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
14576 pattern as define_insn_and_split. Split insn before reload to
14577 ashl<mode>3_1.
14578 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
14579 <shift_insn><mode>3_1.
14580 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
14581 <rotate_insn><mode>3_1.
14582
14583 2016-08-16 David Malcolm <dmalcolm@redhat.com>
14584
14585 PR c/72857
14586 * input.c (get_source_range_for_substring): Rename to...
14587 (get_source_location_for_substring): ...this, adding param
14588 "caret_idx", and converting output param from source_range * to
14589 location_t *.
14590 (get_source_range_for_char): New function.
14591 (get_num_source_ranges_for_substring): Update comment to reflect
14592 above renaming.
14593 (assert_char_at_range): Update to use get_source_range_for_char
14594 rather than get_source_range_for_substring.
14595 (test_lexer_string_locations_concatenation_2): Likewise.
14596 * substring-locations.h (get_source_range_for_substring): Rename
14597 to...
14598 (get_source_location_for_substring): ...this, and adding param
14599 "caret_idx", and converting output param from source_range * to
14600 location_t *.
14601
14602 2016-08-16 David Malcolm <dmalcolm@redhat.com>
14603
14604 * input.c (class selftest::temp_source_file): Move to
14605 selftest.h.
14606 (selftest::temp_source_file::temp_source_file): Move to
14607 selftest.c.
14608 (selftest::temp_source_file::~temp_source_file): Likewise.
14609 * selftest.c (selftest::temp_source_file::temp_source_file): Move
14610 here from input.c.
14611 (selftest::temp_source_file::~temp_source_file): Likewise.
14612 * selftest.h (class selftest::temp_source_file): Move here from
14613 input.c
14614
14615 2016-08-16 Jakub Jelinek <jakub@redhat.com>
14616
14617 PR target/71910
14618 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
14619 inlining, add cgraph edge for the added __builtin_unreachable call.
14620
14621 PR middle-end/67485
14622 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
14623 only cast it to SHWI for the final comparison.
14624
14625 2016-08-16 Martin Liska <mliska@suse.cz>
14626
14627 PR gcov-profile/36412
14628 * doc/gcov.texi: Document --hash-filenames(-x).
14629 * gcov.c (print_usage): Add the option.
14630 (process_args): Process the option, sort options alphabetically.
14631 (md5sum_to_hex): New function.
14632 (make_gcov_file_name): Do the md5sum and append it to a
14633 filename.
14634
14635 2016-08-16 Bin Cheng <bin.cheng@arm.com>
14636
14637 PR tree-optimization/69848
14638 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
14639 and swtich operands to avoid additional NOT instruction.
14640 (vcond<v_cmp_mixed><mode>): Ditto.
14641 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
14642
14643 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
14644
14645 * doc/install.texi (*-*-solaris2*): Adjust latest change.
14646
14647 2016-08-16 Richard Biener <rguenther@suse.de>
14648
14649 PR tree-optimization/76783
14650 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
14651 BB visited flags at start.
14652
14653 2016-08-16 Bin Cheng <bin.cheng@arm.com>
14654
14655 PR tree-optimization/72817
14656 PR tree-optimization/73450
14657 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
14658 multiple_of_p for adjusted IV.base.
14659
14660 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
14661
14662 PR target/72867
14663 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
14664 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
14665 for !flag_finite_math_only or flag_signed_zeros.
14666 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
14667 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
14668 depend on flag_finite_math_only.
14669 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
14670 New insn pattern.
14671 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
14672 (*ieee_smin<mode>3): Ditto.
14673 (*ieee_smax<mode>3): Ditto.
14674 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
14675 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
14676 flag_signed_zeros.
14677 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
14678 depend on flag_finite_math_only.
14679 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
14680 (*mmx_<code>v2sf3): Remove.
14681 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
14682 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
14683 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
14684
14685 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
14686
14687 PR rtl-optimization/73650
14688 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
14689 it is not a simple move.
14690
14691 2016-08-15 Martin Liska <mliska@suse.cz>
14692
14693 PR driver/72765
14694 * gcc.c (do_spec_1): Call save_string with the right size.
14695 (save_string): Do an assert about string we copy.
14696
14697 2016-08-15 Richard Biener <rguenther@suse.de>
14698
14699 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
14700 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
14701 TV_MACH_DEP.
14702 (pass_data_stv): Likewise.
14703
14704 2016-08-15 Richard Biener <rguenther@suse.de>
14705
14706 PR tree-optimization/73434
14707 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
14708 TBAA info on the base when forwarding a non-invariant address.
14709
14710 2016-08-15 Jakub Jelinek <jakub@redhat.com>
14711
14712 * dwarf2out.c (struct checksum_attributes): Add
14713 at_string_length_bit_size and at_string_length_byte_size fields.
14714 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
14715 and DW_AT_string_length_byte_size.
14716 (die_checksum_ordered): Handle at_string_length_bit_size and
14717 at_string_length_byte_size.
14718 (gen_array_type_die): For dwarf_version >= 5 emit
14719 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
14720 (adjust_string_types): For dwarf_version >= 5 remove
14721 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
14722 (resolve_addr): Likewise.
14723
14724 PR debug/71906
14725 * dwarf2out.c (string_types): New variable.
14726 (gen_array_type_die): Change early_dwarf handling of
14727 DW_AT_string_length, create DW_OP_call4 referencing the
14728 length var temporarily. Handle parameters that are pointers
14729 to string length.
14730 (adjust_string_types): New function.
14731 (gen_subprogram_die): Temporarily set string_types to local var,
14732 call adjust_string_types if needed.
14733 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
14734 New functions.
14735 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
14736
14737 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
14738
14739 * doc/install.texi (*-*-solaris2*): Fix version number and document
14740 requirement on GNU make for building libjava with the Solaris linker.
14741
14742 2016-08-15 Martin Liska <mliska@suse.cz>
14743 Jakub Jelinek <jakub@redhat.com>
14744
14745 PR tree-optimization/72824
14746 * tree-loop-distribution.c (const_with_all_bytes_same)
14747 <case VECTOR_CST>: Fix a typo.
14748
14749 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
14750
14751 PR target/76342
14752 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
14753 Renamed from _mm512_undefined_si512.
14754 (_mm_undefined_si512): New definition.
14755
14756 2016-08-13 Richard Biener <rguenther@suse.de>
14757
14758 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
14759 into PHIs and update the lattice for its def.
14760
14761 2016-08-12 Jakub Jelinek <jakub@redhat.com>
14762
14763 PR c/71512
14764 * ubsan.c (instrument_si_overflow): Pass true instead of false
14765 to gsi_replace.
14766 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
14767 of bbs. Return TODO_cleanup_cfg if any returned true.
14768
14769 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14770
14771 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
14772 ISA 3.0 MTVSRDD instruction.
14773 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
14774 vecperm.
14775
14776 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
14777
14778 PR tree-optimization/71083
14779 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
14780 bitfield access when possible.
14781
14782 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
14783
14784 PR middle-end/71654
14785 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
14786 sign-changing cast from a shorter unsigned type to a wider
14787 signed type.
14788
14789 2016-08-12 Jakub Jelinek <jakub@redhat.com>
14790
14791 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
14792 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
14793 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
14794
14795 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14796
14797 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
14798 Correct costs for vec_construct.
14799
14800 2016-08-12 Bin Cheng <bin.cheng@arm.com>
14801
14802 PR tree-optimization/69848
14803 * tree-vectorizer.h (enum vect_def_type): New condition reduction
14804 type CONST_COND_REDUCTION.
14805 * tree-vect-loop.c (vectorizable_reduction): Support new condition
14806 reudction type CONST_COND_REDUCTION.
14807
14808 2016-08-12 Richard Biener <rguenther@suse.de>
14809
14810 PR tree-optimization/57326
14811 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
14812 returning an SSA name.
14813 (phi_translate_1): When fully_constant_expression returns a NAME
14814 make sure we have a leader for it.
14815
14816 2016-08-12 Martin Liska <mliska@suse.cz>
14817 Adam Fineman <afineman@afineman.com>
14818
14819 * gcov.c (process_file): Create .gcov file when .gcda
14820 file is missing.
14821
14822 2016-08-12 Marek Polacek <polacek@redhat.com>
14823
14824 PR c/7652
14825 * alias.c (find_base_value): Adjust fall through comment.
14826 * cfgexpand.c (expand_debug_expr): Likewise.
14827 * combine.c (find_split_point): Likewise.
14828 (expand_compound_operation): Likewise. Add FALLTHRU.
14829 (make_compound_operation): Adjust fall through comment.
14830 (canon_reg_for_combine): Add FALLTHRU.
14831 (force_to_mode): Adjust fall through comment.
14832 (simplify_shift_const_1): Likewise.
14833 (simplify_comparison): Likewise.
14834 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
14835 FALLTHRU.
14836 * config/aarch64/predicates.md: Likewise.
14837 * config/i386/i386.c (function_arg_advance_32): Likewise.
14838 (ix86_gimplify_va_arg): Likewise.
14839 (print_reg): Likewise.
14840 (ix86_print_operand): Likewise.
14841 (ix86_build_const_vector): Likewise.
14842 (ix86_expand_branch): Likewise.
14843 (ix86_sched_init_global): Adjust fall through comment.
14844 (ix86_expand_args_builtin): Add FALLTHRU.
14845 (ix86_expand_builtin): Likewise.
14846 (ix86_expand_vector_init_one_var): Likewise.
14847 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
14848 (rs6000_adjust_cost): Likewise.
14849 (insn_must_be_first_in_group): Likewise.
14850 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
14851 * dbxout.c (dbxout_symbol): Adjust fall through comment.
14852 * df-scan.c (df_uses_record): Likewise.
14853 * dojump.c (do_jump): Add FALLTHRU.
14854 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
14855 comment.
14856 (resolve_args_picking_1): Adjust fall through comment.
14857 (loc_list_from_tree_1): Likewise.
14858 * expmed.c (make_tree): Likewise.
14859 * expr.c (expand_expr_real_2): Add FALLTHRU.
14860 (expand_expr_real_1): Likewise. Adjust fall through comment.
14861 * fold-const.c (const_binop): Adjust fall through comment.
14862 (fold_truth_not_expr): Likewise.
14863 (fold_cond_expr_with_comparison): Add FALLTHRU.
14864 (fold_binary_loc): Likewise.
14865 (contains_label_1): Adjust fall through comment.
14866 (multiple_of_p): Likewise.
14867 * gcov-tool.c (process_args): Add FALLTHRU.
14868 * genattrtab.c (check_attr_test): Likewise.
14869 (write_test_expr): Likewise.
14870 * genconfig.c (walk_insn_part): Likewise.
14871 * genpreds.c (validate_exp): Adjust fall through comment.
14872 (needs_variable): Likewise.
14873 * gensupport.c (get_alternatives_number): Add FALLTHRU.
14874 (subst_dup): Likewise.
14875 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
14876 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
14877 (gimplify_scan_omp_clauses): Add FALLTHRU.
14878 (goa_stabilize_expr): Likewise.
14879 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
14880 through comment.
14881 * hsa-gen.c (get_address_from_value): Likewise.
14882 * ipa-icf.c (sem_function::hash_stmt): Likewise.
14883 * ira.c (ira_setup_alts): Add FALLTHRU.
14884 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
14885 comment.
14886 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
14887 * opts.c (common_handle_option): Likewise.
14888 * read-rtl.c (read_rtx_code): Likewise.
14889 * real.c (round_for_format): Likewise.
14890 * recog.c (asm_operand_ok): Likewise.
14891 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
14892 * reload1.c (set_label_offsets): Likewise.
14893 (eliminate_regs_1): Likewise.
14894 (reload_reg_reaches_end_p): Likewise.
14895 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
14896 (rtx_cost): Likewise.
14897 * sched-rgn.c (is_exception_free): Likewise.
14898 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
14899 * stor-layout.c (int_mode_for_mode): Likewise.
14900 * toplev.c (print_to_asm_out_file): Likewise.
14901 (print_to_stderr): Likewise.
14902 * tree-cfg.c (gimple_verify_flow_info): Likewise.
14903 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
14904 (chrec_fold_multiply): Likewise.
14905 (evolution_function_is_invariant_rec_p): Likewise.
14906 (for_each_scev_op): Likewise.
14907 * tree-data-ref.c (siv_subscript_p): Likewise.
14908 (get_references_in_stmt): Likewise.
14909 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
14910 (substitute_in_expr): Likewise.
14911 (type_cache_hasher::equal): Likewise.
14912 (walk_type_fields): Likewise.
14913 * var-tracking.c (adjust_mems): Add FALLTHRU.
14914 (set_dv_changed): Adjust fall through comment.
14915 * varasm.c (default_function_section): Add FALLTHRU.
14916
14917 2016-08-12 Marek Polacek <polacek@redhat.com>
14918
14919 PR c/7652
14920 * tree-complex.c (expand_complex_division): Add missing break.
14921
14922 2016-08-12 Richard Biener <rguenther@suse.de>
14923
14924 * passes.c (execute_todo): Do not push/pop TV_TODO.
14925 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
14926 (execute_one_pass): Likewise.
14927 * common.opt (ftime-report-details): New switch.
14928 * doc/invoke.texi (ftime-report-details): Document.
14929 * timevar.h (timer::print_row): Adjust signature.
14930 (timer::all_zero): New static helper.
14931 (timer::child_map_t): New typedef.
14932 (timer::time_var_def): Add children field.
14933 * timevar.c (timer::named_items::print): Adjust.
14934 (timer::~timer): Free timevar recorded children.
14935 (timer::pop_internal): When -ftime-report-details record
14936 time spent in sub-timevars.
14937 (timer::print_row): Adjust.
14938 (timer::print): Print sub-timevar stats, use all_zero.
14939 * timevar.def (TV_TODO): Remove.
14940
14941 2016-08-12 Richard Biener <rguenther@suse.de>
14942
14943 PR tree-optimization/72851
14944 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
14945 worklists to use bitmaps indexed in execution order.
14946 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
14947 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
14948 (cfg_blocks): Make a bitmap.
14949 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
14950 New globals.
14951 (cfg_blocks_empty_p): Adjust.
14952 (cfg_blocks_add): Likewise.
14953 (cfg_blocks_get): Likewise.
14954 (add_ssa_edge): Likewise.
14955 (add_control_edge): Likewise.
14956 (simulate_stmt): Likewise.
14957 (process_ssa_edge_worklist): Likewise.
14958 (simulate_block): Likewise.
14959 (ssa_prop_init): Compute PRE order and stmt UIDs.
14960 (ssa_prop_fini): Adjust.
14961 (ssa_propagate): Adjust.
14962
14963 2016-08-12 Richard Biener <rguenther@suse.de>
14964
14965 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
14966 the currently executable edges have fixed ranges. Always
14967 go through update_value_range.
14968
14969 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
14970
14971 PR debug/63240
14972 * langhooks-def.h
14973 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
14974 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
14975 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
14976 (LANG_HOOKS_DECLS): Add it.
14977 * langhooks.h (struct lang_hooks_for_decls): Add
14978 function_decl_defaulted. Const_tree-ify
14979 function_decl_explicit_p and function_decl_deleted_p.
14980 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
14981 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
14982 also at strict DWARF v5.
14983
14984 PR debug/55641
14985 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
14986 TYPE_QUAL_CONST in reference-typed decls.
14987
14988 PR debug/49366
14989 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
14990 in DW_OP_pieces, just enough to handle pointers to member
14991 functions.
14992 (gen_remaining_tmpl_value_param_die_attribute): Use a location
14993 expression on DWARFv5 if a constant value doesn't work.
14994
14995 2016-08-11 David Malcolm <dmalcolm@redhat.com>
14996
14997 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
14998 * selftest.c (selftest::test_assertions): New function.
14999 (selftest::selftest_c_tests): New function.
15000 * selftest.h (selftest::selftest_c_tests): New declaration.
15001
15002 2016-08-11 Richard Biener <rguenther@suse.de>
15003 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15004
15005 PR rtl-optimization/72855
15006 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
15007
15008 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15009
15010 PR target/72863
15011 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
15012 (vsx_store_<mode>): Likewise.
15013
15014 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
15015
15016 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
15017 TImode CONST_WIDE_INT store.
15018 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
15019
15020 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
15021
15022 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
15023 mode if unaligned SSE load and store are optimal.
15024
15025 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
15026
15027 PR tree-optimization/71083
15028 * tree-predcom.c (ref_at_iteration): Correctly align the
15029 reference type.
15030
15031 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15032
15033 * config/s390/s390-builtin-types.def: Add INT128 types.
15034 * config/s390/s390-builtins.def: Add INT128 variants for the add
15035 sub low-level builtins dealing with TImode.
15036 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
15037 via subreg when expanding a builtin.
15038 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
15039 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
15040 Fix comment.
15041 * config/s390/vecintrin.h: Adjust builtin names accordingly.
15042 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
15043 ("vec_addc<mode>", "vec_addc_u128"): Merge to
15044 "vacc<bhfgq>_<mode>".
15045 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
15046 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
15047 ("vec_subc<mode>", "vec_subc_u128"): Merge to
15048 "vscbi<bhfgq>_<mode>".
15049 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
15050 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
15051
15052 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15053
15054 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
15055
15056 2016-08-11 Bin Cheng <bin.cheng@arm.com>
15057
15058 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
15059 unused declaration.
15060 (vcond<v_cmp_mixed><mode>): Ditto.
15061 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
15062
15063 2016-08-11 Bin Cheng <bin.cheng@arm.com>
15064
15065 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
15066 variable explicitly, also assert on it before use.
15067
15068 2016-08-11 Richard Biener <rguenther@suse.de>
15069
15070 PR tree-optimization/72772
15071 * cfgloopmanip.c (create_preheader): Use split_edge if there
15072 is a single loop entry, avoiding degenerate PHIs.
15073
15074 2016-08-11 Richard Biener <rguenther@suse.de>
15075
15076 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
15077 unconditional TODO_cleanup_cfg.
15078 (pass_thread_jumps::execute): Initialize loops, perform a CFG
15079 cleanup only if we threaded a jump.
15080
15081 2016-08-11 Alan Modra <amodra@gmail.com>
15082
15083 PR target/71680
15084 * lra-constraints.c (simplify_operand_subreg): Allow subreg
15085 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
15086 slow. Emit two reloads for slow mem case, first loading in
15087 fast innermode, then converting to required mode.
15088
15089 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
15090
15091 * config/rs6000/altivec.h (vec_extract_exp): New macro.
15092 (vec_extract_sig): New macro.
15093 (vec_insert_exp): New macro.
15094 (vec_test_data_class): New macro.
15095 (scalar_extract_exp): New macro.
15096 (scalar_extract_sig): New macro.
15097 (scalar_insert_exp): New macro.
15098 (scalar_test_data_class): New macro.
15099 (scalar_test_neg): New macro.
15100 (scalar_cmp_exp_gt): New macro.
15101 (scalar_cmp_exp_lt): New macro.
15102 (scalar_cmp_exp_eq): New macro.
15103 (scalar_cmp_exp_unordered): New macro.
15104 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
15105 to enforce constraint that operand is a 7-bit unsigned literal.
15106 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
15107 for power9 built-ins.
15108 (BU_P9V_VSX_2): Likewise.
15109 (BU_P9V_64BIT_VSX_2): Likewise.
15110 (VSEEDP): Add scalar extract exponent support.
15111 (VSEESP): Add scalar extract signature support.
15112 (VSTDCNDP): Add scalar test negative support.
15113 (VSTDCNSP): Likewise.
15114 (VSIEDP): Add scalar insert exponent support.
15115 (VSCEDPGT): Add scalar compare exponent greater than support.
15116 (VSCEDPLT): Add scalar compare exponent less than support.
15117 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
15118 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
15119 (VSTDCDP): Add scalar test data class support.
15120 (VSTDCSP): Likewise.
15121 (VSEEDP): Add overload support for scalar extract exponent
15122 operation.
15123 (VSESDP): Add overload support for scalar extract signature
15124 operation.
15125 (VSTDCN): Add overload support for scalar test negative
15126 operation.
15127 (VSTDCNDP): Add overload support for scalar test negative
15128 operation.
15129 (VSTDCNSP): Add overload support for scalar test negative
15130 operation.
15131 (VSIEDP): Add overload support for scalar insert exponent
15132 operation.
15133 (VSTDC): Add overload support for scalar test data class
15134 operation.
15135 (VSTDCDP): Add overload support for scalar test data class
15136 operation.
15137 (VSTDCSP): Add overload support for scalar test data class
15138 opreation.
15139 (VSCEDPGT): Add overload support for scalar compare exponent
15140 greater than operation.
15141 (VSCEDPLT): Add overload support for scalar compare exponent
15142 less than operation.
15143 (VSCEDPEQ): Add overload support for scalar compare exponent
15144 test-for-equality operation.
15145 (VSCEDPUO): Add overload support for scalar compare exponent
15146 test-for-unordered operation.
15147 (VEEDP): Add vector extract exponent support.
15148 (VEESP): Likewise.
15149 (VESDP): Add vector extract significand support.
15150 (VESSP): Likewise.
15151 (VIEDP): Add vector insert exponent support.
15152 (VIESP): Likewise.
15153 (VTDCDP): Add vector test data class support.
15154 (VTDCSP): Likewise.
15155 (VES): Add overload support for vector extract significand operation.
15156 (VESDP): Likewise.
15157 (VESSP): Likewise
15158 (VEE): Add overload support for vector extract exponent operation.
15159 (VEEDP): Likewise.
15160 (VEESP): Likewise.
15161 (VTDC): Add overload support for vector test data class operation.
15162 (VTDCDP): Likewise.
15163 (VTDCSP): Likewise.
15164 (VIE): Add overload support for vector insert exponent operation.
15165 (VIEDP): Likewise.
15166 (VIESP): Likewise.
15167 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15168 overloaded binary floating point functions.
15169 (altivec_resolve_overloaded_builtin): Improve error messages to
15170 distinguish between functions not supported in the current
15171 compiler configuration and functions that were invoked with an
15172 invalid parameter combination, and include the built-in function
15173 name in both error messages.
15174 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
15175 New prototype.
15176 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
15177 function.
15178 (rs6000_expand_binop_builtin): Add check to enforce that argument
15179 2 of the test data class operations is a 7-bit unsigned literal.
15180 (rs6000_invalid_builtin): Add code to issue an error message if a
15181 built-in function that requires the power9_vector and -m32
15182 command-line options is compiled without these options.
15183 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
15184 (UNSPEC_VSX_SXSIGDP): New value.
15185 (UNSPEC_VSX_SXSIGPDP): New value.
15186 (UNSPEC_VSX_SIEXPDP): New value.
15187 (UNSPEC_VSX_SCMPEXPDP): New value.
15188 (UNSPEC_VSX_STSTDC): New value.
15189 (UNSPEC_VSX_VXEXP): New value.
15190 (UNSPEC_VSX_VXSIG): New value.
15191 (UNSPEC_VSX_VIEXP): New value.
15192 (UNSPEC_VSX_VTSTDC): New value.
15193 (xsxexpdp): New insn for scalar extract exponent.
15194 (xsxsigdp): New insn for scalar extract significand.
15195 (xsiexpdp): New insn for scalar insert exponent.
15196 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
15197 (*xscmpexpdp): New insn for scalar compare exponents.
15198 (xststdc<Fvsx): New expansion for both single- and
15199 double-precision scalar test data class operations.
15200 (xststdcneg<Fvsx>): New expansion for both single- and
15201 double-precision scalar test for negative value operations.
15202 (*xststdc<Fvsx>): New insn for scalar test data class
15203 operation.
15204 (xvxexp<VSs>): New insn for single- and double-precision
15205 vector extract exponent operation.
15206 (xvxsig<VSs>): New insn for single- and double-precision
15207 vector extract significand operation.
15208 (xviexp<VSs>): New insn for single- and double-precision
15209 vector insert exponent operation.
15210 (xvtstdc<VSs>): New insn for single- and double-precision
15211 vector test data class operation.
15212 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
15213 built-in functions to represent the Power9 binary floating-point
15214 support instructions.
15215
15216 2016-08-10 bin cheng <bin.cheng@arm.com>
15217
15218 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
15219
15220 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
15221 Renlin Li <renlin.li@arm.com>
15222 Bin Cheng <bin.cheng@arm.com>
15223
15224 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
15225 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
15226 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
15227 (aarch64_vcond_internal<mode><mode>): Delete pattern.
15228 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
15229 (vcond<v_cmp_result><mode>): Ditto.
15230 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
15231 (vcondu<mode><mode>): Ditto.
15232 (vcond<v_cmp_mixed><mode>): New pattern.
15233 (vcondu<mode><v_cmp_mixed>): New pattern.
15234 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
15235 of aarch64_vcond_internal.
15236
15237 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
15238 Renlin Li <renlin.li@arm.com>
15239 Bin Cheng <bin.cheng@arm.com>
15240
15241 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
15242 (vec_cmp<mode><v_cmp_result>): New pattern.
15243 (vec_cmpu<mode><mode>): New pattern.
15244 (vcond_mask_<mode><v_cmp_result>): New pattern.
15245
15246 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
15247
15248 PR tree-optimization/71734
15249 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
15250 REF_LOOP, invoke ref_indep_loop_p_1.
15251 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
15252 to ref_indep_loop_p.
15253 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
15254 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
15255 is inside LOOP, do not cache dpendence value for loops with
15256 non-zero SAFELEN.
15257 (ref_indep_loop_p_2): Delete function.
15258 (can_sm_ref_p): Pass LOOP as additional argument to
15259 ref_indep_loop_p.
15260
15261 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
15262
15263 PR target/72853
15264 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
15265 being an offsettable address.
15266
15267 2016-08-10 Martin Liska <mliska@suse.cz>
15268
15269 PR gcov-profile/58306
15270 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
15271 atomic variants of profile update functions.
15272
15273 2016-08-10 Martin Liska <mliska@suse.cz>
15274
15275 Cherry picked (and modified) from google-4_7 branch
15276 2012-12-26 Rong Xu <xur@google.com>
15277 * common.opt (fprofile-update): Add new flag.
15278 * coretypes.h: Define enum profile_update.
15279 * doc/invoke.texi: Document -fprofile-update.
15280 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
15281 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
15282 * tree-profile.c (gimple_init_edge_profiler): Generate
15283 also atomic profiler update.
15284 (gimple_gen_edge_profiler): Likewise.
15285
15286 2016-08-10 David Malcolm <dmalcolm@redhat.com>
15287
15288 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
15289 stack_usage_file to NULL after fclose calls.
15290
15291 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15292
15293 PR target/71873
15294 * reload.c (push_reload): Compute subreg_in_class for
15295 subregs of constants and plus expressions. Remove special
15296 handling of SYMBOL_REFs.
15297
15298 2016-08-10 Alan Modra <amodra@gmail.com>
15299
15300 PR target/71680
15301 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
15302 SImode for TARGET_E500_DOUBLE when given SImode.
15303
15304 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
15305
15306 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
15307 unused variable __O.
15308
15309 2016-08-09 Martin Liska <mliska@suse.cz>
15310
15311 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
15312 _gcov_reset to __gcov_reset.
15313 * doc/gcov-tool.texi: Fix typo.
15314
15315 2016-08-09 Martin Liska <mliska@suse.cz>
15316
15317 * value-prof.c (gimple_divmod_values_to_profile): Do not
15318 instrument MOD histogram if a value is not a SSA name.
15319
15320 2016-08-09 Martin Liska <mliska@suse.cz>
15321
15322 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
15323 values.
15324
15325 2016-08-09 Renlin Li <renlin.li@arm.com>
15326
15327 PR middle-end/64971
15328 * calls.c (prepare_call_address): Convert funexp to Pmode when
15329 necessary.
15330 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
15331 (sibcall_value): Likewise.
15332
15333 2016-08-09 Marek Polacek <polacek@redhat.com>
15334
15335 PR c/7652
15336 * cselib.c (cselib_expand_value_rtx_1): Add return.
15337 * gengtype.c (dbgprint_count_type_at): Likewise.
15338 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
15339 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
15340
15341 2016-08-09 Martin Jambor <mjambor@suse.cz>
15342
15343 PR ipa/71981
15344 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
15345 if instance is a MEM_REF.
15346
15347 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
15348
15349 PR target/72843
15350 * config/i386/i386.md (*movtf_internal): Use
15351 lra_in_progress || reload_completed instead of !can_create_pseudo_p
15352 in the insn constraint.
15353 (*movxf_internal): Ditto.
15354 (*movdf_internal): Ditto.
15355 (*movsf_internal): Ditto.
15356
15357 2016-08-09 Bin Cheng <bin.cheng@arm.com>
15358
15359 PR tree-optimization/72772
15360 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
15361 for expanded base.
15362
15363 2016-08-09 Bin Cheng <bin.cheng@arm.com>
15364
15365 PR tree-optimization/72772
15366 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
15367 parameter STOP.
15368 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
15369 parameter STOP and update calls. Move expand_simple_operations
15370 function call from here...
15371 (simplify_using_initial_conditions): ...to here. Delete parameter
15372 STOP.
15373 (tree_simplify_using_condition): Delete parameter STOP.
15374 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
15375 simplify_using_initial_conditions.
15376
15377 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
15378
15379 PR c/65345
15380 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
15381 Use create_tmp_var_raw instead of create_tmp_var.
15382
15383 2016-08-09 Richard Biener <rguenther@suse.de>
15384
15385 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
15386 Treat same SSA names related.
15387
15388 2016-08-09 Jakub Jelinek <jakub@redhat.com>
15389
15390 PR tree-optimization/72824
15391 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
15392 real_zerop is not negative.
15393
15394 2016-08-09 Richard Biener <rguenther@suse.de>
15395
15396 PR tree-optimization/71802
15397 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
15398 all merge opportunities with the predecessor.
15399
15400 2016-08-09 Richard Biener <rguenther@suse.de>
15401
15402 PR ipa/68273
15403 * ipa-prop.c (ipa_modify_formal_parameters): Build
15404 parameter types with natural alignment also for the
15405 over-aligned case.
15406
15407 2016-08-08 Andi Kleen <ak@linux.intel.com>
15408
15409 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
15410
15411 2016-08-08 David Malcolm <dmalcolm@redhat.com>
15412
15413 PR c/64955
15414 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
15415 do-nothing langhook.
15416 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
15417 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
15418 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
15419 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
15420
15421 2016-08-08 David Malcolm <dmalcolm@redhat.com>
15422
15423 PR bootstrap/72844
15424 * input.c: Ensure that HAVE_ICONV is defined.
15425
15426 2016-08-08 Jakub Jelinek <jakub@redhat.com>
15427
15428 PR middle-end/72781
15429 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
15430 private vars for lastprivate and for linear iterator.
15431
15432 PR middle-end/68762
15433 * omp-simd-clone.c: Include varasm.h.
15434 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
15435 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
15436 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
15437 update function name.
15438
15439 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15440
15441 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
15442 (avr_diagnose_devicespecs_error): Remove.
15443 (avr_devicespecs_file): Remove composing absolute path for specfile
15444 and its verbose info. Remove conditions to check specs-file,
15445
15446 2016-08-08 Jakub Jelinek <jakub@redhat.com>
15447
15448 PR rtl-optimization/72821
15449 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
15450 just return false for them.
15451
15452 2016-08-08 Alan Modra <amodra@gmail.com>
15453
15454 PR target/72771
15455 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
15456 toc refs created during reload. Update function comment.
15457
15458 2016-08-08 Alan Modra <amodra@gmail.com>
15459
15460 PR target/72802
15461 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
15462 alternatives. Put loads first, then stores, and reg/reg moves
15463 within same class later. Delete attr length.
15464
15465 2016-08-08 Alan Modra <amodra@gmail.com>
15466
15467 PR target/72802
15468 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
15469 (mem_operand_ds_form): New predicate.
15470 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
15471 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
15472 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
15473 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
15474 (extendsfdf2_fpr): Replace o constraint with wY.
15475
15476 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
15477
15478 * tree-ssa-threadbackward.c: Include tree-inline.h
15479 (profitable_jump_thread_path): Use estimate_num_insns to estimate
15480 size of copied block; for cold paths reduce duplication.
15481 (find_jump_threads_backwards): Remove redundant tests.
15482 (pass_thread_jumps::gate): Enable for -Os.
15483
15484 2016-08-07 Jakub Jelinek <jakub@redhat.com>
15485
15486 PR c/72816
15487 * stor-layout.c (layout_decl): Fix up formatting.
15488 (relayout_decl): Allow DECL to be FIELD_DECL.
15489
15490 2016-08-07 Alan Modra <amodra@gmail.com>
15491
15492 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
15493
15494 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
15495
15496 * data-streamer-in.c (streamer_read_wide_int): New.
15497 (streamer_read_widest_int): Renamed function.
15498 * data-streamer-out.c (streamer_write_wide_int): New
15499 (streamer_write_widest_int): Renamed function.
15500 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
15501 data-stream-in.c.
15502 (input_cfg): Call renamed function.
15503 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
15504 data-stream-out.c.
15505 (output_cfg): Call renamed function.
15506 * data-streamer.h: Add declarations.
15507
15508 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15509
15510 * tree-ssa-ccp.c (extend_mask): New param sgn.
15511 Remove ORing with wi::mask.
15512 (get_default_value): Adjust call to extend_mask to pass sign.
15513 (evaluate_stmt): Likewise.
15514
15515 2016-08-06 Jakub Jelinek <jakub@redhat.com>
15516
15517 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
15518 INT64_MAX.
15519
15520 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15521
15522 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
15523 transform if operand's type is pointer to function or method.
15524
15525 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
15526
15527 PR tree-optimization/18046
15528 * tree-ssa-threadedge.c: Include cfganal.h.
15529 (simplify_control_statement_condition): If simplifying a
15530 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
15531 with the dominating ASSERT_EXPR before handing it off to VRP.
15532 Mention that a CASE_LABEL_EXPR may be returned.
15533 (thread_around_empty_blocks): Adjust to handle
15534 simplify_control_statement_condition() returning a
15535 CASE_LABEL_EXPR.
15536 (thread_through_normal_block): Likewise.
15537 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
15538 a switch statement by trying to determine which case label
15539 will be taken.
15540
15541 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
15542
15543 PR rtl-optimization/69847
15544 * lra-constraints.c (process_invariant_for_inheritance): Save
15545 pattern instead of src.
15546 (remove_inheritance_pseudos): Use the pattern. Add assert.
15547
15548 2016-08-05 David Malcolm <dmalcolm@redhat.com>
15549
15550 * input.c (string_concat::string_concat): New constructor.
15551 (string_concat_db::string_concat_db): New constructor.
15552 (string_concat_db::record_string_concatenation): New method.
15553 (string_concat_db::get_string_concatenation): New method.
15554 (string_concat_db::get_key_loc): New method.
15555 (class auto_cpp_string_vec): New class.
15556 (get_substring_ranges_for_loc): New function.
15557 (get_source_range_for_substring): New function.
15558 (get_num_source_ranges_for_substring): New function.
15559 (class selftest::lexer_test_options): New class.
15560 (struct selftest::lexer_test): New struct.
15561 (class selftest::ebcdic_execution_charset): New class.
15562 (selftest::ebcdic_execution_charset::s_singleton): New variable.
15563 (selftest::lexer_test::lexer_test): New constructor.
15564 (selftest::lexer_test::~lexer_test): New destructor.
15565 (selftest::lexer_test::get_token): New method.
15566 (selftest::assert_char_at_range): New function.
15567 (ASSERT_CHAR_AT_RANGE): New macro.
15568 (selftest::assert_num_substring_ranges): New function.
15569 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
15570 (selftest::assert_has_no_substring_ranges): New function.
15571 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
15572 (selftest::test_lexer_string_locations_simple): New function.
15573 (selftest::test_lexer_string_locations_ebcdic): New function.
15574 (selftest::test_lexer_string_locations_hex): New function.
15575 (selftest::test_lexer_string_locations_oct): New function.
15576 (selftest::test_lexer_string_locations_letter_escape_1): New function.
15577 (selftest::test_lexer_string_locations_letter_escape_2): New function.
15578 (selftest::test_lexer_string_locations_ucn4): New function.
15579 (selftest::test_lexer_string_locations_ucn8): New function.
15580 (selftest::uint32_from_big_endian): New function.
15581 (selftest::test_lexer_string_locations_wide_string): New function.
15582 (selftest::uint16_from_big_endian): New function.
15583 (selftest::test_lexer_string_locations_string16): New function.
15584 (selftest::test_lexer_string_locations_string32): New function.
15585 (selftest::test_lexer_string_locations_u8): New function.
15586 (selftest::test_lexer_string_locations_utf8_source): New function.
15587 (selftest::test_lexer_string_locations_concatenation_1): New
15588 function.
15589 (selftest::test_lexer_string_locations_concatenation_2): New
15590 function.
15591 (selftest::test_lexer_string_locations_concatenation_3): New
15592 function.
15593 (selftest::test_lexer_string_locations_macro): New function.
15594 (selftest::test_lexer_string_locations_stringified_macro_argument):
15595 New function.
15596 (selftest::test_lexer_string_locations_non_string): New function.
15597 (selftest::test_lexer_string_locations_long_line): New function.
15598 (selftest::test_lexer_char_constants): New function.
15599 (selftest::input_c_tests): Call the new test functions once per
15600 case within the line_table test matrix.
15601 * input.h (struct string_concat): New struct.
15602 (struct location_hash): New struct.
15603 (class string_concat_db): New class.
15604 * substring-locations.h: New header.
15605
15606 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
15607
15608 PR tree-optimization/72810
15609 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
15610 the type of the case labels when truncating.
15611
15612 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
15613
15614 PR Target/72819
15615 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
15616 (aarch64_fp16_ptr_type_node): Likewise.
15617 * config/aarch64/aarch64-simd-builtins.c
15618 (aarch64_fp16_ptr_type_node): Define.
15619 (aarch64_init_fp16_types): New, refactored out of...
15620 (aarch64_init_builtins): ...here, update to call
15621 aarch64_init_fp16_types.
15622 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
15623 HFmode.
15624 (aapcs_vfp_sub_candidate): Likewise.
15625
15626 2016-08-05 Martin Liska <mliska@suse.cz>
15627 Joshua Cranmer <Pidgeot18@gmail.com>
15628
15629 * gcov.c (line_t::has_block): New function.
15630 (enum loop_type): New enum.
15631 (handle_cycle): New function.
15632 (unblock): Likewise.
15633 (circuit): Likewise.
15634 (get_cycles_count): Likewise.
15635 (accumulate_line_counts): Use new loop detection algorithm.
15636
15637 2016-08-05 Martin Liska <mliska@suse.cz>
15638
15639 * gcov.c (output_intermediate_file): Rename
15640 function_info::line_next to next_file_fn.
15641 (process_file): Likewise.
15642 (read_graph_file): Likewise.
15643 (accumulate_line_counts): Likewise.
15644 (output_lines): Likewise.
15645
15646 2016-08-05 Richard Biener <rguenther@suse.de>
15647
15648 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
15649 restriction on threading to a loop header.
15650
15651 2016-08-05 Richard Biener <rguenther@suse.de>
15652
15653 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
15654 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
15655 adjust loop info accordingly.
15656
15657 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
15658
15659 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
15660 before folding call to __builtin_constant_p with parameters to false.
15661
15662 2016-08-05 Alan Modra <amodra@gmail.com>
15663
15664 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
15665 code accidentally committed 2016-05-02 providing class when given
15666 NO_REGS.
15667
15668 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
15669
15670 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
15671 the case label ranges that partially overlap with OP's value
15672 range.
15673
15674 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
15675
15676 PR target/72805
15677 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
15678 Cast builtin function result to __mmask16 instead of __mmask8.
15679 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
15680 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
15681 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
15682
15683 2016-08-04 David Malcolm <dmalcolm@redhat.com>
15684
15685 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
15686 (ASSERT_TRUE_AT): New macro.
15687 (ASSERT_FALSE): Reimplement in terms of...
15688 (ASSERT_FALSE_AT): New macro.
15689 (ASSERT_STREQ_AT): Fix typo in comment.
15690
15691 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
15692
15693 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
15694 labels are exhaustive, designate the label with the widest
15695 range to be the default label.
15696
15697 2016-08-04 Andrew Pinski <apinski@cavium.com>
15698
15699 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
15700 (thunderx_tunings): Use thunderx_vector_cost instead of
15701 generic_vector_cost.
15702
15703 2016-08-04 Martin Liska <mliska@suse.cz>
15704
15705 * gcov.c (main): Fix GNU coding style.
15706 (output_intermediate_file): Likewise.
15707 (process_file): Likewise.
15708 (generate_results): Likewise.
15709 (release_structures): Likewise.
15710 (create_file_names): Likewise.
15711 (find_source): Likewise.
15712 (read_graph_file): Likewise.
15713 (find_exception_blocks): Likewise.
15714 (canonicalize_name): Likewise.
15715 (make_gcov_file_name): Likewise.
15716 (mangle_name): Likewise.
15717 (accumulate_line_counts): Likewise.
15718 (output_branch_count): Likewise.
15719 (read_line): Likewise.
15720
15721 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
15722
15723 PR rtl-optimization/71779
15724 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
15725 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
15726 or if it was truncated.
15727
15728 PR rtl-optimization/70903
15729 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
15730
15731 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
15732
15733 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
15734 accessing SSA_NAME_PTR_INFO.
15735
15736 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
15737
15738 PR 70677
15739 * common/config/avr/avr-common.c (avr_option_optimization_table)
15740 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
15741
15742 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
15743
15744 PR 55181
15745 * config/avr/avr.md: New pattern to work around do_store_flag
15746 generating shift instructions for bit extractions.
15747
15748 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
15749
15750 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
15751 BITMAP_ALLOC.
15752 (add_equivalence): Likewise.
15753 (get_value_range): Allocate value range with vrp_value_range_pool.
15754 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
15755 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
15756
15757 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
15758
15759 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
15760 the default for the rs6000 port.
15761
15762 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15763
15764 PR middle-end/71876
15765 * calls.c (special_function_p): Remove special handling of
15766 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
15767 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
15768 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
15769
15770 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
15771
15772 PR middle-end/72778
15773 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
15774 Don't stop on regular insns.
15775
15776 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
15777
15778 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
15779 size to DImode boundary.
15780 (nvptx_propagate): Likewise.
15781
15782 2016-08-03 Alan Modra <amodra@gmail.com>
15783
15784 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
15785 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
15786 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
15787 from -mefficient-unaligned-vector. Note that this affects fp too.
15788
15789 2016-08-03 Alan Modra <amodra@gmail.com>
15790
15791 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
15792 cost more.
15793
15794 2016-08-03 Alan Modra <amodra@gmail.com>
15795
15796 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
15797 to a reg. Localize vars.
15798
15799 2016-08-03 Alan Modra <amodra@gmail.com>
15800
15801 * config/rs6000/rs6000.opt: Remove negatives from help strings
15802 and comments.
15803
15804 2016-08-03 Alan Modra <amodra@gmail.com>
15805
15806 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
15807 Delete duplicated code.
15808
15809 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
15810
15811 PR middle-end/72778
15812 * lra-spills.c (regno_in_use_p): New.
15813 (lra_final_code_change): Use it.
15814
15815 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
15816
15817 PR rtl-optimization/69847
15818 * lra-int.h (struct lra-reg): Use restore_rtx instead of
15819 restore_regno.
15820 (lra_rtx_hash): New.
15821 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
15822 of restore_regno.
15823 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
15824 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
15825 * lra-spills.c (lra_final_code_change): Don't delete insn when the
15826 next insn is USE with the same reg as the current insn source.
15827 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
15828 of restore_regno.
15829 (lra_constraints_init): Call initiate_invariants.
15830 (lra_constraints_finish): Call finish_invariants.
15831 (struct invariant, invariant_t, invariant_ptr_t): New.
15832 (const_invariant_ptr_t, invariants, invariants_pool): New.
15833 (invariant_table, invariant_hash, invariant_eq_p): New.
15834 (insert_invariant, initiate_invariants, finish_invariants): New.
15835 (clear_invariants, invalid_invariant_regs): New.
15836 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
15837 instead of restore_regno.
15838 (invariant_p, process_invariant_for_inheritance): New.
15839 (inherit_in_ebb): Implement invariant inheritance.
15840 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
15841 (remove_inheritance_pseudos): Implement undoing invariant
15842 inheritance.
15843 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
15844 instead of restore_regno.
15845 * lra-assigns.c (regno_live_length): New.
15846 (reload_pseudo_compare_func): Use regno_live_length.
15847 (assign_by_spills): Use restore_rtx instead of restore_regno.
15848 (lra_assign): Ditto. Initiate regno_live_length.
15849
15850 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
15851
15852 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
15853 __builtin_aarch64_fmindf.
15854
15855 2016-08-02 Bin Cheng <bin.cheng@arm.com>
15856
15857 PR tree-optimization/34114
15858 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
15859 information for more control IVs.
15860
15861 2016-08-02 Bin Cheng <bin.cheng@arm.com>
15862
15863 PR tree-optimization/34114
15864 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
15865 PLUS_EXPR case. Handle SSA_NAME case.
15866
15867 2016-08-02 Tamar Christina <tamar.christina@arm.com>
15868
15869 * config/aarch64/aarch64-simd-builtins.def
15870 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
15871 (__builtin_aarch64_fmaxdf): Likewise.
15872 (__builtin_aarch64_smin_nandf): Likewise.
15873 (__builtin_aarch64_smax_nandf): Likewise.
15874 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
15875 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
15876 (<fmaxmin><mode>3): ...this.
15877 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
15878 (vminnm_f64): Likewise.
15879 (vmin_f64): Likewise.
15880 (vmax_f64): Likewise.
15881 * config/aarch64/iterators.md (FMAXMIN): Merge with...
15882 (FMAXMIN_UNS): ...this.
15883 (fmaxmin): Merged with
15884 (fmaxmin_op): ...this...
15885 (maxmin_uns_op): ...in to this.
15886
15887 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15888
15889 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15890 Add support for vec_extract on vector float, vector int, vector
15891 short, and vector char vector types.
15892 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15893 vector float, vector int, vector short, and vector char
15894 optimizations on 64-bit ISA 2.07 systems for both constant and
15895 variable element numbers.
15896 (rs6000_split_vec_extract_var): Likewise.
15897 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
15898 Altivec registers on ISA 2.07 and above.
15899 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
15900 which never was matched due to the split occuring before register
15901 allocation (and the code would not have worked on little endian
15902 systems if it did match). Allow extracts to go to the Altivec
15903 registers if ISA 2.07 (power8). Change from using "" around the
15904 C++ code to using {}'s.
15905 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
15906 vec_extracts when the vector is in memory.
15907 (vsx_extract_v4sf_var): New insn to optimize vector float
15908 vec_extracts when the element number is variable on 64-bit ISA
15909 2.07 systems.
15910 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
15911 for 64-bit ISA 2.07 as well as ISA 3.0.
15912 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
15913 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
15914 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
15915 optimize vector int, vector short, and vector char vec_extracts
15916 when the vector is in memory.
15917 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
15918 optimize vector int, vector short, and vector char vec_extracts
15919 when the element number is variable.
15920
15921 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
15922
15923 PR target/71948
15924 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
15925 does not overlap with other symbol flags.
15926
15927 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
15928
15929 * config/aarch64/aarch64.h (aarch64_frame):
15930 Remove padding0 and hardfp_offset. Add locals_offset,
15931 initial_adjust, callee_adjust, callee_offset and final_adjust.
15932 * config/aarch64/aarch64.c (aarch64_layout_frame):
15933 Remove unused padding0 and hardfp_offset initializations.
15934 Choose frame layout and set frame variables accordingly.
15935 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
15936 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
15937 (aarch64_pop_regs): Likewise.
15938 (aarch64_expand_prologue): Remove all decision code, just emit
15939 prolog according to frame variables.
15940 (aarch64_expand_epilogue): Remove all decision code, just emit
15941 epilog according to frame variables.
15942 (aarch64_initial_elimination_offset): Use offset to local/arg area.
15943
15944 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
15945
15946 PR target/72748
15947 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
15948 fix_debug_reg_uses after changing source register mode to
15949 V1TImode if source register is undefined.
15950
15951 2015-08-01 Alan Hayward <alan.hayward@arm.com>
15952
15953 PR tree-optimization/71818
15954 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
15955 with non invariant evolutions
15956
15957 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
15958
15959 PR target/72767
15960 * config/avr/avr.md (length) [branch]: Correct insn length
15961 attribute for forward branches.
15962
15963 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
15964
15965 * doc/extend.texi (AVR Built-in Functions): Document
15966 __builtin_avr_nops.
15967 * config/avr/builtins.def (NOPS): New.
15968 * config/avr/avr.c (avr_expand_nops): New static function.
15969 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
15970
15971 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15972
15973 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
15974 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
15975 addresses.
15976
15977 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
15978
15979 * config/aarch64/aarch64.c (vulcan_tunings): Update
15980 vulcan L1 cache_line_size.
15981
15982 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
15983
15984 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
15985 function that takes a vector memory address, a hard register, an
15986 element number and a temporary base register, and recreates an
15987 address that points to the appropriate element within the vector.
15988 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
15989 (rs6000_split_vec_extract_var): Add support for the target of a
15990 vec_extract with variable element number being a scalar memory
15991 location.
15992 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
15993 swappable.
15994 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
15995 vsx_extract_<mode>_load insn with a new insn that optimizes
15996 storing either element to a memory location, using scratch
15997 registers to pick apart the vector and reconstruct the address.
15998 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
15999 (vsx_extract_<mode>_store): Rework alternatives to more correctly
16000 support Altivec registers. Add support for ISA 3.0 Altivec d-form
16001 store instruction.
16002 (vsx_extract_<mode>_var): Add support for extracting a variable
16003 element number from memory.
16004
16005 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
16006
16007 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
16008 when testing for compares against constants of the form 0xabab.
16009
16010 2016-07-29 Bin Cheng <bin.cheng@arm.com>
16011
16012 PR tree-optimization/57558
16013 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
16014 function.
16015 (vect_loop_versioning): Support versioning with niter assumptions.
16016 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
16017 (vect_get_loop_niters): New parameter. Reimplement to support
16018 assumptions in loop niter info.
16019 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
16020 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
16021 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
16022 Support loop versioning for niters.
16023 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
16024 (vect_free_loop_info_assumptions): New function.
16025 (vectorize_loops): Free loop niter info for loops with flag
16026 LOOP_F_ASSUMPTIONS set if vectorization failed.
16027 * tree-vectorizer.h (struct _loop_vec_info): New field
16028 num_iters_assumptions.
16029 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
16030 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
16031 (LOOP_REQUIRES_VERSIONING): New macro.
16032 (vect_free_loop_info_assumptions): New decl.
16033
16034 2016-07-29 Bin Cheng <bin.cheng@arm.com>
16035
16036 * cfgloop.h (struct loop): New field constraints.
16037 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
16038 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
16039 functions.
16040 * cfgloop.c (alloc_loop): Initialize new field.
16041 * cfgloopmanip.c (copy_loop_info): Copy constraints.
16042 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
16043 Adjust niter analysis wrto loop constraints.
16044 * doc/loop.texi (@node Number of iterations): Add description for loop
16045 constraints.
16046
16047 2016-07-29 Marek Polacek <polacek@redhat.com>
16048
16049 PR c/7652
16050 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
16051 (ix86_expand_round_builtin): Likewise.
16052
16053 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
16054 Georg-Johann Lay <avr@gjlay.de>
16055
16056 PR rtl-optimization/71976
16057 * combine.c (get_last_value): Return 0 if the argument for which
16058 the function is called has a wider mode than the recorded value.
16059
16060 2016-07-29 Marek Polacek <polacek@redhat.com>
16061
16062 PR c/7652
16063 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
16064 (altivec_expand_st_builtin): Likewise.
16065
16066 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
16067
16068 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
16069 introduced in r238381.
16070
16071 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
16072
16073 PR middle-end/68217
16074 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
16075 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
16076
16077 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
16078
16079 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
16080 New declaration.
16081 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16082 Add support for vec_extract of vector double or vector long having
16083 a variable element number on 64-bit ISA 2.07 systems or newer.
16084 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
16085 Likewise.
16086 (rs6000_split_vec_extract_var): New function to split a
16087 vec_extract built-in function with variable element number.
16088 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
16089 swappable.
16090 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
16091 (UNSPEC_VSX_EXTRACT): Likewise.
16092 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
16093 direct move instructions to be generated on 64-bit ISA 2.07
16094 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
16095 instruction.
16096 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
16097 arguments for vec_extract variable element.
16098 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
16099 vec_extract with variable element on V2DFmode and V2DImode
16100 vectors.
16101 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
16102 -mupper-regs-df requirement, since it isn't needed.
16103 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
16104 do direct moves on 64-bit systems, which allows optimization of
16105 vec_extract on 64-bit ISA 2.07 systems and newer.
16106
16107 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
16108 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
16109
16110 * config/aarch64/aarch64.md
16111 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
16112 statement and type.
16113 (<optab>qihi2_aarch64): Likewise, and split into two.
16114 (extendqihi2_aarch64): New.
16115 (zero_extendqihi2_aarch64): New.
16116 * config/aarch64/iterators.md (ldrxt): Remove.
16117 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
16118 uxtb/uxth.
16119
16120 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
16121
16122 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
16123
16124 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
16125
16126 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
16127 (aarch64_push_reg): New function to push 1 or 2 registers.
16128 (aarch64_pop_reg): New function to pop 1 or 2 registers.
16129 (aarch64_expand_prologue): Use aarch64_push_regs.
16130 (aarch64_expand_epilogue): Use aarch64_pop_regs.
16131
16132 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
16133
16134 PR tree-optimization/71734
16135 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
16136 attribute instead of REF_LOOP and use it.
16137 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
16138 set it for Loops having non-zero safelen attribute.
16139 (ref_indep_loop_p): Pass zero as initial value for safelen.
16140
16141 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
16142
16143 PR middle-end/72657
16144 PR target/72683
16145 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
16146 call using chkp_gimple_call_builtin_p.
16147 (chkp_copy_bounds_for_assign): Likewise.
16148
16149 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16150
16151 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
16152 * config/arm/arm-protos.h (struct tune_params): Likewise.
16153 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16154 (cortex_a9_sched_adjust_cost): Likewise.
16155 (fa726te_sched_adjust_cost): Likewise.
16156 (arm_adjust_cost): Likewise.
16157 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
16158 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
16159 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
16160 * config/i386/i386.c (ix86_adjust_cost): Likewise.
16161 * config/ia64/ia64.c: Likewise.
16162 * config/m68k/m68k.c: Likewise.
16163 * config/mep/mep.c (mep_adjust_cost): Likewise.
16164 * config/microblaze/microblaze.c (microblaze_adjust_cost):
16165 * Likewise.
16166 * config/mips/mips.c (mips_adjust_cost): Likewise.
16167 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
16168 * Likewise.
16169 * config/pa/pa.c (pa_adjust_cost): Likewise.
16170 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
16171 (rs6000_debug_adjust_cost): Likewise.
16172 * config/sh/sh.c (sh_adjust_cost): Likewise.
16173 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
16174 (hypersparc_adjust_cost): Likewise.
16175 (sparc_adjust_cost): Likewise.
16176 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
16177 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
16178 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
16179 * Likewise.
16180 * config/visium/visium.c (visium_adjust_cost): Likewise.
16181 * doc/tm.texi: Regenerate.
16182 * haifa-sched.c (dep_cost_1): Adjust.
16183 * target.def: Merge adjust_cost and adjust_cost_2.
16184
16185 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16186
16187 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
16188
16189 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16190
16191 * store-motion.c (struct st_expr): Make pattern_regs a vector.
16192 (extract_mentioned_regs): Append to a vector instead of
16193 returning a rtx_expr_list.
16194 (st_expr_entry): Adjust.
16195 (free_st_expr_entry): Likewise.
16196 (store_ops_ok): Likewise.
16197 (store_killed_in_insn): Likewise.
16198 (find_moveable_store): Likewise.
16199
16200 2016-07-28 Martin Liska <mliska@suse.cz>
16201
16202 PR gcov-profile/68025
16203 * tree-profile.c (tree_profiling): Respect
16204 no_profile_instrument_function attribute.
16205 * doc/extend.texi: Document no_profile_instrument_function
16206 attribute.
16207
16208 2016-07-28 Martin Liska <mliska@suse.cz>
16209
16210 PR rtl-optimization/70944
16211 * combine.c (make_compound_operation):
16212 Do not allow make_compound_operation for vector mode
16213
16214 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
16215
16216 PR middle-end/71994
16217 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
16218 before calling get_ops.
16219
16220 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16221
16222 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
16223 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
16224 (BITS_PER_UNIT_LOG): Remove.
16225 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
16226 * expr.c (expand_assignment): Likewise.
16227 * stor-layout.c (initialize_sizetypes): Likewise.
16228
16229 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16230
16231 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
16232 signature of rs6000_expand_vector_extract so that the element
16233 number is a RTX instead of a constant integer.
16234 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
16235 Likewise.
16236 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
16237 (altivec_expand_vec_ext_builtin): Likewise.
16238 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
16239 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
16240 MFVSRLD instruction.
16241
16242 2016-07-27 David Malcolm <dmalcolm@redhat.com>
16243
16244 * input.c (get_pure_location): Move here from tree.c.
16245 (make_location): Likewise. Add header comment.
16246 (selftest::test_accessing_ordinary_linemaps): Verify
16247 pure_location_p, make_location, get_location_from_adhoc_loc and
16248 get_range_from_loc.
16249 * input.h (get_pure_location): Move declaration here from tree.h.
16250 (get_finish): Likewise for inline function.
16251 (make_location): Likewise for declaration.
16252 * tree.c (get_pure_location): Move to input.c.
16253 (make_location): Likewise.
16254 * tree.h (get_pure_location): Move declaration to tree.h.
16255 (get_finish): Likewise for inline function.
16256 (make_location): Likewise for declaration.
16257
16258 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16259
16260 PR middle-end/71078
16261 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
16262
16263 2016-07-27 David Malcolm <dmalcolm@redhat.com>
16264
16265 * system.h (STATIC_ASSERT): Use static_assert if building
16266 with C++11 onwards.
16267
16268 2016-07-27 Richard Biener <rguenther@suse.de>
16269
16270 PR tree-optimization/72517
16271 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
16272 Revert change to not compute read-read dependences.
16273
16274 2016-07-27 Richard Biener <rguenther@suse.de>
16275
16276 * predict.c (set_even_probabilities): Make nedges unsigned.
16277
16278 2016-07-27 Martin Liska <mliska@suse.cz>
16279
16280 * predict.c (set_even_probabilities): Handle unlikely edges.
16281 (combine_predictions_for_bb): Likewise.
16282
16283 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16284
16285 PR target/71869
16286 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
16287 __float128 support when we don't have hardware support, so that
16288 the IEEE built-in functions like isgreater, first call __unordkf3
16289 to make sure neither operand is a NaN, and if both operands are
16290 ordered, do the normal comparison.
16291
16292 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
16293
16294 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
16295 name.
16296 (extract_code_and_val_from_cond_with_ops): Verify that name is
16297 either cond_op0 or cond_op1.
16298
16299 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
16300
16301 PR tree-optimization/18046
16302 * genmodes.c (emit_mode_size_inline): Emit an assert that
16303 verifies that mode is a valid array index.
16304 (emit_mode_nuinits_inline): Likewise.
16305 (emit_mode_inner_inline): Likewise.
16306 (emit_mode_unit_size_inline): Likewise.
16307 (emit_mode_unit_precision_inline): Likewise.
16308 * tree-vrp.c: Include params.h.
16309 (find_switch_asserts): Register edge assertions for the default
16310 label which correspond to the anti-ranges of each case label.
16311 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
16312 * doc/invoke.texi: Document it.
16313
16314 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16315
16316 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
16317 and unnecessary call to gimple_bb.
16318
16319 2016-07-26 Richard Biener <rguenther@suse.de>
16320
16321 PR rtl-optimization/71984
16322 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
16323 for VOIDmode.
16324
16325 2016-07-26 Richard Biener <rguenther@suse.de>
16326
16327 PR middle-end/72517
16328 * expmed.c (extract_bit_field_1): Constrain the vector mode
16329 with element size matching the extraction mode size when
16330 choosing a better vector mode to do the extraction from.
16331
16332 2016-07-26 Richard Biener <rguenther@suse.de>
16333 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16334
16335 PR middle-end/70920
16336 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
16337 pattern.
16338
16339 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16340
16341 * tree-ssa-structalias.c (struct scc_info): Change types of
16342 members to auto_sbitmap and auto_vec.
16343 (scc_info::scc_info): New constructor.
16344 (scc_info::~scc_info): New destructor.
16345 (init_scc_info): Remove.
16346 (free_scc_info): Remove.
16347 (find_indirect_cycles): Adjust.
16348 (perform_var_substitution): Likewise.
16349 (free_var_substitution_info): Likewise.
16350
16351 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16352
16353 * tree-outof-ssa.c (struct elim_graph): Change type of members
16354 to auto_vec and auto_sbitmap.
16355 (elim_graph::elim_graph): New constructor.
16356 (delete_elim_graph): Remove.
16357 (expand_phi_nodes): Adjust.
16358
16359 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16360
16361 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
16362 (new_elim_graph): Adjust.
16363 (clear_elim_graph): Likewise.
16364 (delete_elim_graph): Likewise.
16365 (elim_graph_size): Likewise.
16366 (elim_graph_add_node): Likewise.
16367 (elim_graph_add_edge): Likewise.
16368 (elim_graph_remove_succ_edge): Likewise.
16369 (eliminate_name): Likewise.
16370 (eliminate_build): Likewise.
16371 (elim_forward): Likewise.
16372 (elim_unvisited_predecessor): Likewise.
16373 (elim_backward): Likewise.
16374 (elim_create): Likewise.
16375 (eliminate_phi): Likewise.
16376 (expand_phi_nodes): Likewise.
16377
16378 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16379
16380 * bt-load.c (compute_out): Use auto_sbitmap class.
16381 (link_btr_uses): Likewise.
16382 * cfganal.c (mark_dfs_back_edges): Likewise.
16383 (post_order_compute): Likewise.
16384 (inverted_post_order_compute): Likewise.
16385 (pre_and_rev_post_order_compute_fn): Likewise.
16386 (single_pred_before_succ_order): Likewise.
16387 * cfgexpand.c (pass_expand::execute): Likewise.
16388 * cfgloop.c (verify_loop_structure): Likewise.
16389 * cfgloopmanip.c (fix_bb_placements): Likewise.
16390 (remove_path): Likewise.
16391 (update_dominators_in_loop): Likewise.
16392 * cfgrtl.c (break_superblocks): Likewise.
16393 * ddg.c (check_sccs): Likewise.
16394 (create_ddg_all_sccs): Likewise.
16395 * df-core.c (df_worklist_dataflow): Likewise.
16396 * dse.c (dse_step3): Likewise.
16397 * except.c (eh_region_outermost): Likewise.
16398 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16399 * gcse.c (prune_expressions): Likewise.
16400 (prune_insertions_deletions): Likewise.
16401 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
16402 * graph.c (draw_cfg_nodes_no_loops): Likewise.
16403 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
16404 * lcm.c (compute_earliest): Likewise.
16405 (compute_farthest): Likewise.
16406 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
16407 (unroll_loop_runtime_iterations): Likewise.
16408 (unroll_loop_stupid): Likewise.
16409 * lower-subreg.c (decompose_multiword_subregs): Likewise.
16410 * lra-lives.c: Likewise.
16411 * lra.c (lra): Likewise.
16412 * modulo-sched.c (schedule_reg_moves): Likewise.
16413 (optimize_sc): Likewise.
16414 (get_sched_window): Likewise.
16415 (sms_schedule_by_order): Likewise.
16416 (check_nodes_order): Likewise.
16417 (order_nodes_of_sccs): Likewise.
16418 (order_nodes_in_scc): Likewise.
16419 * recog.c (split_all_insns): Likewise.
16420 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
16421 * reload1.c (reload): Likewise.
16422 * sched-rgn.c (haifa_find_rgns): Likewise.
16423 (split_edges): Likewise.
16424 (compute_trg_info): Likewise.
16425 * sel-sched.c (init_seqno): Likewise.
16426 * store-motion.c (remove_reachable_equiv_notes): Likewise.
16427 * tree-into-ssa.c (update_ssa): Likewise.
16428 * tree-ssa-live.c (live_worklist): Likewise.
16429 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
16430 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
16431 * Likewise.
16432 (try_peel_loop): Likewise.
16433 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
16434 * Likewise.
16435 * tree-ssa-pre.c (compute_antic): Likewise.
16436 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
16437 * tree-stdarg.c (reachable_at_most_once): Likewise.
16438 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
16439 * var-tracking.c (vt_find_locations): Likewise.
16440
16441 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16442
16443 * sbitmap.h (auto_sbitmap): New class.
16444
16445 2016-07-26 Alan Modra <amodra@gmail.com>
16446
16447 PR target/72103
16448 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
16449 sri->t_icode.
16450
16451 2016-07-25 David Malcolm <dmalcolm@redhat.com>
16452
16453 * input.c (selftest::temp_source_file::temp_source_file): Fix
16454 missing "%s" in fprintf.
16455
16456 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
16457
16458 PR middle-end/71732
16459 * cselib.c (cselib_process_insn): Invalidate argument slots for
16460 const/pure calls.
16461
16462 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16463
16464 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
16465 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
16466 vmulxh_lane_f16, vmulxh_laneq_f16): New.
16467
16468 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16469
16470 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16471 * config/aarch64/aarch64.md (fma, fnma): Support HF.
16472 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
16473
16474 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16475
16476 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16477 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
16478 New.
16479 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
16480 (add<mode>3): Likewise.
16481 (sub<mode>3): Likewise.
16482 (mul<mode>3): Likewise.
16483 (div<mode>3): Likewise.
16484 (*div<mode>3): Likewise.
16485 (<fmaxmin><mode>3): Extend to HF.
16486 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
16487 (fabd<mode>3): Likewise.
16488 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
16489 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
16490 (aarch64_fmulx<mode>): Likewise.
16491 (aarch64_fac<optab><mode>): Likewise.
16492 (aarch64_frecps<mode>): Likewise.
16493 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
16494 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
16495 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
16496 (VSDQ_HSDI): Support HI.
16497 (fcvt_target, FCVT_TARGET): Likewise.
16498 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
16499 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
16500 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
16501 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
16502 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
16503 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
16504 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
16505 vrsqrtsh_f16): New.
16506
16507 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16508
16509 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
16510 * config/aarch64/aarch64-builtins.c (hi_UP): New.
16511 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16512 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
16513 mode.
16514 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
16515 (aarch64_cm<optab><mode>): Likewise.
16516 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
16517 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
16518 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
16519 (sqrt<mode>2): Likewise.
16520 (*sqrt<mode>2): Likewise.
16521 (abs<mode>2): Likewise.
16522 (<optab><mode>hf2): New pattern for HF mode.
16523 (<optab>hihf2): Likewise.
16524 * config/aarch64/arm_neon.h: Include arm_fp16.h.
16525 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
16526 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
16527 Support HF mode.
16528 * config/aarch64/arm_fp16.h: New file.
16529 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
16530 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
16531 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
16532 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
16533 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
16534 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
16535 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
16536 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
16537 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
16538 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
16539 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
16540 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
16541 vsqrth_f16): New.
16542
16543 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16544
16545 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
16546 reduc_smin_scal_): Use VDQIF_F16.
16547 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
16548 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
16549 Use VHSDF.
16550 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
16551 * config/aarch64/iterators.md (VDQIF_F16): New.
16552 (vp): Support HF modes.
16553 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
16554 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
16555
16556 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16557
16558 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
16559 "*aarch64_mulx_elt_from_dup<mode>".
16560 (*aarch64_mul3_elt<mode>): Update schedule type.
16561 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
16562 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
16563 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
16564 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
16565 (f, fp): Support HF modes.
16566 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
16567 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
16568 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
16569 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
16570 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
16571 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
16572
16573 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16574
16575 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16576 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
16577 modes.
16578 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
16579 vfmsq_f16): New.
16580
16581 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16582
16583 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16584 * config/aarch64/aarch64-simd.md
16585 (aarch64_rsqrts<mode>): Extend to HF modes.
16586 (fabd<mode>3): Likewise.
16587 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
16588 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
16589 (aarch64_<maxmin_uns>p<mode>): Likewise.
16590 (<su><maxmin><mode>3): Likewise.
16591 (<maxmin_uns><mode>3): Likewise.
16592 (<fmaxmin><mode>3): Likewise.
16593 (aarch64_faddp<mode>): Likewise.
16594 (aarch64_fmulx<mode>): Likewise.
16595 (aarch64_frecps<mode>): Likewise.
16596 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
16597 (add<mode>3): Extend to HF modes.
16598 (sub<mode>3): Likewise.
16599 (mul<mode>3): Likewise.
16600 (div<mode>3): Likewise.
16601 (*div<mode>3): Likewise.
16602 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
16603 HF, V4HF and V8HF.
16604 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
16605 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
16606 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
16607 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
16608 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
16609 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
16610 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
16611 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
16612 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
16613 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
16614 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
16615 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
16616 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
16617 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
16618
16619 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16620
16621 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
16622 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16623 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
16624 (neg<mode>2): Likewise.
16625 (abs<mode>2): Likewise.
16626 (<frint_pattern><mode>2): Likewise.
16627 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
16628 (<optab><VDQF:mode><fcvt_target>2): Likewise.
16629 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
16630 (ftrunc<VDQF:mode>2): Likewise.
16631 (<optab><fcvt_target><VDQF:mode>2): Likewise.
16632 (sqrt<mode>2): Likewise.
16633 (*sqrt<mode>2): Likewise.
16634 (aarch64_frecpe<mode>): Likewise.
16635 (aarch64_cm<optab><mode>): Likewise.
16636 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
16637 HF, V4HF and V8HF.
16638 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
16639 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
16640 (stype): New.
16641 * config/aarch64/arm_neon.h (vdup_n_f16): New.
16642 (vdupq_n_f16): Likewise.
16643 (vld1_dup_f16): Use vdup_n_f16.
16644 (vld1q_dup_f16): Use vdupq_n_f16.
16645 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
16646 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
16647 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
16648 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
16649 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
16650 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
16651 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
16652 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
16653 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
16654 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
16655 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
16656 vsqrt_f16, vsqrtq_f16): New.
16657
16658 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16659
16660 * config/aarch64/aarch64-simd.md
16661 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
16662 (aarch64_ext<mode>): Likewise.
16663 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
16664 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
16665 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
16666 and V8HFmode.
16667 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
16668 float16x8_t.
16669 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
16670 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
16671 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
16672 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
16673 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
16674 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
16675 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
16676 New.
16677 (vmov_n_f16): Reimplement using vdup_n_f16.
16678 (vmovq_n_f16): Reimplement using vdupq_n_f16..
16679
16680 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16681
16682 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
16683 "frame_related_p". Generate CFA annotation when it's necessary.
16684 (aarch64_expand_prologue): Use aarch64_add_constant.
16685 (aarch64_expand_epilogue): Likewise.
16686 (aarch64_output_mi_thunk): Pass "false" when calling
16687 aarch64_add_constant.
16688
16689 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16690
16691 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
16692 sequences.
16693
16694 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16695
16696 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
16697 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
16698 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
16699 (aarch64_build_constant): Delete.
16700
16701 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
16702
16703 Revert
16704 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
16705
16706 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
16707 flag_toplevel_reorder.
16708
16709 2016-07-25 Richard Biener <rguenther@suse.de>
16710
16711 * cgraph.c (cgraph_node::verify_node): Compare against builtin
16712 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
16713 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
16714 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
16715 (streamer_get_builtin_tree): Likewise.
16716 (streamer_write_builtin): Likewise.
16717 * lto-streamer.h (LTO_builtin_decl): Remove.
16718 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
16719 (lto_input_scc): Remove LTO_builtin_decl handling.
16720 (lto_input_tree_1): Liekwise.
16721 * lto-streamer-out.c (lto_output_tree_1): Remove special
16722 handling of builtins.
16723 (DFS::DFS): Likewise.
16724 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
16725 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
16726 assert.
16727 (streamer_write_builtin): Remove.
16728
16729 2016-07-25 Martin Liska <mliska@suse.cz>
16730
16731 * lto-cgraph.c (input_symtab): Don't call get_working_sets
16732 if flag_auto_profile is set to true.
16733
16734 2016-07-25 Martin Liska <mliska@suse.cz>
16735
16736 PR gcov-profile/71868
16737 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
16738 have a function with multiple latches, count them all.
16739
16740 2016-07-25 Martin Liska <mliska@suse.cz>
16741
16742 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
16743
16744 2016-07-25 Martin Liska <mliska@suse.cz>
16745
16746 PR tree-optimization/71987
16747 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
16748 just for SSA_NAMEs. Fix GNU coding style.
16749
16750 2016-07-25 Martin Liska <mliska@suse.cz>
16751
16752 PR gcov-profile/64874
16753 * gcov-io.h: Update command about file format.
16754 * gcov-iov.c (main): Adapt the numbering scheme.
16755
16756 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
16757
16758 PR middle-end/66726
16759 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
16760 whose result is used in PHI.
16761 (final_range_test_p): Likewise.
16762 (maybe_optimize_range_tests): Likewise.
16763
16764 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
16765
16766 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16767 Reformat two multi-line strings.
16768
16769 2016-07-22 Martin Sebor <msebor@redhat.com>
16770
16771 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
16772
16773 2016-07-22 Martin Sebor <msebor@redhat.com>
16774
16775 PR c/71560
16776 * doc/extend.texi (Compound Literals): Correct and clarify.
16777 (Cast to Union): Same.
16778
16779 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
16780
16781 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
16782 comments to explain why certain error messages make mention of
16783 undocumented options.
16784 (rs6000_invalid_builtin): Change error messages to replace mention
16785 of undocumented options with mention of the -mcpu=power9 option
16786 that enables those undocumented options.
16787 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
16788 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
16789 definition of this macro to correct an existing error.
16790 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
16791 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
16792 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
16793 descriptions of built-in functions so that they depend on
16794 -mcpu=power9 instead of on the corresponding undocumented flags.
16795 * doc/invoke.texi (Option Summary): Remove all mention of newly
16796 undocumented flags.
16797 (IBM RS/6000 and PowerPC Options): Likewise.
16798 * doc/md.texi (Constraints for Particuliar Machines): Remove all
16799 mention of newly undocumented flags.
16800
16801 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
16802
16803 * ipa-cp.c (determine_versionability): Do not create constprop clones,
16804 when target_clones attribute is set.
16805
16806 2016-07-22 Bin Cheng <bin.cheng@arm.com>
16807
16808 * common.opt (funsafe-loop-optimizations): Mark ignore.
16809 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
16810 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
16811 related code.
16812 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
16813 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
16814
16815 2016-07-22 Bin Cheng <bin.cheng@arm.com>
16816
16817 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
16818 Parameter.
16819 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
16820 Parameter.
16821 (number_of_iterations_exit): Warn missed loop optimization for
16822 possible infinite loops.
16823
16824 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
16825
16826 PR target/71216
16827 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
16828 when to emit a ".machine" pseudo-op.
16829
16830 2016-07-22 Martin Liska <mliska@suse.cz>
16831
16832 PR gcov-profile/69028
16833 PR gcov-profile/62047
16834 * coverage.c (coverage_compute_lineno_checksum): Do not
16835 calculate checksum for fns w/o xloc.file.
16836 (coverage_compute_profile_id): Likewise.
16837
16838 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
16839
16840 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
16841 (avr_secondary_reload): ...and implementation.
16842 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
16843 * config/avr/avr.md (reload_in<mode>): Remove insns.
16844 (adjust_len) [lpm]: Remove insn attribute value.
16845 * config/avr/predicates.md (flash_operand): Remove insn predicate.
16846
16847 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
16848
16849 PR middle-end/71876
16850 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
16851 attribute.
16852 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
16853 * calls.c (special_function_p): Remove the special handling of the
16854 "__builtin_" prefix.
16855
16856 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
16857
16858 PR middle-end/71876
16859 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
16860 if STMT may be an alloca call.
16861 (gimple_alloca_call_p, alloca_call_p): Return only true for the
16862 builtin alloca call.
16863 * calls.h (gimple_maybe_alloca_call_p): New function.
16864 * tree-inline.c (inline_forbidden_p_stmt): Use
16865 gimple_maybe_alloca_call_p here.
16866
16867 2016-07-21 David Malcolm <dmalcolm@redhat.com>
16868
16869 * spellcheck-tree.c (best_macro_match::best_macro_match):
16870 Explictly specify the template arguments when invoking the base
16871 class constructor, to help older C++ compilers.
16872
16873 2016-07-21 Jakub Jelinek <jakub@redhat.com>
16874
16875 PR sanitizer/71953
16876 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
16877 before builtin_decl_implicit.
16878
16879 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16880
16881 * optabs.c (emit_condiitonal_move): Short circuit for identical
16882 sources.
16883
16884 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16885
16886 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
16887 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
16888 (noce_conversion_profitable_p): New.
16889 (noce_try_store_flag_constants): Use it.
16890 (noce_try_addcc): Likewise.
16891 (noce_try_store_flag_mask): Likewise.
16892 (noce_try_cmove): Likewise.
16893 (noce_try_cmove_arith): Likewise.
16894 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
16895 overwriting it.
16896 (noce_convert_multiple_sets): Move cost model to here, from...
16897 (bb_ok_for_noce_convert_multiple_sets) ...here.
16898 (noce_process_if_block): Update calls for above changes.
16899 (noce_find_if_block): Record new noce_if_info parameters.
16900
16901 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16902
16903 * target.def (max_noce_ifcvt_seq_cost): New.
16904 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
16905 * doc/tm.texi: Regenerate.
16906 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
16907 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
16908 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
16909 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
16910 * doc/invoke.texi: Document new params.
16911
16912 2016-07-21 Richard Biener <rguenther@suse.de>
16913
16914 PR tree-optimization/71947
16915 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
16916 ranges have useful limit_vr information.
16917
16918 2016-07-21 Richard Biener <rguenther@suse.de>
16919
16920 * function-tests.c (build_trivial_generic_function): Set
16921 BLOCK_SUPERCONTEXT of DECL_INITIAL.
16922 * omp-low.c (create_omp_child_function): Likewise.
16923 (grid_expand_target_grid_body): Likewise.
16924 * cgraphunit.c (init_lowered_empty_function): Likewise.
16925 (cgraph_node::expand_thunk): Likewise.
16926 * tree-parloops.c (create_loop_fn): Likewise.
16927 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
16928
16929 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16930
16931 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
16932 in comment.
16933
16934 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
16935
16936 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
16937 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
16938 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
16939 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
16940 values for insn attribute.
16941 * config/avr/avr.c (avr_out_insert_notbit): New function.
16942 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
16943 ADJUST_LEN_INSV_NOTBIT_0/_7.
16944 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
16945
16946 2016-07-21 Bin Cheng <bin.cheng@arm.com>
16947
16948 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
16949 (chrec_convert_1, chrec_convert): Ditto.
16950 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
16951 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
16952 * tree-vrp.c (adjust_range_with_scev): Ditto.
16953 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
16954 (scev_var_range_cant_overflow): New function.
16955 (scev_probably_wraps_p): New parameter. Call above function.
16956 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
16957
16958 2016-07-21 Bin Cheng <bin.cheng@arm.com>
16959
16960 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
16961 by removing computation of may_be_zero.
16962
16963 2016-07-21 Jakub Jelinek <jakub@redhat.com>
16964
16965 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
16966
16967 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
16968
16969 Improving concepts performance and diagnostics.
16970 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
16971 for constraint satisfaction and subsumption.
16972 * timevar.h (auto_timevar): New constructor that matches the push/pop
16973 pattern of usage in pt.c.
16974
16975 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
16976
16977 * hwint.h (HOST_WIDE_INT_0): New define.
16978 (HOST_WIDE_INT_0U): Ditto.
16979 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
16980 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
16981 * simplify-rtx.c: Ditto.
16982 * tree-object-size.c: Ditto.
16983
16984 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16985
16986 * config/s390/s390.c (s390_encode_section_info): Remove mode size
16987 check.
16988
16989 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
16990
16991 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
16992 * combine.c: Use HOST_WIDE_INT_M1U instead of
16993 ~(unsigned HOST_WIDE_INT) 0.
16994 * double-int.h: Ditto.
16995 * dse.c: Ditto.
16996 * dwarf2asm.c:Ditto.
16997 * expmed.c: Ditto.
16998 * genmodes.c: Ditto.
16999 * match.pd: Ditto.
17000 * read-rtl.c: Ditto.
17001 * tree-ssa-loop-ivopts.c: Ditto.
17002 * tree-ssa-loop-prefetch.c: Ditto.
17003 * tree-vect-generic.c: Ditto.
17004 * tree-vect-patterns.c: Ditto.
17005 * tree.c: Ditto.
17006
17007 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17008
17009 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
17010 constant addresses outside [0,0xc0] into a register.
17011 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
17012 cases where the base address register is unused after.
17013 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
17014 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
17015 (avr_out_store_psi_reg_disp_tiny): Same.
17016
17017 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17018
17019 Implement attribute progmem on reduced Tiny cores by adding
17020 flash offset 0x4000 to respective symbols.
17021
17022 PR target/71948
17023 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
17024 documentation how it works on reduced Tiny cores.
17025 (AVR Named Address Spaces): No support for reduced Tiny.
17026 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
17027 (avr_address_tiny_pm_p): New static function.
17028 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
17029 if the address is in progmem.
17030 (avr_assemble_integer): Same.
17031 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
17032 for symbol_ref in progmem.
17033 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
17034 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
17035 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
17036
17037 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
17038
17039 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
17040 * configure: Regenerate.
17041 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
17042 (USE_THIN_ARCHIVES): New variable.
17043 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
17044 this archive as a thin archive.
17045
17046 2016-07-20 David Malcolm <dmalcolm@redhat.com>
17047
17048 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
17049 same location as last time, don't skip if we have fix-it hints.
17050 Clarify the skipping logic by converting it from one "if" clause
17051 to repeated "if" clauses.
17052 * spellcheck-tree.c: Include "cpplib.h".
17053 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
17054 (best_macro_match::best_macro_match): New constructor.
17055 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
17056 Move here from c/c-decl.c.
17057 (class best_macro_match): Move here from c/c-decl.c, converting
17058 from a typedef to a subclass, gaining a ctor.
17059
17060 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17061
17062 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
17063 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
17064 define...
17065 (avr_addr_space_diagnose_usage): ...and implementation.
17066 (avr_addr_space_supported_p): New function.
17067 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
17068 report bad address space usage if that space is supported.
17069 (avr_insert_attributes): Same. No more complain about unsupported
17070 address spaces.
17071 * config/avr/avr-c.c (tm_p.h): Include it.
17072 (avr_cpu_cpp_builtins): Only define addr-space related built-in
17073 macro if avr_addr_space_supported_p.
17074
17075 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
17076
17077 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
17078 flag_toplevel_reorder.
17079
17080 2016-07-20 David Malcolm <dmalcolm@redhat.com>
17081
17082 * gcc-rich-location.c
17083 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
17084 a const char *.
17085 * gcc-rich-location.h
17086 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
17087
17088 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17089
17090 * target.def (addr_space): Add new diagnose_usage to hook vector.
17091 * targhooks.c (default_addr_space_diagnose_usage): Add default
17092 implementation and...
17093 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
17094 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
17095 is some address space, call targetm.addr_space.diagnose_usage.
17096 * doc/tm.texi.in (Named Address Spaces): Add anchor for
17097 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
17098 * doc/tm.texi: Regenerate.
17099
17100 2016-07-20 Martin Liska <mliska@suse.cz>
17101
17102 PR middle-end/71898
17103 * graphite-isl-ast-to-gimple.c (later_of_the_two):
17104 Properly handly PHI stmts.
17105
17106 2016-07-20 Bin Cheng <bin.cheng@arm.com>
17107
17108 PR tree-optimization/71503
17109 PR tree-optimization/71683
17110 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
17111 and break.
17112
17113 2016-07-20 Martin Liska <mliska@suse.cz>
17114
17115 * doc/invoke.texi (-fipa-ra): Document when the option is
17116 disabled. Fix a typo.
17117
17118 2016-07-20 Martin Liska <mliska@suse.cz>
17119
17120 * Makefile.in: Include fibonacci_heap.c
17121 * fibonacci_heap.c: New file.
17122 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
17123 (fibonacci_heap::union_with): Fix deletion of the second heap.
17124 * selftest-run-tests.c (selftest::run_tests): Incorporate
17125 fibonacci heap tests.
17126 * selftest.h: Declare fibonacci_heap_c_tests.
17127
17128 2016-07-20 Martin Liska <mliska@suse.cz>
17129
17130 * selftest-run-tests.c (selftest::run_tests): New function.
17131 * selftest.h (sreal_c_tests): Declare.
17132 * sreal.c (sreal_verify_basics): New function.
17133 (verify_aritmetics): Likewise.
17134 (sreal_verify_arithmetics): Likewise.
17135 (verify_shifting): Likewise.
17136 (sreal_verify_shifting): Likewise.
17137 (void sreal_c_tests): Likewise.
17138
17139 2016-07-19 Jakub Jelinek <jakub@redhat.com>
17140
17141 PR rtl-optimization/71916
17142 * cfgrtl.c (contains_no_active_insn_p): Return false also for
17143 bb which have a single succ fake edge.
17144
17145 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
17146
17147 PR debug/71855
17148 * dwarf2out.c (gen_subprogram_die): Only call
17149 gen_unspecified_parameters_die while dumping early dwarf.
17150
17151 2016-07-19 Jakub Jelinek <jakub@redhat.com>
17152
17153 PR middle-end/71874
17154 * gimple-fold.c (fold_builtin_memory_op): Use
17155 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
17156
17157 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
17158
17159 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
17160 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
17161 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
17162 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
17163 * combine.c: Ditto.
17164 * cse.c: Ditto.
17165 * dojump.c: Ditto.
17166 * double-int.c: Ditto.
17167 * dse.c: Ditto.
17168 * dwarf2out.c: Ditto.
17169 * expmed.c: Ditto.
17170 * expr.c: Ditto.
17171 * fold-const.c: Ditto.
17172 * function.c: Ditto.
17173 * fwprop.c: Ditto.
17174 * genmodes.c: Ditto.
17175 * hwint.c: Ditto.
17176 * hwint.h: Ditto.
17177 * ifcvt.c: Ditto.
17178 * loop-doloop.c: Ditto.
17179 * loop-invariant.c: Ditto.
17180 * loop-iv.c: Ditto.
17181 * match.pd: Ditto.
17182 * optabs.c: Ditto.
17183 * real.c: Ditto.
17184 * reload.c: Ditto.
17185 * rtlanal.c: Ditto.
17186 * simplify-rtx.c: Ditto.
17187 * stor-layout.c: Ditto.
17188 * toplev.c: Ditto.
17189 * tree-ssa-loop-ivopts.c: Ditto.
17190 * tree-vect-generic.c: Ditto.
17191 * tree-vect-patterns.c: Ditto.
17192 * tree.c: Ditto.
17193 * tree.h: Ditto.
17194 * ubsan.c: Ditto.
17195 * varasm.c: Ditto.
17196 * wide-int-print.cc: Ditto.
17197 * wide-int.cc: Ditto.
17198 * wide-int.h: Ditto.
17199
17200 2016-07-19 David Malcolm <dmalcolm@redhat.com>
17201
17202 * selftest.c (selftest::assert_streq): Handle NULL values of
17203 val_actual and val_expected.
17204
17205 2016-07-19 Martin Jambor <mjambor@suse.cz>
17206
17207 PR fortran/71688
17208 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
17209 rather than cgraph_create_node to get a call graph node.
17210
17211 2016-07-19 Richard Biener <rguenther@suse.de>
17212
17213 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
17214 handle all tcc_constant bases and valueize SSA names.
17215 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
17216 tcc_constant bases.
17217
17218 2016-07-19 David Malcolm <dmalcolm@redhat.com>
17219
17220 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
17221 the flags of the exit block and bb2, not just the entry block.
17222
17223 2016-07-19 Richard Biener <rguenther@suse.de>
17224
17225 PR tree-optimization/71901
17226 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
17227 align member, group stuff with the bitfield.
17228 (vn_ref_op_align_unit): New inline.
17229 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
17230 record element alignment and operand 3 unchanged.
17231 (ao_ref_init_from_vn_reference): Adjust.
17232 (valueize_refs_1): Likewise.
17233 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
17234
17235 2016-07-19 Richard Biener <rguenther@suse.de>
17236
17237 PR tree-optimization/71908
17238 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
17239 symbolic constants in a more reliable way.
17240
17241 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
17242
17243 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
17244 comment.
17245 (vect_update_inits_of_drs): Likewise.
17246 (vect_create_cond_for_alias_checks): Likewise.
17247 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
17248
17249 2016-07-19 Richard Biener <rguenther@suse.de>
17250
17251 PR lto/71907
17252 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
17253 with an abstract origin that is not an inlined function outer
17254 scope add a self-reference as abstract origin.
17255 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
17256
17257 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
17258
17259 PR target/71493
17260 * config/rs6000/rs6000.c (rs6000_function_value): Fix
17261 unintentional System V.4 structure return breakage for structures
17262 with a single floating point element.
17263
17264 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
17265
17266 PR tree-optimization/71734
17267 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
17268 contains REF, use it to check safelen, assume that safelen value
17269 must be greater 1, fix style.
17270 (ref_indep_loop_p_2): Add REF_LOOP argument.
17271 (ref_indep_loop_p): Pass LOOP as additional argument to
17272 ref_indep_loop_p_2.
17273
17274 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
17275
17276 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
17277 allocation in the prologue.
17278 * explow.c (get_dynamic_stack_base): New function to return an address
17279 expression for the dynamic stack base.
17280 (get_dynamic_stack_size): New function to do the required dynamic stack
17281 space size calculations.
17282 (allocate_dynamic_stack_space): Use new functions.
17283 (align_dynamic_address): Move some code from
17284 allocate_dynamic_stack_space to new function.
17285 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
17286
17287 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17288
17289 * config/s390/s390.c (s390_encode_section_info): Always set
17290 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
17291 found.
17292
17293 2016-07-18 Richard Biener <rguenther@suse.de>
17294
17295 PR tree-optimization/71893
17296 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
17297 for sizetype cast added by array_ref_element_size.
17298 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
17299
17300 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
17301
17302 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
17303 register parameters. Remove code to initialize argument pointer
17304 on TARGET_64BIT. Optimize call to _mcount when it can be reached
17305 using a pc-relative branch. Cleanup conditional code.
17306 * config/pa/pa.md (call_mcount): New expander.
17307 (call_mcount_nonpic): New insn.
17308 (call_mcount_pic): New insn and split.
17309 (call_mcount_pic_post_reload): New insn.
17310 (call_mcount_64bit): New insn and split.
17311 (call_mcount_64bit_post_reload): New insn.
17312
17313 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
17314
17315 * config/avr/predicates.md (const_m255_to_m1_operand): New.
17316 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
17317 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
17318 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
17319 (*usum_widenqihi3, *udiff_widenqihi3)
17320 (*addhi3_zero_extend.const): New combiner insns.
17321 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
17322 just 1 bit is affected.
17323 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
17324 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
17325
17326 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
17327
17328 * omp-low.c (lower_omp_target): Mark data clauses with
17329 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
17330 zero-length subarrays.
17331
17332 2016-07-15 Richard Biener <rguenther@suse.de>
17333
17334 PR tree-optimization/71881
17335 * tree-loop-distribution.c (destroy_loop): Remove blocks in
17336 reverse DOM order to make debug temp generation happy.
17337
17338 2016-07-15 Richard Biener <rguenther@suse.de>
17339
17340 PR tree-optimization/71887
17341 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
17342 verify it is not zero for division / modulo handling.
17343 (value_replacement): Adjust.
17344
17345 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
17346 Julian Brown <julian@codesourcery.com>
17347
17348 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
17349 * config/aarch64/aarch64-cost-tables.h
17350 (vulcan_extra_costs): New variable.
17351 * config/aarch64/aarch64.c
17352 (vulcan_addrcost_table): Likewise.
17353 (vulcan_regmove_cost): Likewise.
17354 (vulcan_vector_cost): Likewise.
17355 (vulcan_branch_cost): Likewise.
17356 (vulcan_tunings): Likewise.
17357
17358 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
17359
17360 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
17361 (output_in_order): Loop over undefined variables too. Output them
17362 via assemble_undefined_decl. Skip variables that correspond to hard
17363 registers or have value-exprs.
17364 * varpool.c (symbol_table::output_variables): Handle undefined
17365 variables together with defined ones.
17366
17367 2016-07-15 Richard Biener <rguenther@suse.de>
17368
17369 * tree-ssa-pre.c (get_representative_for): Make sure to return
17370 the value number of SSA names.
17371 (phi_translate_1): get_representative_for cannot return NULL.
17372 (do_pre_regular_insertion): Remove redundant call to
17373 fully_constant_expression.
17374 (do_pre_partial_partial_insertion): Likewise.
17375
17376 2016-07-15 Bin Cheng <bin.cheng@arm.com>
17377
17378 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
17379 (derive_simple_iv_with_niters): New function.
17380 (simple_iv): Rewrite using simple_iv_with_niters.
17381 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
17382 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
17383 function.
17384 (number_of_iterations_exit): Rewrite using above function.
17385 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
17386 Decl.
17387
17388 2016-07-15 Richard Biener <rguenther@suse.de>
17389
17390 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
17391 vec_construct cost.
17392
17393 2016-07-14 Jakub Jelinek <jakub@redhat.com>
17394
17395 PR tree-optimization/71872
17396 * tree-data-ref.c (get_references_in_stmt): Ignore references
17397 with is_gimple_constant get_base_address.
17398
17399 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17400
17401 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
17402 (TARGET_HAVE_LDACQD): New macro.
17403 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
17404 than TARGET_HAVE_LDACQ.
17405 (arm_load_acquire_exclusivedi): Likewise.
17406 (arm_store_release_exclusivedi): Likewise.
17407
17408 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17409
17410 PR rtl-optimization/71878
17411 * lra-constraints.c (match_reload): Pass information about other
17412 output operands. Create new unique register value if matching input
17413 operand shares same register value as output operand being considered.
17414 (curr_insn_transform): Record output operands already processed.
17415
17416 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17417
17418 PR target/65951
17419 PR tree-optimization/70923
17420 * tree-vect-patterns.c: Include mult-synthesis.h.
17421 (target_supports_mult_synth_alg): New function.
17422 (synth_lshift_by_additions): Likewise.
17423 (apply_binop_and_append_stmt): Likewise.
17424 (vect_synth_mult_by_constant): Likewise.
17425 (target_has_vecop_for_code): Likewise.
17426 (vect_recog_mult_pattern): Use above functions to synthesize vector
17427 multiplication by integer constants.
17428
17429 2016-07-14 Alan Modra <amodra@gmail.com>
17430
17431 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
17432 gpr alternatives. Correct '*' placement on Y,r alternative.
17433 Add '*' on operand 1 of r,r alternative.
17434
17435 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17436
17437 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
17438 * expmed.h: ... Here.
17439
17440 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
17441
17442 * gimple.h (stmt_can_terminate_bb_p): New function.
17443 * tree-cfg.c (need_fake_edge_p): Rename to ...
17444 (stmt_can_terminate_bb_p): ... this; return true if stmt can
17445 throw external; handle const and pure calls.
17446 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
17447
17448 2016-07-14 Richard Biener <rguenther@suse.de>
17449
17450 PR tree-optimization/71866
17451 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
17452 (do_hoist_insertion): Avoid endless recursion when we
17453 didn't insert anything because we managed to simplify
17454 things down to a constant or SSA name.
17455 (fully_constant_expression): Re-write in terms of ...
17456 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
17457 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
17458 vn_nary_build_or_lookup_1.
17459 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
17460 (vn_nary_build_or_lookup): ... this which now wraps it.
17461
17462 2016-07-14 Alan Modra <amodra@gmail.com>
17463
17464 PR target/71733
17465 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
17466 with p9_vector override before power9-dform override.
17467
17468 2016-07-13 Andi Kleen <ak@linux.intel.com>
17469
17470 * value-prof.c (gimple_value_profile_transformations): Don't run
17471 when auto_profile is on.
17472
17473 2016-07-13 Andi Kleen <ak@linux.intel.com>
17474
17475 * auto-profile.c (update_inlined_ind_target,
17476 afdo_indirect_call): Print information to dump file.
17477
17478 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
17479
17480 * genrecog.c (special_predicate_operand_p): New function.
17481 (predicate_name): Move function.
17482 (validate_pattern): Don't warn about missing mode for all
17483 define_special_predicate predicates.
17484
17485 2016-07-13 Bin Cheng <bin.cheng@arm.com>
17486
17487 * tree-vect-data-refs.c (vect_no_alias_p): New function.
17488 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
17489 resolve alias checks which are known at compilation time.
17490 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
17491 alias checks are resolved. Move dump info for too many runtime
17492 alias checks to here...
17493 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
17494
17495 2016-07-13 Richard Biener <rguenther@suse.de>
17496
17497 PR tree-optimization/24574
17498 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
17499 position and add shift, rotate, divison and modulo support
17500 for left zero.
17501 (value_replacement): Pass in argument position to absorbing_element_p.
17502
17503 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
17504
17505 PR ipa/71633
17506 * ipa-inline-transform.c (inline_call): Support
17507 instrumented thunks.
17508
17509 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17510
17511 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
17512 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
17513 divide feature.
17514 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
17515 Baseline. Make initial alternative TARGET_32BIT only.
17516 (udivsi3): Likewise.
17517 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
17518 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
17519 target.
17520
17521 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17522
17523 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
17524 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
17525 availability with TARGET_HAVE_MOVT.
17526 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
17527 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
17528 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
17529 UINTVAL.
17530 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
17531 extra instruction if MOVW is available. Use a cost variable
17532 incremented by COSTS_N_INSNS (1) when the condition match rather than
17533 returning an arithmetic expression based on COSTS_N_INSNS. Make
17534 constant with bottom half word zero cost 2 instruction if MOVW is
17535 available.
17536 * config/arm/arm.md (define_attr "arch"): Add v8mb.
17537 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
17538 target is ARMv8-M Baseline.
17539 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
17540 (arm_movtas_ze): Likewise.
17541 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
17542 alternative for constants satisfying j constraint.
17543 (thumb1_movsi_insn): Likewise.
17544 (movsi splitter for K alternative): Tighten condition to not trigger
17545 if movt is available and j constraint is satisfied.
17546 (Pe immediate splitter): Likewise.
17547 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
17548 constant fitting in an halfword to use MOVW.
17549 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
17550 effective target.
17551
17552 2016-07-13 Richard Biener <rguenther@suse.de>
17553
17554 PR middle-end/71104
17555 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
17556 gimplifying the LHS. Make sure to gimplify a returning twice
17557 call LHS without using SSA names.
17558
17559 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17560
17561 * tree-data-ref.c (find_data_references_in_stmt): Remove
17562 unnecessary call to vec::release.
17563 (graphite_find_data_references_in_stmt): Likewise.
17564 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
17565 * tree-vect-stmts.c (vectorizable_condition): Likewise.
17566
17567 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17568
17569 * cfgexpand.c (expand_used_vars): Make the type of a local
17570 variable auto_vec.
17571 * genmatch.c (lower_for): Likewise.
17572 * haifa-sched.c (haifa_sched_init): Likewise.
17573 (add_to_speculative_block): Likewise.
17574 (create_check_block_twin): Likewise.
17575 * predict.c (handle_missing_profiles): Likewise.
17576 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
17577 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
17578 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
17579 Likewise.
17580 (maybe_lower_iteration_bound): Likewise.
17581 * tree-ssa-sccvn.c (DFS): Likewise.
17582 * tree-stdarg.c (reachable_at_most_once): Likewise.
17583 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
17584 (vectorizable_store): Likewise.
17585
17586 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17587
17588 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
17589 (sccvn_dom_walker): make cond_stack an auto_vec.
17590
17591 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17592
17593 * ree.c (struct ext_state): Make type of members auto_vec.
17594 (find_and_remove_re): Adjust.
17595
17596 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17597
17598 * cfgexpand.c (struct stack_vars_data): Make type of fields
17599 auto_vec.
17600 (expand_used_vars): Adjust.
17601
17602 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17603
17604 * ipa.c (record_cdtor_fn): Adjust.
17605 (build_cdtor_fns): Likewise.
17606 (ipa_cdtor_merge): Make static_ctors and static_dtors local
17607 variables.
17608
17609 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17610
17611 * genextract.c (struct accum_extract): Add constructor and make
17612 members auto_vec.
17613 (gen_insn): Adjust.
17614
17615 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17616
17617 * tree.c (struct free_lang_data_d): Add constructor and change
17618 types of members to ones that automatically manage resources.
17619 (fld_worklist_push): Adjust.
17620 (find_decls_types): Likewise.
17621 (find_decls_types_in_eh_region): Likewise.
17622 (free_lang_data_in_cgraph): Stop manually creating and
17623 destroying members of free_lang_data_d.
17624
17625 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
17626
17627 PR rtl-optimization/68961
17628 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
17629 peephole variant. Use sse_reg_operand predicates.
17630
17631 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
17632
17633 * config/i386/predicates.md (x86_64_immediate_operand)
17634 <case CONST_INT>: Remove unneeded truncation to DImode.
17635 <case CONST>: Ditto.
17636 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
17637
17638 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17639
17640 PR target/71805
17641 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
17642 The xxperm and xxpermr instructions require that the 2nd input
17643 operand overlap with the output operand, and not the 1st.
17644 (altivec_vperm_v8hiv16qi): Likewise.
17645 (altivec_vperm_<mode>_uns_internal): Likewise.
17646 (altivec_vpermr_<mode>_internal): Likewise.
17647 (vperm_v8hiv4si): Likewise.
17648 (vperm_v16qiv8hi): Likewise.
17649
17650 2016-07-12 Nathan Sidwell <nathan@acm.org>
17651
17652 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
17653 when -mno-pic-data-is-text-relative is in effect, by default.
17654 * doc/invoke.texi (mpic-data-is-text-relative): Document new
17655 behavior and clarify.
17656
17657 2016-07-12 Martin Liska <mliska@suse.cz>
17658
17659 * params.def: Add avg-loop niter.
17660 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
17661 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
17662 * doc/invoke.texi: Document the new parameter.
17663
17664 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17665
17666 PR middle-end/71700
17667 * expr.c (store_constructor): Mask sign-extended bits when widening
17668 sub-word constructor element at the start of a word.
17669
17670 2016-07-12 Martin Liska <mliska@suse.cz>
17671
17672 * Makefile.in: Append rule for params-options.h.
17673 * params-options.h: New file.
17674
17675 2016-07-12 Martin Liska <mliska@suse.cz>
17676
17677 * ira-build.c (mark_loops_for_removal): Properly iterate
17678 loops.
17679
17680 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
17681 Richard Biener <rguenther@suse.de>
17682
17683 PR tree-optimization/23286
17684 PR tree-optimization/70159
17685 * doc/invoke.texi: Document -fcode-hoisting.
17686 * common.opt (fcode-hoisting): New flag.
17687 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
17688 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
17689 (do_regular_insertion): Rename to ...
17690 (do_pre_regular_insertion): ... this and amend general comments
17691 on insertion strathegy.
17692 (do_partial_partial_insertion): Rename to ...
17693 (do_pre_partial_partial_insertion): ... this.
17694 (do_hoist_insertion): New function.
17695 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
17696 and call do_hoist_insertion properly.
17697 (insert): Adjust.
17698 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
17699 (pass_pre::execute): Register hoist_insert stats.
17700
17701 2016-07-12 Jakub Jelinek <jakub@redhat.com>
17702
17703 PR middle-end/71716
17704 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
17705 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
17706 is different from mode's bitsize. Small cleanup.
17707
17708 2016-07-12 Richard Biener <rguenther@suse.de>
17709
17710 PR rtl-optimization/68961
17711 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
17712 to simplify to a non-constant.
17713
17714 2016-07-11 Jakub Jelinek <jakub@redhat.com>
17715
17716 PR middle-end/71758
17717 * omp-low.c (expand_omp_target): Gimplify device.
17718
17719 PR tree-optimization/71823
17720 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
17721 to get vec_oprnds2 from op2.
17722
17723 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
17724
17725 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
17726 Hoist common subexpressions.
17727 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
17728
17729 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
17730
17731 PR target/71800
17732 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
17733 prevent generation of 'stxsiwx' on pre Power8 hardware.
17734
17735 2016-07-11 David Malcolm <dmalcolm@redhat.com>
17736
17737 * input.c: Include cpplib.h.
17738 (selftest::temp_source_file): New class.
17739 (selftest::temp_source_file::temp_source_file): New ctor.
17740 (selftest::temp_source_file::~temp_source_file): New dtor.
17741 (selftest::should_have_column_data_p): New function.
17742 (selftest::test_should_have_column_data_p): New function.
17743 (selftest::temp_line_table): New class.
17744 (selftest::temp_line_table::temp_line_table): New ctor.
17745 (selftest::temp_line_table::~temp_line_table): New dtor.
17746 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
17747 it to create a temp_line_table.
17748 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
17749 locations that are known to have column data.
17750 (selftest::line_table_case): New struct.
17751 (selftest::test_reading_source_line): Move tempfile handling
17752 to class temp_source_file.
17753 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
17754 (selftest::assert_token_loc_eq): New function.
17755 (ASSERT_TOKEN_LOC_EQ): New macro.
17756 (selftest::test_lexer): New function.
17757 (selftest::boundary_locations): New array.
17758 (selftest::input_c_tests): Call test_should_have_column_data_p.
17759 Loop over a test matrix of interesting values of location and
17760 default_range_bits, calling test_lexer on each case in the matrix.
17761 Move call to test_accessing_ordinary_linemaps into the matrix.
17762 * selftest.h (ASSERT_EQ): Reimplement in terms of...
17763 (ASSERT_EQ_AT): New macro.
17764
17765 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
17766
17767 PR target/71801
17768 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
17769 Don't convert TImode in debug insn.
17770
17771 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
17772
17773 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
17774 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
17775 (tree_type_common::lang_flag_7): New.
17776 (tree_type_common::spare): Reduce size.
17777 * tree.h (TYPE_ALIGN_OK): Remove.
17778 (TYPE_LANG_FLAG_7): New.
17779 (get_inner_reference): Adjust header.
17780 * print-tree.c (print_node): Adjust.
17781 * expr.c (get_inner_reference): Remove parameter keep_aligning.
17782 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
17783 calls to get_inner_reference.
17784 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
17785 handling of TYPE_ALIGN_OK.
17786 * builtins.c (get_object_alignment_2): Adjust call to
17787 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
17788 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
17789 TYPE_ALIGN_OK.
17790 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
17791 * cfgexpand.c (expand_debug_expr): Likewise.
17792 * dbxout.c (dbxout_expand_expr): Likewise.
17793 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
17794 loc_list_from_tree, fortran_common): Likewise.
17795 * fold-const.c (optimize_bit_field_compare,
17796 decode_field_reference, fold_unary_loc, fold_comparison,
17797 split_address_to_core_and_offset): Likewise.
17798 * gimple-laddress.c (execute): Likewise.
17799 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
17800 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
17801 * hsa-gen.c (gen_hsa_addr): Likewise.
17802 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
17803 * tsan.c (instrument_expr): Likewise.
17804 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
17805 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
17806 * tree-affine.c (tree_to_aff_combination,
17807 get_inner_reference_aff): Adjust calls to get_inner_reference.
17808 * tree-data-ref.c (split_constant_offset_1,
17809 dr_analyze_innermost): Likewise.
17810 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
17811 * tree-sra.c (ipa_sra_check_caller): Likewise.
17812 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
17813 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
17814 bswap_replace): Likewise.
17815 * tree-vect-data-refs.c (vect_check_gather,
17816 vect_analyze_data_refs): Likewise.
17817 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
17818 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
17819 TYPE_ALIGN_OK.
17820
17821 2016-07-11 David Malcolm <dmalcolm@redhat.com>
17822
17823 * Makefile.in (selftest-valgrind): New phony target.
17824 * function-tests.c (selftest::build_cfg): Delete pass instances
17825 created by the test.
17826 (selftest::convert_to_ssa): Likewise.
17827 (selftest::test_expansion_to_rtl): Likewise.
17828 * tree-cfg.c (selftest::test_linear_chain): Release dominator
17829 vectors.
17830 (selftest::test_diamond): Likewise.
17831
17832 2016-07-11 Richard Biener <rguenther@suse.de>
17833
17834 PR tree-optimization/71816
17835 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
17836 than replacing all of its operands.
17837
17838 2016-07-11 Alan Modra <amodra@gmail.com>
17839
17840 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
17841 (ctr<mode>): Add unspec.
17842 (ctr<mode>_internal*): Likewise.
17843
17844 2016-07-08 James Bowman <james.bowman@ftdichip.com>
17845
17846 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
17847 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
17848
17849 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
17850
17851 PR rtl-optimization/71621
17852 * lra-constraints.c (process_alt_operands): Check combination of
17853 reg class and mode.
17854
17855 2016-07-08 Jason Merrill <jason@redhat.com>
17856 Richard Biener <rguenther@suse.de>
17857
17858 P0145: Refining Expression Order for C++.
17859 * gimplify.c (initial_rhs_predicate_for): New.
17860 (gimplfy_modify_expr): Gimplify RHS before LHS.
17861
17862 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17863
17864 PR target/71297
17865 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17866 Allow standard error handling to take over when a wrong number
17867 of arguments is presented to __builtin_vec_ld () or
17868 __builtin_vec_st ().
17869
17870 2016-07-08 Jiong Wang <jiong.wang@arm.com>
17871
17872 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
17873 variants.
17874 (smin): Likewise.
17875 (fmax): New entry.
17876 (fmin): Likewise.
17877 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
17878 __builtin_aarch64_fmaxv2sf.
17879 (vmaxnmq_f32): Likewise.
17880 (vmaxnmq_f64): Likewise.
17881 (vminnm_f32): Likewise.
17882 (vminnmq_f32): Likewise.
17883 (vminnmq_f64): Likewise.
17884
17885 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
17886
17887 PR target/71806
17888 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
17889 enable -mfloat128-hardware by default.
17890 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
17891 that IEEE 128-bit hardware support needs.
17892 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
17893 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
17894 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
17895 floating point requires.
17896 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
17897 -mfloat128 and -mfloat128-hardware changes.
17898
17899 2016-07-08 Alan Hayward <alan.hayward@arm.com>
17900
17901 PR tree-optimization/71667
17902 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
17903
17904 2016-07-08 Martin Liska <mliska@suse.cz>
17905
17906 PR middle-end/71606
17907 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
17908 folding produces SAVE_EXPRs, thus return false for the type.
17909
17910 2016-07-07 Martin Liska <mliska@suse.cz>
17911
17912 * file-find.c (remove_prefix): New function.
17913 * file-find.h (remove_prefix): Declare the function.
17914 * gcc-ar.c (main): Skip a folder of the wrapper if
17915 a wrapped binary would point to the same file.
17916
17917 2016-07-07 Jan Hubicka <jh@suse.cz>
17918
17919 * tree-scalar-evolution.c (iv_can_overflow_p): export.
17920 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
17921 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
17922
17923 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
17924
17925 PR ipa/71624
17926 * ipa-inline-analysis.c (compute_inline_parameters): Set
17927 local.can_change_signature to false for intrumentation
17928 thunk callees.
17929
17930 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17931
17932 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
17933 with TARGET_HAVE_MOVT.
17934 (TARGET_HAVE_MOVT): Define.
17935 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
17936 availability with TARGET_HAVE_MOVT.
17937 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
17938 availability.
17939 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
17940 TARGET_THUMB2.
17941 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
17942 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
17943 * config/arm/constraints.md (define_constraint "j"): Use
17944 TARGET_HAVE_MOVT to check MOVT availability.
17945
17946 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17947
17948 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
17949
17950 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17951
17952 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
17953 (armv8-m.main): Likewise.
17954 (armv8-m.main+dsp): Likewise.
17955 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
17956 (FL_FOR_ARCH8M_MAIN): Likewise.
17957 * config/arm/arm-tables.opt: Regenerate.
17958 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
17959 armv8-m.main+dsp to BE8_LINK_SPEC.
17960 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
17961 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
17962 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
17963 Baseline and Mainline.
17964 (arm_option_override_internal): Also disable arm_restrict_it when
17965 !arm_arch_notm. Update comment for -munaligned-access to also cover
17966 ARMv8-M Baseline.
17967 (arm_file_start): Increase buffer size for printing architecture name.
17968 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
17969 and armv8-m.main+dsp.
17970 (mno-unaligned-access): Clarify that this is disabled by default for
17971 ARMv8-M Baseline architectures as well.
17972
17973 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17974
17975 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
17976 decide whether to prevent some libgcc routines being included for some
17977 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
17978 link between this condition and the one in
17979 libgcc/config/arm/lib1func.S.
17980
17981 2016-07-07 Richard Biener <rguenther@suse.de>
17982
17983 * tree-ssa-pre.c: Include alias.h.
17984 (compute_avail): If we have multiple VN_REFERENCEs with the
17985 same hashtable entry adjust that to make it a valid replacement
17986 for all of them with respect to alignment and aliasing
17987 when doing insertion.
17988 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
17989 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
17990
17991 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
17992
17993 PR target/70098
17994 PR target/71763
17995 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
17996 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
17997 constraint.
17998
17999 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18000
18001 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
18002 (adjust_mems): Adjust.
18003 (adjust_insn): Likewise.
18004 (prepare_call_arguments): Likewise.
18005
18006 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18007
18008 * gcse.c (struct ls_expr): Make stores field a vector.
18009 (ldst_entry): Adjust.
18010 (free_ldst_entry): Likewise.
18011 (print_ldst_list): Likewise.
18012 (compute_ld_motion_mems): Likewise.
18013 (update_ld_motion_stores): Likewise.
18014
18015 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18016
18017 * gcse.c (struct ls_expr): Remove loads field.
18018 (ldst_entry): Adjust.
18019 (free_ldst_entry): Likewise.
18020 (print_ldst_list): Likewise.
18021 (compute_ld_motion_mems): Likewise.
18022
18023 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18024
18025 * store-motion.c (struct st_expr): Make antic_stores a vector.
18026 (st_expr_entry): Adjust.
18027 (free_st_expr_entry): Likewise.
18028 (print_store_motion_mems): Likewise.
18029 (find_moveable_store): Likewise.
18030 (compute_store_table): Likewise.
18031 (remove_reachable_equiv_notes): Likewise.
18032 (replace_store_insn): Likewise.
18033 (build_store_vectors): Likewise.
18034
18035 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18036
18037 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
18038 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
18039
18040 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
18041
18042 PR tree-optimization/71518
18043 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
18044 misalign also for outer loops with negative step.
18045
18046 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
18047
18048 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
18049 (cortex_a53_shift): Add mov_shift.
18050 (cortex_a53_shift_reg): Add new reservation for register shifts.
18051 (cortex_a53_alu): Remove bfm.
18052 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
18053 (cortex_a53_alu_extr): Add new reservation for EXTR.
18054 (bypasses): Improve bypass modelling.
18055
18056 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18057
18058 PR target/50739
18059 * config/avr/avr.c (avr_asm_select_section): Strip off
18060 SECTION_DECLARED from flags when calling get_section.
18061
18062 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18063
18064 * tree-vectorizer.h (vect_memory_access_type): Add
18065 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
18066 * tree-vect-stmts.c (compare_step_with_zero): New function.
18067 (perm_mask_for_reverse): Move further up file.
18068 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
18069 step is negative.
18070 (get_negative_load_store_type): New function.
18071 (get_load_store_type): Call it. Add an ncopies argument.
18072 (vectorizable_mask_load_store): Update call accordingly and
18073 remove tests for negative steps.
18074 (vectorizable_store, vectorizable_load): Likewise. Handle new
18075 memory_access_types.
18076
18077 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18078
18079 * tree-vectorizer.h (vect_memory_access_type): New enum.
18080 (_stmt_vec_info): Add a memory_access_type field.
18081 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
18082 (vect_model_store_cost): Take an access type instead of a boolean.
18083 (vect_model_load_cost): Likewise.
18084 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
18085 vect_model_store_cost and vect_model_load_cost.
18086 * tree-vect-stmts.c (vec_load_store_type): New enum.
18087 (vect_model_store_cost): Take an access type instead of a
18088 store_lanes_p boolean. Simplify tests.
18089 (vect_model_load_cost): Likewise, but for load_lanes_p.
18090 (get_group_load_store_type, get_load_store_type): New functions.
18091 (vectorizable_store): Use get_load_store_type. Record the access
18092 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
18093 (vectorizable_load): Likewise.
18094 (vectorizable_mask_load_store): Likewise. Replace is_store
18095 variable with vls_type.
18096
18097 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18098
18099 * tree-vectorizer.h (vect_grouped_load_supported): Add a
18100 single_element_p parameter.
18101 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
18102 Check the PR65518 case here rather than in vectorizable_load.
18103 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
18104 * tree-vect-stmts.c (vectorizable_load): Likewise.
18105
18106 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18107
18108 * tree-vectorizer.h (gather_scatter_info): New structure.
18109 (vect_check_gather_scatter): Return a bool rather than a decl.
18110 Replace return-by-pointer arguments with a single
18111 gather_scatter_info *.
18112 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
18113 (vect_analyze_data_refs): Update call accordingly.
18114 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
18115 (vectorizable_mask_load_store): Likewise. Also record the
18116 offset dt and vectype in the gather_scatter_info.
18117 (vectorizable_store): Likewise.
18118 (vectorizable_load): Likewise.
18119
18120 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18121
18122 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
18123 strided groups, use the cost of N scalar accesses instead
18124 of ncopies vector accesses.
18125 (vect_model_load_cost): Likewise.
18126
18127 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18128
18129 * tree-vect-stmts.c (vect_cost_group_size): Delete.
18130 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
18131 variable to indicate when once-per-group costs are being used.
18132 (vect_model_load_cost): Likewise. Fix comment and misindented code.
18133
18134 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18135
18136 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
18137 peeling-for-gaps condition.
18138
18139 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18140
18141 * config/s390/s390.c (s390_expand_vec_init): Force initializer
18142 element to register if it doesn't match general_operand.
18143
18144 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
18145 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18146
18147 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
18148 prototype.
18149 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
18150 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
18151 (SIGNBIT): New mode iterator.
18152 (Fsignbit): New mode attribute.
18153 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
18154 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
18155 when direct moves are available.
18156 (signbit<mode>2_dm): New define_insn_and_split).
18157 (signbit<mode>2_dm2): New define_insn.
18158
18159 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18160
18161 PR rtl-optimization/71594
18162 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
18163 into subregs of appropriate mode before trying to emit a conditional
18164 move.
18165
18166 2016-07-05 Jan Hubicka <jh@suse.cz>
18167
18168 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
18169 (simple_iv): Use it.
18170
18171 2016-07-05 Jan Hubicka <jh@suse.cz>
18172
18173 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
18174
18175 2016-07-05 Jiong Wang <jiong.wang@arm.com>
18176
18177 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
18178 "offmemok".
18179
18180 2016-07-05 Jan Hubicka <jh@suse.cz>
18181
18182 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
18183 IV can overflow.
18184
18185 2016-07-05 Richard Biener <rguenther@suse.de>
18186
18187 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
18188 Handle empty else block.
18189 (is_feasible_trace): Likewise.
18190 (split_paths): Likewise.
18191
18192 2016-07-05 Richard Biener <rguenther@suse.de>
18193
18194 * tree-loop-distribution.c (distribute_loop): Fix issue with
18195 the cost model loop.
18196
18197 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
18198
18199 * config/arm/neon-testgen.ml: Delete.
18200 * config/arm/neon.ml: Delete.
18201
18202 2016-07-04 Jakub Jelinek <jakub@redhat.com>
18203
18204 PR c++/71739
18205 * tree.c (attribute_value_equal): Use get_attribute_name instead of
18206 directly using TREE_PURPOSE.
18207
18208 2016-07-04 Jiong Wang <jiong.wang@arm.com>
18209
18210 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
18211 * config/aarch64/aarch64_neon.h: Likewise.
18212 * config/aarch64/arm_neon.h: Likewise.
18213 * config/aarch64/atomics.md: Likewise.
18214 * config/aarch64/aarch64-simd-builtins.def: Likewise.
18215 * doc/invoke.texi: Likewise.
18216
18217 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
18218
18219 * config/s390/s390.md: Add "z13" cpu_facility.
18220 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
18221 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
18222 condition" type instructions.
18223
18224 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
18225 Jeff Law <law@redhat.com>
18226
18227 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
18228 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
18229
18230 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
18231
18232 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
18233 permutation for TARGET_AVX512F.
18234 (ix86_expand_vec_one_operand_perm_avx512): New function.
18235 (expand_vec_perm_1): Invoke introduced function.
18236 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
18237 it may be not valid after vectorization.
18238
18239 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18240
18241 PR target/63874
18242 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
18243 typo in comment. Only force to memory if it is a weak
18244 external reference.
18245
18246 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
18247 Jiong Wang <jiong.wang@arm.com>
18248
18249 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
18250 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
18251 (AARCH64_FL_F16): New.
18252 (AARCH64_FL_FOR_ARCH8_2): New.
18253 (AARCH64_ISA_8_2): New.
18254 (AARCH64_ISA_F16): New.
18255 (TARGET_FP_F16INST): New.
18256 (TARGET_SIMD_F16INST): New.
18257 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
18258 ("fp"): Disabling "fp" also disables "fp16".
18259 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
18260 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
18261 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
18262 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
18263
18264 2016-07-04 Jan Beulich <jbeulich@suse.com>
18265
18266 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
18267
18268 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
18269
18270 PR target/71720
18271 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
18272 the insns, use an insn form that does not adjust the offset on
18273 little endian systems.
18274
18275 2016-07-01 Jan Beulich <jbeulich@suse.com>
18276
18277 * varasm.c (get_variable_section): Validate initializer in
18278 named .bss-like sections.
18279
18280 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
18281
18282 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
18283 Exchange the order of the second and third operands in the vpermr
18284 instruction tmeplate.
18285
18286 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
18287
18288 PR target/71698
18289 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
18290 Disallow TDmode values.
18291
18292 2016-07-01 Alan Modra <amodra@gmail.com>
18293
18294 PR rtl-optimization/71709
18295 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
18296 being set, not referenced.
18297
18298 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18299
18300 PR tree-optimization/70729
18301 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
18302 of loop since it can be not valid after transformation.
18303
18304 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18305
18306 * config/arm/arm.c (thumb_reload_in_hi): Delete.
18307 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
18308
18309 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
18310
18311 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
18312 for NULL decl.
18313
18314 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
18315
18316 PR target/71677
18317 * config/rs6000/constraints.md (wY constraint): New constraint to
18318 match the requirements for the LXSD and STXSD instructions.
18319 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
18320 predicate to match the requirements for the LXSD and STXSD
18321 instructions.
18322 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
18323 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
18324 to make sure that the bottom 2 bits of offset are 0, the address
18325 form is offsettable, and no updating is done in the address mode.
18326 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
18327 (movdi_internal32): Likewise
18328 (movdi_internal64): Likewise.
18329
18330 2016-06-30 Jakub Jelinek <jakub@redhat.com>
18331
18332 PR tree-optimization/71707
18333 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
18334 strinfo even for ADDR_EXPR ptr.
18335
18336 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
18337
18338 * config/rs6000/altivec.md (darn_32): Change the condition to
18339 TARGET_P9_MISC instead of TARGET_MODULO.
18340 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
18341 condition expression.
18342 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
18343 condition expression.
18344 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
18345 (DFP_TEST): New code iterator.
18346 (dfptstsfi_<code>_mode>): New define_expand.
18347 (*dfp_sgnfcnc_<mode>): New define_insn.
18348 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
18349 definition next to BU_P9_MISC_1 definition and change the MASK
18350 value to RS6000_BTM_P9_MISC.
18351 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
18352 (BU_P9_64BIT_MISC_0): Likewise.
18353 (BU_P9_DFP_MISC_0): New macro definition.
18354 (BU_P9_DFP_MISC_1): New macro definition.
18355 (BU_P9_DFP_MISC_2): New macro definition.
18356 (BU_P9_DFP_OVERLOAD_1): New macro definition.
18357 (BU_P9_DFP_OVERLOAD_2): New macro definition.
18358 (BU_P9_DFP_OVERLOAD_3): New macro definition.
18359 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
18360 (TSTSFI_LT_TD): Likewise.
18361 (TSTSFI_EQ_DD): Likewise.
18362 (TSTSFI_EQ_TD): Likewise.
18363 (TSTSFI_GT_DD): Likewise.
18364 (TSTSFI_GT_TD): Likewise.
18365 (TSTSFI_OV_DD): Likewise.
18366 (TSTSFI_OV_TD): Likewise.
18367 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
18368 (TSTSFI_LT_DD): Likewise.
18369 (TSTSFI_LT_TD): Likewise.
18370 (TSTSFI_EQ): Likewise.
18371 (TSTSFI_EQ_DD): Likewise.
18372 (TSTSFI_EQ_TD): Likewise.
18373 (TSTSFI_GT): Likewise.
18374 (TSTSFI_GT_DD): Likewise.
18375 (TSTSFI_GT_TD): Likewise.
18376 (TSTSFI_OV): Likewise.
18377 (TSTSFI_OV_DD): Likewise.
18378 (TSTSFI_OV_TD): Likewise.
18379 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18380 overloaded test significance functions.
18381 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
18382 OPTION_MASK_P9_MISC into the representation of this mask.
18383 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
18384 of this mask.
18385 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
18386 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
18387 non-zero.
18388 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
18389 argument is a 6-bit unsigned literal value if the icode argument
18390 represents a DFP test significance built-in call.
18391 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
18392 flag used independently and in combination with the
18393 RS6000_BTM_64BIT flag.
18394 (rs6000_opt_masks): Add entry for power9-misc command-line option.
18395 (rs6000_builtin_mask_names): Add entry for power9-misc
18396 command-line option.
18397 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
18398 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
18399 RS6000_BTM_P9_MISC macros.
18400 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
18401 option and change the description of the -mpower9-vector option to
18402 enable only vector instructions, removing its erroneously claimed
18403 support for scalar instructions.
18404 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
18405 the ISA 3.0 digital floating point test significance built-in
18406 functions.
18407
18408 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
18409
18410 * config/aarch64/aarch64.c (cortexa35_tunings):
18411 Enable AES fusion. Use cortexa57_branch_cost.
18412 (cortexa53_tunings): Use cortexa57_branch_cost.
18413 (cortexa72_tunings): Use cortexa57_branch_cost.
18414 Use AUTOPREFETCHER_WEAK.
18415 (cortexa73_tunings): Use cortexa57_branch_cost.
18416
18417 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18418 James Greenhalgh <james.greenhalgh@arm.com>
18419
18420 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
18421 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
18422 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
18423 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
18424 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
18425 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
18426 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
18427 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
18428 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
18429 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
18430 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
18431 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
18432 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
18433 New intrinsics.
18434
18435 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
18436 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18437
18438 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
18439 New define_insn.
18440 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
18441
18442 2016-06-30 David Malcolm <dmalcolm@redhat.com>
18443
18444 PR driver/71651
18445 * gcc.c (driver::build_option_suggestions): Pass "option" to
18446 add_misspelling_candidates.
18447 * opts-common.c (add_misspelling_candidates): Add "option" param;
18448 use it to avoid adding negated forms for options marked with
18449 RejectNegative.
18450 * opts.h (add_misspelling_candidates): Add "option" param.
18451
18452 2016-06-30 Jakub Jelinek <jakub@redhat.com>
18453
18454 PR middle-end/71693
18455 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
18456 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
18457 first when permuting bitwise operation with rotate. Cast
18458 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
18459
18460 2016-06-29 David Malcolm <dmalcolm@redhat.com>
18461
18462 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
18463 for misspelled param names.
18464 * params.c: Include spellcheck.h.
18465 (find_param_fuzzy): New function.
18466 * params.h (find_param_fuzzy): New prototype.
18467 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
18468 * spellcheck.h (struct edit_distance_traits<const char *>):
18469 ...here.
18470
18471 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
18472
18473 * config/rs6000/predicates.md (const_0_to_7_operand): New
18474 predicate, recognize 0..7.
18475 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18476 support for doing extracts from V16QImode, V8HImode, V4SImode
18477 under ISA 3.0.
18478 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
18479 vector extract support.
18480 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
18481 for ISA 3.0 vector extract.
18482 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
18483 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
18484 extracts of a constant element number from small integer vectors
18485 on 64-bit ISA 3.0 systems.
18486 (vsx_extract_<mode>_di): Likewise.
18487 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
18488 say when we can do ISA 3.0 vector extracts.
18489 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
18490 registers, using the stxsiwx instruction.
18491
18492 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
18493
18494 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
18495 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
18496 qdf24xx_regmove_cost, qdf24xx_tunings): New.
18497 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
18498 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
18499 * config/arm/arm.c (arm_qdf24xx_tune): New.
18500
18501 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
18502
18503 * config/aarch64/aarch64.c (cortexa53_tunings):
18504 Increase loop alignment to 8. Set function alignment to 16.
18505 (cortexa35_tunings): Likewise.
18506 (cortexa57_tunings): Increase loop alignment to 8.
18507 (cortexa72_tunings): Likewise.
18508 (cortexa73_tunings): Likewise.
18509
18510 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
18511
18512 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
18513 for arm_fp16_ok and arm_fp16_hw.
18514 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
18515 arm_fp16_alternative.
18516
18517 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
18518
18519 PR tree-optimization/71655
18520 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
18521 types when swapping operands.
18522
18523 2016-06-29 Martin Liska <mliska@suse.cz>
18524
18525 PR middle-end/71585
18526 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
18527 * ipa-inline-transform.c (inline_call): Remove unnecessary call
18528 of build_optimization_node.
18529
18530 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
18531
18532 PR tree-optimization/70729
18533 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
18534 independent in loops having positive safelen value.
18535 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
18536 it may be not valid after vectorization.
18537
18538 2016-06-29 Jakub Jelinek <jakub@redhat.com>
18539
18540 PR tree-optimization/71625
18541 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
18542 is sorted by ascending list->offset. If PTR is non-NULL and there is
18543 previous strinfo, call get_stridx_plus_constant.
18544 (get_stridx): Pass exp as second argument to get_addr_stridx.
18545 (addr_stridxptr): Add missing list = list->next, so that there can be
18546 more than one entries in the list. Bump limit from 16 to 32. Ensure
18547 the list is sorted by ascending list->offset.
18548 (get_stridx_plus_constant): Adjust so that it can be also called with
18549 ADDR_EXPR instead of SSA_NAME as PTR.
18550 (handle_char_store): Pass NULL_TREE as second argument to
18551 get_addr_stridx.
18552
18553 2016-06-29 Richard Biener <rguenther@suse.de>
18554
18555 PR rtl-optimization/68961
18556 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
18557
18558 2016-06-29 Richard Biener <rguenther@suse.de>
18559
18560 PR middle-end/71002
18561 * alias.c (component_uses_parent_alias_set_from): Handle
18562 type punning through union accesses by using the union alias set.
18563 * gimple.c (gimple_get_alias_set): Remove union type punning case.
18564
18565 2016-07-29 Richard Biener <rguenther@suse.de>
18566
18567 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
18568 precision not matching mode precision.
18569
18570 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
18571
18572 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
18573 pa_output_arg_descriptor.
18574 (call_val_symref_64bit_post_reload): Likewise.
18575 (call_val_powf_64bit_post_reload): Likewise.
18576 (sibcall_internal_symref_64bit): Likewise.
18577 (sibcall_value_internal_symref_64bit): Likewise.
18578
18579 2016-06-28 Jakub Jelinek <jakub@redhat.com>
18580
18581 PR middle-end/71626
18582 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
18583 a constant, force its SUBREG_REG into memory or register instead
18584 of whole op1.
18585
18586 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18587
18588 PR target/58655
18589 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
18590 * doc/invoke.texi (AVR Options): Document it.
18591
18592 2016-06-28 Walter Lee <walt@tilera.com>
18593
18594 * config/tilegx/linux.h: Do not include arch/icache.h
18595 (CLEAR_INSN_CACHE): Provide inlined definition directly.
18596 * config/tilepro/linux.h: Do not include arch/icache.h
18597 (CLEAR_INSN_CACHE): Provide inlined definition directly.
18598
18599 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
18600
18601 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
18602 for big-endian BIT_FIELD_REF.
18603
18604 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
18605
18606 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
18607 ('size' attribute): Add '128'.
18608 Include power9.md.
18609 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
18610 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
18611 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
18612 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
18613 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
18614 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
18615 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
18616 *trunc<mode>df2_odd): Set size attribute to '128'.
18617 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
18618 * config/rs6000/power6.md (power6-fp): Include dfp type.
18619 * config/rs6000/power7.md (power7-fp): Likewise.
18620 * config/rs6000/power8.md (power8-fp): Likewise.
18621 * config/rs6000/power9.md: New file.
18622 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
18623 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
18624 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
18625 htmsimple.
18626 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
18627 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
18628 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
18629 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
18630 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
18631 dfp_dscri_<mode>): Change type attribute to dfp.
18632 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
18633 attribute to vecsimple.
18634 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
18635 and prefetch streams.
18636 (rs6000_option_override_internal): Remove temporary code setting
18637 tuning to power8. Don't set rs6000_sched_groups for power9.
18638 (last_scheduled_insn): Change to rtx_insn *.
18639 (divide_cnt, vec_load_pendulum): New variables.
18640 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
18641 (rs6000_issue_rate): Set issue rate for Power9.
18642 (is_power9_pairable_vec_type): New.
18643 (power9_sched_reorder2): New.
18644 (rs6000_sched_reorder2): Call new function for Power9 specific
18645 reordering.
18646 (insn_must_be_first_in_group): Remove Power9.
18647 (insn_must_be_last_in_group): Likewise.
18648 (force_new_group): Likewise.
18649 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
18650 Initialize divide_cnt/vec_load_pendulum.
18651 (_rs6000_sched_context, rs6000_init_sched_context,
18652 rs6000_set_sched_context): Handle context save/restore of new
18653 variables.
18654
18655 2016-06-28 Richard Biener <rguenther@suse.de>
18656
18657 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
18658 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
18659 COMPONENT_REF operand.
18660 (nonoverlapping_component_refs_p): Likewise.
18661 * stor-layout.c (start_bitfield_representative): Mark
18662 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
18663
18664 2016-06-28 Jakub Jelinek <jakub@redhat.com>
18665
18666 * Makefile.in: Don't cat ../stage_current if it does not exist.
18667
18668 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
18669 last argument is a bit-field.
18670
18671 PR rtl-optimization/71673
18672 * internal-fn.c (expand_arith_overflow_result_store): Use
18673 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
18674 expand_simple_binop.
18675
18676 PR middle-end/66867
18677 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
18678 expand_ifn_atomic_compare_exchange): New functions.
18679 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
18680 * tree.h (build_call_expr_internal_loc): Rename to ...
18681 (build_call_expr_internal_loc_array): ... this. Fix up type of
18682 last argument.
18683 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
18684 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
18685 ATOMIC_COMPARE_EXCHANGE result.
18686 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
18687 * gimple-fold.h (optimize_atomic_compare_exchange_p,
18688 fold_builtin_atomic_compare_exchange): New prototypes.
18689 * gimple-fold.c (optimize_atomic_compare_exchange_p,
18690 fold_builtin_atomic_compare_exchange): New functions..
18691 * tree-ssa.c (execute_update_addresses_taken): If
18692 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
18693 of call when finding addressable vars, and if such var becomes
18694 non-addressable, call fold_builtin_atomic_compare_exchange.
18695
18696 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
18697
18698 PR target/71670
18699 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
18700 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
18701
18702 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
18703
18704 * config/rs6000/rs6000.md ('type' attribute): Add
18705 veclogical,veccmpfx,vecexts,vecmove insn types.
18706 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
18707 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
18708 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
18709 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
18710 *nabs<mode>2_hw): Change type to vecmove.
18711 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
18712 *boolcc<mode>3_internal, *eqv<mode>3_internal,
18713 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
18714 *ieee_128bit_vsx_abs<mode>2_internal,
18715 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
18716 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
18717 *ieee128_mtvsrd_32bit): Change type to veclogical.
18718 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
18719 *movdi_internal32, *movdi_internal64): Update insn types.
18720 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
18721 vsx_extract_<mode>): Change type to veclogical.
18722 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
18723 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
18724 *vsx_sign_extend_si_v2di): Change type to vecexts.
18725 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
18726 type to veclogical.
18727 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
18728 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
18729 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
18730 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
18731 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
18732 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
18733 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
18734 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
18735 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
18736 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
18737 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
18738 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
18739 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
18740 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
18741 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
18742 (ppc7450-vecsimple): Add veclogical, vecmove.
18743 (ppc7450-veccmp): Add veccmpfx.
18744 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
18745 vecmove.
18746 (ppc8540_vector_compare): Add veccmpfx.
18747 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
18748 * config/rs6000/cell.md (cell-fp): Add fpsimple.
18749 (cell-vecsimple): Add veclogical, vecmove.
18750 (cell-veccmp): Add veccmpfx.
18751 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
18752 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
18753 veccmpfx.
18754 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
18755 * config/rs6000/power4.md (power4-fp): Add fpsimple.
18756 (power4-vecsimple): Add veclogical, vecmove.
18757 (power4-veccmp): Add veccmpfx.
18758 * config/rs6000/power5.md (power5-fp): Add fpsimple.
18759 * config/rs6000/power6.md (power6-fp): Add fpsimple.
18760 (power6-vecsimple): Add veclogical, vecmove.
18761 (power6-veccmp): Add veccmpfx.
18762 * config/rs6000/power7.md (power7-fp): Add fpsimple.
18763 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
18764 * config/rs6000/power8.md (power8-fp): Add fpsimple.
18765 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
18766 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
18767 * config/rs6000/titan.md (titan_fp): Add fpsimple.
18768 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
18769 fpsimple.
18770 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
18771
18772 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
18773
18774 PR target/71656
18775 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
18776 OPTION_MASK_P9_DFORM_VECTOR.
18777 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
18778 disable -mpower9-dform-vector when using reload.
18779 (quad_address_p): Remove 'gpr_p' argument and all associated code.
18780 New 'strict' argument. Update all callers. Add strict addressing
18781 support.
18782 (rs6000_legitimate_offset_address_p): Remove call to
18783 virtual_stack_registers_memory_p.
18784 (rs6000_legitimize_reload_address): Add quad address support.
18785 (rs6000_legitimate_address_p): Move call to quad_address_p above
18786 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
18787 to account for new strict usage.
18788 (rs6000_output_move_128bit): Adjust quad_address_p args to account
18789 for new strict usage.
18790 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
18791
18792 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
18793
18794 PR target/70902
18795 PR target/71453
18796 PR target/71555
18797 PR target/71596
18798 PR target/71657
18799 * config/i386/i386.c (ix86_spill_class): Disable condition to
18800 always return NO_REGS.
18801
18802 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
18803
18804 * predict.c: Include gimple-pretty-print.h
18805 (predicted_by_loop_heuristics_p): Check also
18806 PRED_LOOP_EXIT_WITH_RECURSION
18807 (predict_loops): Find self recursive calls and use special purpose
18808 predictors for them; dump log about decisions.
18809 (pass_profile::execute): Dump info about #of iterations.
18810 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
18811 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
18812
18813 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
18814
18815 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
18816 output_asm_insn calls and shorten long lines. Output .CALL
18817 argument descriptor using pa_output_arg_descriptor. Add various
18818 inline $$dyncall and other optimizations.
18819 (pa_attr_length_indirect_call): Adjust ordering and lengths.
18820
18821 2016-06-25 Jakub Jelinek <jakub@redhat.com>
18822
18823 PR tree-optimization/71643
18824 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
18825 EH preds.
18826
18827 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
18828 leak a bitmap if dep_bb is NULL.
18829
18830 PR tree-optimization/71631
18831 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
18832 to rewrite_expr_tree even if negate_result, move new_lhs var
18833 declaration and initialization earlier, for powi_result set afterwards
18834 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
18835 if new_lhs != lhs, and don't shadow gsi var.
18836
18837 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
18838
18839 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
18840 Add in_loop parameter.
18841 (predict_loops): Add loop guard heuristics.
18842 * predict.def (PRED_LOOP_GUARD): New heuristics.
18843
18844 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
18845
18846 * predict.c: Include ipa-utils.h
18847 (tree_bb_level_prediction): Predict recursive calls.
18848 (tree_estimate_probability_bb): Skip inexpensive calls for call
18849 predictor.
18850 * predict.def (PRED_RECURSIVE_CALL): New.
18851
18852 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18853
18854 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
18855 (BU_FLOAT128_1): Likewise.
18856 (FABSQ): Likewise.
18857 (COPYSIGNQ): Likewise.
18858 (RS6000_BUILTIN_NANQ): Likewise.
18859 (RS6000_BUILTIN_NANSQ): Likewise.
18860 (RS6000_BUILTIN_INFQ): Likewise.
18861 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
18862 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
18863 (TARGET_FOLD_BUILTIN): New #define.
18864 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
18865 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
18866 (rs6000_fold_builtin): New target hook implementation, handling
18867 folding of 128-bit NaNs and infinities.
18868 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
18869 entries are filled in to avoid problems during bootstrap
18870 self-test; define builtins for 128-bit NaNs and infinities.
18871 (rs6000_opt_mask): Add entry for float128.
18872 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
18873 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
18874 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
18875 (const_str_type_node): New #define.
18876 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
18877 to a define_expand that dispatches to either copysign<mode>3_soft
18878 or copysign<mode>3_hard.
18879 (copysign<mode>3_hard): Rename from copysign<mode>3.
18880 (copysign<mode>3_soft): New define_insn.
18881 * doc/extend.texi: Document new builtins.
18882
18883 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18884
18885 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
18886 PRIu64 instead of lu.
18887
18888 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
18889
18890 PR debug/71642
18891 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
18892 copy the type name.
18893
18894 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18895
18896 PR tree-optimization/71647
18897 * omp-low.c (lower_rec_input_clauses): Convert
18898 omp_clause_aligned_alignment (c) to size_type_node for the
18899 last argument of __builtin_assume_aligned.
18900
18901 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
18902
18903 * configure.ac (calling ___tls_get_addr via GOT): New
18904 assembler/linker check.
18905 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
18906 assembler and linker supports calling ___tls_get_addr via GOT.
18907 Otherise, defined to 0.
18908 * config.in: Regenerated.
18909 * configure: Likewise.
18910 * config/i386/constraints.md (Yb): New constraint.
18911 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
18912 (REG_CLASS_NAMES): Likewise.
18913 (REG_CLASS_CONTENTS): Likewise.
18914 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
18915 the b constraint with the Yb constraint. Call ___tls_get_addr
18916 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
18917 is 1.
18918 (*tls_local_dynamic_base_32_gnu): Likewise.
18919 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
18920 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
18921 (*tls_local_dynamic_base_64_<mode>): Likewise.
18922
18923 2016-06-24 Martin Liska <mliska@suse.cz>
18924
18925 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
18926 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
18927 few functions.
18928 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
18929 argument to true if the expected number of iterations is
18930 loop-based.
18931
18932 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
18933
18934 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
18935 assemble for 32bit target.
18936 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
18937 and $ld_ix86_gld_32_opt to link for 32bit target.
18938 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
18939 * configure: Regenerate.
18940
18941 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18942
18943 * config/arm/arm.c (int_log2): Delete definition and prototype.
18944 (shift_op): Use exact_log2 instead of int_log2.
18945 (vfp3_const_double_for_fract_bits): Likewise.
18946
18947 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18948
18949 * internal-fn.c (expand_arith_set_overflow): New function.
18950 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
18951 Use it.
18952 (expand_arith_overflow_result_store): Likewise. Handle precision
18953 smaller than mode precision.
18954 * tree-vrp.c (extract_range_basic): For imag part, handle
18955 properly signed 1-bit precision result.
18956 * doc/extend.texi (__builtin_add_overflow): Document that last
18957 argument can't be pointer to enumerated or boolean type.
18958 (__builtin_add_overflow_p): Document that last argument can't
18959 have enumerated or boolean type.
18960
18961 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
18962 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18963
18964 * config/rs6000/predicates.md (splat_input_operand): Rework.
18965 Don't allow constants, since the insns that use this predicate
18966 don't support constants. Constants are handled by other insns
18967 that are created via combine. During and after register
18968 allocation, only allow indexed or indirect addresses, and not
18969 general addresses. Only allow modes supported by the hardware.
18970 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
18971 comment. Move check for using VSPLTIS<x> to a common location,
18972 instead of doing it in two different places.
18973
18974 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
18975
18976 * config/i386/driver-i386.c (host_detect_local_cpu): Set
18977 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
18978 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
18979 signature_CENTAUR_ebx.
18980
18981 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
18982
18983 PR target/66232
18984 PR target/67400
18985 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
18986 (as_ix86_gas_32_opt): This.
18987 (ld_ix86_tls_ldm_opt): Renamed to ...
18988 (ld_ix86_gld_32_opt): This.
18989 (R_386_TLS_LDM reloc): Updated.
18990 (R_386_GOT32X reloc): New assembler/linker check.
18991 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
18992 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
18993 defined to 0.
18994 * config.in: Regenerated.
18995 * configure: Likewise.
18996 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
18997 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
18998 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
18999 if ix86_force_load_from_GOT_p returns true.
19000 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
19001 ix86_force_load_from_GOT_p returns true.
19002 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
19003 the external function address via the GOT slot.
19004 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
19005 HAVE_AS_IX86_GOT32X before returning false.
19006 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
19007 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
19008
19009 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
19010
19011 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
19012
19013 2016-06-23 Andi Kleen <ak@linux.intel.com>
19014
19015 * Makefile.in: Regenerate.
19016 * doc/install.texi: Document autoprofiledbootstrap.
19017
19018 2016-06-23 Andi Kleen <ak@linux.intel.com>
19019
19020 * config/i386/gcc-auto-profile: New file.
19021
19022 2016-06-23 Martin Liska <mliska@suse.cz>
19023
19024 PR middle-end/71619
19025 * predict.c (predict_loops): Revert the hunk that was removed
19026 in r237103.
19027
19028 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
19029
19030 * config.gcc: Add support for arm*-*-phoenix* targets.
19031 * config/arm/t-phoenix: New.
19032 * config/phoenix.h: New.
19033
19034 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
19035 H.J. Lu <hongjiu.lu@intel.com>
19036
19037 PR target/67400
19038 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
19039 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
19040 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
19041 ix86_force_load_from_GOT_p returns true.
19042 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
19043 ix86_force_load_from_GOT_p returns true.
19044 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
19045 ix86_force_load_from_GOT_p returns true.
19046 (ix86_expand_move): Load the external function address via the
19047 GOT slot if ix86_force_load_from_GOT_p returns true.
19048 * config/i386/predicates.md (x86_64_immediate_operand): Return
19049 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
19050 (x86_64_zext_immediate_operand): Ditto.
19051
19052 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
19053
19054 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
19055
19056 2016-06-22 David Malcolm <dmalcolm@redhat.com>
19057
19058 PR c/70339
19059 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
19060 * diagnostic.c (pedwarn_at_rich_loc): New function.
19061 * spellcheck.h (best_match::best_match): Add a
19062 "best_distance_so_far" optional parameter.
19063 (best_match::set_best_so_far): New method.
19064 (best_match::get_best_distance): New accessor.
19065 (best_match::get_best_candidate_length): New accessor.
19066
19067 2016-06-22 Nick Clifton <nickc@redhat.com>
19068
19069 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
19070 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
19071 modes are accepted as well.
19072 (ucompare_loc_descriptor): Likewise.
19073 (minmax_loc_descriptor): Likewise.
19074 (clz_loc_descriptor): Likewise.
19075 (popcount_loc_descriptor): Likewise.
19076 (bswap_loc_descriptor): Likewise.
19077 (rotate_loc_descriptor): Likewise.
19078 (mem_loc_descriptor): Likewise.
19079 (loc_descriptor): Likewise.
19080
19081 2016-06-22 David Malcolm <dmalcolm@redhat.com>
19082
19083 * common.opt (fdiagnostics-parseable-fixits): New option.
19084 * diagnostic.c: Include "selftest.h".
19085 (print_escaped_string): New function.
19086 (print_parseable_fixits): New function.
19087 (diagnostic_report_diagnostic): Call print_parseable_fixits.
19088 (selftest::assert_print_escaped_string): New function.
19089 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
19090 (selftest::test_print_escaped_string): New function.
19091 (selftest::test_print_parseable_fixits_none): New function.
19092 (selftest::test_print_parseable_fixits_insert): New function.
19093 (selftest::test_print_parseable_fixits_remove): New function.
19094 (selftest::test_print_parseable_fixits_replace): New function.
19095 (selftest::diagnostic_c_tests): New function.
19096 * diagnostic.h (struct diagnostic_context): Add field
19097 "parseable_fixits_p".
19098 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
19099 -fdiagnostics-parseable-fixits.
19100 (-fdiagnostics-parseable-fixits): New option.
19101 * opts.c (common_handle_option): Handle
19102 -fdiagnostics-parseable-fixits.
19103 * selftest-run-tests.c (selftest::run_tests): Call
19104 selftest::diagnostic_c_tests.
19105 * selftest.h (selftest::diagnostic_c_tests): New prototype.
19106
19107 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
19108
19109 PR tree-optimization/71488
19110 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
19111 comparison of boolean vectors.
19112 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
19113 of boolean vectors using bitwise operations.
19114
19115 2016-06-22 Andreas Schwab <schwab@suse.de>
19116
19117 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
19118 Remove declaration.
19119
19120 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
19121
19122 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
19123
19124 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
19125
19126 * config/i386/i386.c (print_reg): Emit an error message on attempt to
19127 print FLAGS_REG.
19128
19129 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19130
19131 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
19132 * config/arm/arm-cores.def (cortex-a73): New entry.
19133 (cortex-a73.cortex-a35): Likewise.
19134 (cortex-a73.cortex-a53): Likewise.
19135 * config/arm/arm-tables.opt: Regenerate.
19136 * config/arm/arm-tune.md: Likewise.
19137 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
19138 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19139 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
19140 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19141 * doc/invoke.texi (ARM Options): Document cortex-a73,
19142 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
19143
19144 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19145
19146 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
19147 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
19148 (cortex-a73.cortex-a35): Likewise.
19149 (cortex-a73.cortex-a53): Likewise.
19150 * config/aarch64/aarch64-tune.md: Regenerate.
19151 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
19152 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
19153 -mcpu and -mtune.
19154
19155 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19156
19157 * configure.ac (gcc_cv_as_compress_debug): Remove
19158 --compress-debug-sections as extra as switch.
19159 Handle gas --compress-debug-sections=type.
19160 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
19161 Handle gld --compress-debug-sections=type.
19162 * configure: Regenerate.
19163
19164 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
19165
19166 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
19167
19168 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
19169
19170 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
19171 (do_rewrite): likewise.
19172
19173 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19174
19175 * common/config/mep/mep-common.c: Remove.
19176 * config.gcc: Remove mep-* support.
19177 * config/mep/constraints.md: Remove.
19178 * config/mep/default.h: Remove.
19179 * config/mep/intrinsics.h: Remove.
19180 * config/mep/intrinsics.md: Remove.
19181 * config/mep/ivc2-template.h: Remove.
19182 * config/mep/mep-c5.cpu: Remove.
19183 * config/mep/mep-core.cpu: Remove.
19184 * config/mep/mep-default.cpu: Remove.
19185 * config/mep/mep-ext-cop.cpu: Remove.
19186 * config/mep/mep-intrin.h: Remove.
19187 * config/mep/mep-ivc2.cpu: Remove.
19188 * config/mep/mep-pragma.c: Remove.
19189 * config/mep/mep-protos.h: Remove.
19190 * config/mep/mep.c: Remove.
19191 * config/mep/mep.cpu: Remove.
19192 * config/mep/mep.h: Remove.
19193 * config/mep/mep.md: Remove.
19194 * config/mep/mep.opt: Remove.
19195 * config/mep/predicates.md: Remove.
19196 * config/mep/t-mep: Remove.
19197 * doc/install.texi: Remove mep-* documentation.
19198 * doc/md.texi: Likewise.
19199
19200 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19201
19202 * config.gcc: Remove support for avr-rtems.
19203 * config/avr/gen-avr-mmcu-specs.c: Likewise.
19204 * config/avr/rtems.h: Remove.
19205 * config/avr/t-rtems: Remove.
19206
19207 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19208
19209 * config.gcc: Remove m32r-rtems support.
19210 * config/m32r/rtems.h: Remove.
19211
19212 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19213
19214 * config.gcc: Remove h8300-rtems support.
19215 * config/h8300/rtems.h: Remove.
19216 * config/h8300/t-rtems: Remove.
19217
19218 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19219
19220 * config.gcc: Remove support for knetbsd.
19221 * configure.ac: Likewise.
19222 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
19223 * config/knetbsd-gnu.h: Remove.
19224 * configure: Regenerate.
19225
19226 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19227
19228 * config.gcc: Remove support for openbsd 2 and 3.
19229 * config/openbsd-oldgas.h: Remove.
19230
19231 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19232
19233 * config.gcc: Remove interix support.
19234 * config/i386/i386-interix.h: Remove.
19235 * config/i386/interix.opt: Remove.
19236 * config/i386/t-interix: Remove.
19237 * configure: Regenerate.
19238 * configure.ac: Remove interix support.
19239 * doc/install.texi: Remove interix documentation.
19240
19241 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
19242
19243 * config/rs6000/rs6000.h: Add conditional preprocessing directives
19244 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
19245 not defined.
19246
19247 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
19248
19249 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
19250 they are both PLACEHOLDER_EXPRs.
19251
19252 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19253
19254 * stor-layout.c (layout_type): Move setting complex MODE to
19255 layout_type, instead of setting it ahead of time by the caller.
19256 * tree.c (build_complex_type): Likewise.
19257
19258 2016-06-21 Martin Liska <mliska@suse.cz>
19259
19260 * predict.c (force_edge_cold): Replace imposisble with
19261 impossible.
19262
19263 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
19264
19265 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
19266 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
19267
19268 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
19269
19270 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
19271
19272 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
19273 Ilya Enkovich <ilya.enkovich@intel.com>
19274
19275 PR target/71549
19276 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
19277 New member function to convert V1TImode register to SUBREG
19278 TImode in debug insn.
19279 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
19280 after changing register mode to V1TImode.
19281
19282 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
19283
19284 * config/aarch64/aarch64-cores.def (vulcan): New core.
19285 * config/aarch64/aarch64-tune.md: Regenerate.
19286 * doc/invoke.texi: Document vulcan as an available option.
19287
19288 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
19289
19290 * cse.c (canon_asm_operands): New function extracted from...
19291 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
19292 either standalone or member of a PARALLEL.
19293
19294 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
19295
19296 PR target/30417
19297 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
19298 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
19299 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
19300
19301 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
19302
19303 PR target/71103
19304 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
19305 constant addresses if can_create_pseudo_p.
19306
19307 2016-06-21 Jakub Jelinek <jakub@redhat.com>
19308
19309 PR tree-optimization/71588
19310 * tree-ssa-strlen.c (valid_builtin_call): New function.
19311 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
19312 it.
19313
19314 2016-06-20 Jakub Jelinek <jakub@redhat.com>
19315
19316 PR middle-end/71581
19317 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
19318 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
19319 for conversion of scalar user var to complex type and use the
19320 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
19321 punt.
19322
19323 PR rtl-optimization/71591
19324 * toplev.c (toplev::run_self_tests): If no_backend, complain and
19325 don't run any tests.
19326
19327 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
19328
19329 PR target/71571
19330 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
19331 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
19332 space for PIC with non-v32 and the common non-PIC "jump".
19333
19334 2016-06-20 Jakub Jelinek <jakub@redhat.com>
19335
19336 PR target/71559
19337 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
19338 returned values and add UN*/LTGT/*ORDERED cases with values matching
19339 D operand modifier on vcmp for AVX.
19340
19341 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19342
19343 * config/aarch64/aarch64.opt
19344 (mpc-relative-literal-loads): Rename internal option name.
19345 * config/aarch64/aarch64.c
19346 (aarch64_nopcrelative_literal_loads): Rename to
19347 aarch64_pcrelative_literal_loads.
19348 (aarch64_expand_mov_immediate): Likewise.
19349 (aarch64_secondary_reload): Likewise.
19350 (aarch64_can_use_per_function_literal_pools_p): Likewise.
19351 (aarch64_override_options_after_change_1): Rename and simplify logic.
19352 (aarch64_classify_symbol): Merge large model checks into switch,
19353 remove pc-relative load check.
19354
19355 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19356
19357 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
19358 costs relative to the cost of a register move.
19359
19360 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19361
19362 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
19363 (vcvt_n_f64_u64): Likewise.
19364 (vcvt_n_s64_f64): Likewise.
19365 (vcvt_n_u64_f64): Likewise.
19366 (vcvt_f64_s64): Likewise.
19367 (vrecpe_f64): Likewise.
19368 (vcvt_f64_u64): Likewise.
19369 (vrecps_f64): Likewise.
19370
19371 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19372
19373 * config/aarch64/aarch64.md
19374 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
19375 iterators.
19376 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
19377 attributes.
19378 * config/aarch64/aarch64-builtins.c
19379 (aarch64_types_binop_uss_qualifiers): Delete.
19380 (TYPES_BINOP_USS): Likewise.
19381 (aarch64_types_binop_sus_qualifiers): Likewise.
19382 (TYPES_BINOP_SUS): Likewise.
19383 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
19384 (TYPES_FCVTIMM_SUS): Likewise.
19385 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
19386 rather than BINOP.
19387 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
19388 (fcvtzs): Use SHIFTIMM rather than BINOP.
19389 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
19390
19391 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19392
19393 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
19394 costs relative to the cost of a register move.
19395
19396 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19397
19398 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
19399 Allow scalar/single vector modes to be tieable.
19400
19401 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19402
19403 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
19404
19405 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19406
19407 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
19408 "alignement".
19409 * tree.h (TYPE_ALIGN): Likewise.
19410
19411 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
19412
19413 PR target/71103
19414 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
19415
19416 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
19417
19418 * config/avr/avr.c (avr_print_operand): Fix "format not a string
19419 literal" build warnings.
19420 (avr_print_operand_address): Dito.
19421
19422 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
19423
19424 PR target/71375
19425 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
19426 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
19427
19428 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
19429
19430 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
19431
19432 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
19433
19434 PR bootstrap/71435
19435 * reload1.c (reload): Pass 0 to finish_spills when called because
19436 update_eliminables_and_spill returns true and remove did_spill.
19437 (finish_spills): Adjust comment and document GLOBAL parameter.
19438
19439 2016-06-17 DJ Delorie <dj@redhat.com>
19440
19441 PR target/71338
19442 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
19443 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
19444 (umulqihi3_virt): Likewise.
19445 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
19446 (umulqihi3_real): Likewise.
19447
19448 2016-06-17 Martin Liska <mliska@suse.cz>
19449
19450 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
19451
19452 2016-06-17 Martin Liska <mliska@suse.cz>
19453
19454 * predict.def: PRED_LOOP_EXIT from 92 to 85.
19455
19456 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
19457
19458 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
19459 __FAST_MATH__.
19460 (vaddq_f32): Likewise.
19461 (vmul_f32): Likewise.
19462 (vmulq_f32): Likewise.
19463 (vsub_f32): Likewise.
19464 (vsubq_f32): Likewise.
19465
19466 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19467
19468 PR tree-optimization/71347
19469 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
19470 cost for all uses in group.
19471
19472 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19473
19474 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
19475 insert gimple seq if it's not empty.
19476
19477 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19478
19479 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
19480 member OFFSET.
19481 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
19482 rather than OFFSET.
19483 (comp_dr_with_seg_len_pair): Ditto.
19484 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
19485 struct dr_with_seg_len_pair against DR_OFFSET.
19486 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
19487 DR_OFFSET directly.
19488
19489 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
19490
19491 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
19492
19493 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
19494
19495 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
19496 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
19497 (pa_output_millicode_call): Likewise.
19498 (pa_output_call): Likewise.
19499 (pa_output_indirect_call): Likewise.
19500 (pa_asm_output_mi_thunk): Likewise.
19501
19502 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19503
19504 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
19505
19506 2016-06-16 Martin Liska <mliska@suse.cz>
19507
19508 * predict.c (combine_predictions_for_insn): When we find a first
19509 match predictor, we should consider just predictors with
19510 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
19511 DS theory predictor.
19512 (combine_predictions_for_bb): Likewise.
19513
19514 2016-06-16 Jakub Jelinek <jakub@redhat.com>
19515
19516 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
19517 with base of reference to struct.
19518
19519 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
19520
19521 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
19522
19523 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19524
19525 PR target/71151
19526 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
19527 progmem_swtable_section.
19528 (progmem_swtable_section): Remove.
19529 (avr_asm_function_rodata_section): Remove.
19530 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
19531 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
19532
19533 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
19534
19535 * config/i386/driver-i386.c (host_detect_local_cpu): Set
19536 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
19537 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
19538 signature_CENTAUR_ebx.
19539 * config/i386/i386.c (ix86_option_override_internal): Add
19540 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
19541 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
19542 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
19543
19544 2016-06-16 Martin Liska <mliska@suse.cz>
19545
19546 * predict.def: Add fortran loop preheader predictor.
19547 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
19548 fold IFN_BUILTIN_EXPECT with a known constant argument.
19549
19550 2016-06-16 Martin Liska <mliska@suse.cz>
19551
19552 * predict.def: Add 'Fortran' to display text of all
19553 PRED_FORTRAN_* predictors.
19554
19555 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
19556
19557 PR target/71242
19558 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
19559 [IA64_BUILTIN_NANSQ]: Ditto.
19560 (ia64_fold_builtin): New function.
19561 (TARGET_FOLD_BUILTIN): New define.
19562 (ia64_init_builtins) Declare const_string_type node.
19563 Add __builtin_nanq and __builtin_nansq builtin functions.
19564 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
19565
19566 2016-06-16 Nick Clifton <nickc@redhat.com>
19567
19568 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
19569 MSP430_HWMULT_ prefix to enum values.
19570 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
19571 * config/msp430/msp430.c: Update use of enum values.
19572 * config/msp430/msp430.md: Likewise.
19573 * config/msp430/msp430.opt: Likewise.
19574
19575 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
19576
19577 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
19578 of comparsions in the last iteration.
19579
19580 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
19581 Joern Rennecke <joern.rennecke@embecosm.com>
19582
19583 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
19584 addresses.
19585 (arc_needs_pcl_p): Add GOTOFFPC.
19586 (arc_legitimate_pic_addr_p): Likewise.
19587 (arc_output_pic_addr_const): Likewise.
19588 (arc_legitimize_pic_address): Generate a pc-relative address using
19589 GOTOFFPC.
19590 (arc_output_libcall): Use @pcl syntax.
19591 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
19592 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
19593 (*movsi_insn): Use @pcl syntax.
19594 (doloop_begin_i): Likewise.
19595
19596 2016-06-16 Martin Liska <mliska@suse.cz>
19597
19598 * predict.def: Define a new predictor.
19599
19600 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
19601
19602 * config/arc/arc.opt (mtp-regno): Update text.
19603
19604 2016-06-16 Renlin Li <renlin.li@arm.com>
19605
19606 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
19607
19608 2016-06-16 Jakub Jelinek <jakub@redhat.com>
19609
19610 PR target/71554
19611 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
19612 (setcc + and peephole2): Likewise.
19613
19614 PR rtl-optimization/71532
19615 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
19616 memory slots.
19617
19618 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
19619
19620 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
19621 DImode constants with XXSPLTIB in vector registers.
19622 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
19623 vsx_extract_<mode>_internal{1,2} into a single insn that handles
19624 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
19625 extraction of the element at the top of the register as a scalar
19626 value.
19627 (vsx_extract_<mode>_internal1): Likewise.
19628 (vsx_extract_<mode>_internal2): Likewise.
19629 * config/rs6000/constraints.md (wi constraint): Remove a comment
19630 about DImode not being allowed in Altivec registers.
19631 (wB constraint): New constraint for constants that can be
19632 generated in Altivec registers with VSPLTISW/VUPKHSW.
19633 * config/rs6000/predicates.md (xxspltib_constant_split): Update
19634 comments.
19635 (xxspltib_constant_nosplit): Likewise.
19636 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
19637 support for -mupper-regs-di to enable DImode to go into Altivec
19638 registers.
19639 (POWERPC_MASKS): Likewise.
19640 (power7 cpu): Likewise.
19641 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
19642 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
19643 for DImode being allowed in Altivec registers. Update wi/wj
19644 constraints. Set scalar_in_vmx_p flag.
19645 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
19646 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
19647 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
19648 (rs6000_opt_masks): Add -mupper-regs-di.
19649 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
19650 direct move to use wi and not wj.
19651 (lfiwzx): Likewise.
19652 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
19653 alternative.
19654 (floatunssi<mode>2_lfiwzx_mem): Likewise.
19655 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
19656 any VSX register, instead of just Altivec registers, to allow
19657 either operand to be an Altivec register or both.
19658 (fixuns_trunc<mode>di2_fctiduz): Likewise.
19659 (movdi_internal32): Add support for -mupper-regs-di. Add support
19660 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
19661 the alternatives and attributes to be lined up to be easier to
19662 read.
19663 (movdi_internal64): Likewise.
19664 (64-bit DImode splitters): Change predicates to only split loading
19665 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
19666 load constants in ISA 3.0 or ISA 2.07 respectively.
19667 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
19668 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
19669 mention -mcpu=power9 sets these options.
19670 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
19671 wB constraint.
19672
19673 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19674
19675 PR target/67353
19676 * config/avr/avr.c (avr_set_current_function): Warn misspelled
19677 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
19678 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
19679 by default to warn misspelled interrupt/ signal handler.
19680 * doc/invoke.texi (AVR Options): Document it. Update description
19681 for -nodevicelib option.
19682
19683 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19684
19685 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
19686 up parentheses. Use GET_MODE_UNIT_BITSIZE.
19687 (aarch64_<sur>shll2_n<mode>): Likewise.
19688
19689 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
19690
19691 PR middle-end/71529
19692 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
19693 DECL_CONTEXT for copied arguments.
19694
19695 2016-06-15 Alan Hayward <alan.hayward@arm.com>
19696
19697 PR tree-optimization/71483
19698 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
19699 for slp
19700
19701 2016-06-15 Martin Liska <mliska@suse.cz>
19702
19703 * predict.c (tree_predict_by_opcode): Call predict_edge_def
19704 instead of predict_edge w/o a probability.
19705
19706 2016-06-15 Alan Hayward <alan.hayward@arm.com>
19707
19708 PR tree-optimization/71439
19709 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
19710 live PHIs.
19711
19712 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19713
19714 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
19715 register subregs in SET_SRC.
19716
19717 2016-06-15 Richard Biener <rguenther@suse.de>
19718
19719 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
19720 store restrictions.
19721
19722 2016-06-15 Richard Biener <rguenther@suse.de>
19723
19724 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
19725 not consider dependences between accesses that belong to the
19726 same group.
19727 (vect_analyze_data_ref_dependences): Do not analyze read-read
19728 or self-dependences.
19729
19730 2016-06-14 David Malcolm <dmalcolm@redhat.com>
19731
19732 * spellcheck-tree.c: Include spellcheck-tree.h rather than
19733 spellcheck.h.
19734 (find_closest_identifier): Reimplement in terms of
19735 best_match<tree,tree>.
19736 * spellcheck-tree.h: New file.
19737 * spellcheck.c (struct edit_distance_traits<const char *>): New
19738 struct.
19739 (find_closest_string): Reimplement in terms of
19740 best_match<const char *, const char *>.
19741 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
19742 overload to spellcheck-tree.h.
19743 (find_closest_identifier): Likewise.
19744 (struct edit_distance_traits<T>): New template.
19745 (class best_match): New class.
19746
19747 2016-06-14 David Malcolm <dmalcolm@redhat.com>
19748
19749 * selftest-run-tests.c (selftest::run_tests): Call
19750 selftest::spellcheck_tree_c_tests.
19751 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
19752 * spellcheck-tree.c: Include selftest.h and stringpool.h.
19753 (selftest::test_find_closest_identifier): New function.
19754 (selftest::spellcheck_tree_c_tests): New function.
19755 * spellcheck.c (selftest::test_find_closest_string): Verify that
19756 the order of the vec does not affect the results for this case.
19757 (selftest::test_data): New array.
19758 (selftest::test_metric_conditions): New function.
19759 (selftest::spellcheck_c_tests): Add a test of case-comparison.
19760 Call selftest::test_metric_conditions.
19761
19762 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19763
19764 * config/rs6000/rs6000-builtin.def (commentary): Typo.
19765 (BU_P9_MISC_1): Likewise.
19766 (BU_P9_64BIT_MISC_0): Likewise.
19767 (BU_P9_MISC_0): Likewise.
19768
19769 2016-06-14 David Malcolm <dmalcolm@redhat.com>
19770
19771 * gcc-rich-location.c
19772 (gcc_rich_location::add_fixit_misspelled_id): New method.
19773 * gcc-rich-location.h
19774 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
19775
19776 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
19777
19778 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
19779 FreeBSD 11 and above.
19780
19781 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
19782
19783 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
19784
19785 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19786
19787 * expmed.h: Close parenthesis in "at your option" in copyright
19788 boilerplate.
19789 * lower-subreg.h: Likewise.
19790
19791 2016-06-14 Richard Biener <rguenther@suse.de>
19792
19793 PR middle-end/71526
19794 * genmatch.c (expr::gen_transform): Use in_type for comparisons
19795 if available.
19796
19797 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19798
19799 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
19800 New function.
19801 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
19802 mask+shift version.
19803 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
19804 New prototype.
19805 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
19806 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
19807
19808 2016-06-14 Richard Biener <rguenther@suse.de>
19809
19810 PR tree-optimization/71522
19811 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
19812 copying into float copying.
19813
19814 2016-06-14 Jakub Jelinek <jakub@redhat.com>
19815
19816 PR tree-optimization/71520
19817 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
19818 (replace_block_by): Move user labels from bb1 to bb2.
19819
19820 2016-06-14 Richard Biener <rguenther@suse.de>
19821
19822 PR middle-end/71310
19823 PR bootstrap/71510
19824 * expr.h (get_bit_range): Declare.
19825 * expr.c (get_bit_range): Export.
19826 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
19827 word_mode again to constrain the bitfield access.
19828
19829 2016-06-14 Richard Biener <rguenther@suse.de>
19830
19831 PR tree-optimization/71521
19832 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
19833 division int_const_binop against zero divisor.
19834
19835 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
19836
19837 * config/i386/i386.md (signbittf2): New expander.
19838 * config/i386/sse.md (ptesttf2): New insn pattern.
19839
19840 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19841
19842 PR bootstrap/71481
19843 * input.c (selftest::test_reading_source_line): Avoid reading from
19844 __FILE__ by creating a tempfile with known content and reading
19845 from that instead.
19846
19847 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19848
19849 * pretty-print.c (assert_pp_format_colored): Skip the test if
19850 GCC_COLORS is set.
19851 (test_pp_format): Remove comment about GCC_COLORS.
19852
19853 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19854
19855 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
19856 * pretty-print.c (assert_pp_format_va): Add location param and use
19857 it with ASSERT_STREQ_AT.
19858 (assert_pp_format): Add location param and pass it to
19859 assert_pp_format_va.
19860 (assert_pp_format_colored): Likewise.
19861 (ASSERT_PP_FORMAT_1): New.
19862 (ASSERT_PP_FORMAT_2): New.
19863 (ASSERT_PP_FORMAT_3): New.
19864 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
19865 explicitly, or implicitly via the above macros.
19866 * selftest.c (selftest::pass): Use a selftest::location rather
19867 than file and line.
19868 (selftest::fail): Likewise. Print the function name.
19869 (selftest::fail_formatted): Likewise.
19870 (selftest::assert_streq): Use a selftest::location rather than
19871 file and line.
19872 * selftest.h (selftest::location): New struct.
19873 (SELFTEST_LOCATION): New macro.
19874 (selftest::pass): Accept a const location & rather than file
19875 and line.
19876 (selftest::fail): Likewise.
19877 (selftest::fail_formatted): Likewise.
19878 (selftest::assert_streq): Likewise.
19879 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
19880 (ASSERT_FALSE): Likewise.
19881 (ASSERT_EQ): Likewise.
19882 (ASSERT_NE): Likewise.
19883 (ASSERT_STREQ): Likewise.
19884 (ASSERT_PRED1): Likewise.
19885 (ASSERT_STREQ_AT): New macro.
19886
19887 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19888
19889 * selftest.c (selftest::fail_formatted): New function.
19890 (selftest::assert_streq): New function.
19891 * selftest.h (selftests::fail_formatted): New decl.
19892 (selftest::assert_streq): New decl.
19893 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
19894
19895 2016-06-13 Jeff Law <law@redhat.com>
19896
19897 PR tree-optimization/71403
19898 * tree-ssa-threadbackward.c
19899 (convert_and_register_jump_thread_path): No longer accept reference
19900 to path. Do not pop items off the path anymore.
19901 (fsm_find_control_statement_thread_paths): Do not allow threading
19902 to a deeper loop nest. Pop the last item off the path here rather
19903 than in convert_and_register_jump_thread_path.
19904
19905 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
19906 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
19907
19908 [AArch64] Emit division using the Newton series
19909
19910 * config/aarch64/aarch64-protos.h
19911 (cpu_approx_modes): Add new member "division".
19912 (aarch64_emit_approx_div): Declare new function.
19913 * config/aarch64/aarch64.c
19914 (generic_approx_modes): New member "division".
19915 (exynosm1_approx_modes): Likewise.
19916 (xgene1_approx_modes): Likewise.
19917 (aarch64_emit_approx_div): Define new function.
19918 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
19919 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
19920 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
19921 * doc/invoke.texi (-mlow-precision-div): Describe new option.
19922
19923 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
19924 Wilco Dijkstra <wilco.dijkstra@arm.com>
19925
19926 [AArch64] Emit square root using the Newton series
19927
19928 * config/aarch64/aarch64-protos.h
19929 (aarch64_emit_approx_rsqrt): Replace with new function
19930 "aarch64_emit_approx_sqrt".
19931 (cpu_approx_modes): New member "sqrt".
19932 * config/aarch64/aarch64.c
19933 (generic_approx_modes): New member "sqrt".
19934 (exynosm1_approx_modes): Likewise.
19935 (xgene1_approx_modes): Likewise.
19936 (aarch64_emit_approx_rsqrt): Replace with new function
19937 "aarch64_emit_approx_sqrt".
19938 (aarch64_override_options_after_change_1): Handle new option.
19939 * config/aarch64/aarch64-simd.md
19940 (rsqrt<mode>2): Use new function instead.
19941 (sqrt<mode>2): New expansion and insn definitions.
19942 * config/aarch64/aarch64.md: Likewise.
19943 * config/aarch64/aarch64.opt
19944 (mlow-precision-sqrt): Add new option description.
19945 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
19946
19947 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
19948
19949 [AArch64] Add more choices for the reciprocal square root approximation
19950
19951 Allow a target to prefer such operation depending on the operation mode.
19952
19953 * config/aarch64/aarch64-protos.h
19954 (AARCH64_APPROX_MODE): New macro.
19955 (AARCH64_APPROX_{NONE,ALL}): Likewise.
19956 (cpu_approx_modes): New structure.
19957 (tune_params): New member "approx_modes".
19958 * config/aarch64/aarch64-tuning-flags.def
19959 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
19960 * config/aarch64/aarch64.c
19961 (generic_approx_modes): New core "cpu_approx_modes" structure.
19962 (exynosm1_approx_modes): Likewise.
19963 (xgene1_approx_modes): Likewise.
19964 (generic_tunings): New member "approx_modes".
19965 (cortexa35_tunings): Likewise.
19966 (cortexa53_tunings): Likewise.
19967 (cortexa57_tunings): Likewise.
19968 (cortexa72_tunings): Likewise.
19969 (exynosm1_tunings): Likewise.
19970 (thunderx_tunings): Likewise.
19971 (xgene1_tunings): Likewise.
19972 (use_rsqrt_p): New argument for the mode and use new member from
19973 "tune_params".
19974 (aarch64_builtin_reciprocal): Devise mode from builtin.
19975 (aarch64_optab_supported_p): New argument for the mode.
19976 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
19977
19978 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
19979
19980 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
19981 RS6000_BTM_MODULO flag into the set of flags that are considered
19982 to be part of the common configuration.
19983
19984 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
19985
19986 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
19987 difference unsigned.
19988 (vec_absdb): New macro for vector absolute difference unsigned
19989 byte.
19990 (vec_absdh): New macro for vector absolute difference unsigned
19991 half-word.
19992 (vec_absdw): New macro for vector absolute difference unsigned word.
19993 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
19994 (vadu<mode>3): New insn.
19995 (*p9_vadu<mode>3): New insn.
19996 * config/rs6000/rs6000-builtin.def (vadub): New built-in
19997 definition.
19998 (vaduh): New built-in definition.
19999 (vaduw): New built-in definition.
20000 (vadu): New overloaded built-in definition.
20001 (vadub): New overloaded built-in definition.
20002 (vaduh): New overloaded built-in definition.
20003 (vaduw): New overloaded built-in definition.
20004 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20005 overloaded vector absolute difference unsigned functions.
20006 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
20007 the ISA 3.0 vector absolute difference unsigned built-in functions.
20008
20009 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
20010
20011 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
20012 update shared_lookup_references only once after changing operands.
20013
20014 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
20015
20016 PR middle-end/71373
20017 * tree-nested.c (convert_nonlocal_omp_clauses)
20018 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
20019
20020 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
20021 * tree.def (CASE_LABEL_EXPR): Likewise.
20022
20023 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
20024
20025 PR bootstrap/71481
20026 * input.c (test_builtins): Fix an assertion.
20027
20028 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20029
20030 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
20031 (paritysi2): Ditto.
20032 (isinfxf2): Ditto.
20033 (isinf<mode>2): Ditto.
20034
20035 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20036
20037 * ggc-tests.c (test_finalization): Only test need_finalization_p
20038 for GCC_VERSION >= 4003.
20039
20040 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20041
20042 * config/s390/vecintrin.h: Fix file description in comment.
20043
20044 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20045
20046 * config/s390/s390-builtin-types.def: Change builtin type naming
20047 scheme to match builtin-types.def.
20048
20049 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
20050
20051 * fold-const.c (optimize_minmax_comparison): Remove.
20052 (fold_comparison): Remove call to the above.
20053 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
20054 New transformations.
20055
20056 2016-06-13 Alan Hayward <alan.hayward@arm.com>
20057
20058 PR tree-optimization/71416
20059 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
20060 multiple entries
20061
20062 2016-06-13 Martin Liska <mliska@suse.cz>
20063
20064 * predict.c (enum predictor_reason): Prefix enum with REASON_.
20065 (combine_predictions_for_insn): Likewise.
20066 (prune_predictions_for_bb): Likewise.
20067 (combine_predictions_for_bb): Likewise.
20068
20069 2016-06-13 Richard Biener <rguenther@suse.de>
20070
20071 PR tree-optimization/71505
20072 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
20073 assert match comment.
20074
20075 2016-06-13 Marek Polacek <polacek@redhat.com>
20076
20077 PR middle-end/71476
20078 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
20079 gimplify_switch_expr.
20080 (warn_switch_unreachable_r): New function.
20081
20082 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20083
20084 PR target/71379
20085 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
20086 one.
20087
20088 2016-06-13 Richard Biener <rguenther@suse.de>
20089
20090 PR middle-end/64516
20091 * fold-const.c (fold_unary_loc): Preserve alignment when
20092 folding a VIEW_CONVERT_EXPR into a MEM_REF.
20093
20094 2016-06-13 Martin Liska <mliska@suse.cz>
20095
20096 PR sanitizer/71458
20097 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
20098 w/ -fsanitize=bounds.
20099
20100 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
20101
20102 * config/i386/i386.c (ix86_init_builtins): Calculate
20103 FLOAT128_FTYPE_CONST_STRING function type only once.
20104 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
20105 built-in functions are available for x86-32 and x86-64 targets.
20106
20107 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
20108
20109 PR target/71241
20110 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
20111 New primitive type.
20112 (FLOAT128_FTYPE_CONST_STRING): New function type.
20113 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
20114 [IX86_BUILTIN_NANSQ]: Ditto.
20115 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20116 (ix86_init_builtin_types): Declare const_string_type_node.
20117 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
20118 builtin functions.
20119 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20120 * doc/extend.texi (x86 Built-in Functions): Document
20121 __builtin_nanq and __builtin_nansq.
20122
20123 2016-06-11 Jiong Wang <jiong.wang@arm.com>
20124
20125 PR target/71061
20126 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
20127 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
20128 length for pop patterns.
20129 (arm_attr_length_push_multi): Update comments.
20130 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
20131 attribute.
20132 (*pop_multiple_with_writeback_and_return): Likewise.
20133 (*pop_multiple_with_return): Likewise.
20134
20135 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
20136
20137 PR middle-end/71310
20138 * fold-const.c (optimize_bit_field_compare): Don't try to use
20139 word_mode unconditionally for reading the bit field, look at
20140 DECL_BIT_FIELD_REPRESENTATIVE instead.
20141
20142 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
20143
20144 PR middle-end/71478
20145 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
20146 vector integer type.
20147
20148 2016-06-10 Jakub Jelinek <jakub@redhat.com>
20149
20150 PR middle-end/71494
20151 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
20152 without LABEL_DECL, set *handled_ops_p to false instead of true.
20153
20154 2016-06-10 Martin Sebor <msebor@redhat.com>
20155
20156 PR c/71392
20157 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
20158 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
20159 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
20160 them.
20161 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
20162 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
20163 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
20164 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
20165 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
20166 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
20167 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
20168 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
20169
20170 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20171
20172 * config/arm/arm.h (pool_vector_label,
20173 return_used_this_function): Remove.
20174
20175 2016-06-10 Jeff Law <law@redhat.com>
20176
20177 PR tree-optimization/71335
20178 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
20179 zero length paths here.
20180 (convert_and_register_jump_thread_path): Remove hacks related to
20181 duplicated blocks in the jump thread path.
20182 (fsm_find_control_statement_thread_paths): Avoid putting the same
20183 block on the thread path twice, but ensure the thread path is
20184 unchanged from the caller's point of view.
20185
20186 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
20187
20188 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
20189 * predict.def (PRED_LOOP_BRANCH): Remove.
20190
20191 2016-06-10 David Malcolm <dmalcolm@redhat.com>
20192
20193 * Makefile.in (OBJS): Add ggc-tests.o.
20194 (GTFILES): Add ggc-tests.c.
20195 * ggc-tests.c: New file.
20196 * selftest-run-tests.c (selftest::run_tests): Call
20197 selftest::ggc_tests_c_tests.
20198 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
20199
20200 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
20201
20202 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
20203
20204 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
20205
20206 PR sanitizer/71480
20207 * varasm.c (place_block_symbol): Adjust alignment for asan protected
20208 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
20209
20210 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
20211
20212 * profile.c: Include cfgloop.h.
20213 (branch_prob): Compute estimated number of iterations.
20214 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
20215 recompute estimate number of iterations from profile.
20216
20217 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20218
20219 PR inline-asm/68843
20220 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
20221 must be grouped on top of stack. Don't force early clobber
20222 on ordinary reg outputs.
20223
20224 2016-06-10 Richard Biener <rguenther@suse.de>
20225
20226 * targhooks.c (default_builtin_vectorization_cost): Adjust
20227 vec_construct cost.
20228
20229 2016-06-10 Richard Biener <rguenther@suse.de>
20230
20231 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
20232 to fold the RHS to a constant if possible.
20233
20234 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
20235
20236 PR middle-end/71373
20237 * tree-nested.c (convert_nonlocal_omp_clauses)
20238 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
20239 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
20240 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
20241
20242 * gimplify.c (gimplify_adjust_omp_clauses): Discard
20243 OMP_CLAUSE_TILE.
20244 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
20245
20246 * omp-low.c (scan_sharing_clauses): Don't expect
20247 OMP_CLAUSE__CACHE_.
20248
20249 2016-06-10 Alan Hayward <alan.hayward@arm.com>
20250
20251 PR tree-optimization/71407
20252 PR tree-optimization/71416
20253 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
20254 BIT_FIELD_REF type.
20255
20256 2016-06-10 Richard Biener <rguenther@suse.de>
20257
20258 PR middle-end/71477
20259 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
20260
20261 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
20262
20263 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
20264
20265 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
20266 Jiong Wang <jiong.wang@arm.com>
20267
20268 PR rtl-optimization/70751
20269 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
20270 spilled into memory.
20271
20272 2016-06-09 Jonathan Yong <10walls@gmail.com>
20273
20274 Revert:
20275 2015-09-21 Jonathan Yong <10walls@gmail.com>
20276
20277 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
20278 sysroot/usr/lib/32api for additional win32 libraries,
20279 fixes failing Cygwin bootstrapping.
20280
20281 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
20282
20283 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
20284 Delete.
20285
20286 2016-06-09 David Malcolm <dmalcolm@redhat.com>
20287
20288 PR bootstrap/71471
20289 * pretty-print.c (pp_indent): Specify that %p is printed in a
20290 host-dependent manner.
20291 (test_pp_format): Remove the test for %p.
20292
20293 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
20294
20295 * config/mips/mips.c (mips_output_jump): Fix formatting.
20296
20297 2016-06-09 Richard Biener <rguenther@suse.de>
20298
20299 PR tree-optimization/71462
20300 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
20301 removed blocks.
20302
20303 2016-06-09 Martin Liska <mliska@suse.cz>
20304
20305 * predict.c (dump_prediction): Add new argument.
20306 (enum predictor_reason): New enum.
20307 (struct predictor_hash): New struct.
20308 (predictor_hash::hash): New function.
20309 (predictor_hash::equal): Likewise.
20310 (not_removed_prediction_p): New function.
20311 (prune_predictions_for_bb): Likewise.
20312 (combine_predictions_for_bb): Prune predictions.
20313
20314 2016-06-09 Martin Liska <mliska@suse.cz>
20315
20316 * predict.c (filter_predictions): New function.
20317 (remove_predictions_associated_with_edge): Use the filter
20318 function.
20319 (equal_edge_p): New function.
20320
20321 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
20322
20323 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
20324 Correct usage of @samp vs @option, add @samp where appropriate.
20325 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
20326 Add armv6s-m and document it, as it is no official ARM name.
20327
20328 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20329
20330 * ifcvt.c (struct noce_if_info): Add transform_name field.
20331 (noce_try_move): Set if_info->transform_name to the function name.
20332 (noce_try_ifelse_collapse): Likewise.
20333 (noce_try_store_flag): Likewise.
20334 (noce_try_inverse_constants): Likewise.
20335 (noce_try_store_flag_constants): Likewise.
20336 (noce_try_addcc): Likewise.
20337 (noce_try_store_flag_mask): Likewise.
20338 (noce_try_cmove): Likewise.
20339 (noce_try_cmove_arith): Likewise.
20340 (noce_try_minmax): Likewise.
20341 (noce_try_abs): Likewise.
20342 (noce_try_sign_mask): Likewise.
20343 (noce_try_bitop): Likewise.
20344 (noce_convert_multiple_sets): Likewise.
20345 (noce_process_if_block): Print if_info->transform_name to
20346 dump_file if transformation succeeded.
20347
20348 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20349
20350 * config/arm/cortex-a57.md (cortex_a57_alu):
20351 Handle csel type.
20352
20353 2016-06-08 Martin Sebor <msebor@redhat.com>
20354 Jakub Jelinek <jakub@redhat.com>
20355
20356 PR c++/70507
20357 PR c/68120
20358 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
20359 BUILT_IN_MUL_OVERFLOW_P): New builtins.
20360 * builtins.c: Include gimple-fold.h.
20361 (fold_builtin_arith_overflow): Handle
20362 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
20363 (fold_builtin_3): Likewise.
20364 * doc/extend.texi (Integer Overflow Builtins): Document
20365 __builtin_{add,sub,mul}_overflow_p.
20366
20367 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
20368
20369 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
20370 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
20371
20372 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
20373
20374 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
20375 Rewrite, looking one level down for records and arrays.
20376
20377 2016-06-08 David Malcolm <dmalcolm@redhat.com>
20378
20379 * pretty-print.c: Include "selftest.h".
20380 (pp_format): Fix comment.
20381 (identifier_to_locale): Likewise.
20382 (selftest::test_basic_printing): New function.
20383 (selftest::assert_pp_format): New function.
20384 (selftest::test_pp_format): New function.
20385 (selftest::pretty_print_c_tests): New function.
20386 * selftest-run-tests.c (selftest::run_tests): Call
20387 selftest::pretty_print_c_tests.
20388 * selftest.h (pretty_print_c_tests): New declaration.
20389
20390 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20391
20392 * invoke.texi (max-loop-headers-insns): Document.
20393 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
20394 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
20395 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
20396
20397 2016-06-08 Richard Biener <rguenther@suse.de>
20398
20399 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
20400 on strided SLP loads and fall back to scalar loads in case
20401 we can't chunk them.
20402
20403 2016-06-08 Richard Biener <rguenther@suse.de>
20404
20405 PR tree-optimization/71452
20406 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
20407 type used for the SSA rewrite has enough precision to cover
20408 the dynamic type of the location.
20409
20410 2016-06-08 Jakub Jelinek <jakub@redhat.com>
20411 Richard Biener <rguenther@suse.de>
20412
20413 PR c++/71448
20414 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
20415 the same as DECL_P (base0) for indirect_base0. Use equality_code
20416 in one further place.
20417
20418 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
20419
20420 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
20421 to one word if the field is known to overlap other words.
20422 (extract_bit_field_1): Likewise.
20423 (store_split_bit_field): Remove compensating code.
20424 (extract_split_bit_field): Likewise.
20425
20426 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
20427
20428 PR debug/71432
20429 PR ada/71413
20430 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
20431
20432 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20433
20434 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
20435 VDQF.
20436 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
20437 (arch64_addpv4sf): Delete.
20438 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
20439 "gen_aarch64_addpv4sf".
20440 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
20441 builtin.
20442 (vpadds_f32): Likewise.
20443 (vpaddq_f32): Likewise.
20444 (vpaddq_f64): Likewise.
20445
20446 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20447
20448 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
20449 VALLF.
20450 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
20451 to VALLF. Rename to "fabd<mode>3".
20452 "*fabd_scalar<mode>3): Delete.
20453 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
20454 Use builtin.
20455 (vabdd_f64): Likewise.
20456 (vabd_f32): Likewise.
20457 (vabd_f64): Likewise.
20458 (vabdq_f32): Likewise.
20459 (vabdq_f64): Likewise.
20460
20461 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20462
20463 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
20464 VALLF.
20465 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
20466 "aarch64_rsqrts<mode>".
20467 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
20468 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
20469 builtin.
20470 (vrsqrtsd_f64): Likewise.
20471 (vrsqrts_f32): Likewise.
20472 (vrsqrts_f64): Likewise.
20473 (vrsqrtsq_f32): Likewise.
20474 (vrsqrtsq_f64): Likewise.
20475
20476 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20477
20478 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
20479 VALLF.
20480 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
20481 "aarch64_rsqrte<mode>".
20482 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
20483 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
20484 builtin.
20485 (vrsqrted_f64): Likewise.
20486 (vrsqrte_f32): Likewise.
20487 (vrsqrte_f64): Likewise.
20488 (vrsqrteq_f32): Likewise.
20489 (vrsqrteq_f64): Likewise.
20490
20491 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20492
20493 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
20494 (ucvtf): Likewise.
20495 (fcvtzs): Likewise.
20496 (fcvtzu): Likewise.
20497 * config/aarch64/aarch64-simd.md
20498 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
20499 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
20500 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
20501 Use builtin.
20502 (vcvt_n_f32_u32): Likewise.
20503 (vcvt_n_s32_f32): Likewise.
20504 (vcvt_n_u32_f32): Likewise.
20505 (vcvtq_n_f32_s32): Likewise.
20506 (vcvtq_n_f32_u32): Likewise.
20507 (vcvtq_n_f64_s64): Likewise.
20508 (vcvtq_n_f64_u64): Likewise.
20509 (vcvtq_n_s32_f32): Likewise.
20510 (vcvtq_n_s64_f64): Likewise.
20511 (vcvtq_n_u32_f32): Likewise.
20512 (vcvtq_n_u64_f64): Likewise.
20513 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
20514 (VSDQ_SDI): Likewise.
20515 (fcvt_target): Support V4DI, V4SI and V2SI.
20516 (FCVT_TARGET): Likewise.
20517
20518 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20519
20520 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
20521 (TYPES_BINOP_SUS): Likewise.
20522 (aarch64_simd_builtin_data): Update include file name.
20523 (aarch64_builtins): Likewise.
20524 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
20525 for conversion between scalar float-point and fixed-point.
20526 (ucvtf): Likewise.
20527 (fcvtzs): Likewise.
20528 (fcvtzu): Likewise.
20529 * config/aarch64/aarch64.md
20530 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
20531 pattern for conversion between scalar float to fixed-pointer.
20532 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
20533 (UNSPEC_FCVTZS): New UNSPEC enumeration.
20534 (UNSPEC_FCVTZU): Likewise.
20535 (UNSPEC_SCVTF): Likewise.
20536 (UNSPEC_UCVTF): Likewise.
20537 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
20538 Use builtin.
20539 (vcvtd_n_f64_u64): Likewise.
20540 (vcvtd_n_s64_f64): Likewise.
20541 (vcvtd_n_u64_f64): Likewise.
20542 (vcvtd_n_f32_s32): Likewise.
20543 (vcvts_n_f32_u32): Likewise.
20544 (vcvtd_n_s32_f32): Likewise.
20545 (vcvts_n_u32_f32): Likewise.
20546 * config/aarch64/iterators.md (fcvt_target): Support integer to float
20547 mapping.
20548 (FCVT_TARGET): Likewise.
20549 (FCVT_FIXED2F): New iterator.
20550 (FCVT_F2FIXED): Likewise.
20551 (fcvt_fixed_insn): New define_int_attr.
20552
20553 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20554
20555 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
20556 some statements was removed.
20557
20558 2016-06-08 Alan Hayward <alan.hayward@arm.com>
20559
20560 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
20561 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
20562 (vect_can_advance_ivs_p): likewise.
20563 (vect_update_ivs_after_vectorizer): likewise.
20564 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
20565 (vect_analyze_scalar_cycles_1): likewise.
20566 (vect_analyze_loop_operations): likewise.
20567 (report_vect_op): likewise.
20568 (vect_is_slp_reduction): likewise.
20569 (vect_is_simple_reduction): likewise.
20570 (get_initial_def_for_induction): likewise.
20571 (vect_transform_loop): likewise.
20572 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
20573 (vect_recog_sad_pattern): likewise.
20574 (vect_recog_widen_sum_pattern): likewise.
20575 (vect_recog_widening_pattern): likewise.
20576 (vect_recog_divmod_pattern): likewise.
20577 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
20578 (vect_analyze_slp_instance): likewise.
20579 (vect_transform_slp_perm_load): likewise.
20580 (vect_schedule_slp_instance): likewise.
20581
20582 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20583
20584 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
20585 (return_prediction): PRED_CONST_RETURN predict return as not taken.
20586 * predict.def (PRED_CONTINUE): Change hitrate 50->67
20587 (PRED_LOOP_BRANCH): Document predictor as broken.
20588 (PRED_LOOP_EXIT): Change hitrate 91->92.
20589 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
20590 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
20591 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
20592 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
20593 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
20594 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
20595 (PRED_CALL): Chane hitrate 71->67.
20596 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
20597 (PRED_GOTO): Document as unused right now.
20598 (PRED_CONST_RETURN): Change hitrate 67->69
20599 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
20600 (PRED_NULL_RETURN): Change hitrate 91->90.
20601 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
20602 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
20603 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
20604
20605 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
20606
20607 * config/rs6000/altivec.h: Add __builtin_vec_mul.
20608 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
20609 special case Altivec builtin.
20610 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
20611 VSX_BUILTIN_VEC_MUL (replaced with special case code).
20612 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
20613 code for ALTIVEC_BUILTIN_VEC_MUL.
20614 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
20615 for __builtin_vec_mul.
20616
20617 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
20618
20619 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
20620 -mno-htm.
20621
20622 2016-06-07 David Malcolm <dmalcolm@redhat.com>
20623
20624 * spellcheck.c (selftest::test_find_closest_string): New function.
20625 (spellcheck_c_tests): Call the above.
20626
20627 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20628
20629 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
20630
20631 2016-06-07 Jakub Jelinek <jakub@redhat.com>
20632
20633 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
20634 Yv=Yv,C alternatives.
20635
20636 2016-06-07 Richard Biener <rguenther@suse.de>
20637
20638 PR c/61564
20639 * common.opt (ffast-math): Make Optimization.
20640
20641 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
20642 Prachi Godbole <prachi.godbole@imgtec.com>
20643
20644 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
20645 `fabs' and `fneg' type attributes.
20646 (p5600_fpu_fabs): Add `fmove' to the comment.
20647
20648 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20649
20650 * gimple.c: Include builtins.h
20651 (gimple_inexpensive_call_p): New function.
20652 * gimple.h (gimple_inexpensive_call_p): Declare.
20653 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
20654 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
20655 fix formatting.
20656
20657 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
20658
20659 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
20660 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
20661 warning_at_rich_loc, warning_n, pedwarn, permerror,
20662 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
20663 sorry, fatal_error, internal_error, internal_error_no_backtrace):
20664 Use the above.
20665
20666 2016-06-07 Richard Biener <rguenther@suse.de>
20667
20668 PR tree-optimization/71428
20669 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
20670 BIT_FIELD_REF op vs. load.
20671
20672 2016-06-07 Richard Biener <rguenther@suse.de>
20673
20674 PR middle-end/71423
20675 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
20676 for signed ops.
20677
20678 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
20679
20680 * config/pa/pa.md (call): Generate indirect long calls to non-local
20681 functions on TARGET_64BIT.
20682 (call_value): Likewise.
20683
20684 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
20685
20686 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
20687 pattern and subsequent splitters.
20688 (call_val_reg_64bit_post_reload): Likewise.
20689
20690 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
20691
20692 PR middle-end/71408
20693 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
20694 propagate_op_to_single_use.
20695
20696 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
20697
20698 PR middle-end/71281
20699 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
20700
20701 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
20702
20703 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
20704 (enum x86_dirflag_state): New enum.
20705 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
20706 (machine_function): Remove needs_cld.
20707 (ix86_current_function_needs_cld): Remove.
20708 * config/i386/i386.c (ix86_set_func_type): Set
20709 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
20710 (ix86_expand_prologue): Do not emit CLD here.
20711 (ix86_dirflag_mode_needed): New function.
20712 (ix86_dirflag_mode_entry): Ditto.
20713 (ix86_mode_needed): Handle X86_DIRFLAG entity.
20714 (ix86_mode_after): Ditto.
20715 (ix86_mode_entry): Ditto.
20716 (ix86_mode_exit): Ditto.
20717 (ix86_emit_mode_set): Ditto.
20718 * config/i386/i386.md (strmov_singleop): Set
20719 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
20720 Do not set ix86_current_function_needs_cld.
20721 (rep_mov): Ditto.
20722 (strset_singleop): Ditto.
20723 (rep_stos): Ditto.
20724 (cmpstrnqi_nz_1): Ditto.
20725 (cmpstrnqi_1): Ditto.
20726 (strlenqi_1): Ditto.
20727
20728 2016-06-06 Jakub Jelinek <jakub@redhat.com>
20729
20730 PR tree-optimization/71259
20731 * tree-vect-slp.c (vect_get_constant_vectors): For
20732 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
20733 one for constant op, and use COND_EXPR for non-constant.
20734
20735 2016-06-06 David Malcolm <dmalcolm@redhat.com>
20736
20737 * Makefile.in (OBJS): Add function-tests.o,
20738 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
20739 selftest-run-tests.o.
20740 (OBJS-libcommon): Add selftest.o.
20741 (OBJS-libcommon-target): Add selftest.o.
20742 (all.internal): Add "selftest".
20743 (all.cross): Likewise.
20744 (selftest): New phony target.
20745 (s-selftest): New target.
20746 (selftest-gdb): New phony target.
20747 (COLLECT2_OBJS): Add selftest.o.
20748 * bitmap.c: Include "selftest.h".
20749 (selftest::test_gc_alloc): New function.
20750 (selftest::test_set_range): New function.
20751 (selftest::test_clear_bit_in_middle): New function.
20752 (selftest::test_copying): New function.
20753 (selftest::test_bitmap_single_bit_set_p): New function.
20754 (selftest::bitmap_c_tests): New function.
20755 * common.opt (fself-test): New.
20756 * diagnostic-show-locus.c: Include "selftest.h".
20757 (make_range): New function.
20758 (test_range_contains_point_for_single_point): New function.
20759 (test_range_contains_point_for_single_line): New function.
20760 (test_range_contains_point_for_multiple_lines): New function.
20761 (assert_eq): New function.
20762 (test_get_line_width_without_trailing_whitespace): New function.
20763 (selftest::diagnostic_show_locus_c_tests): New function.
20764 * et-forest.c: Include "selftest.h".
20765 (selftest::test_single_node): New function.
20766 (selftest::test_simple_tree): New function.
20767 (selftest::test_disconnected_nodes): New function.
20768 (selftest::et_forest_c_tests): New function.
20769 * fold-const.c: Include "selftest.h".
20770 (selftest::assert_binop_folds_to_const): New function.
20771 (selftest::assert_binop_folds_to_nonlvalue): New function.
20772 (selftest::test_arithmetic_folding): New function.
20773 (selftest::fold_const_c_tests): New function.
20774 * function-tests.c: New file.
20775 * gimple.c: Include "selftest.h".
20776 Include "gimple-pretty-print.h".
20777 (selftest::verify_gimple_pp): New function.
20778 (selftest::test_assign_single): New function.
20779 (selftest::test_assign_binop): New function.
20780 (selftest::test_nop_stmt): New function.
20781 (selftest::test_return_stmt): New function.
20782 (selftest::test_return_without_value): New function.
20783 (selftest::gimple_c_tests): New function.
20784 * hash-map-tests.c: New file.
20785 * hash-set-tests.c: New file.
20786 * input.c: Include "selftest.h".
20787 (selftest::assert_loceq): New function.
20788 (selftest::test_accessing_ordinary_linemaps): New function.
20789 (selftest::test_unknown_location): New function.
20790 (selftest::test_builtins): New function.
20791 (selftest::test_reading_source_line): New function.
20792 (selftest::input_c_tests): New function.
20793 * rtl-tests.c: New file.
20794 * selftest-run-tests.c: New file.
20795 * selftest.c: New file.
20796 * selftest.h: New file.
20797 * spellcheck.c: Include "selftest.h".
20798 (selftest::levenshtein_distance_unit_test_oneway): New function,
20799 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
20800 (selftest::levenshtein_distance_unit_test): Likewise.
20801 (selftest::spellcheck_c_tests): Likewise.
20802 * toplev.c: Include selftest.h.
20803 (toplev::run_self_tests): New.
20804 (toplev::main): Handle -fself-test.
20805 * toplev.h (toplev::run_self_tests): New.
20806 * tree.c: Include "selftest.h".
20807 (selftest::test_integer_constants): New function.
20808 (selftest::test_identifiers): New function.
20809 (selftest::test_labels): New function.
20810 (selftest::tree_c_tests): New function.
20811 * tree-cfg.c: Include "selftest.h".
20812 (selftest::push_fndecl): New function.
20813 (selftest::test_linear_chain): New function.
20814 (selftest::test_diamond): New function.
20815 (selftest::test_fully_connected): New function.
20816 (selftest::tree_cfg_c_tests): New function.
20817 * vec.c: Include "selftest.h".
20818 (selftest::safe_push_range): New function.
20819 (selftest::test_quick_push): New function.
20820 (selftest::test_safe_push): New function.
20821 (selftest::test_truncate): New function.
20822 (selftest::test_safe_grow_cleared): New function.
20823 (selftest::test_pop): New function.
20824 (selftest::test_safe_insert): New function.
20825 (selftest::test_ordered_remove): New function.
20826 (selftest::test_unordered_remove): New function.
20827 (selftest::test_block_remove): New function.
20828 (selftest::reverse_cmp): New function.
20829 (selftest::test_qsort): New function.
20830 (selftest::vec_c_tests): New function.c.
20831 * wide-int.cc: Include selftest.h and wide-int-print.h.
20832 (selftest::from_int <wide_int>): New function.
20833 (selftest::from_int <offset_int>): New function.
20834 (selftest::from_int <widest_int>): New function.
20835 (selftest::assert_deceq): New function.
20836 (selftest::assert_hexeq): New function.
20837 (selftest::test_printing <VALUE_TYPE>): New function template.
20838 (selftest::test_ops <VALUE_TYPE>): New function template.
20839 (selftest::test_comparisons <VALUE_TYPE>): New function template.
20840 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
20841 template.
20842 (selftest::wide_int_cc_tests): New function.
20843
20844 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20845
20846 PR middle-end/37780
20847 * ifcvt.c (noce_try_ifelse_collapse): New function.
20848 Declare prototype.
20849 (noce_process_if_block): Call noce_try_ifelse_collapse.
20850 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
20851 (simplify_ternary_operation): Use the above to simplify
20852 conditional CLZ/CTZ expressions.
20853
20854 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20855
20856 PR middle-end/37780
20857 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
20858 define_insn_and_split.
20859
20860 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20861
20862 PR middle-end/37780
20863 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
20864
20865 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
20866
20867 PR c/24414
20868 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
20869 Implicitly clobber memory for basic asm with non-empty assembler
20870 string. Use targetm.md_asm_adjust also here.
20871 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
20872 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
20873 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
20874 non-empty assembler string.
20875 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
20876 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
20877 (decode_asm_operands): Handle basic asm in PARALLEL block.
20878 (extract_insn): Handle basic asm in PARALLEL block.
20879 * doc/extend.texi: Mention new behavior of basic asm.
20880 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
20881 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
20882 branch_needs_nop_p): Use asm_noperands.
20883
20884 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
20885
20886 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
20887 Include the M7 SPARC DFA scheduler.
20888 New attribute v3pipe.
20889 Annotate insns with v3pipe where appropriate.
20890 Define cpu_feature vis4.
20891 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
20892 Add (V8QI "8") to vbits.
20893 Add insns {add,sub}v8qi3
20894 Add insns ss{add,sub}v8qi3
20895 Add insns us{add,sub}{v8qi,v4hi}3
20896 Add insns {min,max}{v8qi,v4hi,v2si}3
20897 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
20898 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
20899 * config/sparc/niagara4.md: Add a comment explaining the
20900 discrepancy between the documented latenty numbers and the
20901 implemented ones.
20902 * config/sparc/niagara7.md: New file.
20903 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
20904 supports SPARC5 and VIS 4.0 instructions.
20905 * configure: Regenerate.
20906 * config.in: Likewise.
20907 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
20908 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
20909 TARGET_CPU_niagara7.
20910 (ASM_CPU64_DEFAULT_SPEC): Likewise.
20911 (CPP_CPU_SPEC): Handle niagara7.
20912 (ASM_CPU_SPEC): Likewise.
20913 * config/sparc/sparc-opts.h (processor_type): Add
20914 PROCESSOR_NIAGARA7.
20915 (mvis4): New option.
20916 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
20917 (AS_NIAGARA7_FLAG): Define.
20918 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
20919 (CPP_CPU64_DEFAULT_SPEC): Likewise.
20920 (CPP_CPU_SPEC): Handle niagara7.
20921 (ASM_CPU_SPEC): Likewise.
20922 * config/sparc/sparc.c (niagara7_costs): Define.
20923 (sparc_option_override): Handle niagara7 and adjust cache-related
20924 parameters with better values for niagara cpus. Also support VIS4.
20925 (sparc32_initialize_trampoline): Likewise.
20926 (sparc_use_sched_lookahead): Likewise.
20927 (sparc_issue_rate): Likewise.
20928 (sparc_register_move_cost): Likewise.
20929 (dump_target_flag_bits): Support VIS4.
20930 (sparc_vis_init_builtins): Likewise.
20931 (sparc_builtins): Likewise.
20932 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
20933 VIS4 4.0.
20934 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
20935 UltraSparc M7.
20936 * config/sparc/sparc.opt (sparc_processor_type): New value
20937 niagara7.
20938 * config/sparc/visintrin.h (__attribute__): Prototypes for the
20939 VIS4 builtins.
20940 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
20941 -mvis4.
20942 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
20943 VIS4 builtins.
20944
20945 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
20946
20947 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
20948
20949 2016-06-06 Richard Biener <rguenther@suse.de>
20950
20951 PR tree-optimization/71398
20952 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
20953 remove edges.
20954
20955 2016-06-05 James Bowman <james.bowman@ftdichip.com>
20956
20957 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
20958 ft32_expand_prolog, ft32_expand_epilogue):
20959 Handle pretend_args.
20960 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
20961 * config/ft32/ft32.md: Add pretend_returner.
20962
20963 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
20964
20965 PR target/71389
20966 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
20967 Copy op1 RTX to avoid invalid sharing.
20968 (ix86_expand_vector_move_misalign): Ditto.
20969
20970 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
20971
20972 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
20973 ATTRIBUTE_UNUSED.
20974
20975 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
20976
20977 * predict.c (predicted_by_loop_heuristics_p): New function.
20978 (predict_iv_comparison): Use it.
20979 (predict_loops): Walk from innermost loops; do not predict edges
20980 leaving multiple loops multiple times; implement
20981 PRED_LOOP_ITERATIONS_MAX heuristics.
20982 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
20983
20984 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
20985
20986 * cfg.c (check_bb_profile): Do not report mismatched profiles when
20987 only edges out of BB are EH edges.
20988
20989 2016-06-04 Martin Sebor <msebor@redhat.com>
20990 Marcin Baczyński <marbacz@gmail.com>
20991
20992 PR c/48116
20993 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
20994 a void expression in a void function.
20995
20996 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
20997
20998 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
20999 aux; dump reasons of decisions.
21000 (should_duplicate_loop_header_p): Likewise.
21001 (do_while_loop_p): Likewise.
21002 (ch_base::copy_headers): Dump asi num insns duplicated.
21003
21004 2016-06-04 Jakub Jelinek <jakub@redhat.com>
21005
21006 PR tree-optimization/71405
21007 * tree-ssa.c (execute_update_addresses_taken): For clobber with
21008 incompatible type, build a new clobber with the right type instead
21009 of building a VIEW_CONVERT_EXPR around it.
21010
21011 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
21012
21013 PR tree-optimization/52171
21014 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
21015 by_pieces_ninsns instead of move_by_pieces_ninsns.
21016
21017 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
21018
21019 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
21020 for reg+reg addressing mode.
21021
21022 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21023
21024 * rs6000-c.c (c/c-tree.h): Add #include.
21025 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
21026 in C++ when found in the base position of vec_ld or vec_st.
21027
21028 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
21029
21030 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
21031 use of profile unless profile status is PROFILE_READ.
21032 * profile.c (compute_branch_probabilities): Set profile status
21033 only after reporting predictor hitrates.
21034
21035 2016-06-03 Joseph Myers <joseph@codesourcery.com>
21036
21037 PR target/71276
21038 PR target/71277
21039 * common.opt (ffp-int-builtin-inexact): New option.
21040 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
21041 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
21042 (ceil@var{m}2): Document dependence on this option.
21043 * ipa-inline-transform.c (inline_call): Handle
21044 flag_fp_int_builtin_inexact.
21045 * ipa-inline.c (can_inline_edge_p): Likewise.
21046 * config/i386/i386.md (rintxf2): Do not test
21047 flag_unsafe_math_optimizations.
21048 (rint<mode>2_frndint): New define_insn.
21049 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
21050 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
21051 for 387 instead of extending and truncating.
21052 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
21053 !flag_trapping_math instead of flag_unsafe_math_optimizations.
21054 Change to frndint<mode>2_<rounding>.
21055 (frndintxf2_<rounding>_i387): Likewise. Change to
21056 frndint<mode>2_<rounding>_i387.
21057 (<rounding_insn>xf2): Likewise.
21058 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
21059 !flag_trapping_math instead of flag_unsafe_math_optimizations for
21060 x87. Test TARGET_ROUND || !flag_trapping_math ||
21061 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
21062 SSE. Use ROUND_NO_EXC in constant operand of
21063 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
21064 for 387 instead of extending and truncating.
21065
21066 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
21067 Julia Koval <julia.koval@intel.com>
21068
21069 PR target/66960
21070 PR target/67630
21071 PR target/67634
21072 PR target/67841
21073 PR target/68037
21074 PR target/68618
21075 PR target/68661
21076 PR target/69575
21077 PR target/69596
21078 PR target/69734
21079 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
21080 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
21081 all registers, except for function return registers if there are
21082 no caller-saved registers.
21083 (ix86_set_func_type): New function.
21084 (ix86_set_current_function): Call ix86_set_func_type to set
21085 no_caller_saved_registers and func_type. Call reinit_regs if
21086 caller-saved registers are changed. Don't allow MPX, SSE, MMX
21087 nor x87 instructions in interrupt handler nor function with
21088 no_caller_saved_registers attribute.
21089 (ix86_function_ok_for_sibcall): Return false if there are no
21090 caller-saved registers.
21091 (type_natural_mode): Don't warn ABI change for MMX in interrupt
21092 handler.
21093 (ix86_function_arg_advance): Skip for callee in interrupt handler.
21094 (ix86_function_arg): Return special arguments in interrupt handler.
21095 (ix86_promote_function_mode): Promote pointer to word_mode only
21096 for normal functions.
21097 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
21098 interrupt handler.
21099 (ix86_epilogue_uses): New function.
21100 (ix86_hard_regno_scratch_ok): Likewise.
21101 (ix86_save_reg): Preserve all registers in interrupt handler
21102 after reload. Preserve all registers, except for function return
21103 registers, if there are no caller-saved registers after reload.
21104 (find_drap_reg): Always use callee-saved register if there are
21105 no caller-saved registers.
21106 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
21107 for interrupt handler.
21108 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
21109 Emit cld instruction if stringops are used in interrupt handler
21110 or interrupt handler isn't a leaf function.
21111 (ix86_expand_epilogue): Generate interrupt return for interrupt
21112 handler and pop the 'ERROR_CODE' off the stack before interrupt
21113 return in exception handler.
21114 (ix86_expand_call): Disallow calling interrupt handler directly.
21115 If there are no caller-saved registers, mark all registers that
21116 are clobbered by the call which returns as clobbered.
21117 (ix86_handle_no_caller_saved_registers_attribute): New function.
21118 (ix86_handle_interrupt_attribute): Likewise.
21119 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
21120 attributes.
21121 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
21122 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
21123 accumulation in interrupt function if stack may be realigned to
21124 avoid DRAP.
21125 (EPILOGUE_USES): New.
21126 (function_type): New enum.
21127 (machine_function): Add func_type and no_caller_saved_registers.
21128 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
21129 (interrupt_return): New pattern.
21130 * doc/extend.texi: Document x86 interrupt and
21131 no_caller_saved_registers attributes.
21132
21133 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
21134
21135 PR tree-optimization/52171
21136 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
21137 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
21138 Look for constant strings. Move some code to emit_block_cmp_hints
21139 and use it.
21140 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
21141 * defaults.h (COMPARE_MAX_PIECES): New macro.
21142 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
21143 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
21144 (clear_by_pieces_1): Don't declare. Move definition before use.
21145 (can_do_by_pieces): New static function.
21146 (can_move_by_pieces): Use it. Return bool.
21147 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
21148 OP. All callers changed. Handle COMPARE_BY_PIECES.
21149 (class pieces_addr); New.
21150 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
21151 pieces_addr::adjust, pieces_addr::increment_address,
21152 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
21153 functions for it.
21154 (class op_by_pieces_d): New.
21155 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
21156 functions for it.
21157 (class move_by_pieces_d, class compare_by_pieces_d,
21158 class store_by_pieces_d): New subclasses of op_by_pieces_d.
21159 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
21160 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
21161 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
21162 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
21163 compare_by_pieces_d::finish_mode): New member functions.
21164 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
21165 functions.
21166 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
21167 (emit_block_cmp_hints): New function.
21168 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
21169 use the newly defined classes.
21170 * expr.h (by_pieces_constfn): New typedef.
21171 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
21172 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
21173 (move_by_pieces_ninsns): Don't declare.
21174 (can_move_by_pieces): Change return value to bool.
21175 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
21176 (compare_by_pieces_branch_ratio): New hook.
21177 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
21178 (by_pieces_ninsns): Declare.
21179 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
21180 COMPARE_BY_PIECES.
21181 (default_compare_by_pieces_branch_ratio): New function.
21182 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
21183 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
21184 * doc/tm.texi: Regenerate.
21185 * tree-ssa-strlen.c: Include "builtins.h".
21186 (handle_builtin_memcmp): New static function.
21187 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
21188 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
21189
21190 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21191
21192 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
21193 relevant stmts which are simple and invariant.
21194 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
21195 instead of simple and invariant
21196
21197 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21198
21199 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
21200 (vectorizable_reduction): Check for new relevant state.
21201 (vectorizable_live_operation): vectorize live stmts using
21202 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
21203 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
21204 (vect_stmt_relevant_p): Check for stmts which are only used live.
21205 (process_use): Use of a stmt does not inherit it's live value.
21206 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
21207 (vect_analyze_stmt): Check for new relevant state.
21208 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
21209 outside the loop, but not inside it.
21210
21211 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21212
21213 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
21214 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
21215 (vect_get_vec_def_for_operand): Split out code.
21216
21217 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
21218
21219 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
21220
21221 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21222
21223 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
21224
21225 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21226
21227 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
21228
21229 2016-06-03 Jakub Jelinek <jakub@redhat.com>
21230
21231 PR middle-end/71387
21232 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
21233 to noreturn e->callee->decl that has void return type and void
21234 arguments, adjust gimple_call_fntype and remove lhs even if it had
21235 previously addressable type.
21236
21237 2016-06-02 Jeff Law <law@redhat.com>
21238
21239 PR tree-optimization/71328
21240 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
21241 error when checking for a jump back onto the copied path.
21242
21243 2016-06-02 David Malcolm <dmalcolm@redhat.com>
21244
21245 * config/microblaze/microblaze.c (get_branch_target): Add return
21246 NULL_RTX for the non-CALL_P case.
21247 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
21248 (insert_wic): Remove unused local "j".
21249
21250 2016-06-02 Martin Liska <mliska@suse.cz>
21251
21252 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
21253
21254 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
21255 Julia Koval <julia.koval@intel.com>
21256
21257 * function.c (assign_parm_setup_stack): Force source into a
21258 register if needed.
21259 * target.def (function_incoming_arg): Update documentation to
21260 allow arbitrary address computation based on hard register.
21261 * doc/tm.texi: Regenerated.
21262
21263 2016-06-02 Martin Liska <mliska@suse.cz>
21264
21265 * predict.c (combine_predictions_for_bb): Fix first match in
21266 cases where a first predictor contains more than one occurence
21267 in list of predictors. Take the best value in such case.
21268
21269 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21270
21271 PR rtl-optimization/71295
21272 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
21273 offset would go over the size of the inner mode reject it.
21274
21275 2016-06-02 Jakub Jelinek <jakub@redhat.com>
21276
21277 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
21278 x=x,x and v=v,m instead of x=x,m.
21279
21280 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
21281 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
21282 alternative to v=rm,C.
21283
21284 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
21285 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
21286 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
21287 instead of vex for the last two above mentioned alternatives.
21288
21289 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21290
21291 PR target/70830
21292 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
21293
21294 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
21295
21296 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
21297
21298 2016-06-01 David Malcolm <dmalcolm@redhat.com>
21299
21300 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
21301 from int to unsigned.
21302
21303 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21304
21305 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
21306 alternatives, eliminating preferred register class. Add support
21307 for the MTVSRDD instruction in ISA 3.0.
21308 (vsx_splat_v4si_internal): Use splat_input_operand instead of
21309 reg_or_indexed_operand.
21310 (vsx_splat_v4sf_internal): Likewise.
21311
21312 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21313
21314 PR target/71186
21315 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
21316 for loading up all 0's or all 1's.
21317
21318 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
21319
21320 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
21321
21322 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
21323
21324 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
21325 extension.
21326 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
21327 * gcc.c (set_source_date_epoch_envvar): New function, sets
21328 the SOURCE_DATE_EPOCH environment variable to the current time.
21329
21330 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
21331
21332 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
21333 the factor for live Phi nodes.
21334
21335 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
21336
21337 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
21338 * tree-parloops.c (parallelize_loops): likewise.
21339 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
21340 tree_unswitch_outer_loop): likewise.
21341
21342 2016-06-01 Jakub Jelinek <jakub@redhat.com>
21343
21344 PR middle-end/71371
21345 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
21346 around creation of the temporary.
21347
21348 2016-06-01 Richard Biener <rguenther@suse.de>
21349
21350 PR tree-optimization/71366
21351 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
21352 (unloop_loops): Move removing edges here ...
21353 (try_unroll_loop_completely): ... from here.
21354 (try_peel_loop): ... and here.
21355 (tree_unroll_loops_completely_1): Track parent loops via
21356 bitmap of header BBs.
21357 (tree_unroll_loops_completely): Adjust for that.
21358
21359 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
21360
21361 * config/rs6000/altivec.h (vec_slv): New macro.
21362 (vec_srv): New macro.
21363 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
21364 (UNSPEC_VSRV): New value.
21365 (vslv): New insn.
21366 (vsrv): New insn.
21367 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
21368 (vsrv): New builtin definition.
21369 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
21370 define argument types for new builtin.
21371 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
21372 new builtin.
21373 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
21374 functions.
21375
21376 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
21377 Jocelyn Mayer <l_indien@magic.fr>
21378
21379 PR target/67310
21380 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
21381 detect processor family for signature_CENTAUR_ebx.
21382 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
21383 signature_CENTAUR_ebx.
21384 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
21385 <default>: Pass x86-64 for has_longmode.
21386
21387 2016-06-01 Nathan Sidwell <nathan@acm.org>
21388
21389 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
21390 undefined weak.
21391
21392 2016-06-01 Richard Biener <rguenther@suse.de>
21393
21394 PR tree-optimization/71261
21395 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
21396 of stmts successfully put in the bool pattern. Remove
21397 single-use restriction.
21398 (adjust_bool_pattern_cast): Add cast at the use site via the
21399 pattern def sequence.
21400 (adjust_bool_pattern): Remove recursion, maintain a hash-map
21401 of patterned defs. Use the pattern def seqence instead of
21402 multiple independent patterns.
21403 (sort_after_uid): New qsort compare function.
21404 (adjust_bool_stmts): New function to process stmts in the bool
21405 pattern in IL order.
21406 (vect_recog_bool_pattern): Adjust.
21407 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
21408 (ifcvt_walk_pattern_tree): Likewise.
21409 (stmt_is_root_of_bool_pattern): Likewise.
21410 (ifcvt_repair_bool_pattern): Likewise.
21411 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
21412
21413 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
21414
21415 * loop-unroll.c (decide_unroll_constant_iterations,
21416 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
21417 likely upper bounds.
21418 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
21419
21420 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
21421
21422 * tree-core.h (enum omp_clause_code): Remove
21423 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
21424
21425 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21426
21427 * config/arm/sync.md (arm_store_exclusive<mode>):
21428 Use 'H' output modifier on operands[2] rather than creating a new
21429 entry in out-of-bounds memory of the operands array.
21430 (arm_store_release_exclusivedi): Likewise.
21431
21432 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21433
21434 * config/arm/arm.c (arm_fusion_enabled_p): New function.
21435 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
21436 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
21437 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
21438
21439 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
21440
21441 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
21442 into account live statements for mask producers.
21443
21444 2016-06-01 Richard Biener <rguenther@suse.de>
21445
21446 PR tree-optimization/71311
21447 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
21448 restrict to non-INTEGER_CST @0.
21449
21450 2016-06-01 Richard Biener <rguenther@suse.de>
21451
21452 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
21453 (relational patterns): Use :c to avoid pattern duplications.
21454
21455 2016-06-01 Richard Biener <rguenther@suse.de>
21456
21457 * genmatch.c (comparison_code_p): New predicate.
21458 (swap_tree_comparison): New function.
21459 (commutate): Add for_vec parameter to append new for entries.
21460 Support commutating relational operators by swapping it alongside
21461 operands.
21462 (lower_commutative): Adjust.
21463 (dt_simplify::gen): Do not pass artificial operators to gen
21464 functions.
21465 (decision_tree::gen): Do not add artificial operators as parameters.
21466 (parser::parse_expr): Verify operator commutativity when :c is
21467 applied. Allow :C to override this.
21468 * match.pd: Adjust patterns to use :C instead of :c where required.
21469
21470 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
21471
21472 PR tree-optimization/71077
21473 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
21474 the combining step, use boolean_false_node and boolean_true_node
21475 as the designated false/true return values.
21476
21477 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21478
21479 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
21480 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
21481 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
21482 PRED_LOOP_EXIT.
21483
21484 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21485
21486 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
21487 of flags impliying the register renaming.
21488 * toplev.c (process_options): Do not imply flag_rename_registers with
21489 loop peeling.
21490
21491 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21492
21493 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
21494 default implementation.
21495
21496 2016-05-31 Nathan Sidwell <nathan@acm.org>
21497
21498 * dwarf2out.c (cur_line_info_table): Add GTY marker.
21499
21500 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21501
21502 * config/sh/constraints.md (b): Remove constraint.
21503 * config/sh/predicates.md (arith_reg_operand): Remove
21504 TARGET_REGISTER_P.
21505 * config/sh/sh-modes.def (PDI): Remove.
21506 * config/sh/sh.c (sh_target_reg_class,
21507 sh_optimize_target_register_callee_saved): Remove functions.
21508 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
21509 (sh_expand_epilogue): Update comment.
21510 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
21511 sh_secondary_reload): Remove TARGET_REGS related code.
21512 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
21513 TARGET_REGISTER_P): Remove macros.
21514 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
21515 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
21516 TR1_REG, TR2_REG): Remove constants.
21517 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
21518
21519 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21520
21521 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
21522 define_expand patterns.
21523 (adddi3_compact): Rename to adddi3.
21524 (subdi3_compact): Rename to subdi3.
21525 (*negdi2): Rename to negdi2.
21526 (*abs<mode>2): Rename to abs<mode>2.
21527
21528 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21529
21530 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
21531 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
21532 (atomic_sub_fetchsi): ... this new pattern.
21533 (mvtc): Add CC_REG clobber.
21534
21535 2016-05-31 Marek Polacek <polacek@redhat.com>
21536
21537 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
21538
21539 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21540
21541 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
21542 aarch64_fusion_enabled_p to check for fusion capabilities.
21543
21544 2016-05-31 Richard Biener <rguenther@suse.de>
21545
21546 PR tree-optimization/71352
21547 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
21548 minus one and a negate.
21549
21550 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21551
21552 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
21553 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
21554 Delete prototype.
21555 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
21556 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
21557 Remove use of aarch64_simd_attr_length_move, set length attribute
21558 directly.
21559 (*aarch64_be_movoi): Likewise.
21560 (*aarch64_be_movci): Likewise.
21561 (*aarch64_be_movxi): Likewise.
21562
21563 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21564
21565 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
21566 It no longer does that.
21567 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
21568
21569 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
21570
21571 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
21572 attribute __unused__.
21573
21574 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
21575
21576 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
21577 * config/arm/arm.c (arm_arch_thumb1): Define.
21578 (arm_option_override): Initialize arm_arch_thumb1.
21579 * config/arm/arm.h (arm_arch_thumb1): Declare.
21580 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
21581 support Thumb-1 ISA.
21582
21583 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
21584
21585 PR target/71346
21586 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
21587 `Yv' for scalar operand.
21588
21589 2016-05-31 Tom de Vries <tom@codesourcery.com>
21590
21591 PR tree-optimization/69068
21592 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
21593 phis with more than two args.
21594
21595 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
21596
21597 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
21598 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
21599 target.
21600
21601 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
21602
21603 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
21604 tune_64.
21605 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
21606 support on SPARC.
21607 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
21608 cpu_32, cpu_64, tune_32 and tune_64.
21609 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
21610
21611 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
21612
21613 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
21614
21615 2016-05-30 Andi Kleen <ak@linux.intel.com>
21616
21617 * auto-profile.c (read_profile): Replace asserts with errors
21618 when file does not exist.
21619 * gcov-io.c (gcov_read_words): Dito.
21620
21621 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21622
21623 * tree-cfg.c (print_loop): Print likely upper bounds.
21624
21625 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21626
21627 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
21628 * opts.c (default_options): Enable peel loops at -O3.
21629 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
21630 (try_peel_loop): Do not re-peel already peeled loops;
21631 use likely upper bounds; fix profile updating.
21632 (pass_complete_unroll::execute): Initialize peeled_loops.
21633
21634 2016-05-30 Martin Liska <mliska@suse.cz>
21635
21636 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
21637 computed costs by frequency of BB they belong to.
21638 (get_scaled_computation_cost_at): New function.
21639
21640 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
21641 Marc Glisse <marc.glisse@inria.fr>
21642
21643 PR tree-optimization/71289
21644 * match.pd (-1 / B < A, A > -1 / B): New transformations.
21645
21646 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21647
21648 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
21649
21650 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21651
21652 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
21653 for peeled copies; avoid underflow when updating estimates; correctly
21654 scale loop profile.
21655
21656 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
21657
21658 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
21659 r236875. Corrected oe3 to oe2 as obvious.
21660
21661 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
21662
21663 PR middle-end/71269
21664 PR middle-end/71252
21665 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
21666 that inserted stmt will not dominate stmts that defines its operand.
21667 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
21668 (rewrite_expr_tree_parallel): Likewise.
21669
21670 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
21671
21672 PR middle-end/71252
21673 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
21674 all fields including stmt_to_insert are swapped.
21675
21676 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21677
21678 * predict.h (force_edge_cold): Declare.
21679 * predict.c (force_edge_cold): New function.
21680 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
21681 updating.
21682 (canonicalize_loop_induction_variables): Fix formating.
21683
21684 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
21685
21686 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
21687 (visium_expand_copysign): Use gen_int_mode directly.
21688 (visium_compute_frame_size): Minor tweaks.
21689
21690 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21691
21692 * tree-vect-loop.c (vect_analyze_loop_2): Use
21693 likely_max_stmt_executions_int.
21694
21695 2016-05-30 Tom de Vries <tom@codesourcery.com>
21696
21697 PR tree-optimization/69067
21698 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
21699
21700 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
21701
21702 PR target/71245
21703 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
21704 New peepholes to remove unneeded fild/fistp pairs.
21705 (define_peephole2 atomic_loaddi_fpu): Ditto.
21706
21707 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21708
21709 * predict.c (maybe_hot_frequency_p): Avoid division.
21710
21711 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
21712
21713 * doc/install.texi: Use https for shop.fsf.org.
21714
21715 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21716
21717 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
21718 likely_max_stmt_executions_int.
21719
21720 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21721
21722 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
21723 likely_max_stmt_executions_int.
21724
21725 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21726
21727 * profile.c (compute_branch_probabilities): Do not report hitrates
21728 here.
21729 (branch_prob): Report hitrates here.
21730 * predict.c (gimple_predict_edge): Do not assert profile status;
21731 fix formatting issues.
21732
21733 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21734
21735 * predict.c (edge_predicted_by_p): New function.
21736 (predict_paths_for_bb): Do not put multiple predictions of the same type
21737 on one edge.
21738
21739 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21740
21741 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
21742 commit.
21743
21744 2016-05-28 Alan Modra <amodra@gmail.com>
21745
21746 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
21747
21748 2016-05-28 Alan Modra <amodra@gmail.com>
21749
21750 PR rtl-optimization/71275
21751 * ira.c (ira): Free dominance info.
21752
21753 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
21754
21755 * doc/sourcebuild.texi: New address for upstream Go repository.
21756
21757 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
21758
21759 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
21760 (TARGET_ARM_V7M): Likewise.
21761
21762 2016-05-26 Jeff Law <law@redhat.com>
21763
21764 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
21765 (thread_across_edge): Remove calls to find_jump_threads_backwards.
21766 * passes.def: Add jump threading passes before DOM/VRP.
21767 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
21768 argument to a basic block from an edge. Remove tests which are
21769 handled elsewhere.
21770 (pass_data_thread_jumps, class pass_thread_jumps): New.
21771 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
21772 (make_pass_thread_jumps): Likewise.
21773 * tree-pass.h (make_pass_thread_jumps): Declare.
21774
21775 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
21776
21777 * config/visium/visium-protos.h (split_double_move): Rename into...
21778 (visium_split_double_move): ...this.
21779 (visium_split_double_add): Declare.
21780 * config/visium/visium.c (split_double_move): Rename into...
21781 (visium_split_double_move): ...this.
21782 (visium_split_double_add): New function.
21783 (visium_expand_copysign): Renumber operands for consistency.
21784 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
21785 (DFmode move splitter): Likewise.
21786 (*addi3_insn): Split by means of visium_split_double_add.
21787 (*adddi3_insn_flags): Delete.
21788 (*plus_plus_sltu<subst_arith>): New insn.
21789 (*subdi3_insn): Split by means of visium_split_double_add.
21790 (subdi3_insn_flags): Delete.
21791 (*minus_minus_sltu<subst_arith>): New insn.
21792 (*negdi2_insn): Split by means of visium_split_double_add.
21793 (*negdi2_insn_flags): Delete.
21794
21795 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
21796
21797 * configure.ac: Treat a --with-headers option without argument
21798 the same as the default (i.e. consult sys-include directory).
21799 * configure: Regenerate.
21800
21801 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21802
21803 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
21804 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
21805 prototype.
21806 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
21807 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
21808
21809 2016-05-27 Jiong Wang <jiong.wang@arm.com>
21810
21811 PR target/63596
21812 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
21813 tree-stdarg analysis results.
21814 (aarch64_setup_incoming_varargs): Likewise.
21815
21816 2016-05-27 Jiong Wang <jiong.wang@arm.com>
21817
21818 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
21819 va_list_gpr_counter_field and va_list_fpr_counter_field.
21820
21821 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
21822
21823 PR67609
21824 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
21825 * config/aarch64/aarch64.c
21826 (aarch64_cannot_change_mode_class): Remove function.
21827 * config/aarch64/aarch64-protos.h
21828 (aarch64_cannot_change_mode_class): Remove.
21829
21830 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21831
21832 * cfgloop.c (record_niter_bound): Record likely upper bounds.
21833 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
21834 get_likely_max_loop_iterations_int): New.
21835 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
21836 any_likely_upper_bound.
21837 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
21838 Declare.
21839 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
21840 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
21841 upper bound.
21842 (unroll_loop_constant_iterations): Likewise.
21843 (unroll_loop_runtime_iterations): Likewise.
21844 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
21845 * lto-streamer-out.c (output_cfg): Likewise.
21846 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
21847 bounds.
21848 (canonicalize_loop_induction_variables): Dump likely upper bounds.
21849 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
21850 (likely_max_loop_iterations): New.
21851 (likely_max_loop_iterations_int): New.
21852 (likely_max_stmt_executions): New.
21853 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
21854 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
21855 likely_max_stmt_executions): Declare.
21856
21857 2016-05-27 Marek Polacek <polacek@redhat.com>
21858
21859 PR middle-end/71308
21860 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
21861
21862 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21863
21864 * config/s390/s390.md (2x risbg splitters): Use
21865 reg_overlap_mentioned_p instead of rtx_equal_p.
21866
21867 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
21868
21869 * combine.c (make_compound_operation): Take known zero bits into
21870 account when checking for possible zero_extend.
21871
21872 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21873
21874 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
21875 Use const_int_operand for operand 2 predicate. Simplify expand code
21876 as a result.
21877
21878 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
21879
21880 PR middle-end/71279
21881 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
21882 into comparison.
21883
21884 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21885
21886 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
21887 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
21888 that returns CC_SESWPmode and CC_ZESWPmode.
21889 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
21890 and CC_SESWPmode.
21891 (aarch64_rtx_costs): Likewise.
21892
21893 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
21894
21895 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
21896 for ISA 3.0 min/max support.
21897 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
21898 conditional move support.
21899 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
21900 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
21901 available.
21902 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
21903 conditional moves where the comparison type is different from move
21904 type.
21905 (fp_minmax): New code iterator for smin/smax.
21906 (minmax): New code attributes for min/max.
21907 (SMINMAX): Likewise.
21908 (smax<mode>3): Combine min, max insns into one insn using the
21909 fp_minmax code iterator. Add support for ISA 3.0 min/max
21910 instructions that don't need -ffast-math.
21911 (s<minmax><mode>3): Likewise.
21912 (smax<mode>3_vsx): Likewise.
21913 (smin<mode>3): Likewise.
21914 (s<minmax><mode>3_vsx): Likewise.
21915 (smin<mode>3_vsx): Likewise.
21916 (pre-VSX min/max splitters): Likewise.
21917 (s<minmax><mode>3_fpr): Likewise.
21918 (movsfcc): Rewrite floating point conditional moves to combine
21919 SFmode/DFmode into a single insn.
21920 (mov<mode>cc): Likewise.
21921 (movdfcc): Likewise.
21922 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
21923 SFDF2 iterators to handle all combinations.
21924 (fseldfsf4): Likewise.
21925 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
21926 (fseldfdf4): Likewise.
21927 (fselsfdf4): Likewise.
21928 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
21929 comparison instructions that set a 0/-1 mask, and use it for
21930 floating point conditional move via XXSEL.
21931 (fpmask<mode>): Likewise.
21932 (xxsel<mode>): Likewise.
21933 * config/rs6000/predicates.md (min_max_operator): Delete, no
21934 longer used.
21935 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
21936 instructions that generate a 0/-1 mask for use with XXSEL.
21937 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
21938 say whether floating point min/max is available, either through
21939 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
21940 (TARGET_MINMAX_DF): Likewise.
21941
21942 2016-05-27 Alan Modra <amodra@gmail.com>
21943
21944 PR rtl-optimization/71275
21945 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
21946 for update_equiv_regs and combine_and_move_insns.
21947
21948 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
21949
21950 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
21951 if_then_else or cond RTXes to calculate attribute value.
21952 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
21953 <attr "length_immediate>: Ditto.
21954 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
21955 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
21956 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
21957 <attr "type">: Ditto.
21958 <attr "prefix_data16">: Ditto.
21959 <attr "prefix_extra">: Ditto.
21960 <attr "length_immediate">: Ditto.
21961 <attr "prefix">: Ditto.
21962 (vec_set<mode>_0) <attr "isa">: Ditto.
21963 <attr "prefix_extra">: Ditto.
21964 <attr "length_immediate">: Ditto.
21965 <attr "prefix">: Ditto.
21966 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
21967 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
21968 (sse2_storelpd) <attr "prefix_data16">: Ditto.
21969 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
21970 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
21971 <attr "length_immediate">: Ditto.
21972 <attr "prefix">: Ditto.
21973 (sse2_movsd) <attr "length_immediate">: Ditto.
21974 <attr "prefix">: Ditto.
21975 (vec_concatv2df) <attr "isa">: Ditto.
21976 <attr "prefix">: Ditto.
21977 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
21978 (*vec_extractv2di_1) <attr "isa">: Ditto.
21979 <attr "type">: Ditto.
21980 <attr "length_immediate">: Ditto.
21981 <attr "prefix_rex">: Ditto.
21982 <attr "prefix_extra">: Ditto.
21983 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
21984 <attr "prefix_extra">: Ditto.
21985 <attr "length_immediate">: Ditto.
21986 (vec_concatv2di) <attr "isa">: Ditto.
21987 <attr "prefix_extra">: Ditto.
21988 <attr "length_immediate">: Ditto.
21989 <attr "prefix">: Ditto.
21990
21991 2016-05-26 Martin Liska <mliska@suse.cz>
21992
21993 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
21994 function.
21995 (operator+): Likewise.
21996 (operator-): Likewise.
21997 (comp_cost::operator+=): Likewise.
21998 (comp_cost::operator-=): Likewise.
21999 (comp_cost::operator/=): Likewise.
22000 (comp_cost::operator*=): Likewise.
22001 (operator<): Likewise.
22002 (operator==): Likewise.
22003 (operator<=): Likewise.
22004 (new_cost): Remove.
22005 (infinite_cost_p): Likewise.
22006 (add_costs): Likewise.
22007 (sub_costs): Likewise.
22008 (compare_costs): Likewise.
22009 (set_group_iv_cost): Use the newly introduced functions.
22010 (get_address_cost): Likewise.
22011 (get_shiftadd_cost): Likewise.
22012 (force_expr_to_var_cost): Likewise.
22013 (split_address_cost): Likewise.
22014 (ptr_difference_cost): Likewise.
22015 (difference_cost): Likewise.
22016 (get_computation_cost_at): Likewise.
22017 (determine_group_iv_cost_generic): Likewise.
22018 (determine_group_iv_cost_address): Likewise.
22019 (determine_group_iv_cost_cond): Likewise.
22020 (autoinc_possible_for_pair): Likewise.
22021 (determine_group_iv_costs): Likewise.
22022 (cheaper_cost_pair): Likewise.
22023 (iv_ca_recount_cost): Likewise.
22024 (iv_ca_set_no_cp): Likewise.
22025 (iv_ca_set_cp): Likewise.
22026 (iv_ca_cost): Likewise.
22027 (iv_ca_new): Likewise.
22028 (iv_ca_dump): Likewise.
22029 (iv_ca_narrow): Likewise.
22030 (iv_ca_prune): Likewise.
22031 (iv_ca_replace): Likewise.
22032 (try_add_cand_for): Likewise.
22033 (try_improve_iv_set): Likewise.
22034 (find_optimal_iv_set): Likewise.
22035
22036 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
22037
22038 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
22039 that internal functions will clobber all caller-saved registers.
22040
22041 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
22042
22043 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
22044 Return a better case_values_threshold when optimizing.
22045
22046 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
22047
22048 * config/aarch64/aarch64-simd.md (aarch64_combinez):
22049 Add ? to integer variant.
22050 (aarch64_combinez_be): Likewise.
22051
22052 2016-05-26 Jakub Jelinek <jakub@redhat.com>
22053
22054 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
22055 instead of x constraint.
22056 (vcvtps2ph256<mask_name>): Likewise.
22057
22058 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
22059 alternative. Formatting fix.
22060
22061 * config/i386/sse.md
22062 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
22063 to ...
22064 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
22065 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
22066 maybe_evex prefix instead of vex.
22067 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
22068 EXT_REX_SSE_REG_P (op0) case in the splitter.
22069
22070 2016-05-25 Jeff Law <law@redhat.com>
22071
22072 PR tree-optimization/71272
22073 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
22074 Update comments. Add test for empty path.
22075
22076 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22077
22078 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
22079 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
22080 special case builtin.
22081 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
22082 code for ALTIVEC_BUILTIN_VEC_CMPNE.
22083 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
22084 for __builtin_vec_cmpne.
22085
22086 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
22087
22088 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
22089 redundant test and bail out if the type of the new operand is not
22090 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
22091
22092 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
22093
22094 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
22095 (x_ix86_target_flags_explicit): Remove.
22096 * config/i386/i386.c (ix86_function_specific_save): Do not copy
22097 x_ix86_target_flags_explicit.
22098 (ix86_function_specific_restore): Ditto.
22099
22100 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
22101 H.J. Lu <hongjiu.lu@intel.com>
22102
22103 PR target/70738
22104 * common/config/i386/i386-common.c
22105 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
22106 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
22107 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
22108 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
22109 (-mgeneral-regs-only): Add new option.
22110 * config/i386/i386.c (ix86_option_override_internal): Don't enable
22111 x87 instructions if only general registers are allowed.
22112 (ix86_target_string): Add ix86_flags argument. Handle additional
22113 flags options through ix86_flags argument. Update all callers.
22114 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
22115
22116 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22117
22118 PR rtl-optimization/66940
22119 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
22120 decrementing desired_val will not overflow before performing these
22121 operations.
22122
22123 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
22124
22125 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
22126 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
22127 * config/i386/i386.c (enum ix86_builtins): Add
22128 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
22129 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
22130 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
22131 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
22132 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
22133 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
22134 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
22135 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
22136 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
22137 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
22138 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
22139 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
22140 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
22141 __builtin_ia32_cvtps2dq512_mask.
22142 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
22143 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
22144 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
22145 * config/i386/sse.md
22146 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
22147 Rename to ...
22148 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
22149 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
22150 to ...
22151 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
22152 (avx512f_vec_pack_sfix_v8df): New define_expand.
22153 (avx512f_roundpd512): Rename to ...
22154 (avx512f_round<castmode>512): ... this. Change iterator.
22155 (avx512f_roundps512_sfix): New define_expand.
22156 (round<mode>2_sfix): Change iterator.
22157
22158 2016-05-25 Nick Clifton <nickc@redhat.com>
22159
22160 * config/msp430/msp430.c (msp430_attr): Produce an error if a
22161 static interrupt handler is detected.
22162 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
22163 default linker script.
22164 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
22165 the low part of a symbolic pointer.
22166
22167 2016-05-25 Richard Biener <rguenther@suse.de>
22168
22169 PR tree-optimization/71261
22170 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
22171 interesting stmt instead of immediate uses when looking
22172 for the use operand to replace.
22173
22174 2016-05-25 Martin Liska <mliska@suse.cz>
22175
22176 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
22177
22178 2016-05-25 Richard Biener <rguenther@suse.de>
22179
22180 PR tree-optimization/71264
22181 * tree-vect-stmts.c (vect_init_vector): Properly deal with
22182 vector type val.
22183
22184 2016-05-25 Martin Liska <mliska@suse.cz>
22185
22186 PR tree-optimization/71239
22187 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
22188 if DECL_SIZE is NULL.
22189
22190 2016-05-25 Richard Biener <rguenther@suse.de>
22191
22192 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
22193 * tree-if-conv.c (pass_data_if_conversion): Use it.
22194
22195 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
22196
22197 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
22198 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
22199 * varpool.c (varpool_node::get_availability): Likewise.
22200
22201 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22202
22203 * config/rs6000/altivec.md (VNEG iterator): New iterator for
22204 VNEGW/VNEGD instructions.
22205 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
22206 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
22207 support for ISA 3.0 VNEGW/VNEGD instructions.
22208
22209 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
22210
22211 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
22212 pointers inside OACC_DATA regions.
22213 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
22214 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
22215 (gimplify_adjust_omp_clauses): Fix typo in comment.
22216
22217 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22218
22219 * config/rs6000/altivec.md (VParity): New mode iterator for vector
22220 parity built-in functions.
22221 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
22222 zeros.
22223 (p9v_parity<mode>2): Likewise.
22224 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
22225 parity.
22226 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
22227 (parity<mode>2): ISA 3.0 expander for vector parity.
22228 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
22229 power9 built-ins.
22230 (BU_P9_64BIT_MISC_0): Likewise.
22231 (BU_P9_MISC_0): Likewise.
22232 (BU_P9V_AV_1): Likewise.
22233 (BU_P9V_AV_2): Likewise.
22234 (BU_P9V_AV_3): Likewise.
22235 (BU_P9V_AV_P): Likewise.
22236 (BU_P9V_VSX_1): Likewise.
22237 (BU_P9V_OVERLOAD_1): Likewise.
22238 (BU_P9V_OVERLOAD_2): Likewise.
22239 (BU_P9V_OVERLOAD_3): Likewise.
22240 (VCTZB): Add vector count trailing zeros support.
22241 (VCTZH): Likewise.
22242 (VCTZW): Likewise.
22243 (VCTZD): Likewise.
22244 (VPRTYBD): Add vector parity support.
22245 (VPRTYBQ): Likewise.
22246 (VPRTYBW): Likewise.
22247 (VCTZ): Add overloaded vector count trailing zeros support.
22248 (VPRTYB): Add overloaded vector parity support.
22249 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22250 overloaded vector count trailing zeros and parity instructions.
22251 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
22252 vector parity support.
22253 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
22254 trailing zeros support.
22255 (vec_cntlz): Likewise.
22256 (vec_vctzb): Likewise.
22257 (vec_vctzd): Likewise.
22258 (vec_vctzh): Likewise.
22259 (vec_vctzw): Likewise.
22260 (vec_vprtyb): Add ISA 3.0 vector parity support.
22261 (vec_vprtybd): Likewise.
22262 (vec_vprtybw): Likewise.
22263 (vec_vprtybq): Likewise.
22264 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
22265 the ISA 3.0 vector count trailing zeros and vector parity built-in
22266 functions.
22267
22268 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22269
22270 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
22271 when there is stmt_to_insert.
22272
22273 2016-05-24 Martin Sebor <msebor@redhat.com>
22274
22275 PR c++/71147
22276 * tree.h (complete_or_array_type_p): New inline function.
22277
22278 2016-05-24 Jakub Jelinek <jakub@redhat.com>
22279
22280 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
22281 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
22282 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
22283
22284 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
22285 Limit 1st alternative to noavx isa, split 2nd alternative into one
22286 noavx and one avx alternative, use *x and Bm in the former and
22287 x and m in the latter.
22288
22289 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
22290 of sse4 for the first alternative, drop %v from the template
22291 and d operand modifier. Split second alternative into one sse4_noavx
22292 and one avx alternative, use *x instead of *v in the former and v
22293 instead of *v in the latter.
22294 (*sse4_1_extractps): Use noavx isa instead of * for the first
22295 alternative, drop %v from the template. Split second alternative into
22296 one noavx and one avx alternative, use *x instead of *v in the
22297 former and v instead of *v in the latter.
22298 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
22299 with noavx and the last one with avx.
22300 (sse4_1_phminposuw): Guard first alternative with noavx isa,
22301 split the second one into one noavx and one avx alternative,
22302 use *x and Bm in the former and x and m in the latter one.
22303 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
22304 alternatives.
22305
22306 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
22307 first two alternatives to noavx, use *x instead of *v in the second
22308 one, add avx alternative without *.
22309 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
22310 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
22311 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
22312
22313 2016-05-24 Jeff Law <law@redhat.com>
22314
22315 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
22316 New function, extracted from...
22317 (fsm_find_control_statement_thread_paths): Here. Use the new function.
22318 Allow simple copies and constant initializations in the SSA chain.
22319
22320 2016-05-24 Marek Polacek <polacek@redhat.com>
22321
22322 PR c/71249
22323 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
22324 scope.
22325
22326 2016-05-24 Jakub Jelinek <jakub@redhat.com>
22327
22328 PR c++/71257
22329 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
22330 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
22331 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
22332 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
22333 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
22334
22335 2016-05-24 Richard Biener <rguenther@suse.de>
22336
22337 PR tree-optimization/71240
22338 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
22339 has integral type.
22340
22341 2016-05-24 Richard Biener <rguenther@suse.de>
22342
22343 PR tree-optimization/71230
22344 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
22345
22346 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22347
22348 * tree-vectorizer.h (vectorizable_comparison): Delete.
22349 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
22350 PURE_SLP_STMT check.
22351 * tree-vect-stmts.c (vectorizable_call): Likewise.
22352 (vectorizable_simd_clone_call): Likewise.
22353 (vectorizable_conversion): Likewise.
22354 (vectorizable_assignment): Likewise.
22355 (vectorizable_shift): Likewise.
22356 (vectorizable_operation): Likewise.
22357 (vectorizable_load): Likewise.
22358 (vectorizable_condition): Likewise.
22359 (vectorizable_store): Likewise. Assert that we don't have
22360 hybrid SLP.
22361 (vectorizable_comparison): Make static. Remove redundant
22362 PURE_SLP_STMT check.
22363 (vect_transform_stmt): Assert that we always have an slp_node
22364 if PURE_SLP_STMT.
22365
22366 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22367
22368 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
22369 operands[2] against 1 with comparison against CONST1_RTX.
22370 (<shift>di3_neon): Likewise.
22371 * config/arm/predicates.md (const0_operand): Replace with comparison
22372 against CONST0_RTX.
22373
22374 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22375
22376 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
22377 operands[2] against 1 with comparison against CONST1_RTX.
22378 (ashrdi3): Likewise.
22379 (lshrdi3): Likewise.
22380 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
22381 UINTVAL.
22382 (ashrsi3): Likewise.
22383 (lshrsi3): Likewise.
22384 (rotrsi3): Likewise.
22385 (define_split above *compareqi_eq0): Likewise.
22386 (define_split above "prologue"): Likewise.
22387 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
22388 * config/arm/predicates.md (shift_operator): Likewise.
22389 (shift_nomul_operator): Likewise.
22390 (sat_shift_operator): Likewise.
22391 (thumb1_cmp_operand): Likewise.
22392 (const_neon_scalar_shift_amount_operand): Replace manual range
22393 check with IN_RANGE.
22394 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
22395 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
22396
22397 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22398
22399 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
22400 with HOST_WIDE_INT_1.
22401 (insv): Likewise.
22402 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
22403 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
22404 (arm_canonicalize_comparison): Likewise.
22405 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
22406 HOST_WIDE_INT_1.
22407 (thumb1_size_rtx_costs): Likewise.
22408 (vfp_const_double_index): Replace cast of 1 to unsigned
22409 HOST_WIDE_INT with HOST_WIDE_INT_1U.
22410 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
22411 HOST_WIDE_INT_1.
22412 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
22413 HOST_WIDE_INT with HOST_WIDE_INT_1U.
22414 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
22415 HOST_WIDE_INT with HOST_WIDE_INT_1.
22416
22417 2016-05-24 Marek Polacek <polacek@redhat.com>
22418
22419 * tree-cfg.h (should_remove_lhs_p): New predicate.
22420 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
22421 * gimplify.c (gimplify_modify_expr): Likewise.
22422 * tree-cfg.c (verify_gimple_call): Likewise.
22423 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
22424 * gimple-fold.c: Include "tree-cfg.h".
22425 (gimple_fold_call): Use should_remove_lhs_p.
22426
22427 2016-05-24 Richard Biener <rguenther@suse.de>
22428
22429 PR tree-optimization/71253
22430 * cfganal.h (control_dependences): Make robust against edge
22431 and BB removal.
22432 (control_dependences::control_dependences): Remove edge_list argument.
22433 (control_dependences::get_edge): Remove.
22434 (control_dependences::get_edge_src): Add.
22435 (control_dependences::get_edge_dest): Likewise.
22436 (control_dependences::m_el): Make a vector of edge src/dest index.
22437 * cfganal.c (control_dependences::find_control_dependence): Adjust.
22438 (control_dependences::control_dependences): Likewise.
22439 (control_dependences::~control_dependence): Likewise.
22440 (control_dependences::get_edge): Remove.
22441 (control_dependences::get_edge_src): Add.
22442 (control_dependences::get_edge_dest): Likewise.
22443 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
22444 get_edge_src.
22445 (perform_tree_ssa_dce): Adjust.
22446 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
22447 get_edge_src.
22448 (pass_loop_distribution::execute): Adjust. Do loop destroying
22449 conditional on changed.
22450
22451 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22452
22453 PR target/69857
22454 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
22455 return. Reindent transformation comment and mention the ARM state
22456 behavior.
22457
22458 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22459
22460 PR middle-end/71252
22461 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
22462 after build_and_add_sum creates new use stmt.
22463
22464 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22465
22466 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
22467 load_lanes/grouped_load classification comes first. Don't check
22468 whether the vectorization factor is a multiple of the group size
22469 for load_lanes.
22470
22471 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22472
22473 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
22474 GROUP_GAP for single-element interleaving.
22475 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
22476 variable.
22477
22478 2016-05-24 Richard Biener <rguenther@suse.de>
22479
22480 PR middle-end/70434
22481 PR c/69504
22482 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
22483 bases which are accessed with non-invariant indices.
22484 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
22485 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
22486
22487 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22488
22489 PR middle-end/71170
22490 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
22491 (add_to_ops_vec): Add stmt_to_insert.
22492 (add_repeat_to_ops_vec): Init stmt_to_insert.
22493 (insert_stmt_before_use): New.
22494 (transform_add_to_multiply): Remove mult_stmt insertion and add it
22495 to ops vector.
22496 (get_ops): Init stmt_to_insert.
22497 (maybe_optimize_range_tests): Likewise.
22498 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
22499 (rewrite_expr_tree_parallel): Likewise.
22500 (reassociate_bb): Likewise.
22501
22502 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22503
22504 PR target/71201
22505 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
22506 ISA 3.0 xxperm fusion alternative.
22507 (altivec_vperm_v8hiv16qi): Likewise.
22508 (altivec_vperm_<mode>_uns_internal): Likewise.
22509 (vperm_v8hiv4si): Likewise.
22510 (vperm_v16qiv8hi): Likewise.
22511
22512 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22513 Kelvin Nilsen <kelvin@gcc.gnu.org>
22514
22515 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
22516 vpermr/xxpermr on ISA 3.0.
22517 (altivec_expand_vec_perm_le): Likewise.
22518 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
22519 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
22520 ISA 3.0.
22521
22522 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
22523
22524 * config/i386/i386.h (IS_STACK_MODE): Enable for
22525 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
22526 SSE_FLOAT_MODE_P macros.
22527 * config/i386/i386.c (ix86_preferred_reload_class): Use
22528 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
22529 Cleanup regclass processing for CONST_DOUBLE_P.
22530 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
22531 (ix86_rtx_costs): Remove redundant TARGET_80387 check
22532 with IS_STACK_MODE macro.
22533 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
22534 with TARGET_SSE2.
22535 (*movdf_internal): Use IS_STACK_MODE macro.
22536 (*movsf_internal): Ditto.
22537
22538 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
22539
22540 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
22541 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
22542
22543 2016-05-23 Jeff Law <law@redhat.com>
22544
22545 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
22546 extracted from ...
22547 (fsm_find_control_statement_thread_paths): Call it.
22548
22549 2016-05-23 Martin Jambor <mjambor@suse.cz>
22550
22551 PR ipa/71234
22552 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
22553 from_global_constant if t is not NULL.
22554
22555 2016-05-23 Marek Polacek <polacek@redhat.com>
22556
22557 PR c/49859
22558 * common.opt (Wswitch-unreachable): New option.
22559 * doc/invoke.texi: Document -Wswitch-unreachable.
22560 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
22561 warning.
22562
22563 2016-05-23 Bin Cheng <bin.cheng@arm.com>
22564
22565 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
22566 TMR_INDEX is non-NULL.
22567
22568 2016-05-23 Richard Biener <rguenther@suse.de>
22569
22570 PR tree-optimization/71230
22571 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
22572 (try_special_add_to_ops): ... here. Always test for single-use.
22573
22574 2016-05-23 Martin Jambor <mjambor@suse.cz>
22575
22576 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
22577 default block if a PHI node in the original one would be resized.
22578
22579 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22580
22581 PR tree-optimization/58135
22582 * tree-vect-slp.c: When group size is not multiple
22583 of vector size, allow splitting of store group at
22584 vector boundary.
22585
22586 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
22587
22588 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
22589
22590 2016-05-22 Jakub Jelinek <jakub@redhat.com>
22591
22592 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
22593 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
22594 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
22595 of 64x2.
22596
22597 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
22598 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
22599 v constraint instead of x and vinserti32x4 insn.
22600
22601 * config/i386/sse.md (i128vldq): New mode iterator.
22602 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
22603 avx512dq and avx512vl alternatives.
22604
22605 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
22606 constraint, use maybe_evex prefix instead of vex.
22607 (vec_dupv4sf): Use v constraint instead of x for output
22608 operand except for noavx alternative, use Yv constraint
22609 instead of x for input. Use maybe_evex prefix instead of vex.
22610 (*vec_dupv4si): Likewise.
22611 (*vec_dupv2di): Likewise.
22612
22613 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
22614
22615 PR middle-end/40921
22616 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
22617 (linearize_expr_tree): Call try_special_add_to_ops.
22618 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
22619
22620 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22621
22622 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
22623 to computed stack_usage.
22624
22625 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22626
22627 PR target/71103
22628 * config/avr/avr.md (define_expand "mov<mode>"): If the source
22629 operand is subreg (symbol_ref) then move the symbol ref to register.
22630
22631 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
22632
22633 * tree.c (array_at_struct_end_p): Look through MEM_REF.
22634
22635 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
22636
22637 PR middle-end/71179
22638 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
22639 VECTOR type.
22640
22641 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
22642
22643 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
22644 ranges by calling get_single_symbol and tidy up. Look more closely
22645 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
22646
22647 2016-05-20 Jeff Law <law@redhat.com>
22648
22649 * bitmap.c (bitmap_find_bit): Remove useless test.
22650
22651 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
22652
22653 * function.c (thread_prologue_and_epilogue_insns): Commit the
22654 insertion of the epilogue.
22655
22656 2016-05-20 Martin Jambor <mjambor@suse.cz>
22657
22658 PR tree-optimization/70884
22659 * tree-sra.c (initialize_constant_pool_replacements): Do not check
22660 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
22661 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
22662 of constant pool data as a reason for scalarization.
22663
22664 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
22665
22666 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
22667 for naked functions.
22668 (thumb1_expand_prologue): Likewise.
22669
22670 2016-05-20 Nathan Sidwell <nathan@acm.org>
22671
22672 * config/nvptx/nptx.c (nvptx_option_override): Only set
22673 flag_toplevel_reorder, if not explicitly specified. Set
22674 flag_no_common, unless explicitly specified.
22675
22676 2016-05-20 David Malcolm <dmalcolm@redhat.com>
22677
22678 * calls.c (can_implement_as_sibling_call_p): Mark param
22679 reg_parm_stack_space with ATTRIBUTE_UNUSED.
22680
22681 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
22682
22683 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
22684 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
22685 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
22686 constants.
22687 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
22688 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
22689 and CASE_CONST_ANY.
22690
22691 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
22692
22693 * config/nvptx/nvptx.md (sincossf3): New pattern.
22694
22695 2016-05-20 David Malcolm <dmalcolm@redhat.com>
22696
22697 * calls.c (maybe_complain_about_tail_call): New function.
22698 (initialize_argument_information): Call
22699 maybe_complain_about_tail_call when clearing *may_tailcall.
22700 (can_implement_as_sibling_call_p): Call
22701 maybe_complain_about_tail_call when returning false.
22702 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
22703 ensure try_tail_call is set. Call maybe_complain_about_tail_call
22704 if tail-call optimization fails.
22705 * cfgexpand.c (expand_call_stmt): Initialize
22706 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
22707 * gimple-pretty-print.c (dump_gimple_call): Dump
22708 gimple_call_must_tail_p.
22709 * gimple.c (gimple_build_call_from_tree): Call
22710 gimple_call_set_must_tail with the value of
22711 CALL_EXPR_MUST_TAIL_CALL.
22712 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
22713 (gimple_call_set_must_tail): New function.
22714 (gimple_call_must_tail_p): New function.
22715 * print-tree.c (print_node): Update printing of TREE_STATIC
22716 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
22717 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
22718 trailing comment listing applicable flags.
22719 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
22720
22721 2016-05-20 David Malcolm <dmalcolm@redhat.com>
22722
22723 * calls.c (expand_call): Move "Rest of purposes for tail call
22724 optimizations to fail" to...
22725 (can_implement_as_sibling_call_p): ...this new function, and
22726 split into multiple "if" statements.
22727
22728 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
22729
22730 * cfgloop.h (expected_loop_iterations_unbounded,
22731 expected_loop_iterations): Unconstify.
22732 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
22733 profile with known upper bound; return 3 when profile is absent.
22734 (expected_loop_iterations): Update.
22735
22736 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
22737
22738 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
22739 and get_max_loop_iterations_int.
22740
22741 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
22742
22743 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
22744 realistic upper bounds here.
22745
22746 2016-05-20 Jakub Jelinek <jakub@redhat.com>
22747
22748 PR c++/71210
22749 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
22750 calls if the LHS is variable length or has addressable type.
22751 If targets[0]->decl is a noreturn call with void return type and
22752 zero arguments, adjust fntype and remove lhs in that case.
22753
22754 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
22755
22756 PR tree-optimization/71079
22757 PR tree-optimization/71206
22758 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
22759
22760 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22761
22762 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
22763 (get_vec_alignment_for_array_decl): Likewise.
22764 (get_vec_alignment_for_record_decl): Likewise.
22765 (increase_alignment::execute): Move code to find alignment to
22766 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
22767 (type_align_map): New hash_map.
22768
22769 2016-05-20 Richard Guenther <rguenther@suse.de>
22770
22771 PR tree-optimization/29756
22772 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
22773 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
22774 * fold-const.c (operand_equal_p): Likewise.
22775 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
22776 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
22777 * tree-inline.c (estimate_operator_cost): Likewise.
22778 * tree-pretty-print.c (dump_generic_node): Likewise.
22779 * tree-ssa-operands.c (get_expr_operands): Likewise.
22780 * cfgexpand.c (expand_debug_expr): Likewise.
22781 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
22782 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
22783 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
22784 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
22785 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
22786 (execute_update_addresses_taken): Do it.
22787
22788 2016-05-20 Richard Biener <rguenther@suse.de>
22789
22790 PR tree-optimization/71185
22791 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
22792 register operations.
22793
22794 2016-05-20 Richard Biener <rguenther@suse.de>
22795
22796 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
22797 gimple_seq_add_seq_without_update.
22798 (release_bb_predicate): Assert we have no operands to free.
22799 (if_convertible_loop_p_1): Calculate post dominators later.
22800 Do not free BB predicates here.
22801 (combine_blocks): Do not recompute BB predicates.
22802 (version_loop_for_if_conversion): Save BB predicates around
22803 loop versioning.
22804
22805 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22806
22807 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
22808 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
22809 code. Ignore sibcalls on EDGE_IGNORE edges.
22810 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
22811 on edges for sibcalls that run without prologue. The rest of the
22812 function is combined from...
22813 (fix_fake_fallthrough_edge): ... this, and ...
22814 (try_shrink_wrapping): ... a part of this. Remove the bb_with
22815 function argument, make it a local variable.
22816
22817 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
22818
22819 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
22820 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
22821 for 32-bit mode and SEH for 64-bit.
22822 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
22823 TARGET_64BIT_DEFAULT.
22824
22825 2016-05-19 Ryan Burn <contact@rnburn.com>
22826
22827 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
22828 * gengtype.c (open_base_files): Add cilk.h to ifiles.
22829
22830 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
22831
22832 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
22833 force pending loads from memory.
22834
22835 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
22836
22837 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
22838 (UNSPEC_DARN_32): New unspec constant.
22839 (UNSPEC_DARN_RAW): New unspec constant.
22840 (darn_32): New instruction.
22841 (darn_raw): New instruction.
22842 (darn): New instruction.
22843 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
22844 support and documentation for this macro.
22845 (BU_P9_MISC_1): New macro definition.
22846 (BU_P9_64BIT_MISC_0): New macro definition.
22847 (BU_P9_MISC_0): New macro definition.
22848 (darn_32): New builtin definition.
22849 (darn_raw): New builtin definition.
22850 (darn): New builtin definition.
22851 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
22852 RS6000_BUILTIN_0 directives to surround each occurrence of
22853 #include "rs6000-builtin.def".
22854 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
22855 RS6000_BTM_64BIT flags to the returned mask, depending on
22856 configuration.
22857 (def_builtin): Correct an error in the assignments made to the
22858 debugging variable attr_string.
22859 (rs6000_expand_builtin): Add support for no-operand built-in
22860 functions.
22861 (builtin_function_type): Remove fatal_error assertion that is no
22862 longer valid.
22863 (rs6000_common_init_builtins): Add support for no-operand built-in
22864 functions.
22865 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
22866 definition.
22867 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
22868 definition.
22869 (RS6000_BTM_64BIT): New macro definition.
22870 * doc/extend.texi: Document __builtin_darn (void),
22871 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
22872 functions.
22873
22874 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
22875
22876 * tree-vect-loop.c (vect_analyze_loop_2): Use also
22877 max_loop_iterations_int.
22878
22879 2016-05-19 Marek Polacek <polacek@redhat.com>
22880
22881 PR tree-optimization/71031
22882 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
22883 condition and adjust the code a bit.
22884
22885 2016-05-19 Martin Liska <mliska@suse.cz>
22886
22887 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
22888 auto_vec instead of vec.
22889
22890 2016-05-19 Martin Liska <mliska@suse.cz>
22891
22892 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
22893
22894 2016-05-19 Martin Liska <mliska@suse.cz>
22895
22896 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
22897
22898 2016-05-19 Martin Liska <mliska@suse.cz>
22899
22900 * ipa-pure-const.c (set_function_state): Remove an existing
22901 funct_state.
22902 (remove_node_data): Do not free it as it's released
22903 in set_function_state.
22904
22905 2016-05-19 Martin Liska <mliska@suse.cz>
22906
22907 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
22908 bitmap.
22909
22910 2016-05-19 Martin Liska <mliska@suse.cz>
22911
22912 * omp-simd-clone.c (simd_clone_adjust): Release vector.
22913
22914 2016-05-19 Martin Liska <mliska@suse.cz>
22915
22916 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
22917 an auto_vec instead of re-creating it.
22918
22919 2016-05-19 Martin Liska <mliska@suse.cz>
22920
22921 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
22922 auto_vec instead of vec.
22923
22924 2016-05-19 Martin Liska <mliska@suse.cz>
22925
22926 * lto-section-in.c (lto_get_section_data): Call
22927 lto_check_version with additional argument.
22928 * lto-streamer.c (lto_check_version): Add new argument.
22929 * lto-streamer.h (lto_check_version): Likewise.
22930
22931 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22932
22933 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
22934 Don't add cost of inner memory when handling sign-extended loads.
22935
22936 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
22937
22938 PR rtl-optimization/71148
22939 * cse.c (cse_main): Free dominance info.
22940 (rest_of_handle_cse): Don't free dominance info.
22941 (rest_of_handle_cse2): Likewise.
22942 (rest_of_handle_cse_after_global_opts): Likewise.
22943
22944 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22945
22946 PR target/71056
22947 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
22948 NULL_TREE early if NEON is not available. Remove now redundant check
22949 in ARM_CHECK_BUILTIN_MODE.
22950
22951 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
22952
22953 PR sanitizer/64354
22954 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
22955 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
22956 * doc/cpp.texi: Document new macros.
22957
22958 2016-05-19 Bin Cheng <bin.cheng@arm.com>
22959
22960 PR tree-optimization/69848
22961 * tree-vect-loop.c (vectorizable_reduction): Don't factor
22962 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
22963
22964 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22965
22966 * function.c (thread_prologue_and_epilogue_insn): Move the
22967 "goto epilogue_done" one block later.
22968
22969 2016-05-19 Richard Biener <rguenther@suse.de>
22970
22971 PR tree-optimization/70729
22972 * passes.def: Move LIM pass before PRE. Remove no longer
22973 required copyprop and move first DCE out of the loop pipeline.
22974
22975 2016-05-18 David Malcolm <dmalcolm@redhat.com>
22976
22977 PR driver/69265
22978 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
22979 (OBJS-libcommon-target): ...here.
22980 * opts-common.c: Include spellcheck.h.
22981 (cmdline_handle_error): Build a vec of valid options and use it
22982 to suggest provide hints for misspelled arguments.
22983
22984 2016-05-18 Jakub Jelinek <jakub@redhat.com>
22985
22986 PR c++/71100
22987 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
22988 lhs if it has TREE_ADDRESSABLE type.
22989
22990 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
22991
22992 PR target/71145
22993 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
22994 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
22995
22996 2016-05-18 Martin Jambor <mjambor@suse.cz>
22997
22998 PR ipa/69708
22999 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
23000 input for NOP_EXPR pass-through functions.
23001 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
23002 aggregate global constant VAR_DECLs in constant jump functions.
23003
23004 2016-05-18 Martin Jambor <mjambor@suse.cz>
23005
23006 PR ipa/69708
23007 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
23008 from TREE_READONLY parameters.
23009
23010 2016-05-18 Martin Jambor <mjambor@suse.cz>
23011
23012 PR ipa/69708
23013 * cgraph.h (cgraph_indirect_call_info): New field
23014 guaranteed_unmodified.
23015 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
23016 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
23017 appropriate.
23018 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
23019 pass the parameter value to ipa_find_agg_cst_for_param.
23020 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
23021 guaranteed_unmodified, store AA results there instead of bailing out
23022 if present.
23023 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
23024 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
23025 (find_constructor_constant_at_offset): New function.
23026 (ipa_find_agg_cst_from_init): Likewise.
23027 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
23028 static initializers of contants, report back through a new paameter
23029 from_global_constant if that was the case.
23030 (try_make_edge_direct_simple_call): Also pass parameter value to
23031 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
23032 appropriate.
23033 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
23034 (ipa_read_indirect_edge_info): Likewise.
23035 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
23036 (ipa_load_from_parm_agg): Likewise.
23037
23038 2016-05-18 Jiong Wang <jiong.wang@arm.com>
23039
23040 PR rtl-optimization/71150
23041 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
23042 check.
23043
23044 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23045
23046 PR target/70915
23047 * config/rs6000/constraints.md (wE constraint): New constraint
23048 for a vector constant that can be loaded with XXSPLTIB.
23049 (wM constraint): New constraint for a vector constant of a 1's.
23050 (wS constraint): New constraint for a vector constant that can be
23051 loaded with XXSPLTIB and a vector sign extend instruction.
23052 * config/rs6000/predicates.md (xxspltib_constant_split): New
23053 predicates for wE/wS constraints.
23054 (xxspltib_constant_nosplit): Likewise.
23055 (easy_vector_constant): Add support for constants that can be
23056 loaded via XXSPLTIB.
23057 (all_ones_constant): New predicate for vector constant with all
23058 1's set.
23059 (splat_input_operand): Add support for ISA 3.0 word splat operations.
23060 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
23061 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
23062 instruction and possibly with a sign extension.
23063 (output_vec_const_move): Add support for XXSPLTIB. If we are
23064 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
23065 instead of XXLXOR/XXLORC.
23066 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
23067 operations.
23068 (rs6000_legitimize_reload_address): Likewise.
23069 (rs6000_output_move_128bit): Use output_vec_const_move to emit
23070 constants.
23071 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
23072 combine VSX_M and VSX_M2 into one iterator.
23073 (VSX_M2): Likewise.
23074 (VSINT_84): New iterators for loading constants with XXSPLTIB.
23075 (VSINT_842): Likewise.
23076 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
23077 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
23078 XXSPLTIB instruction.
23079 (xxspltib_<mode>_nosplit): Likewise.
23080 (xxspltib_<mode>_split): New insn to load up constants with
23081 XXSPLTIB and a sign extend instruction.
23082 (vsx_mov<mode>): Replace single move that handled all vector types
23083 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
23084 moves (when -mvsx-timode is in effect) into the main vector
23085 moves. Eliminate separate moves for <VSr> <VSa>, where the
23086 preferred register class (<VSr>) is listed first, and the
23087 secondary register class (<VSa>) is listed second with a '?' to
23088 discourage use. Prefer loading 0/-1 in any VSX register for ISA
23089 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
23090 that if the register was involved in a slow operation, the
23091 clear/set operation does not wait for the slow operation to
23092 finish. Adjust the length attributes for 32-bit mode. Use
23093 rs6000_output_move_128bit and drop the use of the string
23094 instructions for 32-bit movti when -mvsx-timode is in effect. Use
23095 spacing so that the alternatives and attributes don't generate
23096 long lines, and put things in columns, so that it is easier to
23097 match up the operands and attributes with the insn alternatives.
23098 (vsx_mov<mode>_64bit): Likewise.
23099 (vsx_mov<mode>_32bit): Likewise.
23100 (vsx_movti_64bit): Fold movti into normal vector moves.
23101 (vsx_movti_32bit): Likewise.
23102 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
23103 splat instructions.
23104 (vsx_splat_v4si_internal): Likewise.
23105 (vsx_splat_v4sf_internal): Likewise.
23106 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
23107 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
23108 extend vector elements.
23109 (vsx_sign_extend_hi_<mode>): Likewise.
23110 (vsx_sign_extend_si_v2di): Likewise.
23111 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
23112 declaration.
23113 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
23114 constraints. Add trailing period to wL documentation.
23115
23116 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
23117
23118 PR middle-end/71020
23119 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
23120 * tree-dfa.c (replace_abnormal_ssa_names): New function.
23121 * tree-call-cdce.c: Include tree-dfa.h.
23122 (can_guard_call_p): New function, extracted from...
23123 (can_use_internal_fn): ...here.
23124 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
23125 and return void.
23126 (shrink_wrap_one_built_in_call): Likewise.
23127 (use_internal_fn): Likewise.
23128 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
23129 and return void. Call replace_abnormal_ssa_names.
23130 (pass_call_cdce::execute): Check can_guard_call_p during the
23131 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
23132 will always change something.
23133
23134 2016-05-18 Martin Jambor <mjambor@suse.cz>
23135
23136 PR ipa/70646
23137 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
23138 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
23139
23140 2016-05-18 Martin Jambor <mjambor@suse.cz>
23141
23142 PR ipa/70646
23143 * ipa-inline.h (condition): New field size.
23144 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
23145 for comaprison and store it into the new condition.
23146 (evaluate_conditions_for_known_args): Use condition size to check
23147 access sizes for all but CHANGED conditions.
23148 (unmodified_parm_1): New parameter size_p, store access size into it.
23149 (unmodified_parm): Likewise.
23150 (unmodified_parm_or_parm_agg_item): Likewise.
23151 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
23152 (set_cond_stmt_execution_predicate): Extract access sizes and store
23153 them to conditions.
23154 (set_switch_stmt_execution_predicate): Likewise.
23155 (will_be_nonconstant_expr_predicate): Likewise.
23156 (will_be_nonconstant_predicate): Likewise.
23157 (inline_read_section): Stream condition size.
23158 (inline_write_summary): Likewise.
23159
23160 2016-05-18 Richard Biener <rguenther@suse.de>
23161
23162 * tree-ssa-loop-im.c (determine_max_movement): Properly add
23163 condition cost to PHI cost instead of total_cost.
23164
23165 2016-05-18 Martin Liska <mliska@suse.cz>
23166
23167 PR fortran/70856
23168 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
23169 merged variables.
23170
23171 2016-05-18 Richard Biener <rguenther@suse.de>
23172
23173 * lto-streamer.h (LTO_major_version): Bump to 6.
23174
23175 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
23176
23177 * function.c (make_split_prologue_seq, make_prologue_seq,
23178 make_epilogue_seq): New functions, factored out from...
23179 (thread_prologue_and_epilogue_insns): Here.
23180
23181 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
23182
23183 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
23184 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
23185 of before. Add a comment.
23186
23187 2016-05-18 Bin Cheng <bin.cheng@arm.com>
23188
23189 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
23190 expression pointer, not pointer to the pointer.
23191
23192 2016-05-18 Jakub Jelinek <jakub@redhat.com>
23193
23194 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
23195 (avx2_pbroadcast<mode>): Add another alternative with v instead
23196 of x constraints in it, using <pbroadcast_evex_isa> isa.
23197 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
23198
23199 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
23200 constraint x instead of v in second alternative, add avx512bw
23201 alternative.
23202
23203 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
23204 constraint x instead of v in second alternative, add avx512bw
23205 alternative.
23206
23207 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
23208 constraint x instead of v in second alternative, add avx512bw
23209 alternative.
23210
23211 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
23212 avx512bw alternative.
23213
23214 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
23215
23216 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
23217 array to 128 chars.
23218 (define_insn "*andnottf3"): Ditto.
23219 (define_insn "*<code><mode>3"/any_logic): Ditto.
23220 (define_insn "*<code>tf3"/any_logic): Ditto.
23221 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
23222 operand to block AVX-512VL insn variant emit when it is not enabled.
23223
23224 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
23225
23226 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
23227 constraint fot SF mode.
23228
23229 2016-05-18 Petr Murzin <petr.murzin@intel.com>
23230 Kirill Yukhin <kirill.yukhin@intel.com>
23231
23232 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
23233 modifiers.
23234 (define_insn "rsqrt14<mode>"): Ditto.
23235 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
23236 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
23237 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
23238 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
23239 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
23240 Ditto.
23241 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
23242 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
23243 * config/i386/i386.c (ix86_print_operand): Expand check for size
23244 override codes for Intel syntax.
23245
23246 2016-05-18 Richard Biener <rguenther@suse.de>
23247
23248 PR tree-optimization/71168
23249 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
23250 initialization earlier.
23251
23252 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
23253
23254 * config/aarch64/aarch64-simd.md
23255 (aarch64_reduc_plus_internal<mode>): Rename to...
23256 (reduc_plus_scal): ...This, and remove previous implementation.
23257
23258 2016-05-18 Richard Biener <rguenther@suse.de>
23259
23260 * passes.def: Put late dse and cd_dce in canonical order.
23261
23262 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
23263
23264 * ipa-inline-transform.c (preserve_function_body_p): Look for
23265 first non-thunk clone.
23266 (save_function_body): Save into first non-thunk.
23267 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
23268 up call stmt id.
23269 (lto_output_node): Inline thunks don't need body in every
23270 partition.
23271 * lto-streamer-in.c: Do not fixup thunk clones.
23272 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
23273 thunks.
23274 * tree-inline.c (copy_bb): Be prepared for target node to be new after
23275 folding suceeds.
23276
23277 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
23278
23279 PR middle-end/63586
23280 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
23281 (reassociate_bb): Call transform_add_to_multiply.
23282
23283 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
23284
23285 * config/aarch64/aarch64.c (all_extensions): Removed unused
23286 static variable.
23287
23288 2016-05-17 Nathan Sidwell <nathan@acm.org>
23289
23290 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
23291 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
23292
23293 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
23294
23295 PR tree-optimization/54579
23296 PR middle-end/55299
23297 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
23298
23299 2016-05-17 Marek Polacek <polacek@redhat.com>
23300
23301 PR ipa/71146
23302 * tree-inline.c (expand_call_inline): Call
23303 maybe_remove_unused_call_args.
23304
23305 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
23306
23307 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
23308 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
23309 * doc/md.texi (fmin@var{m}3): Likewise.
23310
23311 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23312
23313 * match.pd (X & C): New transformation.
23314
23315 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23316
23317 * match.pd (~X & Y): New transformation.
23318
23319 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23320
23321 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
23322 information for new SSA_NAME.
23323 (simplify_conversion_using_ranges): Get range through get_range_info
23324 instead of get_value_range.
23325
23326 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23327
23328 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
23329 Remove inline assembly.
23330 (vmvn_s16): Likewise.
23331 (vmvn_s32): Likewise.
23332 (vmvn_u8): Likewise.
23333 (vmvn_u16): Likewise.
23334 (vmvn_u32): Likewise.
23335 (vmvnq_s8): Likewise.
23336 (vmvnq_s16): Likewise.
23337 (vmvnq_s32): Likewise.
23338 (vmvnq_u8): Likewise.
23339 (vmvnq_u16): Likewise.
23340 (vmvnq_u32): Likewise.
23341 (vmvn_p8): Likewise.
23342 (vmvnq_p16): Likewise.
23343
23344 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23345
23346 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
23347 Use builtin.
23348 (vmul_n_s16): Likewise.
23349 (vmul_n_s32): Likewise.
23350 (vmul_n_u16): Likewise.
23351 (vmul_n_u32): Likewise.
23352 (vmulq_n_f32): Likewise.
23353 (vmulq_n_f64): Likewise.
23354 (vmulq_n_s16): Likewise.
23355 (vmulq_n_s32): Likewise.
23356 (vmulq_n_u16): Likewise.
23357 (vmulq_n_u32): Likewise.
23358
23359 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23360
23361 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
23362 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
23363
23364 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23365
23366 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
23367 to *aarch64_fma4_elt_from_dup<mode>.
23368 (*aarch64_fnma4_elt_to_128df): Rename to
23369 *aarch64_fnma4_elt_from_dup<mode>.
23370 * config/aarch64/arm_neon.h (vfma_n_f64): New.
23371 (vfms_n_f32): Likewise.
23372 (vfms_n_f64): Likewise.
23373 (vfmsq_n_f32): Likewise.
23374 (vfmsq_n_f64): Likewise.
23375
23376 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
23377
23378 * wide-int.h: Change fixed_wide_int_storage from class to struct.
23379
23380 2016-05-17 Richard Biener <rguenther@suse.de>
23381
23382 PR tree-optimization/71132
23383 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
23384 Only add control dependences for blocks in the loop.
23385 (build_rdg): Adjust.
23386 (generate_code_for_partition): Return whether loop should
23387 be destroyed and delay that.
23388 (distribute_loop): Likewise.
23389 (pass_loop_distribution::execute): Record loops to be destroyed
23390 and perform delayed destroying of loops.
23391
23392 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23393
23394 PR target/70809
23395 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
23396
23397 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23398
23399 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
23400
23401 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
23402
23403 PR target/71114
23404 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
23405 insertion point for instructions generated by validize_mem.
23406
23407 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23408
23409 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
23410 in brackets.
23411
23412 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23413
23414 * config/aarch64/aarch64.c
23415 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
23416 rather than a macro.
23417
23418 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23419
23420 * doc/invoke.texi (AArch64 Options): Various updates.
23421
23422 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23423
23424 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
23425 into instrumentation thunks.
23426 * cif-code.def (CIF_CHKP): New.
23427
23428 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
23429
23430 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
23431
23432 2016-05-16 Martin Jambor <mjambor@suse.cz>
23433
23434 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
23435 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
23436
23437 2016-05-16 Marek Polacek <polacek@redhat.com>
23438
23439 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
23440 commentary.
23441
23442 2016-05-16 Martin Jambor <mjambor@suse.cz>
23443
23444 PR hsa/70857
23445 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
23446 the outlined kernel function.
23447
23448 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
23449
23450 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
23451 (ISA_HAS_DLSA): Ditto.
23452
23453 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
23454
23455 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
23456
23457 2016-05-16 Nathan Sidwell <nathan@acm.org>
23458
23459 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
23460 (nvptx_name_replacement): Restore. Add comment.
23461 (write_fn_proto, write_fn_proto_from_insn,
23462 nvptx_output_call_insn): Restore
23463 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
23464
23465 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23466
23467 * config/aarch64/aarch64.md
23468 (add<mode>3_compareC_cconly_imm): Remove use of %w.
23469 (add<mode>3_compareC_imm): Likewise.
23470 (<optab>si3_uxtw): Split into register and immediate variants.
23471 (andsi3_compare0_uxtw): Likewise.
23472 (and<mode>3_compare0): Likewise.
23473 (and<mode>3nr_compare0): Likewise.
23474 (stack_protect_test_<mode>): Don't use %x for memory operands.
23475
23476 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
23477
23478 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
23479
23480 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23481
23482 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
23483 Split integer shifts into shift_reg and bfm.
23484 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
23485 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
23486 (ror<mode>3_insn): Likewise.
23487 (<optab>si3_insn_uxtw): Likewise.
23488 (<optab><mode>3_insn): Change to rotate_imm.
23489 (extr<mode>5_insn_alt): Likewise.
23490 (extrsi5_insn_uxtw): Likewise.
23491 (extrsi5_insn_uxtw_alt): Likewise.
23492
23493 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23494
23495 * doc/tm.texi: Regenerate.
23496 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
23497 (TARGET_INVALID_RETURN_TYPE): Remove.
23498 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
23499 TARGET_INVALID_RETURN_TYPE.
23500 * target.def (invalid_parameter_type): Remove.
23501 (invalid_return_type): Remove.
23502
23503 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23504
23505 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
23506 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
23507 calls from thunk.
23508 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
23509 gimple body.
23510 (preserve_function_body_p): No need to preserve function body
23511 * cif-codes.def (CIF_THUNK): Remove.
23512 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
23513
23514 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23515
23516 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
23517
23518 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23519
23520 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
23521 for thunks.
23522
23523 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23524
23525 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
23526 (inline_small_functions): Do not look for function symbol when
23527 resetting caches.
23528
23529 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23530
23531 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
23532 of inline thunks
23533
23534 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23535 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23536 Jiong Wang <jiong.wang@arm.com>
23537
23538 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
23539 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
23540 Define __ARM_FP16_ARGS when appropriate.
23541 * config/arm/arm.c (arm_invalid_parameter_type): Remove
23542 declaration.
23543 (arm_invalid_return_type): Likewise.
23544 (TARGET_INVALID_PARAMETER_TYPE): Remove.
23545 (TARGET_INVALID_RETURN_TYPE): Remove.
23546 (aapcs_vfp_sub_candidate): Allow HFmode.
23547 (aapcs_vfp_allocate): Add comment. Support HFmode.
23548 (aapcs_vfp_allocate_return_reg): Likewise.
23549 (struct aapcs_cp_arg_layout): Slightly reword comments for
23550 is_return_candidate and allocate_return_reg.
23551 (output_mov_vfp): Update assert.
23552 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
23553 condition.
23554 (arm_invalid_parameter_type): Remove.
23555 (amr_invalid_return_type): Remove.
23556 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
23557 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
23558 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
23559
23560 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23561
23562 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
23563 * config/aarch64/arch64-protos.h
23564 (aarch64_legitimize_reload_address): Remove.
23565 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
23566 Remove.
23567
23568 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
23569
23570 * configure.ac: Add ACX_NONCANONICAL_HOST.
23571 * configure: Regenerate.
23572 * Makefile.in: Set host_noncanonical.
23573
23574 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
23575
23576 PR target/71097
23577 * config/i386/i386.md (*movtf_internal): Before register allocation,
23578 do not allow FP constants for CM_MEDIUM memory model, allow only
23579 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
23580 (*movxf_internal): Ditto.
23581 (*movdf_internal): Ditto.
23582 (*movsf_internal): Ditto.
23583
23584 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
23585
23586 PR rtl-optimization/67483
23587 * combine.c (make_compound_operation): Don't call extract_left_shift
23588 with negative shift amounts.
23589
23590 2016-05-13 Jakub Jelinek <jakub@redhat.com>
23591
23592 PR bootstrap/71071
23593 * fold-const.c (fold_checksum_tree): Allow modification
23594 of TYPE_ALIAS_SET during folding.
23595
23596 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
23597 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
23598 (ix86_split_to_parts): Likewise. Fix up formatting.
23599
23600 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
23601
23602 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
23603 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
23604 printf format.
23605
23606 2016-05-13 Nathan Sidwell <nathan@acm.org>
23607
23608 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
23609 (nvptx_name_replacement): Delete.
23610 (write_fn_proto, write_fn_proto_from_insn,
23611 nvptx_output_call_insn): Remove nvptx_name_replacement call.
23612 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
23613 * langhooks.c (add_builtin_funcction_common): Call
23614 targetm.mangle_decl_assembler_name.
23615
23616 * config/nvptx/nvptx.c (write_fn_proto): Handle
23617 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
23618
23619 2016-05-13 Martin Liska <mliska@suse.cz>
23620
23621 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
23622 and PRIu64 in printf format.
23623
23624 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23625
23626 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
23627 comment.
23628
23629 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23630
23631 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
23632 Change --param max-completely-peeled-times to
23633 --param max-completely-peel-times in dump file printing.
23634
23635 2016-05-13 Richard Biener <rguenther@suse.de>
23636
23637 PR tree-optimization/42587
23638 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
23639 (find_bswap_or_nop_1): Likewise.
23640 (bswap_replace): Likewise.
23641
23642 2016-05-13 Martin Liska <mliska@suse.cz>
23643
23644 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
23645 Initialize a variable with default value.
23646
23647 2016-05-13 Martin Liska <mliska@suse.cz>
23648
23649 * doc/invoke.texi: Enhance explanation of error recovery
23650 of sanitizers.
23651
23652 2016-05-13 Martin Liska <mliska@suse.cz>
23653
23654 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
23655 (struct cost_pair): Change inv_expr_id (int) to inv_expr
23656 (iv_inv_expr_ent *).
23657 (struct iv_inv_expr_ent): Comment struct fields.
23658 (sort_iv_inv_expr_ent): New function.
23659 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
23660 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
23661 a hash_map between iv_inv_expr_ent and number of usages.
23662 (niter_for_exit): Fix coding style.
23663 (tree_ssa_iv_optimize_init): Use renamed variable.
23664 (determine_base_object): Fix coding style.
23665 (alloc_iv): Likewise.
23666 (find_interesting_uses_outside): Likewise.
23667 (add_candidate_1): Likewise.
23668 (add_standard_iv_candidates): Likewise.
23669 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
23670 (prepare_decl_rtl): Fix coding style.
23671 (get_address_cost): Likewise.
23672 (get_shiftadd_cost): Likewise.
23673 (force_expr_to_var_cost): Likewise.
23674 (compare_aff_trees): Likewise.
23675 (get_expr_id): Restructure the function.
23676 (get_loop_invariant_expr_id): Renamed to
23677 get_loop_invariant_expr.
23678 (get_computation_cost_at): Replace usage of inv_expr_id with
23679 inv_expr.
23680 (get_computation_cost): Likewise.
23681 (determine_group_iv_cost_generic): Likewise.
23682 (determine_group_iv_cost_address): Likewise.
23683 (iv_period): Fix coding style.
23684 (iv_elimination_compare_lt): Likewise.
23685 (may_eliminate_iv): Likewise.
23686 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
23687 inv_expr.
23688 (determine_group_iv_costs): Dump invariant expressions.
23689 (iv_ca_recount_cost): Use the newly added hash_map.
23690 (iv_ca_set_remove_invariants): Fix coding style.
23691 (iv_ca_set_add_invariants): Fix coding style.
23692 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
23693 invariants.
23694 (iv_ca_set_cp): Likewise.
23695 (iv_ca_new): Initialize the newly added hash_map and remove
23696 initialization of fields.
23697 (iv_ca_free): Delete the hash_map.
23698 (iv_ca_dump): Dump invariant expressions.
23699 (iv_ca_extend): Fix coding style.
23700 (try_add_cand_for): Likewise.
23701 (create_new_ivs): Dump information about # of avg iterations and
23702 # of used invariant expressions.
23703 (rewrite_use_compare): Fix coding style.
23704 (free_loop_data): Set default value for max_inv_expr_id.
23705
23706 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
23707
23708 * cse.c (rest_of_handle_cse): Use cleanup_cfg
23709 returned value cse_cfg_altered computation.
23710 (rest_of_handle_cse2): Likewise.
23711 (rest_of_handle_cse_after_global_opts): Likewise.
23712
23713 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23714
23715 PR target/53440
23716 * config/arm/arm.c (arm32_output_mi_thunk): New.
23717 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
23718 to split Thumb1 vs TARGET_32BIT functionality.
23719 (arm_thumb1_mi_thunk): New.
23720
23721 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23722
23723 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
23724 to true.
23725
23726 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23727
23728 PR target/71080
23729 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
23730
23731 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
23732
23733 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
23734 (expand_builtin_trap): Emit a regular call.
23735 (set_builtin_user_assembler_name): Remove obsolete cases.
23736 * dse.c (scan_insn): Adjust.
23737 * except.c: Include calls.h.
23738 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
23739 emit a regular call to setjmp.
23740 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
23741 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
23742 (emit_block_move_via_libcall): Delete.
23743 (block_move_fn): Delete.
23744 (init_block_move_fn): Likewise.
23745 (emit_block_move_libcall_fn): Likewise.
23746 (emit_block_op_via_libcall): New function.
23747 (set_storage_via_libcall): Tidy up and use memset builtin.
23748 (block_clear_fn): Delete.
23749 (init_block_clear_fn): Likewise.
23750 (clear_storage_libcall_fn): Likewise.
23751 (expand_assignment): Call emit_block_move_via_libcall.
23752 Do not include gt-expr.h.
23753 * expr.h (emit_block_op_via_libcall): Declare.
23754 (emit_block_copy_via_libcall): New inline function.
23755 (emit_block_move_via_libcall): Likewise.
23756 (emit_block_comp_via_libcall): Likewise.
23757 (block_clear_fn): Delete.
23758 (init_block_move_fn): Likewise.
23759 (init_block_clear_fn): Likewise.
23760 (emit_block_move_via_libcall): Likewise.
23761 (set_storage_via_libcall): Add default parameter value.
23762 * libfuncs.h (enum libfunc_index): Remove obsolete values.
23763 (abort_libfunc): Delete.
23764 (memcpy_libfunc): Likewise.
23765 (memmove_libfunc): Likewise.
23766 (memcmp_libfunc): Likewise.
23767 (memset_libfunc): Likewise.
23768 (setbits_libfunc): Likewise.
23769 (setjmp_libfunc): Likewise.
23770 (longjmp_libfunc): Likewise.
23771 (profile_function_entry_libfunc): Likewise.
23772 (profile_function_exit_libfunc): Likewise.
23773 (gcov_flush_libfunc): Likewise.
23774 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
23775 and DECL_VISIBILITY on the declaration.
23776 (init_optabs): Do not initialize obsolete libfuncs.
23777 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
23778 * tree-core.h (ECF_RET1): Define.
23779 (ECF_TM_PURE): Adjust.
23780 (ECF_TM_BUILTIN): Likewise.
23781 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
23782 (build_common_builtin_nodes): Initialize abort builtin.
23783 Add ECF_RET1 on memcpy, memmove and memset builtins.
23784 Pass final flags for alloca and alloca_with_align builtins.
23785 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
23786 obsolete builtins.
23787 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
23788 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
23789 set_storage_via_libcall and call emit_block_copy_via_libcall.
23790
23791 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
23792
23793 * config/i386/i386.md (*call_got_x32): Change operand 0 to
23794 DImode before it is passed to ix86_output_call_operand.
23795 (*call_value_got_x32): Ditto for operand 1.
23796
23797 2016-05-12 Jiong Wang <jiong.wang@arm.com>
23798
23799 PR rtl-optimization/70904
23800 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
23801 reload for wide mode.
23802
23803 2016-05-12 Marek Polacek <polacek@redhat.com>
23804
23805 PR c/70756
23806 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
23807 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
23808 * langhooks.h (incomplete_type_error): Likewise.
23809 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
23810 parameter, pass it down to incomplete_type_error.
23811 * tree.h (size_in_bytes): New inline overload.
23812 (size_in_bytes_loc): Renamed from size_in_bytes.
23813
23814 2016-05-12 Richard Biener <rguenther@suse.de>
23815
23816 PR tree-optimization/71059
23817 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
23818 nary before looking up or entering the expression into the VN
23819 hashes.
23820 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
23821 Make sure to re-use NARYs without result as inserted by
23822 phi-translation.
23823
23824 2016-05-12 Richard Biener <rguenther@suse.de>
23825
23826 PR tree-optimization/71062
23827 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
23828 field.
23829 * tree-ssa-structalias.c (set_uids_in_ptset): Set
23830 vars_contains_restrict if the var is a restrict tag.
23831 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
23832 do not disambiguate pointers against it.
23833 (dump_points_to_solution): Re-structure and adjust for new
23834 vars_contains_restrict flag.
23835 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
23836
23837 2016-05-12 Martin Liska <mliska@suse.cz>
23838
23839 * doc/invoke.texi: Explain connection between
23840 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
23841
23842 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
23843
23844 PR tree-optimization/71006
23845 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
23846 consider COND_EXPR as a mask producer.
23847
23848 2016-05-12 Marek Polacek <polacek@redhat.com>
23849
23850 PR driver/71063
23851 * opts.c (common_handle_option): Detect missing argument for --help^.
23852
23853 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23854
23855 PR target/70830
23856 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
23857 when popping the PC and within an interrupt handler routine.
23858 Add missing tab to output of "ldmfd".
23859 (output_return_instruction): Output LDMFD with SP update rather
23860 than POP when returning from interrupt handler.
23861
23862 2016-05-12 Jakub Jelinek <jakub@redhat.com>
23863
23864 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
23865 TARGET_64BIT && TARGET_AVX512DQ.
23866 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
23867 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
23868 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
23869 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
23870 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
23871 (*vec_extractv4si_zext): Add avx512dq alternative.
23872 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
23873 use v instead of x constraint in other alternatives where possible.
23874
23875 * config/i386/sse.md (sse2_loadld): Use v instead of x
23876 constraint in alternatives 0,1,4.
23877
23878 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
23879 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
23880 v constraints instead of x and <pinsr_evex_isa> isa attribute.
23881
23882 PR target/71019
23883 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
23884 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
23885 is not emitted unless TARGET_AVX512BW.
23886 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
23887 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
23888 for the result operand.
23889
23890 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
23891 constraint instead of x in avx alternatives. Use maybe_evex instead
23892 of vex prefix.
23893
23894 * config/i386/constraints.md (Yv): New constraint.
23895 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
23896 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
23897 * config/i386/i386.md (avx512fvecmode): New mode attr.
23898 (*pushtf): Use v constraint instead of x.
23899 (*movtf_internal): Likewise. For TARGET_AVX512VL and
23900 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
23901 (*absneg<mode>2): Use Yv constraint instead of x constraint.
23902 (*absnegtf2_sse): Likewise.
23903 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
23904 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
23905 avx512f alternatives.
23906 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
23907
23908 2016-05-12 Richard Biener <rguenther@suse.de>
23909
23910 PR tree-optimization/71060
23911 * tree-data-ref.c (initialize_data_dependence_relation): Do not
23912 require exact match of DR_BASE_OBJECT but only matching address and
23913 type.
23914
23915 2016-05-12 Richard Biener <rguenther@suse.de>
23916
23917 PR tree-optimization/70986
23918 * cfganal.c: Include cfgloop.h.
23919 (dfs_find_deadend): Prefer to take edges exiting loops.
23920
23921 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23922
23923 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
23924 compile and run time.
23925
23926 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
23927
23928 PR c/43651
23929 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
23930
23931 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
23932
23933 * config/i386/i386.c (legitimize_pic_address): Use
23934 copy_to_suggested_reg instead of gen_movsi.
23935
23936 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23937
23938 * config/rs6000/predicates.md (quad_memory_operand): Move most of
23939 the code into quad_address_p and call it to share code with
23940 vsx_quad_dform_memory_operand.
23941 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
23942 d-form support.
23943 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
23944 bit instead of being a separate word. Split -mpower9-dform into
23945 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
23946 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
23947 for the register class supporting 128-bit quad word memory offsets.
23948 (mode_supports_vsx_dform_quad): Helper function to return if the
23949 register class uses quad word memory offsets.
23950 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
23951 (rs6000_debug_reg_global): Always print if we are using LRA or not.
23952 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
23953 instructions are enabled, set up the appropriate addr_masks for
23954 128-bit types.
23955 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
23956 -mpower9-dform-scalar, instead of -mpower9-dform.
23957 (rs6000_option_override_internal): Split -mpower9-dform into two
23958 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
23959 -mpower9-dform switch sets or clears both. If we are not using
23960 the LRA register allocator, do not enable -mpower9-dform-vector by
23961 default. If we are using LRA, enable -mpower9-dform-vector and
23962 -mvsx-timode if it is appropriate. Issue a warning if either
23963 -mpower9-dform-vector or -mvsx-timode are explicitly used without
23964 enabling LRA.
23965 (quad_address_offset_p): New helper function to return if the
23966 offset is legal for quad word memory instructions.
23967 (quad_address_p): New function to determin if GPR or vector
23968 register quad word memory addresses are legal.
23969 (mem_operand_gpr): Validate quad word address offsets.
23970 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
23971 d-form (register + offset) instructions.
23972 (offsettable_ok_by_alignment): Likewise.
23973 (rs6000_legitimate_offset_address_p): Likewise.
23974 (legitimate_lo_sum_address_p): Likewise.
23975 (rs6000_legitimize_address): Likewise.
23976 (rs6000_legitimize_reload_address): Add more debug statements for
23977 -mdebug=addr.
23978 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
23979 d-form instructions.
23980 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
23981 d-form instructions. Distinguish different cases in debug
23982 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
23983 d-form instructions.
23984 (rs6000_preferred_reload_class): Likewise.
23985 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
23986 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
23987 of the ISA 2.06 indexed memory instructions.
23988 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
23989 use them to save/restore the saved vector registers instead of
23990 using Altivec instructions.
23991 (rs6000_emit_epilogue): Likewise.
23992 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
23993 (rs6000_opt_masks): Split -mpower9-dform into
23994 -mpower9-dform-scalar and -mpower9-dform-vector.
23995 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
23996 was not selected.
23997 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
23998 ISA 3.0 vector indexed memory instructions, and fold the code into
23999 the normal mov<mode> patterns.
24000 (p9_vecstore_<mode>): Likewise.
24001 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
24002 instructions.
24003 (vsx_movti_64bit): Likewise.
24004 (vsx_movti_32bit): Likewise.
24005 * config/rs6000/constraints.md (wO constraint): New constraint for
24006 ISA 3.0 vector d-form support.
24007 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
24008 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
24009 include -mpower9-dform-vector until we switch over to LRA.
24010 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
24011 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
24012 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
24013 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
24014 for -mpower9-dform and -mlra.
24015 * doc/md.texi (wO constraint): Document wO constraint.
24016
24017 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
24018
24019 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
24020 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
24021 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
24022 Move handling of non-insn arguments inline into the sole user:
24023 (output_trans_func): ...here.
24024 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
24025 in emitted function prototype.
24026 (output_internal_insn_latency_func): Ditto. Simplify.
24027 (output_internal_maximal_insn_latency_func): Ditto. Delete
24028 always-unused argument.
24029 (output_insn_latency_func): Ditto.
24030 (output_maximal_insn_latency_func): Ditto.
24031
24032 2016-05-11 Richard Biener <rguenther@suse.de>
24033
24034 PR tree-optimization/71055
24035 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
24036 sth with precision not equal to access size verify we don't chop
24037 off bits.
24038
24039 2016-05-11 Richard Biener <rguenther@suse.de>
24040
24041 PR debug/71057
24042 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
24043 (dwarf2out_finish): Move retry_incomplete_types call ...
24044 (dwarf2out_early_finish): ... here.
24045
24046 2016-05-11 Richard Biener <rguenther@suse.de>
24047
24048 PR middle-end/71002
24049 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
24050 if the langhook insists on it.
24051 * fold-const.c (make_bit_field_ref): Add arg for the original
24052 reference and preserve its alias-set.
24053 (decode_field_reference): Take exp by reference and adjust it
24054 to the original memory reference.
24055 (optimize_bit_field_compare): Adjust callers.
24056 (fold_truth_andor_1): Likewise.
24057 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
24058
24059 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
24060
24061 PR middle-end/70807
24062 * cfgrtl.h (delete_insn_and_edges): Now return bool.
24063 * cfgrtl.c (delete_insn_and_edges): Likewise.
24064 * config/i386/i386.c (convert_scalars_to_vector): Remove
24065 redundant code.
24066 * cse.c (cse_insn): Compute cse_cfg_altered.
24067 (delete_trivially_dead_insns): Likewise.
24068 (cse_cc_succs): Likewise.
24069 (rest_of_handle_cse): Free dominance info if required.
24070 (rest_of_handle_cse2): Likewise.
24071 (rest_of_handle_cse_after_global_opts): Likewise.
24072
24073 2016-05-11 Alan Modra <amodra@gmail.com>
24074
24075 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
24076 abi_v4_pass_in_fpr): New functions.
24077 (rs6000_function_arg_boundary): Exclude complex IBM long double
24078 from 64-bit alignment when ABI_V4.
24079 (rs6000_function_arg, rs6000_function_arg_advance_1,
24080 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
24081
24082 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
24083
24084 PR rtl-optimization/71028
24085 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
24086 jump with just a return in the fallthrough block if the branch
24087 block contains just a return as well.
24088
24089 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
24090
24091 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
24092 * match.pd ((X & Y) ^ Y): ... this.
24093 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
24094 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
24095
24096 2016-05-10 David Malcolm <dmalcolm@redhat.com>
24097
24098 * read-md.c (require_char_ws): New function.
24099 (read_string): Simplify using require_char_ws.
24100 (handle_constants): Likewise.
24101 (handle_enum): Likewise.
24102 (handle_file): Likewise.
24103 * read-md.h (require_char_ws): New declaration.
24104 * read-rtl.c (read_conditions): Simplify using require_char_ws.
24105 (read_mapping): Likewise.
24106 (read_rtx_code): Likewise.
24107 (read_nested_rtx): Likewise.
24108
24109 2016-05-10 James Norris <jnorris@codesourcery.com>
24110
24111 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
24112 if offloading is enabled and -fopenacc or -fopenmp is specified.
24113 (CRTOFFLOADEND): Likewise.
24114 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
24115 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
24116
24117 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
24118
24119 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
24120 gotoff_operand code paths. Use copy_to_suggested_regs and
24121 expand_simple_binop where appropriate. Cleanup.
24122
24123 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24124
24125 PR target/70799
24126 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
24127 integer constants.
24128 (dimode_scalar_chain::vector_const_cost): New.
24129 (dimode_scalar_chain::compute_convert_gain): Handle constants.
24130 (dimode_scalar_chain::convert_op): Likewise.
24131 (dimode_scalar_chain::convert_insn): Likewise.
24132
24133 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
24134
24135 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
24136 unary operation, not a binary one.
24137
24138 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24139
24140 PR middle-end/70877
24141 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
24142 calls with type casted fndecl.
24143
24144 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24145
24146 PR tree-optimization/70786
24147 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
24148 * calls.c (initialize_argument_information): Bind bounds
24149 with corresponding args passed by reference.
24150
24151 2016-05-10 Jakub Jelinek <jakub@redhat.com>
24152
24153 PR target/70927
24154 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
24155 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
24156 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
24157 accordingly.
24158
24159 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24160
24161 PR target/70963
24162 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
24163 code for a zero scale factor.
24164 (vsx_xvcvdpuxds_scale): Likewise.
24165
24166 2016-05-10 David Malcolm <dmalcolm@redhat.com>
24167
24168 * diagnostic-show-locus.c (layout::layout): Call show_ruler
24169 if show_ruler_p was set on the context.
24170 (layout::show_ruler): New method.
24171 * diagnostic.h (struct diagnostic_context): Add field
24172 "show_ruler_p".
24173
24174 2016-05-10 Richard Biener <rguenther@suse.de>
24175
24176 PR tree-optimization/71039
24177 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
24178 (chk_uses): New function.
24179 (propagate_with_phi): Verify we can safely replicate the lhs of an
24180 aggregate assignment on all incoming edges.
24181
24182 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
24183
24184 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
24185 Forward declare.
24186 (rx_atomic_sequence): New class.
24187 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
24188 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
24189 non-inline.
24190 (rx_atomic_sequence::rx_atomic_sequence,
24191 rx_atomic_sequence::~rx_atomic_sequence): New functions.
24192 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
24193 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
24194 CTRLREG_INTB): New constants.
24195 (FETCHOP): New code iterator.
24196 (fethcop_name, fetchop_name2): New iterator code attributes.
24197 (QIHI): New mode iterator.
24198 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
24199 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
24200 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
24201
24202 2016-05-10 Martin Liska <mliska@suse.cz>
24203
24204 * tree-inline.c (remap_dependence_clique): Do not remap
24205 debugging statements.
24206
24207 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24208
24209 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
24210 ("*fixuns_truncdfdi2_z13")
24211 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
24212 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
24213 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
24214
24215 2016-05-10 Richard Biener <rguenther@suse.de>
24216
24217 PR tree-optimization/70497
24218 PR tree-optimization/28367
24219 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
24220 split out from ...
24221 (visit_reference_op_load): ... here.
24222 (vn_reference_lookup_3): Use it to handle subreg-like accesses
24223 with simplified BIT_FIELD_REFs.
24224 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
24225 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
24226 correctly.
24227
24228 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
24229
24230 * dwarf2out.c (add_abstract_origin_attribute): Adjust
24231 documentation comment. For BLOCK nodes, add a
24232 DW_AT_abstract_origin attribute that points to the DIE generated
24233 for the origin BLOCK.
24234 (gen_lexical_block_die): Call add_abstract_origin_attribute for
24235 blocks from inlined functions.
24236
24237 2016-05-10 Alan Modra <amodra@gmail.com>
24238
24239 PR target/70947
24240 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
24241 regrename modifying insns saving lr before __morestack call.
24242 * config/rs6000/rs6000.md (split_stack_return): Similarly for
24243 insns restoring lr after __morestack call.
24244
24245 2016-05-09 Jakub Jelinek <jakub@redhat.com>
24246
24247 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
24248 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
24249 expanders.
24250 * config/i386/sse.md (vec_interleave_high<mode>,
24251 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
24252 <avx512>_vpermt2var<mode>3_maskz): Likewise.
24253
24254 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
24255
24256 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
24257 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
24258 parallel reassociation for power8 and forward.
24259
24260 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
24261
24262 * config/i386/i386.md (absneg splitters with general regs): Use
24263 general_reg_operand predicate.
24264 (btsq peephole2): Use x86_64_immediate_operand to check if new
24265 value is suitable for immediate operand. Generate emitted insn
24266 using RTL expressions.
24267 (btcq peephole2): Ditto.
24268 (btrq peephole2): Ditto. Generate correct immediate operand
24269 for AND masking.
24270
24271 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
24272
24273 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
24274 bitpos.
24275
24276 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
24277
24278 * tree-affine.c (wide_int_constant_multiple_p): Add missing
24279 pointer dereference.
24280
24281 2016-05-09 Richard Biener <rguenther@suse.de>
24282
24283 PR tree-optimization/70985
24284 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
24285 op0 isn't a gimple register.
24286
24287 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
24288
24289 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
24290 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
24291 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
24292 (i6400_fpu_mult): New cpu units.
24293 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
24294 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
24295 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
24296 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
24297 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
24298 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
24299 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
24300 (i6400_msa_long_float4, i6400_msa_long_float5)
24301 (i6400_msa_long_float8, i6400_msa_fdiv_df)
24302 (i6400_msa_fdiv_sf): New reservations.
24303 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
24304 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
24305 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
24306 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
24307 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
24308 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
24309 (msa_short_cmp, msa_short_float2, msa_short_logic3)
24310 (msa_short_store4, msa_long_load, msa_short_store)
24311 (msa_long_logic, msa_long_float2, msa_long_float4)
24312 (msa_long_float5, msa_long_float8, msa_long_mult)
24313 (msa_long_fdiv, msa_long_div): New reservations.
24314
24315 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
24316 Sameera Deshpande <sameera.deshpande@imgtec.com>
24317 Matthew Fortune <matthew.fortune@imgtec.com>
24318 Graham Stott <graham.stott@imgtec.com>
24319 Chao-ying Fu <chao-ying.fu@imgtec.com>
24320
24321 * config.gcc: Add MSA header file for mips*-*-* target.
24322 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
24323 (Ubv8i, Urv8): New constraints.
24324 * config/mips/mips-ftypes.def: Add function types for MSA
24325 builtins.
24326 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
24327 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
24328 * config/mips/mips-msa.md: New file.
24329 * config/mips/mips-protos.h
24330 (mips_split_128bit_const_insns): New prototype.
24331 (mips_msa_idiv_insns): Likewise.
24332 (mips_split_128bit_move): Likewise.
24333 (mips_split_128bit_move_p): Likewise.
24334 (mips_split_msa_copy_d): Likewise.
24335 (mips_split_msa_insert_d): Likewise.
24336 (mips_split_msa_fill_d): Likewise.
24337 (mips_expand_msa_branch): Likewise.
24338 (mips_const_vector_same_val_p): Likewise.
24339 (mips_const_vector_same_bytes_p): Likewise.
24340 (mips_const_vector_same_int_p): Likewise.
24341 (mips_const_vector_shuffle_set_p): Likewise.
24342 (mips_const_vector_bitimm_set_p): Likewise.
24343 (mips_const_vector_bitimm_clr_p): Likewise.
24344 (mips_msa_vec_parallel_const_half): Likewise.
24345 (mips_msa_output_division): Likewise.
24346 (mips_ldst_scaled_shift): Likewise.
24347 (mips_expand_vec_cond_expr): Likewise.
24348 * config/mips/mips.c (enum mips_builtin_type): Add
24349 MIPS_BUILTIN_MSA_TEST_BRANCH.
24350 (mips_gen_const_int_vector_shuffle): New prototype.
24351 (mips_const_vector_bitimm_set_p): New function.
24352 (mips_const_vector_bitimm_clr_p): Likewise.
24353 (mips_const_vector_same_val_p): Likewise.
24354 (mips_const_vector_same_bytes_p): Likewise.
24355 (mips_const_vector_same_int_p): Likewise.
24356 (mips_const_vector_shuffle_set_p): Likewise.
24357 (mips_symbol_insns): Forbid loading symbols via immediate for
24358 MSA.
24359 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
24360 stores.
24361 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
24362 MSA.
24363 (mips_lx_address_p): Add support load indexed address for MSA.
24364 (mips_address_insns): Add calculation of instructions needed for
24365 stores and loads for MSA.
24366 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
24367 CONST_VECTOR for MSA and let it fall through.
24368 (mips_ldst_scaled_shift): New function.
24369 (mips_subword_at_byte): Likewise.
24370 (mips_msa_idiv_insns): Likewise.
24371 (mips_legitimize_move): Validate MSA moves.
24372 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
24373 calculation of costs for MSA division.
24374 (mips_split_move_p): Check if MSA moves need splitting.
24375 (mips_split_move): Split MSA moves if necessary.
24376 (mips_split_128bit_move_p): New function.
24377 (mips_split_128bit_move): Likewise.
24378 (mips_split_msa_copy_d): Likewise.
24379 (mips_split_msa_insert_d): Likewise.
24380 (mips_split_msa_fill_d): Likewise.
24381 (mips_output_move): Handle MSA moves.
24382 (mips_expand_msa_branch): New function.
24383 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
24384 Reinstate 'y' modifier.
24385 (mips_file_start): Add MSA .gnu_attribute.
24386 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
24387 FPRs.
24388 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
24389 (mips_class_max_nregs): Add register size for MSA supported mode.
24390 (mips_cannot_change_mode_class): Allow conversion between MSA
24391 vector modes and TImode.
24392 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
24393 instruction.
24394 (mips_secondary_reload_class): Force MSA loads/stores via memory.
24395 (mips_preferred_simd_mode): Add preffered modes for MSA.
24396 (mips_vector_mode_supported_p): Add MSA supported modes.
24397 (mips_autovectorize_vector_sizes): New function.
24398 (mips_msa_output_division): Likewise.
24399 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
24400 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
24401 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
24402 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
24403 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
24404 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
24405 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
24406 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
24407 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
24408 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
24409 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
24410 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
24411 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
24412 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
24413 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
24414 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
24415 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
24416 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
24417 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
24418 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
24419 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
24420 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
24421 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
24422 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
24423 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
24424 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
24425 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
24426 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
24427 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
24428 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
24429 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
24430 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
24431 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
24432 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
24433 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
24434 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
24435 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
24436 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
24437 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
24438 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
24439 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
24440 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
24441 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
24442 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
24443 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
24444 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
24445 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
24446 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
24447 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
24448 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
24449 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
24450 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
24451 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
24452 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
24453 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
24454 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
24455 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
24456 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
24457 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
24458 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
24459 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
24460 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
24461 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
24462 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
24463 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
24464 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
24465 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
24466 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
24467 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
24468 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
24469 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
24470 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
24471 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
24472 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
24473 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
24474 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
24475 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
24476 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
24477 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
24478 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
24479 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
24480 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
24481 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
24482 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
24483 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
24484 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
24485 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
24486 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
24487 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
24488 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
24489 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
24490 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
24491 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
24492 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
24493 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
24494 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
24495 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
24496 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
24497 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
24498 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
24499 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
24500 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
24501 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
24502 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
24503 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
24504 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
24505 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
24506 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
24507 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
24508 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
24509 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
24510 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
24511 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
24512 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
24513 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
24514 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
24515 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
24516 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
24517 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
24518 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
24519 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
24520 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
24521 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
24522 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
24523 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
24524 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
24525 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
24526 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
24527 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
24528 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
24529 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
24530 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
24531 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
24532 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
24533 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
24534 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
24535 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
24536 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
24537 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
24538 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
24539 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
24540 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
24541 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
24542 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
24543 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
24544 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
24545 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
24546 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
24547 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
24548 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
24549 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
24550 move_v builtins.
24551 (mips_get_builtin_decl_index): New array.
24552 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
24553 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
24554 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
24555 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
24556 (mips_init_builtins): Initialize mips_get_builtin_decl_index
24557 array.
24558 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
24559 hook.
24560 (mips_expand_builtin_insn): Prepare operands for
24561 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
24562 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
24563 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
24564 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
24565 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
24566 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
24567 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
24568 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
24569 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
24570 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
24571 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
24572 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
24573 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
24574 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
24575 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
24576 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
24577 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
24578 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
24579 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
24580 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
24581 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
24582 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
24583 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
24584 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
24585 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
24586 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
24587 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
24588 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
24589 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
24590 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
24591 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
24592 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
24593 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
24594 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
24595 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
24596 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
24597 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
24598 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
24599 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
24600 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
24601 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
24602 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
24603 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
24604 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
24605 These are set implicitly and an error is reported if overridden.
24606 (mips_expand_builtin_msa_test_branch): New function.
24607 (mips_expand_msa_shuffle): Likewise.
24608 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
24609 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
24610 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
24611 (mips_expand_vec_unpack): Add support for MSA.
24612 (mips_expand_vector_init): Likewise.
24613 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
24614 instead of const0_rtx.
24615 (mips_msa_vec_parallel_const_half): New function.
24616 (mips_gen_const_int_vector): Likewise.
24617 (mips_gen_const_int_vector_shuffle): Likewise.
24618 (mips_expand_msa_cmp): Likewise.
24619 (mips_expand_vec_cond_expr): Likewise.
24620 * config/mips/mips.h
24621 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
24622 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
24623 specified.
24624 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
24625 (ISA_HAS_MSA): New macro.
24626 (UNITS_PER_MSA_REG): Likewise.
24627 (BITS_PER_MSA_REG): Likewise.
24628 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
24629 (MSA_REG_FIRST): New macro.
24630 (MSA_REG_LAST): Likewise.
24631 (MSA_REG_NUM): Likewise.
24632 (MSA_REG_P): Likewise.
24633 (MSA_REG_RTX_P): Likewise.
24634 (MSA_SUPPORTED_MODE_P): Likewise.
24635 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
24636 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
24637 * config/mips/mips.md: Include mips-msa.md.
24638 (alu_type): Add simd_add.
24639 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
24640 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
24641 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
24642 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
24643 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
24644 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
24645 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
24646 simd_move, simd_load, simd_store. Choose "multi" for moves
24647 for "qword_mode".
24648 (qword_mode): New attribute.
24649 (insn_count): Add instruction count for quad moves.
24650 Increase the count for MIPS SIMD division.
24651 (UNITMODE): Add UNITMODEs for vector types.
24652 (addsub): New code iterator.
24653 * config/mips/mips.opt (mmsa): New option.
24654 * config/mips/msa.h: New file.
24655 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
24656 specified.
24657 * config/mips/mti-linux.h: Likewise.
24658 * config/mips/predicates.md
24659 (const_msa_branch_operand): New constraint.
24660 (const_uimm3_operand): Likewise.
24661 (const_uimm4_operand): Likewise.
24662 (const_uimm5_operand): Likewise.
24663 (const_uimm8_operand): Likewise.
24664 (const_imm5_operand): Likewise.
24665 (aq10b_operand): Likewise.
24666 (aq10h_operand): Likewise.
24667 (aq10w_operand): Likewise.
24668 (aq10d_operand): Likewise.
24669 (const_m1_operand): Likewise.
24670 (reg_or_m1_operand): Likewise.
24671 (const_exp_2_operand): Likewise.
24672 (const_exp_4_operand): Likewise.
24673 (const_exp_8_operand): Likewise.
24674 (const_exp_16_operand): Likewise.
24675 (const_vector_same_val_operand): Likewise.
24676 (const_vector_same_simm5_operand): Likewise.
24677 (const_vector_same_uimm5_operand): Likewise.
24678 (const_vector_same_uimm6_operand): Likewise.
24679 (const_vector_same_uimm8_operand): Likewise.
24680 (par_const_vector_shf_set_operand): Likewise.
24681 (reg_or_vector_same_val_operand): Likewise.
24682 (reg_or_vector_same_simm5_operand): Likewise.
24683 (reg_or_vector_same_uimm6_operand): Likewise.
24684 * doc/extend.texi (MIPS SIMD Architecture Functions): New
24685 section.
24686 * doc/invoke.texi (-mmsa): Document new option.
24687
24688 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24689
24690 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
24691 * configure: Regenerate.
24692 * config.in: Regenerate.
24693 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
24694 on -fvtable-verify.
24695 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
24696 (ENDFILE_VTV_SPEC): Define.
24697
24698 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
24699
24700 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
24701 registers in all interrupt handlers if necessary.
24702 (rl78_option_override): Add warning.
24703 (MUST_SAVE_MDUC_REGISTERS): New macro.
24704 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
24705 * config/rl78/rl78.c (check_mduc_usage): New function.
24706 (mduc_regs): New structure to hold MDUC register data.
24707 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
24708 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
24709 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
24710 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
24711 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
24712 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
24713
24714 2016-05-09 Bin Cheng <bin.cheng@arm.com>
24715
24716 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
24717 (tree-ssa-loop-niter.h): Ditto.
24718 (idx_within_array_bound, ref_within_array_bound): New functions.
24719 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
24720 Factor out check on writable base object to ...
24721 (base_object_writable): ... here.
24722
24723 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24724
24725 * config/arm/arm.md (probe_stack): Add modes to set source
24726 and destination.
24727
24728 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
24729
24730 * regrename.c (base_reg_class_for_rename): New static function.
24731 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
24732
24733 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
24734
24735 * cgraph.c (thunk_adjust): Export.
24736 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
24737 * cgraphunit.c (thunk_adjust): Export.
24738 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
24739 thunks.
24740 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
24741 inlinable.
24742 * tree-inline.c (expand_call_inline): Expand thunks inline.
24743
24744 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
24745
24746 PR target/70998
24747 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
24748 (*sse2_vd_cvtss2sd): Ditto.
24749 * config/i386/i386.md
24750 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
24751 Generate *sse2_vd_cvtsd2ss pattern.
24752 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
24753 Generate *sse2_vd_cvtss2sd pattern.
24754
24755 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
24756
24757 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
24758 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
24759 users.
24760
24761 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
24762
24763 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
24764 * config/sh/sh.c: Define and declare variables on first use throughout
24765 the file.
24766 (current_function_interrupt): Change to bool type.
24767 (frame_insn): Rename to emit_frame_insn and update users.
24768 (push_regs): Use bool for 'interrupt_handler' argument.
24769 (save_schedule_s): Remove.
24770 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
24771 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
24772 targetm.asm_out.unaligned_op.di.
24773 (gen_far_branch): Remove redundant forward declaration.
24774 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
24775 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
24776 (sh_set_return_address, sh_function_ok_for_sibcall,
24777 scavenge_reg): Update comments.
24778 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
24779 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
24780 (sh_attr_renesas_p): Remove unnecessary parentheses.
24781 (branch_dest): Simplify.
24782 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
24783 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
24784 (CUMULATIVE_ARGS): Change macro to typedef.
24785 (current_function_interrupt): Change to bool type.
24786 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
24787 Surround with __cplusplus ifdef.
24788 (sh_compare_op0, sh_compare_op1): Remove.
24789 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
24790
24791 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
24792
24793 * config/arm/arm.md (arch): Add neon.
24794 (arch_enabled): Return yes for arch neon when TARGET_NEON.
24795 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
24796 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
24797 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
24798 attributes for alt renumbering. Mark alt 3 as non-predicable.
24799 (thumb2_movdf_vfp): Likewise.
24800
24801 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
24802
24803 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
24804 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
24805 (*andqi_1): Add preferred_for_speed attribute to disparage
24806 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
24807 (*<code>qi_1): Ditto.
24808 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
24809 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
24810 (*ashlqi3_1): Ditto.
24811 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
24812 Add preferred_for_size attribute to disparage alternative 0 and
24813 preferred_for_speed attribute to disparage alternative 1 for
24814 TARGET_PARTIAL_REG_STALL targets.
24815
24816 2016-05-07 Tom de Vries <tom@codesourcery.com>
24817
24818 PR tree-optimization/70956
24819 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
24820 def.
24821
24822 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
24823
24824 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
24825 * config/sh/sh.c (sh_cbranch_distance): Implement it.
24826 * config/sh/sh.md (branch_zero): Remove define_attr.
24827 (define_delay): Disable delay slot if branch distance is one insn.
24828
24829 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24830
24831 * config/i386/i386.md (LEAMODE): New mode attribute.
24832 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
24833 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
24834 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
24835 operand 2 predicate.
24836 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
24837 (*lea<mode>_general_3): Ditto.
24838 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
24839
24840 2016-05-06 Jakub Jelinek <jakub@redhat.com>
24841
24842 * genmddump.c (main): Convert argv from char ** to const char **.
24843
24844 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24845
24846 * coretypes.h (OVERRIDE): New macro.
24847 (FINAL): New macro.
24848
24849 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
24850
24851 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
24852 allow coalescing if the types are compatible.
24853
24854 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24855
24856 * pass_manager.h (pass_manager::register_pass_name): New method.
24857 (pass_manager::get_pass_by_name): New method.
24858 (pass_manager::create_pass_tab): New method.
24859 (pass_manager::m_name_to_pass_map): New field.
24860 * passes.c (name_to_pass_map): Delete global in favor of field
24861 "m_name_to_pass_map" of pass_manager.
24862 (register_pass_name): Rename from a function to...
24863 (pass_manager::register_pass_name): ...this method, updating
24864 for renaming of global "name_to_pass_map" to field
24865 "m_name_to_pass_map".
24866 (create_pass_tab): Rename from a function to...
24867 (pass_manager::create_pass_tab): ...this method, updating
24868 for renaming of global "name_to_pass_map" to field.
24869 (get_pass_by_name): Rename from a function to...
24870 (pass_manager::get_pass_by_name): ...this method.
24871 (enable_disable_pass): Convert use of get_pass_by_name to
24872 a method call, locating the pass_manager singleton.
24873
24874 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24875
24876 * genattr-common.c (main): Convert argv from char ** to const char **.
24877 * genattr.c (main): Likewise.
24878 * genattrtab.c (main): Likewise.
24879 * genautomata.c (initiate_automaton_gen): Likewise.
24880 (main): Likewise.
24881 * gencodes.c (main): Likewise.
24882 * genconditions.c (main): Likewise.
24883 * genconfig.c (main): Likewise.
24884 * genconstants.c (main): Likewise.
24885 * genemit.c (main): Likewise.
24886 * genenums.c (main): Likewise.
24887 * genextract.c (main): Likewise.
24888 * genflags.c (main): Likewise.
24889 * genmddeps.c (main): Likewise.
24890 * genopinit.c (main): Likewise.
24891 * genoutput.c (main): Likewise.
24892 * genpeep.c (main): Likewise.
24893 * genpreds.c (main): Likewise.
24894 * genrecog.c (main): Likewise.
24895 * gensupport.c (init_rtx_reader_args_cb): Likewise.
24896 (init_rtx_reader_args): Likewise.
24897 * gensupport.h (init_rtx_reader_args_cb): Likewise.
24898 (init_rtx_reader_args): Likewise.
24899 * gentarget-def.c (main): Likewise.
24900 * read-md.c (read_md_files): Likewise.
24901 * read-md.h (read_md_files): Likewise.
24902
24903 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24904
24905 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
24906 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
24907 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
24908 Remove unused predicate.
24909 (register_and_not_fp_reg_operand): Ditto.
24910
24911 2016-05-06 Martin Liska <mliska@suse.cz>
24912
24913 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
24914 instead of vec as the vector is local to the function.
24915
24916 2016-05-06 Jakub Jelinek <jakub@redhat.com>
24917
24918 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
24919 avx512bw alternative.
24920
24921 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
24922 before the ashr<mode>3 pattern.
24923
24924 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
24925 v instead of x in vex or maybe_vex alternatives, use
24926 maybe_evex instead of vex in prefix.
24927
24928 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
24929 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
24930 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
24931 in vex or maybe_vex alternatives, use maybe_evex instead of vex
24932 in prefix.
24933
24934 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
24935 v instead of x in vex or maybe_vex alternatives, use
24936 maybe_evex instead of vex in prefix.
24937
24938 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
24939 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
24940 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
24941 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
24942 alternatives, use maybe_evex instead of vex in prefix.
24943
24944 * config/i386/sse.md (vec_interleave_lowv4sf,
24945 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
24946 v instead of x in vex or maybe_vex alternatives, use
24947 maybe_evex instead of vex in prefix.
24948
24949 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
24950 v instead of x in vex or maybe_vex alternatives, use
24951 maybe_evex instead of vex in prefix.
24952
24953 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
24954 v constraint instead of x.
24955
24956 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
24957
24958 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
24959 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
24960 equality first.
24961
24962 2016-05-06 Richard Biener <rguenther@suse.de>
24963
24964 PR tree-optimization/70948
24965 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24966 Properly clobber all fields of va_list for __builtin_va_start.
24967
24968 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
24969
24970 PR debug/70935
24971 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
24972 loop latch destination.
24973
24974 2016-05-06 Martin Liska <mliska@suse.cz>
24975
24976 * tree-ssa-uninit.c: Apply manual changes
24977 to the GNU coding style.
24978 (prune_uninit_phi_opnds): Rename from
24979 prune_uninit_phi_opnds_in_unrealizable_paths.
24980
24981 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24982
24983 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
24984 mspace): Remove deprecated options.
24985 * doc/invoke.texi (SH options): Remove -mspace.
24986
24987 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24988
24989 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
24990
24991 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24992
24993 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
24994 corresponding combine split pattern.
24995
24996 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24997
24998 PR target/58219
24999 * config/sh/predicates.md (long_displacement_mem_operand): New.
25000 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
25001 Add movi20, movi20s alternatives. Adjust length attribute for
25002 alternatives.
25003 (movsi_ie): Allow for any FPU. Adjust length attribute for
25004 alternatives.
25005 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
25006 attribute for alternatives.
25007 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
25008 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
25009 length attribute for alternatives.
25010
25011 2016-05-06 Richard Biener <rguenther@suse.de>
25012
25013 PR tree-optimization/70960
25014 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
25015
25016 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25017
25018 PR target/52933
25019 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
25020 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
25021
25022 2016-05-06 Marek Polacek <polacek@redhat.com>
25023
25024 PR sanitizer/70875
25025 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
25026
25027 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25028
25029 PR target/54089
25030 * config/sh/sh.md (*rotcr): Add another variant.
25031
25032 2016-05-06 Richard Biener <rguenther@suse.de>
25033
25034 PR middle-end/70931
25035 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
25036
25037 2016-05-06 Richard Biener <rguenther@suse.de>
25038
25039 PR middle-end/70941
25040 * fold-const.c (split_tree): Always convert to the original type
25041 before negating.
25042
25043 2016-05-06 Richard Biener <rguenther@suse.de>
25044
25045 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
25046 (fwprop_addr): Likewise.
25047
25048 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25049
25050 PR target/70873
25051 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
25052 New prototype.
25053 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
25054 * config/i386/i386.md (push mem splitter): Use find_constant_src in
25055 the splitter condition.
25056 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
25057 the splitter condition.
25058 (FP float_extend load splitter): Ditto.
25059
25060 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
25061
25062 * config/i386/i386.md (peehole2 patterns): Change true_regnum
25063 to REGNO in all peephole2 patterns.
25064 (post-reload splitters): Change true_regnum to REGNO in
25065 post-reload splitters.
25066 (zero_extend splitters): Use general_reg_operand and
25067 nonimmediate_gr_operand predicates.
25068
25069 2016-05-05 Jakub Jelinek <jakub@redhat.com>
25070
25071 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
25072 v constraint instead of x.
25073
25074 2016-05-05 Alan Modra <amodra@gmail.com>
25075
25076 PR target/68662
25077 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
25078 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
25079 TARGET_NO_FP_IN_TOC for -mrelocatable.
25080 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
25081 TARGET_RELOCATABLE test.
25082 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25083 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25084 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25085 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25086 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25087 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25088 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25089 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25090 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
25091 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25092 Likewise.
25093 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
25094 (rs6000_stack_info): Likewise.
25095 (rs6000_elf_asm_out_constructor): Likewise.
25096 (rs6000_elf_asm_out_destructor): Likewise.
25097 (rs6000_elf_declare_function_name): Likewise.
25098 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
25099 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
25100 Don't define.
25101
25102 2016-05-05 Alan Modra <amodra@gmail.com>
25103
25104 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
25105
25106 2016-05-05 Alan Modra <amodra@gmail.com>
25107
25108 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
25109 out-of-line gpr restore for one or two regs if that would add
25110 a save of lr.
25111
25112 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
25113
25114 PR target/70873
25115 * config/i386/i386.md
25116 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
25117 Change to post-epilogue_completed late splitter. Use sse_reg_operand
25118 as operand 0 predicate.
25119 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
25120 Ditto.
25121 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
25122 Ditto. Emit the pattern using RTX.
25123
25124 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
25125 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
25126 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
25127 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
25128 Ditto.
25129 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
25130 sse_reg_operand as operand 0 predicate.
25131
25132 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
25133 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
25134 instead of gen_rtx_REG.
25135 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
25136 Ditto.
25137
25138 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25139
25140 * function.c (emit_use_return_register_into_block): Delete.
25141 (gen_return_pattern): Delete.
25142 (emit_return_into_block): Delete.
25143 (active_insn_between): Delete.
25144 (convert_jumps_to_returns): Delete.
25145 (emit_return_for_exit): Delete.
25146 (thread_prologue_and_epilogue_insns): Delete all code dealing with
25147 simple_return for shrink-wrapped blocks.
25148 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
25149 end of blocks that need one.
25150 (get_unconverted_simple_return): Delete.
25151 (convert_to_simple_return): Delete.
25152 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
25153 (convert_to_simple_return): Ditto.
25154
25155 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25156
25157 * cfgcleanup.c (bb_is_just_return): New function.
25158 (try_optimize_cfg): Simplify jumps to return, branches to return,
25159 and branches around return.
25160
25161 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25162
25163 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
25164 branch to a return.
25165
25166 2016-05-04 Jakub Jelinek <jakub@redhat.com>
25167
25168 PR c++/70906
25169 PR c++/70933
25170 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
25171 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
25172 assert flags & OEP_HASH_CHECK, instead of asserting it
25173 never happens. Handle TARGET_EXPR.
25174 * fold-const.c (operand_equal_p): For hash verification,
25175 or in OEP_HASH_CHECK into flags.
25176
25177 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
25178
25179 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
25180 comment.
25181 (compute_samebase_partition_bases): Fix typo.
25182
25183 2016-05-04 Jakub Jelinek <jakub@redhat.com>
25184
25185 * config/i386/sse.md (vec_interleave_highv8sf,
25186 vec_interleave_lowv8sf, vec_interleave_highv4df,
25187 vec_interleave_lowv4df): Remove constraints from expanders.
25188
25189 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
25190
25191 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
25192
25193 * tree-inline.c (expand_call_inline): Fix path dealing with
25194 making lhs of call statement undefined.
25195
25196 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
25197
25198 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25199 Check availability on NODE, too.
25200 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
25201 (cgraph_node::call_for_symbol_and_aliases): Likewise.
25202 (varpool_node::call_for_symbol_and_aliase): Likewise.
25203 * ipa-pure-const.c (add_new_function): Analyze all bodies.
25204 (propagate_pure_const): Propagate across interposable functions, too.
25205 (skip_function_for_local_pure_const): Do not skip interposable bodies
25206 with aliases.
25207 (pass_local_pure_const::execute): Update.
25208
25209 2016-05-04 Marek Polacek <polacek@redhat.com>
25210
25211 * doc/invoke.texi: Document -Wdangling-else.
25212
25213 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
25214
25215 * config.gcc: Error out when conflicting multilib is detected. Do not
25216 loop over multilibs since no combination is legal.
25217
25218 2016-05-04 Alan Modra <amodra@gmail.com>
25219
25220 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
25221 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
25222 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25223 Align .toc.
25224
25225 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
25226
25227 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
25228 Clean up p5600 comments.
25229
25230 2016-05-04 Richard Biener <rguenther@suse.de>
25231
25232 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
25233 constructor simplifications.
25234 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
25235
25236 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
25237
25238 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
25239 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
25240 result.set_rtx is null instead of aborting.
25241 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
25242 Always enable.
25243 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
25244 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
25245 *mov<mode>_store_postinc): New patterns.
25246
25247 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
25248
25249 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
25250 as commutative. Check both conversions are NOP.
25251 ((A & B) OP (C & B)): Remove.
25252
25253 2016-05-04 Alan Modra <amodra@gmail.com>
25254
25255 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
25256
25257 2016-05-04 Alan Modra <amodra@gmail.com>
25258
25259 PR target/70866
25260 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
25261 when cr2,3,4 are all fixed regs.
25262
25263 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
25264
25265 PR rtl-optimization/57193
25266 * opts.c (default_options_table): Revert OPT_frename_registers change.
25267 * doc/invoke.texi (-frename-registers, -O2): Likewise.
25268
25269 2016-05-03 Martin Sebor <msebor@redhat.com>
25270
25271 PR c++/66561
25272 * builtins.c (fold_builtin_FILE): New function.
25273 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
25274 (fold_builtin_0): Call them.
25275 * gimplify.c (gimplify_call_expr): Remove the handling of
25276 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
25277
25278 PR c++/66561
25279 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
25280 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
25281 constants.
25282
25283 PR c++/66639
25284 * doc/extend.texi (Function Names as Strings): Update __func__,
25285 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
25286 constants.
25287
25288 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25289 Richard Biener <rguenther@suse.de>
25290
25291 PR tree-optimization/70916
25292 * tree-if-conv.c: Include cfganal.h.
25293 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
25294 and remove_fake_exit_edges around the optimization pass.
25295
25296 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
25297
25298 * cgraph.c (symbol_table::create_edge): Set inline_failed.
25299 (cgraph_edge::make_direct): Likewise.
25300 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
25301 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
25302 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
25303 (CIF_THUNK): New code.
25304 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
25305 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
25306 (compute_inline_parameters): Set inline_failed for thunks.
25307 (inline_analyze_function): Cleanup.
25308 * ipa-inline.c (can_inline_edge_p): Do not deal with
25309 call_stmt_cannot_inline_p.
25310 (can_early_inline_edge_p): Likewise.
25311 (early_inliner): Initialize inline_failed.
25312 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
25313
25314 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
25315
25316 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
25317 from nonimm_ssenomem_operand.
25318 (nonimm_ssenomem_operand): New predicate.
25319 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
25320 as operand 0 predicate.
25321 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
25322 Disable unsupported alternatives using "enabled" attribute.
25323 Use register_ssemem_operand as operand 0 predicate.
25324 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
25325
25326 2016-05-03 Marek Polacek <polacek@redhat.com>
25327
25328 PR c/70859
25329 * input.c (expansion_point_location): New function.
25330 * input.h (expansion_point_location): Declare.
25331
25332 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
25333
25334 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
25335 occurence with frame_offset_ ones.
25336
25337 2016-05-03 Alan Modra <amodra@gmail.com>
25338
25339 PR rtl-optimization/70890
25340 * ira.c (combine_and_move_insns): When moving def_insn, remove
25341 equivs on use_insn.
25342
25343 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
25344
25345 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
25346 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
25347 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
25348 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
25349
25350 2016-05-03 Alan Modra <amodra@gmail.com>
25351
25352 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
25353 for SAVE_MULTIPLE/STORE_MULTIPLE.
25354
25355 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25356
25357 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
25358 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
25359
25360 2016-05-03 Richard Biener <rguenther@suse.de>
25361
25362 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
25363 default true.
25364 (gimplify_arg): Likewise.
25365 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
25366 re-writing the result to a decl if required.
25367 (internal_get_tmp_var): Add allow_ssa parameter
25368 and override into_ssa with it.
25369 (get_formal_tmp_var): Adjust.
25370 (get_initialized_tmp_var): Add allow_ssa parameter.
25371 (gimplify_arg): Add allow_ssa parameter and avoid generating
25372 SSA names for the result false.
25373 (gimplify_call_expr): If the call may return twice do not
25374 gimplify parameters into SSA.
25375 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
25376 (gimplify_modify_expr): Adjust assert. For noreturn calls
25377 with a SSA name LHS adjust its def.
25378 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
25379 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
25380 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
25381 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
25382 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
25383 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
25384 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
25385 (optimize_target_teams): Do not allow SSA names for clause operands.
25386 (gimplify_expr): Likewise for where we mark the result addressable.
25387 * passes.def (pass_init_datastructures): Remove.
25388 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
25389 (rewrite_stmt): Likewise.
25390 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
25391 (replace_locals_op): Replace SSA names.
25392 (copy_gimple_seq_and_replace_locals): Init src_cfun.
25393 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
25394 * cgraph.c (release_function_body): Free CFG annotations only
25395 when we have a CFG. Simplify.
25396 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
25397 force_gimple_operand instead of get_initialized_tmp_var.
25398 * tree-pass.h (make_pass_init_datastructures): Remove.
25399 * tree-ssa.c (execute_init_datastructures): Remove.
25400 (pass_data_init_datastructures): Likewise.
25401 (class pass_init_datastructures): Likewise.
25402 (make_pass_init_datastructures): Likewise.
25403 * omp-low.c (create_omp_child_function): Init SSA data structures.
25404 (grid_expand_target_grid_body): Likewise.
25405 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
25406 name before adding it to names_to_release.
25407 (remove_bb): Always release SSA defs.
25408 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
25409 before dereferencing it.
25410 * cgraphunit.c (init_lowered_empty_function): Always
25411 int SSA data structures.
25412 * tree-ssanames.c (release_defs): Remove assert that we are in
25413 SSA form.
25414 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
25415
25416 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25417 Uros Bizjak <ubizjak@gmail.com>
25418
25419 PR rtl-optimization/70467
25420 * config/i386/predicates.md (x86_64_hilo_int_operand,
25421 x86_64_hilo_general_operand): New predicates.
25422 * config/i386/constraints.md (Wd): New constraint.
25423 * config/i386/i386.md (mode attr di): Use Wd instead of e.
25424 (general_hilo_operand): New mode attr.
25425 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
25426 instead of <general_operand>.
25427 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
25428 x86_64_hilo_general_operand instead of <general_operand>.
25429
25430 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25431
25432 PR tree-optimization/70916
25433 * tree-if-conv.c (constant_or_ssa_name): Removed.
25434 (fold_build_cond_expr): Use is_gimple_val instead of
25435 constant_or_ssa_name.
25436
25437 PR tree-optimization/70916
25438 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
25439 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
25440
25441 PR target/49244
25442 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
25443 (optimize_atomic_bit_test_and): New function.
25444 (pass_fold_builtins::execute): Use it.
25445 * optabs.def (atomic_bit_test_and_set_optab,
25446 atomic_bit_test_and_complement_optab,
25447 atomic_bit_test_and_reset_optab): New optabs.
25448 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
25449 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
25450 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
25451 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
25452 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
25453 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
25454 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
25455 * doc/md.texi (atomic_bit_test_and_set@var{mode},
25456 atomic_bit_test_and_complement@var{mode},
25457 atomic_bit_test_and_reset@var{mode}): Document.
25458 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
25459 atomic_bit_test_and_complement<mode>,
25460 atomic_bit_test_and_reset<mode>): New expanders.
25461 (atomic_bit_test_and_set<mode>_1,
25462 atomic_bit_test_and_complement<mode>_1,
25463 atomic_bit_test_and_reset<mode>_1): New insns.
25464
25465 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
25466
25467 PR rtl-optimization/70687
25468 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
25469 instead of unsigned HOST_WIDE_INT.
25470
25471 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
25472
25473 PR rtl-optimization/44281
25474 * hard-reg-set.h (struct target_hard_regs): New field
25475 x_fixed_nonglobal_reg_set.
25476 (fixed_nonglobal_reg_set): New macro.
25477 * reginfo.c (init_reg_sets_1): Initialize it.
25478 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
25479 of fixed_reg_set.
25480 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
25481
25482 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25483
25484 PR tree-optimization/56541
25485 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
25486 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
25487 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
25488 (any_complicated_phi): new static variable.
25489 (aggressive_if_conv): delete.
25490 (if_convertible_phi_p): support phis with more than two arguments.
25491 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
25492 critical pred edges.
25493 (ifcvt_split_critical_edges): support phis with more than two
25494 arguments by checking new parameter. only split critical edges
25495 if needed.
25496 (tree_if_conversion): handle simd pragma marked loop using new
25497 local variable aggressive_if_conv. check any_complicated_phi.
25498
25499 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25500
25501 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
25502 before using it.
25503
25504 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25505
25506 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
25507 cbase.
25508
25509 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
25510
25511 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
25512 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
25513 define_insn_and_split.
25514 (mulsi3_i): New define_insn_and_split.
25515 (mulsi3_call): Convert to define_insn.
25516 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
25517 Remove constraints.
25518
25519 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25520
25521 * machmode.h (mode_complex): Add support to give the complex mode
25522 for a given mode.
25523 (GET_MODE_COMPLEX_MODE): Likewise.
25524 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
25525 stored by build_complex_type and gfc_build_complex_type instead of
25526 trying to figure out the appropriate mode based on the size. Raise
25527 an assertion error, if the type was not set.
25528 * genmodes.c (struct mode_data): Add field for the complex type of
25529 the given type.
25530 (blank_mode): Likewise.
25531 (make_complex_modes): Remember the complex mode created in the
25532 base type.
25533 (emit_mode_complex): Write out the mode_complex array to map a
25534 type mode to the complex version.
25535 (emit_insn_modes_c): Likewise.
25536 * tree.c (build_complex_type): Set the complex type to use before
25537 calling layout_type.
25538 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
25539 support for __float128 complex datatypes.
25540 (rs6000_hard_regno_mode_ok): Likewise.
25541 (rs6000_setup_reg_addr_masks): Likewise.
25542 (rs6000_complex_function_value): Likewise.
25543 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
25544 __float128 and __ibm128 complex.
25545 (FLOAT128_IBM_P): Likewise.
25546 (ALTIVEC_ARG_MAX_RETURN): Likewise.
25547 * doc/extend.texi (Additional Floating Types): Document that
25548 -mfloat128 must be used to enable __float128. Document complex
25549 __float128 and __ibm128 support.
25550
25551 2016-05-02 Jakub Jelinek <jakub@redhat.com>
25552
25553 PR target/49244
25554 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
25555 char/short arguments promoted to int because of promote_prototypes.
25556
25557 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
25558
25559 * config/i386/predicates.md (register_ssemem_operand): New predicate.
25560 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
25561 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
25562 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
25563 alternatives using "enabled" attribute. Use register_ssemem_operand
25564 as operand 1 predicate.
25565 (*cmpi<unord>xf_i387): Split XFmode pattern from
25566 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
25567 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
25568 *absneg<mode>2_i387. Disable unsupported alternatives using
25569 "enabled" attribute.
25570 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
25571
25572 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
25573
25574 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
25575 marker.
25576 (oacc_loop_process): Check mask for loop termination.
25577
25578 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
25579
25580 * cif-code.def (CIF_THUNK): Add.
25581 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
25582 accidental change.
25583
25584 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
25585
25586 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
25587 (dump_inline_summary): Dump it.
25588 (fp_expression_p): New predicate.
25589 (estimate_function_body_sizes): Use it.
25590 (inline_merge_summary): Merge fp_expressions.
25591 (inline_read_section): Read fp_expressions.
25592 (inline_write_summary): Write fp_expressions.
25593 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
25594 codegen boundary if either caller or callee is !fp_expressions.
25595 * ipa-inline.h (inline_summary): Add fp_expressions.
25596 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
25597 to fp_expressions be sure the fp generation flags are updated.
25598
25599 2016-05-02 Jakub Jelinek <jakub@redhat.com>
25600
25601 PR rtl-optimization/70467
25602 * cse.c (cse_insn): Handle no-op MEM moves after folding.
25603
25604 PR rtl-optimization/70467
25605 * ipa-pure-const.c (check_call): Handle internal calls even in
25606 ipa mode like in local mode.
25607
25608 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
25609
25610 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
25611
25612 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
25613
25614 * match.pd (X u< X, X u> X): New transformations.
25615
25616 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
25617
25618 * flag-types.h (enum warn_strict_overflow_code): Move ...
25619 * coretypes.h: ... here.
25620 * fold-const.h (fold_overflow_warning): Declare.
25621 * fold-const.c (fold_overflow_warning): Make non-static.
25622 (fold_comparison): Move the transformation of X +- C1 CMP C2
25623 into X CMP C2 -+ C1 ...
25624 * match.pd: ... here.
25625 * gimple-fold.c (fold_stmt_1): Protect with
25626 fold_defer_overflow_warnings.
25627
25628 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
25629
25630 * omp-low.c (struct oacc_loop): Add 'inner' field.
25631 (new_oacc_loop_raw): Initialize it to zero.
25632 (oacc_loop_fixed_partitions): Initialize it.
25633 (oacc_loop_auto_partitions): Partition outermost loop to outermost
25634 available partitioning.
25635
25636 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
25637
25638 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
25639 register_operand.
25640 (umulsidi3): Likewise.
25641 (indirect_jump): Fix jump instruction assembly patterns.
25642
25643 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
25644
25645 PR target/70860
25646 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
25647 (nvptx_function_value): Assert non-NULL cfun.
25648
25649 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
25650
25651 PR rtl-optimization/70886
25652 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
25653
25654 * cselib.h (rtx_equal_for_cselib_1): Declare.
25655 (rtx_equal_for_cselib_p: New inline function.
25656 * cselib.c (rtx_equal_for_cselib_p): Delete.
25657 (rtx_equal_for_cselib_1): Make public.
25658
25659 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
25660
25661 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
25662 (register_mixssei387nonimm_operand): Remove predicate.
25663 * config/i386/i386.md (*fop_<mode>_comm): Merge from
25664 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
25665 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
25666 for TARGET_MIX_SSE_I387 alternatives.
25667 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
25668 Disable unsupported alternatives using "enabled" attribute. Use
25669 nonimm_ssenomem_operand as operand 1 predicate. Also check
25670 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
25671
25672 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25673
25674 * tree.c (cst_and_fits_in_hwi): Simplify.
25675
25676 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25677
25678 * tree.h (wi::to_wide): New function.
25679 * expr.c (expand_expr_real_1): Use wi::to_wide.
25680 * fold-const.c (int_const_binop_1): Likewise.
25681 (extract_muldiv_1): Likewise.
25682
25683 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25684
25685 * wide-int.h: Update offset_int and widest_int documentation.
25686 (WI_SIGNED_SHIFT_RESULT): New macro.
25687 (wi::binary_shift): Define signed_shift_result_type for
25688 shifts on offset_int- and widest_int-like types.
25689 (generic_wide_int): Support <<= and >>= if << and >> are supported.
25690 * tree.h (int_bit_position): Use shift operators instead of wi::
25691 shifts.
25692 * alias.c (adjust_offset_for_component_ref): Likewise.
25693 * expr.c (get_inner_reference): Likewise.
25694 * fold-const.c (fold_comparison): Likewise.
25695 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
25696 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
25697 * tree-dfa.c (get_ref_base_and_extent): Likewise.
25698 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
25699 (stmt_kills_ref_p): Likewise.
25700 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
25701 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
25702 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
25703 (ao_ref_init_from_vn_reference): Likewise.
25704
25705 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25706
25707 * wide-int.h: Update offset_int and widest_int documentation.
25708 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
25709 (wi::binary_traits): Allow ordered comparisons between offset_int and
25710 offset_int, between widest_int and widest_int, and between either
25711 of these types and basic C types.
25712 (operator <, <=, >, >=): Define for the same combinations.
25713 * tree.h (tree_int_cst_lt): Use comparison operators instead
25714 of wi:: comparisons.
25715 (tree_int_cst_le): Likewise.
25716 * gimple-fold.c (fold_array_ctor_reference): Likewise.
25717 (fold_nonarray_ctor_reference): Likewise.
25718 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
25719 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
25720 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
25721 * tree-sra.c (completely_scalarize): Likewise.
25722 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
25723 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
25724 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
25725 (check_for_binary_op_overflow): Likewise.
25726 (search_for_addr_array): Likewise.
25727 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
25728
25729 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
25730
25731 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
25732 (arc_save_restore): Likewise.
25733 (arc_dwarf_register_span): Likewise.
25734 (arc_output_pic_addr_const): Initialize suffix variable.
25735
25736 2016-05-02 Martin Liska <mliska@suse.cz>
25737
25738 * symbol-summary.h (function_summary::function_summary):
25739 Remove checking assert for all cgraph nodes.
25740 (function_summary::get): Check summary_uid.
25741 (symtab_insertion): Check summary_uid.
25742
25743 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
25744
25745 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
25746 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
25747 bmaskn instruction.
25748 (arc_dwarf_register_span): Remove enum keyword.
25749 (compact_memory_operand_p): New function.
25750 * config/arc/arc.h (reg_class): Add code density register classes.
25751 (REG_CLASS_NAMES): Likewise.
25752 (REG_CLASS_CONTENTS): Likewise.
25753 * config/arc/arc.md (*movqi_insn): Add code density instructions.
25754 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
25755 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
25756 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
25757 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
25758 constraints.
25759 (h, Rcd, Rsd, Rzd): New register constraints.
25760 (T): Use compact_memory_operand_p function.
25761 * config/arc/predicates.md (compact_load_memory_operand): Remove.
25762
25763 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
25764
25765 * config/sh/sh.md (*negnegt, *movtt): Remove.
25766
25767 2016-05-02 Marek Polacek <polacek@redhat.com>
25768 Tom de Vries <tom@codesourcery.com>
25769
25770 PR tree-optimization/70700
25771 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
25772 bigger than FIRST_REF_NODE.
25773
25774 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
25775
25776 PR target/52898
25777 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
25778 TARGET_CMPEQDI_T.
25779 (prepare_cbranch_operands): Don't use scratch register. Assume that
25780 function is used when pseudos can be created.
25781 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
25782 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
25783 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
25784 define_expand. Allow it only when pseudos can be created.
25785 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
25786
25787 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
25788
25789 * config/i386/constraints.md (BC): Only allow -1 operands.
25790 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
25791 Add "enabled" attribute. Update XI mode attribute calculation.
25792 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
25793 (*movoi_internal_avx): Update XI mode attribute calculation.
25794 (*movti_internal): Ditto.
25795
25796 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25797
25798 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
25799 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
25800
25801 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
25802
25803 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
25804 statement on instruction code. Remove trailing spaces.
25805 (altivec_expand_stv_builtin): Likewise.
25806
25807 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25808
25809 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
25810 (TARGET_FPU_DOUBLE): Simplify.
25811 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
25812 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
25813 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
25814 with 'TARGET_FPU_DOUBLE'.
25815 * config/sh/sh.md: Likewise.
25816
25817 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
25818
25819 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
25820 SH_DIV_STR_FOR_SIZE): Remove.
25821 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
25822 SH_DIV_STR_FOR_SIZE): Remove.
25823
25824 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25825
25826 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
25827 logical_reg_operand): Delete.
25828 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
25829 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
25830 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
25831 match_operand and match_test.
25832 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
25833 variables on their first use. Return bool values.
25834 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
25835 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
25836 arith_reg_operand for input operand. Remove empty constraints.
25837 (xorsi3): Delete.
25838 (*xorsi3_compact): Rename to xorsi3.
25839 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
25840 (*zero_extend<mode>si2_disp_mem): Update comment.
25841 (mov_nop): Delete.
25842
25843 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
25844
25845 * config/sh/t-sh: Remove SH5 support.
25846 * config.gcc: Likewise.
25847 * configure: Likewise.
25848
25849 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25850
25851 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
25852
25853 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
25854
25855 * config/sh/sh.c (register_sh_passes, sh_option_override,
25856 sh_print_operand, prepare_move_operands,
25857 sh_can_follow_jump): Remove TARGET_SH1 checks.
25858 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
25859 PROMOTE_MODE): Likewise.
25860 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
25861 movdi): Likewise.
25862
25863 2016-04-30 Alan Modra <amodra@gmail.com>
25864
25865 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
25866 restoring when fixed_reg_p, but allow out-of-line or stmw save.
25867 Check for user regs later to avoid unnecessary looping over regs.
25868 Merge user reg check with non-saved reg check. Don't force
25869 inline VR restore when static chain used.
25870 (rs6000_frame_related): Omit eh_frame info for user regs when
25871 saving.
25872 (fixed_regs_p): Delete.
25873
25874 2016-04-30 Alan Modra <amodra@gmail.com>
25875
25876 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
25877 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
25878 Update all uses.
25879
25880 2016-04-30 Alan Modra <amodra@gmail.com>
25881
25882 PR target/69645
25883 * config/rs6000/rs6000.c (fixed_reg_p): New function.
25884 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
25885 Update all uses.
25886
25887 2016-04-30 Alan Modra <amodra@gmail.com>
25888
25889 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
25890 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
25891 flag_pic test for Darwin.
25892
25893 2016-04-30 Alan Modra <amodra@gmail.com>
25894
25895 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
25896 throw_calls_crossed.
25897 (REG_FREQ_CALLS_CROSSED): Delete.
25898 (REG_N_THROWING_CALLS_CROSSED): Delete.
25899 * regstat.c (regstat_bb_compute_ri): Don't calculate
25900 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
25901 (dump_reg_info): Don't print call cross frequency.
25902 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
25903 and REG_N_THROWING_CALLS_CROSSED.
25904
25905 2016-04-30 Alan Modra <amodra@gmail.com>
25906
25907 * regs.h (struct reg_info_t): Delete live_length.
25908 (REG_LIVE_LENGTH): Delete macro.
25909 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
25910 local_live, local_processed and local_live_last_luid params.
25911 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
25912 Formatting fixes.
25913 (regstat_compute_ri): Adjust for above. Don't set
25914 REG_LIVE_LENGTH.
25915 (dump_reg_info): Don't print live length.
25916 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
25917 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
25918 Localize loop_depth var.
25919
25920 2016-04-30 Alan Modra <amodra@gmail.com>
25921
25922 * ira.c (enum valid_equiv): New.
25923 (validate_equiv_mem): Return enum.
25924 (update_equiv_mem): Create replacement in more cases.
25925 (add_store_equivs): Update validate_equiv_mem call.
25926
25927 2016-04-30 Alan Modra <amodra@gmail.com>
25928
25929 * ira.c (combine_and_move_insns): Rather than scanning insns,
25930 use DF infrastucture to find use and def insns.
25931
25932 2016-04-30 Alan Modra <amodra@gmail.com>
25933
25934 ira.c (combine_and_move_insns): Move invariant conditions..
25935 (ira.c): ..to here. Call combine_and_move_insns before
25936 add_store_equivs. Call grow_reg_equivs later. Allocate
25937 req_equiv later using max_reg_num() rather than global max_regno.
25938 (contains_replace_regs): Delete.
25939 (add_store_equivs): Remove contains_replace_regs test.
25940
25941 2016-04-30 Alan Modra <amodra@gmail.com>
25942
25943 * ira.c (struct equiv_mem_data): New.
25944 (equiv_mem, equiv_mem_modified): Delete static vars.
25945 (validate_equiv_mem_from_store): Use "data" param to communicate..
25946 (validate_equiv_mem): ..from here.
25947
25948 2016-04-30 Alan Modra <amodra@gmail.com>
25949
25950 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
25951 split out from..
25952 (update_reg_equivs): ..here. Move allocation and freeing of
25953 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
25954 end_alias_analysis to..
25955 (ira): ..here.
25956
25957 2016-04-30 Alan Modra <amodra@gmail.com>
25958
25959 * ira.c (pdx_subregs): Delete.
25960 (struct equivalence): Add pdx_subregs field.
25961 (set_paradoxical_subreg): Remove pdx_subregs param. Update
25962 pdx_subregs access.
25963 (update_equiv_regs): Don't create or free pdx_subregs. Update
25964 pdx_subregs access.
25965
25966 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25967
25968 * config/rs6000/altivec.h: Change definitions of vec_xl and
25969 vec_xst.
25970 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
25971 (LD_ELEMREV_V2DI): New.
25972 (LD_ELEMREV_V4SF): New.
25973 (LD_ELEMREV_V4SI): New.
25974 (LD_ELEMREV_V8HI): New.
25975 (LD_ELEMREV_V16QI): New.
25976 (ST_ELEMREV_V2DF): New.
25977 (ST_ELEMREV_V2DI): New.
25978 (ST_ELEMREV_V4SF): New.
25979 (ST_ELEMREV_V4SI): New.
25980 (ST_ELEMREV_V8HI): New.
25981 (ST_ELEMREV_V16QI): New.
25982 (XL): New.
25983 (XST): New.
25984 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25985 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
25986 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
25987 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
25988 (altivec_expand_builtin): Add handling for
25989 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
25990 (rs6000_invalid_builtin): Add error-checking for
25991 RS6000_BTM_P9_VECTOR.
25992 (altivec_init_builtins): Define builtins used to implement vec_xl
25993 and vec_xst.
25994 (rs6000_builtin_mask_names): Define power9-vector.
25995 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
25996 (RS6000_BTM_P9_VECTOR): Define.
25997 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
25998 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
25999 (vsx_ld_elemrev_v2df): Likewise.
26000 (vsx_ld_elemrev_v4sf): Likewise.
26001 (vsx_ld_elemrev_v4si): Likewise.
26002 (vsx_ld_elemrev_v8hi): Likewise.
26003 (vsx_ld_elemrev_v16qi): Likewise.
26004 (vsx_st_elemrev_v2df): Likewise.
26005 (vsx_st_elemrev_v2di): Likewise.
26006 (vsx_st_elemrev_v4sf): Likewise.
26007 (vsx_st_elemrev_v4si): Likewise.
26008 (vsx_st_elemrev_v8hi): Likewise.
26009 (vsx_st_elemrev_v16qi): Likewise.
26010 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
26011 grammar.
26012
26013 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
26014
26015 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
26016 out into ...
26017 (simplify_control_stmt_condition_1): ... here. Recurse into
26018 BIT_AND_EXPRs and BIT_IOR_EXPRs.
26019
26020 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
26021
26022 PR target/69810
26023 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
26024 (zero_extendqi<mode>2_dot): Revert earlier conversion from
26025 define_insn_and_split to define_insn.
26026 (zero_extendqi<mode>2_dot2): Same.
26027 (extendqi<mode>2_dot): Same.
26028 (extendqi<mode>2_dot2): Same.
26029
26030 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26031
26032 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
26033 (probe_stack): New expander.
26034 (probe_stack_<mode>): New insn pattern.
26035
26036 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26037
26038 * config/i386/i386.md
26039 (operations with memory inputs setting flags peephole2):
26040 Remove uneeded REG_P checks. Cleanup pattern generation.
26041
26042 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
26043
26044 * tree-vect-loop.c (vect_transform_loop): Fix
26045 nb_iterations_upper_bound computation for vectorized loop.
26046
26047 2016-04-29 Marek Polacek <polacek@redhat.com>
26048 Jakub Jelinek <jakub@redhat.com>
26049
26050 PR sanitizer/70342
26051 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
26052 TARGET_EXPR_SLOT as a base.
26053
26054 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
26055
26056 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
26057 with 'rCm2' constraints to limit possible immediate size.
26058 (*load_zeroextendqisi_update): Likewise.
26059 (*load_signextendqisi_update): Likewise.
26060 (*loadhi_update): Likewise.
26061 (*load_zeroextendhisi_update): Likewise.
26062 (*load_signextendhisi_update): Likewise.
26063 (*loadsi_update): Likewise.
26064 (*loadsf_update): Likewise.
26065
26066 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26067
26068 * config/i386/predicates.md (constm1_operand): Fix comparison.
26069
26070 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
26071
26072 * testsuite/gcc.target/arc/ieee_eq.c: New test.
26073
26074 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
26075
26076 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
26077 remaining SH5 related settings.
26078 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
26079 shmedia_prepare_call_address): Delete.
26080 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
26081 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
26082 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
26083 UNSUPPORTED_SH2A): Remove m5 checks.
26084 (sh_divide_strategy_e): Remove SH5 division strategies.
26085 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
26086 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
26087
26088 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
26089
26090 * config/s390/s390.c (s390_rtx_costs): Update documentation.
26091
26092 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26093
26094 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
26095 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
26096 Change lder to ldr.
26097 * config/s390/vector.md ("mov<mode>"): Likewise.
26098
26099 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
26100
26101 * config/s390/constraints.md ("U", "W"): Invoke
26102 s390_mem_constraint with "ZR" and "ZT".
26103 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
26104 addresses when using LRA. Accept also short displacements for S
26105 and T constraints. Do not check for long displacement target for
26106 S and T constraints.
26107 (s390_mem_constraint): Remove handling of U and W constraints.
26108 * config/s390/s390.md (various patterns): Remove the short
26109 displacement constraints (Q and R) if a long displacement
26110 constraint is present. Add longdisp as required CPU capability.
26111 * config/s390/vector.md: Likewise.
26112 * config/s390/vx-builtins.md: Likewise.
26113
26114 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26115
26116 PR target/60040
26117 * reload1.c (reload): Call finish_spills before
26118 restarting reload loop. Skip select_reload_regs
26119 if update_eliminables_and_spill returns true.
26120
26121 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
26122
26123 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
26124 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
26125 (umulhisi3_imm): Update predicates and constraint letters.
26126 (umulhisi3_reg): Declare instruction as commutative.
26127 * config/arc/constraints.md (J12, J16): New constraints.
26128 * config/arc/predicates.md (short_unsigned_const_operand): New
26129 predicate.
26130 (arc_short_operand): Likewise.
26131 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
26132
26133 2016-04-29 Richard Biener <rguenther@suse.de>
26134
26135 PR tree-optimization/13962
26136 PR tree-optimization/65686
26137 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
26138 * tree-ssa-alias.c (ptrs_compare_unequal): New function
26139 using PTA to compare pointers.
26140 * match.pd: Add pattern for pointer equality compare simplification
26141 using ptrs_compare_unequal.
26142
26143 2016-04-29 Richard Biener <rguenther@suse.de>
26144
26145 * stor-layout.c (layout_type): Do not build a pointer-to-element
26146 type for arrays.
26147
26148 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26149
26150 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
26151 Use SWI mode iterator. Use general_reg_operand predicate.
26152 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
26153 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
26154 predicates.
26155
26156 2016-04-29 Jakub Jelinek <jakub@redhat.com>
26157
26158 PR middle-end/70843
26159 * fold-const.c (operand_equal_p): Don't verify hash value equality
26160 if arg0 == arg1.
26161 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
26162 and OMP_CLAUSE.
26163
26164 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26165
26166 PR target/70858
26167 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
26168 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
26169 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
26170 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
26171 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
26172
26173 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26174
26175 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
26176 to info. Don't initialize separate fields to 0. Clean up
26177 formatting a bit.
26178
26179 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26180
26181 * config/i386/i386.md (peephole2s for operations with memory inputs):
26182 Use SWI mode iterator.
26183 (peephole2s for operations with memory outputs): Ditto.
26184 Do not check for stack checking probe.
26185
26186 (probe_stack): Remove expander.
26187
26188 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26189 Andrew Burgess <andrew.burgess@embecosm.com>
26190
26191 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
26192 operands as 32-bits.
26193
26194 2016-04-28 Jason Merrill <jason@redhat.com>
26195
26196 * gdbinit.in: Skip line-map.h.
26197
26198 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26199 Andrew Burgess <andrew.burgess@embecosm.com>
26200
26201 * config/arc/arc.c (arc_conditional_register_usage): Take
26202 TARGET_RRQ_CLASS into account.
26203 (arc_print_operand): Support printing 'p' and 's' operands.
26204 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
26205 as 0.
26206 (TARGET_RRQ_CLASS): Define.
26207 (IS_POWEROF2_OR_0_P): Define.
26208 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
26209 alternatives.
26210 (*tst_movb): New define_insn.
26211 (*tst): Avoid recognition if it could prevent '*tst_movb'
26212 combination; replace c/CnL with c/Chs alternative.
26213 (*tst_bitfield_tst): New define_insn.
26214 (*tst_bitfield_asr): New define_insn.
26215 (*tst_bitfield): New define_insn.
26216 (andsi3_i): Add Rrq variant.
26217 (extzv): New define_expand.
26218 (insv): New define_expand.
26219 (*insv_i): New define_insn.
26220 (*movb): New define_insn.
26221 (*movb_signed): New define_insn.
26222 (*movb_high): New define_insn.
26223 (*movb_high_signed): New define_insn.
26224 (*movb_high_signed + 1): New define_split pattern.
26225 (*mrgb): New define_insn.
26226 (*mrgb + 1): New define_peephole2 pattern.
26227 (*mrgb + 2): New define_peephole2 pattern.
26228 * config/arc/arc.opt (mbitops): New option for nps400, uses
26229 TARGET_NPS_BITOPS_DEFAULT.
26230 * config/arc/constraints.md (q): Make register class conditional.
26231 (Rrq): New register constraint.
26232 (Chs): New constraint.
26233 (Clo): New constraint.
26234 (Chi): New constraint.
26235 (Cbf): New constraint.
26236 (Cbn): New constraint.
26237 (C18): New constraint.
26238 (Cbi): New constraint.
26239
26240 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26241
26242 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
26243 dst->popcount.
26244 (bitmap_intersection_of_preds): Ditto.
26245 (bitmap_union_of_succs): Ditto.
26246 (bitmap_union_of_preds): Ditto.
26247 * sbitmap.c (do_popcount): Delete.
26248 (BITMAP_DEBUGGING): Delete.
26249 (sbitmap_verify_popcount): Delete.
26250 (sbitmap_alloc): Don't initialize the popcount field.
26251 (sbitmap_alloc_with_popcount): Delete.
26252 (sbitmap_resize): Don't resize the popcount array.
26253 (sbitmap_vector_alloc): Don't initialize the popcount field.
26254 (bitmap_copy): Don't copy the popcount array.
26255 (bitmap_clear): Don't clear the popcount array.
26256 (bitmap_clear): Delete the popcount array handling.
26257 (bitmap_ior_and_compl): Delete the popcount assert.
26258 (bitmap_not): Ditto.
26259 (bitmap_and_compl): Ditto.
26260 (bitmap_and): Delete the popcount array handling.
26261 (bitmap_xor): Ditto.
26262 (bitmap_ior): Ditto.
26263 (bitmap_or_and): Delete the popcount assert.
26264 (bitmap_and_or): Ditto.
26265 (popcount_table): Delete.
26266 (sbitmap_elt_popcount): Delete.
26267 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
26268 (bitmap_set_bit): Delete the popcount assert.
26269 (bitmap_clear_bit): Ditto.
26270 (sbitmap_free): Don't free the popcount array.
26271 (sbitmap_alloc_with_popcount): Delete declaration.
26272 (sbitmap_popcount): Ditto.
26273
26274 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26275 Andrew Burgess <andrew.burgess@embecosm.com>
26276
26277 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
26278 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
26279 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
26280 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
26281 * config/arc/arc.opt (mcmem): New option.
26282 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
26283 supply length for r/m alternative.
26284 (*extendqisi2_ac): Likewise.
26285 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
26286 r/Uex alternative.
26287 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
26288 (movhi_insn): Likewise.
26289 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
26290 (*zero_extendqihi2_i): Add r/Ucm alternative.
26291 (*zero_extendqisi2_ac): Likewise.
26292 (*zero_extendhisi2_i): Likewise.
26293 * config/arc/constraints.md (Uex): New memory constraint.
26294 (Ucm): New define_constraint.
26295 * config/arc/predicates.md (long_immediate_loadstore_operand):
26296 Return 0 for MEM with cmem_address address.
26297 (cmem_address_0): New predicates.
26298 (cmem_address_1): Likewise.
26299 (cmem_address_2): Likewise.
26300 (cmem_address): Likewise.
26301
26302 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26303
26304 * config/rs6000/rs6000.c (machine_function): Rename
26305 insn_chain_scanned_p to spe_insn_chain_scanned_p.
26306 (rs6000_stack_info): Adjust.
26307
26308 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26309 Andrew Burgess <andrew.burgess@embecosm.com>
26310
26311 * config/arc/constraints.md (Usd): Convert to define_constraint.
26312 (Us<): Likewise.
26313 (Us>): Likewise.
26314
26315 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26316
26317 PR target/70821
26318 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
26319 Add new peephole2 where the first insn is *mov<mode>_or instead of
26320 *mov<mode>_internal.
26321
26322 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
26323
26324 * tracer.c (bb_seen): Make static.
26325
26326 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
26327
26328 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
26329 support, setup defaults.
26330 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
26331 * config/arc/arc.c (arc_init): Add NPS400 support.
26332 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
26333 (TARGET_ARC700): NPS400 is also an ARC700.
26334 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
26335
26336 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26337
26338 PR target/70668
26339 * config/nds32/nds32.md (casesi): Don't access the operands array
26340 out of bounds.
26341
26342 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26343
26344 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
26345 (or $-1,reg peephole2): Ditto.
26346 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
26347
26348 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
26349
26350 * doc/extend.texi (Common Function Attributes) [optimize]:
26351 Discourage use of the optimize attribute.
26352
26353 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
26354
26355 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
26356 special case builtin.
26357 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26358 ALTIVEC_BUILTIN_VEC_ADDE.
26359 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
26360 support for ALTIVEC_BUILTIN_VEC_ADDE.
26361 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
26362 for __builtin_vec_adde.
26363
26364 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26365
26366 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
26367 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
26368
26369 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26370
26371 PR testsuite/70595
26372 * doc/sourcebuild.texi (Effective-Target Keywords, Other
26373 attributes): Document cilkplus_runtime.
26374
26375 2016-04-28 Martin Jambor <mjambor@suse.cz>
26376
26377 * tree-cfg.c (verify_expr): Verify that local declarations belong to
26378 this function. Call verify_expr on MEM_REFs and bases of other
26379 handled_components.
26380
26381 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26382
26383 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
26384 for WORD_REGISTER_OPERATIONS to runtime check.
26385
26386 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26387
26388 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
26389
26390 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26391
26392 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
26393 big-endian compilation.
26394 * config/arc/arc.md (addf3): Likewise.
26395 (subdf3): Likewise.
26396 (muldf3): Likewise.
26397
26398 2016-04-28 Richard Biener <rguenther@suse.de>
26399
26400 PR tree-optimization/70840
26401 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
26402 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
26403 Mark x * pow(x,c) -> pow(x,c+1) commutative.
26404 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
26405
26406 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26407
26408 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
26409 and explain why in a comment.
26410
26411 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26412
26413 * config/arc/arc.md (cpu_facility): Add fpx variant.
26414 (subdf3): Prohibit use reverse sub when assist operations option
26415 is enabled.
26416 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
26417 instructions only when FPX is enabled.
26418 * testsuite/gcc.target/arc/trsub.c: New test.
26419
26420 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26421
26422 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
26423 mult_operator when calculating "type" attribute.
26424 (*fop_<mode>_1_i387): Ditto.
26425 (*fop_xf_1_i387): Ditto.
26426 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
26427 Use std::swap to swap operands. Use RTL expressions to generate
26428 converted pattern.
26429
26430 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26431 Joern Rennecke <joern.rennecke@embecosm.com>
26432
26433 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
26434 declaration.
26435 (emit_pic_move): Remove.
26436 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
26437 * config/arc/arc.c (emit_pic_move): Removed.
26438 (TARGET_HAVE_TLS): Define.
26439 (arc_conditional_register_usage): Test for arc_tp_regno.
26440 (arc_print_operand, arc_print_operand_address): Handle TLS
26441 unspecs.
26442 (arc_needs_pcl_p): New function.
26443 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
26444 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
26445 (arc_raw_symbolic_reference_mentioned_p): Likewise.
26446 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
26447 (arc_legitimize_tls_address): Likewise.
26448 (DTPOFF_ZERO_SYM): Define.
26449 (arc_legitimize_pic_address): Make it static, handle TLS cases.
26450 (arc_output_pic_addr_const): Print TLS unspecs.
26451 (prepare_pic_move): New function, replaces emit_pic_move.
26452 (arc_legitimate_constant_p): Handle TLS unspecs.
26453 (arc_legitimate_address_p): Likewise.
26454 (arc_rewrite_small_data_p): Use assert for TLS constants.
26455 (prepare_move_operands): Use prepare_pic_move.
26456 (arc_legitimize_address): Legitimize tls addresses.
26457 (arc_epilogue_uses): Check for arc_tp_regno.
26458 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
26459 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
26460 Define.
26461 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
26462 Likewise.
26463 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
26464 %(arc_tls_extra_start_spec).
26465 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
26466 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
26467 (EH_USES): Define.
26468 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
26469 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
26470 (UNSPEC_TLS_OFF): Add.
26471 (R10_REG): Define.
26472 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
26473 (get_thread_pointersi): New patterns.
26474 * config/arc/arc.opt (mtp-regno): New option.
26475 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
26476 (move_dest_operand): Likewise.
26477 * configure: Regenerate.
26478 * configure.ac: Add arc*-*-* case to test for tls.
26479 * doc/invoke.texi (ARC options): Document mtp-regno.
26480
26481 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26482
26483 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
26484 the new ARC HS SIMD instructions.
26485 (arc_preferred_simd_mode): New function.
26486 (arc_autovectorize_vector_sizes): Likewise.
26487 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
26488 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
26489 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
26490 (arc_init_builtins): Add new SIMD builtin types.
26491 (arc_split_move): Handle 64 bit vector moves.
26492 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
26493 (TARGET_PLUS_QMACW): Define.
26494 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
26495 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
26496 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
26497 (VSUBADD4H): New builtins.
26498 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
26499 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
26500
26501 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
26502 Matthias Klose <doko@debian.org>
26503
26504 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
26505
26506 2016-04-28 Richard Biener <rguenther@suse.de>
26507
26508 PR middle-end/70777
26509 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
26510 canonicalization.
26511
26512 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
26513
26514 * common/config/sh/sh-common.c: Remove SH5 support.
26515 * config/sh/constraints.md: Likewise.
26516 * config/sh/config/sh/elf.h: Likewise.
26517 * config/sh/linux.h: Likewise.
26518 * config/sh/netbsd-elf.h: Likewise.
26519 * config/sh/predicates.md: Likewise.
26520 * config/sh/sh-c.c: Likewise.
26521 * config/sh/sh-protos.h: Likewise.
26522 * config/sh/sh.c: Likewise.
26523 * config/sh/sh.h: Likewise.
26524 * config/sh/sh.md: Likewise.
26525 * config/sh/sh.opt: Likewise.
26526 * config/sh/sync.md: Likewise.
26527 * config/sh/sh64.h: Delete.
26528 * config/sh/shmedia.h: Likewise.
26529 * config/sh/shmedia.md: Likewise.
26530 * config/sh/sshmedia.h: Likewise.
26531 * config/sh/t-netbsd-sh5-64: Likewise.
26532 * config/sh/t-sh64: Likewise.
26533 * config/sh/ushmedia.h: Likewise.
26534
26535 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26536
26537 * config/i386/i386.md (sign_extend to memory peephole2s): Use
26538 general_reg_operand instead of register_operand predicate.
26539
26540 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26541
26542 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
26543
26544 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
26545
26546 * match.pd (A - B > A, A + B < A): New transformations.
26547
26548 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
26549
26550 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
26551 which defaults to true. Emit an outer pair of parentheses only if
26552 EMIT_PARENS. When continuing a chain of && or || (or & or |),
26553 don't emit parentheses for the right-hand operand.
26554
26555 2016-04-27 Jeff Law <law@redhat.com>
26556
26557 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
26558
26559 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26560
26561 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
26562 (altivec_lvx_<mode>_internal): Document.
26563 (altivec_lvx_<mode>_2op): New define_insn.
26564 (altivec_lvx_<mode>_1op): Likewise.
26565 (altivec_lvx_<mode>_2op_si): Likewise.
26566 (altivec_lvx_<mode>_1op_si): Likewise.
26567 (altivec_stvx_<mode>): Remove.
26568 (altivec_stvx_<mode>_internal): Document.
26569 (altivec_stvx_<mode>_2op): New define_insn.
26570 (altivec_stvx_<mode>_1op): Likewise.
26571 (altivec_stvx_<mode>_2op_si): Likewise.
26572 (altivec_stvx_<mode>_1op_si): Likewise.
26573 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26574 Expand vec_ld and vec_st during parsing.
26575 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
26576 changes.
26577 (altivec_expand_stvx_be): Likewise.
26578 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
26579 address-masking behavior in RTL.
26580 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
26581 address-masking behavior in RTL.
26582 (altivec_expand_builtin): Change builtin code arguments for calls
26583 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
26584 (insn_is_swappable_p): Avoid incorrect swap optimization in the
26585 presence of lvx/stvx patterns.
26586 (alignment_with_canonical_addr): New function.
26587 (alignment_mask): Likewise.
26588 (find_alignment_op): Likewise.
26589 (recombine_lvx_pattern): Likewise.
26590 (recombine_stvx_pattern): Likewise.
26591 (recombine_lvx_stvx_patterns): Likewise.
26592 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
26593 stvx patterns from expand.
26594 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
26595 expansions.
26596 (vector_altivec_store_<mode>): Likewise.
26597
26598 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
26599
26600 * config/aarch64/aarch64.md
26601 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
26602 remove the "fp" attributes.
26603 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
26604 add the "simd" attributes.
26605 (*movdf_aarch64): Likewise.
26606 (*movtf_aarch64): Remove the "fp" attributes.
26607 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
26608 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
26609
26610 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26611
26612 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
26613 rtx to rtx_code_label *.
26614 * rtl.h (maybe_set_first_label_num): Likewise.
26615
26616 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26617
26618 * df-core.c (df_add_problem): Make the problem param be const.
26619 (df_remove_problem): Make local "problem" be const.
26620 * df-problems.c (problem_RD): Make const.
26621 (problem_LR): Likewise.
26622 (problem_LIVE): Likewise.
26623 (problem_MIR): Likewise.
26624 (problem_CHAIN): Likewise.
26625 (problem_WORD_LR): Likewise.
26626 (problem_NOTE): Likewise.
26627 (problem_MD): Likewise.
26628 * df-scan.c (problem_SCAN): Likewise.
26629 * df.h (struct df_problem): Make field "dependent_problem" be
26630 const.
26631 (struct dataflow): Likewise for field "problem".
26632 (df_add_problem): Make param const.
26633
26634 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
26635
26636 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
26637 inter-unit moves to/from vector registers are enabled. Do not disable
26638 for TARGET_MMX.
26639
26640 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26641
26642 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
26643 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
26644 #define to...
26645 (enum df_problem_id): ...this new enum.
26646 (struct df_problem): Convert field "id" from "int" to
26647 enum df_problem_id.
26648
26649 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26650
26651 * rtl.def: Update comment for "things in the instruction chain" to
26652 reflect the removal of the leading "i" field for INSN_UID in
26653 r210360. Fix bogus apostrophe.
26654
26655 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
26656
26657 * config/i386/i386.md
26658 (lea arith with mem operand + setcc peephole2): Set operator mode.
26659
26660 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
26661
26662 PR target/70155
26663 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
26664 (dimode_scalar_to_vector_candidate_p): This.
26665 (timode_scalar_to_vector_candidate_p): New function.
26666 (scalar_to_vector_candidate_p): Likewise.
26667 (timode_check_non_convertible_regs): Likewise.
26668 (timode_remove_non_convertible_regs): Likewise.
26669 (remove_non_convertible_regs): Likewise.
26670 (remove_non_convertible_regs): Renamed to ...
26671 (dimode_remove_non_convertible_regs): This.
26672 (scalar_chain::~scalar_chain): Make it virtual.
26673 (scalar_chain::compute_convert_gain): Make it pure virtual.
26674 (scalar_chain::mark_dual_mode_def): Likewise.
26675 (scalar_chain::convert_insn): Likewise.
26676 (scalar_chain::convert_registers): Likewise.
26677 (scalar_chain::add_to_queue): Make it protected.
26678 (scalar_chain::emit_conversion_insns): Likewise.
26679 (scalar_chain::replace_with_subreg): Likewise.
26680 (scalar_chain::replace_with_subreg_in_insn): Likewise.
26681 (scalar_chain::convert_op): Likewise.
26682 (scalar_chain::convert_reg): Likewise.
26683 (scalar_chain::make_vector_copies): Likewise.
26684 (scalar_chain::convert_registers): New pure virtual function.
26685 (class dimode_scalar_chain): New class.
26686 (class timode_scalar_chain): Likewise.
26687 (scalar_chain::mark_dual_mode_def): Renamed to ...
26688 (dimode_scalar_chain::mark_dual_mode_def): This.
26689 (timode_scalar_chain::mark_dual_mode_def): New function.
26690 (timode_scalar_chain::convert_insn): Likewise.
26691 (dimode_scalar_chain::convert_registers): Likewise.
26692 (scalar_chain::compute_convert_gain): Renamed to ...
26693 (dimode_scalar_chain::compute_convert_gain): This.
26694 (scalar_chain::replace_with_subreg): Renamed to ...
26695 (dimode_scalar_chain::replace_with_subreg): This.
26696 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
26697 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
26698 (scalar_chain::make_vector_copies): Renamed to ...
26699 (dimode_scalar_chain::make_vector_copies): This.
26700 (scalar_chain::convert_reg): Renamed to ...
26701 (dimode_scalar_chain::convert_reg ): This.
26702 (scalar_chain::convert_op): Renamed to ...
26703 (dimode_scalar_chain::convert_op): This.
26704 (scalar_chain::convert_insn): Renamed to ...
26705 (dimode_scalar_chain::convert_insn): This.
26706 (scalar_chain::convert): Call convert_registers.
26707 (convert_scalars_to_vector): Change to scalar_chain pointer to
26708 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
26709 in 32-bit mode. Delete scalar_chain pointer. Call
26710 free_dominance_info in 64-bit mode.
26711 (pass_stv::gate): Remove TARGET_64BIT check.
26712 (ix86_option_override): Put the 64-bit STV pass before the CSE
26713 pass.
26714
26715 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
26716
26717 * dwarf2out.h (struct dw_loc_descr_node): Remove the
26718 dw_loc_frame_offset field.
26719 * dwarf2out.c (new_loc_descr): Likewise.
26720 (resolve_args_picking_1): Turn the VISITED hash set into a
26721 FRAME_OFFSET hash map. Use it to associate a frame offset to
26722 visited nodes. Remove uses of the CHECKING_P macro.
26723 (resolve_args_picking): Update call to resolve_args_picking_1.
26724
26725 2016-04-27 Martin Liska <mliska@suse.cz>
26726
26727 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
26728 (free_loop_data): Release vuses of groups.
26729
26730 2016-04-27 Bin Cheng <bin.cheng@arm.com>
26731
26732 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
26733 instead of redundant use_id and boolean have_use_for.
26734 (struct iv_use): Change sub_id into group_id. Remove field next.
26735 Move fields: related_cands, n_map_members, cost_map and selected
26736 to ...
26737 (struct iv_group): ... here. New structure.
26738 (struct iv_common_cand): Use structure declaration directly.
26739 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
26740 (MAX_CONSIDERED_USES): Rename macro to ...
26741 (MAX_CONSIDERED_GROUPS): ... here.
26742 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
26743 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
26744 (dump_uses): Rename to ...
26745 (dump_groups): ... here. Update all uses.
26746 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
26747 (find_induction_variables): Refactor format of dump information.
26748 (record_sub_use): Delete.
26749 (record_use): Update all uses.
26750 (record_group): New function.
26751 (record_group_use, find_interesting_uses_op): Call above functions.
26752 Update all uses.
26753 (find_interesting_uses_cond): Ditto.
26754 (group_compare_offset): New function.
26755 (split_all_small_groups): Rename to ...
26756 (split_small_address_groups_p): ... here. Update all uses.
26757 (split_address_groups): Update all uses.
26758 (find_interesting_uses): Refactor format of dump information.
26759 (add_candidate_1): Update all uses. Remove redundant check on iv,
26760 base and step.
26761 (add_candidate, record_common_cand): Remove redundant assert.
26762 (add_iv_candidate_for_biv): Update use.
26763 (add_iv_candidate_derived_from_uses): Update all uses.
26764 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
26765 (alloc_use_cost_map): Ditto.
26766 (set_use_iv_cost, get_use_iv_cost): Rename to ...
26767 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
26768 (determine_use_iv_cost_generic): Ditto.
26769 (determine_group_iv_cost_generic): Ditto.
26770 (determine_use_iv_cost_address): Ditto.
26771 (determine_group_iv_cost_address): Ditto.
26772 (determine_use_iv_cost_condition): Ditto.
26773 (determine_group_iv_cost_cond): Ditto.
26774 (determine_use_iv_cost): Ditto.
26775 (determine_group_iv_cost): Ditto.
26776 (set_autoinc_for_original_candidates): Update all uses.
26777 (find_iv_candidates): Update all uses. Refactor dump information.
26778 (determine_use_iv_costs): Ditto.
26779 (determine_iv_costs): Ditto.
26780 (iv_ca_cand_for_use): Rename to ...
26781 (iv_ca_cand_for_group): ... here. Update all uses.
26782 (iv_ca_add_use, iv_ca_add_group): Ditto.
26783 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
26784 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
26785 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
26786 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
26787 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
26788 (create_new_iv, adjust_iv_update_pos): Ditto.
26789 (rewrite_use_address): Delete.
26790 (rewrite_use_address_1): Rename to ...
26791 (rewrite_use_address): ... here.
26792 (rewrite_use_compare): Update all uses.
26793 (rewrite_use): Delete.
26794 (rewrite_uses): Rename to ...
26795 (rewrite_groups): ... here. Update all uses.
26796 (remove_unused_ivs, free_loop_data): Update all uses.
26797 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
26798
26799 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26800
26801 * rtlanal.c (nonzero_bits1): Convert preprocessor check
26802 for WORD_REGISTER_OPERATIONS to runtime check.
26803
26804 2016-04-27 Richard Biener <rguenther@suse.de>
26805
26806 PR ipa/70760
26807 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
26808 aggregate_value_p to determine if a function result is
26809 returned by reference.
26810 (ipa_pta_execute): Functions having their address taken are
26811 not automatically nonlocal.
26812
26813 2016-04-27 Jakub Jelinek <jakub@redhat.com>
26814
26815 PR sanitizer/70683
26816 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
26817 * fold-const.c (operand_equal_p): If flag_checking and
26818 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
26819 and if it returns non-zero, assert iterative_hash_expr on both
26820 args is the same.
26821
26822 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
26823
26824 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
26825
26826 2016-04-27 Nick Clifton <nickc@redhat.com>
26827
26828 PR middle-end/49889
26829 * varasm.c (merge_weak): Generate an error if an attempt is made
26830 to convert a non-weak static function into a weak, public function.
26831
26832 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26833
26834 * params.def (MAX_PARTITION_SIZE): New param.
26835 * doc/invoke.texi: Document lto-max-partition.
26836
26837 2016-04-27 Richard Biener <rguenther@suse.de>
26838
26839 PR ipa/70785
26840 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
26841 function cummulating used_from_other_partition, externally_visible
26842 and force_output from aliases.
26843 (refered_from_nonlocal_var): Likewise.
26844 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
26845 node flags properly.
26846
26847 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
26848
26849 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
26850 (-Wmemset-elt-size): New item.
26851
26852 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
26853
26854 PR ada/70759
26855 * stor-layout.h (internal_reference_types): Delete.
26856 * stor-layout.c (reference_types_internal): Likewise.
26857 (internal_reference_types): Likewise.
26858 (layout_type) <REFERENCE_TYPE>: Adjust.
26859
26860 2016-04-27 Jakub Jelinek <jakub@redhat.com>
26861
26862 PR sanitizer/70683
26863 * tree.h (inchash::add_expr): Add FLAGS argument.
26864 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
26865 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
26866 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
26867 Formatting fix. Adjust recursive calls. For tcc_comparison,
26868 if swap_tree_comparison (code) is smaller than code, hash that
26869 and arguments in the other order. Hash CONVERT_EXPR the same
26870 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
26871 of ADDR_EXPR of decl as the decl itself. Add or remove
26872 OEP_ADDRESS_OF from recursive flags as needed. For
26873 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
26874 operands commutatively and only the third one normally.
26875 For internal CALL_EXPR hash in CALL_EXPR_IFN.
26876
26877 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
26878
26879 * config/rtems.h (LIB_SPEC): Add -latomic.
26880
26881 2016-04-27 Joel Sherrill <joel@rtems.org>
26882
26883 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
26884 xilink.ld and flags not relevant to RTEMS.
26885
26886 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
26887
26888 * toplev.c (backend_init_target): Avoid calling init_reload when using
26889 LRA.
26890
26891 2016-04-26 Jakub Jelinek <jakub@redhat.com>
26892
26893 * reorg.c (try_merge_delay_insns): Declare i and j inside the
26894 for loops rather than one for the whole function.
26895
26896 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
26897
26898 * match.pd (X + CST CMP X): New transformation.
26899
26900 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
26901
26902 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
26903 * fold-const.c (fold_binary_loc): Remove 2 transformations
26904 superseded by match.pd.
26905 * match.pd (x+x -> x*2): Generalize to integers.
26906
26907 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
26908
26909 * config/i386/i386.md (operation on memory peephole): Duplicate an
26910 existing peephole and adapt it to match lea rather than an operation
26911 that clobbers CC.
26912
26913 PR rtl-optimization/57193
26914 * opts.c (default_options_table): Add OPT_frename_registers at -O2
26915 and above.
26916 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
26917
26918 2016-04-26 Bin Cheng <bin.cheng@arm.com>
26919
26920 * tree-if-conv.c (any_pred_load_store): New static variable.
26921 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
26922 any_pred_load_store instead of and_mask_load_store.
26923 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
26924 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
26925 (combine_blocks, tree_if_conversion): Ditto.
26926
26927 2016-04-26 Bin Cheng <bin.cheng@arm.com>
26928
26929 PR tree-optimization/70771
26930 PR tree-optimization/70775
26931 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
26932 virtual PHI nodes. Delete parameter.
26933 (if_convertible_loop_p_1): Delete argument to above function.
26934 (predicate_all_scalar_phis): Delete code handling single-argument
26935 PHIs.
26936 (tree_if_conversion): Mark and update virtual SSA.
26937
26938 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26939
26940 PR target/61821
26941 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
26942 (x86_elf_aligned_common): Rename to ...
26943 (x86_elf_aligned_decl_common): ... this.
26944 Add decl arg. Switch to .lbss for largecomm object. Use
26945 LARGECOMM_SECTION_ASM_OP.
26946 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
26947 renaming.
26948 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
26949 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
26950 Pass new decl arg.
26951 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
26952 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
26953
26954 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26955
26956 PR target/59407
26957 * config/i386/i386.c (SECTION_LARGE): Define.
26958 (x86_64_elf_select_section): Set it for large data/bss sections.
26959 Only clear SECTION_WRITE for .lrodata.
26960 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
26961 data/bss sections.
26962 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
26963 * varasm.c (default_elf_asm_named_section): Grow flagchars.
26964 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
26965 SECTION_MACH_DEP.
26966 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
26967 * doc/tm.texi: Regenerate.
26968
26969 2016-04-26 Jakub Jelinek <jakub@redhat.com>
26970
26971 PR bootstrap/70704
26972 * configure.ac (--enable-checking): Document extra flag, for
26973 non-release builds default to --enable-checking=yes,extra.
26974 If misc checking and extra checking, define CHECKING_P to 2 instead
26975 of 1.
26976 * common.opt (fchecking=): Add.
26977 * doc/invoke.texi (-fchecking=): Document.
26978 * doc/install.texi: Document --enable-checking changes.
26979 * configure: Regenerated.
26980 * config.in: Regenerated.
26981
26982 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26983
26984 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
26985 attribute instead of which_alternative.
26986 * config/i386/sse.md (*mov<mode>_internal): Ditto.
26987 Use EXT_REX_SSE_REG_P where appropriate.
26988
26989 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26990
26991 * config/i386/predicates.md (const0_operand): Do not match
26992 const_wide_int code.
26993 (const1_operand): Ditto.
26994
26995 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26996
26997 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
26998 for SSE constm1 operands and TARGET_AVX512VL.
26999 (*movti_internal): Ditto.
27000 (*mov<mode>_or): Use constm1_operand predicate.
27001 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
27002 for SSE vector_all_ones operands and TARGET_AVX512VL.
27003 * config/i386/predicates.md (constm1_operand): New predicate.
27004 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
27005 emission of constant -1 load.
27006
27007 2016-04-25 Jason Merrill <jason@redhat.com>
27008
27009 * gdbinit.in: Skip is-a.h.
27010
27011 * attribs.c (register_scoped_attributes): Fix logic.
27012 * attribs.h: Declare register_scoped_attributes.
27013
27014 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27015
27016 * config/rs6000/rs6000-builtin.def: Correct pasto error for
27017 stxvd2x and stxvw4x built-in functions.
27018
27019 2016-04-25 DJ Delorie <dj@redhat.com>
27020
27021 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
27022 (ashrhi3): Likewise.
27023 (lshrhi3): Likewise.
27024
27025 2016-04-25 Richard Biener <rguenther@suse.de>
27026
27027 PR tree-optimization/70780
27028 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
27029 wasn't visited yet.
27030 (compute_antic): Mark blocks with abnormal preds as visited as
27031 they have a final empty antic-in solution already.
27032
27033 2016-04-25 Michael Collison <michael.collison@linaro.org>
27034
27035 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
27036
27037 2016-04-25 Michael Collison <michael.collison@linaro.org>
27038
27039 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
27040 mode is VQI to improve mixed mode vectorization.
27041 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
27042 define_insn to match low half of signed vaddw.
27043 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
27044 define_insn to match high half of signed vaddw.
27045 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
27046 define_insn to match low half of unsigned vaddw.
27047 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
27048 define_insn to match high half of unsigned vaddw.
27049 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
27050 (arm_simd_check_vect_par_cnst_half_p): Likewise.
27051 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
27052 for new function.
27053 (arm_simd_check_vect_par_cnst_half_p): Likewise.
27054 * config/arm/predicates.md (vect_par_constant_high): Support
27055 big endian and simplify by calling
27056 arm_simd_check_vect_par_cnst_half
27057 (vect_par_constant_low): Likewise.
27058
27059 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27060
27061 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
27062 predicate for operand 2.
27063
27064 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
27065 H.J. Lu <hongjiu.lu@intel.com>
27066
27067 * config/i386/i386-protos.h (standard_sse_constant_p): Add
27068 machine_mode argument.
27069 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
27070 constm1_rtx operands. For VOIDmode constants, get mode from
27071 pred_mode. Check mode size if the mode is supported by ABI.
27072 (standard_sse_constant_opcode): Do not use standard_constant_p.
27073 Strictly check ABI support for all-ones operands.
27074 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
27075 immediates. Update calls to standard_sse_constant_p.
27076 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
27077 (ix86_rtx_costs): Ditto.
27078 * config/i386/i386.md (*movxi_internal_avx512f): Use
27079 nonimmediate_or_sse_const_operand instead of vector_move_operand.
27080 Use (v,BC) alternative instead of (v,C). Use register_operand
27081 checks instead of MEM_P.
27082 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
27083 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
27084 isa attribute. Use register_operand checks instead of MEM_P.
27085 (*movti_internal): Use nonimmediate_or_sse_const_operand for
27086 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
27087 alternative and corresponding sse2 isa attribute.
27088 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
27089 to standard_sse_constant_p.
27090 (FP constant splitters): Ditto.
27091 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
27092 (C): Ditto.
27093 * config/i386/predicates.md (constm1_operand): Remove.
27094 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
27095 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
27096 vector_all_ones_operand instead of constm1_operand.
27097
27098 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27099
27100 * print-rtl.c (print_rtx_insn_vec): New function.
27101 * print-rtl.h: New prototype.
27102 * store-motion.c (struct st_expr): Make avail_stores a vector.
27103 (st_expr_entry): Adjust.
27104 (free_st_expr_entry): Likewise.
27105 (print_store_motion_mems): Likewise.
27106 (find_moveable_store): Likewise.
27107 (compute_store_table): Likewise.
27108 (delete_store): Likewise.
27109 (build_store_vectors): Likewise.
27110
27111 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27112
27113 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
27114
27115 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27116
27117 * vec.h (vec_safe_contains): New function.
27118 (vec::contains): Likewise.
27119 (vec::begin): Likewise.
27120 (vec::end): Likewise.
27121
27122 2016-04-23 Jakub Jelinek <jakub@redhat.com>
27123
27124 PR sanitizer/70712
27125 * cfgexpand.c (expand_stack_vars): Fix typo.
27126
27127 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27128
27129 * system.h (list, map, set, vector): Include conditionally.
27130 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
27131 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
27132 * ipa-icf.c (INCLUDE_LIST): Define.
27133 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
27134 * config/sh/sh.c (INCLUDE_VECTOR): Define.
27135 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
27136 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
27137 * cp/logic.cc (INCLUDE_LIST): Define.
27138 * fortran/trans-common.c (INCLUDE_MAP): Define.
27139
27140 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27141
27142 * auto-profile.c: Remove <string.h> include.
27143 * ipa-icf-gimple.c: Remove <list> include.
27144 * diagnostic.c: Remove <new> include.
27145 * genmatch.c: Likewise.
27146 * pretty-print.c: Likewise.
27147 * toplev.c: Likewise
27148 * c/c-objc-common.c: Likewise.
27149 * cp/error.c: Likewise.
27150 * fortran/error.c: Likewise.
27151
27152 2016-04-22 Richard Biener <rguenther@suse.de>
27153
27154 * lto-streamer-in.c (input_ssa_names): Do not allocate
27155 GIMPLE_NOP for all SSA names.
27156 * lto-streamer-out.c (output_ssa_names): Do not output
27157 SSA names that should have been released.
27158
27159 2016-04-22 Richard Biener <rguenther@suse.de>
27160
27161 PR tree-optimization/70740
27162 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
27163 VDEF.
27164
27165 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
27166
27167 PR target/70750
27168 * config/i386/predicates.md (call_insn_operand): Replace
27169 sibcall_memory_operand with memory_operand.
27170
27171 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
27172
27173 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
27174 has_single_use() tests.
27175 (register_edge_assert_for_1): Likewise.
27176 (find_assert_locations_1): Check the liveness bitmap instead of
27177 checking has_single_use().
27178
27179 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
27180
27181 PR target/70728
27182 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
27183 Extract AVX-512BW constraint from AVX.
27184
27185 2016-04-21 Richard Biener <rguenther@suse.de>
27186
27187 PR tree-optimization/70725
27188 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
27189 for phi_convertible_by_degenerating_args.
27190 (predicate_all_scalar_phis): Handle single-argument PHIs.
27191
27192 2016-04-21 Richard Biener <rguenther@suse.de>
27193
27194 PR middle-end/70747
27195 * fold-const.c (fold_comparison): Return properly typed
27196 constant boolean.
27197
27198 2016-04-21 Bin Cheng <bin.cheng@arm.com>
27199
27200 PR tree-optimization/70715
27201 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
27202 after expanding BASE using expand_simple_operations.
27203
27204 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
27205
27206 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
27207 New transformations.
27208
27209 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
27210
27211 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
27212
27213 2016-04-20 Jan Hubicka <jh@suse.cz>
27214
27215 * ipa-inline.c (can_inline_edge_p): Pass caller info to
27216 ultiimate_alias_target.
27217 (update_callee_keys): Likewise.
27218 (lookup_recursive_calls): Likewise.
27219 (speculation_useful_p): Likewise.
27220
27221 2016-04-20 Jan Hubicka <jh@suse.cz>
27222
27223 PR ipa/70018
27224 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
27225 (set_nothrow_flag_1): ... this; handle interposition correctly;
27226 recurse on aliases and thunks.
27227 (cgraph_node::set_nothrow_flag): New.
27228 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
27229 functions compiled with non-call exceptions that binds to current
27230 def.
27231 (propagate_nothrow): Be safe WRT interposition.
27232 * cgraph.h (set_nothrow_flag): Update prototype.
27233
27234 2016-04-18 Jan Hubicka <jh@suse.cz>
27235
27236 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
27237 max_loop_iterations_int.
27238 (tree_unswitch_outer_loop): Likewise.
27239
27240 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27241
27242 PR tree-optimization/69489
27243 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
27244 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
27245 Revise dump message.
27246 (if_convertible_bb_p): Remove check on edge count of basic block's
27247 predecessors.
27248
27249 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27250
27251 PR tree-optimization/56625
27252 PR tree-optimization/69489
27253 * tree-data-ref.h (DR_INNERMOST): New macro.
27254 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
27255 hashing struct innermost_loop_behavior.
27256 (ref_DR_map): Remove.
27257 (innermost_DR_map): New map.
27258 (baseref_DR_map): Revise comment.
27259 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
27260 to innermost_DR_map accroding to its innermost loop behavior.
27261 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
27262 to its innermost loop behavior.
27263 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
27264 Add initialization for innermost_DR_map. Record memory reference
27265 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
27266 have innermost loop behavior.
27267 (if_convertible_loop_p): Remove release for ref_DR_map. Release
27268 innermost_DR_map.
27269
27270 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
27271
27272 * config/i386/i386.md (*lea<mode>_general_1): Rename from
27273 *lea_general_1. Use explicit SWI12 mode interator.
27274 (*lea<mode>_general_2): Rename from *lea_general_2.
27275 Use explicit SWI12 mode interator.
27276 (*lea<mode>_general_3): Rename from *lea_general_3.
27277 Use explicit SWI12 mode interator.
27278 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
27279 Use explicit SWI12 mode interator.
27280 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
27281 Use explicit SWI48 mode interator.
27282
27283 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
27284
27285 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
27286 Short-cut unaligned load and store cases. Handle all integer
27287 vector modes.
27288 (ix86_expand_vector_move_misalign): Short-cut unaligned load
27289 and store cases. Call ix86_avx256_split_vector_move_misalign
27290 directly without checking mode class.
27291
27292 2016-04-20 Andrew Pinski <apinski@cavium.com>
27293 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27294
27295 PR target/64971
27296 * config/aarch64/aarch64.md (sibcall): Force call
27297 address to be DImode for ILP32.
27298 (sibcall_value): Likewise.
27299
27300 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
27301
27302 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
27303
27304 2016-04-20 Richard Biener <rguenther@suse.de>
27305
27306 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
27307 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
27308 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
27309 (maybe_push_res_to_seq): Adjust.
27310 * gimple-fold.c (maybe_build_generic_op): Likewise.
27311
27312 2016-04-20 Marek Polacek <polacek@redhat.com>
27313
27314 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
27315 rather than true.
27316
27317 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
27318
27319 * config/i386/sse.md (vec_unpacks_lo_hi): Always
27320 use kmovw to support AVX512F target.
27321
27322 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27323
27324 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
27325
27326 2016-04-20 Marek Polacek <polacek@redhat.com>
27327
27328 PR tree-optimization/70725
27329 * tree-if-conv.c (is_false_predicate): New function.
27330 (predicate_mem_writes): Use it.
27331
27332 2016-04-20 Richard Biener <rguenther@suse.de>
27333
27334 PR tree-optimization/70726
27335 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
27336 shift amounts from a pattern stmt operand.
27337
27338 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27339
27340 PR target/70674
27341 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
27342 stack_restore_from_fpr pattern when restoring r15.
27343 (s390_optimize_prologue): Strip away the memory barrier in the
27344 parallel when trying to get rid of restore insns.
27345 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
27346 definition for loading the stack pointer from an FPR. Compared to
27347 the normal move insn this pattern includes a full memory barrier.
27348
27349 2016-04-19 Jakub Jelinek <jakub@redhat.com>
27350
27351 PR middle-end/70680
27352 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
27353 implicitly linear or lastprivate iterator on the outer context.
27354
27355 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
27356
27357 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
27358 alignment check.
27359 * config/i386/i386.md (ssememalign): Removed.
27360 * config/i386/sse.md: Remove ssememalign attribute from patterns.
27361
27362 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
27363
27364 PR target/69201
27365 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
27366 const short * to __builtin_ia32_loaddquhi512_mask.
27367 (_mm512_maskz_loadu_epi16): Likewise.
27368 (_mm512_mask_storeu_epi16): Pass short * to
27369 __builtin_ia32_storedquhi512_mask.
27370 (_mm512_mask_loadu_epi8): Pass const char * to
27371 __builtin_ia32_loaddquqi512_mask.
27372 (_mm512_maskz_loadu_epi8): Likewise.
27373 (_mm512_mask_storeu_epi8): Pass char * to
27374 __builtin_ia32_storedquqi512_mask.
27375 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
27376 const double * to __builtin_ia32_loadupd512_mask.
27377 (_mm512_mask_loadu_pd): Likewise.
27378 (_mm512_maskz_loadu_pd): Likewise.
27379 (_mm512_storeu_pd): Pass double * to
27380 __builtin_ia32_storeupd512_mask.
27381 (_mm512_mask_storeu_pd): Likewise.
27382 (_mm512_loadu_ps): Pass const float * to
27383 __builtin_ia32_loadups512_mask.
27384 (_mm512_mask_loadu_ps): Likewise.
27385 (_mm512_maskz_loadu_ps): Likewise.
27386 (_mm512_storeu_ps): Pass float * to
27387 __builtin_ia32_storeups512_mask.
27388 (_mm512_mask_storeu_ps): Likewise.
27389 (_mm512_mask_loadu_epi64): Pass const long long * to
27390 __builtin_ia32_loaddqudi512_mask.
27391 (_mm512_maskz_loadu_epi64): Likewise.
27392 (_mm512_mask_storeu_epi64): Pass long long *
27393 to __builtin_ia32_storedqudi512_mask.
27394 (_mm512_loadu_si512): Pass const int * to
27395 __builtin_ia32_loaddqusi512_mask.
27396 (_mm512_mask_loadu_epi32): Likewise.
27397 (_mm512_maskz_loadu_epi32): Likewise.
27398 (_mm512_storeu_si512): Pass int * to
27399 __builtin_ia32_storedqusi512_mask.
27400 (_mm512_mask_storeu_epi32): Likewise.
27401 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
27402 char * to __builtin_ia32_storedquqi256_mask.
27403 (_mm_mask_storeu_epi8): Likewise.
27404 (_mm256_mask_loadu_epi16): Pass const short * to
27405 __builtin_ia32_loaddquhi256_mask.
27406 (_mm256_maskz_loadu_epi16): Likewise.
27407 (_mm_mask_loadu_epi16): Pass const short * to
27408 __builtin_ia32_loaddquhi128_mask.
27409 (_mm_maskz_loadu_epi16): Likewise.
27410 (_mm256_mask_loadu_epi8): Pass const char * to
27411 __builtin_ia32_loaddquqi256_mask.
27412 (_mm256_maskz_loadu_epi8): Likewise.
27413 (_mm_mask_loadu_epi8): Pass const char * to
27414 __builtin_ia32_loaddquqi128_mask.
27415 (_mm_maskz_loadu_epi8): Likewise.
27416 (_mm256_mask_storeu_epi16): Pass short * to.
27417 __builtin_ia32_storedquhi256_mask.
27418 (_mm_mask_storeu_epi16): Pass short * to.
27419 __builtin_ia32_storedquhi128_mask.
27420 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
27421 const double * to __builtin_ia32_loadupd256_mask.
27422 (_mm256_maskz_loadu_pd): Likewise.
27423 (_mm_mask_loadu_pd): Pass onst double * to
27424 __builtin_ia32_loadupd128_mask.
27425 (_mm_maskz_loadu_pd): Likewise.
27426 (_mm256_mask_storeu_pd): Pass double * to
27427 __builtin_ia32_storeupd256_mask.
27428 (_mm_mask_storeu_pd): Pass double * to
27429 __builtin_ia32_storeupd128_mask.
27430 (_mm256_mask_loadu_ps): Pass const float * to
27431 __builtin_ia32_loadups256_mask.
27432 (_mm256_maskz_loadu_ps): Likewise.
27433 (_mm_mask_loadu_ps): Pass const float * to
27434 __builtin_ia32_loadups128_mask.
27435 (_mm_maskz_loadu_ps): Likewise.
27436 (_mm256_mask_storeu_ps): Pass float * to
27437 __builtin_ia32_storeups256_mask.
27438 (_mm_mask_storeu_ps): ass float * to
27439 __builtin_ia32_storeups128_mask.
27440 (_mm256_mask_loadu_epi64): Pass const long long * to
27441 __builtin_ia32_loaddqudi256_mask.
27442 (_mm256_maskz_loadu_epi64): Likewise.
27443 (_mm_mask_loadu_epi64): Pass const long long * to
27444 __builtin_ia32_loaddqudi128_mask.
27445 (_mm_maskz_loadu_epi64): Likewise.
27446 (_mm256_mask_storeu_epi64): Pass long long * to
27447 __builtin_ia32_storedqudi256_mask.
27448 (_mm_mask_storeu_epi64): Pass long long * to
27449 __builtin_ia32_storedqudi128_mask.
27450 (_mm256_mask_loadu_epi32): Pass const int * to
27451 __builtin_ia32_loaddqusi256_mask.
27452 (_mm256_maskz_loadu_epi32): Likewise.
27453 (_mm_mask_loadu_epi32): Pass const int * to
27454 __builtin_ia32_loaddqusi128_mask.
27455 (_mm_maskz_loadu_epi32): Likewise.
27456 (_mm256_mask_storeu_epi32): Pass int * to
27457 __builtin_ia32_storedqusi256_mask.
27458 (_mm_mask_storeu_epi32): Pass int * to
27459 __builtin_ia32_storedqusi128_mask.
27460 * config/i386/i386-builtin-types.def (PCSHORT): New.
27461 (PINT64): Likewise.
27462 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
27463 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
27464 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
27465 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
27466 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
27467 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
27468 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
27469 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
27470 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
27471 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
27472 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
27473 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
27474 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
27475 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
27476 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
27477 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
27478 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
27479 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
27480 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
27481 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
27482 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
27483 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
27484 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
27485 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
27486 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
27487 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
27488 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
27489 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
27490 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
27491 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
27492 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
27493 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
27494 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
27495 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
27496 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
27497 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
27498 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
27499 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
27500 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
27501 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
27502 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
27503 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
27504 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
27505 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
27506 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
27507 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
27508 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
27509 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
27510 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
27511 use UNSPEC_STOREU.
27512 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
27513 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
27514 load nor store.
27515 (ix86_expand_vector_move_misalign): Likewise.
27516 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
27517 to scalar function prototype for unaligned load/store builtins.
27518 (ix86_expand_special_args_builtin): Updated.
27519 * config/i386/sse.md (UNSPEC_LOADU): Removed.
27520 (UNSPEC_STOREU): Likewise.
27521 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
27522 (VI_ULOADSTORE_F_AVX512VL): Likewise.
27523 (ssescalarsize): Handle V4TI, V2TI and V1TI.
27524 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
27525 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
27526 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
27527 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
27528 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
27529 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
27530 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
27531 (<avx512>_storedqu<mode>_mask): Likewise.
27532 (*sse4_2_pcmpestr_unaligned): Likewise.
27533 (*sse4_2_pcmpistr_unaligned): Likewise.
27534 (*mov<mode>_internal): Renamed to ...
27535 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
27536 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
27537 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
27538 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
27539
27540 2016-04-19 Richard Biener <rguenther@suse.de>
27541
27542 PR tree-optimization/70171
27543 * tree-ssa-phiprop.c: Include stor-layout.h.
27544 (phiprop_insert_phi): Handle the aggregate copy case.
27545 (propagate_with_phi): Likewise.
27546
27547 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
27548
27549 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
27550 instead of simplify_gen_subreg (... , 0).
27551 (ix86_delegitimize_address): Ditto.
27552 (ix86_split_divmod): Ditto.
27553 (ix86_split_copysign_const): Ditto.
27554 (ix86_split_copysign_var): Ditto.
27555 (ix86_expand_args_builtin): Ditto.
27556 (ix86_expand_round_builtin): Ditto.
27557 (ix86_expand_special_args_builtin): Ditto.
27558 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
27559 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
27560 (udivmodqi4): Ditto.
27561 (absneg splitters): Ditto.
27562 (*jcc_bt<mode>_1): Ditto.
27563
27564 2016-04-19 Richard Biener <rguenther@suse.de>
27565
27566 PR tree-optimization/70724
27567 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
27568 restoring out from ...
27569 (free_scc_vn): ... here.
27570 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
27571 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
27572 tail merging.
27573 (pass_fre::execute): Restore SSA info.
27574
27575 2016-04-19 Richard Biener <rguenther@suse.de>
27576
27577 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
27578 * gimple-walk.c (walk_gimple_op): Initialize it.
27579 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
27580 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
27581 remapping SSA names of defs.
27582 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
27583 adjustment.
27584
27585 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
27586
27587 PR middle-end/70689
27588 * lra-constraints.c (equiv_substition_p): New.
27589 (process_alt_operands): Use it.
27590 (swap_operands): Swap it.
27591 (curr_insn_transform): Update it.
27592
27593 2016-04-18 Michael Matz <matz@suse.de>
27594
27595 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
27596 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
27597 * tree-core.h (tree_type_common.align): Use bit-field.
27598 (tree_type_common.spare): New.
27599 (tree_decl_common.off_align): Make smaller.
27600 (tree_decl_common.align): Use bit-field.
27601
27602 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
27603 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
27604 (scan_sharing_clauses): Ditto.
27605 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
27606 (omp_finish_file): Ditto.
27607 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
27608 (layout_decl): Ditto.
27609 (relayout_decl): Ditto.
27610 (finalize_record_size): Use SET_TYPE_ALIGN.
27611 (finalize_type_size): Ditto.
27612 (finish_builtin_struct): Ditto.
27613 (layout_type): Ditto.
27614 (initialize_sizetypes): Ditto.
27615 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
27616 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
27617 (lookup_field_for_decl): Use SET_DECL_ALIGN.
27618 (get_chain_field): Ditto.
27619 (get_trampoline_type): Ditto.
27620 (get_nl_goto_field): Ditto.
27621 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27622 SET_DECL_ALIGN.
27623 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
27624 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
27625 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
27626 (build_qualified_type): Use SET_TYPE_ALIGN.
27627 (build_aligned_type, build_range_type_1): Ditto.
27628 (build_atomic_base): Ditto.
27629 (build_common_tree_nodes): Ditto.
27630 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
27631 (expand_one_stack_var_at): Ditto.
27632 * coverage.c (build_var): Use SET_DECL_ALIGN.
27633 * except.c (init_eh): Ditto.
27634 * function.c (assign_parm_setup_block): Ditto.
27635 * symtab.c (increase_alignment_1): Ditto.
27636 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
27637 * tree-vect-stmts.c (ensure_base_align): Ditto.
27638 * varasm.c (align_variable): Ditto.
27639 (assemble_variable): Ditto.
27640 (build_constant_desc): Ditto.
27641 (output_constant_def_contents): Ditto.
27642
27643 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
27644 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
27645 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
27646 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
27647 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
27648
27649 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
27650
27651 PR target/70708
27652 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
27653 replace %vmovsd with "%vmovq".
27654 (vec_concatv2df): Likewise.
27655
27656 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
27657
27658 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
27659 (*vec_extractv2si_0): Ditto.
27660 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
27661 (zero_extended_scalar_load_operand splitters): Ditto.
27662 (vec_extract splitters): Ditto.
27663 (*vec_extractv4si_0_zext): Ditto.
27664 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
27665 and lowpart_subreg.
27666 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
27667 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
27668 (*sse4_1_extractps): Use lowpart_subreg.
27669 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
27670
27671 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27672
27673 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
27674 gld requirements.
27675 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
27676 Mention Solaris 11 packaging changes.
27677 Update gas and gld requirements.
27678 Remove reference to pre-Solaris 10 bug.
27679 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
27680 systems and bugs.
27681 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
27682 with cc.
27683
27684 2016-04-17 Jan Hubicka <jh@suse.cz>
27685
27686 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
27687 max_loop_iterations_int.
27688
27689 2016-04-18 Richard Biener <rguenther@suse.de>
27690
27691 PR tree-optimization/43434
27692 * tree-ssa-structalias.c (struct vls_data): New.
27693 (visit_loadstore): Handle all pointer-based accesses.
27694 (compute_dependence_clique): Compute a bitmap of restrict tags
27695 assigned bases and pass it to visit_loadstore.
27696
27697 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
27698
27699 PR target/70711
27700 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
27701 armv8.1-a and armv8.1-a+crc.
27702
27703 2016-04-18 Richard Biener <rguenther@suse.de>
27704
27705 PR tree-optimization/70701
27706 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
27707 references after translating through a memcpy.
27708
27709 2016-04-18 Richard Biener <rguenther@suse.de>
27710
27711 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
27712 (compute_antic): ... here. For partial antic use regular
27713 postorder and scrap iteration.
27714 (compute_partial_antic_aux): Remove unused return value.
27715 (init_pre): Do not allocate postorder.
27716 (fini_pre): Do not free postorder.
27717
27718 2016-04-18 Richard Biener <rguenther@suse.de>
27719
27720 PR middle-end/37870
27721 * expmed.c (extract_bit_field_1): Remove broken case
27722 using a wider MODE_INT mode.
27723
27724 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
27725
27726 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
27727 unless compiling with at least GCC-4.8.
27728
27729 2016-04-17 Jan Hubicka <jh@suse.cz>
27730
27731 PR bootstrap/70706
27732 * graphite.c (graphite_finalize): Update call to
27733 tree_estimate_probability.
27734 * predict.h (tree_estimate_probability): Update prototype.
27735
27736 2016-04-17 Jan Hubicka <jh@suse.cz>
27737
27738 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
27739 (tree_estimate_probability): Likewise.
27740 (pass_profile::execute): Update.
27741 (report_predictor_hitrates): New function.
27742 * profile.c (compute_branch_probabilities): Use it.
27743 * predict.h (report_predictor_hitrates): Declare.
27744
27745 2016-04-17 Jan Hubicka <jh@suse.cz>
27746
27747 PR ipa/70018
27748 * cgraph.h (cgraph_node::set_const_flag,
27749 cgraph_node::set_pure_flag): Update prototype to return bool;
27750 update comment.
27751 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
27752 of interposable symbol are interposable, too.
27753 (cgraph_set_const_flag_1): Rename to ...
27754 (set_const_flag_1): ... this one; change to self recursive function
27755 instead of call_for_symbol_thunks_and_aliases. Handle correctly
27756 clearnig the flag in all variants and also virtual thunks of const
27757 functions are pure; track if any change was done.
27758 (cgraph_node::set_const_flag): Update.
27759 (struct set_pure_flag_info): New struct.
27760 (cgraph_set_pure_flag_1): Rename to ...
27761 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
27762 rather than pointer encoded flags; track if any changes was done;
27763 handle correctly clearning flag and setting flag of aliases already
27764 declared const.
27765 (cgraph_node::set_pure_flag): Update.
27766 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
27767
27768 2016-04-17 Tom de Vries <tom@codesourcery.com>
27769
27770 PR other/70433
27771 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
27772 backslash in label.
27773
27774 2016-04-17 Tom de Vries <tom@codesourcery.com>
27775
27776 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
27777 '{}<> ' as escape-for-record.
27778
27779 2016-04-17 Tom de Vries <tom@codesourcery.com>
27780
27781 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
27782 structure.
27783
27784 2016-04-17 Tom de Vries <tom@codesourcery.com>
27785
27786 PR other/70185
27787 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
27788 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
27789 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
27790 * passes.c (finish_optimization_passes): Only call
27791 finish_graph_dump_file if dfi->graph_dump_initialized.
27792 (execute_function_dump, pass_init_dump_file): Use
27793 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
27794
27795 2016-04-17 Tom de Vries <tom@codesourcery.com>
27796
27797 PR tree-optimization/70256
27798 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
27799 (debug_varmap): New function.
27800
27801 2016-04-17 Tom de Vries <tom@codesourcery.com>
27802
27803 PR other/70183
27804 * passes.c (pass_manager::register_pass): Propagate pflags.
27805
27806 2016-04-17 Tom de Vries <tom@codesourcery.com>
27807
27808 PR other/68875
27809 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
27810 * passes.c (pass_manager::pass_manager): Declare and init p_start in
27811 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
27812 check if it's equal to p_start.
27813 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
27814
27815 2016-04-15 Jan Hubicka <jh@suse.cz>
27816
27817 PR ipa/70018
27818 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
27819 function does not bind to current def.
27820 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
27821 handle conservatively calls to functions that does not need to bind
27822 to current def.
27823 (check_call): Update call of worse_state.
27824 (ignore_edge_for_nothrow): Update.
27825 (ignore_edge_for_pure_const): Likewise.
27826 (propagate_pure_const): Update calls to worse_state.
27827 (skip_function_for_local_pure_const): Reformat comments.
27828
27829 2016-04-15 Jan Hubicka <jh@suse.cz>
27830
27831 PR ipa/70018
27832 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
27833 (cgraph_node::function_symbol): Likewise.
27834 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
27835 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
27836 (symtab_node::ultimate_alias_target): Add REF parameter.
27837 (symtab_node::binds_to_current_def_p): Declare.
27838 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
27839 (cgraph_node::function_symbol): Likewise.
27840 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
27841 (cgraph_node::get_availability): Likewise.
27842 (cgraph_edge::binds_to_current_def_p): New inline function.
27843 (varpool_node::get_availability): Add REF parameter.
27844 (varpool_node::ultimate_alias_target): Likewise.
27845 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
27846 (symtab_node::binds_to_current_def_p): Likewise.
27847 * varpool.c (varpool_node::get_availability): Likewise.
27848
27849 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
27850
27851 PR target/70662
27852 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
27853 Fix mode size check.
27854
27855 2016-04-15 Jakub Jelinek <jakub@redhat.com>
27856
27857 * BASE-VER: Set to 7.0.0.
27858
27859 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
27860
27861 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
27862
27863 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27864
27865 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
27866 architecture revisions.
27867
27868 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
27869
27870 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
27871 * config/i386/i386.c (ix86_using_red_zone): No longer static.
27872 * config/i386/i386.md (stack decrement to push peepholes): Guard
27873 with !x86_using_red_zone ().
27874
27875 2016-04-15 Jakub Jelinek <jakub@redhat.com>
27876
27877 PR c++/70675
27878 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
27879 to dump_generic_node.
27880 (NIY): Pass also flags to do_niy.
27881
27882 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
27883
27884 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
27885 (simd_clone_vector_of_formal_parm_types)
27886 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
27887 (simd_clone_mangle, simd_clone_create)
27888 (simd_clone_adjust_return_type, create_tmp_simd_array)
27889 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
27890 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
27891 (ipa_simd_modify_function_body, simd_clone_linear_addend)
27892 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
27893 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
27894 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
27895 * omp-simd-clone.c: ... this new file.
27896 (simd_clone_vector_of_formal_parm_types): Make it static.
27897 * Makefile.in (OBJS): Add omp-simd-clone.o.
27898
27899 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
27900
27901 PR target/70662
27902 * config/i386/sse.md: Use proper memory operand modifiers.
27903
27904
27905 2016-04-15 Richard Biener <rguenther@suse.de>
27906 Alan Modra <amodra@gmail.com>
27907
27908 PR tree-optimization/70130
27909 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
27910 when alignment stays not the same and no not use the realign
27911 scheme then.
27912
27913 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27914
27915 PR target/70669
27916 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
27917 direct move handlers for KFmode. Change TFmode handlers test from
27918 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
27919
27920 2016-04-14 Jakub Jelinek <jakub@redhat.com>
27921
27922 PR c++/70594
27923 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
27924 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
27925 (inlined_polymorphic_ctor_dtor_block_p): Use it.
27926 * tree-ssa-live.c (remove_unused_scope_block_p): When
27927 in_ctor_dtor_block, avoid discarding not just BLOCKs with
27928 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
27929 block_ultimate_origin is FUNCTION_DECL.
27930 (remove_unused_locals): If current_function_decl is
27931 polymorphic_ctor_dtor_p, pass initial true to
27932 remove_unused_scope_block_p' is_ctor_dtor_block.
27933
27934 2016-04-14 Martin Sebor <msebor@redhat.com>
27935
27936 PR c++/69517
27937 PR c++/70019
27938 PR c++/70588
27939 * doc/extend.texi (Variable Length): Revert.
27940
27941 2016-04-14 Marek Polacek <polacek@redhat.com>
27942 Jan Hubicka <hubicka@ucw.cz>
27943
27944 PR c++/70029
27945 * tree.c (verify_type): Disable the canonical type of main variant
27946 check.
27947
27948 2016-04-14 Jason Merrill <jason@redhat.com>
27949
27950 * cfgexpand.c, expr.c: Revert previous change.
27951
27952 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
27953
27954 PR middle-end/70643
27955 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
27956 when building a mem ref for the incoming reduction variable.
27957
27958 2016-04-14 Richard Biener <rguenther@suse.de>
27959
27960 PR tree-optimization/70614
27961 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
27962 loop if the evolution dropped to chrec_dont_know.
27963 (interpret_condition_phi): Likewise.
27964
27965 2016-04-14 Richard Biener <rguenther@suse.de>
27966
27967 PR tree-optimization/70623
27968 * tree-ssa-pre.c (changed_blocks): Make global ...
27969 (compute_antic): ... local here. Move and fix worklist
27970 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
27971 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
27972 worklist handling, dump when ANTIC_IN changed.
27973 (compute_partial_antic_aux): Remove worklist handling.
27974 (init_pre): Do not compute post dominators. Add a comment about
27975 the CFG order chosen.
27976 (fini_pre): Do not free post dominators.
27977
27978 2016-04-13 Martin Sebor <msebor@redhat.com>
27979
27980 PR c++/69517
27981 PR c++/70019
27982 PR c++/70588
27983 * doc/extend.texi (Variable Length): Document C++ specifics.
27984
27985 2016-04-13 Jakub Jelinek <jakub@redhat.com>
27986
27987 PR c++/70641
27988 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
27989 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
27990 eh edges have been purged.
27991
27992 PR c++/70594
27993 * tree-sra.c (create_access_replacement,
27994 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
27995 gets fancy name.
27996 * tree-pretty-print.c (dump_fancy_name): New function.
27997 (dump_decl_name, dump_generic_node): Use it.
27998
27999 2016-04-13 Jason Merrill <jason@redhat.com>
28000
28001 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
28002 * expr.c (expand_expr_real_1): Likewise.
28003
28004 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
28005
28006 * config/i386/i386.md (kunpckhi): Swap operands.
28007 (kunpcksi): Likewise.
28008 (kunpckdi): Likewise.
28009 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
28010 (vec_pack_trunc_<mode>): Likewise.
28011
28012 2016-04-13 Jakub Jelinek <jakub@redhat.com>
28013
28014 PR debug/70628
28015 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
28016
28017 PR middle-end/70633
28018 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
28019 gimplification turns some element into non-constant.
28020
28021 PR debug/70628
28022 * rtl.h (convert_memory_address_addr_space_1): New prototype.
28023 * explow.c (convert_memory_address_addr_space_1): No longer static,
28024 add NO_EMIT argument and don't call convert_modes if true, pass
28025 it down recursively, remove break after return.
28026 (convert_memory_address_addr_space): Adjust caller.
28027 * simplify-rtx.c (simplify_unary_operation_1): Call
28028 convert_memory_address_addr_space_1 instead of convert_memory_address,
28029 if it returns NULL, don't simplify.
28030
28031 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
28032
28033 PR target/70630
28034 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
28035
28036 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28037
28038 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28039 Bump the upper SIMDLEN limits, so that if the return type or
28040 characteristic type if the return type is void can be passed in
28041 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
28042 allowed.
28043
28044 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
28045
28046 PR target/70640
28047 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
28048 Do not use "=" constraint on an input constraint.
28049 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
28050 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
28051 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
28052 generates (neg (abs ...)) instead of (abs ...).
28053
28054 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28055
28056 PR rtl-optimization/70596
28057 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
28058 just invalidate LRA data and reset them. Adjust dump wording.
28059
28060 2016-04-12 Martin Liska <mliska@suse.cz>
28061
28062 Revert
28063 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28064
28065 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
28066 estimates here.
28067 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
28068 max_loop_iterations_int.
28069 (tree_unswitch_outer_loop): Likewise.
28070 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
28071 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
28072
28073 2016-04-12 Tom de Vries <tom@codesourcery.com>
28074
28075 PR tree-optimization/68756
28076 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
28077 instead of new_name.
28078
28079 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28080
28081 PR tree-optimization/70602
28082 * tree-sra.c (generate_subtree_copies): Don't write anything into
28083 constant pool decls.
28084
28085 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
28086 regardless whether there are depend clauses or not.
28087
28088 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28089
28090 PR target/70381
28091 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
28092 target attribute and pragma from changing the -mfloat128
28093 and -mfloat128-hardware options.
28094
28095 * doc/extend.texi (Additional Floating Types): Document PowerPC
28096 __float128 restrictions.
28097
28098 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28099
28100 PR target/70133
28101 * config/aarch64/driver-aarch64.c
28102 (aarch64_get_extension_string_for_isa_flags): New.
28103 (arch_extension): Rename to...
28104 (aarch64_arch_extension): ...This.
28105 (ext_to_feat_string): Rename to...
28106 (aarch64_extensions): ...This.
28107 (aarch64_core_data): Keep track of architecture extension flags.
28108 (cpu_data): Rename to...
28109 (aarch64_cpu_data): ...This.
28110 (aarch64_arch_driver_info): Keep track of architecture extension
28111 flags.
28112 (get_arch_name_from_id): Rename to...
28113 (get_arch_from_id): ...This, change return type.
28114 (host_detect_local_cpu): Update and reformat for renames, handle
28115 extensions through common infrastructure.
28116
28117 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28118
28119 PR target/70133
28120 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
28121 track of a canonical flag name.
28122 (all_extensions): Likewise.
28123 (arch_to_arch_name): Also track extension flags enabled by the arch.
28124 (all_architectures): Likewise.
28125 (aarch64_parse_extension): Move to here.
28126 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
28127 rework.
28128 (aarch64_rewrite_selected_cpu): Update for above change.
28129 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
28130 are handled, such that the single explicit value enabled by an
28131 extension is kept seperate from the implicit values it also enables.
28132 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
28133 to here.
28134 (aarch64_parse_extension): New.
28135 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
28136 here to config/aarch64/aarch64-protos.h.
28137 (aarch64_parse_extension): Move from here to
28138 common/config/aarch64/aarch64-common.c.
28139 (aarch64_option_print): Update.
28140 (aarch64_declare_function_name): Likewise.
28141 (aarch64_start_file): Likewise.
28142 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
28143 the canonical flag for extensions.
28144 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
28145 flags.
28146
28147 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28148
28149 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
28150 AARCH64_FL_CRC.
28151
28152 2016-04-09 Tom de Vries <tom@codesourcery.com>
28153
28154 PR tree-optimization/68953
28155 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
28156 first to last subscript.
28157
28158 2016-04-09 Jakub Jelinek <jakub@redhat.com>
28159
28160 PR tree-optimization/70586
28161 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
28162 for any calls.
28163
28164 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
28165
28166 PR lto/70289
28167 PR ipa/70348
28168 PR tree-optimization/70373
28169 PR middle-end/70533
28170 PR middle-end/70534
28171 PR middle-end/70535
28172 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
28173 clauses for acc parallel reductions as necessary. Error on those
28174 that are private.
28175 * omp-low.c (scan_sharing_clauses): Don't install variables which
28176 are used in acc parallel reductions.
28177 (lower_rec_input_clauses): Remove dead code.
28178 (lower_oacc_reductions): Add support for reference reductions.
28179 (lower_reduction_clauses): Remove dead code.
28180 (lower_omp_target): Don't remap variables appearing in acc parallel
28181 reductions.
28182 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
28183
28184 2016-04-08 Jakub Jelinek <jakub@redhat.com>
28185
28186 PR middle-end/70593
28187 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
28188 with multiple SSA_NAME defs, force the outputs other than first
28189 to be live before calling live_track_process_def on each output.
28190
28191 PR rtl-optimization/70574
28192 * fwprop.c (forward_propagate_and_simplify): Don't add
28193 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
28194 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
28195 paradoxical subregs within *loc.
28196
28197 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
28198
28199 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
28200 -ftree-parallelize-loops={0,1}.
28201 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
28202 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
28203 * config/ia64/hpux.h (LIB_SPEC): Likewise.
28204 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28205 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
28206
28207 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
28208
28209 PR sanitizer/70541
28210 * asan.c (instrument_derefs): If we get unknown location, extract it
28211 with EXPR_LOCATION.
28212 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
28213
28214 2016-04-08 Tom de Vries <tom@codesourcery.com>
28215
28216 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
28217 implicit firstprivate clause.
28218
28219 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28220
28221 PR target/70566
28222 * config/arm/thumb2.md (tst + branch-> lsls + branch
28223 peephole below *orsi_not_shiftsi_si): Require that condition
28224 register is dead after the peephole.
28225 (second peephole after the above): Likewise.
28226
28227 2016-04-08 Alan Modra <amodra@gmail.com>
28228
28229 PR target/70117
28230 * builtins.c (fold_builtin_classify): For IBM extended precision,
28231 look at just the high-order double to test for NaN.
28232 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
28233 test just the high double for Inf but both doubles for subnormal
28234 limit.
28235
28236 2016-04-07 Jakub Jelinek <jakub@redhat.com>
28237
28238 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
28239 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
28240 node->simdclone->mask_mode != VOIDmode masks.
28241 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
28242 earlier, use it instead of node->simdclone.
28243 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28244 Set clonei->mask_mode.
28245
28246 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
28247
28248 PR c/70436
28249 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
28250 Pass it through to cp_parser_already_scoped_statement.
28251 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
28252 it through to cp_parser_statement.
28253 (cp_parser_statement): Pass IF_P through to
28254 cp_parser_iteration_statement.
28255 (cp_parser_pragma): Adjust call to
28256 cp_parser_iteration_statement.
28257
28258 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
28259
28260 PR c/70436
28261 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
28262 resolve a future -Wparentheses warning.
28263 * omp-low.c (scan_sharing_clauses): Likewise.
28264 * tree-parloops.c (eliminate_local_variables): Likewise.
28265
28266 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
28267
28268 PR rtl-optimization/70398
28269 * lra-constraints.c (process_address_1): Check zero scale and code
28270 for reloading with zero scale.
28271
28272 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
28273
28274 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
28275 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
28276
28277 2016-04-06 Jakub Jelinek <jakub@redhat.com>
28278
28279 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28280 Add support for AVX512F clones, include them by default for
28281 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
28282 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
28283 up to 128.
28284
28285 PR middle-end/70550
28286 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
28287 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
28288 firstprivate clauses.
28289 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
28290 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
28291 (lower_omp_target): Set TREE_NO_WARNING for
28292 non-addressable possibly uninitialized vars which are copied into
28293 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
28294
28295 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
28296
28297 * config/pa/predicates.md (integer_store_memory_operand): Accept
28298 REG+D operands with a large offset when reload_in_progress is true.
28299 (floating_point_store_memory_operand): Likewise.
28300
28301 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28302
28303 PR c++/70336
28304 * match.pd (nested int casts): Limit to GIMPLE.
28305
28306 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
28307
28308 PR ipa/66223
28309 * ipa-devirt.c (maybe_record_node): Fix comment; use
28310 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
28311
28312 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28313
28314 PR rtl-optimization/70542
28315 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
28316 if there are any uses other than insn or debug insns.
28317
28318 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
28319 Jakub Jelinek <jakub@redhat.com>
28320
28321 PR tree-optimization/70509
28322 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
28323 Shift HOST_WIDE_INT_1U instead of 1.
28324
28325 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
28326
28327 PR tree-optimization/70509
28328 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
28329 of the vector base type for index.
28330
28331 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
28332
28333 PR target/70510
28334 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
28335
28336 2016-04-05 Richard Biener <rguenther@suse.de>
28337
28338 PR tree-optimization/70526
28339 * tree-sra.c (build_ref_for_offset): Use prev_base to
28340 extract the alias pointer type.
28341
28342 2016-04-05 Richard Biener <rguenther@suse.de>
28343
28344 * dse.c (struct store_info): Remove alias_set member.
28345 (struct read_info_type): Likewise.
28346 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
28347 spill_deleted, clear_alias_set_lookup): Remove.
28348 (get_group_info): Remove dead base == NULL_RTX case.
28349 (dse_step0): Remove initialization of removed variables.
28350 (delete_dead_store_insn): Reomve alias set dumping.
28351 (free_read_records): Remove alias_set handling.
28352 (canon_address): Remove alias_set_out parameter.
28353 (record_store): Remove spill_alias_set, it's always zero.
28354 (check_mem_read_rtx): Likewise.
28355 (dse_step2): Rename from ...
28356 (dse_step2_nospill): ... this. Adjust.
28357 (scan_stores): Rename from ...
28358 (scan_stores_nospill): ... this.
28359 (scan_reads): Rename from ...
28360 (scan_reads_nospill): ... this.
28361 (scan_stores_spill, scan_reads_spill): Remove.
28362 (dse_step3_scan): Remove for_spills argument which is always false.
28363 (dse_step3): Likewise.
28364 (dse_step5): Rename from ...
28365 (dse_step5_nospill): ... this. Remove alias_set handling.
28366 (rest_of_handle_dse): Adjust.
28367
28368 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28369
28370 PR target/70525
28371 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
28372 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
28373 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
28374 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
28375
28376 2016-04-05 Richard Biener <rguenther@suse.de>
28377
28378 PR middle-end/70499
28379 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
28380 non-register type temporaries into SSA.
28381
28382 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
28383
28384 PR ipa/66223
28385 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
28386 calls when sanitizing.
28387 (possible_polymorphic_call_target_p): Fix formatting.
28388
28389 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28390 Jakub Jelinek <jakub@redhat.com>
28391
28392 PR middle-end/70457
28393 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
28394 to ensure a call statement is compatible with a built-in's
28395 prototype.
28396 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
28397 Likewise.
28398
28399 2016-04-04 Richard Biener <rguenther@suse.de>
28400
28401 PR rtl-optimization/70484
28402 * rtl.h (canon_output_dependence): Declare.
28403 * alias.c (canon_output_dependence): New function.
28404 * dse.c (record_store): Use canon_output_dependence rather
28405 than canon_true_dependence.
28406
28407 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28408
28409 PR ipa/68881
28410 * cgraph.h (symtab_node::copy_visibility_from): New function.
28411 * symtab.c (symtab_node::copy_visibility_from): New function.
28412 * ipa-visibility.c (optimize_weakref): New function.
28413 (function_and_variable_visibility): Use it.
28414
28415 2016-04-04 Martin Liska <mliska@suse.cz>
28416
28417 PR hsa/70402
28418 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
28419 value that is really in range handled by SBR instruction.
28420 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
28421 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
28422 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
28423
28424 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
28425
28426 PR target/70416
28427 PR target/67391
28428 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
28429 set, but not for SP_REG operands.
28430
28431 2016-04-02 Martin Sebor <msebor@redhat.com>
28432
28433 PR c++/67376
28434 * fold-const.c (maybe_nonzero_address): New function.
28435 (fold_comparison): Call it. Fold equality and relational
28436 expressions involving null pointers.
28437 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
28438
28439 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
28440
28441 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
28442 the "Y" constraint (scalar FP 0.0 immediate).
28443
28444 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
28445 Add the "const_double" to the list of operand constraints.
28446
28447 2016-04-01 Jakub Jelinek <jakub@redhat.com>
28448
28449 PR rtl-optimization/70467
28450 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
28451 If low word of the last operand is 0, just emit addition/subtraction
28452 for the high word.
28453
28454 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28455
28456 PR target/70404
28457 * config/s390/s390.c (s390_expand_insv): Check for everything
28458 constant instead of just VOIDmode stuff.
28459
28460 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28461
28462 PR target/70496
28463 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
28464
28465 2016-04-01 Nathan Sidwell <nathan@acm.org>
28466
28467 * tree.def (TRY_CATCH_EXPR): Correct documentation.
28468
28469 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
28470
28471 PR rtl-optimization/70461
28472 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
28473 is necessary.
28474
28475 2016-03-31 Martin Liska <mliska@suse.cz>
28476
28477 PR hsa/70399
28478 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
28479 a tree value or an immediate integer value to a buffer
28480 that is eventually copied to a BRIG section.
28481 (emit_immediate_operand): Call the function here.
28482 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
28483 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
28484 of class' fields that are removed.
28485 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
28486 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
28487 m_brig_repr_size fields.
28488
28489 2016-03-31 Martin Liska <mliska@suse.cz>
28490
28491 PR hsa/70391
28492 * hsa-gen.c (hsa_function_representation::update_dominance): New
28493 function.
28494 (convert_addr_to_flat_segment): Likewise.
28495 (gen_hsa_memory_set): New alignment argument.
28496 (gen_hsa_ctor_assignment): Likewise.
28497 (gen_hsa_insns_for_single_assignment): Provide alignment
28498 to gen_hsa_ctor_assignment.
28499 (gen_hsa_insns_for_direct_call): Add new argument.
28500 (expand_lhs_of_string_op): New function.
28501 (expand_string_operation_builtin): Likewise.
28502 (expand_memory_copy): New function.
28503 (expand_memory_set): New function.
28504 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
28505 (convert_switch_statements): Change signature.
28506 (generate_hsa): Use a return value of the function.
28507 (pass_gen_hsail::execute): Do not call
28508 convert_switch_statements here.
28509 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
28510 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
28511 (hsa_function_representation::update_dominance): New function.
28512
28513 2016-03-31 Martin Liska <mliska@suse.cz>
28514
28515 PR hsa/70391
28516 * hsa-brig.c (emit_directive_variable): Emit alignment
28517 according to hsa_symbol::m_align.
28518 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
28519 (dump_hsa_symbol): Dump alignment of HSA symbols.
28520 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
28521 (gen_hsa_addr_with_align): New function.
28522 (hsa_bitmemref_alignment): Use newly added function.
28523 (gen_hsa_insns_for_load): Likewise.
28524 (gen_hsa_insns_for_store): Likewise.
28525 (gen_hsa_memory_copy): New argument added.
28526 (gen_hsa_insns_for_single_assignment): Respect
28527 alignment for assignments processed via gen_hsa_memory_copy.
28528 (gen_hsa_insns_for_direct_call): Likewise.
28529 (gen_hsa_insns_for_return): Likewise.
28530 (gen_function_def_parameters): Set default alignment.
28531 * hsa.c (hsa_object_alignment): New function.
28532 (hsa_byte_alignment): Pasted function.
28533 * hsa.h (hsa_symbol::m_align): New field.
28534
28535 2016-03-31 Bin Cheng <bin.cheng@arm.com>
28536
28537 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
28538 scratch field for goto case.
28539
28540 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
28541
28542 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
28543
28544 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
28545
28546 PR target/70442
28547 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
28548 (scalar_chain::convert_insn): Call convert_op for reg
28549 moves to handle undefined registers.
28550
28551 2016-03-31 Nathan Sidwell <nathan@acm.org>
28552
28553 PR c++/70393
28554 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
28555 Assert we don't want to move backwards.
28556
28557 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
28558
28559 PR target/70453
28560 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
28561
28562 2016-03-31 Jakub Jelinek <jakub@redhat.com>
28563
28564 PR rtl-optimization/70460
28565 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
28566 with operand from REG_LABEL_OPERAND, instead substitute
28567 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
28568 Don't do anything for REG_NON_LOCAL_GOTO jumps.
28569
28570 2016-03-31 Martin Liska <mliska@suse.cz>
28571
28572 * passes.c (execute_one_pass): Do not call
28573 todo_after for a discarded function.
28574
28575 2016-03-31 Bin Cheng <bin.cheng@arm.com>
28576
28577 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
28578 (no_cost, infinite_cost): Initialize the new field.
28579 (get_computation_cost_at): Record setup cost.
28580 (determine_use_iv_cost_address): Skip cost computation for sub
28581 uses if we can estimate it without losing accuracy.
28582
28583 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28584
28585 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
28586 estimates here.
28587 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
28588 max_loop_iterations_int.
28589 (tree_unswitch_outer_loop): Likewise.
28590 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
28591 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
28592
28593 2016-03-30 Richard Biener <rguenther@suse.de>
28594
28595 PR middle-end/70450
28596 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
28597
28598 2016-03-30 Jakub Jelinek <jakub@redhat.com>
28599
28600 PR target/70421
28601 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
28602 in gen_blendm expander.
28603
28604 2016-03-30 Nick Clifton <nickc@redhat.com>
28605
28606 PR target/62254
28607 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
28608 case where we are already provided with an SImode SUBREG.
28609
28610 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
28611
28612 PR target/70439
28613 * config/i386/i386.c (ix86_expand_epilogue): Properly check
28614 conflict between DRAP register and __builtin_eh_return.
28615
28616 2016-03-30 Michael Matz <matz@suse.de>
28617 Richard Biener <rguenther@suse.de>
28618
28619 PR ipa/12392
28620 * ipa-polymorphic-call.c (struct type_change_info): Change
28621 speculative to an unsigned allowing to limit the work we do.
28622 (csftc_abort_walking_p): New inline function..
28623 (check_stmt_for_type_change): Limit the number of may-defs
28624 skipped for speculative devirtualization to
28625 max-speculative-devirt-maydefs.
28626 * params.def (max-speculative-devirt-maydefs): New param.
28627 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
28628
28629 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
28630
28631 PR target/63890
28632 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
28633 and TARGET_MACHO.
28634
28635 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
28636
28637 PR tree-optimization/59124
28638 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
28639 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
28640
28641 2016-03-29 Jeff Law <law@redhat.com>
28642
28643 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
28644
28645 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28646
28647 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
28648 to HOST_WIDE_INT.
28649
28650 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
28651
28652 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
28653 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
28654 gcrt0.o if linking dynamically.
28655
28656 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28657
28658 PR ipa/70283
28659 * ipa-devirt.c (methods_equal_p): New function.
28660 (compare_virtual_tables): Use it.
28661 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
28662 * cgraphclones.c (clone_function_name_1): Use
28663 symbol_table::symbol_suffix_separator.
28664 * coverage.c (build_var): Likewise.
28665 * symtab.c (symbol_table::symbol_suffix_separator): New.
28666
28667 2016-03-29 Jakub Jelinek <jakub@redhat.com>
28668
28669 PR rtl-optimization/70429
28670 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
28671 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
28672 mode != result_mode.
28673
28674 PR c++/70353
28675 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
28676
28677 PR tree-optimization/70405
28678 * ssa-iterators.h (num_imm_uses): Add missing braces.
28679
28680 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
28681
28682 PR rtl-optimization/68695
28683 * ira-color.c (allocno_copy_cost_saving): New.
28684 (improve_allocation): Use it.
28685
28686 2016-03-29 Richard Henderson <rth@redhat.com>
28687
28688 PR middle-end/70355
28689 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
28690
28691 2016-03-29 Richard Biener <rguenther@suse.de>
28692
28693 PR middle-end/70424
28694 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
28695 use alignment returned by get_pointer_alignment_1 if it is
28696 bigger than BITS_PER_UNIT.
28697 * builtins.c (get_pointer_alignment_1): Do not return true
28698 for alignment extracted from SSA info.
28699
28700 2016-03-28 James Bowman <james.bowman@ftdichip.com>
28701
28702 * config/ft32/ft32.opt (mnodiv): New.
28703 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
28704 * doc/invoke.texi (FT32 Options -mnodiv): New.
28705
28706 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
28707
28708 PR target/70406
28709 * config/i386/i386.md (define_split, andn): Fix modes.
28710
28711 2016-03-26 Richard Biener <rguenther@suse.de>
28712 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28713
28714 PR ipa/70366
28715 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
28716 instead of
28717 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
28718 as 2nd argument to cl_optimization_restore().
28719
28720 2016-03-25 Richard Henderson <rth@redhat.com>
28721
28722 PR target/70120
28723 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
28724 * config/aarch64/aarch64-protos.h: Declare it.
28725 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
28726
28727 2016-03-25 Alan Modra <amodra@gmail.com>
28728
28729 PR target/70052
28730 * config/rs6000/constraints.md (j): Simplify.
28731 * config/rs6000/predicates.md (easy_fp_constant): Exclude
28732 decimal float 0.D.
28733 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
28734 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
28735 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
28736 in all constraint alternatives.
28737 (movtd_64bit_nodm): Delete "j" constraint alternative.
28738
28739 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
28740
28741 * tree-ssa-propagate.c: Enhance docs for
28742 SSA_PROP_NOT_INTERESTING.
28743
28744 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
28745
28746 * doc/extend.texi: Fix typo in documentation to pure attribute.
28747
28748 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
28749
28750 PR target/70319
28751 * config/pa/pa.md (bswapdi2): Use a scratch register.
28752
28753 2016-03-24 Richard Henderson <rth@redhat.com>
28754
28755 PR middle-end/69845
28756 * fold-const.c (extract_muldiv_1): Correct test for multiplication
28757 overflow.
28758
28759 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
28760
28761 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
28762 using ix86_expand_binary_operator instead of gen_andsi3.
28763
28764 2016-03-24 Richard Biener <rguenther@suse.de>
28765
28766 PR tree-optimization/70396
28767 * tree-vect-stmts.c (vectorizable_comparison): Use
28768 get_vectype_for_scalar_type.
28769
28770 2016-03-24 Richard Biener <rguenther@suse.de>
28771
28772 PR middle-end/70370
28773 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
28774 with register bases.
28775
28776 2016-03-24 Richard Biener <rguenther@suse.de>
28777
28778 PR tree-optimization/70372
28779 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
28780 build_all_ones_cst to also handle vector types correctly.
28781
28782 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
28783
28784 PR target/70381
28785 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
28786 -mfloat128 here.
28787
28788 2016-03-23 Marek Polacek <polacek@redhat.com>
28789
28790 PR c++/69884
28791 * doc/invoke.texi: Document -Wignored-attributes.
28792
28793 2016-03-23 Bin Cheng <bin.cheng@arm.com>
28794
28795 PR tree-optimization/69042
28796 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
28797 parameter from 30 to 40.
28798
28799 2016-03-23 Bin Cheng <bin.cheng@arm.com>
28800
28801 PR tree-optimization/69042
28802 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
28803 for use with constant offset stripped in base.
28804
28805 2016-03-23 Richard Biener <rguenther@suse.de>
28806
28807 PR middle-end/70251
28808 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
28809 mode compatibility check.
28810 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
28811
28812 2016-03-23 Jeff Law <law@redhat.com>
28813
28814 PR tree-optimization/64058
28815 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
28816 CONFLICT_COUNT.
28817 (struct ssa_conflicts): Move up earlier in the file.
28818 (conflicts_, var_map_): New static variables.
28819 (initialize_conflict_count): New function to initialize the
28820 CONFLICT_COUNT field for each conflict pair.
28821 (compare_pairs): Lazily initialize the conflict count and use it
28822 as the first tie-breaker.
28823 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
28824 and wipe conflicts_ and map_ around the call to qsort. Remove
28825 special case for 2 coalesce pairs.
28826 * bitmap.c (bitmap_count_unique_bits): New function.
28827 (bitmap_count_bits_in_word): New function, extracted from
28828 bitmap_count_bits.
28829 (bitmap_count_bits): Use bitmap_count_bits_in_word.
28830 * bitmap.h (bitmap_count_unique_bits): Declare it.
28831
28832 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
28833
28834 PR target/69917
28835 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
28836 transparent alias chain for decl assembler name.
28837 * config/sol2.c (solaris_assemble_visibility): Likewise.
28838
28839 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28840
28841 * config/arm/arm1020e.md (1020call_op): Reduce reservation
28842 duration.
28843 (v10_fdivs): Likewise.
28844 (v10_fdivd): Likewise.
28845
28846 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28847
28848 PR driver/70132
28849 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
28850 to not call fclose twice on file.
28851
28852 2016-03-23 Jakub Jelinek <jakub@redhat.com>
28853
28854 PR tree-optimization/70354
28855 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
28856 oprnd0 is wider than oprnd1 and there is a cast from the wider
28857 type to oprnd1, mask it with the mask of the narrower type.
28858
28859 PR target/70321
28860 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
28861 Optimize TARGET_STV splitters, if high or low word of last argument
28862 is 0 or -1.
28863
28864 2016-03-22 Jeff Law <law@redhat.com>
28865
28866 PR target/70232
28867 tree-ssa-threadbackward.c
28868 (fsm_find_control_statement_thread_paths): Correctly distinguish
28869 between old style jump threads vs FSM jump threads.
28870
28871 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
28872
28873 PR target/70302
28874 * config/i386/i386.c (scalar_chain::convert_op): Support
28875 uninitialized register usage case.
28876
28877 2016-03-22 Richard Biener <rguenther@suse.de>
28878
28879 PR middle-end/70251
28880 * genmatch.c (gen_transform): Adjust last parameter to a three-state
28881 int...
28882 (capture::gen_transform): ... to change behavior when substituting
28883 a condition into cond or not-cond expr context.
28884 (dt_simplify::gen_1): Adjust.
28885 * gimple-match-head.c: Include gimplify.h for unshare_expr.
28886 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
28887 last change and instead change to
28888 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
28889 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
28890
28891 2016-03-22 Anthony Green <green@moxielogic.com>
28892
28893 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
28894 issue for moxiebox targets.
28895 (CC1PLUS_SPEC): Ditto.
28896
28897 2016-03-22 Richard Biener <rguenther@suse.de>
28898
28899 PR middle-end/70333
28900 * fold-const.c (extract_muldiv_1): Properly perform multiplication
28901 in the wide type.
28902
28903 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
28904
28905 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
28906
28907 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
28908
28909 PR target/70325
28910 * config/i386/i386.c (def_builtin): Handle
28911 OPTION_MASK_ISA_AVX512VL to be and-ed with other
28912 bits.
28913 (const struct builtin_description bdesc_special_args[]):
28914 Remove duplicate ISA bits.
28915
28916 2016-03-22 Jakub Jelinek <jakub@redhat.com>
28917
28918 PR target/70329
28919 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
28920 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
28921 in a way that works also for AVX512BW.
28922
28923 PR target/70300
28924 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
28925 instead of source if operands[1] is xmm16 and above and
28926 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
28927 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
28928
28929 PR c++/70295
28930 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
28931 on assign if (*from_p) is a comparison, set it to
28932 TREE_NO_WARNING (*from_p).
28933
28934 2016-03-21 Jakub Jelinek <jakub@redhat.com>
28935
28936 PR middle-end/70326
28937 * lra.c (restore_scratches): Ignore deleted insns.
28938
28939 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
28940 Jakub Jelinek <jakub@redhat.com>
28941
28942 PR tree-optimization/70317
28943 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
28944 to HONOR_NANS.
28945
28946 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
28947
28948 PR target/70327
28949 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
28950 of ix86_expand_move.
28951 (movoi): Ditto.
28952 (movti): Use general_operand for operand 1 predicate.
28953
28954 2016-03-21 Martin Liska <mliska@suse.cz>
28955
28956 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
28957 insns.
28958 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
28959
28960 2016-03-21 Martin Liska <mliska@suse.cz>
28961
28962 PR ipa/70306
28963 * ipa-icf.c (sem_function::parse): Skip static
28964 constructors and destructors.
28965
28966 2016-03-21 Jakub Jelinek <jakub@redhat.com>
28967
28968 PR target/70296
28969 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
28970 function-like macro, peek following token(s) if it is followed
28971 by CPP_OPEN_PAREN token with optional padding in between, and
28972 if not, don't treat it like a macro.
28973
28974 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
28975 Alexander Monakov <amonakov@ispras.ru>
28976
28977 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
28978 for the stabs debug format.
28979
28980 2016-03-21 Richard Biener <rguenther@suse.de>
28981
28982 PR tree-optimization/70310
28983 * tree-vect-generic.c (expand_vector_condition): Fold the built
28984 condition.
28985
28986 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
28987
28988 PR target/70293
28989 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
28990 Block third alternative for AVX-512VL target,
28991
28992 2016-03-21 Martin Liska <mliska@suse.cz>
28993
28994 PR hsa/70234
28995 * hsa-brig.c (emit_function_directives): Mark unemitted
28996 global variables for emission.
28997 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
28998 (get_symbol_for_decl): Likewise.
28999 * hsa.h (struct hsa_symbol): New flag.
29000
29001 2016-03-21 Richard Biener <rguenther@suse.de>
29002
29003 PR tree-optimization/70288
29004 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
29005 we do not estimate unsimplified all-constant conditionals or
29006 switches as optimized away.
29007
29008 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
29009
29010 PR rtl-optimization/69102
29011 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
29012 when we have a readonly dependency context.
29013
29014 2016-03-18 Jeff Law <law@redhat.com>
29015
29016 PR rtl-optimization/70263
29017 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
29018 (update_equiv_regs): When trying to move a store to after the insn
29019 that sets the source of the store, make sure the store occurs after
29020 the insn that sets the source of the store. When successful note
29021 the REG_EQUIV note created in the dump file.
29022
29023 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
29024 Bernd Schmidt <bschmidt@redhat.com>
29025
29026 * doc/extend.texi: Document more potential problems with basic asms.
29027
29028 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
29029
29030 PR rtl-optimization/70278
29031 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
29032 VOIDmode.
29033
29034 2016-03-18 Jason Merrill <jason@redhat.com>
29035
29036 * calls.c (load_register_parameters): Fix zero size sibcall logic.
29037
29038 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
29039
29040 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
29041 values to 128b regs.
29042
29043 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
29044
29045 PR tree-optimization/70252
29046 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
29047 boolean vector has a proper number of elements.
29048 (supportable_narrowing_operation): Likewise.
29049
29050 2016-03-18 Tom de Vries <tom@codesourcery.com>
29051
29052 PR ipa/70269
29053 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
29054
29055 2016-03-18 Jakub Jelinek <jakub@redhat.com>
29056
29057 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
29058 instead of replace_rtx for DEBUG_INSNs.
29059
29060 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29061
29062 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
29063 load type reservations.
29064
29065 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
29066
29067 PR target/70188
29068 * config/pa/constraints.md: Revert 2015-02-13 change. Use
29069 define_constraint for "Q" and "T" constraints.
29070
29071 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
29072
29073 Tweak the pipeline model for Exynos M1
29074
29075 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
29076 model.
29077
29078 2016-03-17 David Malcolm <dmalcolm@redhat.com>
29079
29080 PR c/70264
29081 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
29082 where one or both locations aren't within a line_map.
29083
29084 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
29085
29086 PR driver/70192
29087 * opts.c (finish_options): Don't set flag_pie to the default if
29088 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
29089 if it is -1.
29090
29091 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
29092
29093 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
29094 true as ALL_REGS argument to replace_rtx.
29095
29096 2016-03-17 Richard Biener <rguenther@suse.de>
29097
29098 PR debug/70271
29099 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
29100 last.
29101
29102 2016-03-17 Jakub Jelinek <jakub@redhat.com>
29103
29104 PR target/70245
29105 * rtl.h (replace_rtx): Add ALL_REGS argument.
29106 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
29107 equality and assert mode is the same, instead of just rtx pointer
29108 equality.
29109 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
29110 true as ALL_REGS argument to replace_rtx.
29111
29112 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
29113
29114 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
29115 for boolean vector with vector mode only.
29116 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29117
29118 2016-03-17 Nick Clifton <nickc@redhat.com>
29119
29120 PR target/70162
29121 * config/rx/rx.c (rx_print_integer): Print negative constants in
29122 decimal.
29123
29124 2016-03-17 Jakub Jelinek <jakub@redhat.com>
29125
29126 PR target/70261
29127 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
29128
29129 2016-03-16 Richard Henderson <rth@redhat.com>
29130 Richard Biener <rguenth@suse.de>
29131
29132 PR middle-end/70240
29133 PR middle-end/68215
29134 PR tree-opt/68714
29135 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
29136 first operand as is_gimple_condexpr.
29137
29138 PR middle-end/70240
29139 PR middle-end/68215
29140 Revert r231575
29141 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
29142 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
29143 Do not gimplify the result.
29144 (do_unop): Adjust call to tree_vec_extract.
29145 (do_binop): Likewise.
29146 (do_compare): Likewise.
29147 (do_plus_minus): Likewise.
29148 (do_negate): Likewise.
29149 (expand_vector_condition): Likewise.
29150 (do_cond): Likewise.
29151
29152 2016-03-16 Richard Henderson <rth@redhat.com>
29153
29154 PR target/70048
29155 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
29156 (aarch64_classify_address): Use it.
29157 (aarch64_legitimize_address): Force all subexpressions of PLUS
29158 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
29159
29160 2016-03-16 Jakub Jelinek <jakub@redhat.com>
29161 Richard Biener <rguenth@suse.de>
29162
29163 PR target/70245
29164 * rtlanal.c (replace_rtx): For REG, if from is a REG,
29165 return to even if only REGNO is equal, and assert
29166 mode is the same.
29167
29168 2016-03-11 Jeff Law <law@redhat.com>
29169
29170 PR rtl-optimization/70224
29171 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
29172
29173 2016-03-16 Richard Henderson <rth@redhat.com>
29174
29175 PR middle-end/70199
29176 * function.h (struct function): Add has_forced_label_in_static.
29177 * gimplify.c (force_labels_r): Set it.
29178 * lto-streamer-in.c (input_struct_function_base): Read it.
29179 * lto-streamer-out.c (output_struct_function_base): Write it.
29180 * tree-inline.c (has_label_address_in_static_1): Remove.
29181 (copy_forbidden): Remove fndecl parameter; test
29182 has_forced_label_in_static.
29183 (inline_forbidden_p): Update call to copy_forbidden.
29184 (tree_versionable_function_p): Likewise.
29185 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
29186 (chkp_versioning): Likewise.
29187 * tree-inline.h (copy_forbidden): Update decl.
29188
29189 2016-03-16 Marek Polacek <polacek@redhat.com>
29190
29191 PR c/70093
29192 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
29193 function being thunked if the result type doesn't have fixed size.
29194 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
29195 doesn't have fixed size.
29196
29197 2016-03-16 Bin Cheng <bin.cheng@arm.com>
29198
29199 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
29200 reporting malformed loop nest.
29201
29202 2016-03-16 Tom de Vries <tom@codesourcery.com>
29203
29204 PR lto/70187
29205 * ipa-devirt.c (possible_polymorphic_call_targets): Move
29206 nodes.length () == 1 test to before first nodes[0] access.
29207
29208 2016-03-16 Tom de Vries <tom@codesourcery.com>
29209
29210 PR tree-optimization/68715
29211 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
29212 single_pred_p test.
29213
29214 2016-03-16 Tom de Vries <tom@codesourcery.com>
29215
29216 PR tree-optimization/68809
29217 * graphite-scop-detection.c (same_close_phi_node): Test if result types
29218 are the same.
29219
29220 2016-03-16 Carlos O'Donell <carlos@redhat.com>
29221 Sandra Loosemore <sandra@codesourcery.com>
29222
29223 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
29224 on leaf attribute. Mention ELF interposition problems.
29225
29226 2016-03-16 Alan Modra <amodra@gmail.com>
29227
29228 PR rtl-optimization/69195
29229 PR rtl-optimization/47992
29230 * ira.c (indirect_jump_optimize): Ignore artificial defs.
29231 Add comments.
29232
29233 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
29234
29235 PR bootstrap/69513
29236 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
29237
29238 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29239
29240 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
29241
29242 2016-03-15 Jakub Jelinek <jakub@redhat.com>
29243
29244 PR rtl-optimization/70222
29245 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
29246 optimization if mode is different from result_mode, queue up masking
29247 of the result in outer_op. Formatting fix.
29248
29249 PR middle-end/70239
29250 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
29251 of safe_grow.
29252
29253 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29254
29255 PR rtl-optimization/69032
29256 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
29257 looping backwards over basic block insns.
29258
29259 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29260
29261 PR target/66660
29262 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
29263 to non-speculative when propagating trap bits.
29264
29265 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29266
29267 PR rtl-optimization/63384
29268 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
29269 DEBUG_INSN_P insns.
29270
29271 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29272
29273 PR target/64411
29274 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
29275 factored out from ...
29276 (sched_analyze_insn): ... here.
29277 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
29278 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
29279 get_implicit_reg_pending_clobbers in it.
29280 (setup_id_reg_sets): Use setup_id_implicit_regs.
29281 (deps_init_id): Ditto.
29282
29283 2016-03-15 Tom de Vries <tom@codesourcery.com>
29284
29285 PR ipa/70161
29286 * cgraph.c (cgraph_node::get_body): Save, reset and restore
29287 dump_file_name.
29288 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
29289 execute_function_dump.
29290 (execute_one_pass): Don't dump function if it will be dumped after ipa
29291 transform.
29292
29293 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
29294
29295 * genrecog.c (match_pattern_2): If pred is NULL don't call
29296 safe_predicate_mode on it.
29297
29298 2016-03-14 Jakub Jelinek <jakub@redhat.com>
29299
29300 PR middle-end/70219
29301 * lra-constraints.c (delete_move_and_clobber): Change assertion
29302 to also allow dregno == 0.
29303
29304 2016-03-14 Richard Henderson <rth@redhat.com>
29305
29306 PR tree-opt/68714
29307 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
29308 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
29309 (reassociate_bb): Use optimize_vec_cond_expr; avoid
29310 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
29311 on vectors.
29312
29313 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
29314
29315 PR target/70083
29316 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
29317 regs.
29318 (lra_create_live_ranges_1): initialize hard register biggest_mode to
29319 VOIDmode.
29320 * lra-constraints.c (split_reg): For hard regs, try to find the
29321 biggest single-register mode used in the function.
29322
29323 2016-03-14 Richard Biener <rguenther@suse.de>
29324
29325 PR tree-optimization/56365
29326 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
29327 constants to compare against.
29328
29329 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
29330
29331 PR target/70098
29332 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
29333 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
29334 (define_split for the GPR case): Use int_reg_operand instead of
29335 gpc_reg_operand for the output.
29336
29337 2016-03-14 Tom de Vries <tom@codesourcery.com>
29338
29339 PR tree-optimization/70045
29340 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
29341 create_empty_if_region_on_edge argument.
29342
29343 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
29344
29345 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
29346 (STACK_CHECK_PROTECT): Likewise.
29347 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
29348 (STACK_CHECK_PROTECT): Likewise.
29349 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
29350 (STACK_CHECK_PROTECT): Likewise.
29351 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
29352 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
29353 (STACK_CHECK_PROTECT): Likewise.
29354
29355 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
29356
29357 PR rtl-optimization/69307
29358 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
29359 registers in modes that span more than one register.
29360
29361 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
29362
29363 PR target/69614
29364 * lra-constraints.c (delete_move_and_clobber): New.
29365 (remove_inheritance_pseudos): Use it.
29366
29367 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
29368
29369 PR ada/70017
29370 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
29371 the libcall is LCT_THROW.
29372 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
29373 for the checking routine.
29374
29375 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29376
29377 PR target/70131
29378 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
29379 optimization if we have direct move.
29380 (roundu32<mode>2_fprs): Likewise.
29381
29382 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
29383
29384 PR target/70123
29385 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
29386 be rematerialized.
29387 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
29388 Arguments swapped. All callers changed. Take reg_renumber into
29389 account, and Calculate and compare register ranges for hard regs.
29390
29391 2016-03-11 Jeff Law <law@redhat.com>
29392
29393 PR tree-optimization/70190
29394 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29395 Handle cases where we can not extract the taken edge, even though we
29396 found a constant value.
29397
29398 PR tree-optimization/64058
29399 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
29400 (num_coalesce_pairs): Move up earlier in file.
29401 (find_coalesce_pair): Initialize the INDEX field for each pair
29402 discovered.
29403 (compare_pairs): No longer sort on the elements in each pair.
29404 Instead break ties with the index of the coalesce pair.
29405
29406 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29407
29408 PR target/70002
29409 * config/aarch64/aarch64-protos.h
29410 (aarch64_save_restore_target_globals): New prototype.
29411 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
29412 Call the above when popping pragma.
29413 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
29414 New function.
29415 (aarch64_set_current_function): Rewrite using the above.
29416
29417 2016-03-11 Jakub Jelinek <jakub@redhat.com>
29418
29419 PR tree-optimization/70177
29420 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
29421 (extract_ops_from_tree): ... this. In the 2 argument
29422 overload remove _1 suffix.
29423 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
29424 (extract_ops_from_tree): ... this.
29425 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
29426 Adjust callers.
29427 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
29428 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
29429 extract_ops_from_tree instead of 2 operand one.
29430
29431 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
29432
29433 PR tree-optimization/70013
29434 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
29435 for constant-pool entries.
29436
29437 2016-03-11 Jakub Jelinek <jakub@redhat.com>
29438
29439 PR rtl-optimization/70174
29440 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
29441 followed by gen_lowpart on force_reg instead of just gen_lowpart.
29442
29443 PR tree-optimization/70169
29444 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
29445 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
29446 for unknown codes.
29447
29448 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
29449 Jakub Jelinek <jakub@redhat.com>
29450
29451 PR target/70160
29452 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
29453 of uninitialized values.
29454
29455 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29456
29457 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
29458 define_expand.
29459 ("*trunctddd2"): New pattern definition.
29460 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
29461 TD->DD truncation.
29462
29463 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29464
29465 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
29466 definitions for BFP and DFP rounding modes.
29467 ("fixuns_truncdddi2", "fixuns_trunctddi2")
29468 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
29469 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
29470 ("fix_trunctf<mode>2"): Use the new constants instead of magic
29471 numbers.
29472
29473 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29474
29475 * config/s390/constraints.md: Adjust comment.
29476 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
29477 s390_decompose_addrstyle_without_index.
29478 * config/s390/predicates.md (shift_count_or_setmem_operand):
29479 Rename to setmem_operand.
29480 * config/s390/s390-protos.h
29481 (s390_decompose_shift_count): Rename to
29482 s390_decompose_addrstyle_without_index.
29483 * config/s390/s390.c (s390_decompose_shift_count)
29484 (s390_mem_constraint, print_shift_count_operand)
29485 (print_operand_address, print_operand): Rename
29486 s390_decompose_shift_count to
29487 s390_decompose_addrstyle_without_index and rename
29488 print_shift_count_operand to print_addrstyle_operand troughout the
29489 file.
29490 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
29491 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
29492 Rename shift_count_or_setmem_operand to setmem_operand.
29493 * config/s390/vx-builtins.md ("vec_insert<mode>")
29494 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
29495 nonmemory_operand.
29496
29497 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29498
29499 PR target/70168
29500 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
29501 Handle overlapping retval and newval.
29502
29503 2016-03-10 Nick Clifton <nickc@redhat.com>
29504
29505 PR target/7044
29506 * config/aarch64/aarch64.c
29507 (aarch64_override_options_after_change_1): When forcing
29508 flag_omit_frame_pointer to be true, use a special value that can
29509 be detected if this function is called again, thus preventing
29510 flag_omit_leaf_frame_pointer from being forced to be false.
29511
29512 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29513
29514 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
29515 Set x_flag_omit_leaf_frame_pointer when handling
29516 -momit-leaf-frame-pointer.
29517
29518 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29519
29520 PR lto/69589
29521 * cgraph.c (cgraph_node::dump): Dump split_part and
29522 indirect_call_target.
29523 * cgraph.h (cgraph_node): Add indirect_call_target flag.
29524 * ipa.c (has_addr_references_p): Cleanup.
29525 (is_indirect_call_target_p): New.
29526 (walk_polymorphic_call_targets): Do not mark virtuals that may be
29527 called indirectly as local.
29528 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
29529
29530 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29531
29532 PR ipa/69630
29533 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
29534 on cxa_pure_virtual.
29535
29536 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29537
29538 PR lto/69589
29539 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
29540
29541 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29542
29543 PR lto/69589
29544 * tree.c (need_assembler_name_p): Only record main variant type names.
29545
29546 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
29547
29548 PR target/70113.
29549 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
29550 Always define to 0 or 1.
29551 (TARGET_FIX_ERR_A53_843419): New macro.
29552 * config/aarch64/aarch64-elf-raw.h
29553 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
29554 * config/aarch64/aarch64-linux.h: Likewise.
29555 * config/aarch64/aarch64.c
29556 (aarch64_override_options_after_change_1): Do not default
29557 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
29558 843419 is on.
29559 (aarch64_attributes): Handle fix-cortex-a53-843419.
29560 (aarch64_can_inline_p): Likewise.
29561 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
29562
29563 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
29564 Jakub Jelinek <jakub@redhat.com>
29565
29566 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
29567 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
29568 DECL_COMMONS if flag_unconstrained_commons is set.
29569 * tree-dfa.c (get_ref_base_and_extent): Likewise.
29570 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
29571 (funconstrained-commons): Document.
29572
29573 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
29574
29575 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
29576 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
29577
29578 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
29579
29580 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
29581 has a proper number of elements.
29582
29583 2016-03-10 Alan Modra <amodra@gmail.com>
29584
29585 PR rtl-optimization/69195
29586 PR rtl-optimization/47992
29587 * ira.c (recorded_label_ref): Delete.
29588 (update_equiv_regs): Return void.
29589 (indirect_jump_optimize): New function.
29590 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
29591 before regstat_compute_ri. Don't rebuild_jump_labels here.
29592 Delete update_regstat.
29593
29594 2016-03-10 Richard Biener <rguenther@suse.de>
29595
29596 PR tree-optimization/70128
29597 * tree-ssa-structalias.c (set_uids_in_ptset): Set
29598 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
29599
29600 2016-03-09 Jakub Jelinek <jakub@redhat.com>
29601
29602 PR tree-optimization/70152
29603 * tree-sra.c (replace_removed_params_ssa_names): Copy over
29604 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
29605
29606 PR target/70086
29607 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
29608 instead of gen_sse2_loadlpd.
29609 * config/i386/sse.md (*vec_concatv2df): Rename to...
29610 (vec_concatv2df): ... this.
29611
29612 PR tree-optimization/70127
29613 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
29614
29615 2016-03-09 David Malcolm <dmalcolm@redhat.com>
29616
29617 PR c/68473
29618 PR c++/70105
29619 * diagnostic-show-locus.c (compatible_locations_p): New function.
29620 (layout::layout): Sanitize ranges using compatible_locations_p.
29621
29622 2016-03-09 David Malcolm <dmalcolm@redhat.com>
29623
29624 PR c/68473
29625 PR c++/70105
29626 * diagnostic-show-locus.c (layout_range::layout_range): Replace
29627 location_range param with three const expanded_locations * and a
29628 bool.
29629 (layout::layout): Replace call to
29630 rich_location::lazily_expand_location with get_expanded_location.
29631 Extract the range and perform location expansion here, passing
29632 the results to the layout_range ctor.
29633 * diagnostic.c (source_range::debug): Delete.
29634 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
29635 of rich_location::get_expanded_location.
29636 * gcc-rich-location.c (get_range_for_expr): Delete.
29637 (gcc_rich_location::add_expr): Reimplement to avoid the
29638 rich_location::add_range overload that took a location_range,
29639 passing a location_t instead.
29640
29641 2016-03-09 Richard Biener <rguenther@suse.de>
29642 Jakub Jelinek <jakub@redhat.com>
29643
29644 PR tree-optimization/70138
29645 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
29646 Also skip vect_double_reduction_def.
29647
29648 2016-03-09 Jakub Jelinek <jakub@redhat.com>
29649
29650 PR target/70049
29651 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
29652 if the operand is "m".
29653
29654 2016-03-09 Nathan Sidwell <nathan@acm.org>
29655
29656 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
29657
29658 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29659
29660 * config/i386/i386.c (processor_target_table): Fix cost table
29661 intialization order for znver1.
29662
29663 2016-03-08 Jakub Jelinek <jakub@redhat.com>
29664
29665 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
29666 - becuase -> because.
29667 * ipa-reference.c (ignore_module_statics): Likewise.
29668 * cgraph.c (cgraph_node::get_body): Likewise.
29669 * ipa-inline.c (early_inliner): Likewise.
29670 * ipa-devirt.c (types_same_for_odr): Likewise.
29671 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
29672 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
29673
29674 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29675
29676 * tree-ssa-math-opts.c: Fix typo in comment.
29677
29678 2016-03-08 Jakub Jelinek <jakub@redhat.com>
29679
29680 PR target/70110
29681 * config/i386/i386.c (scalar_chain::make_vector_copies,
29682 scalar_chain::convert_reg): Call end_sequence in between
29683 get_insns and emit_conversion_insns rather than after both
29684 calls.
29685
29686 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
29687
29688 PR target/70064
29689 * config/i386/i386.h (machine_function): Add
29690 pc_thunk_call_expanded flag.
29691 (ix86_pc_thunk_call_expanded): New define.
29692 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
29693 (*set_got): Rename insn pattern from set_got.
29694 (*set_got_labelled): Rename inst pattern from set_got_labelled.
29695 * config/i386/i386.c (ix86_compute_frame_layout): Use
29696 ix86_pc_thunk_call_expanded to prevent red-zone.
29697
29698 2016-03-07 Martin Jambor <mjambor@suse.cz>
29699
29700 * hsa.h (hsa_get_ctor_statements): Declare.
29701 (hsa_get_dtor_statements): Likewise.
29702 (hsa_get_kernel_dispatch_type): Likewise.
29703 * hsa.c (hsa_get_ctor_statements): New function.
29704 (hsa_get_dtor_statements): Likewise.
29705 (hsa_get_kernel_dispatch_type): Likewise.
29706 * hsa-brig.c (hsa_cdtor_statements): Removed.
29707 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
29708 hsa_get_dtor_statements.
29709 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
29710 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
29711
29712 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
29713
29714 * config/arm/arm-cores.def (cortex-r8): New.
29715 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
29716 * config/arm/arm-tune.md: Likewise.
29717 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
29718
29719 2016-03-07 Martin Sebor <msebor@redhat.com>
29720
29721 PR rtl-optimization/19705
29722 * doc/invoke.texi (Options That Control Optimization): Clarify
29723 -fno-branch-count-reg.
29724
29725 2016-02-26 Richard Biener <rguenther@suse.de>
29726 Jeff Law <law@redhat.com>
29727
29728 PR tree-optimization/69740
29729 * cfghooks.c (remove_edge): Request loop fixups if we delete
29730 an edge that might turn an irreducible loop into a natural
29731 loop.
29732 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
29733 Move after definition of loops_state_clear.
29734
29735 2016-03-07 Bin Cheng <bin.cheng@arm.com>
29736
29737 PR rtl-optimization/69052
29738 * rtlanal.c (commutative_operand_precedence): Set higher precedence
29739 to CONST_WIDE_INT.
29740
29741 2016-03-07 Tom de Vries <tom@codesourcery.com>
29742
29743 PR tree-optimization/70116
29744 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
29745 is_tm_ending stmts and ubsan/asan internal functions.
29746 (find_duplicate): Use it. Don't test is_tm_ending here.
29747
29748 2016-03-07 Richard Biener <rguenther@suse.de>
29749
29750 PR tree-optimization/70115
29751 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
29752 (propagate_constants_for_unrolling): Use replace_uses_by.
29753
29754 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
29755
29756 PR middle-end/69916
29757 * omp-low.c (struct oacc_loop): Add ifns.
29758 (new_oacc_loop_raw): Initialize it.
29759 (finish_oacc_loop): Clear mask & flags if no ifns.
29760 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
29761 (oacc_loop_xform_loop): Add ifns arg & adjust.
29762 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
29763
29764 2016-03-07 Richard Henderson <rth@redhat.com>
29765
29766 PR rtl-opt/70061
29767 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
29768 (insert_value_copy_on_edge): Likewise.
29769
29770 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29771
29772 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
29773
29774 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29775
29776 PR target/62281
29777 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
29778
29779 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
29780
29781 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
29782
29783 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
29784
29785 Fix sseimul type attribute.
29786 * config/i386/znver1.md
29787 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
29788 znver1_sseimul_avx256_load) : Fix the type attribute.
29789 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
29790 pipe usage and latency.
29791
29792 2016-03-05 Jakub Jelinek <jakub@redhat.com>
29793
29794 PR c++/70084
29795 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
29796 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
29797 to the right type.
29798
29799 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
29800
29801 PR c/69973
29802 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
29803
29804 PR rtl-optimization/69941
29805 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
29806 the reg share its mode.
29807
29808 2016-03-04 Jeff Law <law@redhat.com>
29809
29810 PR tree-optimization/69196
29811 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29812 If the both SSA_NAMEs are anonymous, then consider them unassociated
29813 and include the PHI in the statement count.
29814
29815 2016-03-05 Tom de Vries <tom@codesourcery.com>
29816
29817 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
29818 construct in oacc routine. Check for oacc region in oacc routine.
29819
29820 2016-03-04 Jakub Jelinek <jakub@redhat.com>
29821
29822 PR target/70062
29823 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
29824 2016-02-22 changes, instead don't recurse if RECUR is already true.
29825 Don't change *dynamic_check if RECUR. Adjust recursive caller
29826 to pass true to the new argument.
29827 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
29828
29829 PR target/70059
29830 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
29831 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
29832 fixes.
29833 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
29834
29835 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
29836
29837 PR rtl-optimization/57676
29838 * lra-assigns.c (lra_assign): Guard test for maximum iterations
29839 with flag_checking.
29840
29841 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
29842
29843 * tree-vect-patterns.c (search_type_for_mask): Handle
29844 comparison of booleans.
29845
29846 2016-03-04 Jakub Jelinek <jakub@redhat.com>
29847
29848 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
29849 Fix @xref usage.
29850
29851 PR debug/69947
29852 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
29853 all other ops that have dw_val_class_die_ref operands,
29854 and DW_OP_GNU_entry_value.
29855
29856 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29857
29858 PR rtl-optimization/69904
29859 * config/arm/arm.c (arm_cannot_copy_insn_p):
29860 Return true for load-exclusive instructions.
29861
29862 2016-03-03 Jakub Jelinek <jakub@redhat.com>
29863
29864 PR target/70021
29865 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
29866 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
29867 the pattern no matter if it is used just by non-pattern, pattern
29868 or mix thereof.
29869 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
29870 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
29871 oprnd1 def_stmt is in pattern, don't look through it.
29872
29873 2016-03-03 Marek Polacek <polacek@redhat.com>
29874
29875 PR middle-end/70050
29876 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
29877
29878 2016-03-03 Martin Liska <mliska@suse.cz>
29879
29880 PR tree-optimization/70043
29881 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
29882 previous statement if we see a debug statement.
29883
29884 2016-03-03 Richard Biener <rguenther@suse.de>
29885
29886 PR tree-optimization/55936
29887 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
29888 parameter and guard unsafe equivalence use.
29889 (vrp_evaluate_conditional_warnv_with_ops): Always use
29890 safe equivalences but not via the quadratic compare_names
29891 helper.
29892
29893 2016-03-03 Michael Collison <michael.collison@linaro.org>
29894
29895 PR target/70014
29896 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
29897 for operand 1 to s_register_operand. Change predicate for operand
29898 2 to arm_not_immediate_operand.
29899
29900 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
29901
29902 * doc/tm.texi: Regenerated.
29903
29904 2016-03-02 Richard Henderson <rth@redhat.com>
29905
29906 PR rtl-opt/67145
29907 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
29908 simplification when all args are positive non-fixed registers.
29909
29910 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
29911
29912 * target.def (lra_p): Specify that new ports should use LRA.
29913
29914 2016-03-02 Jakub Jelinek <jakub@redhat.com>
29915
29916 PR libgomp/69555
29917 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
29918 gimplify_type_sizes the type they refer to.
29919 (omp_notice_variable): Handle reference vars to VLAs.
29920 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
29921 reference to VLA decls in the second pass instead of first pass.
29922
29923 2016-03-02 Tom de Vries <tom@codesourcery.com>
29924
29925 PR tree-optimization/68659
29926 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
29927 new_expr == NULL_TREE.
29928 (get_new_name): Handle ADDR_EXPR.
29929
29930 2016-03-02 Bin Cheng <bin.cheng@arm.com>
29931
29932 PR rtl-optimization/69052
29933 * loop-invariant.c (canonicalize_address): New function.
29934 (inv_can_prop_to_addr_use): Check validity of address expression
29935 which is canonicalized by above function.
29936
29937 2016-03-02 Alan Modra <amodra@gmail.com>
29938
29939 PR ipa/69990
29940 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
29941 larger alignment.
29942
29943 2016-03-02 Jakub Jelinek <jakub@redhat.com>
29944
29945 PR target/70028
29946 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
29947 (*movhi_internal): Put mask moves from and to memory separately
29948 from moves from/to GPRs.
29949
29950 2016-03-02 Richard Biener <rguenther@suse.de>
29951
29952 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
29953 GENERIC expressions in GIMPLE.
29954
29955 2016-03-02 Richard Biener <rguenther@suse.de>
29956
29957 * config/i386/i386.c (type_natural_mode): Fix typo.
29958
29959 2016-03-02 Nick Clifton <nickc@redhat.com>
29960
29961 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
29962
29963 2016-03-02 Richard Biener <rguenther@suse.de>
29964 Uros Bizjak <ubizjak@gmail.com>
29965
29966 PR target/67278
29967 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
29968
29969 2016-03-02 Richard Biener <rguenther@suse.de>
29970
29971 PR middle-end/67278
29972 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
29973
29974 2016-03-02 Marek Polacek <polacek@redhat.com>
29975
29976 PR c/67854
29977 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
29978 "is promoted to" warning.
29979
29980 2016-03-01 DJ Delorie <dj@redhat.com>
29981
29982 * config.gcc: Deprecate mep-*.
29983
29984 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
29985
29986 PR middle-end/70025
29987 * lra-constraints.c (regno_val_use_in): New.
29988 (match_reload): Use it instead of regno_use_in.
29989
29990 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
29991
29992 PR rtl-optimization/70007
29993 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
29994 references present in REG_EQUAL notes attached to non-SET patterns.
29995
29996 2016-03-01 Jeff Law <law@redhat.com>
29997
29998 PR tree-optimization/69196
29999 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30000 Appropriately clamp the number of statements to copy when the
30001 thread path does not traverse a loop backedge.
30002
30003 PR tree-optimization/69196
30004 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30005 Do count some PHIs in the thread path against the insn count. Decrease
30006 final statement count by one as the control statement in the last
30007 block will get removed. Remove special cased code for handling PHIs
30008 in the last block.
30009
30010 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
30011
30012 PR target/70027
30013 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
30014 asm dialect alternatives to explicit GOTPCREL calls.
30015
30016 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
30017
30018 PR ada/70017
30019 * ira.c (do_reload): Issue warning for generic stack checking here...
30020 * reload1.c (reload): ...instead of here and streamline it.
30021
30022 2016-03-01 Nick Clifton <nickc@redhat.com>
30023
30024 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
30025
30026 2016-03-01 Richard Biener <rguenther@suse.de>
30027
30028 PR tree-optimization/69983
30029 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
30030 types and fall back to operand_equal_p.
30031
30032 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30033
30034 Revert
30035 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30036
30037 * config/s390/constraints.md ("jm8"): New constraint.
30038 * config/s390/predicates.md ("const_int_8bitset_operand"): New
30039 predicate.
30040 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
30041 into ...
30042 ("*setmem_long<setmem_and>"): New pattern.
30043 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
30044 into ...
30045 ("*setmem_long_31z<setmem_and>"): New pattern.
30046 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
30047 New substitution rules with the required attributes.
30048
30049
30050 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30051
30052 Revert
30053 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30054
30055 * gensupport.c (process_substs_on_one_elem): Split loop to
30056 complete mark_operands_used_in_match_dup on all expressions in the
30057 vector first.
30058 (adjust_operands_numbers): Inline into process_substs_on_one_elem
30059 and remove function.
30060
30061 2016-03-01 Richard Biener <rguenther@suse.de>
30062
30063 PR middle-end/70022
30064 * fold-const.c (fold_indirect_ref_1): Fix range checking for
30065 vector BIT_FIELD_REF extract.
30066
30067 2016-03-01 Richard Biener <rguenther@suse.de>
30068
30069 PR tree-optimization/69994
30070 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
30071
30072 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
30073
30074 PR tree-optimization/69956
30075 * tree-vect-stmts.c (supportable_widening_operation): Support
30076 multi-step conversion of boolean vectors.
30077 (supportable_narrowing_operation): Likewise.
30078
30079 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30080
30081 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
30082 anymore.
30083
30084 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30085
30086 * config/s390/subst.md (DSI_VI): New mode iterator.
30087 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
30088 * config/s390/vector.md ("vec_set<mode>"): Move expander before
30089 the insn definition.
30090 ("*vec_set<mode>"): Change predicate and add alternative to
30091 support only either register or const_int operands as element
30092 selector.
30093 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
30094 operands.
30095 ("vec_extract<mode>"): New expander.
30096 ("*vec_extract<mode>"): New insn definition supporting reg and
30097 const_int element selectors.
30098 ("*vec_extract<mode>_plus"): New insn definition supporting
30099 reg+const_int element selectors.
30100 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
30101 following expander+insn definition.
30102 ("<vec_shifts_name><mode>3"): New expander.
30103 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
30104
30105 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30106
30107 * config/s390/s390.md ("*tabort_1"): Change predicate to
30108 nonmemory_operand. Add a second alternative to cover
30109 register as well as const int operands.
30110 ("*tabort_1_plus"): New pattern definition.
30111
30112 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30113
30114 * config/s390/s390.md ("*ashrdi3_cc_31")
30115 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
30116 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
30117 Merge insn definitions into ...
30118 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30119 New pattern definition.
30120 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
30121 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
30122 ("*ashr<mode>3_and"): Merge insn definitions into ...
30123 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30124 New pattern definition.
30125 * config/s390/subst.md ("addr_style_op_cc_subst")
30126 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
30127 substitutions patterns plus attributes.
30128 Add ashiftrt to SUBST iterator.
30129
30130 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30131
30132 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
30133 op2 to nonmemory_operand.
30134 ("*<shift>di3_31", "*<shift>di3_31_and"):
30135 Merge into single pattern definition ...
30136 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
30137 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
30138 pattern definition ...
30139 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
30140 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
30141 iterator.
30142
30143 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30144
30145 * config/s390/predicates.md (const_int_6bitset_operand): New
30146 predicate.
30147 * config/s390/s390.md: Include subst.md.
30148 ("rotl<mode>3"): New expander.
30149 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
30150 ...
30151 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
30152 * config/s390/subst.md: New file.
30153
30154 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30155
30156 * config/s390/s390.md ("op_type", "atype", "length" attributes):
30157 Remove RRR type. It doesn't really exist.
30158 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
30159 attributes.
30160 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
30161 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
30162 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
30163 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
30164 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
30165 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
30166 `enabled' attribute.
30167
30168 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30169
30170 * gensupport.c (process_substs_on_one_elem): Split loop to
30171 complete mark_operands_used_in_match_dup on all expressions in the
30172 vector first.
30173 (adjust_operands_numbers): Inline into process_substs_on_one_elem
30174 and remove function.
30175
30176 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
30177
30178 PR target/69706
30179 * config/sparc/sparc.c (NWORDS_UP): Rename to...
30180 (CEIL_NWORDS): ...this. Use CEIL macro.
30181 (compute_fp_layout): Adjust to above renaming.
30182 (function_arg_union_value): Likewise.
30183 (sparc_arg_partial_bytes): Likewise.
30184 (sparc_function_arg_advance): Likewise.
30185
30186 2016-02-29 Jeff Law <law@redhat.com>
30187
30188 PR tree-optimization/70005
30189 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
30190 where an object with a boolean range is compared against a value
30191 outside [0..1].
30192
30193 PR tree-optimization/69999
30194 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
30195 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
30196 loop cleanups.
30197
30198 2016-02-29 Richard Biener <rguenther@suse.de>
30199
30200 PR tree-optimization/69994
30201 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
30202 (get_unary_op): Look through nop conversions.
30203 (ops_equal_values_p): New function, look for equality diregarding
30204 nop conversions.
30205 (eliminate_plus_minus_pair): Use ops_equal_values_p
30206 (repropagate_negates): Do not use get_unary_op here.
30207
30208 2016-02-29 Martin Liska <mliska@suse.cz>
30209
30210 * system.h: Poison ENABLE_CHECKING macro.
30211
30212 2016-02-29 Martin Liska <mliska@suse.cz>
30213
30214 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
30215 is presented in dump flags.
30216 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
30217 (hsa_regalloc): Likewise.
30218
30219 2016-02-19 Richard Biener <rguenther@suse.de>
30220
30221 PR tree-optimization/69980
30222 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
30223 permutation of those we need to keep.
30224
30225 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
30226
30227 PR target/69706
30228 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
30229 (NWORDS_UP): ...this
30230 (init_cumulative_args): Minor tweaks.
30231 (sparc_promote_function_mode): Likewise.
30232 (scan_record_type): Delete.
30233 (traverse_record_type): New function template.
30234 (classify_data_t): New structure type.
30235 (classify_registers): New inline function.
30236 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
30237 exhausted. Instantiate traverse_record_type on classify_registers and
30238 deal with the case of a structure passed in slot #15 with no FP field
30239 in the first word.
30240 (assign_data_t): New structure type.
30241 (compute_int_layout): New static function.
30242 (compute_fp_layout): Likewise.
30243 (count_registers): New inline function.
30244 (assign_int_registers): New static function.
30245 (assign_fp_registers): Likewise.
30246 (assign_registers): New inline function.
30247 (function_arg_record_value_1): Delete.
30248 (function_arg_record_value_2): Likewise.
30249 (function_arg_record_value_3): Likewise.
30250 (function_arg_record_value): Adjust to above changes. Instantiate
30251 traverse_record_type on count_registers to first count the number of
30252 registers to be used and then on assign_registers to assign them.
30253 (function_arg_union_value): Adjust to above renaming.
30254 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
30255 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
30256 case of a structure passed in slot #15
30257 (sparc_function_arg_advance): Likewise.
30258 (function_arg_padding): Minor tweak.
30259
30260 2016-02-29 Richard Biener <rguenther@suse.de>
30261
30262 PR tree-optimization/69720
30263 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
30264 the adjustment_def path for possibly vectorized defs.
30265 (vect_create_epilog_for_reduction): Handle vectorized initial
30266 defs properly.
30267
30268 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
30269
30270 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
30271
30272 2016-02-27 Jeff Law <law@redhat.com>
30273
30274 Revert
30275 2016-02-26 Richard Biener <rguenther@suse.de>
30276 Jeff Law <law@redhat.com>
30277
30278 PR tree-optimization/69740
30279 * cfghooks.c (remove_edge): Request loop fixups if we delete
30280 an edge that might turn an irreducible loop into a natural
30281 loop.
30282
30283 2016-02-27 Jakub Jelinek <jakub@redhat.com>
30284
30285 PR rtl-optimization/69896
30286 * tree-vect-generic.c (get_compute_type): Avoid single element
30287 vector types.
30288
30289 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
30290
30291 Rename the AArch64 tuning option and related functions to enable the
30292 Newton series for the reciprocal square root to reflect its
30293 approximative characteristic.
30294
30295 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
30296 function to "aarch64_emit_approx_rsqrt".
30297 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
30298 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
30299 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
30300 (xgene1_tunings): Likewise.
30301 (use_rsqrt_p): Likewise.
30302 (aarch64_emit_swrsqrt): Use new function name.
30303 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
30304 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
30305 text explaining this option.
30306 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
30307
30308 2016-02-26 Jakub Jelinek <jakub@redhat.com>
30309
30310 PR target/69969
30311 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
30312 complain about -mallow-movmisalign without -mvsx if
30313 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
30314
30315 2016-02-26 Joel Sherrill <joel@rtems.org>
30316
30317 * config.gcc: Add x86_64-*-rtems*.
30318 * config/i386/rtems-64.h: New file.
30319
30320 2016-02-26 Joel Sherrill <joel@rtems.org>
30321
30322 * config.gcc: Add aarch64-*-rtems*.
30323 * config/aarch64/rtems.h: New file.
30324
30325 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
30326
30327 PR target/69946
30328 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
30329 shift amount using %h. Add comment.
30330
30331 2016-02-26 Richard Biener <rguenther@suse.de>
30332 Jeff Law <law@redhat.com>
30333
30334 PR tree-optimization/69740
30335 * cfghooks.c (remove_edge): Request loop fixups if we delete
30336 an edge that might turn an irreducible loop into a natural
30337 loop.
30338
30339 2016-02-26 Martin Jambor <mjambor@suse.cz>
30340
30341 PR middle-end/69920
30342 * tree-sra.c (sra_modify_assign): Do not remove loads of
30343 uninitialized aggregates to SSA_NAMEs.
30344
30345 2016-02-26 Richard Henderson <rth@redhat.com>
30346
30347 PR target/69709
30348 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
30349 pseudo in case the target rtx matches the source of the left
30350 shift.
30351
30352 2016-02-26 Martin Jambor <mjambor@suse.cz>
30353
30354 PR hsa/69568
30355 * hsa.h (hsa_type_packed_p): Declare.
30356 * hsa.c (hsa_type_packed_p): New function.
30357 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
30358 loads.
30359 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
30360 * hsa-brig.c (emit_basic_insn): Likewise.
30361
30362 2016-02-26 Martin Jambor <mjambor@suse.cz>
30363
30364 pr hsa/69674
30365 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
30366 pointers.
30367 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
30368
30369 2016-02-26 Martin Jambor <mjambor@suse.cz>
30370
30371 * hsa.h (is_a_helper): New overload for hsa_op_immed for
30372 hsa_op_with_type operands.
30373 (hsa_unsigned_type_for_type): Declare.
30374 * hsa.c (hsa_unsigned_type_for_type): New function.
30375 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
30376 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
30377 the finalizer. Do not emit extra move.
30378
30379 2016-02-26 Martin Jambor <mjambor@suse.cz>
30380
30381 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
30382 atomic operations in private segment.
30383
30384 2016-02-26 Martin Jambor <mjambor@suse.cz>
30385
30386 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
30387 statements to wi->info. Also disallow omp simd constructs.
30388 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
30389 for not gridifying. Dump special string for omp_for.
30390
30391 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30392
30393 PR target/69245
30394 * config/aarch64/aarch64.c (aarch64_set_current_function):
30395 Save/restore target globals when switching to
30396 target_option_default_node.
30397
30398 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30399
30400 PR target/69613
30401 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
30402 Return 0 if !SHIFT_COUNT_TRUNCATED.
30403
30404 2016-02-26 Jakub Jelinek <jakub@redhat.com>
30405 Eric Botcazou <ebotcazou@adacore.com>
30406
30407 PR rtl-optimization/69891
30408 * dse.c (scan_insn): If we can't figure out memset arguments
30409 or they are non-constant, call clear_rhs_from_active_local_stores.
30410
30411 2016-02-26 Martin Liska <mliska@suse.cz>
30412
30413 * doc/extend.texi: Mention clog10, clog10f an clog10l
30414 in Builtins section.
30415
30416 2016-02-26 Martin Liska <mliska@suse.cz>
30417
30418 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
30419 CHECKING_P.
30420 (resolve_args_picking_1): Likewise.
30421 * dwarf2out.h (struct GTY): Likewise.
30422
30423 2016-02-26 Martin Liska <mliska@suse.cz>
30424
30425 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
30426 with flag_checking.
30427 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
30428
30429 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
30430 Martin Liska <mliska@suse.cz>
30431
30432 * doc/install.texi: Mention --enable-valgrind-annotations.
30433
30434 2016-02-26 Richard Biener <rguenther@suse.de>
30435
30436 PR tree-optimization/69551
30437 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
30438 looking through aliases adjust DECL_PT_UID to refer to the
30439 ultimate alias target.
30440
30441 2016-02-25 Martin Liska <mliska@suse.cz>
30442
30443 PR middle-end/69919
30444 * alloc-pool.c (after_memory_report): New variable.
30445 * alloc-pool.h (base_pool_allocator ::release): Do not use
30446 the infrastructure if after_memory_report.
30447 * toplev.c (toplev::main): Mark after memory report.
30448
30449 2016-02-25 Richard Biener <rguenther@suse.de>
30450
30451 PR tree-optimization/48795
30452 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
30453
30454 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
30455
30456 PR driver/68463
30457 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
30458 offloading is enabled and -fopenacc or -fopenmp is specified.
30459 (CRTOFFLOADEND): Likewise.
30460 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
30461 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
30462 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
30463 (offload_objects_file_name): New static var.
30464 (tool_cleanup): Remove offload_objects_file_name file.
30465 (find_offloadbeginend): Replace with ...
30466 (find_crtoffloadtable): ... this.
30467 (run_gcc): Remove offload_argc and offload_argv.
30468 Get offload_objects_file_name from -foffload-objects=... option.
30469 Read names of object files with offload from this file, pass them to
30470 compile_images_for_offload_targets. Don't call find_offloadbeginend and
30471 don't pass offloadbegin and offloadend to the linker. Don't pass
30472 offload non-LTO files to the linker, because now they're not claimed.
30473
30474 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
30475
30476 PR ipa/69630
30477 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
30478 on builtin_unreachable.
30479
30480 2016-02-25 Jakub Jelinek <jakub@redhat.com>
30481
30482 PR rtl-optimization/69896
30483 * regcprop.c: Include cfgrtl.h.
30484 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
30485 than remembered mode, either delete it (if noop_move_p), or
30486 treat like copy_p but not noop_p instruction.
30487
30488 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30489
30490 PR debug/69705
30491 * dwarf2out.c (gen_variable_die): Work around buggy LTO
30492 - allow NULL decl for Fortran DW_TAG_common_block variables.
30493
30494 2016-02-24 Jason Merrill <jason@redhat.com>
30495
30496 * common.opt (flifetime-dse): Add -flifetime-dse=1.
30497
30498 2016-02-24 Richard Biener <rguenther@suse.de>
30499 Jakub Jelinek <jakub@redhat.com>
30500
30501 PR middle-end/69760
30502 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
30503 conditionally executed ops to well-defined overflow behavior.
30504
30505 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30506
30507 PR middle-end/69915
30508 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
30509 elements.
30510
30511 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30512
30513 PR rtl-optimization/69886
30514 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
30515 argument. Use it when checking validity of set instructions.
30516 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
30517 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
30518 callsite.
30519 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
30520 * store-motion.c (find_moveable_store): Update
30521 can_assign_to_reg_without_clobbers_p callsite.
30522
30523 2016-02-24 Richard Biener <rguenther@suse.de>
30524
30525 PR middle-end/68963
30526 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
30527 bogus check.
30528 (record_nonwrapping_iv): Do not fall back to the low/high bound
30529 for non-constant IV bases if the stmt is not always executed.
30530
30531 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30532
30533 * config/arm/arm-cores.def (cortex-a32): New entry.
30534 * config/arm/arm-tables.opt: Regenerate.
30535 * config/arm/arm-tune.md: Regenerate.
30536 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
30537 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
30538 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
30539 for -mcpu and -mtune.
30540
30541 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30542
30543 PR target/69875
30544 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
30545 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
30546 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
30547 (atomic_loaddi_1): Delete.
30548 (atomic_loaddi): Rewrite expander using the above changes.
30549
30550 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30551
30552 PR c/69918
30553 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
30554 2 to 3.
30555
30556 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30557 Richard Biener <rguenth@suse.de>
30558
30559 PR middle-end/69909
30560 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
30561 set_mem_attributes if tem is SSA_NAME which got expanded
30562 as a MEM.
30563
30564 2016-02-24 Richard Biener <rguenther@suse.de>
30565
30566 PR tree-optimization/69907
30567 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
30568 end of permutations for BB vectorization.
30569
30570 2016-02-24 Christian Bruel <christian.bruel@st.com>
30571
30572 * config/arm/arm-c.c (arm_option_override): Initialize
30573 target_option_current_node.
30574 * config/arm/arm.c (arm_pragma_target_parse): Replace
30575 build_target_option_node call by target_option_current_node.
30576 Set target_option_current_node.
30577 Fix comments.
30578
30579 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
30580
30581 PR target/69810
30582 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
30583 define_insn_and_split to define_insn.
30584 (zero_extendqi<mode>2_dot2): Same.
30585 (extendqi<mode>2_dot): Same.
30586 (extendqi<mode>2_dot2): Same.
30587
30588 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
30589
30590 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
30591 and add bypass for AES{D,E} and AESMC pairs.
30592 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
30593 and AESMC pairs.
30594
30595 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
30596
30597 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
30598 series for reciprocal square root in Exynos M1.
30599
30600 2016-02-23 Martin Sebor <msebor@redhat.com>
30601
30602 PR c/69759
30603 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
30604 __builtin_alloca_with_align.
30605
30606 2016-02-23 Richard Henderson <rth@redhat.com>
30607
30608 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
30609 (ix86_register_pragmas): Remove __seg_tls.
30610 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
30611 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
30612 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
30613 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
30614 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
30615 * doc/extend.texi (__seg_tls): Remove item.
30616
30617 2016-02-23 Richard Biener <rguenther@suse.de>
30618
30619 * alloc-pool.h (struct allocation_object): Make id member
30620 conditional on CHECKING_P again.
30621 (get_instance): Adjust.
30622 (base_pool_allocator): Likewise.
30623
30624 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
30625
30626 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
30627 (parallelize_loops): In OpenACC kernels mode, set n_threads to
30628 zero.
30629 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
30630 flag_openacc.
30631 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
30632
30633 2016-02-23 Richard Biener <rguenther@suse.de>
30634
30635 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
30636 * bitmap.h (struct bitmap_usage): Likewise.
30637 (bitmap_move): Declare.
30638 * bitmap.c (register_overhead): Take size_t argument.
30639 (bitmap_move): New function.
30640 * df-problems.c (df_rd_transfer_function): Use bitmap_move
30641 to properly account overhead.
30642 * tree.c (free_node): Use tree_size.
30643
30644 2016-02-23 Jakub Jelinek <jakub@redhat.com>
30645
30646 PR c++/69902
30647 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
30648 when inverting comparison.
30649
30650 PR c/69900
30651 * common.opt (Wunreachable-code): Add Warning flag.
30652
30653 2016-02-23 Mark Wielaard <mjw@redhat.com>
30654 Jakub Jelinek <jakub@redhat.com>
30655
30656 PR c/69911
30657 * cgraphunit.c (check_global_declaration): Check main_input_filename
30658 and DECL_SOURCE_FILE are not NULL.
30659
30660 2016-02-23 Martin Jambor <mjambor@suse.cz>
30661
30662 PR tree-optimization/69666
30663 * tree-sra.c (sra_modify_assign): Do not attempt to create
30664 default_def replacements for unscalarizable regions.
30665
30666 2016-02-20 Mark Wielaard <mjw@redhat.com>
30667
30668 PR c/28901
30669 * cgraphunit.c (check_global_declaration): Check level of
30670 warn_unused_const_variable and main_input_filename.
30671 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
30672 (-Wunused-variable): For C implies -Wunused-const-variable=1.
30673 (-Wunused-const-variable): Explain levels 1 and 2.
30674
30675 2016-02-22 Jakub Jelinek <jakub@redhat.com>
30676
30677 PR target/69888
30678 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
30679 identical arguments. Formatting and spelling fixes.
30680
30681 PR target/69885
30682 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
30683 be specified.
30684
30685 PR target/69894
30686 PR target/69895
30687 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
30688 and m68k-devices.def.
30689 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
30690 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
30691
30692 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
30693
30694 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
30695 and HImode registers.
30696
30697 2016-02-22 Richard Biener <rguenther@suse.de>
30698
30699 PR tree-optimization/69882
30700 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
30701 preserve permutations present because of gaps.
30702 (vect_supported_load_permutation_p): Always continue checking
30703 permutations after vect_attempt_slp_rearrange_stmts.
30704
30705 2016-02-22 Bin Cheng <bin.cheng@arm.com>
30706
30707 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
30708 min_profitable_estimate, rather than min_profitable_iters.
30709
30710 2016-02-22 Jakub Jelinek <jakub@redhat.com>
30711
30712 PR target/69885
30713 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
30714 SImode for last match_operand.
30715
30716 2016-02-22 Martin Liska <mliska@suse.cz>
30717
30718 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
30719 return bitsize - 1 as the return value.
30720
30721 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
30722
30723 PR target/69806
30724 PR target/54089
30725 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
30726 Handle negative shift counts.
30727 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
30728 force_reg on the shift constant.
30729 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
30730 (lshrsi3_d): Handle negative shift counts.
30731
30732 2016-02-22 Richard Biener <rguenther@suse.de>
30733 Tom de Vries <tom@codesourcery.com>
30734
30735 * graph.c: Include dumpfile.h.
30736 (print_graph_cfg): Split into three overloads.
30737 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
30738
30739 2016-02-22 Tom de Vries <tom@codesourcery.com>
30740
30741 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
30742 dump-fn.
30743
30744 2016-02-22 Richard Biener <rguenther@suse.de>
30745
30746 PR ipa/37448
30747 * ipa-inline-transform.c (inline_call): When not updating
30748 overall summaries adjust self size by the growth estimate.
30749 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
30750 hash-set, do not update overall summaries here. Renamed from ...
30751 (inline_to_all_callers): ... this which is now wrapping the
30752 above and performing delayed overall summary update.
30753 (early_inline_small_functions): Delay updating of the overall
30754 summary.
30755
30756 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
30757
30758 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
30759 variable.
30760
30761 2016-02-19 Jakub Jelinek <jakub@redhat.com>
30762
30763 PR driver/69805
30764 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
30765 :%* in %:gt() argument.
30766 (greater_than_spec_func): Adjust for expecting only numbers,
30767 if there are more than two numbers, compare the last two.
30768
30769 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
30770
30771 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
30772 -Wnarrowing with -std.
30773
30774 2016-02-19 Jakub Jelinek <jakub@redhat.com>
30775
30776 PR c++/69851
30777 * expr.c (store_field): Don't use bit-field path if exp is
30778 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
30779 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
30780 and the assignment can be performed by bitwise copy. Formatting
30781 fix.
30782
30783 PR middle-end/69838
30784 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
30785 call copy_reg_eh_region_note_forward on before and/or after sequences
30786 and remove note from insn if it no longer can throw.
30787
30788 PR target/69820
30789 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
30790 if TARGET_AVX512BW.
30791
30792 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30793
30794 * config/s390/vector.md: Add missing commutative operand markers
30795 to the patterns which qualify for one.
30796 * config/s390/vx-builtins.md: Likewise.
30797
30798 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30799
30800 * config/s390/vector.md (VI, VI_QHS): Add single element vector
30801 types to mode iterators.
30802 (vec_double): ... and mode attribute.
30803 * config/s390/vx-builtins.md (non_vec_int): Likewise.
30804
30805 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30806
30807 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
30808 Change the predicate of op2 from nonimmediate to general and let
30809 reload fix it if necessary.
30810
30811 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30812
30813 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
30814
30815 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30816
30817 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
30818 mode.
30819
30820 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30821
30822 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
30823 * config/s390/s390.c (s390_expand_vec_movstr): New function.
30824 * config/s390/s390.md ("movstr<P:mode>"): Call
30825 s390_expand_vec_movstr.
30826
30827 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30828
30829 * config/s390/s390.md: Add missing output modifier for operand 1
30830 to print it as address properly.
30831
30832 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30833
30834 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
30835 * config/s390/2964.md: New file.
30836 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
30837 of insn grouping attributes depending on the CPU level.
30838 (s390_get_unit_mask): New function.
30839 (s390_sched_score): Remove the OOO from the scheduling macros.
30840 Add loop to calculate a score for the instruction mix.
30841 (s390_sched_reorder): Likewise plus improve debug output.
30842 (s390_sched_variable_issue): Rename macros as above. Calculate
30843 the unit distances after actually scheduling an insn. Improve
30844 debug output.
30845 (s390_sched_init): Clear last_scheduled_unit_distance array.
30846 * config/s390/s390.md: Include 2964.md.
30847
30848 2016-02-18 Jakub Jelinek <jakub@redhat.com>
30849
30850 PR target/69671
30851 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
30852 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
30853 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
30854 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
30855 *avx512f_<code>v8div16qi2_mask_1): New insns.
30856
30857 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
30858
30859 PR target/68404
30860 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
30861 2016-02-09 change.
30862
30863 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
30864 earlyclobber from target. Use wF constraint for fused memory
30865 address.
30866 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
30867
30868 2016-02-18 Jakub Jelinek <jakub@redhat.com>
30869 Martin Liska <mliska@suse.cz>
30870
30871 PR sanitizer/69863
30872 * cfgexpand.c (asan_sanitize_stack_p): New function.
30873 (partition_stack_vars): Use the function.
30874 (expand_stack_vars): Likewise.
30875 (defer_stack_allocation): Likewise.
30876 (expand_used_vars): Likewise.
30877
30878 2016-02-18 Richard Biener <rguenther@suse.de>
30879
30880 PR middle-end/69553
30881 * fold-const.c (operand_equal_p): Properly compare offsets for
30882 IMAGPART_EXPR and ARRAY_REF.
30883
30884 2016-02-18 Nick Clifton <nickc@redhat.com>
30885
30886 PR target/62254
30887 PR target/69610
30888 * config/arm/arm.c (arm_option_override_internal): Disable
30889 interworking if the target does not support thumb instructions.
30890 (arm_reload_in_hi): Handle the case where a register to register
30891 move needs reloading because there is no simple pattern to handle
30892 it.
30893 (arm_reload_out_hi): Likewise.
30894
30895 2016-02-18 Richard Biener <rguenther@suse.de>
30896
30897 PR middle-end/69854
30898 * match.pd: Don't use fold_binary or fold_unary for folding
30899 constants.
30900
30901 2016-02-17 Jakub Jelinek <jakub@redhat.com>
30902
30903 PR c++/69850
30904 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
30905 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
30906 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
30907 warn on gimple_no_warning_p statements.
30908
30909 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
30910
30911 * doc/extend.texi (C++ Attributes): Correct description of
30912 warn_unused type attribute.
30913
30914 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30915
30916 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
30917 correct instruction.
30918
30919 2016-02-17 Richard Biener <rguenther@suse.de>
30920
30921 PR rtl-optimization/69609
30922 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
30923 (find_traces_1_round): When ending a trace update cached priority
30924 of successors.
30925 (bb_to_key): Use cached priority when available.
30926 (copy_bb): Initialize cached priority.
30927 (reorder_basic_blocks_software_trace_cache): Likewise.
30928
30929 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30930
30931 PR target/69161
30932 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
30933 New predicate.
30934 (aarch64_comparison_operator): Break overly long line into two.
30935 (aarch64_comparison_operation): Likewise.
30936 * config/aarch64/aarch64.md (cstorecc4): Use
30937 aarch64_comparison_operator_mode instead of
30938 aarch64_comparison_operator.
30939 (cstore<mode>4): Likewise.
30940 (aarch64_cstore<mode>): Likewise.
30941 (*cstoresi_insn_uxtw): Likewise.
30942 (cstore<mode>_neg): Likewise.
30943 (*cstoresi_neg_uxtw): Likewise.
30944
30945 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30946
30947 PR target/69161
30948 * config/arm/predicates.md (arm_comparison_operator_mode):
30949 New predicate.
30950 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
30951 instead of arm_comparison_operator.
30952 (*mov_negscc): Likewise.
30953 (*mov_notscc): Likewise.
30954 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
30955 (*thumb2_mov_negscc): Likewise.
30956 (*thumb2_mov_negscc_strict_it): Likewise.
30957 (*thumb2_mov_notscc): Likewise.
30958 (*thumb2_mov_notscc_strict_it): Likewise.
30959
30960 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
30961
30962 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
30963 Add missing return.
30964
30965 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
30966
30967 * config/visium/visium.c (machine_libfunc_index): New enum.
30968 (machine_libfuncs): New structure.
30969 (visium_libfuncs): New static variable.
30970 (TARGET_INIT_LIBFUNCS): Define to...
30971 (visium_init_libfuncs): ...this. New function.
30972 (expand_block_move_4): Use the appropriate libfunc.
30973 (expand_block_move_2): Likewise.
30974 (expand_block_move_1): Likewise.
30975 (expand_block_set_4): Likewise.
30976 (expand_block_set_2): Likewise.
30977 (expand_block_set_1): Likewise.
30978 (visium_trampoline_init): Likewise.
30979
30980 2016-02-17 Nick Clifton <nickc@redhat.com>
30981
30982 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
30983 TI's devices.csv file as of March 2016.
30984
30985 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
30986
30987 PR Target/48344
30988 * opts-global.c (handle_common_deferred_options): Introduce and
30989 initialize two global variables to remember command-line options
30990 specifying a stack-limiting register.
30991 * opts.h: Add extern declarations of the two new global variables.
30992 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
30993 variable based on the values of the two new global variables.
30994
30995 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30996
30997 PR c/69835
30998 * common.opt (Wnonnull-compare): New warning.
30999 * doc/invoke.texi (-Wnonnull): Remove text about comparison
31000 of arguments against NULL.
31001 (-Wnonnull-compare): Document.
31002 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
31003 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
31004 * passes.def (pass_warn_nonnull_compare): Add.
31005 * gimple-ssa-nonnull-compare.c: New file.
31006
31007 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31008
31009 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
31010 AARCH64_EXTRA_TUNE_RECIP_SQRT.
31011
31012 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31013
31014 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
31015 reciprocal sqrt for -mlow-precision-recip-sqrt.
31016
31017 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31018 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31019
31020 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
31021 always use lane loads to construct non-constant vectors.
31022
31023 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31024
31025 * config/aarch64/aarch64.md
31026 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
31027 constraints for operand 3.
31028 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
31029
31030 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31031 Richard Biener <rguenther@suse.de>
31032
31033 PR tree-optimization/69820
31034 * tree-vect-patterns.c (type_conversion_p): Return false if
31035 *orig_type is unsigned single precision or boolean.
31036 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
31037 Formatting fix.
31038
31039 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31040
31041 PR rtl-optimization/69764
31042 PR rtl-optimization/69771
31043 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
31044 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
31045
31046 2016-02-16 Richard Biener <rguenther@suse.de>
31047
31048 PR tree-optimization/69776
31049 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
31050 sets from caller.
31051 (indirect_refs_may_alias_p): Likewise.
31052 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
31053 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
31054 according to tbaa_p.
31055 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
31056 (optimize_stmt): For redundant store discovery do not allow tbaa.
31057
31058 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
31059
31060 PR tree-optimization/69714
31061 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
31062 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
31063
31064 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
31065
31066 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
31067 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
31068 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
31069 * config/arc/arc.c (arc_init): Check FPU options.
31070 (get_arc_condition_code): Handle new CC_FPU* modes.
31071 (arc_select_cc_mode): Likewise.
31072 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
31073 register pair only. Allow access for ARCv2 accumulator.
31074 (gen_compare_reg): Whenever we have FPU support use FPU compare
31075 instructions.
31076 (arc_reorg): Don't generate brcc insns when FPU compare
31077 instructions are involved.
31078 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
31079 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
31080 floating point emulation.
31081 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
31082 (REVERSE_CONDITION): Add new CC_FPU* modes.
31083 (TARGET_FP_SP_BASE): Define.
31084 (TARGET_FP_DP_BASE): Likewise.
31085 (TARGET_FP_SP_FUSED): Likewise.
31086 (TARGET_FP_DP_FUSED): Likewise.
31087 (TARGET_FP_SP_CONV): Likewise.
31088 (TARGET_FP_DP_CONV): Likewise.
31089 (TARGET_FP_SP_SQRT): Likewise.
31090 (TARGET_FP_DP_SQRT): Likewise.
31091 (TARGET_FP_DP_AX): Likewise.
31092 * config/arc/arc.md (ARCV2_ACC): New constant.
31093 (type): New fpu type attribute.
31094 (SDF): Conditional iterator.
31095 (cstore<mode>, cbranch<mode>): Change expand condition.
31096 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
31097 handles FPU/FPX cases as well.
31098 * config/arc/arc.opt (mfpu): New option.
31099 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
31100 Renamed.
31101 (adddf3, muldf3, subdf3): Removed.
31102 * config/arc/predicates.md (proper_comparison_operator): Recognize
31103 CC_FPU* modes.
31104 * config/arc/fpu.md: New file.
31105 * doc/invoke.texi (ARC Options): Document mfpu option.
31106
31107 2016-02-16 Richard Biener <rguenther@suse.de>
31108
31109 PR rtl-optimization/69291
31110 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
31111 noce_operand_ok check.
31112
31113 2016-02-16 Tom de Vries <tom@codesourcery.com>
31114
31115 PR lto/67709
31116 * omp-low.c (simd_clone_create): Remove call to
31117 symtab->call_cgraph_insertion_hooks.
31118
31119 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31120
31121 PR tree-optimization/69802
31122 * tree-ssa-reassoc.c (update_range_test): If op is
31123 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
31124 op == 1 test of precision 1 integral op, otherwise handle
31125 that case as op itself. Fix up formatting.
31126 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
31127 up formatting.
31128
31129 2016-02-16 Richard Biener <rguenther@suse.de>
31130
31131 PR tree-optimization/69586
31132 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
31133 types for conversion sources.
31134
31135 2016-02-16 Richard Biener <rguenther@suse.de>
31136
31137 PR middle-end/69801
31138 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
31139 mask OEP_ADDRESS_OF.
31140
31141 2016-02-16 Alan Modra <amodra@gmail.com>
31142
31143 PR target/68973
31144 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
31145 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
31146 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
31147 (p8_mtvsrwz): New.
31148 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
31149 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
31150 (p8_fmrgow_<mode>): Likewise.
31151 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
31152 changes.
31153 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
31154 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
31155 to use movdi_internal64. Remove op0_di.
31156 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
31157
31158 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
31159
31160 Add support for the FCCMP insn types
31161
31162 * config/aarch64/aarch64.md (fccmp): Change insn type.
31163 (fccmpe): Likewise.
31164 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
31165 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
31166 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
31167 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
31168 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
31169 * config/arm/types.md (fccmps): Add new insn type.
31170 (fccmpd): Likewise.
31171
31172 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
31173
31174 * alias.c (get_alias_set): Fix a typo in comment.
31175
31176 2016-02-15 Richard Biener <rguenther@suse.de>
31177
31178 PR tree-optimization/69595
31179 * match.pd: Complete range test simplification to true.
31180
31181 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
31182
31183 PR rtl-optimization/69648
31184 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
31185 pic_offset_table_rtx.
31186
31187 PR rtl-optimization/69752
31188 * ira.c (update_equiv_regs): When looking for more than a single SET,
31189 also take other side effects into account.
31190
31191 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
31192
31193 * config/s390/s390.c (s390_function_profiler): Add a new sequence
31194 for z900+ CPUs in 31-bit mode.
31195
31196 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
31197
31198 * common/config/s390/s390-common.c (s390_supports_split_stack):
31199 New function.
31200 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
31201 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
31202 * config/s390/s390.c (struct machine_function): New field
31203 split_stack_varargs_pointer.
31204 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
31205 in s390_emit_prologue.
31206 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
31207 vararg pointer.
31208 (morestack_ref): New global.
31209 (SPLIT_STACK_AVAILABLE): New macro.
31210 (s390_expand_split_stack_prologue): New function.
31211 (s390_live_on_entry): New function.
31212 (s390_va_start): Use split-stack vararg pointer if appropriate.
31213 (s390_asm_file_end): Emit the split-stack note sections.
31214 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
31215 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
31216 (UNSPECV_SPLIT_STACK_CALL): New unspec.
31217 (UNSPECV_SPLIT_STACK_DATA): New unspec.
31218 (split_stack_prologue): New expand.
31219 (split_stack_space_check): New expand.
31220 (split_stack_data): New insn.
31221 (split_stack_call): New expand.
31222 (split_stack_call_*): New insn.
31223 (split_stack_cond_call): New expand.
31224 (split_stack_cond_call_*): New insn.
31225
31226 2016-02-15 Richard Biener <rguenther@suse.de>
31227
31228 PR tree-optimization/69783
31229 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31230 Add trivially correct cases.
31231
31232 2016-02-15 Tom de Vries <tom@codesourcery.com>
31233
31234 PR lto/69655
31235 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
31236 do_force_output.
31237 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
31238
31239 2016-02-15 Richard Biener <rguenther@suse.de>
31240
31241 PR tree-optimization/69776
31242 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
31243 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
31244 indicate whether we can use TBAA to disambiguate against stores.
31245 Use alias-set zero if not.
31246 (visit_reference_op_store): Do not use TBAA when looking up
31247 redundant stores.
31248 * tree-ssa-pre.c (compute_avail): Use TBAA here.
31249 (eliminate_dom_walker::before_dom_children): But not when looking
31250 up redundant stores.
31251
31252 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
31253
31254 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
31255
31256 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31257
31258 * config/i386/znver1.md
31259 (znver1_pop, znver1_pop_mem,
31260 znver1_load_imov_double_store,
31261 znver1_load_imov_direct_store,
31262 znver1_load_imov_direct_load,
31263 znver1_load_imov_double_load): Add new.
31264 (znver1_insn, znver1_insn_load): Add icmov type.
31265 (znver1_sseavx_fma,
31266 znver1_sseavx_fma_load,
31267 znver1_avx256_fma,
31268 znver1_avx256_fma_load): Fix pipe usage.
31269
31270 2016-02-14 Alan Modra <amodra@gmail.com>
31271
31272 PR target/68973
31273 * reload.c (find_reloads_address_1): For pre/post-inc/dec
31274 with an invalid hard reg, reload just the reg not the entire
31275 pre/post-inc/dec address expression.
31276
31277 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
31278
31279 PR target/67260
31280 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
31281 fixed R1_REG scratch reg.
31282 (sibcall_value_pcrel_fdpic): Likewise.
31283
31284 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
31285
31286 PR target/67636
31287 PR target/64345
31288 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
31289
31290 2016-02-12 Walter Lee <walt@tilera.com>
31291
31292 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
31293 * config/tilegx/t-tilegx: Likewise.
31294
31295 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31296
31297 PR other/69554
31298 * diagnostic-show-locus.c (struct line_span): New struct.
31299 (layout::get_first_line): Delete.
31300 (layout::get_last_line): Delete.
31301 (layout::get_num_line_spans): New member function.
31302 (layout::get_line_span): Likewise.
31303 (layout::print_heading_for_line_span_index_p): Likewise.
31304 (layout::get_expanded_location): Likewise.
31305 (layout::calculate_line_spans): Likewise.
31306 (layout::m_first_line): Delete.
31307 (layout::m_last_line): Delete.
31308 (layout::m_line_spans): New field.
31309 (layout::layout): Update comment. Replace m_first_line and
31310 m_last_line with m_line_spans, replacing their initialization
31311 with a call to calculate_line_spans.
31312 (diagnostic_show_locus): When printing source lines and
31313 annotations, rather than looping over a single span
31314 of lines, instead loop over each line_span within
31315 the layout, with an inner loop over the lines within them.
31316 Call the context's start_span callback when changing line spans.
31317 * diagnostic.c (diagnostic_initialize): Initialize start_span.
31318 (diagnostic_build_prefix): Break out the building of the location
31319 part of the string into...
31320 (diagnostic_get_location_text): ...this new function, rewriting
31321 it from nested ternary expressions to a sequence of "if"
31322 statements.
31323 (default_diagnostic_start_span_fn): New function.
31324 * diagnostic.h (diagnostic_start_span_fn): New typedef.
31325 (diagnostic_context::start_span): New field.
31326 (default_diagnostic_start_span_fn): New prototype.
31327
31328 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31329
31330 PR driver/69779
31331 * gcc.c (driver::finalize): Fix cleanup of "specs".
31332
31333 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31334
31335 PR driver/69265
31336 PR driver/69453
31337 * gcc.c (driver::driver): Initialize m_option_suggestions.
31338 (driver::~driver): Clean up m_option_suggestions.
31339 (suggest_option): Convert to...
31340 (driver::suggest_option): ...this, and split out into
31341 driver::build_option_suggestions and find_closest_string.
31342 (driver::build_option_suggestions): New function, from
31343 first half of suggest_option. Special-case
31344 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
31345 the sanitizer_opts array. For options of enum types, add the
31346 various enum values to the candidate strings.
31347 (driver::handle_unrecognized_options): Remove "const".
31348 * gcc.h (driver::handle_unrecognized_options): Likewise.
31349 (driver::build_option_suggestions): New decl.
31350 (driver::suggest_option): New decl.
31351 (driver::m_option_suggestions): New field.
31352 * opts-common.c (add_misspelling_candidates): New function.
31353 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
31354 and make non-static.
31355 * opts.h (sanitizer_opts): New array decl.
31356 (add_misspelling_candidates): New function decl.
31357 * spellcheck.c (find_closest_string): New function.
31358 * spellcheck.h (find_closest_string): New function decl.
31359
31360 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31361
31362 PR rtl-optimization/69764
31363 PR rtl-optimization/69771
31364 * optabs.c (expand_binop_directly): For shift_optab_p, force
31365 convert_modes with VOIDmode if xop1 has VOIDmode.
31366
31367 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
31368
31369 PR target/69729
31370 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
31371 to correctly determine instrumentation thunks.
31372
31373 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31374
31375 PR ipa/69241
31376 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
31377 type by reference, force lhs on the call.
31378
31379 PR ipa/68672
31380 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
31381 Compute retval and retbnd early in all cases if split_part_return_p
31382 and return_bb is not EXIT. Remove all clobber stmts and reset
31383 all debug stmts that refer to SSA_NAMEs defined in split part,
31384 except if it is retval, in that case replace the old retval with the
31385 lhs of the call to the split part.
31386
31387 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31388
31389 revert:
31390 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31391
31392 PR middle-end/66726
31393 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
31394 whose result is used in PHI.
31395 (maybe_optimize_range_tests): Likewise.
31396 (final_range_test_p): Likweise.
31397
31398 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31399
31400 PR middle-end/66726
31401 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
31402 whose result is used in PHI.
31403 (maybe_optimize_range_tests): Likewise.
31404 (final_range_test_p): Likweise.
31405
31406 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31407
31408 * cgraph.c: Spelling fixes - behaviour -> behavior and
31409 neighbour -> neighbor.
31410 * target.def: Likewise.
31411 * sel-sched.c: Likewise.
31412 * config/mips/mips.c: Likewise.
31413 * config/arc/arc.md: Likewise.
31414 * config/arm/cortex-a57.md: Likewise.
31415 * config/arm/arm.c: Likewise.
31416 * config/arm/neon.md: Likewise.
31417 * config/arm/arm-c.c: Likewise.
31418 * config/vms/vms-c.c: Likewise.
31419 * config/s390/s390.c: Likewise.
31420 * config/i386/znver1.md: Likewise.
31421 * config/i386/i386.c: Likewise.
31422 * config/ia64/hpux-unix2003.h: Likewise.
31423 * config/msp430/msp430.md: Likewise.
31424 * config/rx/rx.c: Likewise.
31425 * config/rx/rx.md: Likewise.
31426 * config/aarch64/aarch64-simd.md: Likewise.
31427 * config/aarch64/aarch64.c: Likewise.
31428 * config/nvptx/nvptx.c: Likewise.
31429 * config/bfin/bfin.c: Likewise.
31430 * config/cris/cris.opt: Likewise.
31431 * config/rs6000/rs6000.c: Likewise.
31432 * target.h: Likewise.
31433 * spellcheck.c: Likewise.
31434 * ira-build.c: Likewise.
31435 * tree-inline.c: Likewise.
31436 * builtins.c: Likewise.
31437 * lra-constraints.c: Likewise.
31438 * explow.c: Likewise.
31439 * hwint.h: Likewise.
31440 * targhooks.c: Likewise.
31441 * tree-vect-data-refs.c: Likewise.
31442 * expr.c: Likewise.
31443 * doc/tm.texi: Likewise.
31444 * doc/extend.texi: Likewise.
31445 * doc/install.texi: Likewise.
31446 * doc/md.texi: Likewise.
31447 * tree-ssa-tail-merge.c: Likewise.
31448 * sched-int.h: Likewise.
31449 * match.pd: Likewise.
31450 * sched-ebb.c: Likewise.
31451 * target.def (omit_struct_return_reg): Likewise.
31452 * gimple-ssa-isolate-paths.c: Likewise.
31453 (find_implicit_erroneous_behaviour): Renamed to...
31454 (find_implicit_erroneous_behavior): ... this.
31455 (find_explicit_erroneous_behaviour): Renamed to...
31456 (find_explicit_erroneous_behavior): ... this.
31457 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
31458
31459 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
31460
31461 PR rtl-optimization/64682
31462 PR rtl-optimization/69567
31463 PR rtl-optimization/69737
31464 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
31465 in I2 as well, just lose it.
31466
31467 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31468
31469 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
31470 New variable.
31471 (aarch64_last_printed_tune_string): Likewise.
31472 (aarch64_declare_function_name): Only output .arch assembler
31473 directive if it will be different from the previously output
31474 directive. Same for .tune comment but only if -dA is set.
31475 (aarch64_start_file): New function.
31476 (TARGET_ASM_FILE_START): Define.
31477
31478 2016-02-11 David Malcolm <dmalcolm@redhat.com>
31479
31480 PR plugins/69758
31481 * Makefile.in (PLUGIN_HEADERS): Add params.list.
31482
31483 2016-02-11 Jakub Jelinek <jakub@redhat.com>
31484
31485 PR target/65313
31486 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
31487 -Wmaybe-uninitialized warning.
31488
31489 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
31490
31491 PR target/69713
31492 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
31493
31494 2016-02-11 Richard Biener <rguenther@suse.de>
31495
31496 PR rtl-optimization/69291
31497 * ifcvt.c (noce_try_store_flag_constants): Do not allow
31498 subexpressions affected by changing the result.
31499
31500 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
31501
31502 PR target/69148
31503 * lra-constraints.c (curr_insn_transform): Find in/out operands
31504 for secondary memory moves. Update dups.
31505
31506 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
31507
31508 PR tree-optimization/69652
31509 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
31510 to nested loop, did source re-formatting, skip debug statements,
31511 add check on statement with volatile operand, remove dead scalar
31512 statements.
31513
31514 2016-02-10 Jakub Jelinek <jakub@redhat.com>
31515 Patrick Palka <ppalka@gcc.gnu.org>
31516
31517 PR ipa/69241
31518 PR c++/69649
31519 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
31520 calls if the return type is TREE_ADDRESSABLE.
31521 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
31522 * ipa-split.c (split_function): Fix doubled "we" in comment.
31523 Use void return type for the split part even if
31524 !split_point->split_part_set_retval.
31525
31526 2016-02-10 Bin Cheng <bin.cheng@arm.com>
31527
31528 PR tree-optimization/68021
31529 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
31530 when computing the value of biv cand by itself.
31531
31532 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
31533
31534 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
31535 (cortexa57_tunings): Likewise.
31536 (cortexa72_tunings): Likewise.
31537 (arch_macro_fusion_pair_p): Add support for AES fusion.
31538 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
31539 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
31540 Allow virtual registers before reload so early scheduling works.
31541 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
31542 correct latency and pipeline.
31543 (cortex_a57_crypto_complex): Likewise.
31544 (cortex_a57_crypto_xor): Likewise.
31545 (define_bypass): Add AES bypass.
31546
31547 2016-02-10 Richard Biener <rguenther@suse.de>
31548
31549 PR tree-optimization/69726
31550 * passes.def: Add DCE pass before late uninit.
31551 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
31552 really fixup if-conversions job.
31553
31554 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
31555
31556 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
31557 (arm_cortex_a57_tune): Likewise.
31558 (aarch_macro_fusion_pair_p): Add support for AES fusion.
31559 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
31560
31561 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
31562
31563 * timevar.def (TV_PHASE_DBGINFO): Delete.
31564 (TV_PHASE_CHECK_DBGINFO): Likewise.
31565 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
31566
31567 2016-02-10 Richard Biener <rguenther@suse.de>
31568
31569 PR tree-optimization/69719
31570 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31571 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
31572
31573 2016-02-09 Andrew Pinski <apinski@cavium.com>
31574
31575 PR tree-opt/69282
31576 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
31577 get_vcond_mask_icode returns false.
31578
31579 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
31580
31581 PR target/68404
31582 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
31583 an ADDIS that adds a pointer to a large constant that sets the
31584 upper16 bits with a load operation.
31585
31586 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
31587
31588 PR target/68532
31589 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
31590 order.
31591 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
31592 endian.
31593 (vzipq_s16): Likewise.
31594 (vzipq_s32): Likewise.
31595 (vzipq_f32): Likewise.
31596 (vzipq_u8): Likewise.
31597 (vzipq_u16): Likewise.
31598 (vzipq_u32): Likewise.
31599 (vzipq_p8): Likewise.
31600 (vzipq_p16): Likewise.
31601
31602 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
31603
31604 PR target/68532
31605 * config/arm/arm.c (neon_endian_lane_map): New function.
31606 (neon_vector_pair_endian_lane_map): New function.
31607 (arm_evpc_neon_vuzp): Allow for big endian lane order.
31608 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
31609 endian.
31610 (vuzpq_s16): Likewise.
31611 (vuzpq_s32): Likewise.
31612 (vuzpq_f32): Likewise.
31613 (vuzpq_u8): Likewise.
31614 (vuzpq_u16): Likewise.
31615 (vuzpq_u32): Likewise.
31616 (vuzpq_p8): Likewise.
31617 (vuzpq_p16): Likewise.
31618
31619 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
31620
31621 PR target/69634
31622 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
31623 debug insns.
31624
31625 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
31626
31627 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
31628 truncate const_int operand 1 to QImode.
31629
31630 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
31631
31632 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
31633 corresponding to an abnormal edge.
31634
31635 2016-02-09 Tom de Vries <tom@codesourcery.com>
31636
31637 PR tree-optimization/69599
31638 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
31639 function.
31640 (find_func_aliases_for_builtin_call, find_func_clobbers)
31641 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
31642 partition.
31643
31644 2016-02-09 Richard Biener <rguenther@suse.de>
31645
31646 PR tree-optimization/69715
31647 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
31648 LHS on calls as non-rewritable.
31649
31650 2016-02-09 Tom de Vries <tom@codesourcery.com>
31651
31652 PR lto/69707
31653 * lto-wrapper.c (append_diag_options): New function.
31654 (compile_offload_image): Call append_diag_options.
31655
31656 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
31657
31658 PR other/69722
31659 * doc/extend.texi (Flag Output Operands): Correct sectioning.
31660 Minor copy-edit to fix verb tenses.
31661
31662 2016-02-08 Jakub Jelinek <jakub@redhat.com>
31663
31664 PR tree-optimization/69209
31665 * ipa-split.c (split_function): If split part is not
31666 returning retval, retval has gimple type but is not
31667 gimple value, force it into a SSA_NAME first.
31668
31669 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
31670
31671 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
31672 outdated section.
31673
31674 2016-02-08 Jason Merrill <jason@redhat.com>
31675
31676 PR c++/69631
31677 * convert.c (convert_to_integer_1): Check dofold on truncation
31678 distribution.
31679 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
31680 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
31681 Rename from *_nofold.
31682 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
31683 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
31684
31685 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
31686
31687 PR target/60410
31688 * tree.c (build_common_tree_nodes): Remove short_double argument.
31689 All callers changed.
31690 * tree.h (build_common_tree_nodes): Adjust declaration.
31691 * doc/invoke.texi (-fshort-double): Remove documentation.
31692 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
31693 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
31694 * lto-wrapper.c (merge_and_complain, append_compiler_options)
31695 (append_linker_options): Don't handle OPT_fshort_double.
31696
31697 PR rtl-optimization/68730
31698 * lra-remat.c (insn_to_cand_activation): New static variable.
31699 (lra_remat): Allocate and free it.
31700 (create_cand): New arg activation. Initialize a field in
31701 insn_to_cand_activation if it is nonnull.
31702 (create_cands): Pass the activation insn to create_cand when making
31703 a candidate involving an output reload. Reorganize code a little.
31704 (do_remat): Keep track of active status of candidates in a separate
31705 bitmap.
31706
31707 2016-02-08 Richard Biener <rguenther@suse.de>
31708
31709 PR tree-optimization/69719
31710 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31711 Properly use absolute of the difference of the two offsets to
31712 compare or adjust the segment length.
31713
31714 2016-02-08 Richard Biener <rguenther@suse.de>
31715 Jeff Law <law@redhat.com>
31716
31717 PR target/68273
31718 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
31719 types for anonymous SSA names.
31720
31721 2016-02-08 Richard Biener <rguenther@suse.de>
31722
31723 PR rtl-optimization/69274
31724 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
31725
31726 2016-02-08 Jeff Law <law@redhat.com>
31727
31728 PR tree-optimization/65917
31729 * tree-ssa-dom.c (record_temporary_equivalences): Record both
31730 equivalences from if (x == y) style conditionals.
31731 (loop_depth_of_name): Remove.
31732 (record_equality): Remove loop depth check.
31733 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
31734 (const_and_copies::record_const_or_copy_raw): New member function.
31735 * tree-ssa-scopedtables.c
31736 (const_and_copies::record_const_or_copy_raw): New, factored out of
31737 (const_and_copies::record_const_or_copy): Call new member function.
31738
31739 2016-02-05 Jeff Law <law@redhat.com>
31740
31741 PR tree-optimization/68541
31742 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
31743 (count_stmts_in_block): New function.
31744 (poor_ifcvt_candidate_code): Likewise.
31745 (is_feasible_trace): Add some heuristics to determine when path
31746 splitting is profitable.
31747 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
31748 is a diamond with a single exit.
31749
31750 2016-02-05 Martin Sebor <msebor@redhat.com>
31751
31752 PR c++/69662
31753 * doc/invoke.texi: Update -Wplacement-new to take an optional
31754 argument.
31755
31756 2016-02-06 Richard Henderson <rth@redhat.com>
31757
31758 PR c/69643
31759 * tree.c (tree_nop_conversion_p): Do not strip casts into or
31760 out of non-standard address spaces.
31761
31762 2016-02-05 Jakub Jelinek <jakub@redhat.com>
31763
31764 PR rtl-optimization/69691
31765 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
31766
31767 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
31768
31769 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
31770 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
31771 (*ieee128_mfvsrd_64bit): Likewise.
31772 (*ieee128_mfvsrd_32bit): Likewise.
31773
31774 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
31775
31776 PR target/69369
31777 Revert r232560:
31778 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
31779
31780 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
31781 instrumented_version.
31782
31783 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
31784
31785 * doc/invoke.texi (Optimize Options): In table of --param options
31786 rename second occurrence of tracer-min-branch-ratio to
31787 tracer-min-branch-probability, rename
31788 tracer-min-branch-ratio-feedback to
31789 tracer-min-branch-probability-feedback and clarify description,
31790 rename sched-spec-state-edge-prob-cutoff to
31791 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
31792 to selsched-insns-to-rename, rename lto-minpartition to
31793 lto-min-partition, delete reorder-blocks-duplicate and
31794 reorder-blocks-duplicate-feedback.
31795
31796 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31797
31798 * config/s390/s390.c (s390_register_info_set_ranges): Remove
31799 superfluous loops.
31800
31801 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
31802
31803 * doc/extend.texi: S/390: Correct some typos.
31804
31805 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31806
31807 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
31808
31809 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31810
31811 PR target/69625
31812 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
31813 (s390_register_info_gprtofpr): Use new macros above.
31814 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
31815 its name.
31816 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
31817 its name. Adjust restore and save gpr ranges.
31818 (s390_register_info_set_ranges): New function.
31819 (s390_register_info): Use new macros above. Call
31820 s390_register_info_set_ranges.
31821 (s390_optimize_register_info): Likewise.
31822 (s390_hard_regno_rename_ok): Use new macros.
31823 (s390_hard_regno_scratch_ok): Likewise.
31824 (s390_emit_epilogue): Likewise.
31825 (s390_can_use_return_insn): Likewise.
31826 (s390_optimize_prologue): Likewise.
31827 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
31828
31829 2016-02-05 Jakub Jelinek <jakub@redhat.com>
31830
31831 PR bootstrap/69677
31832 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
31833 alignment fixes.
31834 (ix86_option_override_internal): Disable TARGET_STV even for
31835 -m{incoming,preferred}-stack-boundary=3.
31836
31837 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31838
31839 * config.gcc: Mark deprecated rtems targets as obsolete.
31840
31841 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
31842
31843 PR rtl-optimization/64682
31844 PR rtl-optimization/69567
31845 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
31846 before I2 only if the register is both used and set in I2.
31847
31848 2016-02-04 DJ Delorie <dj@redhat.com>
31849
31850 * config/msp430/msp430.c (msp430_start_function): Add function type.
31851
31852 2016-02-04 Jakub Jelinek <jakub@redhat.com>
31853
31854 PR fortran/69368
31855 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
31856
31857 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
31858
31859 PR rtl-optimization/69577
31860 Revert:
31861 2015-10-29 Richard Henderson <rth@redhat.com>
31862
31863 PR target/68124
31864 PR rtl-opt/67609
31865 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
31866 sse check to the exact conditions of PR 67609.
31867
31868 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
31869
31870 PR target/69667
31871 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
31872 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
31873 not allowed into the traditional Altivec registers.
31874 (movtd_64bit_nodm): Likewise.
31875 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
31876
31877 2016-02-04 David Malcolm <dmalcolm@redhat.com>
31878
31879 * config/aarch64/cortex-a57-fma-steering.c
31880 (aarch64_register_fma_steering): Remove "static" from arguments
31881 to register_pass.
31882
31883 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
31884
31885 PR target/69619
31886 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
31887 twice when complex.
31888
31889 2016-02-04 Mike Frysinger <vapier@gentoo.org>
31890
31891 * doc/invoke.texi: Delete -mno-fma4.
31892
31893 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
31894
31895 PR rtl-optimization/69577
31896 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
31897 (find_subregs_of_mode): Update accordingly. Iterate over partial
31898 definitions.
31899
31900 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
31901
31902 * config/arm/arm-protos.h (neon_reinterpret): Remove.
31903 * config/arm/arm.c (neon_reinterpret): Remove.
31904 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
31905 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
31906 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
31907 vreinterpretti): Remove.
31908 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
31909 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
31910 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
31911 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
31912 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
31913 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
31914 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
31915 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
31916 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
31917 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
31918 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
31919 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
31920 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
31921 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
31922 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
31923 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
31924 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
31925 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
31926 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
31927 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
31928 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
31929 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
31930 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
31931 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
31932 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
31933 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
31934 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
31935 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
31936 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
31937 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
31938 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
31939 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
31940 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
31941 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
31942 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
31943 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
31944 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
31945 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
31946 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
31947 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
31948 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
31949 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
31950 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
31951 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
31952 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
31953 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
31954 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
31955 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
31956 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
31957 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
31958 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
31959 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
31960 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
31961 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
31962 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
31963 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
31964 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
31965 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
31966 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
31967 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
31968 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
31969 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
31970 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
31971 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
31972 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
31973 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
31974 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
31975 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
31976 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
31977 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
31978 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
31979 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
31980 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
31981 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
31982 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
31983 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
31984 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
31985 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
31986 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
31987 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
31988 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
31989 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
31990 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
31991 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
31992 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
31993 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
31994 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
31995 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
31996 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
31997 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
31998 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
31999 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
32000 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
32001 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
32002 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
32003 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
32004 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
32005 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
32006 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
32007 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
32008 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
32009 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
32010 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
32011
32012 2016-02-04 Martin Liska <mliska@suse.cz>
32013
32014 PR sanitizer/69276
32015 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
32016 that are gimple_store_p.
32017 (maybe_instrument_call): Likewise.
32018
32019 2016-02-04 Bin Cheng <bin.cheng@arm.com>
32020
32021 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
32022 register scaling out of memory reference and comment why.
32023
32024 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32025
32026 PR target/65932
32027 PR target/67714
32028 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
32029 folding the source of a SET.
32030
32031 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32032
32033 PR target/65932
32034 PR target/67714
32035 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
32036 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
32037
32038 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
32039
32040 PR target/65932
32041 PR target/67714
32042 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
32043 HImode.
32044
32045 2016-02-04 Christian Bruel <christian.bruel@st.com>
32046
32047 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
32048 * config/arm/arm.c (arm_set_current_function): Likewise.
32049
32050 2016-02-04 Jakub Jelinek <jakub@redhat.com>
32051 Ilya Enkovich <enkovich.gnu@gmail.com>
32052 H.J. Lu <hongjiu.lu@intel.com>
32053
32054 PR target/69454
32055 * config/i386/i386.c (convert_scalars_to_vector): Remove
32056 stack alignment fixes.
32057 (ix86_option_override_internal): Disable TARGET_STV if stack
32058 might not be aligned enough.
32059 (ix86_minimum_alignment): Assert that TARGET_STV is false.
32060
32061 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
32062
32063 * config/i386/x86-tune.def: Disable default prefetching
32064 for -march=znver1.
32065
32066 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
32067 Vladimir Makarov <vmakarov@redhat.com>
32068
32069 PR target/69461
32070 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
32071 in validating fused toc addresses.
32072
32073 2016-02-03 Jakub Jelinek <jakub@redhat.com>
32074
32075 PR c/69627
32076 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
32077 range->m_caret fields if range->m_show_caret_p is false.
32078
32079 PR target/69644
32080 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
32081 Force oldval into register if it does not satisfy reg_or_short_operand
32082 predicate. Fix up formatting.
32083
32084 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
32085 Alexandre Oliva <aoliva@redhat.com>
32086
32087 PR target/69461
32088 * lra-constraints.c (simplify_operand_subreg): Check additionally
32089 address validity after potential reloading.
32090 (process_address_1): Check insns validity. In case of failure do
32091 nothing.
32092
32093 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
32094
32095 PR target/69118
32096 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
32097 Fix target.
32098
32099 2016-02-02 Jakub Jelinek <jakub@redhat.com>
32100
32101 * wide-int.cc (canonize_uhwi): New function.
32102 (wi::divmod_internal): Use it.
32103
32104 2016-02-02 James Norris <jnorris@codesourcery.com>
32105
32106 * gimplify.c (omp_notice_variable): Add usage check.
32107
32108 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
32109
32110 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
32111 like LE, GE, LT, GT when emitting relational operator.
32112
32113 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
32114
32115 * ira-costs.c (find_costs_and_classes): Add extra argument.
32116 * target.def (ira_change_pseudo_allocno_class): Add parameter.
32117 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
32118 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
32119 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
32120 Add best_class parameter, and return it if not ALL_REGS.
32121 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
32122 Add parameter.
32123 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
32124 Update target hook.
32125
32126 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
32127
32128 * config/aarch64/aarch64.c
32129 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
32130 (aarch64_ira_change_pseudo_allocno_class): New function.
32131
32132 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
32133
32134 PR target/67032
32135 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
32136
32137 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32138
32139 * config/avr/avr.c (avr_option_override): Set
32140 PARAM_ALLOW_STORE_DATA_RACES to 1.
32141
32142 2016-02-02 Richard Biener <rguenther@suse.de>
32143
32144 PR tree-optimization/69595
32145 * match.pd: Add range test simplifications to true/false.
32146
32147 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
32148
32149 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
32150 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
32151 instead.
32152
32153 2016-02-02 Richard Biener <rguenther@suse.de>
32154
32155 PR tree-optimization/69606
32156 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
32157 info on the result before moving a stmt.
32158
32159 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
32160
32161 PR middle-end/68542
32162 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
32163 branch with vector comparison.
32164 * config/i386/sse.md (VI48_AVX): New mode iterator.
32165 (define_expand "cbranch<mode>4): Add support for conditional branch
32166 with vector comparison.
32167 * tree-vect-loop.c (optimize_mask_stores): New function.
32168 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
32169 has_mask_store field of vect_info.
32170 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
32171 vectorized loops having masked stores after vec_info destroy.
32172 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
32173 correspondent macros.
32174 (optimize_mask_stores): Add prototype.
32175
32176 2016-02-02 Alan Modra <amodra@gmail.com>
32177
32178 PR target/69548
32179 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
32180 allow subregs.
32181
32182 2016-02-02 Alan Modra <amodra@gmail.com>
32183
32184 PR target/68662
32185 * config/rs6000/rs6000.c (need_toc_init): New var, set it
32186 whenever toc_label_name used.
32187 (rs6000_file_start): Don't set up toc section here,
32188 (rs6000_output_function_epilogue): do so here instead,
32189 (rs6000_xcoff_file_start): and here.
32190 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
32191 (load_toc_aix_di): Likewise.
32192
32193 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32194
32195 PR rtl-optimization/69592
32196 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
32197 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
32198 (num_sign_bit_copies_binary_arith_p): New inline function.
32199 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
32200
32201 2016-02-01 Jeff Law <law@redhat.com>
32202
32203 PR tree-optimization/69580
32204 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
32205 * tree-ssa-threadbackward.c
32206 (fsm_find_control_statement_thread_paths): Do not try to walk
32207 through large PHI nodes.
32208
32209 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32210
32211 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
32212 when count is incremented above limit, don't analyze further
32213 insns afterwards.
32214
32215 * omp-low.c (oacc_parse_default_dims): Avoid
32216 -Wsign-compare warning, make sure value fits into int
32217 rather than just unsigned int.
32218
32219 2016-02-01 Bin Cheng <bin.cheng@arm.com>
32220
32221 PR tree-optimization/67921
32222 * fold-const.c (split_tree): New parameters. Convert pointer
32223 type variable part to proper type before negating.
32224 (fold_binary_loc): Pass new arguments to split_tree.
32225
32226 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
32227
32228 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
32229 (nvptx_goacc_validate_dims): Extend to handle global defaults.
32230 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
32231 * doc/tm.texti: Rebuilt.
32232 * doc/invoke.texi (fopenacc-dim): Document.
32233 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
32234 (append_compiler_options): Likewise.
32235 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
32236 (oacc_parse_default_dims): New.
32237 (oacc_validate_dims): Add USED arg. Select non-unity default when
32238 possible.
32239 (oacc_loop_fixed_partitions): Return mask of used partitions.
32240 (oacc_loop_auto_partitions): Emit dump info.
32241 (oacc_loop_partition): Return mask of used partitions.
32242 (execute_oacc_device_lower): Parse default dimension arg. Adjust
32243 loop partitioning and validation calls.
32244
32245 2016-02-01 Richard Biener <rguenther@suse.de>
32246
32247 PR middle-end/69556
32248 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
32249
32250 2016-02-01 Richard Biener <rguenther@suse.de>
32251
32252 PR tree-optimization/69574
32253 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
32254 of asserting return chrec_dont_know.
32255
32256 2016-02-01 Martin Liska <mliska@suse.cz>
32257
32258 * mem-stats-traits.h: Add copyright header.
32259 * mem-stats.h: Likewise.
32260
32261 2016-02-01 Richard Biener <rguenther@suse.de>
32262
32263 PR tree-optimization/69579
32264 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
32265 Do not propagate through abnormal PHI results.
32266
32267 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
32268
32269 * postreload.c (reload_cse_simplify): Remove dead code.
32270
32271 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32272
32273 PR rtl-optimization/69570
32274 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
32275 if there is more than one set, not if there is a single set.
32276
32277 2016-02-01 Richard Henderson <rth@redhat.com>
32278
32279 PR rtl-opt/69535
32280 * combine.c (make_compound_operation): When looking through a
32281 subreg, make sure to re-extend to the width of the outer mode.
32282
32283 2016-01-30 Jakub Jelinek <jakub@redhat.com>
32284
32285 PR tree-optimization/69546
32286 * wide-int.cc (wi::divmod_internal): For unsigned division
32287 where both operands fit into uhwi, if o1 is 1 and o0 has
32288 msb set, if divident_prec is larger than bits per hwi,
32289 clear another quotient word and return 2 instead of 1.
32290 Similarly for remainder with msb in HWI set, if dividend_prec
32291 is larger than bits per hwi.
32292
32293 2016-01-29 Martin Jambor <mjambor@suse.cz>
32294
32295 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
32296 Use short lowercase names.
32297 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
32298 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
32299 acq_rel one. Protect warning agains segfaults if
32300 get_memory_order_name returns NULL.
32301 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
32302 with release semantics. Do not warn if get_memory_order already did.
32303 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
32304 semantics. Fix check for relaxed or acquire semantics. Do not warn
32305 if get_memory_order already did.
32306
32307 2016-01-29 Sebastian Pop <s.pop@samsung.com>
32308
32309 * doc/install.texi: Document that isl-0.16 is supported.
32310
32311 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
32312
32313 PR target/69299
32314 * config/i386/constraints.md (Bm): Describe as special memory
32315 constraint.
32316 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
32317 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32318 * genpreds.c (struct constraint_data): Add is_special_memory.
32319 (have_special_memory_constraints, special_memory_start): New
32320 static vars.
32321 (special_memory_end): Ditto.
32322 (add_constraint): Add new arg is_special_memory. Add code to
32323 process its true value. Update have_special_memory_constraints.
32324 (process_define_constraint): Pass the new arg.
32325 (process_define_register_constraint): Ditto.
32326 (choose_enum_order): Process special memory.
32327 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
32328 function insn_extra_special_memory_constraint.
32329 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32330 * gensupport.c (process_rtx): Process
32331 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32332 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
32333 * ira-lives.c (single_reg_class): Use
32334 insn_extra_special_memory_constraint.
32335 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
32336 * lra-constraints.c (process_alt_operands): Ditto.
32337 (curr_insn_transform): Use insn_extra_special_memory_constraint.
32338 * recog.c (asm_operand_ok, preprocess_constraints): Process
32339 CT_SPECIAL_MEMORY.
32340 * reload.c (find_reloads): Ditto.
32341 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
32342 * stmt.c (parse_input_constraint): Use
32343 insn_extra_special_memory_constraint.
32344
32345 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
32346
32347 PR target/69530
32348 * lra-splill.c (lra_final_code_change): Revert r229087 by
32349 removing all sub-registers.
32350
32351 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
32352
32353 PR target/65604
32354 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
32355
32356 2016-01-29 Jakub Jelinek <jakub@redhat.com>
32357
32358 PR target/69551
32359 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
32360 SSE1, copy target into the temporary reg first before recursing
32361 on it.
32362
32363 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
32364
32365 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
32366 with vm.
32367
32368 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
32369
32370 * ginclude/stdarg.h: Test __cplusplus instead of
32371 __GXX_EXPERIMENTAL_CXX0X__.
32372
32373 2016-01-29 Richard Biener <rguenther@suse.de>
32374
32375 PR tree-optimization/69547
32376 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
32377 Do not mark clobbers necessary.
32378 (mark_all_reaching_defs_necessary_1): Likewise.
32379
32380 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
32381
32382 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
32383 declaration name with %qs and print it in both error messages.
32384 Also fix indentation.
32385
32386 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
32387
32388 PR other/69006
32389 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
32390 trailing blank line from error message.
32391
32392 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
32393
32394 PR c++/69462
32395 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
32396 for C++-11.
32397
32398 2016-01-29 Richard Biener <rguenther@suse.de>
32399
32400 PR middle-end/69537
32401 * match.pd: Allow all integral types when simplifying a
32402 widening or sign-changing conversion.
32403
32404 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32405
32406 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
32407 back to setting codegen_error to fail codegen.
32408
32409 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
32410
32411 PR target/69459
32412 * config/i386/constraints.md (C): Only accept constant zero operand.
32413 (BC): New constraint.
32414 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
32415 instead of C constraint.
32416 * doc/md.texi (Machine Constraints): Update description
32417 of C constraint.
32418
32419 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
32420
32421 PR target/68400
32422 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
32423
32424 2016-01-28 Jakub Jelinek <jakub@redhat.com>
32425
32426 PR middle-end/69542
32427 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
32428 non-debug insns.
32429
32430 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
32431
32432 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
32433 branches if using guessed profile.
32434
32435 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
32436
32437 * graphite-optimize-isl.c (optimize_isl): Fix dump.
32438
32439 2016-01-28 Richard Henderson <rth@redhat.com>
32440
32441 PR target/69305
32442 * config/aarch64/aarch64-modes.def (CC_Cmode): New
32443 * config/aarch64/aarch64-protos.h: Update.
32444 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
32445 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
32446 (aarch64_get_condition_code_1): Handle CC_Cmode.
32447 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
32448 (*add<mode>3_compareC_cconly_imm): New.
32449 (*add<mode>3_compareC_cconly): New.
32450 (*add<mode>3_compareC_imm): New.
32451 (add<mode>3_compareC): New.
32452 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
32453 to be first. Use aarch64_carry_operation.
32454 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
32455 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
32456 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
32457 (subti3): Use subdi3_compare1.
32458 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
32459 (sub<mode>3_compare1): New.
32460 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
32461 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
32462 (*subsi3_carryin_uxtw): Likewise.
32463 (*ngc<mode>, *ngcsi_uxtw): Likewise.
32464 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
32465 * config/aarch64/iterators.md (DWI): New.
32466 * config/aarch64/predicates.md (aarch64_carry_operation): New.
32467 (aarch64_borrow_operation): New.
32468
32469 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
32470
32471 * graphite-optimize-isl.c (optimize_isl): Print a different debug
32472 message when isl does not return a valid schedule.
32473
32474 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32475
32476 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
32477 Remove comments from class declarations: they are already in the code
32478 close by the defs.
32479
32480 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32481
32482 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
32483 codegen_error_p.
32484 (ternary_op_to_tree): Same.
32485 (unary_op_to_tree): Same.
32486 (nary_op_to_tree): Same.
32487 (gcc_expression_from_isl_expr_op): Same.
32488 (gcc_expression_from_isl_expression): Same.
32489 (graphite_create_new_loop): Same.
32490 (graphite_create_new_loop_guard): Same.
32491 (build_iv_mapping): Same.
32492 (graphite_create_new_guard): Same.
32493 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
32494 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
32495
32496 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32497
32498 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
32499 instead of setting codegen_error to fail codegen.
32500
32501 2016-01-28 Jason Merrill <jason@redhat.com>
32502
32503 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
32504
32505 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32506
32507 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
32508 Remove CONST_INT_P check in CCMP cost calculation.
32509
32510 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32511
32512 * config/aarch64/aarch64.c (generic_vector_cost):
32513 Set vec_permute_cost.
32514 (cortexa57_vector_cost): Likewise.
32515 (exynosm1_vector_cost): Likewise.
32516 (xgene1_vector_cost): Likewise.
32517 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
32518 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
32519 Add vec_permute_cost entry.
32520
32521 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32522
32523 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
32524 immediate as %1.
32525 (add<mode>3_compare0): Likewise.
32526 (addsi3_compare0_uxtw): Likewise.
32527 (add<mode>3nr_compare0): Likewise.
32528 (compare_neg<mode>): Likewise.
32529 (<optab><mode>3): Likewise.
32530
32531 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
32532
32533 * tree-vect-stmts.c (vectorizable_comparison): Add
32534 NULL check for vectype.
32535
32536 2016-01-28 Richard Biener <rguenther@suse.de>
32537
32538 PR tree-optimization/69466
32539 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
32540 Account for PHIs we couldn't duplicate.
32541
32542 2016-01-28 Martin Liska <mliska@suse.cz>
32543
32544 PR pch/68758
32545 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
32546 instead of ENABLE_VALGRIND_CHECKING.
32547
32548 2016-01-27 Richard Henderson <rth@redhat.com>
32549
32550 PR rtl-opt/69447
32551 * lra-remat.c (subreg_regs): New.
32552 (dump_candidates_and_remat_bb_data): Dump it.
32553 (operand_to_remat): Reject if operand in subreg_regs.
32554 (set_bb_regs): Collect subreg_regs.
32555 (lra_remat): Init and free subreg_regs. Compute
32556 calculate_local_reg_remat_bb_data before create_cands.
32557
32558 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
32559
32560 PR target/68986
32561 * config/i386/i386.c (ix86_update_stack_boundary): Don't
32562 change stack_alignment_needed for __tls_get_addr call.
32563
32564 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
32565
32566 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
32567
32568 2016-01-27 Jeff Law <law@redhat.com>
32569
32570 PR tree-optimization/68398
32571 PR tree-optimization/69196
32572 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
32573 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
32574 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
32575 Only count PHIs in the last block in the path. The others will
32576 const/copy propagate away. Add heuristic to allow more irreducible
32577 subloops to be created when it is likely profitable to do so.
32578
32579 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
32580 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
32581 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
32582
32583 2016-01-27 Jakub Jelinek <jakub@redhat.com>
32584
32585 PR lto/69254
32586 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
32587 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
32588 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
32589 * tree-streamer-in.c: Include asan.h.
32590 (streamer_get_builtin_tree): For builtins in sanitizer
32591 range call initialize_sanitizer_builtins and retry.
32592
32593 2016-01-27 Ian Lance Taylor <iant@google.com>
32594
32595 * common.opt (fkeep-gc-roots-live): New undocumented option.
32596 * tree-ssa-loop-ivopts.c (add_candidate_1): If
32597 -fkeep-gc-roots-live, skip pointers.
32598 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
32599 NULL.
32600
32601 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
32602
32603 PR target/69512
32604 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
32605 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
32606
32607 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
32608
32609 PR target/68380
32610 * configure.ac: NetBSD provides SSP in its C library.
32611 * configure: Updated.
32612
32613 2016-01-27 Richard Biener <rguenther@suse.de>
32614
32615 PR tree-optimization/69166
32616 * tree-vect-loop.c (vect_is_simple_reduction): Always check
32617 reduction code for commutativity / associativity.
32618
32619 2016-01-27 Martin Jambor <mjambor@suse.cz>
32620
32621 PR tree-optimization/69355
32622 * tree-sra.c (analyze_access_subtree): Correct hole detection when
32623 total_scalarization fails.
32624
32625 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
32626
32627 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
32628 power9.
32629
32630 2016-01-27 Christian Bruel <christian.bruel@st.com>
32631
32632 PR target/69245
32633 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
32634 Move arm_reset_previous_fndecl and set_target_option_current_node in
32635 the conditional part. Call save_restore_target_globals.
32636 * config/arm/arm.c (arm_set_current_function):
32637 Refactor to better support #pragma target and attribute mix.
32638 Call save_restore_target_globals.
32639 * config/arm/arm-protos.h (save_restore_target_globals): New function.
32640
32641 2016-01-27 Martin Liska <mliska@suse.cz>
32642
32643 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
32644 reference for an HSA kernel and its host function.
32645
32646 2016-01-27 Jakub Jelinek <jakub@redhat.com>
32647
32648 PR tree-optimization/69399
32649 * wide-int.h (wi::lrshift): For larger precisions, only
32650 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
32651
32652 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
32653
32654 * config/arc/predicates.md (proper_comparison_operator): Reject
32655 constant-constant comparison.
32656
32657 2016-01-26 Tom de Vries <tom@codesourcery.com>
32658
32659 PR tree-optimization/69110
32660 * tree-data-ref.c (initialize_data_dependence_relation): Handle
32661 DR_NUM_DIMENSIONS == 0.
32662
32663 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
32664 Sebastian Pop <s.pop@samsung.com>
32665
32666 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
32667 isl_ast_op_cond and isl_ast_op_select.
32668 (gcc_expression_from_isl_expr_op): Same.
32669
32670 2016-01-26 Jason Merrill <jason@redhat.com>
32671
32672 PR c++/68782
32673 * tree.c (recompute_constructor_flags): Split out from
32674 build_constructor.
32675 (verify_constructor_flags): New.
32676 * tree.h: Declare them.
32677
32678 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
32679
32680 PR rtl-optimization/69217
32681 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
32682 are no TYPE_FIELDS set for the record type.
32683
32684 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32685
32686 PR target/68662
32687 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
32688 toc_label_name unconditionally.
32689 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
32690 SYMBOL_REF string. Use toc_label_name instead of constructing
32691 LCTOC1.
32692 (rs6000_elf_declare_function_name): Use toc_label_name instead of
32693 constructing LCTOC1.
32694
32695 2016-01-26 Martin Sebor <msebor@redhat.com>
32696
32697 PR other/69477
32698 * doc/extend.texi (Common Type Attributes): Move text that talks about
32699 attribute packed from attribute aligned to the section discussing
32700 the former attribute for clarity.
32701
32702 2016-01-26 Richard Henderson <rth@redhat.com>
32703
32704 PR middle-end/60908
32705 * trans-mem.c (tm_region_init): Mark entry block as visited.
32706
32707 2016-01-26 David Malcolm <dmalcolm@redhat.com>
32708
32709 PR other/69006
32710 * diagnostic-show-locus.c (layout::print_source_line): Replace
32711 call to pp_newline with call to layout::print_newline.
32712 (layout::print_annotation_line): Likewise.
32713 (layout::move_to_column): Likewise.
32714 (layout::print_any_fixits): After printing any fixits, print a
32715 trailing newline, if necessary.
32716 (layout::print_newline): New method, resetting any colorization
32717 before a newline.
32718 (diagnostic_show_locus): Move the pp_newline to before the
32719 early bailout. Remove dummy block enclosing the layout instance.
32720 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
32721 of pp_newline_and_flush with pp_flush.
32722 (diagnostic_append_note): Delete use of pp_newline.
32723 (diagnostic_append_note_at_rich_loc): Delete.
32724 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
32725 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
32726 when newline characters are added to the buffer.
32727
32728 2016-01-26 Michael Matz <matz@suse.de>
32729
32730 * configure.ac (ac_cv_std_swap_in_utility): New test.
32731 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
32732 * configure: Regenerate.
32733 * config.in: Regenerate.
32734
32735 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
32736
32737 * config/arc/arc.md (cstoresi4): Force operand into register.
32738 (arcset<code>): Fix predicate.
32739 (arcsetltu): Likewise.
32740 (arcsetgeu): Likewise.
32741 (arcsethi): Likewise.
32742 (arcsetls): Likewise.
32743
32744 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32745
32746 PR tree-optimization/69483
32747 * gimple-fold.c (canonicalize_constructor_val): Return NULL
32748 if base has error_mark_node type.
32749
32750 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
32751
32752 PR target/68620
32753 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
32754 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
32755 New helper macros.
32756 (vget_lane_f16): Handle big-endian.
32757 (vgetq_lane_f16): Likewise.
32758 (vset_lane_f16): Likewise.
32759 (vsetq_lane_f16): Likewise.
32760 * config/arm/iterators.md (VQXMOV): Add V8HF.
32761 (VDQ): Add V4HF and V8HF.
32762 (V_reg): Handle V4HF and V8HF.
32763 (Is_float_mode): Likewise.
32764 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
32765 neon_vdup_nv8hf): New patterns.
32766 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
32767 Use VD_LANE iterator.
32768 (neon_vld1_dup<mode>): Use VQ2 iterator.
32769
32770 2016-01-26 Nathan Sidwell <nathan@acm.org>
32771
32772 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
32773 (set_oacc_fn_attrib): Add IS_KERNEL arg.
32774 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
32775 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
32776 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
32777 (oacc_validate_dims): Add LEVEL arg, don't return level.
32778 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
32779 oacc_validate_dims.
32780 (execute_oacc_device_lower): Adjust, add more dump output.
32781 * tree-ssa-loop.c (gate_oacc_kernels): Use
32782 oacc_fn_attrib_kernels_p.
32783 * tree-parloops.c (create_parallel_loop): Adjust
32784 set_oacc_fn_attrib call.
32785
32786 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32787
32788 PR lto/69254
32789 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
32790 (append_compiler_options): Handle -fcilkplus.
32791 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
32792
32793 2016-01-26 Nick Clifton <nickc@redhat.com>
32794
32795 PR target/66655
32796 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
32797 been marked as DECL_ONE_ONLY but we do not the means to make it
32798 so, then do not allow it to bind locally.
32799
32800 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32801
32802 PR lto/69254
32803 * opts.h (parse_sanitizer_options): New prototype.
32804 * opts.c (sanitizer_opts): New array.
32805 (parse_sanitizer_options): New function.
32806 (common_handle_option): Use parse_sanitizer_options.
32807
32808 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
32809
32810 PR target/68986
32811 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
32812 alignment adjustment to ...
32813 (ix86_update_stack_boundary): Here. Don't over-align stack for
32814 __tls_get_addr.
32815 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
32816 if __tls_get_addr is called.
32817
32818 2016-01-26 Christian Bruel <christian.bruel@st.com>
32819
32820 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
32821
32822 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
32823
32824 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
32825
32826 2016-01-26 Richard Biener <rguenther@suse.de>
32827
32828 PR middle-end/69467
32829 * match.pd: Guard X * CST CMP 0 pattern with single_use.
32830
32831 2016-01-26 Richard Biener <rguenther@suse.de>
32832
32833 PR tree-optimization/69452
32834 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
32835 (move_computations_dom_walker::before_dom_children): Rename
32836 to ...
32837 (move_computations_worker): This.
32838 (move_computations): Perform an RPO rather than a DOM walk.
32839
32840 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32841
32842 PR target/69442
32843 * combine.c (combine_instructions): For REG_EQUAL note with
32844 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
32845 to the underlying register.
32846 * doc/rtl.texi (REG_EQUAL): Document the behavior of
32847 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
32848
32849 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
32850
32851 PR target/67896
32852 * config/aarch64/aarch64-builtins.c
32853 (aarch64_init_simd_builtin_types): Do not set structural
32854 equality to __Poly{8,16,64,128}_t types.
32855
32856 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
32857
32858 PR tree-optimization/69400
32859 * wide-int.cc (wi_pack): Take the precision as argument and
32860 perform canonicalization here rather than in the callers.
32861 Use the main loop to handle all full-width HWIs. Add a
32862 zero HWI if in_len isn't a full result.
32863 (wi::divmod_internal): Update accordingly.
32864 (wi::mul_internal): Likewise. Simplify.
32865
32866 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
32867 Sebastian Pop <s.pop@samsung.com>
32868
32869 * graphite-poly.c (apply_poly_transforms): Simplify.
32870 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
32871 (print_isl_map): Same.
32872 (print_isl_union_map): Same.
32873 (print_isl_schedule): New.
32874 (debug_isl_schedule): New.
32875 * graphite-dependences.c (scop_get_reads): Do not call
32876 isl_union_map_add_map that is undocumented isl functionality.
32877 (scop_get_must_writes): Same.
32878 (scop_get_may_writes): Same.
32879 (scop_get_original_schedule): Remove.
32880 (scop_get_dependences): Do not call isl_union_map_compute_flow that
32881 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
32882 (compute_deps): Remove.
32883 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
32884 (debug_schedule_ast): New.
32885 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
32886 set_separate_option.
32887 (graphite_regenerate_ast_isl): Add dump.
32888 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
32889 from scop->transformed_schedule.
32890 (graphite_regenerate_ast_isl): Add more dump.
32891 * graphite-optimize-isl.c (optimize_isl): Set
32892 scop->transformed_schedule. Check whether schedules are equal.
32893 (apply_poly_transforms): Move here.
32894 * graphite-poly.c (apply_poly_transforms): ... from here.
32895 (free_poly_bb): Static.
32896 (free_scop): Static.
32897 (pbb_number_of_iterations_at_time): Remove.
32898 (print_isl_ast): New.
32899 (debug_isl_ast): New.
32900 (debug_scop_pbb): New.
32901 * graphite-scop-detection.c (print_edge): Move.
32902 (print_sese): Move.
32903 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
32904 (build_scop_scattering): Remove.
32905 (create_pw_aff_from_tree): Assert instead of bailing out.
32906 (add_condition_to_pbb): Remove unused code, do not fail.
32907 (add_conditions_to_domain): Same.
32908 (add_conditions_to_constraints): Remove.
32909 (build_scop_context): New.
32910 (add_iter_domain_dimension): New.
32911 (build_iteration_domains): Initialize pbb->iterators.
32912 Call add_conditions_to_domain.
32913 (nested_in): New.
32914 (loop_at): New.
32915 (index_outermost_in_loop): New.
32916 (index_pbb_in_loop): New.
32917 (outermost_pbb_in): New.
32918 (add_in_sequence): New.
32919 (add_outer_projection): New.
32920 (outer_projection_mupa): New.
32921 (add_loop_schedule): New.
32922 (build_schedule_pbb): New.
32923 (build_schedule_loop): New.
32924 (embed_in_surrounding_loops): New.
32925 (build_schedule_loop_nest): New.
32926 (build_original_schedule): New.
32927 (build_poly_scop): Call build_original_schedule.
32928 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
32929 (free_poly_dr): Remove.
32930 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
32931 (free_poly_bb): Remove.
32932 (debug_loop_vec): Remove.
32933 (print_isl_ast): Declare.
32934 (debug_isl_ast): Declare.
32935 (scop_do_interchange): Remove.
32936 (scop_do_strip_mine): Remove.
32937 (scop_do_block): Remove.
32938 (flatten_all_loops): Remove.
32939 (optimize_isl): Remove.
32940 (pbb_number_of_iterations_at_time): Remove.
32941 (debug_scop_pbb): Declare.
32942 (print_schedule_ast): Declare.
32943 (debug_schedule_ast): Declare.
32944 (struct scop): Remove schedule. Add original_schedule,
32945 transformed_schedule.
32946 (free_gimple_poly_bb): Remove.
32947 (print_generated_program): Remove.
32948 (debug_generated_program): Remove.
32949 (unify_scattering_dimensions): Remove.
32950 * sese.c (print_edge): ... here.
32951 (print_sese): ... here.
32952 (debug_edge): ... here.
32953 (debug_sese): ... here.
32954 * sese.h (print_edge): Declare.
32955 (print_sese): Declare.
32956 (dump_edge): Declare.
32957 (dump_sese): Declare.
32958
32959 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
32960 Sebastian Pop <s.pop@samsung.com>
32961
32962 * Makefile.in: Set ISLVER in site.exp.
32963
32964 2016-01-25 Jakub Jelinek <jakub@redhat.com>
32965
32966 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
32967 DECL_VALUE_EXPR of new_var even for the non-array case. Look
32968 through DECL_VALUE_EXPR for expansion.
32969
32970 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
32971
32972 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
32973 the frame info after reload completed.
32974
32975 2016-01-25 Jeff Law <law@redhat.com>
32976
32977 PR tree-optimization/69196
32978 PR tree-optimization/68398
32979 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
32980 tree-ssa-threadupdate.c.
32981 (determine_bb_domination_status): Prototype
32982 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
32983 (determine_bb_domination_status): No longer static.
32984 (valid_jump_thread_path): Remove code to detect characteristics
32985 of the jump thread path not associated with correctness.
32986 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
32987 Correct test for thread path length. Count PHIs for real operands as
32988 statements that need to be copied. Do not count ASSERT_EXPRs.
32989 Look at all the blocks in the thread path. Compute and selectively
32990 filter thread paths based on threading through the latch, threading
32991 a multiway branch or crossing a multiway branch.
32992
32993 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32994
32995 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
32996 decl with __attribute__ ((unused)) annotation.
32997
32998 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
32999
33000 PR target/69421
33001 * tree-vect-stmts.c (vectorizable_condition): Check vectype
33002 of operands is compatible with a statement vectype.
33003
33004 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
33005
33006 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
33007 improve wording for mixed storage order support.
33008
33009 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
33010
33011 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
33012 (vcvt_u64_f64): Likewise.
33013 (vcvta_s64_f64): Likewise.
33014 (vcvta_u64_f64): Likewise.
33015 (vcvtm_s64_f64): Likewise.
33016 (vcvtm_u64_f64): Likewise.
33017 (vcvtn_s64_f64): Likewise.
33018 (vcvtn_u64_f64): Likewise.
33019 (vcvtp_s64_f64): Likewise.
33020 (vcvtp_u64_f64): Likewise.
33021
33022 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
33023
33024 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
33025 (arc_init): Check validity mll64 option.
33026 (arc_save_restore): Use double load/store instruction.
33027 (arc_expand_movmem): Likewise.
33028 (arc_split_move): Don't split if we have double load/store
33029 instructions. Returns a boolean.
33030 (arc_process_double_reg_moves): Change function to return boolean
33031 instead of a sequence of instructions.
33032 (arc_dwarf_register_span): New function.
33033 * config/arc/arc-protos.h (arc_split_move): Change prototype.
33034 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
33035 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
33036 (*movdf_insn): Likewise.
33037 * config/arc/arc.opt (mll64): New option.
33038 * config/arc/predicates.md (even_register_operand): New predicate.
33039 * doc/invoke.texi (ARC Options): Add mll64 documentation.
33040
33041 2016-01-25 Richard Biener <rguenther@suse.de>
33042
33043 PR lto/69393
33044 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
33045 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
33046 DECL_NAMELESS.
33047 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
33048
33049 2016-01-25 Richard Biener <rguenther@suse.de>
33050
33051 PR tree-optimization/69376
33052 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
33053 flag.
33054 (VN_INFO_ANTI_RANGE_P): New inline.
33055 (VN_INFO_RANGE_TYPE): Likewise.
33056 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
33057 SSA_NAME_ANTI_RANGE_P.
33058 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
33059 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33060 Properly query VN_INFO_RANGE_TYPE.
33061
33062 2016-01-25 Nick Clifton <nickc@redhat.com>
33063
33064 PR target/66655
33065 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
33066
33067 2016-01-23 Tom de Vries <tom@codesourcery.com>
33068
33069 PR tree-optimization/69426
33070 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
33071 removed clobber.
33072
33073 2016-01-23 Jakub Jelinek <jakub@redhat.com>
33074
33075 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
33076 "the the" with "the" in the comments.
33077 * ipa-devirt.c (build_type_inheritance_graph,
33078 update_type_inheritance_graph): Likewise.
33079 * tree.c (build_function_type_list_1): Likewise.
33080 * cfgloopmanip.c (scale_loop_profile): Likewise.
33081 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
33082 * gimple-ssa-split-paths.c
33083 (find_block_to_duplicate_for_splitting_paths): Likewise.
33084 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
33085 * expr.c (convert_move): Likewise.
33086 * var-tracking.c (vt_stack_adjustments): Likewise.
33087 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
33088 * tree-vrp.c (test_for_singularity): Likewise.
33089
33090 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
33091 directly instead of building a temporary tree.
33092
33093 PR bootstrap/69434
33094 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
33095 remove <algorithm> include.
33096
33097 2016-01-22 Jakub Jelinek <jakub@redhat.com>
33098
33099 PR target/69432
33100 * config/i386/i386.c: Include dojump.h.
33101 (expand_small_movmem_or_setmem,
33102 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
33103 fixes.
33104 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
33105 if dynamic_check != -1.
33106
33107 2016-01-21 Jeff Law <law@redhat.com>
33108
33109 PR middle-end/69347
33110 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
33111 record_temporary_equivalences. Rewritten to avoid unnecessary calls
33112 into dominated_by_p.
33113 (cprop_into_successor_phis): Avoid unnecessary tests.
33114
33115 2016-01-22 Richard Henderson <rth@redhat.com>
33116
33117 PR target/69416
33118 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
33119 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
33120
33121 2016-01-22 Michael Matz <matz@suse.de>
33122
33123 * system.h (string, algorithm): Include only conditionally.
33124 (new): Include always under C++.
33125 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
33126 * final.c (toplevel): Ditto.
33127 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
33128 * genconditions.c (write_header): Make gencondmd.c define
33129 INCLUDE_STRING.
33130 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
33131
33132 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
33133 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
33134
33135 2016-01-22 Christian Bruel <christian.bruel@st.com>
33136
33137 PR target/68674
33138 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
33139
33140 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33141
33142 PR target/69403
33143 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
33144 define_insn_and_split. Ensure operands[1] and operands[0] do not
33145 get assigned the same register.
33146
33147 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
33148
33149 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
33150
33151 2016-01-22 Christian Bruel <christian.bruel@st.com>
33152
33153 * config/arm/arm-c.c (arm_pragma_target_parse):
33154 Remove warn_builtin_macro_redefined overwrite.
33155
33156 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
33157
33158 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
33159 flag_non_call_exceptions compatibility.
33160
33161 2016-01-22 Jakub Jelinek <jakub@redhat.com>
33162
33163 PR debug/66668
33164 * dwarf2out.c (add_child_die_after): New function.
33165 (dwarf_qual_info_t): New type.
33166 (dwarf_qual_info): New variable.
33167 (qualified_die_p): New function.
33168 (modified_type_die): For -fdebug-types-section, ensure
33169 canonical order of qualifiers. Put qualified DIEs adjacent
33170 to the corresponding non-qualified type DIE and search there
33171 for existing qualified DIEs.
33172
33173 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
33174
33175 * doc/extend.texi (scalar_storage_order type attribute): Document
33176 restriction on type punning and aliasing, and remove future tense.
33177
33178 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
33179
33180 PR target/69252
33181 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
33182 first stage.
33183
33184 2016-01-21 Jeff Law <law@redhat.com>
33185
33186 PR middle-end/69347
33187 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
33188 useless call to record_temporary_equivalences.
33189 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
33190 allocate 10 slots in the bb_path vector and let it grow as needed.
33191 (fsm_find_control_statement_thread_paths): Similarly for the next_path
33192 vector.
33193
33194 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
33195
33196 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
33197 Detangle.
33198 * configure: Regenerate.
33199
33200 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
33201
33202 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
33203 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
33204
33205 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
33206
33207 PR middle-end/66178
33208 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
33209 drop EXPAND_INITIALIZER.
33210 * rtl.h (contains_symbolic_reference_p): Declare.
33211 * rtlanal.c (contains_symbolic_reference_p): New function.
33212 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
33213 a subtraction into a NOT if symbolic constants are involved.
33214
33215 2016-01-21 Anton Blanchard <anton@samba.org>
33216 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33217
33218 PR target/63354
33219 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
33220 #define.
33221 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
33222 function.
33223
33224 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
33225
33226 * config/microblaze/microblaze.c
33227 (get_branch_target): New.
33228 (insert_wic_for_ilb_runout): New.
33229 (insert_wic): New.
33230 (microblaze_machine_dependent_reorg): New.
33231 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
33232 * config/microblaze/microblaze.md
33233 (UNSPEC_IPREFETCH): Define.
33234 (iprefetch): New pattern
33235 * config/microblaze/microblaze.opt
33236 (mxl-prefetch): New flag.
33237
33238 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
33239
33240 * config/microblaze/microblaze.h
33241 (FIXED_REGISTERS): Update in macro.
33242 (CALL_USED_REGISTERS): Update in macro.
33243
33244 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
33245
33246 PR rtl-optimization/68920
33247 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
33248 moves.
33249
33250 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
33251
33252 PR rtl-optimization/68990
33253 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
33254 pseudo instead of inheritance ones.
33255
33256 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33257 Nick Clifton <nickc@redhat.com>
33258
33259 PR target/69129
33260 PR target/69012
33261 * config/mips/mips.c (mips_compute_frame_info): Initialise
33262 args_size and hard_frame_pointer_offset fields of the frame
33263 structure before calling mips_global_pointer.
33264
33265 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
33266
33267 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
33268 label reference.
33269 * configure: Regenerate.
33270
33271 2016-01-21 Richard Biener <rguenther@suse.de>
33272
33273 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
33274
33275 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
33276
33277 * config/s390/s390.c (s390_asm_declare_function_size): Add code
33278 to actually emit the .size directive.
33279
33280 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
33281 Jakub Jelinek <jakub@redhat.com>
33282
33283 PR target/69187
33284 PR target/65624
33285 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
33286 args array size by one to avoid buffer overflow.
33287
33288 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
33289
33290 * config/s390/s390.md (pool_section_start): Use switch_to_section
33291 to select proper read-only data section instead of hardcoding
33292 .rodata.
33293 (pool_section_end): Use switch_to_section to match the above.
33294
33295 2016-01-21 Richard Biener <rguenther@suse.de>
33296
33297 PR tree-optimization/69378
33298 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
33299 (set_ssa_val_to): Use it for dominance checks taking into
33300 account not executable edges.
33301
33302 2016-01-21 Jakub Jelinek <jakub@redhat.com>
33303
33304 PR c++/69355
33305 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
33306 for bitsize instead of GET_MODE_PRECISION (mode).
33307
33308 2016-01-20 Martin Sebor <msebor@redhat.com>
33309
33310 PR c/52291
33311 * extend.texi (__sync Builtins): Clarify the semantics of
33312 __sync_fetch_and_OP built-ins on pointers.
33313 (__atomic Builtins): Same.
33314
33315 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33316 Sebastian Pop <s.pop@samsung.com>
33317
33318 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
33319 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
33320 (is_valid_rename): Same.
33321 (translate_isl_ast_to_gimple::get_rename): Same.
33322 (translate_isl_ast_to_gimple::rename_all_uses): Same.
33323 (translate_isl_ast_to_gimple::rename_uses): Same.
33324 (get_new_name): Check for close_phi nodes.
33325 (copy_loop_phi_args): Use phi_node_kind.
33326 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
33327 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
33328
33329 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33330 Sebastian Pop <s.pop@samsung.com>
33331
33332 Revert commit r229783.
33333 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
33334 Remove use of parameter_rename_map.
33335 (copy_def): Remove.
33336 (copy_internal_parameters): Remove.
33337 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
33338 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
33339 (free_sese_info): Do not free parameter_rename_map.
33340 (set_rename): Do not use parameter_rename_map.
33341 (rename_uses): Update call to set_rename.
33342 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
33343 * sese.h (parameter_rename_map_t): Remove.
33344 (struct sese_info_t): Remove field parameter_rename_map.
33345
33346 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33347 Sebastian Pop <s.pop@samsung.com>
33348
33349 * graphite-isl-ast-to-gimple.c: Fix comment.
33350 * graphite-scop-detection.c (defined_in_loop_p): New.
33351 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
33352 names defined in loop.
33353
33354 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33355 Sebastian Pop <s.pop@samsung.com>
33356
33357 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
33358 Discard unstructured if-then-else regions.
33359
33360 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33361 Sebastian Pop <s.pop@samsung.com>
33362
33363 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
33364 (cleanup_loop_iter_dom): Remove.
33365 (build_loop_iteration_domains): Remove.
33366 (build_scop_context): Remove.
33367 (build_scop_iteration_domain): Remove.
33368 (add_loop_constraints): New.
33369 (build_iteration_domains): New.
33370 (build_poly_scop): Call build_iteration_domains.
33371
33372 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33373 Sebastian Pop <s.pop@samsung.com>
33374
33375 * graphite-scop-detection.c
33376 (scop_detection::harmful_loop_in_region): Free dom and loops.
33377 (scop_detection::loop_body_is_valid_scop): Free bbs.
33378
33379 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33380 Sebastian Pop <s.pop@samsung.com>
33381
33382 * graphite-scop-detection.c (record_loop_in_sese): New.
33383 (gather_bbs::before_dom_children): Call record_loop_in_sese.
33384 (build_scops): Remove call to build_sese_loop_nests.
33385 * sese.c (sese_record_loop): Remove.
33386 (build_sese_loop_nests): Remove.
33387 (new_sese_info): Remove region->loops.
33388 (free_sese_info): Same.
33389 * sese.h (sese_contains_loop): Same.
33390 (build_sese_loop_nests): Remove.
33391 (sese_contains_loop): Remove.
33392
33393 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33394 Sebastian Pop <s.pop@samsung.com>
33395
33396 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
33397 loop_is_valid_in_scop.
33398 (scop_detection::harmful_stmt_in_region): Renamed
33399 harmful_loop_in_region.
33400 Call loop_is_valid_in_scop.
33401
33402 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33403 Sebastian Pop <s.pop@samsung.com>
33404
33405 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
33406 isl_ast_node_mark.
33407
33408 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33409 Sebastian Pop <s.pop@samsung.com>
33410
33411 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
33412 * graphite.h (struct poly_bb): Remove field is_reduction.
33413 (PBB_IS_REDUCTION): Remove.
33414
33415 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33416 Sebastian Pop <s.pop@samsung.com>
33417
33418 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
33419 (add_pdr_constraints): Same.
33420 (scop_get_reads): Same.
33421 (scop_get_must_writes): Same.
33422 (scop_get_may_writes): Same.
33423 (scop_get_original_schedule): Same.
33424 (extend_schedule): Same.
33425 (apply_schedule_on_deps): Same.
33426 (carries_deps): Same.
33427 (compute_deps): Same.
33428 (scop_get_dependences): Same.
33429 * graphite-isl-ast-to-gimple.c
33430 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
33431 * graphite-optimize-isl.c (get_schedule_for_band): Same.
33432 (get_schedule_for_band_list): Same.
33433 (get_schedule_map): Same.
33434 (apply_schedule_map_to_scop): Same.
33435 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
33436 (build_loop_iteration_domains): Same.
33437 (add_condition_to_pbb): Same.
33438 (add_param_constraints): Same.
33439 (pdr_add_memory_accesses): Same.
33440 (pdr_add_data_dimensions): Same.
33441
33442 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
33443
33444 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
33445 requirements.
33446
33447 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
33448
33449 * common.opt (feliminate-dwarf2-dups): Replace references to
33450 "DWARF 2" with just "DWARF".
33451 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
33452 * doc/extend.texi: Likewise.
33453 * doc/cpp.texi: Likewise.
33454 * doc/invoke.texi: Likewise.
33455 (Option Summary): Add -gdwarf to list of Debugging Options.
33456 (Debugging Options): Document -gdwarf.
33457 * doc/contrib.texi: Spell "DWARF" like that.
33458
33459 2016-01-21 Jakub Jelinek <jakub@redhat.com>
33460
33461 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
33462 warning. Fix up formatting.
33463
33464 PR middle-end/67653
33465 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
33466 attempt to mark memory input operand addressable and
33467 call prepare_gimple_addressable in that case. Don't adjust
33468 input_location for diagnostics, use error_at instead.
33469
33470 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
33471
33472 * config/rs6000/ppc-auxv.h: New file.
33473 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
33474 (cpu_is): Likewise.
33475 (cpu_supports): Likewise.
33476 * config/rs6000/rs6000.c: include "ppc-auxv.h".
33477 (cpu_is_info): New variable.
33478 (cpu_supports_info): Likewise.
33479 (tcb_verification_symbol): Likewise.
33480 (cpu_builtin_p): Likewise.
33481 (cpu_expand_builtin): New function.
33482 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
33483 (rs6000_init_builtins): Likewise.
33484 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
33485 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
33486 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
33487 * configure: Regenerate.
33488 * config.in: Likewise.
33489 * doc/extend.texi (PowerPC Built-in Functions): Document
33490 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
33491
33492 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
33493
33494 PR target/68609
33495 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
33496 domain check.
33497 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
33498 for V4SFmode.
33499
33500 2016-01-20 Richard Henderson <rth@redhat.com>
33501
33502 PR bootstrap/69343
33503 PR bootstrap/69339
33504 PR tree-opt/68964
33505 Revert:
33506 * tree.c (tm_define_builtin): New.
33507 (find_tm_vector_type): New.
33508 (build_tm_vector_builtins): New.
33509 (build_common_builtin_nodes): Call it.
33510
33511 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
33512
33513 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
33514 (arm_fp_ok): Likewise.
33515 (arm_fp): Likewise.
33516 (arm_crypto): Likewise.
33517
33518 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
33519 Richard Biener <rguenther@suse.de>
33520
33521 PR tree-optimization/69328
33522 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
33523 vectors have same number of elements.
33524 (vectorizable_condition): Fix masked version recognition.
33525
33526 2016-01-20 Richard Biener <rguenther@suse.de>
33527
33528 PR tree-optimization/69345
33529 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
33530 (VN_INFO_PTR_INFO): Likewise.
33531 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
33532 info when it is equal between non-dominating SSA names.
33533 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33534 Make sure to look at original SSA infos.
33535
33536 2016-01-20 Jeff Law <law@redhat.com>
33537
33538 PR target/25114
33539 * config/m68k/predicates.md (pow2_m1_operand): New predicate
33540 extracted from ...
33541 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
33542 (pc_or_label_operand): New predicate.
33543 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
33544 tests for small integers that are 2^n - 1.
33545
33546 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
33547
33548 * doc/invoke.texi (Options Summary): Add '.' after @xref.
33549
33550 2016-01-19 Jeff Law <law@redhat.com>
33551
33552 PR middle-end/69347
33553 * tree-ssa-threadbackwards.c
33554 (fsm_find_control_statement_thread_paths): Do not try to lookup
33555 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
33556
33557 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
33558
33559 * doc/lto.texi: Remove text that says only Gold has linker plugin
33560 support.
33561
33562 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
33563
33564 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
33565 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
33566 the DIE accordingly.
33567 (modified_type_die): Add REVERSE parameter and pass it recursively,
33568 as well as to base_type_die. Adjust presence check accordingly.
33569 (base_type_for_mode): Adjust call to modified_type_die.
33570 (add_type_attribute): Add REVERSE parameter and pass it to
33571 modified_type_die.
33572 (generic_parameter_die): Adjust call to add_type_attribute.
33573 (add_scalar_info): Likewise.
33574 (add_subscript_info): Likewise.
33575 (gen_array_type_die): Likewise.
33576 (gen_descr_array_type_die): Likewise.
33577 (gen_entry_point_die): Likewise.
33578 (gen_enumeration_type_die): Likewise.
33579 (gen_formal_parameter_die): Likewise.
33580 (gen_subprogram_die): Likewise.
33581 (gen_variable_die ): Likewise.
33582 (gen_const_die): Likewise.
33583 (gen_field_die): Likewise.
33584 (gen_pointer_type_die): Likewise.
33585 (gen_reference_type_die): Likewise.
33586 (gen_ptr_to_mbr_type_die): Likewise.
33587 (gen_inheritance_die): Likewise.
33588 (gen_subroutine_type_die): Likewise.
33589 (gen_typedef_die): Likewise.
33590 (force_type_die): Adjust call to modified_type_die.
33591
33592 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
33593
33594 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
33595 flow throughout the file. Fix broken link to Objective-C 2.0
33596 documentation.
33597 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
33598 errors.
33599
33600 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33601
33602 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
33603
33604 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33605
33606 PR ipa/66223
33607 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
33608 (maybe_record_node): Record cxa_pure_virtual as the only possible
33609 target if there are not ohter candidates.
33610 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
33611
33612 2016-01-19 Richard Biener <rguenther@suse.de>
33613
33614 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
33615 (get_memory_order): Likewise.
33616
33617 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
33618
33619 * tree-vect-stmts.c (vectorizable_store): Check
33620 rhs vectype.
33621
33622 2016-01-19 David Malcolm <dmalcolm@redhat.com>
33623
33624 PR jit/68446
33625 * gcc.c (driver::decode_argv): Add call to
33626 init_opts_obstack before init_options_struct.
33627 * opts.c (init_opts_obstack): Remove idempotency.
33628 (init_options_struct): Replace call to init_opts_obstack
33629 with a gcc_assert to verify that it has already been called.
33630 * toplev.c (toplev::main): Add call to init_opts_obstack before
33631 calls to init_options_struct.
33632 (toplev::finalize): Move cleanup of opts_obstack next to
33633 cleanup of save_decoded_options, clearing the latter, and
33634 save_decoded_options_count.
33635
33636 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33637
33638 PR target/69135
33639 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
33640 attribute to unconditional. Remove %? from output template.
33641
33642 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33643 Jiong Wang <jiong.wang@arm.com>
33644
33645 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
33646 generated from different expand order.
33647
33648 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33649
33650 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
33651 Add support for CCMP costing.
33652
33653 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33654
33655 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
33656 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
33657 (fccmpe<mode>): Likewise.
33658 (fcmp): Rename to fcmp and globalize pattern.
33659 (fcmpe): Likewise.
33660 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
33661 (aarch64_gen_ccmp_next): Add FP support.
33662
33663 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33664
33665 * target.def (gen_ccmp_first): Update documentation.
33666 (gen_ccmp_next): Likewise.
33667 * doc/tm.texi (gen_ccmp_first): Update documentation.
33668 (gen_ccmp_next): Likewise.
33669 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
33670 expand_ccmp_expr_1. Improve comments.
33671 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
33672 (ccmp_ior<mode>): Remove pattern.
33673 (cmp<mode>): Remove expand.
33674 (cmp): Globalize pattern.
33675 (cstorecc4): Use cc_register.
33676 (mov<mode>cc): Remove ccmp_cc_register check.
33677 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
33678 Simplify after removal of CC_DNE/* modes.
33679 (aarch64_ccmp_mode_to_code): Remove.
33680 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
33681 In 'k' case use integer as condition.
33682 (aarch64_nzcv_codes): Remove inverted cases.
33683 (aarch64_code_to_ccmode): Remove.
33684 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
33685 comparison with CC register to be used in folowing CCMP/branch/CSEL.
33686 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
33687 pattern. Return the comparison with CC register. Invert conditions
33688 when bitcode is OR.
33689 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
33690 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
33691
33692 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33693
33694 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
33695 instrumented_version.
33696
33697 2016-01-19 Richard Biener <rguenther@suse.de>
33698
33699 PR tree-optimization/69336
33700 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
33701 handled components with get_ref_base_and_extent.
33702 (equal_mem_array_ref_p): Adjust.
33703
33704 2016-01-19 Jakub Jelinek <jakub@redhat.com>
33705
33706 PR debug/65779
33707 * shrink-wrap.c: Include valtrack.h.
33708 (move_insn_for_shrink_wrap): Add DEBUG argument. If
33709 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
33710 in between insn and where it will be moved to. Call
33711 dead_debug_insert_temp.
33712 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
33713 first and dead_debug_local_finish at the end.
33714 For uses and defs bitmap, handle all regs in between REGNO and
33715 END_REGNO, not just the first one.
33716
33717 2016-01-19 Richard Biener <rguenther@suse.de>
33718
33719 PR tree-optimization/69352
33720 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
33721 (equal_mem_array_ref_p): Constrain size and max size properly.
33722 Compare the reverse flag.
33723
33724 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
33725
33726 * ira.c (ira): Update regstat data if we deleted insns.
33727
33728 2016-01-19 Jakub Jelinek <jakub@redhat.com>
33729
33730 PR rtl-optimization/68955
33731 PR rtl-optimization/64557
33732 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
33733 here. Fix up formatting.
33734 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
33735
33736 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33737
33738 PR lto/69133
33739 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
33740 assume that the node has body.
33741 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
33742 check.
33743
33744 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33745
33746 * lto-streamer-out.c (lto_output): Do not stream instrumentation
33747 thunks.
33748
33749 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33750
33751 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
33752 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
33753
33754 2016-01-19 Martin Jambor <mjambor@suse.cz>
33755 Martin Liska <mliska@suse.cz>
33756 Michael Matz <matz@suse.de>
33757
33758 * Makefile.in (OBJS): Add new source files.
33759 (GTFILES): Add hsa.c.
33760 * common.opt (disable_hsa): New variable.
33761 (-Whsa): New warning.
33762 * config.in (ENABLE_HSA): New.
33763 * configure.ac: Treat hsa differently from other accelerators.
33764 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
33765 $enable_offloading.
33766 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
33767 * doc/install.texi (Configuration): Document --with-hsa-runtime,
33768 --with-hsa-runtime-include, --with-hsa-runtime-lib and
33769 --with-hsa-kmt-lib.
33770 * doc/invoke.texi (-Whsa): Document.
33771 (hsa-gen-debug-stores): Likewise.
33772 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
33773 to invoke offload compiler for hsa acclerator.
33774 * opts.c (common_handle_option): Determine whether HSA offloading
33775 should be performed.
33776 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
33777 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
33778 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
33779 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
33780 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
33781 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
33782 GF_OMP_FOR_KIND_GRID_LOOP.
33783 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
33784 (pp_gimple_stmt_1): Likewise.
33785 * gimple-walk.c (walk_gimple_stmt): Likewise.
33786 * gimple.c (gimple_build_omp_grid_body): New function.
33787 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
33788 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
33789 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
33790 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
33791 GF_OMP_TEAMS_GRID_PHONY.
33792 (gimple_statement_omp_single_layout): Updated comments.
33793 (gimple_build_omp_grid_body): New function.
33794 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
33795 (gimple_omp_for_grid_phony): New function.
33796 (gimple_omp_for_set_grid_phony): Likewise.
33797 (gimple_omp_parallel_grid_phony): Likewise.
33798 (gimple_omp_parallel_set_grid_phony): Likewise.
33799 (gimple_omp_teams_grid_phony): Likewise.
33800 (gimple_omp_teams_set_grid_phony): Likewise.
33801 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
33802 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
33803 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
33804 (BUILT_IN_GOMP_TARGET): Updated type.
33805 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
33806 (adjust_for_condition): New function.
33807 (get_omp_for_step_from_incr): Likewise.
33808 (extract_omp_for_data): Moved parts to adjust_for_condition and
33809 get_omp_for_step_from_incr.
33810 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
33811 (fixup_child_record_type): Bail out if receiver_decl is NULL.
33812 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
33813 (scan_omp_parallel): Do not create child functions for phony
33814 constructs.
33815 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
33816 (scan_omp_1_op): Checking assert we are not remapping to
33817 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
33818 (parallel_needs_hsa_kernel_p): New function.
33819 (expand_parallel_call): Register apprpriate parallel child
33820 functions as HSA kernels.
33821 (grid_launch_attributes_trees): New type.
33822 (grid_attr_trees): New variable.
33823 (grid_create_kernel_launch_attr_types): New function.
33824 (grid_insert_store_range_dim): Likewise.
33825 (grid_get_kernel_launch_attributes): Likewise.
33826 (get_target_argument_identifier_1): Likewise.
33827 (get_target_argument_identifier): Likewise.
33828 (get_target_argument_value): Likewise.
33829 (push_target_argument_according_to_value): Likewise.
33830 (get_target_arguments): Likewise.
33831 (expand_omp_target): Call get_target_arguments instead of looking
33832 up for teams and thread limit.
33833 (grid_expand_omp_for_loop): New function.
33834 (grid_arg_decl_map): New type.
33835 (grid_remap_kernel_arg_accesses): New function.
33836 (grid_expand_target_kernel_body): New function.
33837 (expand_omp): Call it.
33838 (lower_omp_for): Do not emit phony constructs.
33839 (lower_omp_taskreg): Do not emit phony constructs but create for them
33840 a temporary variable receiver_decl.
33841 (lower_omp_taskreg): Do not emit phony constructs.
33842 (lower_omp_teams): Likewise.
33843 (lower_omp_grid_body): New function.
33844 (lower_omp_1): Call it.
33845 (grid_reg_assignment_to_local_var_p): New function.
33846 (grid_seq_only_contains_local_assignments): Likewise.
33847 (grid_find_single_omp_among_assignments_1): Likewise.
33848 (grid_find_single_omp_among_assignments): Likewise.
33849 (grid_find_ungridifiable_statement): Likewise.
33850 (grid_target_follows_gridifiable_pattern): Likewise.
33851 (grid_remap_prebody_decls): Likewise.
33852 (grid_copy_leading_local_assignments): Likewise.
33853 (grid_process_kernel_body_copy): Likewise.
33854 (grid_attempt_target_gridification): Likewise.
33855 (grid_gridify_all_targets_stmt): Likewise.
33856 (grid_gridify_all_targets): Likewise.
33857 (execute_lower_omp): Call grid_gridify_all_targets.
33858 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
33859 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
33860 (tree_omp_clause): Added union field dimension.
33861 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
33862 * tree.c (omp_clause_num_ops): Added number of arguments of
33863 OMP_CLAUSE__GRIDDIM_.
33864 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
33865 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
33866 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
33867 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
33868 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
33869 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
33870 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
33871 * tree-pass.h (make_pass_gen_hsail): Declare.
33872 (make_pass_ipa_hsa): Likewise.
33873 * ipa-hsa.c: New file.
33874 * lto-section-in.c (lto_section_name): Add hsa section name.
33875 * lto-streamer.h (lto_section_type): Add hsa section.
33876 * timevar.def (TV_IPA_HSA): New.
33877 * hsa-brig-format.h: New file.
33878 * hsa-brig.c: New file.
33879 * hsa-dump.c: Likewise.
33880 * hsa-gen.c: Likewise.
33881 * hsa.c: Likewise.
33882 * hsa.h: Likewise.
33883 * toplev.c (compile_file): Call hsa_output_brig.
33884 * hsa-regalloc.c: New file.
33885
33886 2016-01-18 Jeff Law <law@redhat.com>
33887
33888 PR tree-optimization/69320
33889 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
33890 ranged object, do nothing if the RHS constant is not [0..1].
33891 (optimize_stmt): Comparing a boolean ranged object against a
33892 constant outside [0..1] results in a compile-time constant.
33893
33894 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
33895 test.
33896
33897 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
33898
33899 * doc/invoke.texi (Invoking GCC): Add new section to menu.
33900 (Option Summary): Update to reflect new section and moved options.
33901 (C++ Dialect Options): Move -fstats to new section.
33902 (Debugging Options): Move all dump, statistics, and other GCC
33903 developer options to new section. Rewrite section introduction
33904 and re-order remaining options to put the more basic ones first.
33905 (Optimization Options): Move -fira-verbose and -flto-report* to
33906 new section.
33907 (Developer Options): New section incorporating moved options.
33908 * doc/cppopts.texi (-dM): Update cross-reference.
33909
33910 2016-01-18 Richard Henderson <rth@redhat.com>
33911
33912 PR target/69176
33913 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
33914 operands to pseudo only if CSE is expected. Split long immediate
33915 operands only after reload, and for the stack pointer.
33916 (*add<GPI>3_pluslong): Remove.
33917 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
33918 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
33919 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
33920 (*add<GPI>3 peepholes): New.
33921 (*add<GPI>3 splitters): New.
33922 * config/aarch64/constraints.md (Upl): New.
33923 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
33924
33925 2016-01-18 Richard Biener <rguenther@suse.de>
33926
33927 PR tree-optimization/69297
33928 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
33929 stmt at most once.
33930 (vect_bb_vectorization_profitable_p): Clear visited flag again.
33931
33932 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
33933
33934 PR middle-end/68542
33935 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
33936 of mixind vector and scalar types.
33937 (fold_relational_const): Add handling of vector
33938 comparison with boolean result.
33939 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
33940 comparison of vector operands with boolean result for EQ/NE only.
33941 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
33942 (verify_gimple_cond): Likewise.
33943 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
33944 valid type of VAL.
33945
33946 2016-01-18 Joseph Myers <joseph@codesourcery.com>
33947
33948 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
33949 !TARGET_OCTEON.
33950
33951 2016-01-18 Richard Biener <rguenther@suse.de>
33952
33953 PR middle-end/69308
33954 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
33955
33956 2016-01-18 Tom de Vries <tom@codesourcery.com>
33957
33958 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
33959
33960 2016-01-18 Tom de Vries <tom@codesourcery.com>
33961
33962 * omp-low.c (set_oacc_fn_attrib): Make extern.
33963 * omp-low.h (set_oacc_fn_attrib): Declare.
33964 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
33965 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
33966 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
33967 Add and handle function parameter oacc_kernels_p.
33968 (find_reduc_addr, get_omp_data_i_param): New function.
33969 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
33970 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
33971 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
33972 Calculate dominance info. Skip loops that are not in a kernels region
33973 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
33974 (pass_parallelize_loops::execute): Call parallelize_loops with
33975 oacc_kernels_p argument.
33976 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
33977 New member function.
33978 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
33979 * passes.def: Add argument to pass_parallelize_loops instantation.
33980
33981 2016-01-18 Tom de Vries <tom@codesourcery.com>
33982
33983 * tree-parloops.c (pass_parallelize_loops::execute): Allow
33984 pass_parallelize_loops to be run outside the loop pipeline.
33985
33986 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
33987
33988 * tree-scalar-evolution.c (follow_copies_to_constant): New.
33989 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
33990
33991 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
33992
33993 PR target/63679
33994 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
33995 using get_ref_base_and_extent.
33996 (equal_mem_array_ref_p): New.
33997 (hashable_expr_equal_p): Add call to previous.
33998
33999 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34000
34001 PR target/63679
34002 * tree-sra.c (disqualified_constants, constant_decl_p): New.
34003 (sra_initialize): Allocate disqualified_constants.
34004 (sra_deinitialize): Free disqualified_constants.
34005 (disqualify_candidate): Update disqualified_constants when appropriate.
34006 (create_access): Scan for constant-pool entries as we go along.
34007 (scalarizable_type_p): Add check against type_contains_placeholder_p.
34008 (maybe_add_sra_candidate): Allow constant-pool entries.
34009 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
34010 (initialize_constant_pool_replacements): New.
34011 (sra_modify_assign): Avoid mangling assignments created by previous,
34012 and don't generate writes into constant pool.
34013 (sra_modify_function_body): Call initialize_constant_pool_replacements.
34014
34015 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
34016
34017 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
34018 andnot instruction.
34019 (scalar_chain::convert_op): Likewise.
34020 * config/i386/i386.md (*andndi3_doubleword): New.
34021
34022 2016-01-18 Richard Biener <rguenther@suse.de>
34023
34024 PR tree-optimization/69170
34025 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
34026 building a vector from scalar results of a pattern stmt.
34027
34028 2016-01-18 Jakub Jelinek <jakub@redhat.com>
34029
34030 * haifa-sched.c (autopref_multipass_init): Work around
34031 -Wmaybe-uninitialized warning.
34032
34033 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
34034
34035 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
34036 against the constant 0.
34037
34038 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34039
34040 PR tree-optimization/68799
34041 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
34042 look up phi candidates in the statement-candidate map.
34043 (phi_add_costs): Likewise.
34044 (record_phi_increments): Likewise.
34045 (phi_incr_cost): Likewise.
34046 (ncd_with_phi): Likewise.
34047 (all_phi_incrs_profitable): Likewise.
34048
34049 2016-01-17 Jakub Jelinek <jakub@redhat.com>
34050
34051 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
34052 -Wmaybe-uninitialized warning.
34053
34054 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
34055
34056 * doc/invoke.texi (Invoking GCC): Add new section to menu.
34057 (Option Summary): Update to reflect new section and moved options.
34058 (C++ Dialect Options): Move -fvtable-verify and related options.
34059 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
34060 and profiling-related options.
34061 (Optimization Options): Move profile generation options and
34062 -fstack-protector and related options.
34063 (Instrumentation Options): New section incorporating moved options.
34064 (Code Generation Options): Move -finstrument-functions and
34065 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
34066
34067 2016-01-16 Tom de Vries <tom@codesourcery.com>
34068
34069 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
34070
34071 2016-01-16 Tom de Vries <tom@codesourcery.com>
34072
34073 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
34074
34075 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
34076
34077 * hash-table.h (hash_table::empty): Turn into an inline wrapper
34078 that checks whether the table is already empty. Rename the
34079 original implementation to...
34080 (hash_table::empty_slot): ...this new private function.
34081
34082 2016-01-15 David Malcolm <dmalcolm@redhat.com>
34083
34084 PR diagnostic/68899
34085 * diagnostic-show-locus.c (layout::print_source_line): Move x
34086 offset of line until after call to
34087 get_line_width_without_trailing_whitespace.
34088
34089 2016-01-15 Jeff Law <law@redhat.com>
34090
34091 PR tree-optimization/69270
34092 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
34093 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
34094 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
34095 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
34096 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
34097 ssa_name_has_boolean_range and constant_boolean_node.
34098
34099 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
34100
34101 PR rtl-optimization/69030
34102 * lra-spills.c (remove_pseudos): Check nrefs and make the function
34103 returning bool.
34104 (spill_pseudos): Delete debug insn for dead pseudo.
34105 (lra_spill): Initiate spill_hard_reg and slots memory separately.
34106
34107 2016-01-15 Jiong Wang <jiong.wang@arm.com>
34108
34109 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
34110 New.
34111 (TYPES_UNOPUS): Likewise.
34112 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
34113 builtin type, from UNOP to UNOPUS.
34114 (lbtruncuv4sf): Likewise.
34115 (lbtruncuv2df): Likewise.
34116 (lrounduv2sf): Likewise.
34117 (lrounduv4sf): Likewise.
34118 (lrounduv2df): Likewise.
34119 (lroundusf): Likewise.
34120 (lroundusf): Likewise.
34121 (lceiluv2sf): Likewise.
34122 (lceiluv4sf): Likewise.
34123 (lceiluv2df): Likewise.
34124 (lceilusf): Likewise.
34125 (lceiludf): Likewise.
34126 (lflooruv2sf): Likewise.
34127 (lflooruv4sf): Likewise.
34128 (lflooruv2df): Likewise.
34129 (lfloorusf): Likewise.
34130 (lfloorudf): Likewise.
34131 (lfrintnuv2sf): Likewise.
34132 (lfrintnuv4sf): Likewise.
34133 (lfrintnuv2df): Likewise.
34134 (lfrintnusf): Likewise.
34135 (lfrintnudf): Likewise.
34136 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
34137 conversion.
34138 (vcvtq_u32_f32): Likewise.
34139 (vcvtq_u64_f64): Likewise.
34140 (vcvta_u32_f32): Likewise.
34141 (vcvtaq_u32_f32): Likewise.
34142 (vcvtaq_u64_f64): Likewise.
34143 (vcvtm_u32_f32): Likewise.
34144 (vcvtmq_u32_f32): Likewise.
34145 (vcvtmq_u64_f64): Likewise.
34146 (vcvtn_u32_f32): Likwise.
34147 (vcvtnq_u32_f32): Likewise.
34148 (vcvtnq_u64_f64): Likewise.
34149 (vcvtp_u32_f32): Likewise.
34150 (vcvtpq_u32_f32): Likewise.
34151 (vcvtpq_u64_f64): Likewise.
34152 (vcvtmd_u64_f64): Likewise.
34153 (vcvtms_u32_f32): Likewise.
34154 (vcvtad_u64_f64): Likewise.
34155 (vcvtas_u32_f32): Likewise.
34156 (vcvtnd_u64_f64): Likewise.
34157 (vcvtns_u32_f32): Likewise.
34158 (vcvtpd_u64_f64): Likewise.
34159 (vcvtps_u32_f32): Likewise.
34160
34161 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34162
34163 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
34164 CSEL of zero_extended registers.
34165
34166 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34167
34168 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
34169 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
34170
34171 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34172
34173 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
34174 false when argument string is not found in the attributes table
34175 at all.
34176
34177 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
34178
34179 PR target/68609
34180 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
34181 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
34182 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
34183 precision estimate.
34184
34185 2016-01-15 Richard Biener <rguenther@suse.de>
34186
34187 PR tree-optimization/66856
34188 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
34189 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
34190 (vect_create_new_slp_node): Increment stmt reference count.
34191 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
34192 an SLP tree before swapping operands.
34193 (vect_build_slp_tree): Likewise.
34194 (destroy_bb_vec_info): Free stmt info after SLP instances.
34195 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
34196 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
34197 (STMT_VINFO_NUM_SLP_USES): New macro.
34198
34199 2016-01-15 Richard Biener <rguenther@suse.de>
34200
34201 PR debug/69137
34202 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
34203 (add_linkage_name): ... here.
34204 (gen_typedef_die): Use add_linkage_name_raw instead of
34205 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
34206 if necessary.
34207
34208 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
34209
34210 * gimplify.c (oacc_default_clause): Decode reference and pointer
34211 types for both kernels and parallel regions.
34212
34213 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
34214
34215 PR middle-end/69246
34216 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
34217
34218 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
34219
34220 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
34221 (convert_scalars_to_vector): Likewise.
34222
34223 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
34224
34225 * doc/extend.texi (Type Traits): Fix grammar.
34226
34227 2016-01-15 Martin Jambor <mjambor@suse.cz>
34228
34229 * tree-inline.c (remap_decl): Use existing dclarations if
34230 remapping a type and prevent_decl_creation_for_types.
34231 (replace_locals_stmt): Do an initial remapping of non-VLA typed
34232 decls first. Do real remapping with
34233 prevent_decl_creation_for_types set.
34234 * tree-inline.h (copy_body_data): New field
34235 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
34236 padding.
34237
34238 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34239
34240 * config/s390/s390.opt (mmvcle): More verbose help text.
34241
34242 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34243
34244 * config/s390/s390.opt: Add period to -mzvector option text.
34245
34246 2016-01-15 Richard Biener <rguenther@suse.de>
34247
34248 PR tree-optimization/68961
34249 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
34250 of invariants in stores again.
34251
34252 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
34253
34254 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
34255
34256 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
34257
34258 * config/i386/i386.c (ix86_expand_branch): Don't split
34259 DI mode xor instruction to SI mode.
34260
34261 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
34262
34263 PR ipa/68148
34264 * ipa-icf.c (sem_function::merge): Virtual functions may become
34265 reachable even if they address is not taken and there are no
34266 idrect calls.
34267
34268 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
34269
34270 * lto-streamer-out.c (subtract_estimated_size): New function.
34271 (get_symbol_initial_value): Use it.
34272
34273 2016-01-15 Christian Bruel <christian.bruel@st.com>
34274
34275 PR target/65837
34276 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
34277 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
34278 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
34279 use add_builtin_function_ext_scope instead of add_builtin_function.
34280 (neon_set_p, neon_crypto_set_p): Remove.
34281 (arm_init_builtins): Always call arm_init_neon_builtins and
34282 arm_init_crypto_builtins.
34283 (arm_expand_builtin): Check that builtins are allowed for the arch.
34284 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
34285 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
34286 arm_init_neon_builtins call.
34287
34288 2016-01-15 Richard Biener <rguenther@suse.de>
34289
34290 PR tree-optimization/69117
34291 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
34292 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
34293 of the leader conservatively.
34294 (free_scc_vn): Restore original SSA name infos.
34295
34296 2016-01-14 Jeff Law <law@redhat.com>
34297
34298 PR tree-optimization/69270
34299 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
34300 single bit of precision, verify it's also unsigned.
34301 (record_edge_info): Use constant_boolean_node rather than fold_convert
34302 to convert boolean_true/boolean_false to the right type.
34303
34304 2016-01-14 Richard Henderson <rth@redhat.com>
34305
34306 PR rtl-opt/69014
34307 * loop-doloop.c (record_reg_sets): New.
34308 (doloop_optimize): Reject the transform if the sequence
34309 clobbers registers live at the end of the loop block.
34310 (doloop_optimize_loops): Enable df_live if needed.
34311
34312 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
34313
34314 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
34315 * config/rs6000/rs6000.c: Likewise.
34316 * config/rs6000/rs6000.h: Likewise.
34317 * config/rs6000/rs6000.md: Likewise.
34318 * doc/extend.texi: Likewsie.
34319
34320 2016-01-14 Jeff Law <law@redhat.com>
34321
34322 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
34323 typo.
34324
34325 2016-01-14 Richard Henderson <rth@redhat.com>
34326
34327 PR c/69272
34328 PR tree-opt/68964
34329 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
34330 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
34331 instead of builtin_decl_declared_p to test for declaration.
34332
34333 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
34334
34335 * doc/loop.texi (Loop Analysis and Representation): Document
34336 loop_depth function.
34337
34338 2016-01-14 Tom de Vries <tom@codesourcery.com>
34339
34340 PR tree-optimization/68773
34341 * omp-low.c (expand_omp_target): Don't set force_output.
34342 * varpool.c (varpool_node::get_create): Same.
34343 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
34344 offload_funcs with force_output.
34345
34346 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34347
34348 PR debug/69244
34349 * lra-eliminations.c (move_plus_up): Don't change anything if either
34350 the outer or inner subreg mode is not MODE_INT.
34351 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
34352 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
34353
34354 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
34355
34356 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
34357 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
34358 reduc_uplus_@var{m}): Remove.
34359 * expr.c (expand_expr_real_2): Remove expansion path for
34360 reduc_[us](min|max|plus) optabs.
34361 * optabs-tree.c (scalar_reduc_to_vector): Remove.
34362 * optabs-tree.h (scalar_reduc_to_vector): Remove.
34363 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
34364 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
34365 * tree-vect-loop.c (vectorizable_reduction): Remove test for
34366 reduc_[us](min|max|plus) optabs.
34367
34368 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
34369
34370 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
34371 (reduc_plus_scal_v2sf): New.
34372 (reduc_smax_v2sf): Rename to...
34373 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
34374 (reduc_smin_v2sf): Rename to...
34375 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
34376
34377 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
34378
34379 * alias.c (compare_base_symbol_refs): New function.
34380 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
34381 it.
34382
34383 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34384
34385 PR middle-end/68146
34386 PR tree-optimization/69155
34387 * tree-complex.c: Include cfganal.h.
34388 (phis_to_revisit): New variable.
34389 (extract_component): Add phiarg_p argument. Assert that returned
34390 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
34391 (update_phi_components): Partly rewrite to use loop over real/imag
34392 components instead of code duplication. If extract_component returns
34393 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
34394 create_tmp_reg into the PHI node instead, and mention the phi triplet
34395 in phis_to_revisit.
34396 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
34397 in phis_to_revisit at the end.
34398
34399 2016-01-14 Richard Biener <rguenther@suse.de>
34400
34401 PR tree-optimization/68060
34402 * tree-vect-loop.c (vect_is_simple_reduction): Check the
34403 outer loop reduction is only used in the inner loop before
34404 detecting a double reduction.
34405
34406 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34407
34408 PR target/68269
34409 * combine.c (expand_field_assignment): Punt if compute_mode is
34410 unsupported scalar mode.
34411
34412 2016-01-14 Richard Biener <rguenther@suse.de>
34413
34414 PR tree-optimization/66856
34415 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
34416 SLP node only if it built successfully.
34417 (vect_analyze_slp_instance): Adjust.
34418
34419 2016-01-14 Jeff Law <law@redhat.com>
34420
34421 PR tree-optimization/69270
34422 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
34423 (record_edge_info): Use it. Convert boolean_{true,false}_node
34424 to the type of op0.
34425
34426 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
34427
34428 PR ipa/66487
34429 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
34430 use block_ultimate_origin
34431 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
34432
34433 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
34434
34435 * doc/invoke.texi (Submodel Options): Rename section to
34436 "Machine-Dependent Options" to better reflect its content.
34437 Rewrite introductory text to remove archaic CPU names.
34438 Update references.
34439
34440 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
34441
34442 * doc/invoke.texi (Code Gen Options): Move section up in file,
34443 before target-specific options. Update menu and option summary
34444 to reflect the new section ordering.
34445
34446 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
34447
34448 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
34449 (C++ Dialect Options): Add cross-reference to -std option.
34450 * doc/standards.texi (C++ Language): Document C++14 support.
34451
34452 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
34453
34454 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
34455 for pack/unpack functions for __ibm128.
34456 (PACK_IF): Likewise.
34457 (UNPACK_IF): Likewise.
34458
34459 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
34460 support for __ibm128 pack/unpack functions.
34461 (rs6000_invalid_builtin): Likewise.
34462 (rs6000_init_builtins): Likewise.
34463 (rs6000_opt_masks): Likewise.
34464
34465 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
34466 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
34467 functions
34468 (RS6000_BTM_COMMON): Likewise.
34469
34470 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
34471 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
34472 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
34473 128-bit floating point. Add support for the double values to be
34474 in Altivec registers for TF/IF packing and unpacking, but restrict
34475 TD packing sub-fields to be FPR registers. Don't allow overlapped
34476 register support for packing. Allow pack inputs to be memory
34477 locations. Don't build generator functions for unpack<mode>_dm
34478 and unpack<mode>_nodm.
34479 (unpack<mode>_dm): Likewise.
34480 (unpack<mode>_nodm): Likewise.
34481 (pack<mode>): Likewise.
34482
34483 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
34484 built-in functions to pack/unpack explicit __ibm128 values.
34485 (__builtin_unpack_ibm128): Likewise.
34486
34487 * doc/extend.texi (PowerPC Built-in Functions): Document
34488 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
34489
34490 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
34491
34492 PR c/66208
34493 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
34494 Add new arg loc and pass it down as context.
34495 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
34496 to the location to use for the warning.
34497 (check_function_arguments): New arg loc. All callers changed. Pass
34498 it to check_function_nonnull.
34499 * c-common.h (check_function_arguments): Adjust declaration.
34500
34501 2016-01-13 Jakub Jelinek <jakub@redhat.com>
34502
34503 PR tree-optimization/69156
34504 * gimple.c (validate_type): Removed.
34505 (gimple_builtin_call_types_compatible_p): Use
34506 useless_type_conversion_p instead of validate_type.
34507 * value-prof.c (gimple_stringop_fixed_value): Fold
34508 icall_size to correct type.
34509
34510 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
34511
34512 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
34513 effects.
34514
34515 2016-01-13 Richard Henderson <rth@redhat.com>
34516
34517 PR tree-opt/68964
34518 * target.def (builtin_tm_load, builtin_tm_store): Remove.
34519 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
34520 (ix86_builtin_tm_store): Remove.
34521 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
34522 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
34523 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
34524 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
34525 * doc/tm.texi: Rebuild.
34526
34527 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
34528 (BUILT_IN_TM_MEMCPY_RTWN): New.
34529 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
34530 fallback from vector to integer helpers.
34531 (build_tm_load): Handle vector types directly, instead of
34532 via target hook.
34533 (build_tm_store): Likewise.
34534 (expand_assign_tm): Prepare for register types not handled by
34535 the above. Copy them to memory and use memcpy.
34536 * tree.c (tm_define_builtin): New.
34537 (find_tm_vector_type): New.
34538 (build_tm_vector_builtins): New.
34539 (build_common_builtin_nodes): Call it.
34540
34541 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
34542
34543 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
34544 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
34545
34546 2016-01-13 Tom de Vries <tom@codesourcery.com>
34547
34548 PR tree-optimization/69169
34549 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
34550 handled_struct_type param.
34551 (create_variable_info_for, intra_create_variable_infos): Call
34552 create_variable_info_for_1 with extra arg.
34553
34554 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
34555
34556 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
34557 and "armv8.1-a+crc" entries.
34558
34559 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
34560
34561 PR target/69228
34562 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
34563 Change first operand predicate from register_or_constm1_operand
34564 to register_operand.
34565 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
34566 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
34567 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
34568 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
34569 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
34570 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
34571 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
34572 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
34573 comparison with constm1_rtx from vec_prefetch_gen part.
34574
34575 2016-01-13 Richard Biener <rguenther@suse.de>
34576
34577 PR tree-optimization/69013
34578 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
34579 Exchange assert for a test.
34580
34581 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34582
34583 PR target/69247
34584 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
34585
34586 2016-01-13 Richard Biener <rguenther@suse.de>
34587
34588 PR tree-optimization/69242
34589 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
34590 assert with a check.
34591
34592 2016-01-13 Richard Biener <rguenther@suse.de>
34593
34594 PR tree-optimization/69186
34595 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
34596 Properly guard vect_update_misalignment_for_peel call.
34597
34598 2016-01-12 Jeff Law <law@redhat.com>
34599
34600 PR tree-optimization/pr67755
34601 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
34602 "need_profile_correction".
34603 (thread_block_1): Initialize new field to false by default. If we
34604 have multiple thread paths through a common joiner to different
34605 final targets, then set new field to true.
34606 (compute_path_counts): Only do count adjustment when it's really
34607 needed.
34608
34609 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
34610
34611 * doc/invoke.texi (Spec Files): Move section down in file, past
34612 all command-line option descriptions.
34613
34614 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34615
34616 PR middle-end/54809
34617 * doc/gty.texi: Remove documentation of mark_hook.
34618 * gengtype.c (struct write_types_data): Remove code to support
34619 mark_hook attribute.
34620 (walk_type): Likewise.
34621 (write_func_for_structure): Likewise.
34622
34623 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
34624
34625 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
34626 Directory Options, and -specs= to Overall Options.
34627 (Overall Options): Adjust similarly. Reorder to group related
34628 options together. Make -specs= cross-reference the spec file details.
34629 (Directory Options): Adjust similarly.
34630
34631 2016-01-12 Jeff Law <law@redhat.com>
34632
34633 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
34634
34635 2016-01-12 Olivier Hainque <hainque@adacore.com>
34636
34637 * gcc.c (spec_undefvar_allowed): New global.
34638 (process_command): Set to true when running for --version or --help,
34639 alone or together.
34640 (getenv_spec_function): When the variable is not defined, use the
34641 variable name as the variable value if we're allowed not to issue
34642 a fatal error.
34643
34644 2016-01-12 Bin Cheng <bin.cheng@arm.com>
34645
34646 PR tree-optimization/68911
34647 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
34648 information computed for expression "init + nit * step".
34649
34650 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
34651
34652 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
34653 about name of GCC executable. Remove deleted node from menu.
34654 (Directory Options) <-B>: Remove cross-reference to deleted node.
34655 (Target Options): Delete section.
34656
34657 2016-01-12 Christian Bruel <christian.bruel@st.com>
34658
34659 PR target/69180
34660 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
34661 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
34662
34663 2016-01-12 Jakub Jelinek <jakub@redhat.com>
34664
34665 PR target/69198
34666 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
34667 aligned_mem is properly set for AVX512-VL floating point masked
34668 stores.
34669
34670 PR target/69175
34671 * ifcvt.c (cond_exec_process_if_block): When removing the last
34672 insn from then_bb, remove also any possible barriers that follow it.
34673
34674 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
34675
34676 PR target/68456
34677 PR target/69226
34678 * config/i386/iamcu.h (SIZE_TYPE): New macro.
34679 (PTRDIFF_TYPE): Likewise.
34680 (WCHAR_TYPE): Likewise.
34681 (WCHAR_TYPE_SIZE): Likewise.
34682 (STDINT_LONG32): Likewise.
34683
34684 2016-01-12 Richard Biener <rguenther@suse.de>
34685
34686 PR tree-optimization/69053
34687 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
34688 convert initial value for cond reductions.
34689
34690 2016-01-12 Richard Biener <rguenther@suse.de>
34691
34692 PR tree-optimization/69007
34693 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
34694 widen_sum after dot_prod and sad.
34695
34696 2016-01-12 Richard Biener <rguenther@suse.de>
34697
34698 PR tree-optimization/69168
34699 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
34700 pattern stmt SLP type.
34701 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
34702 end up unused so cope with that case.
34703
34704 2016-01-12 Richard Biener <rguenther@suse.de>
34705
34706 PR tree-optimization/69157
34707 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
34708 stmts def type only during analyze phase.
34709 (vectorizable_call): Likewise.
34710 (vectorizable_simd_clone_call): Likewise.
34711 (vectorizable_conversion): Likewise.
34712 (vectorizable_assignment): Likewise.
34713 (vectorizable_shift): Likewise.
34714 (vectorizable_operation): Likewise.
34715 (vectorizable_store): Likewise.
34716 (vectorizable_load): Likewise.
34717
34718 2016-01-12 Richard Biener <rguenther@suse.de>
34719
34720 PR tree-optimization/69174
34721 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
34722 space.
34723 (vectorizable_load): Properly compute the number of loads needed
34724 for permuted strided SLP loads and do not spuriously assign
34725 to SLP_TREE_VEC_STMTS.
34726
34727 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
34728
34729 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
34730 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
34731 (MD_EXEC_PREFIX): Remove.
34732 (MD_STARTFILE_PREFIX) Removee.
34733 (FILE_NAME_ABSOLUTE_P): Remove.
34734 (CPP_SPEC): Do not read macros from sys/version.h.
34735 (LINK_COMMAND_SPEC): Remove.
34736 (LOCAL_INCLUDE_DIR): Remove.
34737 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
34738 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
34739 (POST_LINK_SPEC): Define to invoke stubify after linker
34740 (LIBSTDCXX): Remove define
34741 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
34742 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
34743 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
34744 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
34745 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
34746 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
34747 (i386_djgpp_asm_named_section): Add propotype of new procedure
34748
34749 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
34750 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
34751 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
34752 in config/i386/djgpp.h).
34753 (STANDARD_STARTFILE_PREFIX_2): Define identical to
34754 STANDARD_STARTFILE_PREFIX_1.
34755 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
34756 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
34757 installation errors.
34758 (MAX_OFILE_ALIGNMENT): Define to 128.
34759 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
34760
34761 * config/i386/djgpp.c: New file. Add implementation of
34762 i386_djgpp_asm_named_section.
34763
34764 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
34765
34766 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
34767 Add rule for building djgpp.o.
34768
34769 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34770
34771 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
34772 (rtx_is_swappable_p): Reductions are swappable.
34773 (insn_is_swappable_p): V2DF reductions are swappable.
34774
34775 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
34776
34777 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
34778 reloads for other unsupported memory operands.
34779
34780 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
34781 Jim Wilson <jim.wilson@linaro.org>
34782
34783 PR target/69194
34784 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
34785 copy_to_mode_reg instead of force_reg.
34786
34787 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
34788
34789 PR target/69225
34790 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
34791 TARGET_80387 is true.
34792
34793 2016-01-11 Jakub Jelinek <jakub@redhat.com>
34794
34795 PR target/69071
34796 * lra-eliminations.c (move_plus_up): Only move plus up
34797 if subreg of the constant can be simplified into constant
34798 and use the simplified subreg of the constant instead of
34799 the original constant.
34800
34801 * fold-const.c (fold_convertible_p): Don't return true
34802 for conversion of VECTOR_TYPE to same sized integral type.
34803 (fold_convert_loc): Fix up formatting. Fold conversion of
34804 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
34805 instead of NOP_EXPR.
34806
34807 PR tree-optimization/69214
34808 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
34809 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
34810 Formatting fix.
34811
34812 PR tree-optimization/69207
34813 * tree-vect-slp.c (vect_get_constant_vectors): For
34814 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
34815 fold_convertible_p to vector_type's element type, and always
34816 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
34817
34818 2016-01-11 Richard Biener <rguenther@suse.de>
34819
34820 PR tree-optimization/69173
34821 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
34822 fixup the cycle if all stmts are in a pattern.
34823
34824 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
34825
34826 PR middle-end/68999
34827 * alias.c (base_alias_check): Move check for addresses with
34828 alignment ANDs before the call for compare_base_decls.
34829 (memrefs_conflict_p): Return -1 for different decls
34830 that went through alignment adjustments.
34831
34832 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34833
34834 PR rtl-optimization/68796
34835 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
34836 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
34837 and QImode comparisons against zero with CC_NZmode.
34838 * config/aarch64/iterators.md (short_mask): New mode_attr.
34839
34840 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
34841
34842 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
34843 (<avx512>_store<mode>_mask): Likewise.
34844
34845 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
34846 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34847
34848 PR rtl-optimization/68841
34849 * ifcvt.c (struct noce_if_info): Add orig_x field.
34850 (bbs_ok_for_cmove_arith): Add to_rename parameter.
34851 Don't record conflicts on to_rename if it's present.
34852 Allow memory destinations in sets.
34853 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
34854 blocks, passing orig_x to the checks.
34855 (noce_process_if_block): Set if_info->orig_x appropriately.
34856
34857 2016-01-11 Tom de Vries <tom@codesourcery.com>
34858
34859 PR tree-optimization/69069
34860 * tree-parloops.c (create_parallel_loop): Add missing phi args.
34861
34862 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
34863
34864 PR rtl-optimization/68920
34865 * config/i386/i386.c (ix86_option_override_internal): Restrict number
34866 of conditional moves for RTL if-conversion to 1 for
34867 TARGET_ONE_IF_CONV_INSN.
34868 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
34869 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
34870 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
34871 parameter to restirct number of conditional moves for
34872 RTL if-conversion.
34873 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
34874 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
34875 conditionl moves.
34876
34877 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
34878
34879 PR bootstrap/69123
34880 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
34881 onepart vars. Fix typo in comment. Fix reversed condition in
34882 unshare test.
34883 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
34884
34885 PR bootstrap/69123
34886 * var-tracking.c (dump_onepart_variable_differences): New.
34887 (dataflow_set_different): If a detailed dump is requested,
34888 delay early returns and dump differences between onepart
34889 variables present before and after, and added variables.
34890
34891 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
34892
34893 PR target/69010
34894 * expr.c (expand_expr_real_1): For boolean vector constants
34895 with a scalar mode use const_scalar_mask_from_tree.
34896 (const_scalar_mask_from_tree): New.
34897 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
34898 assigned to a mask type to handle constants.
34899
34900 2016-01-11 Martin Jambor <mjambor@suse.cz>
34901
34902 PR ipa/69044
34903 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
34904 useless parameters if we cannot change function signature.
34905
34906 2016-01-11 Martin Jambor <mjambor@suse.cz>
34907
34908 PR ipa/66616
34909 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
34910 flag.
34911
34912 2016-01-11 Tom de Vries <tom@codesourcery.com>
34913
34914 PR tree-optimization/69109
34915 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
34916 latch with phi.
34917
34918 2016-01-11 Tom de Vries <tom@codesourcery.com>
34919
34920 PR tree-optimization/69108
34921 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
34922 res is not used in a phi.
34923
34924 2016-01-11 Yury Gribov <y.gribov@samsung.com>
34925
34926 PR 67425
34927 * common.opt (frandom-seed): Fix parameter name.
34928 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
34929
34930 2016-01-11 Tom de Vries <tom@codesourcery.com>
34931
34932 PR tree-optimization/69058
34933 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
34934 not supported.
34935
34936 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
34937
34938 * config/arc/arc.opt (mdiv-rem): Add period to the end.
34939 (mcode-density): Likewise.
34940
34941 2016-01-10 Tom de Vries <tom@codesourcery.com>
34942
34943 PR tree-optimization/69062
34944 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
34945 (parallelize_loops): Don't paralelize loop that has phi with address
34946 arg.
34947
34948 2016-01-10 Tom de Vries <tom@codesourcery.com>
34949
34950 PR tree-optimization/69039
34951 * tree-parloops.c (try_create_reduction_list): Only allow single exit
34952 phi for reduction.
34953
34954 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
34955
34956 PR middle-end/68743
34957 * match.pd: Require target has function_c99_misc before doing
34958 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
34959
34960 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
34961
34962 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
34963 use GMPINC.
34964 * configure: Regenerate.
34965
34966 2016-01-09 Jakub Jelinek <jakub@redhat.com>
34967
34968 PR middle-end/50865
34969 PR tree-optimization/69097
34970 * fold-const.h (expr_not_equal_to): New prototype.
34971 * fold-const.c: Include stringpool.h and tree-ssanames.h.
34972 (expr_not_equal_to): New function.
34973 * match.pd (X % -Y is the same as X % Y): Don't optimize
34974 unless X is known not to be equal to minimum or Y is known
34975 not to be equal to -1.
34976 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
34977 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
34978 (simplify_stmt_using_ranges): Adjust caller.
34979 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
34980 substitute_and_fold.
34981
34982 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
34983
34984 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
34985 w/o DECL_NAME.
34986
34987 2016-01-08 Jakub Jelinek <jakub@redhat.com>
34988
34989 PR tree-optimization/69167
34990 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
34991 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
34992 ops[0] comparison.
34993 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
34994
34995 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
34996 Richard Biener <rguenther@suse.de>
34997
34998 PR tree-optimization/68707
34999 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
35000 instances that can be handled via vect_load_lanes.
35001
35002 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
35003
35004 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
35005 if we can't determine address equivalence.
35006 * alias.c (compare_base_decl): Update for changed return value of
35007 symtab_node::equal_address_to.
35008
35009 2016-01-08 Jason Merrill <jason@redhat.com>
35010
35011 PR c++/68983
35012 PR c++/67557
35013 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
35014 * expr.c (store_field): Not here.
35015 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
35016 call with TREE_ADDRESSABLE type.
35017 * tree-cfg.c (verify_gimple_call): Adjust.
35018
35019 2016-01-08 Olivier Hainque <hainque@adacore.com>
35020
35021 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
35022 libc_internal.
35023
35024 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
35025
35026 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
35027 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
35028 (reduc_smin_v2sf): Rename to...
35029 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
35030 (reduc_splus_v2sf): Rename to...
35031 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
35032
35033 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35034
35035 PR tree-optimization/69162
35036 * gimplify.c (gimplify_va_arg_expr): Encode original type of
35037 valist argument in another argument.
35038 (gimplify_modify_expr): Adjust for the above change. Cleanup.
35039 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
35040 to determine the va_list type, build a MEM_REF instead of
35041 build_fold_indirect_ref.
35042
35043 PR tree-optimization/69172
35044 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
35045 gimple_build.
35046
35047 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
35048
35049 PR tree-optimization/67781
35050 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
35051 and cmpnop in two steps: first the ones not accessed in original
35052 gimple expression in a endian independent way and then the ones not
35053 accessed in the final result in an endian-specific way.
35054
35055 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35056
35057 PR tree-optimization/69083
35058 * tree-vect-slp.c (vect_get_constant_vectors): For
35059 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
35060 element type. If op is fold_convertible_p to vector_type's element
35061 type, use NOP_EXPR instead of VCE.
35062
35063 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
35064
35065 PR rtl-optimization/67778
35066 PR rtl-optimization/68634
35067 PR rtl-optimization/68909
35068 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
35069 block from the stack until done with it. Remove a superfluous
35070 bitmap set. Remove a superfluous bitmap test.
35071
35072 2016-01-07 Martin Sebor <msebor@redhat.com>
35073
35074 PR c/68966
35075 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
35076 constraint on the type of arguments.
35077
35078 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
35079
35080 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
35081 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
35082 unaligned_access on the gcc_options set.
35083 * config/arm/arm.c (arm_option_override_internal): Use
35084 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
35085
35086 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
35087
35088 PR target/69140
35089 * config/i386/i386.c (ix86_frame_pointer_required): Enable
35090 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
35091
35092 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
35093
35094 Revert
35095 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
35096
35097 PR target/69140
35098 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35099 depending on frame_pointer_needed before remaining integer and SSE
35100 registers are saved.
35101
35102 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
35103
35104 PR 1078
35105 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
35106
35107 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
35108
35109 PR target/69171
35110 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
35111 Use the "xBm" constraint.
35112 (float<sseintvecmodelower><mode>2<mask_name><round_name):
35113 Likewise.
35114 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
35115 (sse_cvtsi2ssq<round_name>): Likewise.
35116 (sse_cvtss2si<round_name>): Likewise.
35117 (sse_cvtss2siq<round_name>): Likewise.
35118 (sse2_cvtsi2sdq<round_name>): Likewise.
35119 (sse2_cvtsd2si<round_name>): Likewise.
35120 (sse2_cvtsd2siq<round_name>): Likewise.
35121 * config/i386/subst.md (round_nimm_scalar_predicate): New
35122 predicate.
35123
35124 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
35125
35126 PR middle-end/67639
35127 * varasm.c (make_decl_rtl): Mark invalid register vars as
35128 DECL_EXTERNAL.
35129
35130 PR rtl-optimization/66206
35131 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
35132 All callers changed.
35133
35134 2016-01-07 Jakub Jelinek <jakub@redhat.com>
35135
35136 PR tree-optimization/69141
35137 * tree-ssa-pre.c: Include langhooks.h.
35138 (eliminate_dom_walker::before_dom_children): Use
35139 lang_hooks.decl_printable_name instead of
35140 cgraph_node::get ()->name ().
35141
35142 PR middle-end/68960
35143 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
35144 it and DECL_ALIGN too.
35145
35146 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
35147
35148 * config/mips/mips-ftypes.def: Sort to lexicographical order.
35149
35150 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
35151
35152 PR target/69140
35153 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35154 depending on frame_pointer_needed before remaining integer and SSE
35155 registers are saved.
35156
35157 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35158
35159 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
35160 mode iterator with VSX_M2.
35161 (*p9_vecstore_<mode>): Likewise.
35162 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
35163 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
35164 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
35165 (define_split for VSX_LE128 stores): Likewise.
35166 (define_peephole2 for TImode LE swaps): Likewise.
35167 (define_split for VSX_LE128 post-reload stores): Likewise.
35168
35169 2016-01-06 Marek Polacek <polacek@redhat.com>
35170
35171 PR sanitizer/69099
35172 * convert.c (convert_to_integer_1): Adjust call to
35173 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
35174 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
35175 EXPR instead of ARG.
35176 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
35177
35178 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35179
35180 PR 1078
35181 * doc/extend.texi (RL78 Variable Attributes): New section.
35182
35183 2016-01-05 Marek Polacek <polacek@redhat.com>
35184
35185 PR c/69104
35186 * builtins.c (get_memmodel): Use expansion point location rather than
35187 the input location. Call warning_at rather than warning.
35188 (expand_builtin_atomic_compare_exchange): Likewise.
35189 (expand_builtin_atomic_load): Likewise.
35190 (expand_builtin_atomic_store): Likewise.
35191 (expand_builtin_atomic_clear): Likewise.
35192
35193 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
35194
35195 PR target/68991
35196 * config/i386/i386.c (ix86_expand_vector_logical_operator):
35197 Replace nonimmediate_operand with vector_operand.
35198 * config/i386/predicates.md (vector_operand): New predicate.
35199 (general_vector_operand): Replace nonimmediate_operand with
35200 vector_operand.
35201 * config/i386/sse.md: Replace nonimmediate_operand with
35202 vector_operand and m constraint with Bm constraint on SSE
35203 patterns with 16-byte memory operand.
35204 * config/i386/subst.md (round_nimm_predicate): Replace
35205 nonimmediate_operand with vector_operand.
35206 (round_saeonly_nimm_predicate): Likewise.
35207 (round_saeonly_nimm_scalar_predicate): New.
35208
35209 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
35210
35211 PR target/68991
35212 * config/i386/constraints.md (Bm): New constraint.
35213 * config/i386/predicates.md (vector_memory_operand): New
35214 predicate.
35215 * config/i386/sse.md: Replace xm with xBm in plusminus and
35216 any_logic patterns.
35217
35218 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35219
35220 PR 1078
35221 * doc/extend.texi (V850 Function Attributes): New section.
35222 (V850 Variable Attributes): New section.
35223
35224 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35225
35226 PR 1078
35227 * doc/extend.texi (MicroBlaze Function Attributes): Document
35228 interrupt_handler and fast_interrupt attributes.
35229
35230 2016-01-05 Sergei Trofimovich <siarheit@google.com>
35231
35232 PR other/60465
35233 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
35234 for local symbolic operands.
35235 * config/ia64/predicates.md (local_symbolic_operand64): New
35236 predicate.
35237
35238 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35239
35240 PR rtl-optimization/68651
35241 * combine.c (combine_simplify_rtx): Canonicalize x + x into
35242 x << 1.
35243
35244 2016-01-05 Nathan Sidwell <nathan@acm.org>
35245
35246 * alias.c (compare_base_decls): Use symtab_node::get.
35247
35248 2016-01-05 Nick Clifton <nickc@redhat.com>
35249
35250 PR target/68770
35251 * ira-costs.c (copy_cost): Initialise the t_icode field of the
35252 secondary_reload_info structure.
35253
35254 PR target/66655
35255 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
35256 decls if weak support is available.
35257
35258 2016-01-04 Martin Sebor <msebor@redhat.com>
35259
35260 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
35261
35262 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
35263
35264 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
35265 OPTION_MASK_P9_DFORM.
35266
35267 * config/rs6000/constraints.md (wo constraint): New constraint for
35268 ISA 3.0 (power9).
35269
35270 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
35271 for wo constraint.
35272 (rs6000_init_hard_regno_mode_ok): Likewise.
35273
35274 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
35275 wo constraint.
35276
35277 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
35278 expanders not to have constraints. Add support for ISA 3.0 xxperm
35279 instruction. Add support for fusing xxlor with xxperm.
35280 (altivec_vperm_<mode>_internal): Likewise.
35281 (altivec_vperm_v8hiv16qi): Likewise.
35282 (altivec_vperm_<mode>v16q): Likewise.
35283 (altivec_vperm_<mode>_uns): Likewise.
35284 (vperm_v8hiv4si): Likewise.
35285 (vperm_v16qiv8hi): Likewise.
35286
35287 * doc/md.texi (RS/6000 constraints): Document wo constraint.
35288
35289 2016-01-04 Jakub Jelinek <jakub@redhat.com>
35290
35291 Update copyright years.
35292
35293 * gcc.c (process_command): Update copyright notice dates.
35294 * gcov-dump.c (print_version): Ditto.
35295 * gcov.c (print_version): Ditto.
35296 * gcov-tool.c (print_version): Ditto.
35297 * gengtype.c (create_file): Ditto.
35298 * doc/cpp.texi: Bump @copying's copyright year.
35299 * doc/cppinternals.texi: Ditto.
35300 * doc/gcc.texi: Ditto.
35301 * doc/gccint.texi: Ditto.
35302 * doc/gcov.texi: Ditto.
35303 * doc/install.texi: Ditto.
35304 * doc/invoke.texi: Ditto.
35305
35306 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35307
35308 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
35309 modes larger than TImode as TImode if NEON is not enabled.
35310
35311 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35312
35313 PR target/69100
35314 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
35315 mode for %f0-%f31 only if TARGET_FPU.
35316
35317 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35318
35319 PR target/69072
35320 * config/sparc/sparc.c (scan_record_type): Take into account subfields
35321 to compute the PACKED_P predicate.
35322 (function_arg_record_value): Minor tweaks.
35323
35324 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
35325
35326 * doc/install.texi (--with-multilib-list): Describe the meaning of the
35327 option for arm*-*-* targets.
35328
35329 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
35330
35331 * doc/extend.texi (Common Function Attributes): Move docs for
35332 MSP430-specific attributes to....
35333 (MSP430 Function Attributes): ...here. Delete the redundant
35334 entries and copy-edit the remaining text.
35335 (MSP430 Variable Attributes): Use uniform format for index
35336 entries and add a cross-reference to the corresponding function
35337 attribute docs.
35338
35339 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
35340
35341 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
35342 -finite-math typo.
35343 (x86 Options): Likewise.
35344
35345 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
35346
35347 PR 1078
35348
35349 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
35350 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
35351 to corresponding attribute.
35352
35353 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
35354
35355 * doc/extend.texi (Common Function Attributes) <noplt>: Move
35356 to correct alphabetization of table. Copy-edit and correct
35357 markup.
35358 <stack_protect>: Likewise.
35359 <target_clones>: Likewise.
35360 <simd>: Likewise.
35361 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
35362 Correct punctuation.
35363 (Code Gen Options) <-fno-plt>: Copy-edit.
35364
35365 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
35366
35367 PR target/68917
35368 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
35369 SI values. Explicitly convert SI to DI and vice-versa.
35370
35371 2016-01-01 Jakub Jelinek <jakub@redhat.com>
35372
35373 PR tree-optimization/69070
35374 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
35375 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
35376
35377 PR sanitizer/69055
35378 * ubsan.c (ubsan_instrument_float_cast): Call
35379 initialize_sanitizer_builtins.
35380
35381 PR target/69015
35382 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
35383 \f
35384 Copyright (C) 2016 Free Software Foundation, Inc.
35385
35386 Copying and distribution of this file, with or without modification,
35387 are permitted in any medium without royalty provided the copyright
35388 notice and this notice are preserved.